@fluid-topics/ft-reader-feedback 1.1.80 → 1.1.82

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,4 +1,4 @@
1
- "use strict";(()=>{var ml=Object.create;var Di=Object.defineProperty;var gl=Object.getOwnPropertyDescriptor;var yl=Object.getOwnPropertyNames;var bl=Object.getPrototypeOf,xl=Object.prototype.hasOwnProperty;var Fe=(o,t)=>()=>(t||o((t={exports:{}}).exports,t),t.exports);var vl=(o,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of yl(t))!xl.call(o,n)&&n!==r&&Di(o,n,{get:()=>t[n],enumerable:!(i=gl(t,n))||i.enumerable});return o};var u=(o,t,r)=>(r=o!=null?ml(bl(o)):{},vl(t||!o||!o.__esModule?Di(r,"default",{value:o,enumerable:!0}):r,o));var S=Fe((oc,Bi)=>{Bi.exports=ftGlobals.wcUtils});var _=Fe((rc,Ui)=>{Ui.exports=ftGlobals.lit});var K=Fe((ic,Mi)=>{Mi.exports=ftGlobals.litDecorators});var Te=Fe((uu,ca)=>{ca.exports=ftGlobals.litClassMap});var Fa=Fe((eh,Ma)=>{Ma.exports=ftGlobals.litUnsafeHTML});var ls=Fe((vm,ss)=>{ss.exports=ftGlobals.litRepeat});var Hs=Fe(Ws=>{(function(o){var t=function(r){var i={searchParams:"URLSearchParams"in o,iterable:"Symbol"in o&&"iterator"in Symbol,blob:"FileReader"in o&&"Blob"in o&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in o,arrayBuffer:"ArrayBuffer"in o};function n(f){return f&&DataView.prototype.isPrototypeOf(f)}if(i.arrayBuffer)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],s=ArrayBuffer.isView||function(f){return f&&a.indexOf(Object.prototype.toString.call(f))>-1};function c(f){if(typeof f!="string"&&(f=String(f)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(f))throw new TypeError("Invalid character in header field name");return f.toLowerCase()}function p(f){return typeof f!="string"&&(f=String(f)),f}function h(f){var m={next:function(){var I=f.shift();return{done:I===void 0,value:I}}};return i.iterable&&(m[Symbol.iterator]=function(){return m}),m}function g(f){this.map={},f instanceof g?f.forEach(function(m,I){this.append(I,m)},this):Array.isArray(f)?f.forEach(function(m){this.append(m[0],m[1])},this):f&&Object.getOwnPropertyNames(f).forEach(function(m){this.append(m,f[m])},this)}g.prototype.append=function(f,m){f=c(f),m=p(m);var I=this.map[f];this.map[f]=I?I+", "+m:m},g.prototype.delete=function(f){delete this.map[c(f)]},g.prototype.get=function(f){return f=c(f),this.has(f)?this.map[f]:null},g.prototype.has=function(f){return this.map.hasOwnProperty(c(f))},g.prototype.set=function(f,m){this.map[c(f)]=p(m)},g.prototype.forEach=function(f,m){for(var I in this.map)this.map.hasOwnProperty(I)&&f.call(m,this.map[I],I,this)},g.prototype.keys=function(){var f=[];return this.forEach(function(m,I){f.push(I)}),h(f)},g.prototype.values=function(){var f=[];return this.forEach(function(m){f.push(m)}),h(f)},g.prototype.entries=function(){var f=[];return this.forEach(function(m,I){f.push([I,m])}),h(f)},i.iterable&&(g.prototype[Symbol.iterator]=g.prototype.entries);function x(f){if(f.bodyUsed)return Promise.reject(new TypeError("Already read"));f.bodyUsed=!0}function A(f){return new Promise(function(m,I){f.onload=function(){m(f.result)},f.onerror=function(){I(f.error)}})}function R(f){var m=new FileReader,I=A(m);return m.readAsArrayBuffer(f),I}function P(f){var m=new FileReader,I=A(m);return m.readAsText(f),I}function X(f){for(var m=new Uint8Array(f),I=new Array(m.length),yt=0;yt<m.length;yt++)I[yt]=String.fromCharCode(m[yt]);return I.join("")}function Q(f){if(f.slice)return f.slice(0);var m=new Uint8Array(f.byteLength);return m.set(new Uint8Array(f)),m.buffer}function q(){return this.bodyUsed=!1,this._initBody=function(f){this._bodyInit=f,f?typeof f=="string"?this._bodyText=f:i.blob&&Blob.prototype.isPrototypeOf(f)?this._bodyBlob=f:i.formData&&FormData.prototype.isPrototypeOf(f)?this._bodyFormData=f:i.searchParams&&URLSearchParams.prototype.isPrototypeOf(f)?this._bodyText=f.toString():i.arrayBuffer&&i.blob&&n(f)?(this._bodyArrayBuffer=Q(f.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):i.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(f)||s(f))?this._bodyArrayBuffer=Q(f):this._bodyText=f=Object.prototype.toString.call(f):this._bodyText="",this.headers.get("content-type")||(typeof f=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):i.searchParams&&URLSearchParams.prototype.isPrototypeOf(f)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i.blob&&(this.blob=function(){var f=x(this);if(f)return f;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?x(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(R)}),this.text=function(){var f=x(this);if(f)return f;if(this._bodyBlob)return P(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(X(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i.formData&&(this.formData=function(){return this.text().then(gt)}),this.json=function(){return this.text().then(JSON.parse)},this}var ot=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function vt(f){var m=f.toUpperCase();return ot.indexOf(m)>-1?m:f}function Rt(f,m){m=m||{};var I=m.body;if(f instanceof Rt){if(f.bodyUsed)throw new TypeError("Already read");this.url=f.url,this.credentials=f.credentials,m.headers||(this.headers=new g(f.headers)),this.method=f.method,this.mode=f.mode,this.signal=f.signal,!I&&f._bodyInit!=null&&(I=f._bodyInit,f.bodyUsed=!0)}else this.url=String(f);if(this.credentials=m.credentials||this.credentials||"same-origin",(m.headers||!this.headers)&&(this.headers=new g(m.headers)),this.method=vt(m.method||this.method||"GET"),this.mode=m.mode||this.mode||null,this.signal=m.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&I)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(I)}Rt.prototype.clone=function(){return new Rt(this,{body:this._bodyInit})};function gt(f){var m=new FormData;return f.trim().split("&").forEach(function(I){if(I){var yt=I.split("="),St=yt.shift().replace(/\+/g," "),F=yt.join("=").replace(/\+/g," ");m.append(decodeURIComponent(St),decodeURIComponent(F))}}),m}function Go(f){var m=new g,I=f.replace(/\r?\n[\t ]+/g," ");return I.split(/\r?\n/).forEach(function(yt){var St=yt.split(":"),F=St.shift().trim();if(F){var Ko=St.join(":").trim();m.append(F,Ko)}}),m}q.call(Rt.prototype);function Wt(f,m){m||(m={}),this.type="default",this.status=m.status===void 0?200:m.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in m?m.statusText:"OK",this.headers=new g(m.headers),this.url=m.url||"",this._initBody(f)}q.call(Wt.prototype),Wt.prototype.clone=function(){return new Wt(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new g(this.headers),url:this.url})},Wt.error=function(){var f=new Wt(null,{status:0,statusText:""});return f.type="error",f};var Pi=[301,302,303,307,308];Wt.redirect=function(f,m){if(Pi.indexOf(m)===-1)throw new RangeError("Invalid status code");return new Wt(null,{status:m,headers:{location:f}})},r.DOMException=o.DOMException;try{new r.DOMException}catch{r.DOMException=function(m,I){this.message=m,this.name=I;var yt=Error(m);this.stack=yt.stack},r.DOMException.prototype=Object.create(Error.prototype),r.DOMException.prototype.constructor=r.DOMException}function Je(f,m){return new Promise(function(I,yt){var St=new Rt(f,m);if(St.signal&&St.signal.aborted)return yt(new r.DOMException("Aborted","AbortError"));var F=new XMLHttpRequest;function Ko(){F.abort()}F.onload=function(){var wo={status:F.status,statusText:F.statusText,headers:Go(F.getAllResponseHeaders()||"")};wo.url="responseURL"in F?F.responseURL:wo.headers.get("X-Request-URL");var Gr="response"in F?F.response:F.responseText;I(new Wt(Gr,wo))},F.onerror=function(){yt(new TypeError("Network request failed"))},F.ontimeout=function(){yt(new TypeError("Network request failed"))},F.onabort=function(){yt(new r.DOMException("Aborted","AbortError"))},F.open(St.method,St.url,!0),St.credentials==="include"?F.withCredentials=!0:St.credentials==="omit"&&(F.withCredentials=!1),"responseType"in F&&i.blob&&(F.responseType="blob"),St.headers.forEach(function(wo,Gr){F.setRequestHeader(Gr,wo)}),St.signal&&(St.signal.addEventListener("abort",Ko),F.onreadystatechange=function(){F.readyState===4&&St.signal.removeEventListener("abort",Ko)}),F.send(typeof St._bodyInit>"u"?null:St._bodyInit)})}return Je.polyfill=!0,o.fetch||(o.fetch=Je,o.Headers=g,o.Request=Rt,o.Response=Wt),r.Headers=g,r.Request=Rt,r.Response=Wt,r.fetch=Je,Object.defineProperty(r,"__esModule",{value:!0}),r}({})})(typeof self<"u"?self:Ws)});var $i=u(S());var fl=u(_()),Ft=u(K()),It=u(S());var Fi=u(S()),zi=u(K());var jt;(function(o){o.FEEDBACK="FEEDBACK",o.RATING="RATING",o.PRINT="PRINT",o.BOOKMARK="BOOKMARK",o.COLLECTIONS="COLLECTIONS",o.PERSONAL_BOOKS="PERSONAL_BOOKS"})(jt||(jt={}));var Sl=function(o,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(o,t,r,i);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},Zr=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},Kr=Symbol("registerInterval");function Cl(o){var t;class r extends o{constructor(){super(...arguments),this[t]=0}setReaderStateManager(n){this.clearStateManager(),this.stateManager=n,this.addStore(n.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var n;return(n=this.stateManager)===null||n===void 0?void 0:n.service}connectedCallback(){super.connectedCallback(),this[Kr]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[Kr]):this.dispatchEvent(new Zr)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return t=Kr,Sl([(0,zi.state)()],r.prototype,"stateManager",void 0),r}var Ee=class extends Cl(Fi.FtLitElementRedux){};var at=u(_()),st=u(K()),Wr=u(S());var zn=u(_()),H=u(S());var Mn=u(_()),T=u(S());var Zi=u(_()),lt=u(S()),Wi=lt.FtCssVariableFactory.extend("--ft-ripple-color","",lt.designSystemVariables.colorContent),N={color:Wi,backgroundColor:lt.FtCssVariableFactory.extend("--ft-ripple-background-color","",Wi),opacityContentOnSurfacePressed:lt.FtCssVariableFactory.external(lt.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:lt.FtCssVariableFactory.external(lt.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:lt.FtCssVariableFactory.external(lt.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:lt.FtCssVariableFactory.external(lt.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:lt.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},Hi=lt.FtCssVariableFactory.extend("--ft-ripple-color","",lt.designSystemVariables.colorPrimary),Vi={color:Hi,backgroundColor:lt.FtCssVariableFactory.extend("--ft-ripple-background-color","",Hi)},Gi=lt.FtCssVariableFactory.extend("--ft-ripple-color","",lt.designSystemVariables.colorSecondary),Ki={color:Gi,backgroundColor:lt.FtCssVariableFactory.extend("--ft-ripple-background-color","",Gi)},ji=Zi.css`
1
+ "use strict";(()=>{var yd=Object.create;var qn=Object.defineProperty;var bd=Object.getOwnPropertyDescriptor;var vd=Object.getOwnPropertyNames;var xd=Object.getPrototypeOf,Sd=Object.prototype.hasOwnProperty;var tr=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Od=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of vd(e))!Sd.call(t,n)&&n!==r&&qn(t,n,{get:()=>e[n],enumerable:!(i=bd(e,n))||i.enumerable});return t};var m=(t,e,r)=>(r=t!=null?yd(xd(t)):{},Od(e||!t||!t.__esModule?qn(r,"default",{value:t,enumerable:!0}):r,t));var E=tr((Vp,Yn)=>{Yn.exports=ftGlobals.wcUtils});var $=tr((jp,Xn)=>{Xn.exports=ftGlobals.lit});var j=tr((Gp,Jn)=>{Jn.exports=ftGlobals.litDecorators});var Bt=tr((og,ws)=>{ws.exports=ftGlobals.litClassMap});var el=tr((jg,Qs)=>{Qs.exports=ftGlobals.litUnsafeHTML});var Ol=tr((db,Sl)=>{Sl.exports=ftGlobals.litRepeat});var jc=tr(Vc=>{(function(t){var e=function(r){var i={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};function n(h){return h&&DataView.prototype.isPrototypeOf(h)}if(i.arrayBuffer)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],s=ArrayBuffer.isView||function(h){return h&&a.indexOf(Object.prototype.toString.call(h))>-1};function l(h){if(typeof h!="string"&&(h=String(h)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(h))throw new TypeError("Invalid character in header field name");return h.toLowerCase()}function d(h){return typeof h!="string"&&(h=String(h)),h}function p(h){var x={next:function(){var T=h.shift();return{done:T===void 0,value:T}}};return i.iterable&&(x[Symbol.iterator]=function(){return x}),x}function u(h){this.map={},h instanceof u?h.forEach(function(x,T){this.append(T,x)},this):Array.isArray(h)?h.forEach(function(x){this.append(x[0],x[1])},this):h&&Object.getOwnPropertyNames(h).forEach(function(x){this.append(x,h[x])},this)}u.prototype.append=function(h,x){h=l(h),x=d(x);var T=this.map[h];this.map[h]=T?T+", "+x:x},u.prototype.delete=function(h){delete this.map[l(h)]},u.prototype.get=function(h){return h=l(h),this.has(h)?this.map[h]:null},u.prototype.has=function(h){return this.map.hasOwnProperty(l(h))},u.prototype.set=function(h,x){this.map[l(h)]=d(x)},u.prototype.forEach=function(h,x){for(var T in this.map)this.map.hasOwnProperty(T)&&h.call(x,this.map[T],T,this)},u.prototype.keys=function(){var h=[];return this.forEach(function(x,T){h.push(T)}),p(h)},u.prototype.values=function(){var h=[];return this.forEach(function(x){h.push(x)}),p(h)},u.prototype.entries=function(){var h=[];return this.forEach(function(x,T){h.push([T,x])}),p(h)},i.iterable&&(u.prototype[Symbol.iterator]=u.prototype.entries);function g(h){if(h.bodyUsed)return Promise.reject(new TypeError("Already read"));h.bodyUsed=!0}function y(h){return new Promise(function(x,T){h.onload=function(){x(h.result)},h.onerror=function(){T(h.error)}})}function v(h){var x=new FileReader,T=y(x);return x.readAsArrayBuffer(h),T}function b(h){var x=new FileReader,T=y(x);return x.readAsText(h),T}function S(h){for(var x=new Uint8Array(h),T=new Array(x.length),ee=0;ee<x.length;ee++)T[ee]=String.fromCharCode(x[ee]);return T.join("")}function I(h){if(h.slice)return h.slice(0);var x=new Uint8Array(h.byteLength);return x.set(new Uint8Array(h)),x.buffer}function A(){return this.bodyUsed=!1,this._initBody=function(h){this._bodyInit=h,h?typeof h=="string"?this._bodyText=h:i.blob&&Blob.prototype.isPrototypeOf(h)?this._bodyBlob=h:i.formData&&FormData.prototype.isPrototypeOf(h)?this._bodyFormData=h:i.searchParams&&URLSearchParams.prototype.isPrototypeOf(h)?this._bodyText=h.toString():i.arrayBuffer&&i.blob&&n(h)?(this._bodyArrayBuffer=I(h.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):i.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(h)||s(h))?this._bodyArrayBuffer=I(h):this._bodyText=h=Object.prototype.toString.call(h):this._bodyText="",this.headers.get("content-type")||(typeof h=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):i.searchParams&&URLSearchParams.prototype.isPrototypeOf(h)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i.blob&&(this.blob=function(){var h=g(this);if(h)return h;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?g(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(v)}),this.text=function(){var h=g(this);if(h)return h;if(this._bodyBlob)return b(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(S(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i.formData&&(this.formData=function(){return this.text().then(K)}),this.json=function(){return this.text().then(JSON.parse)},this}var R=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function D(h){var x=h.toUpperCase();return R.indexOf(x)>-1?x:h}function k(h,x){x=x||{};var T=x.body;if(h instanceof k){if(h.bodyUsed)throw new TypeError("Already read");this.url=h.url,this.credentials=h.credentials,x.headers||(this.headers=new u(h.headers)),this.method=h.method,this.mode=h.mode,this.signal=h.signal,!T&&h._bodyInit!=null&&(T=h._bodyInit,h.bodyUsed=!0)}else this.url=String(h);if(this.credentials=x.credentials||this.credentials||"same-origin",(x.headers||!this.headers)&&(this.headers=new u(x.headers)),this.method=D(x.method||this.method||"GET"),this.mode=x.mode||this.mode||null,this.signal=x.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&T)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(T)}k.prototype.clone=function(){return new k(this,{body:this._bodyInit})};function K(h){var x=new FormData;return h.trim().split("&").forEach(function(T){if(T){var ee=T.split("="),Ce=ee.shift().replace(/\+/g," "),Z=ee.join("=").replace(/\+/g," ");x.append(decodeURIComponent(Ce),decodeURIComponent(Z))}}),x}function Ue(h){var x=new u,T=h.replace(/\r?\n[\t ]+/g," ");return T.split(/\r?\n/).forEach(function(ee){var Ce=ee.split(":"),Z=Ce.shift().trim();if(Z){var xo=Ce.join(":").trim();x.append(Z,xo)}}),x}A.call(k.prototype);function be(h,x){x||(x={}),this.type="default",this.status=x.status===void 0?200:x.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in x?x.statusText:"OK",this.headers=new u(x.headers),this.url=x.url||"",this._initBody(h)}A.call(be.prototype),be.prototype.clone=function(){return new be(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new u(this.headers),url:this.url})},be.error=function(){var h=new be(null,{status:0,statusText:""});return h.type="error",h};var Gr=[301,302,303,307,308];be.redirect=function(h,x){if(Gr.indexOf(x)===-1)throw new RangeError("Invalid status code");return new be(null,{status:x,headers:{location:h}})},r.DOMException=t.DOMException;try{new r.DOMException}catch{r.DOMException=function(x,T){this.message=x,this.name=T;var ee=Error(x);this.stack=ee.stack},r.DOMException.prototype=Object.create(Error.prototype),r.DOMException.prototype.constructor=r.DOMException}function Je(h,x){return new Promise(function(T,ee){var Ce=new k(h,x);if(Ce.signal&&Ce.signal.aborted)return ee(new r.DOMException("Aborted","AbortError"));var Z=new XMLHttpRequest;function xo(){Z.abort()}Z.onload=function(){var Kr={status:Z.status,statusText:Z.statusText,headers:Ue(Z.getAllResponseHeaders()||"")};Kr.url="responseURL"in Z?Z.responseURL:Kr.headers.get("X-Request-URL");var Ti="response"in Z?Z.response:Z.responseText;T(new be(Ti,Kr))},Z.onerror=function(){ee(new TypeError("Network request failed"))},Z.ontimeout=function(){ee(new TypeError("Network request failed"))},Z.onabort=function(){ee(new r.DOMException("Aborted","AbortError"))},Z.open(Ce.method,Ce.url,!0),Ce.credentials==="include"?Z.withCredentials=!0:Ce.credentials==="omit"&&(Z.withCredentials=!1),"responseType"in Z&&i.blob&&(Z.responseType="blob"),Ce.headers.forEach(function(Kr,Ti){Z.setRequestHeader(Ti,Kr)}),Ce.signal&&(Ce.signal.addEventListener("abort",xo),Z.onreadystatechange=function(){Z.readyState===4&&Ce.signal.removeEventListener("abort",xo)}),Z.send(typeof Ce._bodyInit>"u"?null:Ce._bodyInit)})}return Je.polyfill=!0,t.fetch||(t.fetch=Je,t.Headers=u,t.Request=k,t.Response=be),r.Headers=u,r.Request=k,r.Response=be,r.fetch=Je,Object.defineProperty(r,"__esModule",{value:!0}),r}({})})(typeof self<"u"?self:Vc)});var Zn=m(E());var hd=m($()),Ve=m(j()),_e=m(E());var Qn=m(E()),ea=m(j());var Qe;(function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"})(Qe||(Qe={}));var wd=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ki=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},_i=Symbol("registerInterval");function Cd(t){var e;class r extends t{constructor(){super(...arguments),this[e]=0}setReaderStateManager(n){this.clearStateManager(),this.stateManager=n,this.addStore(n.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var n;return(n=this.stateManager)===null||n===void 0?void 0:n.service}connectedCallback(){super.connectedCallback(),this[_i]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[_i]):this.dispatchEvent(new ki)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=_i,wd([(0,ea.state)()],r.prototype,"stateManager",void 0),r}var Lt=class extends Cd(Qn.FtLitElementRedux){};var pe=m($()),fe=m(j()),Ri=m(E());var ts=m($()),X=m(E());var Qa=m($()),U=m(E());var aa=m($()),ue=m(E()),ta=ue.FtCssVariableFactory.extend("--ft-ripple-color","",ue.designSystemVariables.colorContent),M={color:ta,backgroundColor:ue.FtCssVariableFactory.extend("--ft-ripple-background-color","",ta),opacityContentOnSurfacePressed:ue.FtCssVariableFactory.external(ue.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:ue.FtCssVariableFactory.external(ue.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:ue.FtCssVariableFactory.external(ue.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:ue.FtCssVariableFactory.external(ue.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:ue.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},ra=ue.FtCssVariableFactory.extend("--ft-ripple-color","",ue.designSystemVariables.colorPrimary),oa={color:ra,backgroundColor:ue.FtCssVariableFactory.extend("--ft-ripple-background-color","",ra)},ia=ue.FtCssVariableFactory.extend("--ft-ripple-color","",ue.designSystemVariables.colorSecondary),na={color:ia,backgroundColor:ue.FtCssVariableFactory.extend("--ft-ripple-background-color","",ia)},sa=aa.css`
2
2
  :host {
3
3
  display: contents;
4
4
  }
@@ -11,7 +11,7 @@
11
11
 
12
12
  .ft-ripple:not(.ft-ripple--unbounded) {
13
13
  overflow: hidden;
14
- border-radius: ${N.borderRadius};
14
+ border-radius: ${M.borderRadius};
15
15
  }
16
16
 
17
17
  .ft-ripple .ft-ripple--background,
@@ -45,27 +45,27 @@
45
45
  }
46
46
 
47
47
  .ft-ripple .ft-ripple--background {
48
- background-color: ${N.backgroundColor};
48
+ background-color: ${M.backgroundColor};
49
49
  }
50
50
 
51
51
  .ft-ripple .ft-ripple--effect {
52
- background-color: ${N.color};
52
+ background-color: ${M.color};
53
53
  }
54
54
 
55
55
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
56
- background-color: ${Ki.backgroundColor};
56
+ background-color: ${na.backgroundColor};
57
57
  }
58
58
 
59
59
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
60
- background-color: ${Ki.color};
60
+ background-color: ${na.color};
61
61
  }
62
62
 
63
63
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
64
- background-color: ${Vi.backgroundColor};
64
+ background-color: ${oa.backgroundColor};
65
65
  }
66
66
 
67
67
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
68
- background-color: ${Vi.color};
68
+ background-color: ${oa.color};
69
69
  }
70
70
 
71
71
  .ft-ripple .ft-ripple--background {
@@ -95,127 +95,127 @@
95
95
  }
96
96
 
97
97
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
98
- opacity: ${N.opacityContentOnSurfaceHover};
98
+ opacity: ${M.opacityContentOnSurfaceHover};
99
99
  }
100
100
 
101
101
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
102
- opacity: ${N.opacityContentOnSurfaceSelected};
102
+ opacity: ${M.opacityContentOnSurfaceSelected};
103
103
  }
104
104
 
105
105
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
106
- opacity: ${N.opacityContentOnSurfaceFocused};
106
+ opacity: ${M.opacityContentOnSurfaceFocused};
107
107
  }
108
108
 
109
109
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
110
- opacity: ${N.opacityContentOnSurfacePressed};
110
+ opacity: ${M.opacityContentOnSurfacePressed};
111
111
  transform: translate(-50%, -50%) scale(1);
112
112
  }
113
- `;var qt=u(_()),b=u(S());var ue=u(_(),1),Re=o=>typeof o=="string"?(0,ue.unsafeCSS)(o):o,e=class{static create(t,r,i,n){let a=c=>Re(c??n),s=ue.css`var(${Re(t)}, ${a(n)})`;return s.name=t,s.description=r,s.category=i,s.defaultValue=n,s.defaultCssValue=a,s.get=c=>ue.css`var(${Re(t)}, ${a(c)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>n,s}static extend(t,r,i,n){let a=c=>i.get(c??n),s=ue.css`var(${Re(t)}, ${a(n)})`;return s.name=t,s.description=r,s.category=i.category,s.fallbackVariable=i,s.defaultValue=n,s.defaultCssValue=a,s.get=c=>ue.css`var(${Re(t)}, ${a(c)})`,s.breadcrumb=()=>[i.name,...i.breadcrumb()],s.lastResortDefaultValue=()=>n??i.lastResortDefaultValue(),s}static external(t,r){let i=a=>t.fallbackVariable?t.fallbackVariable.get(a??t.defaultValue):Re(a??t.lastResortDefaultValue()),n=ue.css`var(${Re(t.name)}, ${i(t.defaultValue)})`;return n.name=t.name,n.category=t.category,n.fallbackVariable=t.fallbackVariable,n.defaultValue=t.defaultValue,n.context=r,n.defaultCssValue=i,n.get=a=>ue.css`var(${Re(t.name)}, ${i(a)})`,n.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],n.lastResortDefaultValue=()=>t.lastResortDefaultValue(),n}};var l={colorWhite:e.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:e.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:e.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:e.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:e.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:e.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:e.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:e.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:e.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:e.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:e.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:e.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:e.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:e.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:e.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:e.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:e.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:e.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:e.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:e.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:e.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:e.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:e.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:e.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:e.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:e.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:e.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:e.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:e.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:e.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:e.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:e.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:e.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:e.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:e.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:e.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:e.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:e.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:e.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:e.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:e.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:e.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:e.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:e.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:e.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:e.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:e.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:e.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:e.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:e.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:e.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:e.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:e.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:e.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:e.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:e.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:e.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:e.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:e.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:e.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:e.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:e.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:e.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:e.create("--ft-color-orange-0","","COLOR","#F2700D"),colorOrange10:e.create("--ft-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:e.create("--ft-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:e.create("--ft-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:e.create("--ft-color-orange-40","","COLOR","#FECB90"),colorOrange50:e.create("--ft-color-orange-50","","COLOR","#FCB76E"),colorOrange60:e.create("--ft-color-orange-60","","COLOR","#F9A34D"),colorOrange70:e.create("--ft-color-orange-70","","COLOR","#F68B2C"),colorOrange100:e.create("--ft-color-orange-100","","COLOR","#D35909"),colorOrange200:e.create("--ft-color-orange-200","","COLOR","#B74706"),colorOrange300:e.create("--ft-color-orange-300","","COLOR","#913503"),colorOrange400:e.create("--ft-color-orange-400","","COLOR","#6F2601"),colorOrange500:e.create("--ft-color-orange-500","","COLOR","#4D1800"),colorOrange600:e.create("--ft-color-orange-600","","COLOR","#330F00"),colorOrange700:e.create("--ft-color-orange-700","","COLOR","#140600"),colorRed0:e.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:e.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:e.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:e.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:e.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:e.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:e.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:e.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:e.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:e.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:e.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:e.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:e.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:e.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:e.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:e.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:e.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:e.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:e.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:e.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:e.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:e.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:e.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:e.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:e.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:e.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:e.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:e.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:e.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:e.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:e.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:e.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:e.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:e.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:e.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:e.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:e.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:e.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:e.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:e.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:e.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:e.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:e.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:e.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:e.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:e.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:e.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:e.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:e.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:e.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:e.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:e.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:e.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:e.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:e.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:e.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:e.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:e.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:e.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:e.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:e.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:e.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:e.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:e.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:e.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:e.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:e.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:e.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:e.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:e.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:e.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:e.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:e.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:e.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:e.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:e.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:e.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:e.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:e.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:e.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:e.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:e.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:e.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:e.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:e.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:e.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:e.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:e.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:e.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:e.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:e.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:e.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:e.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:e.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:e.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:e.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:e.create("--ft-icon-size-1","","SIZE","0.75rem"),iconSize2:e.create("--ft-icon-size-2","","SIZE","1rem"),iconSize3:e.create("--ft-icon-size-3","","SIZE","1.25rem"),iconSize4:e.create("--ft-icon-size-4","","SIZE","1.5rem"),iconSize5:e.create("--ft-icon-size-5","","SIZE","2rem"),iconSize6:e.create("--ft-icon-size-6","","SIZE","3rem"),opacity0:e.create("--ft-opacity-0","","NUMBER","0"),opacity8:e.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:e.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:e.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:e.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:e.create("--ft-opacity-80","","NUMBER","0.8"),shadowElevation01:e.create("--ft-shadow-elevation-01","","SHADOW","0px 1px 4px 0px rgba(0,0,0,0.06), 0px 1px 2px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation02:e.create("--ft-shadow-elevation-02","","SHADOW","0px 4px 10px 0px rgba(0,0,0,0.06), 0px 2px 5px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation03:e.create("--ft-shadow-elevation-03","","SHADOW","0px 6px 13px 0px rgba(0,0,0,0.06), 0px 3px 7px 0px rgba(0,0,0,0.14), 0px 1px 2px 0px rgba(0,0,0,0.06)"),shadowElevation04:e.create("--ft-shadow-elevation-04","","SHADOW","0px 8px 16px 0px rgba(0,0,0,0.06), 0px 4px 9px 0px rgba(0,0,0,0.14), 0px 2px 3px 0px rgba(0,0,0,0.06)"),shadowElevation06:e.create("--ft-shadow-elevation-06","","SHADOW","0px 12px 22px 0px rgba(0,0,0,0.06), 0px 6px 13px 0px rgba(0,0,0,0.14), 0px 4px 5px 0px rgba(0,0,0,0.06)"),shadowElevation08:e.create("--ft-shadow-elevation-08","","SHADOW","0px 16px 28px 0px rgba(0,0,0,0.06), 0px 8px 17px 0px rgba(0,0,0,0.14), 0px 6px 7px 0px rgba(0,0,0,0.06)"),shadowElevation12:e.create("--ft-shadow-elevation-12","","SHADOW","0px 22px 40px 0px rgba(0,0,0,0.06), 0px 12px 23px 0px rgba(0,0,0,0.14), 0px 10px 11px 0px rgba(0,0,0,0.06)"),shadowElevation16:e.create("--ft-shadow-elevation-16","","SHADOW","0px 28px 52px 0px rgba(0,0,0,0.06), 0px 16px 29px 0px rgba(0,0,0,0.14), 0px 14px 15px 0px rgba(0,0,0,0.06)"),shadowElevation24:e.create("--ft-shadow-elevation-24","","SHADOW","0px 40px 76px 0px rgba(0,0,0,0.06), 0px 24px 41px 0px rgba(0,0,0,0.14), 0px 22px 23px 0px rgba(0,0,0,0.06)")},Yi={fontFamily:e.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:e.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:e.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:e.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:e.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:e.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:e.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:e.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:e.create("--ft-typography-display-textCase","","UNKNOWN","none")},qi={fontFamily:e.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:e.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:e.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:e.create("--ft-typography-title-1-fontSize","","SIZE","1.5rem"),letterSpacing:e.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:e.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:e.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:e.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:e.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},Xi={fontFamily:e.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:e.create("--ft-typography-title-2-fontWeight","","UNKNOWN","500"),lineHeight:e.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:e.create("--ft-typography-title-2-fontSize","","SIZE","1.25rem"),letterSpacing:e.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:e.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:e.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:e.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:e.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},Qi={fontFamily:e.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:e.create("--ft-typography-title-3-fontWeight","","UNKNOWN","500"),lineHeight:e.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:e.create("--ft-typography-title-3-fontSize","","SIZE","1.125rem"),letterSpacing:e.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:e.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:e.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:e.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:e.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},Ji={fontFamily:e.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:e.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:e.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:e.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:e.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:e.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:e.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:e.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:e.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},tn={fontFamily:e.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:e.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:e.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:e.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:e.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:e.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:e.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:e.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:e.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},en={fontFamily:e.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:e.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:e.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:e.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:e.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:e.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:e.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:e.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:e.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},on={fontFamily:e.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:e.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:e.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:e.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:e.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:e.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:e.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:e.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:e.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},rn={fontFamily:e.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:e.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:e.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:e.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:e.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:e.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:e.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:e.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:e.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},Ol={fontFamily:e.create("--ft-typography-body-2-medium-underline-fontFamily","","UNKNOWN","Inter"),fontWeight:e.create("--ft-typography-body-2-medium-underline-fontWeight","","UNKNOWN","500"),lineHeight:e.create("--ft-typography-body-2-medium-underline-lineHeight","","SIZE","135%"),fontSize:e.create("--ft-typography-body-2-medium-underline-fontSize","","SIZE","0.875rem"),letterSpacing:e.create("--ft-typography-body-2-medium-underline-letterSpacing","","SIZE","normal"),paragraphSpacing:e.create("--ft-typography-body-2-medium-underline-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:e.create("--ft-typography-body-2-medium-underline-paragraphIndent","","UNKNOWN","0"),textCase:e.create("--ft-typography-body-2-medium-underline-textCase","","UNKNOWN","none"),textDecoration:e.create("--ft-typography-body-2-medium-underline-textDecoration","","UNKNOWN","underline")},nn={fontFamily:e.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:e.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:e.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:e.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:e.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:e.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:e.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:e.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:e.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},an={fontFamily:e.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:e.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:e.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:e.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:e.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:e.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:e.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:e.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:e.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},sn={fontFamily:e.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:e.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:e.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:e.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:e.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:e.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:e.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:e.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:e.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},ln={fontFamily:e.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:e.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:e.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:e.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:e.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:e.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:e.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:e.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:e.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},cn={fontFamily:e.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:e.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:e.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:e.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:e.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:e.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:e.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:e.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:e.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},dn={fontFamily:e.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:e.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:e.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:e.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:e.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:e.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:e.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:e.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:e.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},pn={fontFamily:e.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:e.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:e.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:e.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:e.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:e.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:e.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:e.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:e.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},fn={fontFamily:e.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:e.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:e.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:e.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:e.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:e.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:e.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:e.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:e.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},un={fontFamily:e.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:e.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:e.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:e.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:e.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:e.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:e.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:e.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:e.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},hn={fontFamily:e.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:e.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:e.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:e.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:e.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:e.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:e.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:e.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:e.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},mn={fontFamily:e.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:e.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:e.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:e.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:e.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:e.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:e.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:e.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:e.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},gn={fontFamily:e.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:e.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:e.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:e.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:e.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:e.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:e.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:e.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:e.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},yn={fontFamily:e.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:e.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:e.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:e.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:e.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:e.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:e.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:e.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:e.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")},bn={fontFamily:e.create("--ft-typography-caption-3-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:e.create("--ft-typography-caption-3-medium-fontWeight","","UNKNOWN","500"),lineHeight:e.create("--ft-typography-caption-3-medium-lineHeight","","SIZE","130%"),fontSize:e.create("--ft-typography-caption-3-medium-fontSize","","SIZE","0.625rem"),letterSpacing:e.create("--ft-typography-caption-3-medium-letterSpacing","","SIZE","normal"),textCase:e.create("--ft-typography-caption-3-medium-textCase","","UNKNOWN","none"),paragraphSpacing:e.create("--ft-typography-caption-3-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:e.create("--ft-typography-caption-3-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:e.create("--ft-typography-caption-3-medium-textDecoration","","UNKNOWN","none")},xn={fontFamily:e.create("--ft-typography-caption-3-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:e.create("--ft-typography-caption-3-semibold-fontWeight","","UNKNOWN","600"),lineHeight:e.create("--ft-typography-caption-3-semibold-lineHeight","","SIZE","130%"),fontSize:e.create("--ft-typography-caption-3-semibold-fontSize","","SIZE","0.625rem"),letterSpacing:e.create("--ft-typography-caption-3-semibold-letterSpacing","","SIZE","normal"),textCase:e.create("--ft-typography-caption-3-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:e.create("--ft-typography-caption-3-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:e.create("--ft-typography-caption-3-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:e.create("--ft-typography-caption-3-semibold-textDecoration","","UNKNOWN","none")},vn={fontFamily:e.create("--ft-typography-caption-3-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:e.create("--ft-typography-caption-3-bold-fontWeight","","UNKNOWN","700"),lineHeight:e.create("--ft-typography-caption-3-bold-lineHeight","","SIZE","130%"),fontSize:e.create("--ft-typography-caption-3-bold-fontSize","","SIZE","0.625rem"),letterSpacing:e.create("--ft-typography-caption-3-bold-letterSpacing","","SIZE","normal"),textCase:e.create("--ft-typography-caption-3-bold-textCase","","UNKNOWN","none"),paragraphSpacing:e.create("--ft-typography-caption-3-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:e.create("--ft-typography-caption-3-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:e.create("--ft-typography-caption-3-bold-textDecoration","","UNKNOWN","none")},Zo={display:Yi,"title-1":qi,"title-2":Xi,"title-3":Qi,"body-1-regular":Ji,"body-1-medium":tn,"body-1-semibold":en,"body-2-regular":on,"body-2-medium":rn,"body-2-medium-underline":Ol,"body-2-semibold":nn,"label-1-medium":an,"label-1-semibold":sn,"label-1-bold":ln,"label-2-medium":cn,"label-2-semibold":dn,"label-2-bold":pn,"caption-1-medium":fn,"caption-1-semibold":un,"caption-1-bold":hn,"caption-2-medium":mn,"caption-2-semibold":gn,"caption-2-bold":yn,"caption-3-medium":bn,"caption-3-semibold":xn,"caption-3-bold":vn};var d={backgroundActionPrimary:e.extend("--ft-background-action-primary","Used as backgorund of primary action components.",l.colorBrand0),backgroundErrorSubtle:e.extend("--ft-background-error-subtle","Used as background of subtle error components.",l.colorRed10),backgroundInfoSubtle:e.extend("--ft-background-info-subtle","Used as background of subtle information components.",l.colorCyan10),backgroundWarningSubtle:e.extend("--ft-background-warning-subtle","Used as background of subtle information components.",l.colorOrange10),backgroundSuccessSubtle:e.extend("--ft-background-success-subtle","Used as background of subtle success components.",l.colorGreen10),backgroundGlobalSurface:e.extend("--ft-background-global-surface","Used as app background.",l.colorWhite),backgroundGlobalOnSurface:e.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",l.colorGray10),backgroundGlobalOnSurfaceDark:e.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",l.colorGray30),contentActionPrimary:e.extend("--ft-content-action-primary","Used on label of primary action on light surface.",l.colorBrand0),contentWarningPrimary:e.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",l.colorOrange200),contentWarningIconOnly:e.extend("--ft-content-warning-icon-only","Used on warning status icons alone",l.colorOrange0),contentErrorPrimary:e.extend("--ft-content-error-primary","Used on label of error messages on light surface.",l.colorRed0),contentErrorIconOnly:e.extend("--ft-content-error-icon-only","Used on error status icons alone",l.colorRed70),contentInfoPrimary:e.extend("--ft-content-info-primary","Used on label of information messages on light surface.",l.colorCyan200),contentInfoIconOnly:e.extend("--ft-content-info-icon-only","Used on info status icons alone",l.colorCyan0),contentSuccessPrimary:e.extend("--ft-content-success-primary","Used on label of success messages on light surface.",l.colorGreen200),contentSuccessIconOnly:e.extend("--ft-content-success-icon-only","Used on success status icons alone",l.colorGreen0),contentGlobalPrimary:e.extend("--ft-content-global-primary","Used for main content on the page.",l.colorGray500),contentGlobalSecondary:e.extend("--ft-content-global-secondary",`Used for secondary content, often paired with primary content.
114
- Also for action icons.`,l.colorGray200),contentGlobalSubtle:e.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",l.colorGray0),contentGlobalOnColor:e.extend("--ft-content-global-on-color","Used for content on a dominant color.",l.colorWhite),borderActionPrimary:e.extend("--ft-border-action-primary","Used as border for primary action components.",l.colorBrand0),borderActionFocusRing:e.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",l.colorCyan0),borderWarningPrimary:e.extend("--ft-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",l.colorOrange200),borderWarningSubtle:e.extend("--ft-border-warning-subtle","Used as border for warning components.",l.colorOrange30),borderSuccessPrimary:e.extend("--ft-border-success-primary","Used as border for success buttons.",l.colorGreen200),borderSuccessSubtle:e.extend("--ft-border-success-subtle","Used as border for success components.",l.colorGreen30),borderErrorPrimary:e.extend("--ft-border-error-primary","Used as border for text fields in error states.",l.colorRed0),borderErrorSubtle:e.extend("--ft-border-error-subtle","Used as border for error components.",l.colorRed30),borderInfoPrimary:e.extend("--ft-border-info-primary","Used as border for buttons in info color.",l.colorCyan200),borderInfoSubtle:e.extend("--ft-border-info-subtle","Used as border for information components.",l.colorCyan30),borderGlobalPrimary:e.extend("--ft-border-global-primary","Used as border for element like input.",l.colorGray50),borderGlobalSubtle:e.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",l.colorGray30),borderInputPrimary:e.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",l.colorGray80)};var v={largeHeight:e.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:e.extend("--ft-button-large-horizontal-padding","",l.spacing4),largeGap:e.extend("--ft-button-large-gap","",l.spacing2),largeBorderRadius:e.extend("--ft-button-large-border-radius","",l.borderRadiusS),largeIconSize:e.extend("--ft-button-large-icon-size","",l.iconSize3),largeBorderWidth:e.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:e.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:e.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:e.create("--ft-button-large-icon-only-width","","SIZE","40px"),smallHeight:e.create("--ft-button-small-height","","SIZE","30px"),smallHorizontalPadding:e.extend("--ft-button-small-horizontal-padding","",l.spacing3),smallGap:e.extend("--ft-button-small-gap","",l.spacing2),smallBorderRadius:e.extend("--ft-button-small-border-radius","",l.borderRadiusS),smallIconSize:e.extend("--ft-button-small-icon-size","",l.iconSize2),smallBorderWidth:e.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:e.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:e.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:e.create("--ft-button-small-icon-only-width","","SIZE","30px"),primaryBackgroundColor:e.extend("--ft-button-primary-background-color","",d.backgroundActionPrimary),primaryColor:e.extend("--ft-button-primary-color","",d.contentGlobalOnColor),primaryIconColor:e.extend("--ft-button-primary-icon-color","",d.contentGlobalOnColor),primaryStateLayerColor:e.extend("--ft-button-primary-state-layer-color","",d.contentGlobalOnColor),primaryHoverStateLayerOpacity:e.extend("--ft-button-primary-hover-state-layer-opacity","",l.opacity16),primaryFocusStateLayerOpacity:e.extend("--ft-button-primary-focus-state-layer-opacity","",l.opacity16),primaryActiveStateLayerOpacity:e.extend("--ft-button-primary-active-state-layer-opacity","",l.opacity24),primaryDisabledComponentOpacity:e.extend("--ft-button-primary-disabled-component-opacity","",l.opacity40),focusFocusRingColor:e.extend("--ft-button-focus-focus-ring-color","",d.borderActionFocusRing),tertiaryBackgroundColor:e.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:e.extend("--ft-button-tertiary-color","",d.contentActionPrimary),tertiaryIconColor:e.extend("--ft-button-tertiary-icon-color","",d.contentActionPrimary),tertiaryStateLayerColor:e.extend("--ft-button-tertiary-state-layer-color","",d.contentActionPrimary),tertiaryHoverStateLayerOpacity:e.extend("--ft-button-tertiary-hover-state-layer-opacity","",l.opacity8),tertiaryFocusStateLayerOpacity:e.extend("--ft-button-tertiary-focus-state-layer-opacity","",l.opacity8),tertiaryActiveStateLayerOpacity:e.extend("--ft-button-tertiary-active-state-layer-opacity","",l.opacity16),tertiaryDisabledComponentOpacity:e.extend("--ft-button-tertiary-disabled-component-opacity","",l.opacity40),secondaryBackgroundColor:e.create("--ft-button-secondary-background-color","","COLOR","rgba(0,0,0,0)"),secondaryColor:e.extend("--ft-button-secondary-color","",d.contentActionPrimary),secondaryIconColor:e.extend("--ft-button-secondary-icon-color","",d.contentActionPrimary),secondaryStateLayerColor:e.extend("--ft-button-secondary-state-layer-color","",d.contentActionPrimary),secondaryHoverStateLayerOpacity:e.extend("--ft-button-secondary-hover-state-layer-opacity","",l.opacity8),secondaryFocusStateLayerOpacity:e.extend("--ft-button-secondary-focus-state-layer-opacity","",l.opacity8),secondaryActiveStateLayerOpacity:e.extend("--ft-button-secondary-active-state-layer-opacity","",l.opacity16),secondaryDisabledComponentOpacity:e.extend("--ft-button-secondary-disabled-component-opacity","",l.opacity40),secondaryBorderColor:e.extend("--ft-button-secondary-border-color","",d.borderActionPrimary),neutralBackgroundColor:e.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:e.extend("--ft-button-neutral-icon-color","",d.contentGlobalSecondary),neutralColor:e.extend("--ft-button-neutral-color","",d.contentGlobalSecondary),neutralStateLayerColor:e.extend("--ft-button-neutral-state-layer-color","",d.contentGlobalSecondary),neutralHoverStateLayerOpacity:e.extend("--ft-button-neutral-hover-state-layer-opacity","",l.opacity8),neutralFocusStateLayerOpacity:e.extend("--ft-button-neutral-focus-state-layer-opacity","",l.opacity8),neutralActiveStateLayerOpacity:e.extend("--ft-button-neutral-active-state-layer-opacity","",l.opacity16),neutralDisabledComponentOpacity:e.extend("--ft-button-neutral-disabled-component-opacity","",l.opacity40)};var Cc={focusOpacity:e.extend("--ft-link-focus-opacity","",l.opacity80),focusFocusRingColor:e.extend("--ft-link-focus-focus-ring-color","",d.borderActionFocusRing),brandColor:e.extend("--ft-link-brand-color","",d.contentActionPrimary),infoColor:e.extend("--ft-link-info-color","",d.contentInfoPrimary)};var Ac={iconSize:e.extend("--ft-banner-icon-size","",l.iconSize5),borderWidth:e.create("--ft-banner-border-width","","SIZE","1px"),horizontalPadding:e.extend("--ft-banner-horizontal-padding","",l.spacing6),verticalPadding:e.extend("--ft-banner-vertical-padding","",l.spacing6),horizontalSideGap:e.extend("--ft-banner-horizontal-side-gap","",l.spacing6),horizontalMobileGap:e.extend("--ft-banner-horizontal-mobile-gap","",l.spacing4),verticalMobileGap:e.extend("--ft-banner-vertical-mobile-gap","",l.spacing6),horizontalMiddleGap:e.extend("--ft-banner-horizontal-middle-gap","",l.spacing20),infoBackgroundColor:e.extend("--ft-banner-info-background-color","",d.backgroundInfoSubtle),infoColor:e.extend("--ft-banner-info-color","",d.contentInfoPrimary),infoIconColor:e.extend("--ft-banner-info-icon-color","",d.contentInfoIconOnly),infoBorderColor:e.extend("--ft-banner-info-border-color","",d.borderInfoSubtle)};var Lc={horizontalPadding:e.extend("--ft-badge-horizontal-padding","",l.spacing1),verticalPadding:e.extend("--ft-badge-vertical-padding","",l.spacing1),borderRadius:e.extend("--ft-badge-border-radius","",l.borderRadiusPill),color:e.extend("--ft-badge-color","",d.contentGlobalOnColor),backgroundColor:e.extend("--ft-badge-background-color","",d.contentActionPrimary)};var Bc={horizontalGap:e.extend("--ft-breadcrumb-horizontal-gap","",l.spacing1),verticalGap:e.extend("--ft-breadcrumb-vertical-gap","",l.spacing2),currentColor:e.extend("--ft-breadcrumb-current-color","",d.contentGlobalPrimary),previousNonClickableColor:e.extend("--ft-breadcrumb-previous-non-clickable-color","",d.contentGlobalSecondary),iconColor:e.extend("--ft-breadcrumb-icon-color","",d.contentGlobalSubtle)};var Wc={horizontalPadding:e.extend("--ft-page-header-horizontal-padding","",l.spacing12),horizontalGap:e.extend("--ft-page-header-horizontal-gap","",l.spacing4),verticalGap:e.extend("--ft-page-header-vertical-gap","",l.spacing2),classicVerticalPadding:e.extend("--ft-page-header-classic-vertical-padding","",l.spacing6),multilineVerticalPadding:e.extend("--ft-page-header-multiline-vertical-padding","",l.spacing4),inlineVerticalPadding:e.extend("--ft-page-header-inline-vertical-padding","",l.spacing2),backgroundColor:e.extend("--ft-page-header-background-color","",l.colorWhite),bottomBorderColor:e.extend("--ft-page-header-bottom-border-color","",d.borderGlobalSubtle),titleColor:e.extend("--ft-page-header-title-color","",d.contentGlobalPrimary),subtitleColor:e.extend("--ft-page-header-subtitle-color","",d.contentGlobalSecondary)};var Zc={smallContainerWidth:e.create("--ft-modal-small-container-width","","SIZE","600px"),largeContainerWidth:e.create("--ft-modal-large-container-width","","SIZE","900px"),overlayBackgroundColor:e.extend("--ft-modal-overlay-background-color","",l.colorGray700),overlayOpacity:e.extend("--ft-modal-overlay-opacity","",l.opacity40),shadow:e.extend("--ft-modal-shadow","",l.shadowElevation03),bodyBackgroundColor:e.extend("--ft-modal-body-background-color","",l.colorWhite),bodyColor:e.extend("--ft-modal-body-color","",d.contentGlobalPrimary),bodyHorizontalPadding:e.extend("--ft-modal-body-horizontal-padding","",l.spacing6),bodyVerticalPadding:e.extend("--ft-modal-body-vertical-padding","",l.spacing6),bodyVerticalGap:e.extend("--ft-modal-body-vertical-gap","",l.spacing6),containerMargin:e.extend("--ft-modal-container-margin","",l.spacing3),headerBackgroundColor:e.extend("--ft-modal-header-background-color","",d.backgroundGlobalOnSurface),headerBorderColor:e.extend("--ft-modal-header-border-color","",d.borderGlobalSubtle),headerColor:e.extend("--ft-modal-header-color","",d.contentGlobalPrimary),headerTrailingIconColor:e.extend("--ft-modal-header-trailing-icon-color","",d.contentGlobalSecondary),headerVerticalPadding:e.extend("--ft-modal-header-vertical-padding","",l.spacing1),headerRightPadding:e.extend("--ft-modal-header-right-padding","",l.spacing1),headerLeftPadding:e.extend("--ft-modal-header-left-padding","",l.spacing6),headerGap:e.extend("--ft-modal-header-gap","",l.spacing2),headerBorderBottom:e.create("--ft-modal-header-border-bottom","","SIZE","1px"),borderRadius:e.extend("--ft-modal-border-radius","",l.borderRadiusM)};var Qc={overlayOpacity:e.extend("--ft-drawer-overlay-opacity","",l.opacity40),shadow:e.extend("--ft-drawer-shadow","",l.shadowElevation03),bodyColor:e.extend("--ft-drawer-body-color","",d.contentGlobalPrimary),bodyHorizontalPadding:e.extend("--ft-drawer-body-horizontal-padding","",l.spacing6),bodyVerticalPadding:e.extend("--ft-drawer-body-vertical-padding","",l.spacing6),bodyGap:e.extend("--ft-drawer-body-gap","",l.spacing6),bodyBackgroundColor:e.extend("--ft-drawer-body-background-color","",l.colorWhite),headerBackgroundColor:e.extend("--ft-drawer-header-background-color","",d.backgroundGlobalOnSurface),headerBorderColor:e.extend("--ft-drawer-header-border-color","",d.borderGlobalSubtle),headerColor:e.extend("--ft-drawer-header-color","",d.contentGlobalPrimary),headerTrailingIconColor:e.extend("--ft-drawer-header-trailing-icon-color","",d.contentGlobalSecondary),headerHeight:e.create("--ft-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:e.extend("--ft-drawer-header-horizontal-padding","",l.spacing2),headerBorderWidth:e.create("--ft-drawer-header-border-width","","SIZE","1px"),headerGap:e.extend("--ft-drawer-header-gap","",l.spacing3),buttonsBarBackgroundColor:e.extend("--ft-drawer-buttons-bar-background-color","",d.backgroundGlobalOnSurface),buttonsBarBorderColor:e.extend("--ft-drawer-buttons-bar-border-color","",d.borderGlobalSubtle),buttonsBarColor:e.extend("--ft-drawer-buttons-bar-color","",d.contentGlobalPrimary),buttonsBarHorizontalPadding:e.extend("--ft-drawer-buttons-bar-horizontal-padding","",l.spacing4),buttonsBarVerticalPadding:e.extend("--ft-drawer-buttons-bar-vertical-padding","",l.spacing4),buttonsBarGap:e.extend("--ft-drawer-buttons-bar-gap","",l.spacing3),buttonsBarBorderWidth:e.create("--ft-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:e.create("--ft-drawer-container-width","","SIZE","66%"),containerMinWidth:e.create("--ft-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:e.create("--ft-drawer-container-max-width","","SIZE","1000px"),containerHeight:e.create("--ft-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:e.extend("--ft-drawer-overlay-background-color","",l.colorGray700)};var rd={fieldHorizontalPadding:e.extend("--ft-text-input-field-horizontal-padding","",l.spacing4),fieldHorizontalGap:e.extend("--ft-text-input-field-horizontal-gap","",l.spacing3),fieldVerticalGap:e.extend("--ft-text-input-field-vertical-gap","",l.spacing05),fieldIconSize:e.extend("--ft-text-input-field-icon-size","",l.iconSize3),fieldHeight:e.create("--ft-text-input-field-height","","SIZE","50px"),helperHorizontalPadding:e.extend("--ft-text-input-helper-horizontal-padding","",l.spacing4),helperHorizontalGap:e.extend("--ft-text-input-helper-horizontal-gap","",l.spacing1),helperIconSize:e.extend("--ft-text-input-helper-icon-size","",l.iconSize2),borderRadius:e.extend("--ft-text-input-border-radius","",l.borderRadiusM),backgroundColor:e.extend("--ft-text-input-background-color","",l.colorWhite),contentValueColor:e.extend("--ft-text-input-content-value-color","",d.contentGlobalPrimary),trailingIconColor:e.extend("--ft-text-input-trailing-icon-color","",d.contentGlobalSubtle),labelColor:e.extend("--ft-text-input-label-color","",d.contentGlobalSubtle),defaultBorderColor:e.extend("--ft-text-input-default-border-color","",d.borderInputPrimary),defaultHelperTextColor:e.extend("--ft-text-input-default-helper-text-color","",d.contentGlobalSubtle),defaultBorderWidth:e.create("--ft-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:e.create("--ft-text-input-error-border-width","","SIZE","2px"),errorBorderColor:e.extend("--ft-text-input-error-border-color","",d.borderErrorPrimary),errorHelperTextColor:e.extend("--ft-text-input-error-helper-text-color","",d.contentErrorPrimary),errorHelperIconColor:e.extend("--ft-text-input-error-helper-icon-color","",d.contentErrorIconOnly),warningBorderWidth:e.create("--ft-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:e.create("--ft-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:e.extend("--ft-text-input-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineOffset:e.create("--ft-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:e.extend("--ft-text-input-disabled-component-opacity","",l.opacity40)};var ld={backgroundColor:e.extend("--ft-text-area-background-color","",l.colorWhite),contentValueColor:e.extend("--ft-text-area-content-value-color","",d.contentGlobalPrimary),labelColor:e.extend("--ft-text-area-label-color","",d.contentGlobalSubtle),defaultBorderColor:e.extend("--ft-text-area-default-border-color","",d.borderInputPrimary),defaultHelperTextColor:e.extend("--ft-text-area-default-helper-text-color","",d.contentGlobalSubtle),defaultBorderWidth:e.create("--ft-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:e.create("--ft-text-area-error-border-width","","SIZE","2px"),errorBorderColor:e.extend("--ft-text-area-error-border-color","",d.borderErrorPrimary),errorHelperTextColor:e.extend("--ft-text-area-error-helper-text-color","",d.contentErrorPrimary),errorHelperIconColor:e.extend("--ft-text-area-error-helper-icon-color","",d.contentErrorIconOnly),focusFocusRingColor:e.extend("--ft-text-area-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineWidth:e.create("--ft-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:e.create("--ft-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:e.extend("--ft-text-area-disabled-component-opacity","",l.opacity40),fieldHorizontalLeftPadding:e.extend("--ft-text-area-field-horizontal-left-padding","",l.spacing4),fieldHorizontalGap:e.extend("--ft-text-area-field-horizontal-gap","",l.spacing3),fieldVerticalGap:e.extend("--ft-text-area-field-vertical-gap","",l.spacing05),fieldMinHeight:e.create("--ft-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:e.extend("--ft-text-area-helper-horizontal-padding","",l.spacing4),helperHorizontalGap:e.extend("--ft-text-area-helper-horizontal-gap","",l.spacing1),helperIconSize:e.extend("--ft-text-area-helper-icon-size","",l.iconSize2),borderRadius:e.extend("--ft-text-area-border-radius","",l.borderRadiusM)};var ud={height:e.create("--ft-floating-menu-height","","SIZE","50px"),horizontalPadding:e.extend("--ft-floating-menu-horizontal-padding","",l.spacing4),offIconColor:e.extend("--ft-floating-menu-off-icon-color","",d.contentGlobalPrimary),offColor:e.extend("--ft-floating-menu-off-color","",d.contentGlobalPrimary),onColor:e.extend("--ft-floating-menu-on-color","",d.contentActionPrimary),onStateLayerColor:e.extend("--ft-floating-menu-on-state-layer-color","",d.contentActionPrimary),gap:e.extend("--ft-floating-menu-gap","",l.spacing3),focusFocusRingColor:e.extend("--ft-floating-menu-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineWidth:e.create("--ft-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:e.extend("--ft-floating-menu-focus-state-layer-opacity","",l.opacity8),hoverStateLayerOpacity:e.extend("--ft-floating-menu-hover-state-layer-opacity","",l.opacity8),activeStateLayerOpacity:e.extend("--ft-floating-menu-active-state-layer-opacity","",l.opacity16),disabledComponentOpacity:e.extend("--ft-floating-menu-disabled-component-opacity","",l.opacity40),iconSize:e.extend("--ft-floating-menu-icon-size","",l.iconSize3),backgroundColor:e.extend("--ft-floating-menu-background-color","",d.backgroundGlobalOnSurface)};var bd={fieldHorizontalPadding:e.extend("--ft-combobox-single-select-field-horizontal-padding","",l.spacing4),fieldHorizontalGap:e.extend("--ft-combobox-single-select-field-horizontal-gap","",l.spacing3),fieldVerticalGap:e.extend("--ft-combobox-single-select-field-vertical-gap","",l.spacing05),fieldIconSize:e.extend("--ft-combobox-single-select-field-icon-size","",l.iconSize3),fieldHeight:e.create("--ft-combobox-single-select-field-height","","SIZE","50px"),helperHorizontalPadding:e.extend("--ft-combobox-single-select-helper-horizontal-padding","",l.spacing4),helperHorizontalGap:e.extend("--ft-combobox-single-select-helper-horizontal-gap","",l.spacing1),helperVerticalGap:e.extend("--ft-combobox-single-select-helper-vertical-gap","",l.spacing1),helperIconSize:e.extend("--ft-combobox-single-select-helper-icon-size","",l.iconSize2),menuVerticalGap:e.extend("--ft-combobox-single-select-menu-vertical-gap","",l.spacing2),borderRadius:e.extend("--ft-combobox-single-select-border-radius","",l.borderRadiusM),backgroundColor:e.extend("--ft-combobox-single-select-background-color","",l.colorWhite),labelColor:e.extend("--ft-combobox-single-select-label-color","",d.contentGlobalSubtle),contentValueColor:e.extend("--ft-combobox-single-select-content-value-color","",d.contentGlobalPrimary),trailingIconColor:e.extend("--ft-combobox-single-select-trailing-icon-color","",d.contentGlobalSubtle),defaultBorderColor:e.extend("--ft-combobox-single-select-default-border-color","",d.borderInputPrimary),defaultHelperTextColor:e.extend("--ft-combobox-single-select-default-helper-text-color","",d.contentGlobalSubtle),defaultBorderWidth:e.create("--ft-combobox-single-select-default-border-width","","SIZE","1px"),errorBorderWidth:e.create("--ft-combobox-single-select-error-border-width","","SIZE","2px"),errorBorderColor:e.extend("--ft-combobox-single-select-error-border-color","",d.borderErrorPrimary),errorHelperTextColor:e.extend("--ft-combobox-single-select-error-helper-text-color","",d.contentErrorPrimary),warningBorderWidth:e.create("--ft-combobox-single-select-warning-border-width","","SIZE","2px"),warningBorderColor:e.extend("--ft-combobox-single-select-warning-border-color","",d.borderWarningPrimary),warningHelperTextColor:e.extend("--ft-combobox-single-select-warning-helper-text-color","",d.contentWarningPrimary),warningHelperIconColor:e.extend("--ft-combobox-single-select-warning-helper-icon-color","",d.contentWarningIconOnly),focusOutlineWidth:e.create("--ft-combobox-single-select-focus-outline-width","","SIZE","2px"),focusFocusRingColor:e.extend("--ft-combobox-single-select-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineOffset:e.create("--ft-combobox-single-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:e.extend("--ft-combobox-single-select-disabled-component-opacity","",l.opacity40)};var Od={backgroundColor:e.extend("--ft-combobox-multi-select-background-color","",l.colorWhite),labelColor:e.extend("--ft-combobox-multi-select-label-color","",d.contentGlobalSubtle),trailingIconColor:e.extend("--ft-combobox-multi-select-trailing-icon-color","",d.contentGlobalSubtle),defaultBorderColor:e.extend("--ft-combobox-multi-select-default-border-color","",d.borderInputPrimary),defaultHelperTextColor:e.extend("--ft-combobox-multi-select-default-helper-text-color","",d.contentGlobalSubtle),defaultBorderWidth:e.create("--ft-combobox-multi-select-default-border-width","","SIZE","1px"),errorBorderColor:e.extend("--ft-combobox-multi-select-error-border-color","",d.borderErrorPrimary),errorHelperTextColor:e.extend("--ft-combobox-multi-select-error-helper-text-color","",d.contentErrorPrimary),errorHelperIcon:e.extend("--ft-combobox-multi-select-error-helper-icon","",d.contentErrorIconOnly),errorBorderWidth:e.create("--ft-combobox-multi-select-error-border-width","","SIZE","2px"),warningBorderColor:e.extend("--ft-combobox-multi-select-warning-border-color","",d.borderWarningPrimary),warningHelperTextColor:e.extend("--ft-combobox-multi-select-warning-helper-text-color","",d.contentWarningPrimary),warningHelperIconColor:e.extend("--ft-combobox-multi-select-warning-helper-icon-color","",d.contentWarningIconOnly),warningBorderWidth:e.create("--ft-combobox-multi-select-warning-border-width","","SIZE","2px"),focusFocusRingColor:e.extend("--ft-combobox-multi-select-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineWidth:e.create("--ft-combobox-multi-select-focus-outline-width","","SIZE","2px"),focusOutlineOffset:e.create("--ft-combobox-multi-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:e.extend("--ft-combobox-multi-select-disabled-component-opacity","",l.opacity40),helperHorizontalPadding:e.extend("--ft-combobox-multi-select-helper-horizontal-padding","",l.spacing4),helperHorizontalGap:e.extend("--ft-combobox-multi-select-helper-horizontal-gap","",l.spacing1),helperVerticalGap:e.extend("--ft-combobox-multi-select-helper-vertical-gap","",l.spacing1),helperIconSize:e.extend("--ft-combobox-multi-select-helper-icon-size","",l.iconSize2),fieldHorizontalPadding:e.extend("--ft-combobox-multi-select-field-horizontal-padding","",l.spacing4),fieldHorizontalGap:e.extend("--ft-combobox-multi-select-field-horizontal-gap","",l.spacing3),fieldVerticalGap:e.extend("--ft-combobox-multi-select-field-vertical-gap","",l.spacing05),fieldIconSize:e.extend("--ft-combobox-multi-select-field-icon-size","",l.iconSize3),fieldMaxHeight:e.create("--ft-combobox-multi-select-field-max-height","","SIZE","112px"),contentValuesHorizontalGap:e.extend("--ft-combobox-multi-select-content-values-horizontal-gap","",l.spacing1),contentValuesVerticalGap:e.extend("--ft-combobox-multi-select-content-values-vertical-gap","",l.spacing1),borderRadius:e.extend("--ft-combobox-multi-select-border-radius","",l.borderRadiusM)};var Id={backgroundColor:e.extend("--ft-popover-background-color","",d.backgroundGlobalOnSurface),horizontalPadding:e.extend("--ft-popover-horizontal-padding","",l.spacing6),verticalPadding:e.extend("--ft-popover-vertical-padding","",l.spacing6),iconColor:e.extend("--ft-popover-icon-color","",d.contentGlobalSecondary),iconSize:e.extend("--ft-popover-icon-size","",l.iconSize2),titleColor:e.extend("--ft-popover-title-color","",d.contentGlobalPrimary),bodyColor:e.extend("--ft-popover-body-color","",d.contentGlobalSecondary),linkColor:e.extend("--ft-popover-link-color","",d.contentActionPrimary),gap:e.extend("--ft-popover-gap","",l.spacing3),borderRadius:e.extend("--ft-popover-border-radius","",l.borderRadiusM),shadow:e.extend("--ft-popover-shadow","",l.shadowElevation02)};var kd={topLeftBorderRadius:e.extend("--ft-tabs-top-left-border-radius","",l.borderRadiusS),topRightBorderRadius:e.extend("--ft-tabs-top-right-border-radius","",l.borderRadiusS),withLabelHorizontalPadding:e.extend("--ft-tabs-with-label-horizontal-padding","",l.spacing4),withLabelVerticalPadding:e.extend("--ft-tabs-with-label-vertical-padding","",l.spacing3),horizontalGap:e.extend("--ft-tabs-horizontal-gap","",l.spacing1),verticalGap:e.extend("--ft-tabs-vertical-gap","",l.spacing1),offHoverStateLayerOpacity:e.extend("--ft-tabs-off-hover-state-layer-opacity","",l.opacity8),offFocusStateLayerOpacity:e.extend("--ft-tabs-off-focus-state-layer-opacity","",l.opacity8),offDisabledComponentOpacity:e.extend("--ft-tabs-off-disabled-component-opacity","",l.opacity40),offColor:e.extend("--ft-tabs-off-color","",d.contentGlobalSubtle),offStateLayerColor:e.extend("--ft-tabs-off-state-layer-color","",d.contentGlobalSubtle),onHoverStateLayerOpacity:e.extend("--ft-tabs-on-hover-state-layer-opacity","",l.opacity8),onFocusStateLayerOpacity:e.extend("--ft-tabs-on-focus-state-layer-opacity","",l.opacity8),onActiveStateLayerOpacity:e.extend("--ft-tabs-on-active-state-layer-opacity","",l.opacity16),onDisabledComponentOpacity:e.extend("--ft-tabs-on-disabled-component-opacity","",l.opacity40),onColor:e.extend("--ft-tabs-on-color","",d.contentActionPrimary),onStateLayerColor:e.extend("--ft-tabs-on-state-layer-color","",d.contentActionPrimary),iconOnlyHorizontalPadding:e.extend("--ft-tabs-icon-only-horizontal-padding","",l.spacing4),iconOnlyVerticalPadding:e.extend("--ft-tabs-icon-only-vertical-padding","",l.spacing4),alertTopPadding:e.extend("--ft-tabs-alert-top-padding","",l.spacing1),alertRightPadding:e.extend("--ft-tabs-alert-right-padding","",l.spacing05),focusOutlineWidth:e.create("--ft-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:e.extend("--ft-tabs-focus-focus-ring-color","",d.borderActionFocusRing)};var Ud={hoverStateLayerOpacity:e.extend("--ft-collapsible-hover-state-layer-opacity","",l.opacity8),focusStateLayerOpacity:e.extend("--ft-collapsible-focus-state-layer-opacity","",l.opacity8),focusOutlineWidth:e.create("--ft-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:e.extend("--ft-collapsible-focus-focus-ring-color","",d.borderActionFocusRing),activeStateLayerOpacity:e.extend("--ft-collapsible-active-state-layer-opacity","",l.opacity16),disabledComponentOpacity:e.extend("--ft-collapsible-disabled-component-opacity","",l.opacity40),horizontalPadding:e.extend("--ft-collapsible-horizontal-padding","",l.spacing4),verticalPadding:e.extend("--ft-collapsible-vertical-padding","",l.spacing3),color:e.extend("--ft-collapsible-color","",d.contentGlobalPrimary),stateLayerColor:e.extend("--ft-collapsible-state-layer-color","",d.contentGlobalPrimary),backgroundColor:e.extend("--ft-collapsible-background-color","",d.backgroundGlobalOnSurface),borderColor:e.extend("--ft-collapsible-border-color","",d.borderGlobalSubtle),iconSize:e.extend("--ft-collapsible-icon-size","",l.iconSize3)};var Hd={groupHorizontalPadding:e.extend("--ft-switch-group-horizontal-padding","",l.spacing1),groupVerticalPadding:e.extend("--ft-switch-group-vertical-padding","",l.spacing1),groupGap:e.extend("--ft-switch-group-gap","",l.spacing1),groupBackgroundColor:e.extend("--ft-switch-group-background-color","",d.backgroundGlobalSurface),groupBorderColor:e.extend("--ft-switch-group-border-color","",d.borderGlobalSubtle),groupBorderRadius:e.create("--ft-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:e.extend("--ft-switch-label-horizontal-padding","",l.spacing2),labelVerticalPadding:e.extend("--ft-switch-label-vertical-padding","",l.spacing1),offHoverStateLayerOpacity:e.extend("--ft-switch-off-hover-state-layer-opacity","",l.opacity8),offFocusStateLayerOpacity:e.extend("--ft-switch-off-focus-state-layer-opacity","",l.opacity8),offActiveStateLayerOpacity:e.extend("--ft-switch-off-active-state-layer-opacity","",l.opacity16),offDisabledComponentOpacity:e.extend("--ft-switch-off-disabled-component-opacity","",l.opacity40),offColor:e.extend("--ft-switch-off-color","",d.contentGlobalSubtle),offStateLayerColor:e.extend("--ft-switch-off-state-layer-color","",d.contentGlobalSubtle),onHoverStateLayerOpacity:e.extend("--ft-switch-on-hover-state-layer-opacity","",l.opacity8),onFocusStateLayerOpacity:e.extend("--ft-switch-on-focus-state-layer-opacity","",l.opacity8),onActiveStateLayerOpacity:e.extend("--ft-switch-on-active-state-layer-opacity","",l.opacity16),onDisabledComponentOpacity:e.extend("--ft-switch-on-disabled-component-opacity","",l.opacity40),onColor:e.extend("--ft-switch-on-color","",d.contentActionPrimary),onStateLayerColor:e.extend("--ft-switch-on-state-layer-color","",d.contentActionPrimary),iconHorizontalPadding:e.extend("--ft-switch-icon-horizontal-padding","",l.spacing1),iconVerticalPadding:e.extend("--ft-switch-icon-vertical-padding","",l.spacing1),focusOutlineWidth:e.create("--ft-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:e.extend("--ft-switch-focus-focus-ring-color","",d.borderActionFocusRing),optionBorderRadius:e.extend("--ft-switch-option-border-radius","",l.borderRadiusS)};var Zd={color1Light:e.extend("--ft-chart-1-light","for area color charts",l.colorBrand40),color1Base:e.extend("--ft-chart-1-base","for line charts",l.colorBrand0),color2Light:e.extend("--ft-chart-2-light","for area color charts",l.colorYellow60),color2Base:e.extend("--ft-chart-2-base","for line charts",l.colorYellow100),color3Light:e.extend("--ft-chart-3-light","",l.colorUltramarine40),color3Base:e.extend("--ft-chart-3-base","",l.colorUltramarine70),color4Light:e.extend("--ft-chart-4-light","",l.colorCyan50),color4Base:e.extend("--ft-chart-4-base","",l.colorCyan100),color5Light:e.extend("--ft-chart-5-light","",l.colorRed40),color5Base:e.extend("--ft-chart-5-base","",l.colorRed60),color6Light:e.extend("--ft-chart-6-light","",l.colorGreen40),color6Base:e.extend("--ft-chart-6-base","",l.colorGreen70),color7Light:e.extend("--ft-chart-7-light","",l.colorOrange70),color7Base:e.extend("--ft-chart-7-base","",l.colorOrange100),color8Light:e.extend("--ft-chart-8-light","",l.colorAvocado70),color8Base:e.extend("--ft-chart-8-base","",l.colorAvocado200),color9Light:e.extend("--ft-chart-9-light","",l.colorBrown50),color9Base:e.extend("--ft-chart-9-base","",l.colorBrown200),color10Light:e.extend("--ft-chart-10-light","",l.colorGray50),color10Base:e.extend("--ft-chart-10-base","",l.colorGray80),monochrome10:e.extend("--ft-chart-monochrome-10","",l.colorBrand10),monochrome20:e.extend("--ft-chart-monochrome-20","",l.colorBrand20),monochrome30:e.extend("--ft-chart-monochrome-30","",l.colorBrand40),monochrome40:e.extend("--ft-chart-monochrome-40","",l.colorBrand60),monochrome50:e.extend("--ft-chart-monochrome-50","",l.colorBrand0),monochrome60:e.extend("--ft-chart-monochrome-60","",l.colorBrand200)};var Qd={largeHorizontalPadding:e.extend("--ft-chip-large-horizontal-padding","",l.spacing4),largeVerticalPadding:e.extend("--ft-chip-large-vertical-padding","",l.spacing2),largeGap:e.extend("--ft-chip-large-gap","",l.spacing1),largeFocusOutlineOffset:e.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:e.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:e.extend("--ft-chip-large-border-radius","",l.borderRadiusPill),largeBorderWidth:e.create("--ft-chip-large-border-width","","SIZE","1px"),largeIconSize:e.extend("--ft-chip-large-icon-size","",l.iconSize3),mediumHorizontalPadding:e.extend("--ft-chip-medium-horizontal-padding","",l.spacing3),mediumVerticalPadding:e.extend("--ft-chip-medium-vertical-padding","",l.spacing1),mediumGap:e.extend("--ft-chip-medium-gap","",l.spacing1),mediumFocusOutlineOffset:e.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:e.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:e.extend("--ft-chip-medium-border-radius","",l.borderRadiusPill),mediumBorderWidth:e.create("--ft-chip-medium-border-width","","SIZE","1px"),mediumIconSize:e.extend("--ft-chip-medium-icon-size","",l.iconSize2),smallHorizontalPadding:e.extend("--ft-chip-small-horizontal-padding","",l.spacing2),smallVerticalPadding:e.extend("--ft-chip-small-vertical-padding","",l.spacing05),smallGap:e.extend("--ft-chip-small-gap","",l.spacing1),smallFocusOutlineOffset:e.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:e.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:e.extend("--ft-chip-small-border-radius","",l.borderRadiusPill),smallBorderWidth:e.create("--ft-chip-small-border-width","","SIZE","1px"),smallIconSize:e.extend("--ft-chip-small-icon-size","",l.iconSize1),neutralBackgroundColor:e.extend("--ft-chip-neutral-background-color","",d.backgroundGlobalOnSurface),neutralColor:e.extend("--ft-chip-neutral-color","",d.contentGlobalSecondary),neutralIconColor:e.extend("--ft-chip-neutral-icon-color","",d.contentGlobalSecondary),neutralBorderColor:e.extend("--ft-chip-neutral-border-color","",d.borderGlobalSubtle),infoBackgroundColor:e.extend("--ft-chip-info-background-color","",d.backgroundInfoSubtle),infoColor:e.extend("--ft-chip-info-color","",d.contentInfoPrimary),infoIconColor:e.extend("--ft-chip-info-icon-color","",d.contentInfoIconOnly),infoBorderColor:e.extend("--ft-chip-info-border-color","",d.borderInfoSubtle),successBackgroundColor:e.extend("--ft-chip-success-background-color","",d.backgroundSuccessSubtle),successColor:e.extend("--ft-chip-success-color","",d.contentSuccessPrimary),successIconColor:e.extend("--ft-chip-success-icon-color","",d.contentSuccessIconOnly),successBorderColor:e.extend("--ft-chip-success-border-color","",d.borderSuccessSubtle),warningBackgroundColor:e.extend("--ft-chip-warning-background-color","",d.backgroundWarningSubtle),warningColor:e.extend("--ft-chip-warning-color","",d.contentWarningPrimary),warningIconColor:e.extend("--ft-chip-warning-icon-color","",d.contentWarningIconOnly),warningBorderColor:e.extend("--ft-chip-warning-border-color","",d.borderWarningSubtle),errorBackgroundColor:e.extend("--ft-chip-error-background-color","",d.backgroundErrorSubtle),errorColor:e.extend("--ft-chip-error-color","",d.contentErrorPrimary),errorIconColor:e.extend("--ft-chip-error-icon-color","",d.contentErrorIconOnly),errorBorderColor:e.extend("--ft-chip-error-border-color","",d.borderErrorSubtle)};var rp={borderWidth:e.create("--ft-notice-border-width","","SIZE","1px"),horizontalPadding:e.extend("--ft-notice-horizontal-padding","",l.spacing3),verticalPadding:e.extend("--ft-notice-vertical-padding","",l.spacing2),borderRadius:e.extend("--ft-notice-border-radius","",l.borderRadiusS),gap:e.extend("--ft-notice-gap","",l.spacing2),iconSize:e.extend("--ft-notice-icon-size","",l.iconSize3),infoBackgroundColor:e.extend("--ft-notice-info-background-color","",d.backgroundInfoSubtle),infoBorderColor:e.extend("--ft-notice-info-border-color","",d.borderInfoSubtle),infoColor:e.extend("--ft-notice-info-color","",d.contentInfoPrimary),infoIconColor:e.extend("--ft-notice-info-icon-color","",d.contentInfoIconOnly),warningBackgroundColor:e.extend("--ft-notice-warning-background-color","",d.backgroundWarningSubtle),warningBorderColor:e.extend("--ft-notice-warning-border-color","",d.borderWarningSubtle),warningColor:e.extend("--ft-notice-warning-color","",d.contentWarningPrimary),warningIconColor:e.extend("--ft-notice-warning-icon-color","",d.contentWarningIconOnly),errorBackgroundColor:e.extend("--ft-notice-error-background-color","",d.backgroundErrorSubtle),errorBorderColor:e.extend("--ft-notice-error-border-color","",d.borderErrorSubtle),errorColor:e.extend("--ft-notice-error-color","",d.contentErrorPrimary),errorIconColor:e.extend("--ft-notice-error-icon-color","",d.contentErrorIconOnly),successBackgroundColor:e.extend("--ft-notice-success-background-color","",d.backgroundSuccessSubtle),successBorderColor:e.extend("--ft-notice-success-border-color","",d.borderSuccessSubtle),successColor:e.extend("--ft-notice-success-color","",d.contentSuccessPrimary),successIconColor:e.extend("--ft-notice-success-icon-color","",d.contentSuccessIconOnly)};var lp={color:e.extend("--ft-checkbox-color","",d.contentGlobalPrimary),checkedBackgroundColor:e.extend("--ft-checkbox-checked-background-color","",d.contentActionPrimary),checkedStateLayerColor:e.extend("--ft-checkbox-checked-state-layer-color","",d.contentActionPrimary),checkedIconColor:e.extend("--ft-checkbox-checked-icon-color","",d.contentGlobalOnColor),checkedHoverStateLayerOpacity:e.extend("--ft-checkbox-checked-hover-state-layer-opacity","",l.opacity16),checkedFocusStateLayerOpacity:e.extend("--ft-checkbox-checked-focus-state-layer-opacity","",l.opacity16),checkedActiveStateLayerOpacity:e.extend("--ft-checkbox-checked-active-state-layer-opacity","",l.opacity24),checkedDisabledComponentOpacity:e.extend("--ft-checkbox-checked-disabled-component-opacity","",l.opacity40),uncheckedBorderColor:e.extend("--ft-checkbox-unchecked-border-color","",l.colorGray80),uncheckedStateLayerColor:e.extend("--ft-checkbox-unchecked-state-layer-color","",l.colorGray80),uncheckedHoverStateLayerOpacity:e.extend("--ft-checkbox-unchecked-hover-state-layer-opacity","",l.opacity16),uncheckedFocusStateLayerOpacity:e.extend("--ft-checkbox-unchecked-focus-state-layer-opacity","",l.opacity16),uncheckedActiveStateLayerOpacity:e.extend("--ft-checkbox-unchecked-active-state-layer-opacity","",l.opacity24),uncheckedDisabledComponentOpacity:e.extend("--ft-checkbox-unchecked-disabled-component-opacity","",l.opacity40),focusFocusRingColor:e.extend("--ft-checkbox-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineOffset:e.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:e.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),gap:e.extend("--ft-checkbox-gap","",l.spacing3)};var up={offHoverStateLayerOpacity:e.extend("--ft-toggle-off-hover-state-layer-opacity","",l.opacity16),offFocusStateLayerOpacity:e.extend("--ft-toggle-off-focus-state-layer-opacity","",l.opacity16),offActiveStateLayerOpacity:e.extend("--ft-toggle-off-active-state-layer-opacity","",l.opacity24),offDisabledComponentOpacity:e.extend("--ft-toggle-off-disabled-component-opacity","",l.opacity40),offBackgroundColor:e.extend("--ft-toggle-off-background-color","",d.contentGlobalSubtle),offIconColor:e.extend("--ft-toggle-off-icon-color","",d.contentGlobalSubtle),offStateLayerColor:e.extend("--ft-toggle-off-state-layer-color","",d.contentGlobalSubtle),onHoverStateLayerOpacity:e.extend("--ft-toggle-on-hover-state-layer-opacity","",l.opacity16),onFocusStateLayerOpacity:e.extend("--ft-toggle-on-focus-state-layer-opacity","",l.opacity16),onActiveStateLayerOpacity:e.extend("--ft-toggle-on-active-state-layer-opacity","",l.opacity24),onDisabledComponentOpacity:e.extend("--ft-toggle-on-disabled-component-opacity","",l.opacity40),onBackgroundColor:e.extend("--ft-toggle-on-background-color","",d.contentActionPrimary),onStateLayerColor:e.extend("--ft-toggle-on-state-layer-color","",d.contentActionPrimary),onIconColor:e.extend("--ft-toggle-on-icon-color","",d.contentActionPrimary),color:e.extend("--ft-toggle-color","",d.contentGlobalPrimary),focusFocusRingColor:e.extend("--ft-toggle-focus-focus-ring-color","",d.borderActionFocusRing),gap:e.extend("--ft-toggle-gap","",l.spacing3)};var bp={color:e.extend("--ft-radio-color","",d.contentGlobalPrimary),selectedRadioColor:e.extend("--ft-radio-selected-radio-color","",d.contentActionPrimary),selectedStateLayerColor:e.extend("--ft-radio-selected-state-layer-color","",d.contentActionPrimary),selectedHoverStateLayerOpacity:e.extend("--ft-radio-selected-hover-state-layer-opacity","",l.opacity16),selectedFocusStateLayerOpacity:e.extend("--ft-radio-selected-focus-state-layer-opacity","",l.opacity16),selectedActiveStateLayerOpacity:e.extend("--ft-radio-selected-active-state-layer-opacity","",l.opacity24),selectedDisabledComponentOpacity:e.extend("--ft-radio-selected-disabled-component-opacity","",l.opacity40),unselectedStateLayerColor:e.extend("--ft-radio-unselected-state-layer-color","",d.borderInputPrimary),unselectedBorderColor:e.extend("--ft-radio-unselected-border-color","",d.borderInputPrimary),unselectedHoverStateLayerOpacity:e.extend("--ft-radio-unselected-hover-state-layer-opacity","",l.opacity16),unselectedFocusStateLayerOpacity:e.extend("--ft-radio-unselected-focus-state-layer-opacity","",l.opacity16),unselectedActiveStateLayerOpacity:e.extend("--ft-radio-unselected-active-state-layer-opacity","",l.opacity24),unselectedDisabledComponentOpacity:e.extend("--ft-radio-unselected-disabled-component-opacity","",l.opacity40),focusFocusRingColor:e.extend("--ft-radio-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineOffset:e.create("--ft-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:e.create("--ft-radio-focus-outline-width","","SIZE","2px"),gap:e.extend("--ft-radio-gap","",l.spacing3)};var Op={iconSize:e.extend("--ft-notification-icon-size","",l.iconSize4),horizontalPadding:e.extend("--ft-notification-horizontal-padding","",l.spacing4),verticalPadding:e.extend("--ft-notification-vertical-padding","",l.spacing4),infoBackgroundColor:e.extend("--ft-notification-info-background-color","",d.backgroundInfoSubtle),infoColor:e.extend("--ft-notification-info-color","",d.contentInfoPrimary),infoIconColor:e.extend("--ft-notification-info-icon-color","",d.contentInfoIconOnly),infoBorderColor:e.extend("--ft-notification-info-border-color","",d.borderInfoSubtle),successBackgroundColor:e.extend("--ft-notification-success-background-color","",d.backgroundSuccessSubtle),successColor:e.extend("--ft-notification-success-color","",d.contentSuccessPrimary),successIconColor:e.extend("--ft-notification-success-icon-color","",d.contentSuccessIconOnly),successBorderColor:e.extend("--ft-notification-success-border-color","",d.borderSuccessSubtle),warningBackgroundColor:e.extend("--ft-notification-warning-background-color","",d.backgroundWarningSubtle),warningColor:e.extend("--ft-notification-warning-color","",d.contentWarningPrimary),warningIconColor:e.extend("--ft-notification-warning-icon-color","",d.contentWarningIconOnly),warningBorderColor:e.extend("--ft-notification-warning-border-color","",d.borderWarningSubtle),errorBackgroundColor:e.extend("--ft-notification-error-background-color","",d.backgroundErrorSubtle),errorColor:e.extend("--ft-notification-error-color","",d.contentErrorPrimary),errorIconColor:e.extend("--ft-notification-error-icon-color","",d.contentErrorIconOnly),errorBorderColor:e.extend("--ft-notification-error-border-color","",d.borderErrorSubtle),borderRadius:e.extend("--ft-notification-border-radius","",l.borderRadiusPill),borderWidth:e.create("--ft-notification-border-width","","SIZE","1px"),leadingGap:e.extend("--ft-notification-leading-gap","",l.spacing2),trailingGap:e.extend("--ft-notification-trailing-gap","",l.spacing8)};var Ip={horizontalPadding:e.extend("--ft-tooltip-horizontal-padding","",l.spacing2),verticalPadding:e.extend("--ft-tooltip-vertical-padding","",l.spacing2),borderRadius:e.extend("--ft-tooltip-border-radius","",l.borderRadiusS),color:e.extend("--ft-tooltip-color","",d.contentGlobalOnColor),backgroundColor:e.extend("--ft-tooltip-background-color","",d.contentGlobalPrimary),backgroundOpacity:e.extend("--ft-tooltip-background-opacity","",l.opacity80),shadow:e.extend("--ft-tooltip-shadow","",l.shadowElevation03),maxWidth:e.create("--ft-tooltip-max-width","","SIZE","256px"),gap:e.extend("--ft-tooltip-gap","",l.spacing05)};var jo=u(_());function Sn(o){let t=Zo[o];return jo.css`
115
- .ft-typography--${(0,jo.unsafeCSS)(o)} {
116
- font-family: ${t.fontFamily};
117
- font-size: ${t.fontSize};
118
- font-weight: ${t.fontWeight};
119
- letter-spacing: ${t.letterSpacing};
120
- line-height: ${t.lineHeight};
121
- text-transform: ${t.textCase};
122
- }
123
- `}var Cn=b.FtCssVariableFactory.extend("--ft-typography-font-family","",b.designSystemVariables.titleFont),he=b.FtCssVariableFactory.extend("--ft-typography-font-family","",b.designSystemVariables.contentFont),C={fontFamily:he,fontSize:b.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:b.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:b.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:b.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:b.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Ae={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Cn),fontSize:b.FtCssVariableFactory.extend("--ft-typography-title-font-size","",C.fontSize,"20px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",C.fontWeight,"normal"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",C.letterSpacing,"0.15px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-title-line-height","",C.lineHeight,"1.2"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",C.textTransform,"inherit")},Ie={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Cn),fontSize:b.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",C.fontSize,"14px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",C.fontWeight,"normal"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",C.letterSpacing,"0.105px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",C.lineHeight,"1.7"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",C.textTransform,"inherit")},to={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",he),fontSize:b.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",C.fontSize,"16px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",C.fontWeight,"600"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",C.letterSpacing,"0.144px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",C.lineHeight,"1.5"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",C.textTransform,"inherit")},eo={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",he),fontSize:b.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",C.fontSize,"14px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",C.fontWeight,"normal"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",C.letterSpacing,"0.098px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",C.lineHeight,"1.7"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",C.textTransform,"inherit")},Yt={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",he),fontSize:b.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",C.fontSize,"16px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",C.fontWeight,"normal"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",C.letterSpacing,"0.496px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",C.lineHeight,"1.5"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",C.textTransform,"inherit")},oo={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",he),fontSize:b.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",C.fontSize,"14px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",C.fontWeight,"normal"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",C.letterSpacing,"0.252px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",C.lineHeight,"1.4"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",C.textTransform,"inherit")},ee={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",he),fontSize:b.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",C.fontSize,"12px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",C.fontWeight,"normal"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",C.letterSpacing,"0.396px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",C.lineHeight,"1.33"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",C.textTransform,"inherit")},ro={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",he),fontSize:b.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",C.fontSize,"10px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",C.fontWeight,"normal"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",C.letterSpacing,"0.33px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",C.lineHeight,"1.6"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",C.textTransform,"inherit")},io={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",he),fontSize:b.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",C.fontSize,"10px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",C.fontWeight,"normal"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",C.letterSpacing,"1.5px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",C.lineHeight,"1.6"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",C.textTransform,"uppercase")},Tt={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-button-font-family","",he),fontSize:b.FtCssVariableFactory.extend("--ft-typography-button-font-size","",C.fontSize,"14px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",C.fontWeight,"600"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",C.letterSpacing,"1.246px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-button-line-height","",C.lineHeight,"1.15"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",C.textTransform,"uppercase")},On=qt.css`
113
+ `;var tt=m($()),w=m(E());var St=m($(),1),Dt=t=>typeof t=="string"?(0,St.unsafeCSS)(t):t,o=class{static create(e,r,i,n){let a=l=>Dt(l??n),s=St.css`var(${Dt(e)}, ${a(n)})`;return s.name=e,s.description=r,s.category=i,s.defaultValue=n,s.defaultCssValue=a,s.get=l=>St.css`var(${Dt(e)}, ${a(l)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>n,s}static extend(e,r,i,n){let a=l=>i.get(l??n),s=St.css`var(${Dt(e)}, ${a(n)})`;return s.name=e,s.description=r,s.category=i.category,s.fallbackVariable=i,s.defaultValue=n,s.defaultCssValue=a,s.get=l=>St.css`var(${Dt(e)}, ${a(l)})`,s.breadcrumb=()=>[i.name,...i.breadcrumb()],s.lastResortDefaultValue=()=>n??i.lastResortDefaultValue(),s}static external(e,r){let i=a=>e.fallbackVariable?e.fallbackVariable.get(a??e.defaultValue):Dt(a??e.lastResortDefaultValue()),n=St.css`var(${Dt(e.name)}, ${i(e.defaultValue)})`;return n.name=e.name,n.category=e.category,n.fallbackVariable=e.fallbackVariable,n.defaultValue=e.defaultValue,n.context=r,n.defaultCssValue=i,n.get=a=>St.css`var(${Dt(e.name)}, ${i(a)})`,n.breadcrumb=()=>e.fallbackVariable?[e.fallbackVariable.name,...e.fallbackVariable.breadcrumb()]:[],n.lastResortDefaultValue=()=>e.lastResortDefaultValue(),n}};var c={colorWhite:o.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:o.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:o.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:o.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:o.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:o.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:o.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:o.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:o.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:o.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:o.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:o.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:o.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:o.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:o.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:o.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:o.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:o.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:o.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:o.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:o.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:o.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:o.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:o.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:o.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:o.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:o.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:o.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:o.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:o.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:o.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:o.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:o.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:o.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:o.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:o.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:o.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:o.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:o.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:o.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:o.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:o.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:o.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:o.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:o.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:o.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:o.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:o.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:o.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:o.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:o.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:o.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:o.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:o.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:o.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:o.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:o.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:o.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:o.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:o.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:o.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:o.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:o.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:o.create("--ft-color-orange-0","","COLOR","#F2700D"),colorOrange10:o.create("--ft-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:o.create("--ft-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:o.create("--ft-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:o.create("--ft-color-orange-40","","COLOR","#FECB90"),colorOrange50:o.create("--ft-color-orange-50","","COLOR","#FCB76E"),colorOrange60:o.create("--ft-color-orange-60","","COLOR","#F9A34D"),colorOrange70:o.create("--ft-color-orange-70","","COLOR","#F68B2C"),colorOrange100:o.create("--ft-color-orange-100","","COLOR","#D35909"),colorOrange200:o.create("--ft-color-orange-200","","COLOR","#B74706"),colorOrange300:o.create("--ft-color-orange-300","","COLOR","#913503"),colorOrange400:o.create("--ft-color-orange-400","","COLOR","#6F2601"),colorOrange500:o.create("--ft-color-orange-500","","COLOR","#4D1800"),colorOrange600:o.create("--ft-color-orange-600","","COLOR","#330F00"),colorOrange700:o.create("--ft-color-orange-700","","COLOR","#140600"),colorRed0:o.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:o.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:o.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:o.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:o.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:o.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:o.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:o.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:o.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:o.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:o.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:o.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:o.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:o.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:o.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:o.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:o.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:o.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:o.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:o.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:o.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:o.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:o.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:o.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:o.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:o.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:o.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:o.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:o.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:o.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:o.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:o.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:o.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:o.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:o.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:o.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:o.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:o.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:o.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:o.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:o.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:o.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:o.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:o.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:o.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:o.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:o.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:o.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:o.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:o.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:o.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:o.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:o.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:o.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:o.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:o.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:o.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:o.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:o.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:o.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:o.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:o.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:o.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:o.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:o.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:o.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:o.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:o.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:o.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:o.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:o.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:o.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:o.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:o.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:o.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:o.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:o.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:o.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:o.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:o.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:o.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:o.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:o.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:o.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:o.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:o.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:o.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:o.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:o.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:o.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:o.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:o.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:o.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:o.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:o.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:o.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:o.create("--ft-icon-size-1","","SIZE","0.75rem"),iconSize2:o.create("--ft-icon-size-2","","SIZE","1rem"),iconSize3:o.create("--ft-icon-size-3","","SIZE","1.25rem"),iconSize4:o.create("--ft-icon-size-4","","SIZE","1.5rem"),iconSize5:o.create("--ft-icon-size-5","","SIZE","2rem"),iconSize6:o.create("--ft-icon-size-6","","SIZE","3rem"),opacity0:o.create("--ft-opacity-0","","NUMBER","0"),opacity8:o.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:o.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:o.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:o.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:o.create("--ft-opacity-80","","NUMBER","0.8"),shadowElevation01:o.create("--ft-shadow-elevation-01","","SHADOW","0px 1px 4px 0px rgba(0,0,0,0.06), 0px 1px 2px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation02:o.create("--ft-shadow-elevation-02","","SHADOW","0px 4px 10px 0px rgba(0,0,0,0.06), 0px 2px 5px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation03:o.create("--ft-shadow-elevation-03","","SHADOW","0px 6px 13px 0px rgba(0,0,0,0.06), 0px 3px 7px 0px rgba(0,0,0,0.14), 0px 1px 2px 0px rgba(0,0,0,0.06)"),shadowElevation04:o.create("--ft-shadow-elevation-04","","SHADOW","0px 8px 16px 0px rgba(0,0,0,0.06), 0px 4px 9px 0px rgba(0,0,0,0.14), 0px 2px 3px 0px rgba(0,0,0,0.06)"),shadowElevation06:o.create("--ft-shadow-elevation-06","","SHADOW","0px 12px 22px 0px rgba(0,0,0,0.06), 0px 6px 13px 0px rgba(0,0,0,0.14), 0px 4px 5px 0px rgba(0,0,0,0.06)"),shadowElevation08:o.create("--ft-shadow-elevation-08","","SHADOW","0px 16px 28px 0px rgba(0,0,0,0.06), 0px 8px 17px 0px rgba(0,0,0,0.14), 0px 6px 7px 0px rgba(0,0,0,0.06)"),shadowElevation12:o.create("--ft-shadow-elevation-12","","SHADOW","0px 22px 40px 0px rgba(0,0,0,0.06), 0px 12px 23px 0px rgba(0,0,0,0.14), 0px 10px 11px 0px rgba(0,0,0,0.06)"),shadowElevation16:o.create("--ft-shadow-elevation-16","","SHADOW","0px 28px 52px 0px rgba(0,0,0,0.06), 0px 16px 29px 0px rgba(0,0,0,0.14), 0px 14px 15px 0px rgba(0,0,0,0.06)"),shadowElevation24:o.create("--ft-shadow-elevation-24","","SHADOW","0px 40px 76px 0px rgba(0,0,0,0.06), 0px 24px 41px 0px rgba(0,0,0,0.14), 0px 22px 23px 0px rgba(0,0,0,0.06)")},la={fontFamily:o.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:o.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:o.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-display-textCase","","UNKNOWN","none")},ca={fontFamily:o.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:o.create("--ft-typography-title-1-fontSize","","SIZE","1.5rem"),letterSpacing:o.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},da={fontFamily:o.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-title-2-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:o.create("--ft-typography-title-2-fontSize","","SIZE","1.25rem"),letterSpacing:o.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},pa={fontFamily:o.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-title-3-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:o.create("--ft-typography-title-3-fontSize","","SIZE","1.125rem"),letterSpacing:o.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:o.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},fa={fontFamily:o.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:o.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:o.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},ua={fontFamily:o.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:o.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},ha={fontFamily:o.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:o.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},ma={fontFamily:o.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:o.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},ga={fontFamily:o.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},Ed={fontFamily:o.create("--ft-typography-body-2-medium-underline-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-medium-underline-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-body-2-medium-underline-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-2-medium-underline-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-medium-underline-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-medium-underline-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-medium-underline-paragraphIndent","","UNKNOWN","0"),textCase:o.create("--ft-typography-body-2-medium-underline-textCase","","UNKNOWN","none"),textDecoration:o.create("--ft-typography-body-2-medium-underline-textDecoration","","UNKNOWN","underline")},ya={fontFamily:o.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},ba={fontFamily:o.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},va={fontFamily:o.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},xa={fontFamily:o.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},Sa={fontFamily:o.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},Oa={fontFamily:o.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},wa={fontFamily:o.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},Ca={fontFamily:o.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},Ea={fontFamily:o.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},Aa={fontFamily:o.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},Ra={fontFamily:o.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:o.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},Na={fontFamily:o.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:o.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},Ia={fontFamily:o.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:o.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")},Ta={fontFamily:o.create("--ft-typography-caption-3-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-3-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-caption-3-medium-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-3-medium-fontSize","","SIZE","0.625rem"),letterSpacing:o.create("--ft-typography-caption-3-medium-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-3-medium-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-3-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-3-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-3-medium-textDecoration","","UNKNOWN","none")},_a={fontFamily:o.create("--ft-typography-caption-3-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-3-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-caption-3-semibold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-3-semibold-fontSize","","SIZE","0.625rem"),letterSpacing:o.create("--ft-typography-caption-3-semibold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-3-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-3-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-3-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-3-semibold-textDecoration","","UNKNOWN","none")},ka={fontFamily:o.create("--ft-typography-caption-3-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-3-bold-fontWeight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-caption-3-bold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-3-bold-fontSize","","SIZE","0.625rem"),letterSpacing:o.create("--ft-typography-caption-3-bold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-3-bold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-3-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-3-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-3-bold-textDecoration","","UNKNOWN","none")},So={display:la,"title-1":ca,"title-2":da,"title-3":pa,"body-1-regular":fa,"body-1-medium":ua,"body-1-semibold":ha,"body-2-regular":ma,"body-2-medium":ga,"body-2-medium-underline":Ed,"body-2-semibold":ya,"label-1-medium":ba,"label-1-semibold":va,"label-1-bold":xa,"label-2-medium":Sa,"label-2-semibold":Oa,"label-2-bold":wa,"caption-1-medium":Ca,"caption-1-semibold":Ea,"caption-1-bold":Aa,"caption-2-medium":Ra,"caption-2-semibold":Na,"caption-2-bold":Ia,"caption-3-medium":Ta,"caption-3-semibold":_a,"caption-3-bold":ka};var f={backgroundActionPrimary:o.extend("--ft-background-action-primary","Used as backgorund of primary action components.",c.colorBrand0),backgroundErrorSubtle:o.extend("--ft-background-error-subtle","Used as background of subtle error components.",c.colorRed10),backgroundInfoSubtle:o.extend("--ft-background-info-subtle","Used as background of subtle information components.",c.colorCyan10),backgroundWarningSubtle:o.extend("--ft-background-warning-subtle","Used as background of subtle information components.",c.colorOrange10),backgroundSuccessSubtle:o.extend("--ft-background-success-subtle","Used as background of subtle success components.",c.colorGreen10),backgroundGlobalSurface:o.extend("--ft-background-global-surface","Used as app background.",c.colorWhite),backgroundGlobalOnSurface:o.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",c.colorGray10),backgroundGlobalOnSurfaceDark:o.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",c.colorGray30),contentActionPrimary:o.extend("--ft-content-action-primary","Used on label of primary action on light surface.",c.colorBrand0),contentWarningPrimary:o.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",c.colorOrange200),contentWarningIconOnly:o.extend("--ft-content-warning-icon-only","Used on warning status icons alone",c.colorOrange0),contentErrorPrimary:o.extend("--ft-content-error-primary","Used on label of error messages on light surface.",c.colorRed0),contentErrorIconOnly:o.extend("--ft-content-error-icon-only","Used on error status icons alone",c.colorRed70),contentInfoPrimary:o.extend("--ft-content-info-primary","Used on label of information messages on light surface.",c.colorCyan200),contentInfoIconOnly:o.extend("--ft-content-info-icon-only","Used on info status icons alone",c.colorCyan0),contentSuccessPrimary:o.extend("--ft-content-success-primary","Used on label of success messages on light surface.",c.colorGreen200),contentSuccessIconOnly:o.extend("--ft-content-success-icon-only","Used on success status icons alone",c.colorGreen0),contentGlobalPrimary:o.extend("--ft-content-global-primary","Used for main content on the page.",c.colorGray500),contentGlobalSecondary:o.extend("--ft-content-global-secondary",`Used for secondary content, often paired with primary content.
114
+ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",c.colorGray0),contentGlobalOnColor:o.extend("--ft-content-global-on-color","Used for content on a dominant color.",c.colorWhite),borderActionPrimary:o.extend("--ft-border-action-primary","Used as border for primary action components.",c.colorBrand0),borderActionFocusRing:o.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",c.colorCyan0),borderWarningPrimary:o.extend("--ft-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",c.colorOrange200),borderWarningSubtle:o.extend("--ft-border-warning-subtle","Used as border for warning components.",c.colorOrange30),borderSuccessPrimary:o.extend("--ft-border-success-primary","Used as border for success buttons.",c.colorGreen200),borderSuccessSubtle:o.extend("--ft-border-success-subtle","Used as border for success components.",c.colorGreen30),borderErrorPrimary:o.extend("--ft-border-error-primary","Used as border for text fields in error states.",c.colorRed0),borderErrorSubtle:o.extend("--ft-border-error-subtle","Used as border for error components.",c.colorRed30),borderInfoPrimary:o.extend("--ft-border-info-primary","Used as border for buttons in info color.",c.colorCyan200),borderInfoSubtle:o.extend("--ft-border-info-subtle","Used as border for information components.",c.colorCyan30),borderGlobalPrimary:o.extend("--ft-border-global-primary","Used as border for element like input.",c.colorGray50),borderGlobalSubtle:o.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",c.colorGray30),borderInputPrimary:o.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",c.colorGray80)};var C={largeHeight:o.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:o.extend("--ft-button-large-horizontal-padding","",c.spacing4),largeGap:o.extend("--ft-button-large-gap","",c.spacing2),largeBorderRadius:o.extend("--ft-button-large-border-radius","",c.borderRadiusS),largeIconSize:o.extend("--ft-button-large-icon-size","",c.iconSize3),largeBorderWidth:o.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:o.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:o.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:o.create("--ft-button-large-icon-only-width","","SIZE","40px"),mediumHeight:o.create("--ft-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:o.extend("--ft-button-medium-horizontal-padding","",c.spacing3),mediumGap:o.extend("--ft-button-medium-gap","",c.spacing2),mediumBorderRadius:o.extend("--ft-button-medium-border-radius","",c.borderRadiusS),mediumIconSize:o.extend("--ft-button-medium-icon-size","",c.iconSize2),mediumBorderWidth:o.create("--ft-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:o.create("--ft-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:o.create("--ft-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:o.create("--ft-button-medium-icon-only-width","","SIZE","30px"),smallHeight:o.create("--ft-button-small-height","","SIZE","20px"),smallHorizontalPadding:o.extend("--ft-button-small-horizontal-padding","",c.spacing2),smallGap:o.extend("--ft-button-small-gap","",c.spacing1),smallBorderRadius:o.extend("--ft-button-small-border-radius","",c.borderRadiusS),smallIconSize:o.extend("--ft-button-small-icon-size","",c.iconSize1),smallBorderWidth:o.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:o.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:o.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:o.create("--ft-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:o.create("--ft-button-x-small-height","","SIZE","16px"),xSmallIconSize:o.extend("--ft-button-x-small-icon-size","",c.iconSize1),xSmallFocusOutlineOffset:o.create("--ft-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:o.create("--ft-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:o.create("--ft-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:o.extend("--ft-button-round-border-radius","",c.borderRadiusPill),primaryBackgroundColor:o.extend("--ft-button-primary-background-color","",f.backgroundActionPrimary),primaryColor:o.extend("--ft-button-primary-color","",f.contentGlobalOnColor),primaryIconColor:o.extend("--ft-button-primary-icon-color","",f.contentGlobalOnColor),primaryStateLayerColor:o.extend("--ft-button-primary-state-layer-color","",f.contentGlobalOnColor),primaryHoverStateLayerOpacity:o.extend("--ft-button-primary-hover-state-layer-opacity","",c.opacity16),primaryFocusStateLayerOpacity:o.extend("--ft-button-primary-focus-state-layer-opacity","",c.opacity16),primaryActiveStateLayerOpacity:o.extend("--ft-button-primary-active-state-layer-opacity","",c.opacity24),primaryDisabledComponentOpacity:o.extend("--ft-button-primary-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ft-button-focus-focus-ring-color","",f.borderActionFocusRing),tertiaryBackgroundColor:o.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:o.extend("--ft-button-tertiary-color","",f.contentActionPrimary),tertiaryIconColor:o.extend("--ft-button-tertiary-icon-color","",f.contentActionPrimary),tertiaryStateLayerColor:o.extend("--ft-button-tertiary-state-layer-color","",f.contentActionPrimary),tertiaryHoverStateLayerOpacity:o.extend("--ft-button-tertiary-hover-state-layer-opacity","",c.opacity8),tertiaryFocusStateLayerOpacity:o.extend("--ft-button-tertiary-focus-state-layer-opacity","",c.opacity8),tertiaryActiveStateLayerOpacity:o.extend("--ft-button-tertiary-active-state-layer-opacity","",c.opacity16),tertiaryDisabledComponentOpacity:o.extend("--ft-button-tertiary-disabled-component-opacity","",c.opacity40),secondaryBackgroundColor:o.create("--ft-button-secondary-background-color","","COLOR","rgba(0,0,0,0)"),secondaryColor:o.extend("--ft-button-secondary-color","",f.contentActionPrimary),secondaryIconColor:o.extend("--ft-button-secondary-icon-color","",f.contentActionPrimary),secondaryStateLayerColor:o.extend("--ft-button-secondary-state-layer-color","",f.contentActionPrimary),secondaryHoverStateLayerOpacity:o.extend("--ft-button-secondary-hover-state-layer-opacity","",c.opacity8),secondaryFocusStateLayerOpacity:o.extend("--ft-button-secondary-focus-state-layer-opacity","",c.opacity8),secondaryActiveStateLayerOpacity:o.extend("--ft-button-secondary-active-state-layer-opacity","",c.opacity16),secondaryDisabledComponentOpacity:o.extend("--ft-button-secondary-disabled-component-opacity","",c.opacity40),secondaryBorderColor:o.extend("--ft-button-secondary-border-color","",f.borderActionPrimary),neutralBackgroundColor:o.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:o.extend("--ft-button-neutral-icon-color","",f.contentGlobalSecondary),neutralColor:o.extend("--ft-button-neutral-color","",f.contentGlobalSecondary),neutralStateLayerColor:o.extend("--ft-button-neutral-state-layer-color","",f.contentGlobalSecondary),neutralHoverStateLayerOpacity:o.extend("--ft-button-neutral-hover-state-layer-opacity","",c.opacity8),neutralFocusStateLayerOpacity:o.extend("--ft-button-neutral-focus-state-layer-opacity","",c.opacity8),neutralActiveStateLayerOpacity:o.extend("--ft-button-neutral-active-state-layer-opacity","",c.opacity16),neutralDisabledComponentOpacity:o.extend("--ft-button-neutral-disabled-component-opacity","",c.opacity40)};var pf={largeMinHeight:o.create("--ft-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:o.extend("--ft-chip-large-horizontal-padding","",c.spacing3),largeButtonRightPadding:o.extend("--ft-chip-large-button-right-padding","",c.spacing1),largeGap:o.extend("--ft-chip-large-gap","",c.spacing1),largeFocusOutlineOffset:o.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:o.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:o.extend("--ft-chip-large-border-radius","",c.borderRadiusPill),largeBorderWidth:o.create("--ft-chip-large-border-width","","SIZE","1px"),largeIconSize:o.extend("--ft-chip-large-icon-size","",c.iconSize3),mediumMinHeight:o.create("--ft-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:o.extend("--ft-chip-medium-horizontal-padding","",c.spacing2),mediumButtonRightPadding:o.extend("--ft-chip-medium-button-right-padding","",c.spacing05),mediumGap:o.extend("--ft-chip-medium-gap","",c.spacing1),mediumFocusOutlineOffset:o.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:o.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:o.extend("--ft-chip-medium-border-radius","",c.borderRadiusPill),mediumBorderWidth:o.create("--ft-chip-medium-border-width","","SIZE","1px"),mediumIconSize:o.extend("--ft-chip-medium-icon-size","",c.iconSize2),smallMinHeight:o.create("--ft-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:o.extend("--ft-chip-small-horizontal-padding","",c.spacing1),smallButtonRightPadding:o.extend("--ft-chip-small-button-right-padding","",c.spacing05),smallGap:o.extend("--ft-chip-small-gap","",c.spacing1),smallFocusOutlineOffset:o.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:o.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:o.extend("--ft-chip-small-border-radius","",c.borderRadiusPill),smallBorderWidth:o.create("--ft-chip-small-border-width","","SIZE","1px"),smallIconSize:o.extend("--ft-chip-small-icon-size","",c.iconSize1),neutralBackgroundColor:o.extend("--ft-chip-neutral-background-color","",f.backgroundGlobalOnSurface),neutralColor:o.extend("--ft-chip-neutral-color","",f.contentGlobalSecondary),neutralIconColor:o.extend("--ft-chip-neutral-icon-color","",f.contentGlobalSecondary),neutralBorderColor:o.extend("--ft-chip-neutral-border-color","",f.borderGlobalSubtle),infoBackgroundColor:o.extend("--ft-chip-info-background-color","",f.backgroundInfoSubtle),infoColor:o.extend("--ft-chip-info-color","",f.contentInfoPrimary),infoIconColor:o.extend("--ft-chip-info-icon-color","",f.contentInfoIconOnly),infoBorderColor:o.extend("--ft-chip-info-border-color","",f.borderInfoSubtle),successBackgroundColor:o.extend("--ft-chip-success-background-color","",f.backgroundSuccessSubtle),successColor:o.extend("--ft-chip-success-color","",f.contentSuccessPrimary),successIconColor:o.extend("--ft-chip-success-icon-color","",f.contentSuccessIconOnly),successBorderColor:o.extend("--ft-chip-success-border-color","",f.borderSuccessSubtle),warningBackgroundColor:o.extend("--ft-chip-warning-background-color","",f.backgroundWarningSubtle),warningColor:o.extend("--ft-chip-warning-color","",f.contentWarningPrimary),warningIconColor:o.extend("--ft-chip-warning-icon-color","",f.contentWarningIconOnly),warningBorderColor:o.extend("--ft-chip-warning-border-color","",f.borderWarningSubtle),errorBackgroundColor:o.extend("--ft-chip-error-background-color","",f.backgroundErrorSubtle),errorColor:o.extend("--ft-chip-error-color","",f.contentErrorPrimary),errorIconColor:o.extend("--ft-chip-error-icon-color","",f.contentErrorIconOnly),errorBorderColor:o.extend("--ft-chip-error-border-color","",f.borderErrorSubtle)};var gf={focusOpacity:o.extend("--ft-link-focus-opacity","",c.opacity80),focusFocusRingColor:o.extend("--ft-link-focus-focus-ring-color","",f.borderActionFocusRing),brandColor:o.extend("--ft-link-brand-color","",f.contentActionPrimary),infoColor:o.extend("--ft-link-info-color","",f.contentInfoPrimary)};var Sf={iconSize:o.extend("--ft-banner-icon-size","",c.iconSize5),borderWidth:o.create("--ft-banner-border-width","","SIZE","1px"),leftPadding:o.extend("--ft-banner-left-padding","",c.spacing6),rightPadding:o.extend("--ft-banner-right-padding","",c.spacing6),verticalPadding:o.extend("--ft-banner-vertical-padding","",c.spacing6),horizontalSideGap:o.extend("--ft-banner-horizontal-side-gap","",c.spacing6),horizontalMobileGap:o.extend("--ft-banner-horizontal-mobile-gap","",c.spacing4),verticalMobileGap:o.extend("--ft-banner-vertical-mobile-gap","",c.spacing6),horizontalMiddleGap:o.extend("--ft-banner-horizontal-middle-gap","",c.spacing20),infoBackgroundColor:o.extend("--ft-banner-info-background-color","",f.backgroundInfoSubtle),infoColor:o.extend("--ft-banner-info-color","",f.contentInfoPrimary),infoIconColor:o.extend("--ft-banner-info-icon-color","",f.contentInfoIconOnly),infoBorderColor:o.extend("--ft-banner-info-border-color","",f.borderInfoSubtle)};var Af={horizontalPadding:o.extend("--ft-badge-horizontal-padding","",c.spacing1),verticalPadding:o.extend("--ft-badge-vertical-padding","",c.spacing1),borderRadius:o.extend("--ft-badge-border-radius","",c.borderRadiusPill),color:o.extend("--ft-badge-color","",f.contentGlobalOnColor),backgroundColor:o.extend("--ft-badge-background-color","",f.contentActionPrimary)};var _f={horizontalGap:o.extend("--ft-breadcrumb-horizontal-gap","",c.spacing1),verticalGap:o.extend("--ft-breadcrumb-vertical-gap","",c.spacing2),currentColor:o.extend("--ft-breadcrumb-current-color","",f.contentGlobalPrimary),previousNonClickableColor:o.extend("--ft-breadcrumb-previous-non-clickable-color","",f.contentGlobalSecondary),iconColor:o.extend("--ft-breadcrumb-icon-color","",f.contentGlobalSubtle)};var $f={horizontalPadding:o.extend("--ft-page-header-horizontal-padding","",c.spacing12),horizontalGap:o.extend("--ft-page-header-horizontal-gap","",c.spacing4),verticalGap:o.extend("--ft-page-header-vertical-gap","",c.spacing2),classicVerticalPadding:o.extend("--ft-page-header-classic-vertical-padding","",c.spacing6),multilineVerticalPadding:o.extend("--ft-page-header-multiline-vertical-padding","",c.spacing4),inlineVerticalPadding:o.extend("--ft-page-header-inline-vertical-padding","",c.spacing2),backgroundColor:o.extend("--ft-page-header-background-color","",c.colorWhite),bottomBorderColor:o.extend("--ft-page-header-bottom-border-color","",f.borderGlobalSubtle),titleColor:o.extend("--ft-page-header-title-color","",f.contentGlobalPrimary),subtitleColor:o.extend("--ft-page-header-subtitle-color","",f.contentGlobalSecondary)};var zf={smallContainerWidth:o.create("--ft-modal-small-container-width","","SIZE","600px"),largeContainerWidth:o.create("--ft-modal-large-container-width","","SIZE","900px"),overlayBackgroundColor:o.extend("--ft-modal-overlay-background-color","",c.colorGray700),overlayOpacity:o.extend("--ft-modal-overlay-opacity","",c.opacity40),shadow:o.extend("--ft-modal-shadow","",c.shadowElevation03),bodyBackgroundColor:o.extend("--ft-modal-body-background-color","",c.colorWhite),bodyColor:o.extend("--ft-modal-body-color","",f.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ft-modal-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:o.extend("--ft-modal-body-vertical-padding","",c.spacing6),bodyVerticalGap:o.extend("--ft-modal-body-vertical-gap","",c.spacing6),containerMargin:o.extend("--ft-modal-container-margin","",c.spacing3),headerBackgroundColor:o.extend("--ft-modal-header-background-color","",f.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ft-modal-header-border-color","",f.borderGlobalSubtle),headerColor:o.extend("--ft-modal-header-color","",f.contentGlobalPrimary),headerTrailingIconColor:o.extend("--ft-modal-header-trailing-icon-color","",f.contentGlobalSecondary),headerVerticalPadding:o.extend("--ft-modal-header-vertical-padding","",c.spacing1),headerRightPadding:o.extend("--ft-modal-header-right-padding","",c.spacing1),headerLeftPadding:o.extend("--ft-modal-header-left-padding","",c.spacing6),headerGap:o.extend("--ft-modal-header-gap","",c.spacing2),headerBorderBottom:o.create("--ft-modal-header-border-bottom","","SIZE","1px"),borderRadius:o.extend("--ft-modal-border-radius","",c.borderRadiusM)};var Gf={overlayOpacity:o.extend("--ft-drawer-overlay-opacity","",c.opacity40),shadow:o.extend("--ft-drawer-shadow","",c.shadowElevation03),bodyColor:o.extend("--ft-drawer-body-color","",f.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ft-drawer-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:o.extend("--ft-drawer-body-vertical-padding","",c.spacing6),bodyGap:o.extend("--ft-drawer-body-gap","",c.spacing6),bodyBackgroundColor:o.extend("--ft-drawer-body-background-color","",c.colorWhite),headerBackgroundColor:o.extend("--ft-drawer-header-background-color","",f.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ft-drawer-header-border-color","",f.borderGlobalSubtle),headerColor:o.extend("--ft-drawer-header-color","",f.contentGlobalPrimary),headerTrailingIconColor:o.extend("--ft-drawer-header-trailing-icon-color","",f.contentGlobalSecondary),headerHeight:o.create("--ft-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:o.extend("--ft-drawer-header-horizontal-padding","",c.spacing2),headerBorderWidth:o.create("--ft-drawer-header-border-width","","SIZE","1px"),headerGap:o.extend("--ft-drawer-header-gap","",c.spacing3),buttonsBarBackgroundColor:o.extend("--ft-drawer-buttons-bar-background-color","",f.backgroundGlobalOnSurface),buttonsBarBorderColor:o.extend("--ft-drawer-buttons-bar-border-color","",f.borderGlobalSubtle),buttonsBarColor:o.extend("--ft-drawer-buttons-bar-color","",f.contentGlobalPrimary),buttonsBarHorizontalPadding:o.extend("--ft-drawer-buttons-bar-horizontal-padding","",c.spacing4),buttonsBarVerticalPadding:o.extend("--ft-drawer-buttons-bar-vertical-padding","",c.spacing4),buttonsBarGap:o.extend("--ft-drawer-buttons-bar-gap","",c.spacing3),buttonsBarBorderWidth:o.create("--ft-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:o.create("--ft-drawer-container-width","","SIZE","66%"),containerMinWidth:o.create("--ft-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:o.create("--ft-drawer-container-max-width","","SIZE","1000px"),containerHeight:o.create("--ft-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:o.extend("--ft-drawer-overlay-background-color","",c.colorGray700)};var Xf={fieldHorizontalPadding:o.extend("--ft-text-input-field-horizontal-padding","",c.spacing4),fieldHorizontalGap:o.extend("--ft-text-input-field-horizontal-gap","",c.spacing3),fieldVerticalGap:o.extend("--ft-text-input-field-vertical-gap","",c.spacing05),fieldIconSize:o.extend("--ft-text-input-field-icon-size","",c.iconSize3),fieldHeight:o.create("--ft-text-input-field-height","","SIZE","50px"),helperHorizontalPadding:o.extend("--ft-text-input-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ft-text-input-helper-horizontal-gap","",c.spacing1),helperIconSize:o.extend("--ft-text-input-helper-icon-size","",c.iconSize2),borderRadius:o.extend("--ft-text-input-border-radius","",c.borderRadiusM),backgroundColor:o.extend("--ft-text-input-background-color","",c.colorWhite),contentValueColor:o.extend("--ft-text-input-content-value-color","",f.contentGlobalPrimary),trailingIconColor:o.extend("--ft-text-input-trailing-icon-color","",f.contentGlobalSubtle),labelColor:o.extend("--ft-text-input-label-color","",f.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-text-input-default-border-color","",f.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-text-input-default-helper-text-color","",f.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ft-text-input-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ft-text-input-error-border-color","",f.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-text-input-error-helper-text-color","",f.contentErrorPrimary),errorHelperIconColor:o.extend("--ft-text-input-error-helper-icon-color","",f.contentErrorIconOnly),warningBorderWidth:o.create("--ft-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:o.create("--ft-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-text-input-focus-focus-ring-color","",f.borderActionFocusRing),focusOutlineOffset:o.create("--ft-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-text-input-disabled-component-opacity","",c.opacity40)};var ru={backgroundColor:o.extend("--ft-text-area-background-color","",c.colorWhite),contentValueColor:o.extend("--ft-text-area-content-value-color","",f.contentGlobalPrimary),labelColor:o.extend("--ft-text-area-label-color","",f.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-text-area-default-border-color","",f.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-text-area-default-helper-text-color","",f.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ft-text-area-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ft-text-area-error-border-color","",f.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-text-area-error-helper-text-color","",f.contentErrorPrimary),errorHelperIconColor:o.extend("--ft-text-area-error-helper-icon-color","",f.contentErrorIconOnly),focusFocusRingColor:o.extend("--ft-text-area-focus-focus-ring-color","",f.borderActionFocusRing),focusOutlineWidth:o.create("--ft-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:o.create("--ft-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-text-area-disabled-component-opacity","",c.opacity40),fieldHorizontalLeftPadding:o.extend("--ft-text-area-field-horizontal-left-padding","",c.spacing4),fieldHorizontalGap:o.extend("--ft-text-area-field-horizontal-gap","",c.spacing3),fieldVerticalGap:o.extend("--ft-text-area-field-vertical-gap","",c.spacing05),fieldMinHeight:o.create("--ft-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:o.extend("--ft-text-area-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ft-text-area-helper-horizontal-gap","",c.spacing1),helperIconSize:o.extend("--ft-text-area-helper-icon-size","",c.iconSize2),borderRadius:o.extend("--ft-text-area-border-radius","",c.borderRadiusM)};var su={height:o.create("--ft-floating-menu-height","","SIZE","50px"),horizontalPadding:o.extend("--ft-floating-menu-horizontal-padding","",c.spacing4),offIconColor:o.extend("--ft-floating-menu-off-icon-color","",f.contentGlobalPrimary),offColor:o.extend("--ft-floating-menu-off-color","",f.contentGlobalPrimary),onColor:o.extend("--ft-floating-menu-on-color","",f.contentActionPrimary),onStateLayerColor:o.extend("--ft-floating-menu-on-state-layer-color","",f.contentActionPrimary),gap:o.extend("--ft-floating-menu-gap","",c.spacing3),focusFocusRingColor:o.extend("--ft-floating-menu-focus-focus-ring-color","",f.borderActionFocusRing),focusOutlineWidth:o.create("--ft-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:o.extend("--ft-floating-menu-focus-state-layer-opacity","",c.opacity8),hoverStateLayerOpacity:o.extend("--ft-floating-menu-hover-state-layer-opacity","",c.opacity8),activeStateLayerOpacity:o.extend("--ft-floating-menu-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:o.extend("--ft-floating-menu-disabled-component-opacity","",c.opacity40),iconSize:o.extend("--ft-floating-menu-icon-size","",c.iconSize3),backgroundColor:o.extend("--ft-floating-menu-background-color","",f.backgroundGlobalOnSurface)};var fu={fieldHorizontalPadding:o.extend("--ft-combobox-single-select-field-horizontal-padding","",c.spacing4),fieldHorizontalGap:o.extend("--ft-combobox-single-select-field-horizontal-gap","",c.spacing3),fieldVerticalGap:o.extend("--ft-combobox-single-select-field-vertical-gap","",c.spacing05),fieldIconSize:o.extend("--ft-combobox-single-select-field-icon-size","",c.iconSize3),fieldHeight:o.create("--ft-combobox-single-select-field-height","","SIZE","50px"),helperHorizontalPadding:o.extend("--ft-combobox-single-select-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ft-combobox-single-select-helper-horizontal-gap","",c.spacing1),helperVerticalGap:o.extend("--ft-combobox-single-select-helper-vertical-gap","",c.spacing1),helperIconSize:o.extend("--ft-combobox-single-select-helper-icon-size","",c.iconSize2),menuVerticalGap:o.extend("--ft-combobox-single-select-menu-vertical-gap","",c.spacing2),borderRadius:o.extend("--ft-combobox-single-select-border-radius","",c.borderRadiusM),backgroundColor:o.extend("--ft-combobox-single-select-background-color","",c.colorWhite),labelColor:o.extend("--ft-combobox-single-select-label-color","",f.contentGlobalSubtle),contentValueColor:o.extend("--ft-combobox-single-select-content-value-color","",f.contentGlobalPrimary),trailingIconColor:o.extend("--ft-combobox-single-select-trailing-icon-color","",f.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-combobox-single-select-default-border-color","",f.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-combobox-single-select-default-helper-text-color","",f.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-combobox-single-select-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ft-combobox-single-select-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ft-combobox-single-select-error-border-color","",f.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-combobox-single-select-error-helper-text-color","",f.contentErrorPrimary),warningBorderWidth:o.create("--ft-combobox-single-select-warning-border-width","","SIZE","2px"),warningBorderColor:o.extend("--ft-combobox-single-select-warning-border-color","",f.borderWarningPrimary),warningHelperTextColor:o.extend("--ft-combobox-single-select-warning-helper-text-color","",f.contentWarningPrimary),warningHelperIconColor:o.extend("--ft-combobox-single-select-warning-helper-icon-color","",f.contentWarningIconOnly),focusOutlineWidth:o.create("--ft-combobox-single-select-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-combobox-single-select-focus-focus-ring-color","",f.borderActionFocusRing),focusOutlineOffset:o.create("--ft-combobox-single-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-combobox-single-select-disabled-component-opacity","",c.opacity40)};var yu={backgroundColor:o.extend("--ft-combobox-multi-select-background-color","",c.colorWhite),labelColor:o.extend("--ft-combobox-multi-select-label-color","",f.contentGlobalSubtle),trailingIconColor:o.extend("--ft-combobox-multi-select-trailing-icon-color","",f.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-combobox-multi-select-default-border-color","",f.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-combobox-multi-select-default-helper-text-color","",f.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-combobox-multi-select-default-border-width","","SIZE","1px"),errorBorderColor:o.extend("--ft-combobox-multi-select-error-border-color","",f.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-combobox-multi-select-error-helper-text-color","",f.contentErrorPrimary),errorHelperIcon:o.extend("--ft-combobox-multi-select-error-helper-icon","",f.contentErrorIconOnly),errorBorderWidth:o.create("--ft-combobox-multi-select-error-border-width","","SIZE","2px"),warningBorderColor:o.extend("--ft-combobox-multi-select-warning-border-color","",f.borderWarningPrimary),warningHelperTextColor:o.extend("--ft-combobox-multi-select-warning-helper-text-color","",f.contentWarningPrimary),warningHelperIconColor:o.extend("--ft-combobox-multi-select-warning-helper-icon-color","",f.contentWarningIconOnly),warningBorderWidth:o.create("--ft-combobox-multi-select-warning-border-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-combobox-multi-select-focus-focus-ring-color","",f.borderActionFocusRing),focusOutlineWidth:o.create("--ft-combobox-multi-select-focus-outline-width","","SIZE","2px"),focusOutlineOffset:o.create("--ft-combobox-multi-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-combobox-multi-select-disabled-component-opacity","",c.opacity40),helperHorizontalPadding:o.extend("--ft-combobox-multi-select-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ft-combobox-multi-select-helper-horizontal-gap","",c.spacing1),helperVerticalGap:o.extend("--ft-combobox-multi-select-helper-vertical-gap","",c.spacing1),helperIconSize:o.extend("--ft-combobox-multi-select-helper-icon-size","",c.iconSize2),fieldHorizontalPadding:o.extend("--ft-combobox-multi-select-field-horizontal-padding","",c.spacing4),fieldHorizontalGap:o.extend("--ft-combobox-multi-select-field-horizontal-gap","",c.spacing3),fieldVerticalGap:o.extend("--ft-combobox-multi-select-field-vertical-gap","",c.spacing05),fieldIconSize:o.extend("--ft-combobox-multi-select-field-icon-size","",c.iconSize3),fieldMaxHeight:o.create("--ft-combobox-multi-select-field-max-height","","SIZE","112px"),contentValuesHorizontalGap:o.extend("--ft-combobox-multi-select-content-values-horizontal-gap","",c.spacing1),contentValuesVerticalGap:o.extend("--ft-combobox-multi-select-content-values-vertical-gap","",c.spacing1),borderRadius:o.extend("--ft-combobox-multi-select-border-radius","",c.borderRadiusM)};var Ou={backgroundColor:o.extend("--ft-popover-background-color","",f.backgroundGlobalOnSurface),horizontalPadding:o.extend("--ft-popover-horizontal-padding","",c.spacing6),verticalPadding:o.extend("--ft-popover-vertical-padding","",c.spacing6),titleColor:o.extend("--ft-popover-title-color","",f.contentGlobalPrimary),bodyColor:o.extend("--ft-popover-body-color","",f.contentGlobalSecondary),linkColor:o.extend("--ft-popover-link-color","",f.contentActionPrimary),gap:o.extend("--ft-popover-gap","",c.spacing3),borderRadius:o.extend("--ft-popover-border-radius","",c.borderRadiusM),shadow:o.extend("--ft-popover-shadow","",c.shadowElevation02)};var Ru={topLeftBorderRadius:o.extend("--ft-tabs-top-left-border-radius","",c.borderRadiusS),topRightBorderRadius:o.extend("--ft-tabs-top-right-border-radius","",c.borderRadiusS),withLabelHorizontalPadding:o.extend("--ft-tabs-with-label-horizontal-padding","",c.spacing4),withLabelVerticalPadding:o.extend("--ft-tabs-with-label-vertical-padding","",c.spacing3),horizontalGap:o.extend("--ft-tabs-horizontal-gap","",c.spacing1),verticalGap:o.extend("--ft-tabs-vertical-gap","",c.spacing1),offHoverStateLayerOpacity:o.extend("--ft-tabs-off-hover-state-layer-opacity","",c.opacity8),offDefaultStateLayerOpacity:o.extend("--ft-tabs-off-default-state-layer-opacity","",c.opacity0),offFocusStateLayerOpacity:o.extend("--ft-tabs-off-focus-state-layer-opacity","",c.opacity8),offDisabledComponentOpacity:o.extend("--ft-tabs-off-disabled-component-opacity","",c.opacity40),offColor:o.extend("--ft-tabs-off-color","",f.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-tabs-off-state-layer-color","",f.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ft-tabs-on-hover-state-layer-opacity","",c.opacity8),onDefaultStateLayerOpacity:o.extend("--ft-tabs-on-default-state-layer-opacity","",c.opacity0),onFocusStateLayerOpacity:o.extend("--ft-tabs-on-focus-state-layer-opacity","",c.opacity8),onActiveStateLayerOpacity:o.extend("--ft-tabs-on-active-state-layer-opacity","",c.opacity16),onColor:o.extend("--ft-tabs-on-color","",f.contentActionPrimary),onStateLayerColor:o.extend("--ft-tabs-on-state-layer-color","",f.contentActionPrimary),iconOnlyHorizontalPadding:o.extend("--ft-tabs-icon-only-horizontal-padding","",c.spacing4),iconOnlyVerticalPadding:o.extend("--ft-tabs-icon-only-vertical-padding","",c.spacing4),alertTopPadding:o.extend("--ft-tabs-alert-top-padding","",c.spacing1),alertRightPadding:o.extend("--ft-tabs-alert-right-padding","",c.spacing05),focusOutlineWidth:o.create("--ft-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-tabs-focus-focus-ring-color","",f.borderActionFocusRing)};var ku={hoverStateLayerOpacity:o.extend("--ft-collapsible-hover-state-layer-opacity","",c.opacity8),focusStateLayerOpacity:o.extend("--ft-collapsible-focus-state-layer-opacity","",c.opacity8),focusOutlineWidth:o.create("--ft-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:o.extend("--ft-collapsible-focus-focus-ring-color","",f.borderActionFocusRing),activeStateLayerOpacity:o.extend("--ft-collapsible-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:o.extend("--ft-collapsible-disabled-component-opacity","",c.opacity40),horizontalPadding:o.extend("--ft-collapsible-horizontal-padding","",c.spacing4),verticalPadding:o.extend("--ft-collapsible-vertical-padding","",c.spacing3),color:o.extend("--ft-collapsible-color","",f.contentGlobalPrimary),stateLayerColor:o.extend("--ft-collapsible-state-layer-color","",f.contentGlobalPrimary),backgroundColor:o.extend("--ft-collapsible-background-color","",f.backgroundGlobalOnSurface),borderColor:o.extend("--ft-collapsible-border-color","",f.borderGlobalSubtle),iconSize:o.extend("--ft-collapsible-icon-size","",c.iconSize3)};var Mu={groupHorizontalPadding:o.extend("--ft-switch-group-horizontal-padding","",c.spacing1),groupVerticalPadding:o.extend("--ft-switch-group-vertical-padding","",c.spacing1),groupGap:o.extend("--ft-switch-group-gap","",c.spacing1),groupBackgroundColor:o.extend("--ft-switch-group-background-color","",f.backgroundGlobalSurface),groupBorderColor:o.extend("--ft-switch-group-border-color","",f.borderGlobalSubtle),groupBorderRadius:o.create("--ft-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:o.extend("--ft-switch-label-horizontal-padding","",c.spacing2),labelVerticalPadding:o.extend("--ft-switch-label-vertical-padding","",c.spacing1),offHoverStateLayerOpacity:o.extend("--ft-switch-off-hover-state-layer-opacity","",c.opacity8),offFocusStateLayerOpacity:o.extend("--ft-switch-off-focus-state-layer-opacity","",c.opacity8),offActiveStateLayerOpacity:o.extend("--ft-switch-off-active-state-layer-opacity","",c.opacity16),offDisabledComponentOpacity:o.extend("--ft-switch-off-disabled-component-opacity","",c.opacity40),offColor:o.extend("--ft-switch-off-color","",f.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-switch-off-state-layer-color","",f.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ft-switch-on-hover-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:o.extend("--ft-switch-on-focus-state-layer-opacity","",c.opacity8),onActiveStateLayerOpacity:o.extend("--ft-switch-on-active-state-layer-opacity","",c.opacity16),onDisabledComponentOpacity:o.extend("--ft-switch-on-disabled-component-opacity","",c.opacity40),onColor:o.extend("--ft-switch-on-color","",f.contentActionPrimary),onStateLayerColor:o.extend("--ft-switch-on-state-layer-color","",f.contentActionPrimary),iconHorizontalPadding:o.extend("--ft-switch-icon-horizontal-padding","",c.spacing1),iconVerticalPadding:o.extend("--ft-switch-icon-vertical-padding","",c.spacing1),focusOutlineWidth:o.create("--ft-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-switch-focus-focus-ring-color","",f.borderActionFocusRing),optionBorderRadius:o.extend("--ft-switch-option-border-radius","",c.borderRadiusS)};var zu={color1Light:o.extend("--ft-chart-1-light","for area color charts",c.colorBrand40),color1Base:o.extend("--ft-chart-1-base","for line charts",c.colorBrand0),color2Light:o.extend("--ft-chart-2-light","for area color charts",c.colorYellow60),color2Base:o.extend("--ft-chart-2-base","for line charts",c.colorYellow100),color3Light:o.extend("--ft-chart-3-light","",c.colorUltramarine40),color3Base:o.extend("--ft-chart-3-base","",c.colorUltramarine70),color4Light:o.extend("--ft-chart-4-light","",c.colorCyan50),color4Base:o.extend("--ft-chart-4-base","",c.colorCyan100),color5Light:o.extend("--ft-chart-5-light","",c.colorRed40),color5Base:o.extend("--ft-chart-5-base","",c.colorRed60),color6Light:o.extend("--ft-chart-6-light","",c.colorGreen40),color6Base:o.extend("--ft-chart-6-base","",c.colorGreen70),color7Light:o.extend("--ft-chart-7-light","",c.colorOrange70),color7Base:o.extend("--ft-chart-7-base","",c.colorOrange100),color8Light:o.extend("--ft-chart-8-light","",c.colorAvocado70),color8Base:o.extend("--ft-chart-8-base","",c.colorAvocado200),color9Light:o.extend("--ft-chart-9-light","",c.colorBrown50),color9Base:o.extend("--ft-chart-9-base","",c.colorBrown200),color10Light:o.extend("--ft-chart-10-light","",c.colorGray50),color10Base:o.extend("--ft-chart-10-base","",c.colorGray80),monochrome10:o.extend("--ft-chart-monochrome-10","",c.colorBrand10),monochrome20:o.extend("--ft-chart-monochrome-20","",c.colorBrand20),monochrome30:o.extend("--ft-chart-monochrome-30","",c.colorBrand40),monochrome40:o.extend("--ft-chart-monochrome-40","",c.colorBrand60),monochrome50:o.extend("--ft-chart-monochrome-50","",c.colorBrand0),monochrome60:o.extend("--ft-chart-monochrome-60","",c.colorBrand200)};var Gu={borderWidth:o.create("--ft-notice-border-width","","SIZE","1px"),horizontalPadding:o.extend("--ft-notice-horizontal-padding","",c.spacing3),verticalPadding:o.extend("--ft-notice-vertical-padding","",c.spacing2),borderRadius:o.extend("--ft-notice-border-radius","",c.borderRadiusS),gap:o.extend("--ft-notice-gap","",c.spacing2),iconSize:o.extend("--ft-notice-icon-size","",c.iconSize3),infoBackgroundColor:o.extend("--ft-notice-info-background-color","",f.backgroundInfoSubtle),infoBorderColor:o.extend("--ft-notice-info-border-color","",f.borderInfoSubtle),infoColor:o.extend("--ft-notice-info-color","",f.contentInfoPrimary),infoIconColor:o.extend("--ft-notice-info-icon-color","",f.contentInfoIconOnly),warningBackgroundColor:o.extend("--ft-notice-warning-background-color","",f.backgroundWarningSubtle),warningBorderColor:o.extend("--ft-notice-warning-border-color","",f.borderWarningSubtle),warningColor:o.extend("--ft-notice-warning-color","",f.contentWarningPrimary),warningIconColor:o.extend("--ft-notice-warning-icon-color","",f.contentWarningIconOnly),errorBackgroundColor:o.extend("--ft-notice-error-background-color","",f.backgroundErrorSubtle),errorBorderColor:o.extend("--ft-notice-error-border-color","",f.borderErrorSubtle),errorColor:o.extend("--ft-notice-error-color","",f.contentErrorPrimary),errorIconColor:o.extend("--ft-notice-error-icon-color","",f.contentErrorIconOnly),successBackgroundColor:o.extend("--ft-notice-success-background-color","",f.backgroundSuccessSubtle),successBorderColor:o.extend("--ft-notice-success-border-color","",f.borderSuccessSubtle),successColor:o.extend("--ft-notice-success-color","",f.contentSuccessPrimary),successIconColor:o.extend("--ft-notice-success-icon-color","",f.contentSuccessIconOnly)};var Xu={color:o.extend("--ft-checkbox-color","",f.contentGlobalPrimary),checkedBackgroundColor:o.extend("--ft-checkbox-checked-background-color","",f.contentActionPrimary),checkedStateLayerColor:o.extend("--ft-checkbox-checked-state-layer-color","",f.contentActionPrimary),checkedIconColor:o.extend("--ft-checkbox-checked-icon-color","",f.contentGlobalOnColor),checkedHoverStateLayerOpacity:o.extend("--ft-checkbox-checked-hover-state-layer-opacity","",c.opacity16),checkedFocusStateLayerOpacity:o.extend("--ft-checkbox-checked-focus-state-layer-opacity","",c.opacity16),checkedActiveStateLayerOpacity:o.extend("--ft-checkbox-checked-active-state-layer-opacity","",c.opacity24),checkedDisabledComponentOpacity:o.extend("--ft-checkbox-checked-disabled-component-opacity","",c.opacity40),uncheckedBorderColor:o.extend("--ft-checkbox-unchecked-border-color","",c.colorGray80),uncheckedStateLayerColor:o.extend("--ft-checkbox-unchecked-state-layer-color","",c.colorGray80),uncheckedHoverStateLayerOpacity:o.extend("--ft-checkbox-unchecked-hover-state-layer-opacity","",c.opacity16),uncheckedFocusStateLayerOpacity:o.extend("--ft-checkbox-unchecked-focus-state-layer-opacity","",c.opacity16),uncheckedActiveStateLayerOpacity:o.extend("--ft-checkbox-unchecked-active-state-layer-opacity","",c.opacity24),uncheckedDisabledComponentOpacity:o.extend("--ft-checkbox-unchecked-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ft-checkbox-focus-focus-ring-color","",f.borderActionFocusRing),focusOutlineOffset:o.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),gap:o.extend("--ft-checkbox-gap","",c.spacing3)};var rh={offHoverStateLayerOpacity:o.extend("--ft-toggle-off-hover-state-layer-opacity","",c.opacity16),offFocusStateLayerOpacity:o.extend("--ft-toggle-off-focus-state-layer-opacity","",c.opacity16),offActiveStateLayerOpacity:o.extend("--ft-toggle-off-active-state-layer-opacity","",c.opacity24),offDisabledComponentOpacity:o.extend("--ft-toggle-off-disabled-component-opacity","",c.opacity40),offBackgroundColor:o.extend("--ft-toggle-off-background-color","",f.contentGlobalSubtle),offIconColor:o.extend("--ft-toggle-off-icon-color","",f.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-toggle-off-state-layer-color","",f.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ft-toggle-on-hover-state-layer-opacity","",c.opacity16),onFocusStateLayerOpacity:o.extend("--ft-toggle-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:o.extend("--ft-toggle-on-active-state-layer-opacity","",c.opacity24),onDisabledComponentOpacity:o.extend("--ft-toggle-on-disabled-component-opacity","",c.opacity40),onBackgroundColor:o.extend("--ft-toggle-on-background-color","",f.contentActionPrimary),onStateLayerColor:o.extend("--ft-toggle-on-state-layer-color","",f.contentActionPrimary),onIconColor:o.extend("--ft-toggle-on-icon-color","",f.contentActionPrimary),color:o.extend("--ft-toggle-color","",f.contentGlobalPrimary),focusFocusRingColor:o.extend("--ft-toggle-focus-focus-ring-color","",f.borderActionFocusRing),gap:o.extend("--ft-toggle-gap","",c.spacing3)};var sh={color:o.extend("--ft-radio-color","",f.contentGlobalPrimary),selectedRadioColor:o.extend("--ft-radio-selected-radio-color","",f.contentActionPrimary),selectedStateLayerColor:o.extend("--ft-radio-selected-state-layer-color","",f.contentActionPrimary),selectedHoverStateLayerOpacity:o.extend("--ft-radio-selected-hover-state-layer-opacity","",c.opacity16),selectedFocusStateLayerOpacity:o.extend("--ft-radio-selected-focus-state-layer-opacity","",c.opacity16),selectedActiveStateLayerOpacity:o.extend("--ft-radio-selected-active-state-layer-opacity","",c.opacity24),selectedDisabledComponentOpacity:o.extend("--ft-radio-selected-disabled-component-opacity","",c.opacity40),unselectedStateLayerColor:o.extend("--ft-radio-unselected-state-layer-color","",f.borderInputPrimary),unselectedBorderColor:o.extend("--ft-radio-unselected-border-color","",f.borderInputPrimary),unselectedHoverStateLayerOpacity:o.extend("--ft-radio-unselected-hover-state-layer-opacity","",c.opacity16),unselectedFocusStateLayerOpacity:o.extend("--ft-radio-unselected-focus-state-layer-opacity","",c.opacity16),unselectedActiveStateLayerOpacity:o.extend("--ft-radio-unselected-active-state-layer-opacity","",c.opacity24),unselectedDisabledComponentOpacity:o.extend("--ft-radio-unselected-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ft-radio-focus-focus-ring-color","",f.borderActionFocusRing),focusOutlineOffset:o.create("--ft-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ft-radio-focus-outline-width","","SIZE","2px"),gap:o.extend("--ft-radio-gap","",c.spacing3)};var fh={iconSize:o.extend("--ft-notification-icon-size","",c.iconSize4),leftPadding:o.extend("--ft-notification-left-padding","",c.spacing5),rightPadding:o.extend("--ft-notification-right-padding","",c.spacing4),verticalPadding:o.extend("--ft-notification-vertical-padding","",c.spacing3),infoBackgroundColor:o.extend("--ft-notification-info-background-color","",f.backgroundInfoSubtle),infoColor:o.extend("--ft-notification-info-color","",f.contentInfoPrimary),infoIconColor:o.extend("--ft-notification-info-icon-color","",f.contentInfoIconOnly),infoBorderColor:o.extend("--ft-notification-info-border-color","",f.borderInfoSubtle),successBackgroundColor:o.extend("--ft-notification-success-background-color","",f.backgroundSuccessSubtle),successColor:o.extend("--ft-notification-success-color","",f.contentSuccessPrimary),successIconColor:o.extend("--ft-notification-success-icon-color","",f.contentSuccessIconOnly),successBorderColor:o.extend("--ft-notification-success-border-color","",f.borderSuccessSubtle),warningBackgroundColor:o.extend("--ft-notification-warning-background-color","",f.backgroundWarningSubtle),warningColor:o.extend("--ft-notification-warning-color","",f.contentWarningPrimary),warningIconColor:o.extend("--ft-notification-warning-icon-color","",f.contentWarningIconOnly),warningBorderColor:o.extend("--ft-notification-warning-border-color","",f.borderWarningSubtle),errorBackgroundColor:o.extend("--ft-notification-error-background-color","",f.backgroundErrorSubtle),errorColor:o.extend("--ft-notification-error-color","",f.contentErrorPrimary),errorIconColor:o.extend("--ft-notification-error-icon-color","",f.contentErrorIconOnly),errorBorderColor:o.extend("--ft-notification-error-border-color","",f.borderErrorSubtle),borderRadius:o.extend("--ft-notification-border-radius","",c.borderRadiusPill),borderWidth:o.create("--ft-notification-border-width","","SIZE","1px"),leadingGap:o.extend("--ft-notification-leading-gap","",c.spacing2),trailingGap:o.extend("--ft-notification-trailing-gap","",c.spacing8)};var yh={horizontalPadding:o.extend("--ft-tooltip-horizontal-padding","",c.spacing2),verticalPadding:o.extend("--ft-tooltip-vertical-padding","",c.spacing2),borderRadius:o.extend("--ft-tooltip-border-radius","",c.borderRadiusS),color:o.extend("--ft-tooltip-color","",f.contentGlobalOnColor),backgroundColor:o.extend("--ft-tooltip-background-color","",f.contentGlobalPrimary),backgroundOpacity:o.extend("--ft-tooltip-background-opacity","",c.opacity80),shadow:o.extend("--ft-tooltip-shadow","",c.shadowElevation03),maxWidth:o.create("--ft-tooltip-max-width","","SIZE","256px"),gap:o.extend("--ft-tooltip-gap","",c.spacing05)};var Pa;(function(t){t.brand="brand",t.neutral="neutral",t.info="info",t.success="success",t.warning="warning",t.error="error"})(Pa||(Pa={}));var La;(function(t){t.large="large",t.medium="medium",t.small="small"})(La||(La={}));var Oo=m($());function Da(t){let e=So[t];return Oo.css`
115
+ .ft-typography--${(0,Oo.unsafeCSS)(t)} {
116
+ font-family: ${e.fontFamily};
117
+ font-size: ${e.fontSize};
118
+ font-weight: ${e.fontWeight};
119
+ letter-spacing: ${e.letterSpacing};
120
+ line-height: ${e.lineHeight};
121
+ text-transform: ${e.textCase};
122
+ }
123
+ `}var $a=w.FtCssVariableFactory.extend("--ft-typography-font-family","",w.designSystemVariables.titleFont),Ot=w.FtCssVariableFactory.extend("--ft-typography-font-family","",w.designSystemVariables.contentFont),_={fontFamily:Ot,fontSize:w.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:w.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:w.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:w.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:w.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},$t={fontFamily:w.FtCssVariableFactory.extend("--ft-typography-title-font-family","",$a),fontSize:w.FtCssVariableFactory.extend("--ft-typography-title-font-size","",_.fontSize,"20px"),fontWeight:w.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",_.fontWeight,"normal"),letterSpacing:w.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",_.letterSpacing,"0.15px"),lineHeight:w.FtCssVariableFactory.extend("--ft-typography-title-line-height","",_.lineHeight,"1.2"),textTransform:w.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",_.textTransform,"inherit")},Mt={fontFamily:w.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",$a),fontSize:w.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",_.fontSize,"14px"),fontWeight:w.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",_.fontWeight,"normal"),letterSpacing:w.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",_.letterSpacing,"0.105px"),lineHeight:w.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",_.lineHeight,"1.7"),textTransform:w.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",_.textTransform,"inherit")},yr={fontFamily:w.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Ot),fontSize:w.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",_.fontSize,"16px"),fontWeight:w.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",_.fontWeight,"600"),letterSpacing:w.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",_.letterSpacing,"0.144px"),lineHeight:w.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",_.lineHeight,"1.5"),textTransform:w.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",_.textTransform,"inherit")},br={fontFamily:w.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Ot),fontSize:w.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",_.fontSize,"14px"),fontWeight:w.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",_.fontWeight,"normal"),letterSpacing:w.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",_.letterSpacing,"0.098px"),lineHeight:w.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",_.lineHeight,"1.7"),textTransform:w.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",_.textTransform,"inherit")},et={fontFamily:w.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Ot),fontSize:w.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",_.fontSize,"16px"),fontWeight:w.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",_.fontWeight,"normal"),letterSpacing:w.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",_.letterSpacing,"0.496px"),lineHeight:w.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",_.lineHeight,"1.5"),textTransform:w.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",_.textTransform,"inherit")},vr={fontFamily:w.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Ot),fontSize:w.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",_.fontSize,"14px"),fontWeight:w.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",_.fontWeight,"normal"),letterSpacing:w.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",_.letterSpacing,"0.252px"),lineHeight:w.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",_.lineHeight,"1.4"),textTransform:w.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",_.textTransform,"inherit")},st={fontFamily:w.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Ot),fontSize:w.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",_.fontSize,"12px"),fontWeight:w.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",_.fontWeight,"normal"),letterSpacing:w.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",_.letterSpacing,"0.396px"),lineHeight:w.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",_.lineHeight,"1.33"),textTransform:w.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",_.textTransform,"inherit")},xr={fontFamily:w.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Ot),fontSize:w.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",_.fontSize,"10px"),fontWeight:w.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",_.fontWeight,"normal"),letterSpacing:w.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",_.letterSpacing,"0.33px"),lineHeight:w.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",_.lineHeight,"1.6"),textTransform:w.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",_.textTransform,"inherit")},Sr={fontFamily:w.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Ot),fontSize:w.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",_.fontSize,"10px"),fontWeight:w.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",_.fontWeight,"normal"),letterSpacing:w.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",_.letterSpacing,"1.5px"),lineHeight:w.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",_.lineHeight,"1.6"),textTransform:w.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",_.textTransform,"uppercase")},Pe={fontFamily:w.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Ot),fontSize:w.FtCssVariableFactory.extend("--ft-typography-button-font-size","",_.fontSize,"14px"),fontWeight:w.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",_.fontWeight,"600"),letterSpacing:w.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",_.letterSpacing,"1.246px"),lineHeight:w.FtCssVariableFactory.extend("--ft-typography-button-line-height","",_.lineHeight,"1.15"),textTransform:w.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",_.textTransform,"uppercase")},Ma=tt.css`
124
124
  .ft-typography--title {
125
- font-family: ${Ae.fontFamily};
126
- font-size: ${Ae.fontSize};
127
- font-weight: ${Ae.fontWeight};
128
- letter-spacing: ${Ae.letterSpacing};
129
- line-height: ${Ae.lineHeight};
130
- text-transform: ${Ae.textTransform};
131
- }
132
- `,wn=qt.css`
125
+ font-family: ${$t.fontFamily};
126
+ font-size: ${$t.fontSize};
127
+ font-weight: ${$t.fontWeight};
128
+ letter-spacing: ${$t.letterSpacing};
129
+ line-height: ${$t.lineHeight};
130
+ text-transform: ${$t.textTransform};
131
+ }
132
+ `,Ua=tt.css`
133
133
  .ft-typography--title-dense {
134
- font-family: ${Ie.fontFamily};
135
- font-size: ${Ie.fontSize};
136
- font-weight: ${Ie.fontWeight};
137
- letter-spacing: ${Ie.letterSpacing};
138
- line-height: ${Ie.lineHeight};
139
- text-transform: ${Ie.textTransform};
140
- }
141
- `,En=qt.css`
134
+ font-family: ${Mt.fontFamily};
135
+ font-size: ${Mt.fontSize};
136
+ font-weight: ${Mt.fontWeight};
137
+ letter-spacing: ${Mt.letterSpacing};
138
+ line-height: ${Mt.lineHeight};
139
+ text-transform: ${Mt.textTransform};
140
+ }
141
+ `,Ba=tt.css`
142
142
  .ft-typography--subtitle1 {
143
- font-family: ${to.fontFamily};
144
- font-size: ${to.fontSize};
145
- font-weight: ${to.fontWeight};
146
- letter-spacing: ${to.letterSpacing};
147
- line-height: ${to.lineHeight};
148
- text-transform: ${to.textTransform};
149
- }
150
- `,Rn=qt.css`
143
+ font-family: ${yr.fontFamily};
144
+ font-size: ${yr.fontSize};
145
+ font-weight: ${yr.fontWeight};
146
+ letter-spacing: ${yr.letterSpacing};
147
+ line-height: ${yr.lineHeight};
148
+ text-transform: ${yr.textTransform};
149
+ }
150
+ `,Fa=tt.css`
151
151
  .ft-typography--subtitle2 {
152
- font-family: ${eo.fontFamily};
153
- font-size: ${eo.fontSize};
154
- font-weight: ${eo.fontWeight};
155
- letter-spacing: ${eo.letterSpacing};
156
- line-height: ${eo.lineHeight};
157
- text-transform: ${eo.textTransform};
152
+ font-family: ${br.fontFamily};
153
+ font-size: ${br.fontSize};
154
+ font-weight: ${br.fontWeight};
155
+ letter-spacing: ${br.letterSpacing};
156
+ line-height: ${br.lineHeight};
157
+ text-transform: ${br.textTransform};
158
158
  }
159
159
 
160
- `,no=qt.css`
160
+ `,Or=tt.css`
161
161
  .ft-typography--body1 {
162
- font-family: ${Yt.fontFamily};
163
- font-size: ${Yt.fontSize};
164
- font-weight: ${Yt.fontWeight};
165
- letter-spacing: ${Yt.letterSpacing};
166
- line-height: ${Yt.lineHeight};
167
- text-transform: ${Yt.textTransform};
168
- }
169
- `,An=qt.css`
162
+ font-family: ${et.fontFamily};
163
+ font-size: ${et.fontSize};
164
+ font-weight: ${et.fontWeight};
165
+ letter-spacing: ${et.letterSpacing};
166
+ line-height: ${et.lineHeight};
167
+ text-transform: ${et.textTransform};
168
+ }
169
+ `,za=tt.css`
170
170
  .ft-typography--body2 {
171
- font-family: ${oo.fontFamily};
172
- font-size: ${oo.fontSize};
173
- font-weight: ${oo.fontWeight};
174
- letter-spacing: ${oo.letterSpacing};
175
- line-height: ${oo.lineHeight};
176
- text-transform: ${oo.textTransform};
177
- }
178
- `,Yo=qt.css`
171
+ font-family: ${vr.fontFamily};
172
+ font-size: ${vr.fontSize};
173
+ font-weight: ${vr.fontWeight};
174
+ letter-spacing: ${vr.letterSpacing};
175
+ line-height: ${vr.lineHeight};
176
+ text-transform: ${vr.textTransform};
177
+ }
178
+ `,wo=tt.css`
179
179
  .ft-typography--caption {
180
- font-family: ${ee.fontFamily};
181
- font-size: ${ee.fontSize};
182
- font-weight: ${ee.fontWeight};
183
- letter-spacing: ${ee.letterSpacing};
184
- line-height: ${ee.lineHeight};
185
- text-transform: ${ee.textTransform};
186
- }
187
- `,In=qt.css`
180
+ font-family: ${st.fontFamily};
181
+ font-size: ${st.fontSize};
182
+ font-weight: ${st.fontWeight};
183
+ letter-spacing: ${st.letterSpacing};
184
+ line-height: ${st.lineHeight};
185
+ text-transform: ${st.textTransform};
186
+ }
187
+ `,Wa=tt.css`
188
188
  .ft-typography--breadcrumb {
189
- font-family: ${ro.fontFamily};
190
- font-size: ${ro.fontSize};
191
- font-weight: ${ro.fontWeight};
192
- letter-spacing: ${ro.letterSpacing};
193
- line-height: ${ro.lineHeight};
194
- text-transform: ${ro.textTransform};
195
- }
196
- `,Nn=qt.css`
189
+ font-family: ${xr.fontFamily};
190
+ font-size: ${xr.fontSize};
191
+ font-weight: ${xr.fontWeight};
192
+ letter-spacing: ${xr.letterSpacing};
193
+ line-height: ${xr.lineHeight};
194
+ text-transform: ${xr.textTransform};
195
+ }
196
+ `,Ha=tt.css`
197
197
  .ft-typography--overline {
198
- font-family: ${io.fontFamily};
199
- font-size: ${io.fontSize};
200
- font-weight: ${io.fontWeight};
201
- letter-spacing: ${io.letterSpacing};
202
- line-height: ${io.lineHeight};
203
- text-transform: ${io.textTransform};
204
- }
205
- `,Tn=qt.css`
198
+ font-family: ${Sr.fontFamily};
199
+ font-size: ${Sr.fontSize};
200
+ font-weight: ${Sr.fontWeight};
201
+ letter-spacing: ${Sr.letterSpacing};
202
+ line-height: ${Sr.lineHeight};
203
+ text-transform: ${Sr.textTransform};
204
+ }
205
+ `,Va=tt.css`
206
206
  .ft-typography--button {
207
- font-family: ${Tt.fontFamily};
208
- font-size: ${Tt.fontSize};
209
- font-weight: ${Tt.fontWeight};
210
- letter-spacing: ${Tt.letterSpacing};
211
- line-height: ${Tt.lineHeight};
212
- text-transform: ${Tt.textTransform};
213
- }
214
- `,_n=qt.css`
207
+ font-family: ${Pe.fontFamily};
208
+ font-size: ${Pe.fontSize};
209
+ font-weight: ${Pe.fontWeight};
210
+ letter-spacing: ${Pe.letterSpacing};
211
+ line-height: ${Pe.lineHeight};
212
+ text-transform: ${Pe.textTransform};
213
+ }
214
+ `,ja=tt.css`
215
215
  .ft-typography {
216
216
  vertical-align: inherit;
217
217
  }
218
- `,Ln=[Object.keys(Zo).map(o=>Sn(o))];var kn=u(_()),Eo=u(S()),Pt={color:Eo.FtCssVariableFactory.extend("--ft-loader-color","",Eo.designSystemVariables.colorPrimary),size:Eo.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},$n=kn.css`
218
+ `,Ga=[Object.keys(So).map(t=>Da(t))];var Ka=m($()),Zr=m(E()),Be={color:Zr.FtCssVariableFactory.extend("--ft-loader-color","",Zr.designSystemVariables.colorPrimary),size:Zr.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},Za=Ka.css`
219
219
  :host {
220
220
  line-height: 0;
221
221
  }
@@ -224,8 +224,8 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
224
224
  display: inline-block;
225
225
  position: relative;
226
226
 
227
- width: ${Pt.size};
228
- height: ${Pt.size};
227
+ width: ${Be.size};
228
+ height: ${Be.size};
229
229
  }
230
230
 
231
231
  .ft-loader div {
@@ -234,7 +234,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
234
234
  width: 25%;
235
235
  height: 25%;
236
236
  border-radius: 50%;
237
- background: ${Pt.color};
237
+ background: ${Be.color};
238
238
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
239
239
  }
240
240
 
@@ -281,10 +281,10 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
281
281
  transform: translate(0, 0);
282
282
  }
283
283
  100% {
284
- transform: translate(calc(0.35 * ${Pt.size}), 0);
284
+ transform: translate(calc(0.35 * ${Be.size}), 0);
285
285
  }
286
286
  }
287
- `;var Pn=u(_()),me=u(S()),bt={size:me.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:me.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",me.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:me.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",me.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:me.FtCssVariableFactory.extend("--ft-icon-material-font-family","",me.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:me.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Dn=Pn.css`
287
+ `;var qa=m($()),wt=m(E()),Oe={size:wt.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:wt.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",wt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:wt.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",wt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:wt.FtCssVariableFactory.extend("--ft-icon-material-font-family","",wt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:wt.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Ya=qa.css`
288
288
  :host, i.ft-icon {
289
289
  display: inline-flex;
290
290
  align-items: center;
@@ -293,14 +293,14 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
293
293
  }
294
294
 
295
295
  :host {
296
- width: ${bt.size};
297
- height: ${bt.size};
296
+ width: ${Oe.size};
297
+ height: ${Oe.size};
298
298
  }
299
299
 
300
300
  i.ft-icon {
301
301
  width: 100%;
302
302
  height: 100%;
303
- font-size: ${bt.size};
303
+ font-size: ${Oe.size};
304
304
  line-height: 1;
305
305
  font-weight: normal;
306
306
  text-transform: none;
@@ -311,28 +311,28 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
311
311
  text-rendering: auto;
312
312
  -webkit-font-smoothing: antialiased;
313
313
  -moz-osx-font-smoothing: grayscale;
314
- vertical-align: ${bt.verticalAlign};
314
+ vertical-align: ${Oe.verticalAlign};
315
315
  }
316
316
 
317
317
  i.ft-icon.ft-icon--fluid-topics {
318
- font-family: ${bt.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
318
+ font-family: ${Oe.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
319
319
 
320
320
  /* Ugly fix because font is broken */
321
- font-size: calc(0.75 * ${bt.size});
322
- line-height: ${bt.size};
321
+ font-size: calc(0.75 * ${Oe.size});
322
+ line-height: ${Oe.size};
323
323
  position: relative;
324
324
  top: -4%;
325
325
  justify-content: center;
326
326
  }
327
327
 
328
328
  .ft-icon--file-format {
329
- font-family: ${bt.fileFormatFontFamily}, ft-mime, sans-serif;
329
+ font-family: ${Oe.fileFormatFontFamily}, ft-mime, sans-serif;
330
330
  }
331
331
 
332
332
  .ft-icon--material {
333
- font-family: ${bt.materialFontFamily}, "Material Icons", sans-serif;
333
+ font-family: ${Oe.materialFontFamily}, "Material Icons", sans-serif;
334
334
  }
335
- `;var Bn=T.FtCssVariableFactory.extend("--ft-button-color","",T.designSystemVariables.colorPrimary),V={backgroundColor:T.FtCssVariableFactory.extend("--ft-button-background-color","",T.designSystemVariables.colorSurface),borderRadius:T.FtCssVariableFactory.extend("--ft-button-border-radius","",T.designSystemVariables.borderRadiusL),color:Bn,fontSize:T.FtCssVariableFactory.extend("--ft-button-font-size","",Tt.fontSize),iconSize:T.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:T.FtCssVariableFactory.extend("--ft-button-ripple-color","",Bn),verticalPadding:T.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:T.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:T.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:T.FtCssVariableFactory.external(T.designSystemVariables.colorOpacityDisabled,"Design system")},Un=T.FtCssVariableFactory.extend("--ft-button-primary-color","",T.FtCssVariableFactory.extend("--ft-button-color","",T.designSystemVariables.colorOnPrimary)),jr={backgroundColor:T.FtCssVariableFactory.extend("--ft-button-primary-background-color","",T.FtCssVariableFactory.extend("--ft-button-background-color","",T.designSystemVariables.colorPrimary)),color:Un,rippleColor:T.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",Un)},se={borderRadius:T.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",T.FtCssVariableFactory.extend("--ft-button-border-radius","",T.designSystemVariables.borderRadiusM)),verticalPadding:T.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:T.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:T.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},Fn=[Mn.css`
335
+ `;var Xa=U.FtCssVariableFactory.extend("--ft-button-color","",U.designSystemVariables.colorPrimary),J={backgroundColor:U.FtCssVariableFactory.extend("--ft-button-background-color","",U.designSystemVariables.colorSurface),borderRadius:U.FtCssVariableFactory.extend("--ft-button-border-radius","",U.designSystemVariables.borderRadiusL),color:Xa,fontSize:U.FtCssVariableFactory.extend("--ft-button-font-size","",Pe.fontSize),iconSize:U.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:U.FtCssVariableFactory.extend("--ft-button-ripple-color","",Xa),verticalPadding:U.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:U.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:U.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:U.FtCssVariableFactory.external(U.designSystemVariables.colorOpacityDisabled,"Design system")},Ja=U.FtCssVariableFactory.extend("--ft-button-primary-color","",U.FtCssVariableFactory.extend("--ft-button-color","",U.designSystemVariables.colorOnPrimary)),Pi={backgroundColor:U.FtCssVariableFactory.extend("--ft-button-primary-background-color","",U.FtCssVariableFactory.extend("--ft-button-background-color","",U.designSystemVariables.colorPrimary)),color:Ja,rippleColor:U.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",Ja)},ht={borderRadius:U.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",U.FtCssVariableFactory.extend("--ft-button-border-radius","",U.designSystemVariables.borderRadiusM)),verticalPadding:U.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:U.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:U.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},es=[Qa.css`
336
336
  :host {
337
337
  display: inline-block;
338
338
  max-width: 100%;
@@ -343,7 +343,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
343
343
  box-shadow: 0px 0px 0px transparent;
344
344
  border: 0px solid transparent;
345
345
  text-shadow: 0px 0px 0px transparent;
346
- font-size: ${V.fontSize};
346
+ font-size: ${J.fontSize};
347
347
  }
348
348
 
349
349
  button:hover {
@@ -372,31 +372,31 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
372
372
  border: none;
373
373
  pointer-events: auto;
374
374
 
375
- --ft-button-internal-line-height: max(calc(${V.fontSize} + 2px), ${V.iconSize});
376
- --ft-button-internal-color: ${V.color};
377
- ${(0,T.setVariable)(bt.size,V.iconSize)};
378
- ${(0,T.setVariable)(N.color,V.rippleColor)};
375
+ --ft-button-internal-line-height: max(calc(${J.fontSize} + 2px), ${J.iconSize});
376
+ --ft-button-internal-color: ${J.color};
377
+ ${(0,U.setVariable)(Oe.size,J.iconSize)};
378
+ ${(0,U.setVariable)(M.color,J.rippleColor)};
379
379
 
380
- border-radius: ${V.borderRadius};
381
- padding: ${V.verticalPadding} ${V.horizontalPadding};
382
- background-color: ${V.backgroundColor};
380
+ border-radius: ${J.borderRadius};
381
+ padding: ${J.verticalPadding} ${J.horizontalPadding};
382
+ background-color: ${J.backgroundColor};
383
383
  color: var(--ft-button-internal-color);
384
384
  -webkit-mask-image: radial-gradient(white, black);
385
385
  }
386
386
 
387
387
  .ft-button.ft-button--outlined {
388
388
  border: 1px solid var(--ft-button-internal-color);
389
- padding: calc(${V.verticalPadding} - 1px) calc(${V.horizontalPadding} - 1px);
389
+ padding: calc(${J.verticalPadding} - 1px) calc(${J.horizontalPadding} - 1px);
390
390
  }
391
391
 
392
392
  .ft-button.ft-button--dense {
393
- padding: ${se.verticalPadding} ${se.horizontalPadding};
394
- border-radius: ${se.borderRadius};
395
- gap: ${se.iconPadding};
393
+ padding: ${ht.verticalPadding} ${ht.horizontalPadding};
394
+ border-radius: ${ht.borderRadius};
395
+ gap: ${ht.iconPadding};
396
396
  }
397
397
 
398
398
  .ft-button.ft-button--dense.ft-button--outlined {
399
- padding: calc(${se.verticalPadding} - 1px) calc(${se.horizontalPadding} - 1px);
399
+ padding: calc(${ht.verticalPadding} - 1px) calc(${ht.horizontalPadding} - 1px);
400
400
  }
401
401
 
402
402
  .ft-button:not([disabled]):hover {
@@ -404,22 +404,22 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
404
404
  }
405
405
 
406
406
  .ft-button--round {
407
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${V.verticalPadding});
407
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${J.verticalPadding});
408
408
  }
409
409
 
410
410
  .ft-button--round.ft-button--dense {
411
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${se.verticalPadding});
411
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${ht.verticalPadding});
412
412
  }
413
413
 
414
414
  .ft-button[disabled] {
415
415
  filter: grayscale(1);
416
- opacity: ${V.opacityDisabled};
416
+ opacity: ${J.opacityDisabled};
417
417
  }
418
418
 
419
419
  .ft-button.ft-button--primary {
420
- background-color: ${jr.backgroundColor};
421
- --ft-button-internal-color: ${jr.color};
422
- ${(0,T.setVariable)(N.color,jr.rippleColor)};
420
+ background-color: ${Pi.backgroundColor};
421
+ --ft-button-internal-color: ${Pi.color};
422
+ ${(0,U.setVariable)(M.color,Pi.rippleColor)};
423
423
  }
424
424
 
425
425
  .ft-button:focus {
@@ -432,13 +432,13 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
432
432
  white-space: nowrap;
433
433
  text-overflow: ellipsis;
434
434
  display: block;
435
- margin: 0 ${V.iconPadding};
436
- ${(0,T.setVariable)(Tt.fontSize,"1em")};
437
- ${(0,T.setVariable)(Tt.lineHeight,"var(--ft-button-internal-line-height)")};
435
+ margin: 0 ${J.iconPadding};
436
+ ${(0,U.setVariable)(Pe.fontSize,"1em")};
437
+ ${(0,U.setVariable)(Pe.lineHeight,"var(--ft-button-internal-line-height)")};
438
438
  }
439
439
 
440
440
  .ft-button--dense .ft-button--label {
441
- margin: 0 ${se.iconPadding};
441
+ margin: 0 ${ht.iconPadding};
442
442
  }
443
443
 
444
444
  .ft-button--label[hidden] {
@@ -451,13 +451,13 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
451
451
  }
452
452
 
453
453
  .ft-button--label[hidden] + [part="icon"] {
454
- margin: 0 calc(${V.horizontalPadding} * -1);
455
- padding: 0 ${V.verticalPadding};
454
+ margin: 0 calc(${J.horizontalPadding} * -1);
455
+ padding: 0 ${J.verticalPadding};
456
456
  }
457
457
 
458
458
  .ft-button--dense .ft-button--label[hidden] + [part="icon"] {
459
- margin: 0 calc(${se.horizontalPadding} * -1);
460
- padding: 0 ${se.verticalPadding};
459
+ margin: 0 calc(${ht.horizontalPadding} * -1);
460
+ padding: 0 ${ht.verticalPadding};
461
461
  }
462
462
 
463
463
  .ft-button:not(.ft-button--trailing-icon) [part="label"]{
@@ -465,10 +465,10 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
465
465
  }
466
466
 
467
467
  ft-loader {
468
- ${(0,T.setVariable)(Pt.size,V.iconSize)};
469
- ${(0,T.setVariable)(Pt.color,"var(--ft-button-internal-color)")};
468
+ ${(0,U.setVariable)(Be.size,J.iconSize)};
469
+ ${(0,U.setVariable)(Be.color,"var(--ft-button-internal-color)")};
470
470
  }
471
- `,T.noTextSelect];var J=u(S());var rt={textColor:J.FtCssVariableFactory.extend("--ft-switch-text-color","",J.designSystemVariables.colorOnSurfaceHigh),backgroundColor:J.FtCssVariableFactory.extend("--ft-switch-background-color","",J.designSystemVariables.colorSurface),selectedTextColor:J.FtCssVariableFactory.extend("--ft-switch-selected-text-color","",J.designSystemVariables.colorPrimary),selectedBackgroundColor:J.FtCssVariableFactory.extend("--ft-switch-selected-background-color","",J.designSystemVariables.colorPrimary),borderColor:J.FtCssVariableFactory.extend("--ft-switch-border-color","",J.designSystemVariables.colorOutline),borderRadius:J.FtCssVariableFactory.extend("--ft-switch-border-radius","",J.designSystemVariables.borderRadiusL),fontSize:J.FtCssVariableFactory.extend("--ft-switch-font-size","",Tt.fontSize),iconSize:J.FtCssVariableFactory.create("--ft-switch-icon-size","","SIZE","24px"),iconColor:J.FtCssVariableFactory.extend("--ft-switch-text-color","",J.designSystemVariables.colorOnSurfaceMedium),rippleColor:J.FtCssVariableFactory.extend("--ft-switch-ripple-color","",J.designSystemVariables.colorPrimary),outlineColor:J.FtCssVariableFactory.extend("--ft-switch-outline-color","",J.designSystemVariables.colorPrimary)};var le={feedbackInputMinWidth:H.FtCssVariableFactory.create("--ft-reader-feedback-input-min-width","","SIZE","300px"),ratedDateColor:H.FtCssVariableFactory.external(H.designSystemVariables.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:H.FtCssVariableFactory.extend("--ft-reader-feedback-send-feedback-color","",H.designSystemVariables.colorOnPrimary),sendFeedbackBackgroundColor:H.FtCssVariableFactory.extend("--ft-reader-feedback-send-feedback-background-color","",H.designSystemVariables.colorPrimary),filledRatingColor:H.FtCssVariableFactory.extend("--ft-reader-feedback-filled-rating-color","",H.designSystemVariables.colorPrimary),emptyRatingColor:H.FtCssVariableFactory.extend("--ft-reader-feedback-empty-rating-color","",H.designSystemVariables.colorOnSurfaceMedium),mainTitleFontSize:H.FtCssVariableFactory.external(Ae.fontSize,"Typography"),sectionTitleFontSize:H.FtCssVariableFactory.external(Ie.fontSize,"Typography"),starsBackgroundColor:H.FtCssVariableFactory.create("--ft-reader-feedback-stars-background-color","","COLOR",H.designSystemVariables.colorSurface)},Wn=zn.css`
471
+ `,U.noTextSelect];var ne=m(E());var le={textColor:ne.FtCssVariableFactory.extend("--ft-switch-text-color","",ne.designSystemVariables.colorOnSurfaceHigh),backgroundColor:ne.FtCssVariableFactory.extend("--ft-switch-background-color","",ne.designSystemVariables.colorSurface),selectedTextColor:ne.FtCssVariableFactory.extend("--ft-switch-selected-text-color","",ne.designSystemVariables.colorPrimary),selectedBackgroundColor:ne.FtCssVariableFactory.extend("--ft-switch-selected-background-color","",ne.designSystemVariables.colorPrimary),borderColor:ne.FtCssVariableFactory.extend("--ft-switch-border-color","",ne.designSystemVariables.colorOutline),borderRadius:ne.FtCssVariableFactory.extend("--ft-switch-border-radius","",ne.designSystemVariables.borderRadiusL),fontSize:ne.FtCssVariableFactory.extend("--ft-switch-font-size","",Pe.fontSize),iconSize:ne.FtCssVariableFactory.create("--ft-switch-icon-size","","SIZE","24px"),iconColor:ne.FtCssVariableFactory.extend("--ft-switch-text-color","",ne.designSystemVariables.colorOnSurfaceMedium),rippleColor:ne.FtCssVariableFactory.extend("--ft-switch-ripple-color","",ne.designSystemVariables.colorPrimary),outlineColor:ne.FtCssVariableFactory.extend("--ft-switch-outline-color","",ne.designSystemVariables.colorPrimary)};var mt={feedbackInputMinWidth:X.FtCssVariableFactory.create("--ft-reader-feedback-input-min-width","","SIZE","300px"),ratedDateColor:X.FtCssVariableFactory.external(X.designSystemVariables.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:X.FtCssVariableFactory.extend("--ft-reader-feedback-send-feedback-color","",X.designSystemVariables.colorOnPrimary),sendFeedbackBackgroundColor:X.FtCssVariableFactory.extend("--ft-reader-feedback-send-feedback-background-color","",X.designSystemVariables.colorPrimary),filledRatingColor:X.FtCssVariableFactory.extend("--ft-reader-feedback-filled-rating-color","",X.designSystemVariables.colorPrimary),emptyRatingColor:X.FtCssVariableFactory.extend("--ft-reader-feedback-empty-rating-color","",X.designSystemVariables.colorOnSurfaceMedium),mainTitleFontSize:X.FtCssVariableFactory.external($t.fontSize,"Typography"),sectionTitleFontSize:X.FtCssVariableFactory.external(Mt.fontSize,"Typography"),starsBackgroundColor:X.FtCssVariableFactory.create("--ft-reader-feedback-stars-background-color","","COLOR",X.designSystemVariables.colorSurface)},rs=ts.css`
472
472
  .ft-reader-feedback {
473
473
  box-sizing: border-box;
474
474
  display: flex;
@@ -481,7 +481,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
481
481
  flex-direction: row;
482
482
  align-items: center;
483
483
  margin-left: -6px;
484
- ${(0,H.setVariable)(V.backgroundColor,le.starsBackgroundColor)}
484
+ ${(0,X.setVariable)(J.backgroundColor,mt.starsBackgroundColor)}
485
485
  }
486
486
 
487
487
  .ft-reader-feedback--rating, .ft-reader-feedback--feedback {
@@ -494,14 +494,14 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
494
494
  }
495
495
 
496
496
  .ft-reader-feedback--rating {
497
- ${(0,H.setVariable)(V.color,le.emptyRatingColor)};
498
- ${(0,H.setVariable)(V.rippleColor,le.filledRatingColor)};
499
- ${(0,H.setVariable)(rt.textColor,le.emptyRatingColor)};
500
- ${(0,H.setVariable)(rt.selectedTextColor,le.filledRatingColor)};
497
+ ${(0,X.setVariable)(J.color,mt.emptyRatingColor)};
498
+ ${(0,X.setVariable)(J.rippleColor,mt.filledRatingColor)};
499
+ ${(0,X.setVariable)(le.textColor,mt.emptyRatingColor)};
500
+ ${(0,X.setVariable)(le.selectedTextColor,mt.filledRatingColor)};
501
501
  }
502
502
 
503
503
  .ft-reader-feedback--rating .ft-reader-feedback--active {
504
- ${(0,H.setVariable)(V.color,le.filledRatingColor)};
504
+ ${(0,X.setVariable)(J.color,mt.filledRatingColor)};
505
505
  }
506
506
 
507
507
  .ft-reader-feedback--feedback {
@@ -509,43 +509,43 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
509
509
  }
510
510
 
511
511
  .ft-reader-feedback--rating-date {
512
- color: ${le.ratedDateColor};
512
+ color: ${mt.ratedDateColor};
513
513
  }
514
514
 
515
515
  .ft-reader-feedback--feedback ft-text-area {
516
- min-width: ${le.feedbackInputMinWidth};
516
+ min-width: ${mt.feedbackInputMinWidth};
517
517
  }
518
518
 
519
519
  .ft-reader-feedback--send-feedback, .ft-reader-feedback--feedback-link {
520
- ${(0,H.setVariable)(V.color,le.sendFeedbackColor)};
521
- ${(0,H.setVariable)(V.backgroundColor,le.sendFeedbackBackgroundColor)};
520
+ ${(0,X.setVariable)(J.color,mt.sendFeedbackColor)};
521
+ ${(0,X.setVariable)(J.backgroundColor,mt.sendFeedbackBackgroundColor)};
522
522
  }
523
523
 
524
524
  [part="buttons-container"] {
525
525
  align-self: flex-end;
526
526
  }
527
- `;var la=u(S());var ei=globalThis,qo=ei.trustedTypes,Hn=qo?qo.createPolicy("lit-html",{createHTML:o=>o}):void 0,Yn="$lit$",Ne=`lit$${(Math.random()+"").slice(9)}$`,qn="?"+Ne,wl=`<${qn}>`,He=document,Xo=()=>He.createComment(""),Ao=o=>o===null||typeof o!="object"&&typeof o!="function",Xn=Array.isArray,El=o=>Xn(o)||typeof o?.[Symbol.iterator]=="function",Yr=`[
528
- \f\r]`,Ro=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Vn=/-->/g,Gn=/>/g,ze=RegExp(`>|${Yr}(?:([^\\s"'>=/]+)(${Yr}*=${Yr}*(?:[^
529
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Kn=/'/g,Zn=/"/g,Qn=/^(?:script|style|textarea|title)$/i,Jn=o=>(t,...r)=>({_$litType$:o,strings:t,values:r}),ta=Jn(1),ea=Jn(2),Io=Symbol.for("lit-noChange"),ct=Symbol.for("lit-nothing"),jn=new WeakMap,We=He.createTreeWalker(He,129);function oa(o,t){if(!Array.isArray(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return Hn!==void 0?Hn.createHTML(t):t}var Rl=(o,t)=>{let r=o.length-1,i=[],n,a=t===2?"<svg>":"",s=Ro;for(let c=0;c<r;c++){let p=o[c],h,g,x=-1,A=0;for(;A<p.length&&(s.lastIndex=A,g=s.exec(p),g!==null);)A=s.lastIndex,s===Ro?g[1]==="!--"?s=Vn:g[1]!==void 0?s=Gn:g[2]!==void 0?(Qn.test(g[2])&&(n=RegExp("</"+g[2],"g")),s=ze):g[3]!==void 0&&(s=ze):s===ze?g[0]===">"?(s=n??Ro,x=-1):g[1]===void 0?x=-2:(x=s.lastIndex-g[2].length,h=g[1],s=g[3]===void 0?ze:g[3]==='"'?Zn:Kn):s===Zn||s===Kn?s=ze:s===Vn||s===Gn?s=Ro:(s=ze,n=void 0);let R=s===ze&&o[c+1].startsWith("/>")?" ":"";a+=s===Ro?p+wl:x>=0?(i.push(h),p.slice(0,x)+Yn+p.slice(x)+Ne+R):p+Ne+(x===-2?c:R)}return[oa(o,a+(o[r]||"<?>")+(t===2?"</svg>":"")),i]},No=class o{constructor({strings:t,_$litType$:r},i){let n;this.parts=[];let a=0,s=0,c=t.length-1,p=this.parts,[h,g]=Rl(t,r);if(this.el=o.createElement(h,i),We.currentNode=this.el.content,r===2){let x=this.el.content.firstChild;x.replaceWith(...x.childNodes)}for(;(n=We.nextNode())!==null&&p.length<c;){if(n.nodeType===1){if(n.hasAttributes())for(let x of n.getAttributeNames())if(x.endsWith(Yn)){let A=g[s++],R=n.getAttribute(x).split(Ne),P=/([.?@])?(.*)/.exec(A);p.push({type:1,index:a,name:P[2],strings:R,ctor:P[1]==="."?Xr:P[1]==="?"?Qr:P[1]==="@"?Jr:so}),n.removeAttribute(x)}else x.startsWith(Ne)&&(p.push({type:6,index:a}),n.removeAttribute(x));if(Qn.test(n.tagName)){let x=n.textContent.split(Ne),A=x.length-1;if(A>0){n.textContent=qo?qo.emptyScript:"";for(let R=0;R<A;R++)n.append(x[R],Xo()),We.nextNode(),p.push({type:2,index:++a});n.append(x[A],Xo())}}}else if(n.nodeType===8)if(n.data===qn)p.push({type:2,index:a});else{let x=-1;for(;(x=n.data.indexOf(Ne,x+1))!==-1;)p.push({type:7,index:a}),x+=Ne.length-1}a++}}static createElement(t,r){let i=He.createElement("template");return i.innerHTML=t,i}};function ao(o,t,r=o,i){if(t===Io)return t;let n=i!==void 0?r._$Co?.[i]:r._$Cl,a=Ao(t)?void 0:t._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(o),n._$AT(o,r,i)),i!==void 0?(r._$Co??=[])[i]=n:r._$Cl=n),n!==void 0&&(t=ao(o,n._$AS(o,t.values),n,i)),t}var qr=class{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:r},parts:i}=this._$AD,n=(t?.creationScope??He).importNode(r,!0);We.currentNode=n;let a=We.nextNode(),s=0,c=0,p=i[0];for(;p!==void 0;){if(s===p.index){let h;p.type===2?h=new Qo(a,a.nextSibling,this,t):p.type===1?h=new p.ctor(a,p.name,p.strings,this,t):p.type===6&&(h=new ti(a,this,t)),this._$AV.push(h),p=i[++c]}s!==p?.index&&(a=We.nextNode(),s++)}return We.currentNode=He,n}p(t){let r=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,r),r+=i.strings.length-2):i._$AI(t[r])),r++}},Qo=class o{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,i,n){this.type=2,this._$AH=ct,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,r=this._$AM;return r!==void 0&&t?.nodeType===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=ao(this,t,r),Ao(t)?t===ct||t==null||t===""?(this._$AH!==ct&&this._$AR(),this._$AH=ct):t!==this._$AH&&t!==Io&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):El(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==ct&&Ao(this._$AH)?this._$AA.nextSibling.data=t:this.$(He.createTextNode(t)),this._$AH=t}g(t){let{values:r,_$litType$:i}=t,n=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=No.createElement(oa(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(r);else{let a=new qr(n,this),s=a.u(this.options);a.p(r),this.$(s),this._$AH=a}}_$AC(t){let r=jn.get(t.strings);return r===void 0&&jn.set(t.strings,r=new No(t)),r}T(t){Xn(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,n=0;for(let a of t)n===r.length?r.push(i=new o(this.k(Xo()),this.k(Xo()),this,this.options)):i=r[n],i._$AI(a),n++;n<r.length&&(this._$AR(i&&i._$AB.nextSibling,n),r.length=n)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);t&&t!==this._$AB;){let i=t.nextSibling;t.remove(),t=i}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},so=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,i,n,a){this.type=1,this._$AH=ct,this._$AN=void 0,this.element=t,this.name=r,this._$AM=n,this.options=a,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=ct}_$AI(t,r=this,i,n){let a=this.strings,s=!1;if(a===void 0)t=ao(this,t,r,0),s=!Ao(t)||t!==this._$AH&&t!==Io,s&&(this._$AH=t);else{let c=t,p,h;for(t=a[0],p=0;p<a.length-1;p++)h=ao(this,c[i+p],r,p),h===Io&&(h=this._$AH[p]),s||=!Ao(h)||h!==this._$AH[p],h===ct?t=ct:t!==ct&&(t+=(h??"")+a[p+1]),this._$AH[p]=h}s&&!n&&this.O(t)}O(t){t===ct?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Xr=class extends so{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===ct?void 0:t}},Qr=class extends so{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==ct)}},Jr=class extends so{constructor(t,r,i,n,a){super(t,r,i,n,a),this.type=5}_$AI(t,r=this){if((t=ao(this,t,r,0)??ct)===Io)return;let i=this._$AH,n=t===ct&&i!==ct||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,a=t!==ct&&(i===ct||n);n&&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)}},ti=class{constructor(t,r,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){ao(this,t)}};var Al=ei.litHtmlPolyfillSupport;Al?.(No,Qo),(ei.litHtmlVersions??=[]).push("3.1.0");var ia=Symbol.for(""),Il=o=>{if(o?.r===ia)return o?._$litStatic$},oi=o=>({_$litStatic$:o,r:ia});var ra=new Map,na=o=>(t,...r)=>{let i=r.length,n,a,s=[],c=[],p,h=0,g=!1;for(;h<i;){for(p=t[h];h<i&&(a=r[h],(n=Il(a))!==void 0);)p+=n+t[++h],g=!0;h!==i&&c.push(a),s.push(p),h++}if(h===i&&s.push(t[i]),g){let x=s.join("$$lit$$");(t=ra.get(x))===void 0&&(s.raw=s,ra.set(x,t=s)),r=c}return o(t,...r)},ri=na(ta),Jf=na(ea);var ii=u(K()),sa=u(S());var Ve;(function(o){o.title="title",o.title_dense="title-dense",o.subtitle1="subtitle1",o.subtitle2="subtitle2",o.body1="body1",o.body2="body2",o.caption="caption",o.breadcrumb="breadcrumb",o.overline="overline",o.button="button",o.display="display",o.title1="title-1",o.title2="title-2",o.title3="title-3",o.body1regular="body-1-regular",o.body1medium="body-1-medium",o.body1semibold="body-1-semibold",o.body2regular="body-2-regular",o.body2medium="body-2-medium",o.body2semibold="body-2-semibold",o.label1medium="label-1-medium",o.label1semibold="label-1-semibold",o.label1bold="label-1-bold",o.label2medium="label-2-medium",o.label2semibold="label-2-semibold",o.label2bold="label-2-bold",o.caption1medium="caption-1-medium",o.caption1semibold="caption-1-semibold",o.caption1bold="caption-1-bold",o.caption2medium="caption-2-medium",o.caption2semibold="caption-2-semibold",o.caption2bold="caption-2-bold"})(Ve||(Ve={}));var aa=function(o,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(o,t,r,i);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},it=class extends sa.FtLitElement{constructor(){super(...arguments),this.variant=Ve.body1}render(){return this.element?ri`
530
- <${oi(this.element)}
527
+ `;var Os=m(E());var Fi=globalThis,Co=Fi.trustedTypes,os=Co?Co.createPolicy("lit-html",{createHTML:t=>t}):void 0,cs="$lit$",Ut=`lit$${(Math.random()+"").slice(9)}$`,ds="?"+Ut,Ad=`<${ds}>`,ir=document,Eo=()=>ir.createComment(""),Yr=t=>t===null||typeof t!="object"&&typeof t!="function",ps=Array.isArray,Rd=t=>ps(t)||typeof t?.[Symbol.iterator]=="function",Li=`[
528
+ \f\r]`,qr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,is=/-->/g,ns=/>/g,rr=RegExp(`>|${Li}(?:([^\\s"'>=/]+)(${Li}*=${Li}*(?:[^
529
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),as=/'/g,ss=/"/g,fs=/^(?:script|style|textarea|title)$/i,us=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),hs=us(1),ms=us(2),Xr=Symbol.for("lit-noChange"),he=Symbol.for("lit-nothing"),ls=new WeakMap,or=ir.createTreeWalker(ir,129);function gs(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return os!==void 0?os.createHTML(e):e}var Nd=(t,e)=>{let r=t.length-1,i=[],n,a=e===2?"<svg>":"",s=qr;for(let l=0;l<r;l++){let d=t[l],p,u,g=-1,y=0;for(;y<d.length&&(s.lastIndex=y,u=s.exec(d),u!==null);)y=s.lastIndex,s===qr?u[1]==="!--"?s=is:u[1]!==void 0?s=ns:u[2]!==void 0?(fs.test(u[2])&&(n=RegExp("</"+u[2],"g")),s=rr):u[3]!==void 0&&(s=rr):s===rr?u[0]===">"?(s=n??qr,g=-1):u[1]===void 0?g=-2:(g=s.lastIndex-u[2].length,p=u[1],s=u[3]===void 0?rr:u[3]==='"'?ss:as):s===ss||s===as?s=rr:s===is||s===ns?s=qr:(s=rr,n=void 0);let v=s===rr&&t[l+1].startsWith("/>")?" ":"";a+=s===qr?d+Ad:g>=0?(i.push(p),d.slice(0,g)+cs+d.slice(g)+Ut+v):d+Ut+(g===-2?l:v)}return[gs(t,a+(t[r]||"<?>")+(e===2?"</svg>":"")),i]},Jr=class t{constructor({strings:e,_$litType$:r},i){let n;this.parts=[];let a=0,s=0,l=e.length-1,d=this.parts,[p,u]=Nd(e,r);if(this.el=t.createElement(p,i),or.currentNode=this.el.content,r===2){let g=this.el.content.firstChild;g.replaceWith(...g.childNodes)}for(;(n=or.nextNode())!==null&&d.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let g of n.getAttributeNames())if(g.endsWith(cs)){let y=u[s++],v=n.getAttribute(g).split(Ut),b=/([.?@])?(.*)/.exec(y);d.push({type:1,index:a,name:b[2],strings:v,ctor:b[1]==="."?$i:b[1]==="?"?Mi:b[1]==="@"?Ui:Cr}),n.removeAttribute(g)}else g.startsWith(Ut)&&(d.push({type:6,index:a}),n.removeAttribute(g));if(fs.test(n.tagName)){let g=n.textContent.split(Ut),y=g.length-1;if(y>0){n.textContent=Co?Co.emptyScript:"";for(let v=0;v<y;v++)n.append(g[v],Eo()),or.nextNode(),d.push({type:2,index:++a});n.append(g[y],Eo())}}}else if(n.nodeType===8)if(n.data===ds)d.push({type:2,index:a});else{let g=-1;for(;(g=n.data.indexOf(Ut,g+1))!==-1;)d.push({type:7,index:a}),g+=Ut.length-1}a++}}static createElement(e,r){let i=ir.createElement("template");return i.innerHTML=e,i}};function wr(t,e,r=t,i){if(e===Xr)return e;let n=i!==void 0?r._$Co?.[i]:r._$Cl,a=Yr(e)?void 0:e._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(t),n._$AT(t,r,i)),i!==void 0?(r._$Co??=[])[i]=n:r._$Cl=n),n!==void 0&&(e=wr(t,n._$AS(t,e.values),n,i)),e}var Di=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:i}=this._$AD,n=(e?.creationScope??ir).importNode(r,!0);or.currentNode=n;let a=or.nextNode(),s=0,l=0,d=i[0];for(;d!==void 0;){if(s===d.index){let p;d.type===2?p=new Ao(a,a.nextSibling,this,e):d.type===1?p=new d.ctor(a,d.name,d.strings,this,e):d.type===6&&(p=new Bi(a,this,e)),this._$AV.push(p),d=i[++l]}s!==d?.index&&(a=or.nextNode(),s++)}return or.currentNode=ir,n}p(e){let r=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,r),r+=i.strings.length-2):i._$AI(e[r])),r++}},Ao=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,i,n){this.type=2,this._$AH=he,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=wr(this,e,r),Yr(e)?e===he||e==null||e===""?(this._$AH!==he&&this._$AR(),this._$AH=he):e!==this._$AH&&e!==Xr&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):Rd(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==he&&Yr(this._$AH)?this._$AA.nextSibling.data=e:this.$(ir.createTextNode(e)),this._$AH=e}g(e){let{values:r,_$litType$:i}=e,n=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=Jr.createElement(gs(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(r);else{let a=new Di(n,this),s=a.u(this.options);a.p(r),this.$(s),this._$AH=a}}_$AC(e){let r=ls.get(e.strings);return r===void 0&&ls.set(e.strings,r=new Jr(e)),r}T(e){ps(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,n=0;for(let a of e)n===r.length?r.push(i=new t(this.k(Eo()),this.k(Eo()),this,this.options)):i=r[n],i._$AI(a),n++;n<r.length&&(this._$AR(i&&i._$AB.nextSibling,n),r.length=n)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e&&e!==this._$AB;){let i=e.nextSibling;e.remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Cr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,n,a){this.type=1,this._$AH=he,this._$AN=void 0,this.element=e,this.name=r,this._$AM=n,this.options=a,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=he}_$AI(e,r=this,i,n){let a=this.strings,s=!1;if(a===void 0)e=wr(this,e,r,0),s=!Yr(e)||e!==this._$AH&&e!==Xr,s&&(this._$AH=e);else{let l=e,d,p;for(e=a[0],d=0;d<a.length-1;d++)p=wr(this,l[i+d],r,d),p===Xr&&(p=this._$AH[d]),s||=!Yr(p)||p!==this._$AH[d],p===he?e=he:e!==he&&(e+=(p??"")+a[d+1]),this._$AH[d]=p}s&&!n&&this.O(e)}O(e){e===he?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},$i=class extends Cr{constructor(){super(...arguments),this.type=3}O(e){this.element[this.name]=e===he?void 0:e}},Mi=class extends Cr{constructor(){super(...arguments),this.type=4}O(e){this.element.toggleAttribute(this.name,!!e&&e!==he)}},Ui=class extends Cr{constructor(e,r,i,n,a){super(e,r,i,n,a),this.type=5}_$AI(e,r=this){if((e=wr(this,e,r,0)??he)===Xr)return;let i=this._$AH,n=e===he&&i!==he||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,a=e!==he&&(i===he||n);n&&this.element.removeEventListener(this.name,this,i),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},Bi=class{constructor(e,r,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){wr(this,e)}};var Id=Fi.litHtmlPolyfillSupport;Id?.(Jr,Ao),(Fi.litHtmlVersions??=[]).push("3.1.0");var bs=Symbol.for(""),Td=t=>{if(t?.r===bs)return t?._$litStatic$},zi=t=>({_$litStatic$:t,r:bs});var ys=new Map,vs=t=>(e,...r)=>{let i=r.length,n,a,s=[],l=[],d,p=0,u=!1;for(;p<i;){for(d=e[p];p<i&&(a=r[p],(n=Td(a))!==void 0);)d+=n+e[++p],u=!0;p!==i&&l.push(a),s.push(d),p++}if(p===i&&s.push(e[i]),u){let g=s.join("$$lit$$");(e=ys.get(g))===void 0&&(s.raw=s,ys.set(g,e=s)),r=l}return t(e,...r)},Wi=vs(hs),Hm=vs(ms);var Hi=m(j()),Ss=m(E());var nr;(function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"})(nr||(nr={}));var xs=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ce=class extends Ss.FtLitElement{constructor(){super(...arguments),this.variant=nr.body1}render(){return this.element?Wi`
530
+ <${zi(this.element)}
531
531
  part="text"
532
532
  class="ft-typography ft-typography--${this.variant}">
533
533
  <slot></slot>
534
- </${oi(this.element)}>
535
- `:ri`
534
+ </${zi(this.element)}>
535
+ `:Wi`
536
536
  <slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
537
- `}};it.styles=[On,wn,En,Rn,no,An,Yo,In,Nn,Tn,_n,...Ln];aa([(0,ii.property)()],it.prototype,"element",void 0);aa([(0,ii.property)()],it.prototype,"variant",void 0);(0,la.customElement)("ft-typography")(it);var bi=u(S());var sr=u(_()),ke=u(K()),Za=u(Te()),ve=u(S());var uo=u(_()),Xt=u(K()),ho=u(S());var fa=u(S());var da=u(_()),Ct=u(K()),pa=u(Te()),To=u(S());var Dt=function(o,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(o,t,r,i);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},B=class extends To.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new To.Debouncer(1e3),this.onTransitionStart=t=>{t.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=t=>{t.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new To.Debouncer(10),this.moveRipple=t=>{var r,i;let{x:n,y:a}=this.getCoordinates(t),s=(i=(r=this.ripple)===null||r===void 0?void 0:r.getBoundingClientRect())!==null&&i!==void 0?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(n!=null?n-s.x:s.width/2),this.originY=Math.round(a!=null?a-s.y:s.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(t?.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return da.html`
537
+ `}};ce.styles=[Ma,Ua,Ba,Fa,Or,za,wo,Wa,Ha,Va,ja,...Ga];xs([(0,Hi.property)()],ce.prototype,"element",void 0);xs([(0,Hi.property)()],ce.prototype,"variant",void 0);(0,Os.customElement)("ft-typography")(ce);var on=m(E());var Do=m($()),Wt=m(j()),sl=m(Bt()),Nt=m(E());var Ir=m($()),rt=m(j()),Tr=m(E());var As=m(E());var Cs=m($()),Ee=m(j()),Es=m(Bt()),Qr=m(E());var Fe=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},H=class extends Qr.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new Qr.Debouncer(1e3),this.onTransitionStart=e=>{e.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=e=>{e.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new Qr.Debouncer(10),this.moveRipple=e=>{var r,i;let{x:n,y:a}=this.getCoordinates(e),s=(i=(r=this.ripple)===null||r===void 0?void 0:r.getBoundingClientRect())!==null&&i!==void 0?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(n!=null?n-s.x:s.width/2),this.originY=Math.round(a!=null?a-s.y:s.height/2)},this.startPress=e=>{this.moveRipple(e),this.pressed=!this.isIgnored(e)},this.endPress=()=>{this.pressed=!1},this.startHover=e=>{this.hovered=!this.isIgnored(e)},this.endHover=()=>{this.hovered=!1},this.startFocus=e=>{this.focused=this.isFocusVisible(e?.target)&&!this.isIgnored(e)},this.endFocus=()=>{this.focused=!1}}render(){let e={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return Cs.html`
538
538
  <style>
539
539
  .ft-ripple .ft-ripple--effect {
540
540
  left: ${this.originX}px;
541
541
  top: ${this.originY}px;
542
542
  }
543
543
  </style>
544
- <div class="${(0,pa.classMap)(t)}">
544
+ <div class="${(0,Es.classMap)(e)}">
545
545
  <div class="ft-ripple--background"></div>
546
546
  <div class="ft-ripple--effect"></div>
547
547
  </div>
548
- `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var r,i;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var t,r;let i=(t=this.shadowRoot)===null||t===void 0?void 0:t.host.parentElement;i&&this.setupFor((r=this.target)!==null&&r!==void 0?r:i)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");let r=(...c)=>p=>{c.forEach(h=>window.addEventListener(h,this.endPress,{once:!0})),this.startPress(p)},i=r("mouseup","contextmenu"),n=r("touchend","touchcancel"),a=c=>{["Enter"," "].includes(c.key)&&r("keyup")(c)},s={passive:!0};t.addEventListener("mouseover",this.startHover,s),t.addEventListener("mousemove",this.moveRipple,s),t.addEventListener("mouseleave",this.endHover,s),t.addEventListener("mousedown",i,s),t.addEventListener("touchstart",n,s),t.addEventListener("touchmove",this.moveRipple,s),t.addEventListener("keydown",a,s),t.addEventListener("focus",this.startFocus,s),t.addEventListener("blur",this.endFocus,s),t.addEventListener("focusin",this.startFocus,s),t.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,s),t.removeEventListener("mousemove",this.moveRipple,s),t.removeEventListener("mouseleave",this.endHover,s),t.removeEventListener("mousedown",i,s),t.removeEventListener("touchstart",n,s),t.removeEventListener("touchmove",this.moveRipple,s),t.removeEventListener("keydown",a,s),t.removeEventListener("focus",this.startFocus,s),t.removeEventListener("blur",this.endFocus,s),t.removeEventListener("focusin",this.startFocus,s),t.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){let r=t,i=t,n,a;return r.x!=null?{x:n,y:a}=r:i.touches!=null&&(n=i.touches[0].clientX,a=i.touches[0].clientY),{x:n,y:a}}isFocusVisible(t){return t instanceof HTMLElement?t.matches(":focus-visible"):!0}isIgnored(t){if(this.disabled)return!0;if(t!=null)for(let r of t.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};B.elementDefinitions={};B.styles=ji;Dt([(0,Ct.property)({type:Boolean})],B.prototype,"primary",void 0);Dt([(0,Ct.property)({type:Boolean})],B.prototype,"secondary",void 0);Dt([(0,Ct.property)({type:Boolean})],B.prototype,"unbounded",void 0);Dt([(0,Ct.property)({type:Boolean})],B.prototype,"activated",void 0);Dt([(0,Ct.property)({type:Boolean})],B.prototype,"selected",void 0);Dt([(0,Ct.property)({type:Boolean})],B.prototype,"disabled",void 0);Dt([(0,Ct.state)()],B.prototype,"hovered",void 0);Dt([(0,Ct.state)()],B.prototype,"focused",void 0);Dt([(0,Ct.state)()],B.prototype,"pressed",void 0);Dt([(0,Ct.state)()],B.prototype,"rippling",void 0);Dt([(0,Ct.state)()],B.prototype,"originX",void 0);Dt([(0,Ct.state)()],B.prototype,"originY",void 0);Dt([(0,Ct.query)(".ft-ripple")],B.prototype,"ripple",void 0);Dt([(0,Ct.query)(".ft-ripple--effect")],B.prototype,"rippleEffect",void 0);(0,fa.customElement)("ft-ripple")(B);var Ka=u(Te());var Ua=u(S());var Ba=u(_()),ut=u(K()),Do=u(S());var ua=u(_()),ge=u(S()),lo={distance:ge.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:ge.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:ge.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:ge.FtCssVariableFactory.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:ge.FtCssVariableFactory.external(ge.designSystemVariables.borderRadiusS,"Design system"),maxWidth:ge.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},ha=ua.css`
548
+ `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var r,i;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,r;let i=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;i&&this.setupFor((r=this.target)!==null&&r!==void 0?r:i)}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let r=(...l)=>d=>{l.forEach(p=>window.addEventListener(p,this.endPress,{once:!0})),this.startPress(d)},i=r("mouseup","contextmenu"),n=r("touchend","touchcancel"),a=l=>{["Enter"," "].includes(l.key)&&r("keyup")(l)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",i,s),e.addEventListener("touchstart",n,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",a,s),e.addEventListener("focus",this.startFocus,s),e.addEventListener("blur",this.endFocus,s),e.addEventListener("focusin",this.startFocus,s),e.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,s),e.removeEventListener("mousemove",this.moveRipple,s),e.removeEventListener("mouseleave",this.endHover,s),e.removeEventListener("mousedown",i,s),e.removeEventListener("touchstart",n,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",a,s),e.removeEventListener("focus",this.startFocus,s),e.removeEventListener("blur",this.endFocus,s),e.removeEventListener("focusin",this.startFocus,s),e.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let r=e,i=e,n,a;return r.x!=null?{x:n,y:a}=r:i.touches!=null&&(n=i.touches[0].clientX,a=i.touches[0].clientY),{x:n,y:a}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let r of e.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};H.elementDefinitions={};H.styles=sa;Fe([(0,Ee.property)({type:Boolean})],H.prototype,"primary",void 0);Fe([(0,Ee.property)({type:Boolean})],H.prototype,"secondary",void 0);Fe([(0,Ee.property)({type:Boolean})],H.prototype,"unbounded",void 0);Fe([(0,Ee.property)({type:Boolean})],H.prototype,"activated",void 0);Fe([(0,Ee.property)({type:Boolean})],H.prototype,"selected",void 0);Fe([(0,Ee.property)({type:Boolean})],H.prototype,"disabled",void 0);Fe([(0,Ee.state)()],H.prototype,"hovered",void 0);Fe([(0,Ee.state)()],H.prototype,"focused",void 0);Fe([(0,Ee.state)()],H.prototype,"pressed",void 0);Fe([(0,Ee.state)()],H.prototype,"rippling",void 0);Fe([(0,Ee.state)()],H.prototype,"originX",void 0);Fe([(0,Ee.state)()],H.prototype,"originY",void 0);Fe([(0,Ee.query)(".ft-ripple")],H.prototype,"ripple",void 0);Fe([(0,Ee.query)(".ft-ripple--effect")],H.prototype,"rippleEffect",void 0);(0,As.customElement)("ft-ripple")(H);var al=m(Bt());var Js=m(E());var Xs=m($()),ve=m(j()),no=m(E());var Rs=m($()),Ct=m(E()),Er={distance:Ct.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:Ct.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:Ct.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:Ct.FtCssVariableFactory.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:Ct.FtCssVariableFactory.external(Ct.designSystemVariables.borderRadiusS,"Design system"),maxWidth:Ct.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},Ns=Rs.css`
549
549
  .ft-tooltip--container {
550
550
  display: block;
551
551
  }
@@ -560,21 +560,21 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
560
560
  box-sizing: border-box;
561
561
  overflow: hidden;
562
562
  width: max-content;
563
- max-width: ${lo.maxWidth};
563
+ max-width: ${Er.maxWidth};
564
564
  text-align: center;
565
- padding: ${lo.distance};
566
- z-index: ${lo.zIndex};
565
+ padding: ${Er.distance};
566
+ z-index: ${Er.zIndex};
567
567
  }
568
568
 
569
569
  .ft-tooltip--content {
570
570
  padding: 4px 8px;
571
- border-radius: ${lo.borderRadiusS};
572
- background-color: ${lo.backgroundColor};
573
- color: ${lo.color};
571
+ border-radius: ${Er.borderRadiusS};
572
+ background-color: ${Er.backgroundColor};
573
+ color: ${Er.color};
574
574
  position: relative;
575
575
  word-break: break-word;
576
576
  }
577
- `;var ga=["top","right","bottom","left"],ma=["start","end"],ai=ga.reduce((o,t)=>o.concat(t,t+"-"+ma[0],t+"-"+ma[1]),[]),_o=Math.min,_e=Math.max,Lo=Math.round;var ye=o=>({x:o,y:o}),Nl={left:"right",right:"left",bottom:"top",top:"bottom"},Tl={start:"end",end:"start"};function si(o,t,r){return _e(o,_o(t,r))}function Jo(o,t){return typeof o=="function"?o(t):o}function co(o){return o.split("-")[0]}function Le(o){return o.split("-")[1]}function li(o){return o==="x"?"y":"x"}function ci(o){return o==="y"?"height":"width"}function tr(o){return["top","bottom"].includes(co(o))?"y":"x"}function di(o){return li(tr(o))}function ya(o,t,r){r===void 0&&(r=!1);let i=Le(o),n=di(o),a=ci(n),s=n==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=ni(s)),[s,ni(s)]}function ba(o){return o.replace(/start|end/g,t=>Tl[t])}function ni(o){return o.replace(/left|right|bottom|top/g,t=>Nl[t])}function _l(o){return{top:0,right:0,bottom:0,left:0,...o}}function xa(o){return typeof o!="number"?_l(o):{top:o,right:o,bottom:o,left:o}}function Ge(o){return{...o,top:o.y,left:o.x,right:o.x+o.width,bottom:o.y+o.height}}function va(o,t,r){let{reference:i,floating:n}=o,a=tr(t),s=di(t),c=ci(s),p=co(t),h=a==="y",g=i.x+i.width/2-n.width/2,x=i.y+i.height/2-n.height/2,A=i[c]/2-n[c]/2,R;switch(p){case"top":R={x:g,y:i.y-n.height};break;case"bottom":R={x:g,y:i.y+i.height};break;case"right":R={x:i.x+i.width,y:x};break;case"left":R={x:i.x-n.width,y:x};break;default:R={x:i.x,y:i.y}}switch(Le(t)){case"start":R[s]-=A*(r&&h?-1:1);break;case"end":R[s]+=A*(r&&h?-1:1);break}return R}var Sa=async(o,t,r)=>{let{placement:i="bottom",strategy:n="absolute",middleware:a=[],platform:s}=r,c=a.filter(Boolean),p=await(s.isRTL==null?void 0:s.isRTL(t)),h=await s.getElementRects({reference:o,floating:t,strategy:n}),{x:g,y:x}=va(h,i,p),A=i,R={},P=0;for(let X=0;X<c.length;X++){let{name:Q,fn:q}=c[X],{x:ot,y:vt,data:Rt,reset:gt}=await q({x:g,y:x,initialPlacement:i,placement:A,strategy:n,middlewareData:R,rects:h,platform:s,elements:{reference:o,floating:t}});if(g=ot??g,x=vt??x,R={...R,[Q]:{...R[Q],...Rt}},gt&&P<=50){P++,typeof gt=="object"&&(gt.placement&&(A=gt.placement),gt.rects&&(h=gt.rects===!0?await s.getElementRects({reference:o,floating:t,strategy:n}):gt.rects),{x:g,y:x}=va(h,A,p)),X=-1;continue}}return{x:g,y:x,placement:A,strategy:n,middlewareData:R}};async function pi(o,t){var r;t===void 0&&(t={});let{x:i,y:n,platform:a,rects:s,elements:c,strategy:p}=o,{boundary:h="clippingAncestors",rootBoundary:g="viewport",elementContext:x="floating",altBoundary:A=!1,padding:R=0}=Jo(t,o),P=xa(R),Q=c[A?x==="floating"?"reference":"floating":x],q=Ge(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(Q)))==null||r?Q:Q.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(c.floating)),boundary:h,rootBoundary:g,strategy:p})),ot=x==="floating"?{...s.floating,x:i,y:n}:s.reference,vt=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c.floating)),Rt=await(a.isElement==null?void 0:a.isElement(vt))?await(a.getScale==null?void 0:a.getScale(vt))||{x:1,y:1}:{x:1,y:1},gt=Ge(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:ot,offsetParent:vt,strategy:p}):ot);return{top:(q.top-gt.top+P.top)/Rt.y,bottom:(gt.bottom-q.bottom+P.bottom)/Rt.y,left:(q.left-gt.left+P.left)/Rt.x,right:(gt.right-q.right+P.right)/Rt.x}}function Ll(o,t,r){return(o?[...r.filter(n=>Le(n)===o),...r.filter(n=>Le(n)!==o)]:r.filter(n=>co(n)===n)).filter(n=>o?Le(n)===o||(t?ba(n)!==n:!1):!0)}var fi=function(o){return o===void 0&&(o={}),{name:"autoPlacement",options:o,async fn(t){var r,i,n;let{rects:a,middlewareData:s,placement:c,platform:p,elements:h}=t,{crossAxis:g=!1,alignment:x,allowedPlacements:A=ai,autoAlignment:R=!0,...P}=Jo(o,t),X=x!==void 0||A===ai?Ll(x||null,R,A):A,Q=await pi(t,P),q=((r=s.autoPlacement)==null?void 0:r.index)||0,ot=X[q];if(ot==null)return{};let vt=ya(ot,a,await(p.isRTL==null?void 0:p.isRTL(h.floating)));if(c!==ot)return{reset:{placement:X[0]}};let Rt=[Q[co(ot)],Q[vt[0]],Q[vt[1]]],gt=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:ot,overflows:Rt}],Go=X[q+1];if(Go)return{data:{index:q+1,overflows:gt},reset:{placement:Go}};let Wt=gt.map(f=>{let m=Le(f.placement);return[f.placement,m&&g?f.overflows.slice(0,2).reduce((I,yt)=>I+yt,0):f.overflows[0],f.overflows]}).sort((f,m)=>f[1]-m[1]),Je=((n=Wt.filter(f=>f[2].slice(0,Le(f[0])?2:3).every(m=>m<=0))[0])==null?void 0:n[0])||Wt[0][0];return Je!==c?{data:{index:q+1,overflows:gt},reset:{placement:Je}}:{}}}};var ui=function(o){return o===void 0&&(o={}),{name:"shift",options:o,async fn(t){let{x:r,y:i,placement:n}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:c={fn:Q=>{let{x:q,y:ot}=Q;return{x:q,y:ot}}},...p}=Jo(o,t),h={x:r,y:i},g=await pi(t,p),x=tr(co(n)),A=li(x),R=h[A],P=h[x];if(a){let Q=A==="y"?"top":"left",q=A==="y"?"bottom":"right",ot=R+g[Q],vt=R-g[q];R=si(ot,R,vt)}if(s){let Q=x==="y"?"top":"left",q=x==="y"?"bottom":"right",ot=P+g[Q],vt=P-g[q];P=si(ot,P,vt)}let X=c.fn({...t,[A]:R,[x]:P});return{...X,data:{x:X.x-r,y:X.y-i}}}}};function be(o){return Oa(o)?(o.nodeName||"").toLowerCase():"#document"}function Bt(o){var t;return(o==null||(t=o.ownerDocument)==null?void 0:t.defaultView)||window}function xe(o){var t;return(t=(Oa(o)?o.ownerDocument:o.document)||window.document)==null?void 0:t.documentElement}function Oa(o){return o instanceof Node||o instanceof Bt(o).Node}function ce(o){return o instanceof Element||o instanceof Bt(o).Element}function oe(o){return o instanceof HTMLElement||o instanceof Bt(o).HTMLElement}function Ca(o){return typeof ShadowRoot>"u"?!1:o instanceof ShadowRoot||o instanceof Bt(o).ShadowRoot}function po(o){let{overflow:t,overflowX:r,overflowY:i,display:n}=Ht(o);return/auto|scroll|overlay|hidden|clip/.test(t+i+r)&&!["inline","contents"].includes(n)}function wa(o){return["table","td","th"].includes(be(o))}function or(o){let t=rr(),r=Ht(o);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(i=>(r.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(r.contain||"").includes(i))}function Ea(o){let t=Ke(o);for(;oe(t)&&!ko(t);){if(or(t))return t;t=Ke(t)}return null}function rr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ko(o){return["html","body","#document"].includes(be(o))}function Ht(o){return Bt(o).getComputedStyle(o)}function $o(o){return ce(o)?{scrollLeft:o.scrollLeft,scrollTop:o.scrollTop}:{scrollLeft:o.pageXOffset,scrollTop:o.pageYOffset}}function Ke(o){if(be(o)==="html")return o;let t=o.assignedSlot||o.parentNode||Ca(o)&&o.host||xe(o);return Ca(t)?t.host:t}function Ra(o){let t=Ke(o);return ko(t)?o.ownerDocument?o.ownerDocument.body:o.body:oe(t)&&po(t)?t:Ra(t)}function er(o,t,r){var i;t===void 0&&(t=[]),r===void 0&&(r=!0);let n=Ra(o),a=n===((i=o.ownerDocument)==null?void 0:i.body),s=Bt(n);return a?t.concat(s,s.visualViewport||[],po(n)?n:[],s.frameElement&&r?er(s.frameElement):[]):t.concat(n,er(n,[],r))}function Na(o){let t=Ht(o),r=parseFloat(t.width)||0,i=parseFloat(t.height)||0,n=oe(o),a=n?o.offsetWidth:r,s=n?o.offsetHeight:i,c=Lo(r)!==a||Lo(i)!==s;return c&&(r=a,i=s),{width:r,height:i,$:c}}function Ta(o){return ce(o)?o:o.contextElement}function fo(o){let t=Ta(o);if(!oe(t))return ye(1);let r=t.getBoundingClientRect(),{width:i,height:n,$:a}=Na(t),s=(a?Lo(r.width):r.width)/i,c=(a?Lo(r.height):r.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}var kl=ye(0);function _a(o){let t=Bt(o);return!rr()||!t.visualViewport?kl:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function $l(o,t,r){return t===void 0&&(t=!1),!r||t&&r!==Bt(o)?!1:t}function Po(o,t,r,i){t===void 0&&(t=!1),r===void 0&&(r=!1);let n=o.getBoundingClientRect(),a=Ta(o),s=ye(1);t&&(i?ce(i)&&(s=fo(i)):s=fo(o));let c=$l(a,r,i)?_a(a):ye(0),p=(n.left+c.x)/s.x,h=(n.top+c.y)/s.y,g=n.width/s.x,x=n.height/s.y;if(a){let A=Bt(a),R=i&&ce(i)?Bt(i):i,P=A.frameElement;for(;P&&i&&R!==A;){let X=fo(P),Q=P.getBoundingClientRect(),q=Ht(P),ot=Q.left+(P.clientLeft+parseFloat(q.paddingLeft))*X.x,vt=Q.top+(P.clientTop+parseFloat(q.paddingTop))*X.y;p*=X.x,h*=X.y,g*=X.x,x*=X.y,p+=ot,h+=vt,P=Bt(P).frameElement}}return Ge({width:g,height:x,x:p,y:h})}function Pl(o){let{rect:t,offsetParent:r,strategy:i}=o,n=oe(r),a=xe(r);if(r===a)return t;let s={scrollLeft:0,scrollTop:0},c=ye(1),p=ye(0);if((n||!n&&i!=="fixed")&&((be(r)!=="body"||po(a))&&(s=$o(r)),oe(r))){let h=Po(r);c=fo(r),p.x=h.x+r.clientLeft,p.y=h.y+r.clientTop}return{width:t.width*c.x,height:t.height*c.y,x:t.x*c.x-s.scrollLeft*c.x+p.x,y:t.y*c.y-s.scrollTop*c.y+p.y}}function Dl(o){return Array.from(o.getClientRects())}function La(o){return Po(xe(o)).left+$o(o).scrollLeft}function Bl(o){let t=xe(o),r=$o(o),i=o.ownerDocument.body,n=_e(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),a=_e(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight),s=-r.scrollLeft+La(o),c=-r.scrollTop;return Ht(i).direction==="rtl"&&(s+=_e(t.clientWidth,i.clientWidth)-n),{width:n,height:a,x:s,y:c}}function Ul(o,t){let r=Bt(o),i=xe(o),n=r.visualViewport,a=i.clientWidth,s=i.clientHeight,c=0,p=0;if(n){a=n.width,s=n.height;let h=rr();(!h||h&&t==="fixed")&&(c=n.offsetLeft,p=n.offsetTop)}return{width:a,height:s,x:c,y:p}}function Ml(o,t){let r=Po(o,!0,t==="fixed"),i=r.top+o.clientTop,n=r.left+o.clientLeft,a=oe(o)?fo(o):ye(1),s=o.clientWidth*a.x,c=o.clientHeight*a.y,p=n*a.x,h=i*a.y;return{width:s,height:c,x:p,y:h}}function Aa(o,t,r){let i;if(t==="viewport")i=Ul(o,r);else if(t==="document")i=Bl(xe(o));else if(ce(t))i=Ml(t,r);else{let n=_a(o);i={...t,x:t.x-n.x,y:t.y-n.y}}return Ge(i)}function ka(o,t){let r=Ke(o);return r===t||!ce(r)||ko(r)?!1:Ht(r).position==="fixed"||ka(r,t)}function Fl(o,t){let r=t.get(o);if(r)return r;let i=er(o,[],!1).filter(c=>ce(c)&&be(c)!=="body"),n=null,a=Ht(o).position==="fixed",s=a?Ke(o):o;for(;ce(s)&&!ko(s);){let c=Ht(s),p=or(s);!p&&c.position==="fixed"&&(n=null),(a?!p&&!n:!p&&c.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||po(s)&&!p&&ka(o,s))?i=i.filter(g=>g!==s):n=c,s=Ke(s)}return t.set(o,i),i}function zl(o){let{element:t,boundary:r,rootBoundary:i,strategy:n}=o,s=[...r==="clippingAncestors"?Fl(t,this._c):[].concat(r),i],c=s[0],p=s.reduce((h,g)=>{let x=Aa(t,g,n);return h.top=_e(x.top,h.top),h.right=_o(x.right,h.right),h.bottom=_o(x.bottom,h.bottom),h.left=_e(x.left,h.left),h},Aa(t,c,n));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}}function Wl(o){return Na(o)}function Hl(o,t,r){let i=oe(t),n=xe(t),a=r==="fixed",s=Po(o,!0,a,t),c={scrollLeft:0,scrollTop:0},p=ye(0);if(i||!i&&!a)if((be(t)!=="body"||po(n))&&(c=$o(t)),i){let h=Po(t,!0,a,t);p.x=h.x+t.clientLeft,p.y=h.y+t.clientTop}else n&&(p.x=La(n));return{x:s.left+c.scrollLeft-p.x,y:s.top+c.scrollTop-p.y,width:s.width,height:s.height}}function Ia(o,t){return!oe(o)||Ht(o).position==="fixed"?null:t?t(o):o.offsetParent}function $a(o,t){let r=Bt(o);if(!oe(o))return r;let i=Ia(o,t);for(;i&&wa(i)&&Ht(i).position==="static";)i=Ia(i,t);return i&&(be(i)==="html"||be(i)==="body"&&Ht(i).position==="static"&&!or(i))?r:i||Ea(o)||r}var Vl=async function(o){let{reference:t,floating:r,strategy:i}=o,n=this.getOffsetParent||$a,a=this.getDimensions;return{reference:Hl(t,await n(r),i),floating:{x:0,y:0,...await a(r)}}};function Gl(o){return Ht(o).direction==="rtl"}var ir={convertOffsetParentRelativeRectToViewportRelativeRect:Pl,getDocumentElement:xe,getClippingRect:zl,getOffsetParent:$a,getElementRects:Vl,getClientRects:Dl,getDimensions:Wl,getScale:fo,isElement:ce,isRTL:Gl};var Pa=(o,t,r)=>{let i=new Map,n={platform:ir,...r},a={...n.platform,_c:i};return Sa(o,t,{...n,platform:a})};function Da(o){return Kl(o)}function hi(o){return o.assignedSlot?o.assignedSlot:o.parentNode instanceof ShadowRoot?o.parentNode.host:o.parentNode}function Kl(o){for(let t=o;t;t=hi(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=hi(o);t;t=hi(t)){if(!(t instanceof Element))continue;let r=getComputedStyle(t);if(r.display!=="contents"&&(r.position!=="static"||r.filter!=="none"||t.tagName==="BODY"))return t}return null}async function nr(o,t,r){return Pa(o,t,{platform:{...ir,getOffsetParent:i=>ir.getOffsetParent(i,Da)},middleware:[ui({crossAxis:!0}),fi({allowedPlacements:[r]})]})}var Ut=function(o,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(o,t,r,i);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},Z=class extends Do.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new Do.Debouncer,this.revealDebouncer=new Do.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return Ba.html`
577
+ `;var Ts=["top","right","bottom","left"],Is=["start","end"],ji=Ts.reduce((t,e)=>t.concat(e,e+"-"+Is[0],e+"-"+Is[1]),[]),eo=Math.min,Ft=Math.max,to=Math.round;var Et=t=>({x:t,y:t}),_d={left:"right",right:"left",bottom:"top",top:"bottom"},kd={start:"end",end:"start"};function Gi(t,e,r){return Ft(t,eo(e,r))}function Ro(t,e){return typeof t=="function"?t(e):t}function Ar(t){return t.split("-")[0]}function zt(t){return t.split("-")[1]}function Ki(t){return t==="x"?"y":"x"}function Zi(t){return t==="y"?"height":"width"}function No(t){return["top","bottom"].includes(Ar(t))?"y":"x"}function qi(t){return Ki(No(t))}function _s(t,e,r){r===void 0&&(r=!1);let i=zt(t),n=qi(t),a=Zi(n),s=n==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=Vi(s)),[s,Vi(s)]}function ks(t){return t.replace(/start|end/g,e=>kd[e])}function Vi(t){return t.replace(/left|right|bottom|top/g,e=>_d[e])}function Pd(t){return{top:0,right:0,bottom:0,left:0,...t}}function Ps(t){return typeof t!="number"?Pd(t):{top:t,right:t,bottom:t,left:t}}function ar(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Ls(t,e,r){let{reference:i,floating:n}=t,a=No(e),s=qi(e),l=Zi(s),d=Ar(e),p=a==="y",u=i.x+i.width/2-n.width/2,g=i.y+i.height/2-n.height/2,y=i[l]/2-n[l]/2,v;switch(d){case"top":v={x:u,y:i.y-n.height};break;case"bottom":v={x:u,y:i.y+i.height};break;case"right":v={x:i.x+i.width,y:g};break;case"left":v={x:i.x-n.width,y:g};break;default:v={x:i.x,y:i.y}}switch(zt(e)){case"start":v[s]-=y*(r&&p?-1:1);break;case"end":v[s]+=y*(r&&p?-1:1);break}return v}var Ds=async(t,e,r)=>{let{placement:i="bottom",strategy:n="absolute",middleware:a=[],platform:s}=r,l=a.filter(Boolean),d=await(s.isRTL==null?void 0:s.isRTL(e)),p=await s.getElementRects({reference:t,floating:e,strategy:n}),{x:u,y:g}=Ls(p,i,d),y=i,v={},b=0;for(let S=0;S<l.length;S++){let{name:I,fn:A}=l[S],{x:R,y:D,data:k,reset:K}=await A({x:u,y:g,initialPlacement:i,placement:y,strategy:n,middlewareData:v,rects:p,platform:s,elements:{reference:t,floating:e}});if(u=R??u,g=D??g,v={...v,[I]:{...v[I],...k}},K&&b<=50){b++,typeof K=="object"&&(K.placement&&(y=K.placement),K.rects&&(p=K.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:n}):K.rects),{x:u,y:g}=Ls(p,y,d)),S=-1;continue}}return{x:u,y:g,placement:y,strategy:n,middlewareData:v}};async function Yi(t,e){var r;e===void 0&&(e={});let{x:i,y:n,platform:a,rects:s,elements:l,strategy:d}=t,{boundary:p="clippingAncestors",rootBoundary:u="viewport",elementContext:g="floating",altBoundary:y=!1,padding:v=0}=Ro(e,t),b=Ps(v),I=l[y?g==="floating"?"reference":"floating":g],A=ar(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(I)))==null||r?I:I.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:p,rootBoundary:u,strategy:d})),R=g==="floating"?{...s.floating,x:i,y:n}:s.reference,D=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),k=await(a.isElement==null?void 0:a.isElement(D))?await(a.getScale==null?void 0:a.getScale(D))||{x:1,y:1}:{x:1,y:1},K=ar(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:R,offsetParent:D,strategy:d}):R);return{top:(A.top-K.top+b.top)/k.y,bottom:(K.bottom-A.bottom+b.bottom)/k.y,left:(A.left-K.left+b.left)/k.x,right:(K.right-A.right+b.right)/k.x}}function Ld(t,e,r){return(t?[...r.filter(n=>zt(n)===t),...r.filter(n=>zt(n)!==t)]:r.filter(n=>Ar(n)===n)).filter(n=>t?zt(n)===t||(e?ks(n)!==n:!1):!0)}var Xi=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,i,n;let{rects:a,middlewareData:s,placement:l,platform:d,elements:p}=e,{crossAxis:u=!1,alignment:g,allowedPlacements:y=ji,autoAlignment:v=!0,...b}=Ro(t,e),S=g!==void 0||y===ji?Ld(g||null,v,y):y,I=await Yi(e,b),A=((r=s.autoPlacement)==null?void 0:r.index)||0,R=S[A];if(R==null)return{};let D=_s(R,a,await(d.isRTL==null?void 0:d.isRTL(p.floating)));if(l!==R)return{reset:{placement:S[0]}};let k=[I[Ar(R)],I[D[0]],I[D[1]]],K=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:R,overflows:k}],Ue=S[A+1];if(Ue)return{data:{index:A+1,overflows:K},reset:{placement:Ue}};let be=K.map(h=>{let x=zt(h.placement);return[h.placement,x&&u?h.overflows.slice(0,2).reduce((T,ee)=>T+ee,0):h.overflows[0],h.overflows]}).sort((h,x)=>h[1]-x[1]),Je=((n=be.filter(h=>h[2].slice(0,zt(h[0])?2:3).every(x=>x<=0))[0])==null?void 0:n[0])||be[0][0];return Je!==l?{data:{index:A+1,overflows:K},reset:{placement:Je}}:{}}}};var Ji=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:i,placement:n}=e,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:I=>{let{x:A,y:R}=I;return{x:A,y:R}}},...d}=Ro(t,e),p={x:r,y:i},u=await Yi(e,d),g=No(Ar(n)),y=Ki(g),v=p[y],b=p[g];if(a){let I=y==="y"?"top":"left",A=y==="y"?"bottom":"right",R=v+u[I],D=v-u[A];v=Gi(R,v,D)}if(s){let I=g==="y"?"top":"left",A=g==="y"?"bottom":"right",R=b+u[I],D=b-u[A];b=Gi(R,b,D)}let S=l.fn({...e,[y]:v,[g]:b});return{...S,data:{x:S.x-r,y:S.y-i}}}}};function At(t){return Ms(t)?(t.nodeName||"").toLowerCase():"#document"}function ze(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Rt(t){var e;return(e=(Ms(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Ms(t){return t instanceof Node||t instanceof ze(t).Node}function gt(t){return t instanceof Element||t instanceof ze(t).Element}function lt(t){return t instanceof HTMLElement||t instanceof ze(t).HTMLElement}function $s(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof ze(t).ShadowRoot}function Rr(t){let{overflow:e,overflowX:r,overflowY:i,display:n}=Ge(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&!["inline","contents"].includes(n)}function Us(t){return["table","td","th"].includes(At(t))}function To(t){let e=_o(),r=Ge(t);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!e&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!e&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(i=>(r.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(r.contain||"").includes(i))}function Bs(t){let e=sr(t);for(;lt(e)&&!ro(e);){if(To(e))return e;e=sr(e)}return null}function _o(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ro(t){return["html","body","#document"].includes(At(t))}function Ge(t){return ze(t).getComputedStyle(t)}function oo(t){return gt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function sr(t){if(At(t)==="html")return t;let e=t.assignedSlot||t.parentNode||$s(t)&&t.host||Rt(t);return $s(e)?e.host:e}function Fs(t){let e=sr(t);return ro(e)?t.ownerDocument?t.ownerDocument.body:t.body:lt(e)&&Rr(e)?e:Fs(e)}function Io(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let n=Fs(t),a=n===((i=t.ownerDocument)==null?void 0:i.body),s=ze(n);return a?e.concat(s,s.visualViewport||[],Rr(n)?n:[],s.frameElement&&r?Io(s.frameElement):[]):e.concat(n,Io(n,[],r))}function Hs(t){let e=Ge(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,n=lt(t),a=n?t.offsetWidth:r,s=n?t.offsetHeight:i,l=to(r)!==a||to(i)!==s;return l&&(r=a,i=s),{width:r,height:i,$:l}}function Vs(t){return gt(t)?t:t.contextElement}function Nr(t){let e=Vs(t);if(!lt(e))return Et(1);let r=e.getBoundingClientRect(),{width:i,height:n,$:a}=Hs(e),s=(a?to(r.width):r.width)/i,l=(a?to(r.height):r.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var Dd=Et(0);function js(t){let e=ze(t);return!_o()||!e.visualViewport?Dd:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function $d(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==ze(t)?!1:e}function io(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let n=t.getBoundingClientRect(),a=Vs(t),s=Et(1);e&&(i?gt(i)&&(s=Nr(i)):s=Nr(t));let l=$d(a,r,i)?js(a):Et(0),d=(n.left+l.x)/s.x,p=(n.top+l.y)/s.y,u=n.width/s.x,g=n.height/s.y;if(a){let y=ze(a),v=i&&gt(i)?ze(i):i,b=y.frameElement;for(;b&&i&&v!==y;){let S=Nr(b),I=b.getBoundingClientRect(),A=Ge(b),R=I.left+(b.clientLeft+parseFloat(A.paddingLeft))*S.x,D=I.top+(b.clientTop+parseFloat(A.paddingTop))*S.y;d*=S.x,p*=S.y,u*=S.x,g*=S.y,d+=R,p+=D,b=ze(b).frameElement}}return ar({width:u,height:g,x:d,y:p})}function Md(t){let{rect:e,offsetParent:r,strategy:i}=t,n=lt(r),a=Rt(r);if(r===a)return e;let s={scrollLeft:0,scrollTop:0},l=Et(1),d=Et(0);if((n||!n&&i!=="fixed")&&((At(r)!=="body"||Rr(a))&&(s=oo(r)),lt(r))){let p=io(r);l=Nr(r),d.x=p.x+r.clientLeft,d.y=p.y+r.clientTop}return{width:e.width*l.x,height:e.height*l.y,x:e.x*l.x-s.scrollLeft*l.x+d.x,y:e.y*l.y-s.scrollTop*l.y+d.y}}function Ud(t){return Array.from(t.getClientRects())}function Gs(t){return io(Rt(t)).left+oo(t).scrollLeft}function Bd(t){let e=Rt(t),r=oo(t),i=t.ownerDocument.body,n=Ft(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),a=Ft(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight),s=-r.scrollLeft+Gs(t),l=-r.scrollTop;return Ge(i).direction==="rtl"&&(s+=Ft(e.clientWidth,i.clientWidth)-n),{width:n,height:a,x:s,y:l}}function Fd(t,e){let r=ze(t),i=Rt(t),n=r.visualViewport,a=i.clientWidth,s=i.clientHeight,l=0,d=0;if(n){a=n.width,s=n.height;let p=_o();(!p||p&&e==="fixed")&&(l=n.offsetLeft,d=n.offsetTop)}return{width:a,height:s,x:l,y:d}}function zd(t,e){let r=io(t,!0,e==="fixed"),i=r.top+t.clientTop,n=r.left+t.clientLeft,a=lt(t)?Nr(t):Et(1),s=t.clientWidth*a.x,l=t.clientHeight*a.y,d=n*a.x,p=i*a.y;return{width:s,height:l,x:d,y:p}}function zs(t,e,r){let i;if(e==="viewport")i=Fd(t,r);else if(e==="document")i=Bd(Rt(t));else if(gt(e))i=zd(e,r);else{let n=js(t);i={...e,x:e.x-n.x,y:e.y-n.y}}return ar(i)}function Ks(t,e){let r=sr(t);return r===e||!gt(r)||ro(r)?!1:Ge(r).position==="fixed"||Ks(r,e)}function Wd(t,e){let r=e.get(t);if(r)return r;let i=Io(t,[],!1).filter(l=>gt(l)&&At(l)!=="body"),n=null,a=Ge(t).position==="fixed",s=a?sr(t):t;for(;gt(s)&&!ro(s);){let l=Ge(s),d=To(s);!d&&l.position==="fixed"&&(n=null),(a?!d&&!n:!d&&l.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||Rr(s)&&!d&&Ks(t,s))?i=i.filter(u=>u!==s):n=l,s=sr(s)}return e.set(t,i),i}function Hd(t){let{element:e,boundary:r,rootBoundary:i,strategy:n}=t,s=[...r==="clippingAncestors"?Wd(e,this._c):[].concat(r),i],l=s[0],d=s.reduce((p,u)=>{let g=zs(e,u,n);return p.top=Ft(g.top,p.top),p.right=eo(g.right,p.right),p.bottom=eo(g.bottom,p.bottom),p.left=Ft(g.left,p.left),p},zs(e,l,n));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function Vd(t){return Hs(t)}function jd(t,e,r){let i=lt(e),n=Rt(e),a=r==="fixed",s=io(t,!0,a,e),l={scrollLeft:0,scrollTop:0},d=Et(0);if(i||!i&&!a)if((At(e)!=="body"||Rr(n))&&(l=oo(e)),i){let p=io(e,!0,a,e);d.x=p.x+e.clientLeft,d.y=p.y+e.clientTop}else n&&(d.x=Gs(n));return{x:s.left+l.scrollLeft-d.x,y:s.top+l.scrollTop-d.y,width:s.width,height:s.height}}function Ws(t,e){return!lt(t)||Ge(t).position==="fixed"?null:e?e(t):t.offsetParent}function Zs(t,e){let r=ze(t);if(!lt(t))return r;let i=Ws(t,e);for(;i&&Us(i)&&Ge(i).position==="static";)i=Ws(i,e);return i&&(At(i)==="html"||At(i)==="body"&&Ge(i).position==="static"&&!To(i))?r:i||Bs(t)||r}var Gd=async function(t){let{reference:e,floating:r,strategy:i}=t,n=this.getOffsetParent||Zs,a=this.getDimensions;return{reference:jd(e,await n(r),i),floating:{x:0,y:0,...await a(r)}}};function Kd(t){return Ge(t).direction==="rtl"}var ko={convertOffsetParentRelativeRectToViewportRelativeRect:Md,getDocumentElement:Rt,getClippingRect:Hd,getOffsetParent:Zs,getElementRects:Gd,getClientRects:Ud,getDimensions:Vd,getScale:Nr,isElement:gt,isRTL:Kd};var qs=(t,e,r)=>{let i=new Map,n={platform:ko,...r},a={...n.platform,_c:i};return Ds(t,e,{...n,platform:a})};function Ys(t){return Zd(t)}function Qi(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Zd(t){for(let e=t;e;e=Qi(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Qi(t);e;e=Qi(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||r.filter!=="none"||e.tagName==="BODY"))return e}return null}async function Po(t,e,r){return qs(t,e,{platform:{...ko,getOffsetParent:i=>ko.getOffsetParent(i,Ys)},middleware:[Ji({crossAxis:!0}),Xi({allowedPlacements:[r]})]})}var We=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},te=class extends no.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new no.Debouncer,this.revealDebouncer=new no.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return Xs.html`
578
578
  <div part="container"
579
579
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
580
580
  @mouseenter=${this.onHover}
@@ -592,12 +592,12 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
592
592
  </div>
593
593
  </div>
594
594
  </div>
595
- `}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some(r=>t.has(r))&&this.visible&&this.positionTooltip()}async show(t){this.visible=!0,t!=null&&await this.hideDebounce.run(()=>{this.hide()},t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return((t=this.slotNodes)!==null&&t!==void 0?t:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",nr(this.slottedElement,this.tooltip,this.position).then(({x:t,y:r})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${r}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout(()=>window.addEventListener("touchstart",t=>{t.composedPath().includes(this.container)||this.onOut()},{once:!0}),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,r){return Math.max(t,Math.min(0,-r))}};Z.elementDefinitions={"ft-typography":it};Z.styles=ha;Ut([(0,ut.property)()],Z.prototype,"text",void 0);Ut([(0,ut.property)({type:Boolean})],Z.prototype,"manual",void 0);Ut([(0,ut.property)({type:Boolean})],Z.prototype,"inline",void 0);Ut([(0,ut.property)({type:Number})],Z.prototype,"delay",void 0);Ut([(0,ut.property)()],Z.prototype,"position",void 0);Ut([(0,ut.queryAssignedNodes)()],Z.prototype,"slotNodes",void 0);Ut([(0,ut.query)(".ft-tooltip--container")],Z.prototype,"container",void 0);Ut([(0,ut.query)(".ft-tooltip")],Z.prototype,"tooltip",void 0);Ut([(0,ut.query)(".ft-tooltip--content")],Z.prototype,"tooltipContent",void 0);Ut([(0,ut.state)()],Z.prototype,"visible",void 0);Ut([(0,ut.eventOptions)({passive:!0})],Z.prototype,"onTouch",null);Ut([(0,ut.eventOptions)({passive:!0})],Z.prototype,"onHover",null);Ut([(0,ut.eventOptions)({passive:!0})],Z.prototype,"onOut",null);Ut([(0,ut.eventOptions)({passive:!0})],Z.prototype,"onClick",null);(0,Ua.customElement)("ft-tooltip")(Z);var Ha=u(S());var Bo=u(_()),je=u(K()),za=u(S()),Wa=u(Fa());var Ze;(function(o){o.ADD_TO_PBK="&#xe800;",o.ALERT="&#xe801;",o.ADD_ALERT="&#xe802;",o.BACK_TO_SEARCH="&#xe803;",o.ADD_BOOKMARK="&#xe804;",o.BOOKMARK="&#xe805;",o.BOOKS="&#xe806;",o.MENU="&#xe807;",o.DOWNLOAD="&#xe808;",o.EDIT="&#xe809;",o.FEEDBACK="&#xe80a;",o.HOME="&#xe80b;",o.MODIFY_PBK="&#xe80c;",o.SCHEDULED="&#xe80d;",o.SEARCH="&#xe80e;",o.EXPORT="&#xe80f;",o.TOC="&#xe810;",o.WRITE_UGC="&#xe811;",o.TRASH="&#xe812;",o.USER="&#xe813;",o.EXTLINK="&#xe814;",o.CALENDAR="&#xe815;",o.OFFLINE="&#xe816;",o.BOOK="&#xe817;",o.DOWNLOAD_PLAIN="&#xe818;",o.CHECK="&#xe819;",o.STAR_PLAIN="&#xe900;",o.TOPICS="&#xe901;",o.DISC="&#xe902;",o.CIRCLE="&#xe903;",o.SHARED="&#xe904;",o.SORT_UNSORTED="&#xe905;",o.SORT_UP="&#xe906;",o.SORT_DOWN="&#xe907;",o.WORKING="&#xe908;",o.CLOSE="&#xe909;",o.ZOOM_OUT="&#xe90a;",o.ZOOM_IN="&#xe90b;",o.ZOOM_REALSIZE="&#xe90c;",o.ZOOM_FULLSCREEN="&#xe90d;",o.ADMIN_RESTRICTED="&#xe90e;",o.ADMIN="&#xe90f;",o.ADMIN_KHUB="&#xe910;",o.ADMIN_THEME="&#xe911;",o.ADMIN_USERS="&#xe912;",o.WARNING="&#xe913;",o.CONTEXT="&#xe914;",o.SEARCH_HOME="&#xe915;",o.STEPS="&#xe916;",o.ICON_EXPAND="&#xe917;",o.ICON_COLLAPSE="&#xe918;",o.INFO="&#xe919;",o.MINUS_PLAIN="&#xe91a;",o.PLUS_PLAIN="&#xe91b;",o.FACET_HAS_DESCENDANT="&#xe91c;",o.TRIANGLE_BOTTOM="&#xe91d;",o.TRIANGLE_LEFT="&#xe91e;",o.TRIANGLE_RIGHT="&#xe91f;",o.TRIANGLE_TOP="&#xe920;",o.THIN_ARROW="&#xe921;",o.SIGN_IN="&#xe922;",o.LOGOUT="&#xe923;",o.TRANSLATE="&#xe924;",o.CLOSE_PLAIN="&#xe925;",o.CHECK_PLAIN="&#xe926;",o.ARTICLE="&#xe927;",o.COLUMNS="&#xe928;",o.ANALYTICS="&#xe929;",o.COLLECTIONS="&#xe92a;",o.ARROW_DOWN="&#xe92b;",o.ARROW_LEFT="&#xe92c;",o.ARROW_RIGHT="&#xe92d;",o.ARROW_UP="&#xe92e;",o.SEARCH_IN_PUBLICATION="&#xe92f;",o.COPY_TO_CLIPBOARD="&#xe930;",o.SHARED_PBK="&#xe931;",o.ATTACHMENTS="&#xe932;",o.STRIPE_ARROW_LEFT="&#xe933;",o.STRIPE_ARROW_RIGHT="&#xe934;",o.FILTERS="&#xe935;",o.DOT="&#xe936;",o.MINUS="&#xe937;",o.PLUS="&#xe938;",o.MAILS_AND_NOTIFICATIONS="&#xe939;",o.SAVE="&#xe93a;",o.LOCKER="&#xe93b;",o.ADMIN_INTEGRATION="&#xe93c;",o.SYNC="&#xe93d;",o.TAG="&#xe93e;",o.BOOK_PLAIN="&#xe93f;",o.UPLOAD="&#xe940;",o.ONLINE="&#xe941;",o.TAG_PLAIN="&#xe942;",o.ACCOUNT_SETTINGS="&#xe943;",o.PRINT="&#xe944;",o.DEFAULT_ROLES="&#xe945;",o.SHORTCUT_MENU="&#xe946;",o.RELATIVES_PLAIN="&#xe947;",o.RELATIVES="&#xe948;",o.PAUSE="&#xe949;",o.PLAY="&#xe94a;",o.ADMIN_PORTAL="&#xe94b;",o.STAR="&#xe94c;",o.THUMBS_DOWN="&#xe94d;",o.THUMBS_DOWN_PLAIN="&#xe94e;",o.THUMBS_UP="&#xe94f;",o.THUMBS_UP_PLAIN="&#xe950;",o.FEEDBACK_PLAIN="&#xe951;",o.RATE_PLAIN="&#xe952;",o.RATE="&#xe953;",o.OFFLINE_SETTINGS="&#xe954;",o.MY_COLLECTIONS="&#xe955;",o.THIN_ARROW_LEFT="&#xe956;",o.THIN_ARROW_RIGHT="&#xe957;",o.RESET="&#xe958;",o.MY_LIBRARY="&#xe959;",o.UNSTRUCTURED_DOC="&#xe95a;",o.CONTEXTUAL="&#xe95b;",o.THIN_ARROW_UP="&#xe95c;",o.ARROW_RIGHT_TO_LINE="&#xe95d;",o.DESKTOP="&#xe95e;",o.TABLET_LANDSCAPE="&#xe95f;",o.TABLET_PORTRAIT="&#xe960;",o.MOBILE_LANDSCAPE="&#xe961;",o.MOBILE_PORTRAIT="&#xe962;",o.DIAGRAM_SUNBURST="&#xe963;",o.DIAGRAM_SANKEY="&#xe964;",o.COMMENT_QUESTION="&#xe965;",o.COMMENT_QUESTION_PLAIN="&#xe966;",o.MESSAGE_BOT="&#xe967;",o.CHART_SIMPLE="&#xe968;",o.BARS_PROGRESS="&#xe969;",o.BOOK_OPEN_GEAR="&#xe96a;",o.BOOK_OPEN_GEAR_SLASH="&#xe96b;",o.LINE_CHART="&#xe96c;",o.STACKED_CHART="&#xe96d;",o.CHART_BAR_STACKED="&#xe96e;",o.CHART_BAR_GROUPED="&#xe96f;",o.EYE_SLASH="&#xe970;",o.X_MARK="&#xe971;",o.EXPAND_WIDE="&#xe972;",o.PIP="&#xe973;",o.PIP_WIDE="&#xe974;",o.LIFE_RING="&#xe975;",o.GLOBE="&#xe976;",o.PIGGY_BANK="&#xe977;",o.EXTLINK_LIGHT="&#xe978;",o.CLONE="&#xe979;",o.CLONE_LINK_SIMPLE="&#xe97a;",o.CHART_BAR_NORMALIZED="&#xe97b;",o.CONSUMER="&#xe97c;",o.OCTAGON_XMARK="&#xe97d;",o.HOURGLASS_HALF="&#xe97e;",o.CLOCK="&#xe97f;",o.CLOCK_THREE="&#xe97f;",o.CALENDAR_DAY="&#xe980;",o.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",o.WAND_MAGIC_SPARKLES="&#xe982;",o.PAPER_PLANE="&#xe983;",o.CIRCLE_STOP="&#xe984;",o.ARROW_ROTATE_RIGHT="&#xe985;",o.ARROWS_ROTATE="&#xe986;",o.ALIGN_RIGHT="&#xe987;",o.FORMAT_CLEAR="&#xe988;",o.ALIGN_CENTER="&#xe989;",o.ALIGN_LEFT="&#xe98a;",o.PALETTE="&#xe98b;",o.BOLD="&#xe98c;",o.ITALIC="&#xe98d;",o.UNDERLINE="&#xe98e;",o.STRIKETHROUGH="&#xe98f;",o.LINK_SIMPLE_SLASH="&#xe990;",o.LINK_SIMPLE="&#xe991;",o.EYE="&#xf06e;",o.SHARE="&#xe80f1;"})(Ze||(Ze={}));var y;(function(o){o.UNKNOWN="&#xe90a;",o.ABW="&#xe900;",o.AUDIO="&#xe901;",o.AVI="&#xe902;",o.CHM="&#xe904;",o.CODE="&#xe905;",o.CSV="&#xe903;",o.DITA="&#xe906;",o.EPUB="&#xe907;",o.EXCEL="&#xe908;",o.FLAC="&#xe909;",o.GIF="&#xe90b;",o.GZIP="&#xe90c;",o.HTML="&#xe90d;",o.IMAGE="&#xe90e;",o.JPEG="&#xe90f;",o.JSON="&#xe910;",o.M4A="&#xe911;",o.MOV="&#xe912;",o.MP3="&#xe913;",o.MP4="&#xe914;",o.OGG="&#xe915;",o.PDF="&#xe916;",o.PNG="&#xe917;",o.POWERPOINT="&#xe918;",o.RAR="&#xe91a;",o.STP="&#xe91b;",o.TEXT="&#xe91c;",o.VIDEO="&#xe91e;",o.WAV="&#xe91f;",o.WMA="&#xe920;",o.WORD="&#xe921;",o.XML="&#xe922;",o.YAML="&#xe919;",o.ZIP="&#xe923;"})(y||(y={}));var oh=new Map([...["abw"].map(o=>[o,y.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(o=>[o,y.AUDIO]),...["avi"].map(o=>[o,y.AVI]),...["chm","xhs"].map(o=>[o,y.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(o=>[o,y.CODE]),...["csv"].map(o=>[o,y.CSV]),...["dita","ditamap","ditaval"].map(o=>[o,y.DITA]),...["epub"].map(o=>[o,y.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(o=>[o,y.EXCEL]),...["flac"].map(o=>[o,y.FLAC]),...["gif"].map(o=>[o,y.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(o=>[o,y.GZIP]),...["html","htm","xhtml"].map(o=>[o,y.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(o=>[o,y.IMAGE]),...["jpeg","jpg","jpe"].map(o=>[o,y.JPEG]),...["json"].map(o=>[o,y.JSON]),...["m4a","m4p"].map(o=>[o,y.M4A]),...["mov","qt"].map(o=>[o,y.MOV]),...["mp3"].map(o=>[o,y.MP3]),...["mp4","m4v"].map(o=>[o,y.MP4]),...["ogg","oga"].map(o=>[o,y.OGG]),...["pdf","ps"].map(o=>[o,y.PDF]),...["png"].map(o=>[o,y.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(o=>[o,y.POWERPOINT]),...["rar"].map(o=>[o,y.RAR]),...["stp"].map(o=>[o,y.STP]),...["txt","rtf","md","mdown"].map(o=>[o,y.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(o=>[o,y.VIDEO]),...["wav"].map(o=>[o,y.WAV]),...["wma"].map(o=>[o,y.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(o=>[o,y.WORD]),...["xml","xsl","rdf"].map(o=>[o,y.XML]),...["yaml","yml","x-yaml"].map(o=>[o,y.YAML]),...["zip"].map(o=>[o,y.ZIP])]);var rh={[y.ABW]:"#91ABC6",[y.AUDIO]:"#1795E3",[y.AVI]:"#E63324",[y.CHM]:"#71C3EB",[y.CODE]:"#71C3EB",[y.CSV]:"#1F7345",[y.DITA]:"#71C3EB",[y.EPUB]:"#85B926",[y.EXCEL]:"#1F7345",[y.FLAC]:"#1795E3",[y.GIF]:"#59B031",[y.GZIP]:"#F8AB36",[y.HTML]:"#71C3EB",[y.IMAGE]:"#59B031",[y.JPEG]:"#59B031",[y.JSON]:"#71C3EB",[y.M4A]:"#1795E3",[y.MOV]:"#E63324",[y.MP3]:"#1795E3",[y.MP4]:"#E63324",[y.OGG]:"#1795E3",[y.PDF]:"#E44948",[y.PNG]:"#59B031",[y.POWERPOINT]:"#B54A2B",[y.RAR]:"#F8AB36",[y.STP]:"#3764B1",[y.TEXT]:"#3162AB",[y.UNKNOWN]:"#999999",[y.VIDEO]:"#E63324",[y.WAV]:"#1795E3",[y.WMA]:"#1795E3",[y.WORD]:"#3162AB",[y.XML]:"#71C3EB",[y.YAML]:"#71C3EB",[y.ZIP]:"#F8AB36"};var Mt;(function(o){o.fluid_topics="fluid-topics",o.file_format="file-format",o.material="material"})(Mt||(Mt={}));var ar=function(o,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(o,t,r,i);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},dt=class extends za.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=Bo.nothing}render(){let t=this.variant&&Object.values(Mt).includes(this.variant)?this.variant:Mt.fluid_topics,r=t!==Mt.material||!!this.value;return Bo.html`
596
- <i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
597
- ${(0,Wa.unsafeHTML)(this.resolvedIcon)}
595
+ `}updated(e){e.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(r=>e.has(r))&&this.visible&&this.positionTooltip()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",Po(this.slottedElement,this.tooltip,this.position).then(({x:e,y:r})=>{this.tooltip&&(this.tooltip.style.left=`${e}px`,this.tooltip.style.top=`${r}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout(()=>window.addEventListener("touchstart",e=>{e.composedPath().includes(this.container)||this.onOut()},{once:!0}),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(e,r){return Math.max(e,Math.min(0,-r))}};te.elementDefinitions={"ft-typography":ce};te.styles=Ns;We([(0,ve.property)()],te.prototype,"text",void 0);We([(0,ve.property)({type:Boolean})],te.prototype,"manual",void 0);We([(0,ve.property)({type:Boolean})],te.prototype,"inline",void 0);We([(0,ve.property)({type:Number})],te.prototype,"delay",void 0);We([(0,ve.property)()],te.prototype,"position",void 0);We([(0,ve.queryAssignedNodes)()],te.prototype,"slotNodes",void 0);We([(0,ve.query)(".ft-tooltip--container")],te.prototype,"container",void 0);We([(0,ve.query)(".ft-tooltip")],te.prototype,"tooltip",void 0);We([(0,ve.query)(".ft-tooltip--content")],te.prototype,"tooltipContent",void 0);We([(0,ve.state)()],te.prototype,"visible",void 0);We([(0,ve.eventOptions)({passive:!0})],te.prototype,"onTouch",null);We([(0,ve.eventOptions)({passive:!0})],te.prototype,"onHover",null);We([(0,ve.eventOptions)({passive:!0})],te.prototype,"onOut",null);We([(0,ve.eventOptions)({passive:!0})],te.prototype,"onClick",null);(0,Js.customElement)("ft-tooltip")(te);var ol=m(E());var ao=m($()),cr=m(j()),tl=m(E()),rl=m(el());var lr;(function(t){t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.BOOKS="&#xe806;",t.MENU="&#xe807;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.HOME="&#xe80b;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.EXPORT="&#xe80f;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.USER="&#xe813;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.OFFLINE="&#xe816;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.STAR_PLAIN="&#xe900;",t.TOPICS="&#xe901;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN="&#xe90f;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_THEME="&#xe911;",t.ADMIN_USERS="&#xe912;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.INFO="&#xe919;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.THIN_ARROW="&#xe921;",t.SIGN_IN="&#xe922;",t.LOGOUT="&#xe923;",t.TRANSLATE="&#xe924;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.ARTICLE="&#xe927;",t.COLUMNS="&#xe928;",t.ANALYTICS="&#xe929;",t.COLLECTIONS="&#xe92a;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.COPY_TO_CLIPBOARD="&#xe930;",t.SHARED_PBK="&#xe931;",t.ATTACHMENTS="&#xe932;",t.STRIPE_ARROW_LEFT="&#xe933;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.FILTERS="&#xe935;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.SAVE="&#xe93a;",t.LOCKER="&#xe93b;",t.ADMIN_INTEGRATION="&#xe93c;",t.SYNC="&#xe93d;",t.TAG="&#xe93e;",t.BOOK_PLAIN="&#xe93f;",t.UPLOAD="&#xe940;",t.ONLINE="&#xe941;",t.TAG_PLAIN="&#xe942;",t.ACCOUNT_SETTINGS="&#xe943;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.SHORTCUT_MENU="&#xe946;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.ADMIN_PORTAL="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.FEEDBACK_PLAIN="&#xe951;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_COLLECTIONS="&#xe955;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.RESET="&#xe958;",t.MY_LIBRARY="&#xe959;",t.UNSTRUCTURED_DOC="&#xe95a;",t.CONTEXTUAL="&#xe95b;",t.THIN_ARROW_UP="&#xe95c;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.DESKTOP="&#xe95e;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.CHART_BAR_STACKED="&#xe96e;",t.CHART_BAR_GROUPED="&#xe96f;",t.EYE_SLASH="&#xe970;",t.X_MARK="&#xe971;",t.EXPAND_WIDE="&#xe972;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.EXTLINK_LIGHT="&#xe978;",t.CLONE="&#xe979;",t.CLONE_LINK_SIMPLE="&#xe97a;",t.CHART_BAR_NORMALIZED="&#xe97b;",t.CONSUMER="&#xe97c;",t.OCTAGON_XMARK="&#xe97d;",t.HOURGLASS_HALF="&#xe97e;",t.CLOCK="&#xe97f;",t.CLOCK_THREE="&#xe97f;",t.CALENDAR_DAY="&#xe980;",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",t.WAND_MAGIC_SPARKLES="&#xe982;",t.PAPER_PLANE="&#xe983;",t.CIRCLE_STOP="&#xe984;",t.ARROW_ROTATE_RIGHT="&#xe985;",t.ARROWS_ROTATE="&#xe986;",t.ALIGN_RIGHT="&#xe987;",t.FORMAT_CLEAR="&#xe988;",t.ALIGN_CENTER="&#xe989;",t.ALIGN_LEFT="&#xe98a;",t.PALETTE="&#xe98b;",t.BOLD="&#xe98c;",t.ITALIC="&#xe98d;",t.UNDERLINE="&#xe98e;",t.STRIKETHROUGH="&#xe98f;",t.LINK_SIMPLE_SLASH="&#xe990;",t.LINK_SIMPLE="&#xe991;",t.EYE="&#xf06e;",t.SHARE="&#xe80f1;"})(lr||(lr={}));var O;(function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"})(O||(O={}));var Gg=new Map([...["abw"].map(t=>[t,O.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(t=>[t,O.AUDIO]),...["avi"].map(t=>[t,O.AVI]),...["chm","xhs"].map(t=>[t,O.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(t=>[t,O.CODE]),...["csv"].map(t=>[t,O.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,O.DITA]),...["epub"].map(t=>[t,O.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,O.EXCEL]),...["flac"].map(t=>[t,O.FLAC]),...["gif"].map(t=>[t,O.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,O.GZIP]),...["html","htm","xhtml"].map(t=>[t,O.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(t=>[t,O.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,O.JPEG]),...["json"].map(t=>[t,O.JSON]),...["m4a","m4p"].map(t=>[t,O.M4A]),...["mov","qt"].map(t=>[t,O.MOV]),...["mp3"].map(t=>[t,O.MP3]),...["mp4","m4v"].map(t=>[t,O.MP4]),...["ogg","oga"].map(t=>[t,O.OGG]),...["pdf","ps"].map(t=>[t,O.PDF]),...["png"].map(t=>[t,O.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,O.POWERPOINT]),...["rar"].map(t=>[t,O.RAR]),...["stp"].map(t=>[t,O.STP]),...["txt","rtf","md","mdown"].map(t=>[t,O.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(t=>[t,O.VIDEO]),...["wav"].map(t=>[t,O.WAV]),...["wma"].map(t=>[t,O.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,O.WORD]),...["xml","xsl","rdf"].map(t=>[t,O.XML]),...["yaml","yml","x-yaml"].map(t=>[t,O.YAML]),...["zip"].map(t=>[t,O.ZIP])]);var Kg={[O.ABW]:"#91ABC6",[O.AUDIO]:"#1795E3",[O.AVI]:"#E63324",[O.CHM]:"#71C3EB",[O.CODE]:"#71C3EB",[O.CSV]:"#1F7345",[O.DITA]:"#71C3EB",[O.EPUB]:"#85B926",[O.EXCEL]:"#1F7345",[O.FLAC]:"#1795E3",[O.GIF]:"#59B031",[O.GZIP]:"#F8AB36",[O.HTML]:"#71C3EB",[O.IMAGE]:"#59B031",[O.JPEG]:"#59B031",[O.JSON]:"#71C3EB",[O.M4A]:"#1795E3",[O.MOV]:"#E63324",[O.MP3]:"#1795E3",[O.MP4]:"#E63324",[O.OGG]:"#1795E3",[O.PDF]:"#E44948",[O.PNG]:"#59B031",[O.POWERPOINT]:"#B54A2B",[O.RAR]:"#F8AB36",[O.STP]:"#3764B1",[O.TEXT]:"#3162AB",[O.UNKNOWN]:"#999999",[O.VIDEO]:"#E63324",[O.WAV]:"#1795E3",[O.WMA]:"#1795E3",[O.WORD]:"#3162AB",[O.XML]:"#71C3EB",[O.YAML]:"#71C3EB",[O.ZIP]:"#F8AB36"};var He;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(He||(He={}));var Lo=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},me=class extends tl.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=ao.nothing}render(){let e=this.variant&&Object.values(He).includes(this.variant)?this.variant:He.fluid_topics,r=e!==He.material||!!this.value;return ao.html`
596
+ <i class="ft-icon ft-icon--${e}" part="icon icon-${e}">
597
+ ${(0,rl.unsafeHTML)(this.resolvedIcon)}
598
598
  <slot ?hidden=${r}></slot>
599
599
  </i>
600
- `}get textContent(){var t,r;return(r=(t=this.slottedContent)===null||t===void 0?void 0:t.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&r!==void 0?r:""}update(t){super.update(t),["value","variant"].some(r=>t.has(r))&&this.resolveIcon()}resolveIcon(){var t,r;let i=this.value||this.textContent;switch(this.variant){case Mt.file_format:this.resolvedIcon=(t=y[i.replace("-","_").toUpperCase()])!==null&&t!==void 0?t:i;break;case Mt.material:this.resolvedIcon=this.value||Bo.nothing;break;default:this.resolvedIcon=(r=Ze[i.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:i;break}}firstUpdated(t){super.firstUpdated(t),setTimeout(()=>this.resolveIcon())}};dt.elementDefinitions={};dt.styles=Dn;ar([(0,je.property)()],dt.prototype,"variant",void 0);ar([(0,je.property)()],dt.prototype,"value",void 0);ar([(0,je.state)()],dt.prototype,"resolvedIcon",void 0);ar([(0,je.query)("slot")],dt.prototype,"slottedContent",void 0);(0,Ha.customElement)("ft-icon")(dt);var Va=u(_()),_t=u(S());var ht={borderRadiusLeft:_t.FtCssVariableFactory.extend("--ft-switch-option-border-radius-left","",_t.designSystemVariables.borderRadiusL),borderRadiusRight:_t.FtCssVariableFactory.extend("--ft-switch-option-border-radius-right","",_t.designSystemVariables.borderRadiusL),borderWidthLeft:_t.FtCssVariableFactory.create("--ft-switch-option-border-width-left","","SIZE","1px"),borderWidthRight:_t.FtCssVariableFactory.create("--ft-switch-option-border-width-right","","SIZE","1px"),borderWidthVertical:_t.FtCssVariableFactory.create("--ft-switch-option-border-width-vertical","","SIZE","1px")},Ga=Va.css`
600
+ `}get textContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&r!==void 0?r:""}update(e){super.update(e),["value","variant"].some(r=>e.has(r))&&this.resolveIcon()}resolveIcon(){var e,r;let i=this.value||this.textContent;switch(this.variant){case He.file_format:this.resolvedIcon=(e=O[i.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:i;break;case He.material:this.resolvedIcon=this.value||ao.nothing;break;default:this.resolvedIcon=(r=lr[i.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:i;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};me.elementDefinitions={};me.styles=Ya;Lo([(0,cr.property)()],me.prototype,"variant",void 0);Lo([(0,cr.property)()],me.prototype,"value",void 0);Lo([(0,cr.state)()],me.prototype,"resolvedIcon",void 0);Lo([(0,cr.query)("slot")],me.prototype,"slottedContent",void 0);(0,ol.customElement)("ft-icon")(me);var il=m($()),Le=m(E());var xe={borderRadiusLeft:Le.FtCssVariableFactory.extend("--ft-switch-option-border-radius-left","",Le.designSystemVariables.borderRadiusL),borderRadiusRight:Le.FtCssVariableFactory.extend("--ft-switch-option-border-radius-right","",Le.designSystemVariables.borderRadiusL),borderWidthLeft:Le.FtCssVariableFactory.create("--ft-switch-option-border-width-left","","SIZE","1px"),borderWidthRight:Le.FtCssVariableFactory.create("--ft-switch-option-border-width-right","","SIZE","1px"),borderWidthVertical:Le.FtCssVariableFactory.create("--ft-switch-option-border-width-vertical","","SIZE","1px")},nl=il.css`
601
601
  .ft-switch-option {
602
602
  position: relative;
603
603
  display: inline-block;
@@ -611,20 +611,20 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
611
611
  }
612
612
 
613
613
  .ft-switch-option--content {
614
- --ft-switch-option-internal-line-height: calc(${rt.fontSize} + 2px);
615
- --ft-switch-option-internal-content-height: max(var(--ft-switch-option-internal-line-height), ${rt.iconSize});
614
+ --ft-switch-option-internal-line-height: calc(${le.fontSize} + 2px);
615
+ --ft-switch-option-internal-content-height: max(var(--ft-switch-option-internal-line-height), ${le.iconSize});
616
616
 
617
617
  border-style: solid;
618
- border-color: ${rt.borderColor};
619
- border-width: ${ht.borderWidthVertical} ${ht.borderWidthRight} ${ht.borderWidthVertical} ${ht.borderWidthLeft};
620
- border-radius: ${ht.borderRadiusLeft} ${ht.borderRadiusRight} ${ht.borderRadiusRight} ${ht.borderRadiusLeft};
618
+ border-color: ${le.borderColor};
619
+ border-width: ${xe.borderWidthVertical} ${xe.borderWidthRight} ${xe.borderWidthVertical} ${xe.borderWidthLeft};
620
+ border-radius: ${xe.borderRadiusLeft} ${xe.borderRadiusRight} ${xe.borderRadiusRight} ${xe.borderRadiusLeft};
621
621
  display: flex;
622
622
  align-items: center;
623
623
  justify-content: center;
624
624
  overflow: hidden;
625
- ${(0,_t.setVariable)(bt.size,rt.iconSize)};
625
+ ${(0,Le.setVariable)(Oe.size,le.iconSize)};
626
626
  padding: var(--ft-switch-internal-vertical-padding, 6px) var(--ft-switch-internal-horizontal-padding, 8px);
627
- background-color: ${rt.backgroundColor};
627
+ background-color: ${le.backgroundColor};
628
628
  -webkit-mask-image: radial-gradient(white, black);
629
629
  }
630
630
 
@@ -633,28 +633,28 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
633
633
  }
634
634
 
635
635
  .ft-switch-option--selected .ft-switch-option--content:before {
636
- background-color: ${rt.selectedBackgroundColor};
637
- border-radius: ${ht.borderRadiusLeft} ${ht.borderRadiusRight} ${ht.borderRadiusRight} ${ht.borderRadiusLeft};
636
+ background-color: ${le.selectedBackgroundColor};
637
+ border-radius: ${xe.borderRadiusLeft} ${xe.borderRadiusRight} ${xe.borderRadiusRight} ${xe.borderRadiusLeft};
638
638
  position: absolute;
639
639
  inset: 0;
640
640
  content: "";
641
641
  z-index: 1;
642
- opacity: ${_t.designSystemVariables.opacityPrimaryOnSurfaceSelected};
642
+ opacity: ${Le.designSystemVariables.opacityPrimaryOnSurfaceSelected};
643
643
  }
644
644
 
645
645
  .ft-switch-option--label {
646
- color: ${rt.textColor};
646
+ color: ${le.textColor};
647
647
  overflow: hidden;
648
648
  white-space: nowrap;
649
649
  text-overflow: ellipsis;
650
650
  display: block;
651
651
  margin: 0 8px;
652
- ${(0,_t.setVariable)(Tt.fontSize,rt.fontSize)};
653
- ${(0,_t.setVariable)(Tt.lineHeight,"var(--ft-switch-option-internal-content-height)")}
652
+ ${(0,Le.setVariable)(Pe.fontSize,le.fontSize)};
653
+ ${(0,Le.setVariable)(Pe.lineHeight,"var(--ft-switch-option-internal-content-height)")}
654
654
  }
655
655
 
656
656
  .ft-switch-option--selected .ft-switch-option--label {
657
- color: ${rt.selectedTextColor};
657
+ color: ${le.selectedTextColor};
658
658
  }
659
659
 
660
660
  .ft-switch-option--label[hidden] {
@@ -662,7 +662,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
662
662
  }
663
663
 
664
664
  .ft-switch-option--ripple {
665
- ${(0,_t.setVariable)(N.color,rt.rippleColor)};
665
+ ${(0,Le.setVariable)(M.color,le.rippleColor)};
666
666
  }
667
667
 
668
668
  ft-icon, ft-ripple, ft-typography {
@@ -675,20 +675,20 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
675
675
 
676
676
  ft-icon {
677
677
  flex-shrink: 0;
678
- color: ${rt.iconColor};
678
+ color: ${le.iconColor};
679
679
  }
680
680
 
681
681
  .ft-switch-option--selected ft-icon {
682
- color: ${rt.selectedTextColor};
682
+ color: ${le.selectedTextColor};
683
683
  }
684
- `;var de=function(o,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(o,t,r,i);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},mi=class extends CustomEvent{constructor(t){super("option-change-by-user",{detail:t,bubbles:!0,composed:!0})}},gi=class extends CustomEvent{constructor(t){super("option-change",{detail:t,bubbles:!0,composed:!0})}},pt=class extends ho.FtLitElement{constructor(){super(...arguments),this.value="",this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1,this.unselectable=!1}focus(){this.input.focus()}update(t){super.update(t),t.has("selected")&&this.dispatchEvent(new gi(this.selected))}render(){let t={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon,"ft-switch-option--selected":this.selected};return this.addTooltip(uo.html`
685
- <label part="label" for="input" class=${(0,Ka.classMap)(t)}
684
+ `;var yt=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},en=class extends CustomEvent{constructor(e){super("option-change-by-user",{detail:e,bubbles:!0,composed:!0})}},tn=class extends CustomEvent{constructor(e){super("option-change",{detail:e,bubbles:!0,composed:!0})}},ge=class extends Tr.FtLitElement{constructor(){super(...arguments),this.value="",this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1,this.unselectable=!1}focus(){this.input.focus()}update(e){super.update(e),e.has("selected")&&this.dispatchEvent(new tn(this.selected))}render(){let e={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon,"ft-switch-option--selected":this.selected};return this.addTooltip(Ir.html`
685
+ <label part="label" for="input" class=${(0,al.classMap)(e)}
686
686
  @click=${this.onChange}>
687
687
  <div class="ft-switch-option--content">
688
688
  <ft-ripple part="ripple" class="ft-switch-option--ripple"></ft-ripple>
689
689
  <ft-typography part="text"
690
690
  variant="button"
691
- class="ft-switch-option--label ${ho.isSafari?"ft-safari-ellipsis-fix":""}"
691
+ class="ft-switch-option--label ${Tr.isSafari?"ft-safari-ellipsis-fix":""}"
692
692
  ?hidden=${!this.hasTextContent()}>
693
693
  <slot @slotchange=${this.onSlotchange}></slot>
694
694
  </ft-typography>
@@ -697,29 +697,29 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
697
697
  </label>
698
698
  <input id="input" type="radio" class="ft-switch-option--input"
699
699
  .checked=${this.selected}>
700
- `)}addTooltip(t){return this.hasTextContent()||this.getLabel().trim().length===0?t:uo.html`
700
+ `)}addTooltip(e){return this.hasTextContent()||this.getLabel().trim().length===0?e:Ir.html`
701
701
  <ft-tooltip part="tooltip"
702
702
  text="${this.getLabel()}"
703
703
  position="${this.tooltipPosition}">
704
- ${t}
704
+ ${e}
705
705
  </ft-tooltip>
706
- `}onChange(){this.selected=this.unselectable?!this.selected:!0,this.dispatchEvent(new mi(this.selected))}getLabel(){return this.label||this.textContent}resolveIcon(){return this.icon?uo.html`
706
+ `}onChange(){this.selected=this.unselectable?!this.selected:!0,this.dispatchEvent(new en(this.selected))}getLabel(){return this.label||this.textContent}resolveIcon(){return this.icon?Ir.html`
707
707
  <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
708
- `:uo.nothing}get textContent(){var t,r;return(r=(t=this.slottedContent)===null||t===void 0?void 0:t.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&r!==void 0?r:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}};pt.elementDefinitions={"ft-ripple":B,"ft-typography":it,"ft-tooltip":Z,"ft-icon":dt};pt.styles=[ho.safariEllipsisFix,Ga];de([(0,Xt.property)()],pt.prototype,"value",void 0);de([(0,Xt.property)()],pt.prototype,"icon",void 0);de([(0,Xt.property)()],pt.prototype,"iconVariant",void 0);de([(0,Xt.property)()],pt.prototype,"label",void 0);de([(0,Xt.property)()],pt.prototype,"tooltipPosition",void 0);de([(0,Xt.property)({type:Boolean,reflect:!0})],pt.prototype,"selected",void 0);de([(0,Xt.property)({type:Boolean})],pt.prototype,"trailingIcon",void 0);de([(0,Xt.property)({type:Boolean})],pt.prototype,"unselectable",void 0);de([(0,Xt.query)(".ft-switch-option--content slot")],pt.prototype,"slottedContent",void 0);de([(0,Xt.query)(".ft-switch-option--input")],pt.prototype,"input",void 0);var Uo=function(o,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(o,t,r,i);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},yi=class extends CustomEvent{constructor(t){super("change",{detail:t})}},Vt=class extends ve.FtLitElement{constructor(){super(...arguments),this.dense=!1,this.unselectable=!1,this.options=[]}get value(){var t;return(t=this.selectedOption)===null||t===void 0?void 0:t.value}update(t){super.update(t),t.has("selectedOption")&&this.updateOptions(),t.has("unselectable")&&this.options.forEach(r=>r.unselectable=this.unselectable)}render(){let t={"ft-switch":!0,"ft-switch--dense":this.dense};return sr.html`
709
- <div @keydown=${this.onKeyDown} tabindex="0" class="${(0,Za.classMap)(t)}">
708
+ `:Ir.nothing}get textContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&r!==void 0?r:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}};ge.elementDefinitions={"ft-ripple":H,"ft-typography":ce,"ft-tooltip":te,"ft-icon":me};ge.styles=[Tr.safariEllipsisFix,nl];yt([(0,rt.property)()],ge.prototype,"value",void 0);yt([(0,rt.property)()],ge.prototype,"icon",void 0);yt([(0,rt.property)()],ge.prototype,"iconVariant",void 0);yt([(0,rt.property)()],ge.prototype,"label",void 0);yt([(0,rt.property)()],ge.prototype,"tooltipPosition",void 0);yt([(0,rt.property)({type:Boolean,reflect:!0})],ge.prototype,"selected",void 0);yt([(0,rt.property)({type:Boolean})],ge.prototype,"trailingIcon",void 0);yt([(0,rt.property)({type:Boolean})],ge.prototype,"unselectable",void 0);yt([(0,rt.query)(".ft-switch-option--content slot")],ge.prototype,"slottedContent",void 0);yt([(0,rt.query)(".ft-switch-option--input")],ge.prototype,"input",void 0);var so=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},rn=class extends CustomEvent{constructor(e){super("change",{detail:e})}},Ke=class extends Nt.FtLitElement{constructor(){super(...arguments),this.dense=!1,this.unselectable=!1,this.options=[]}get value(){var e;return(e=this.selectedOption)===null||e===void 0?void 0:e.value}update(e){super.update(e),e.has("selectedOption")&&this.updateOptions(),e.has("unselectable")&&this.options.forEach(r=>r.unselectable=this.unselectable)}render(){let e={"ft-switch":!0,"ft-switch--dense":this.dense};return Do.html`
709
+ <div @keydown=${this.onKeyDown} tabindex="0" class="${(0,sl.classMap)(e)}">
710
710
  <slot @slotchange=${this.onSlotchange}
711
711
  @option-change=${this.onOptionChangeByScript}
712
712
  @option-change-by-user=${this.onOptionChangeByUser}
713
713
  ></slot>
714
714
  </div>
715
- `}onKeyDown(t){let r;(t.key=="ArrowDown"||t.key=="ArrowRight")&&(r=this.selectedOption?this.options.indexOf(this.selectedOption)+1:0),(t.key=="ArrowUp"||t.key=="ArrowLeft")&&(r=this.selectedOption?this.options.indexOf(this.selectedOption)-1:this.options.length-1),r!=null&&(t.preventDefault(),this.options[this.fixIndex(r)].selected=!0)}fixIndex(t){return t<0?this.options.length-1:t>this.options.length-1?0:t}onSlotchange(){var t;this.options=[],(t=this.slottedContent)===null||t===void 0||t.assignedElements().forEach(r=>{r instanceof pt&&this.registerOption(r)}),this.selectedOption=this.options.find(r=>r.selected)}registerOption(t){t.setAttribute("tabindex","-1"),t.unselectable=this.unselectable,this.options.push(t)}onOptionChangeByScript(t){t.stopPropagation();let r=t.target;this.onOptionChange(r)}onOptionChangeByUser(t){var r;t.stopPropagation(),this.onOptionChange(t.target),this.dispatchEvent(new yi((r=this.selectedOption)===null||r===void 0?void 0:r.value))}onOptionChange(t){t.selected?this.selectedOption=t:this.selectedOption=this.options.find(r=>r.selected)}private(t){t.selected?this.selectedOption=t:this.selectedOption=this.options.find(r=>r.selected)}focus(){this.ftSwitchDiv.focus()}updateOptions(){this.options.forEach(t=>{t.selected=t===this.selectedOption})}};Vt.elementDefinitions={};Vt.styles=sr.css`
715
+ `}onKeyDown(e){let r;(e.key=="ArrowDown"||e.key=="ArrowRight")&&(r=this.selectedOption?this.options.indexOf(this.selectedOption)+1:0),(e.key=="ArrowUp"||e.key=="ArrowLeft")&&(r=this.selectedOption?this.options.indexOf(this.selectedOption)-1:this.options.length-1),r!=null&&(e.preventDefault(),this.options[this.fixIndex(r)].selected=!0)}fixIndex(e){return e<0?this.options.length-1:e>this.options.length-1?0:e}onSlotchange(){var e;this.options=[],(e=this.slottedContent)===null||e===void 0||e.assignedElements().forEach(r=>{r instanceof ge&&this.registerOption(r)}),this.selectedOption=this.options.find(r=>r.selected)}registerOption(e){e.setAttribute("tabindex","-1"),e.unselectable=this.unselectable,this.options.push(e)}onOptionChangeByScript(e){e.stopPropagation();let r=e.target;this.onOptionChange(r)}onOptionChangeByUser(e){var r;e.stopPropagation(),this.onOptionChange(e.target),this.dispatchEvent(new rn((r=this.selectedOption)===null||r===void 0?void 0:r.value))}onOptionChange(e){e.selected?this.selectedOption=e:this.selectedOption=this.options.find(r=>r.selected)}private(e){e.selected?this.selectedOption=e:this.selectedOption=this.options.find(r=>r.selected)}focus(){this.ftSwitchDiv.focus()}updateOptions(){this.options.forEach(e=>{e.selected=e===this.selectedOption})}};Ke.elementDefinitions={};Ke.styles=Do.css`
716
716
  :host {
717
717
  display: inline-block;
718
718
  }
719
719
 
720
720
  .ft-switch {
721
- border-radius: ${rt.borderRadius};
722
- outline-color: ${rt.outlineColor};
721
+ border-radius: ${le.borderRadius};
722
+ outline-color: ${le.outlineColor};
723
723
  }
724
724
 
725
725
  .ft-switch slot {
@@ -728,25 +728,25 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
728
728
  }
729
729
 
730
730
  .ft-switch slot::slotted(ft-switch-option) {
731
- ${(0,ve.setVariable)(ht.borderRadiusLeft,"0")};
732
- ${(0,ve.setVariable)(ht.borderRadiusRight,"0")};
733
- ${(0,ve.setVariable)(ht.borderWidthLeft,"0")};
731
+ ${(0,Nt.setVariable)(xe.borderRadiusLeft,"0")};
732
+ ${(0,Nt.setVariable)(xe.borderRadiusRight,"0")};
733
+ ${(0,Nt.setVariable)(xe.borderWidthLeft,"0")};
734
734
  }
735
735
 
736
736
  .ft-switch slot::slotted(ft-switch-option:first-child) {
737
- ${(0,ve.setVariable)(ht.borderRadiusLeft,rt.borderRadius)};
738
- ${(0,ve.setVariable)(ht.borderWidthLeft,"1px")};
737
+ ${(0,Nt.setVariable)(xe.borderRadiusLeft,le.borderRadius)};
738
+ ${(0,Nt.setVariable)(xe.borderWidthLeft,"1px")};
739
739
  }
740
740
 
741
741
  .ft-switch slot::slotted(ft-switch-option:last-child) {
742
- ${(0,ve.setVariable)(ht.borderRadiusRight,rt.borderRadius)};
742
+ ${(0,Nt.setVariable)(xe.borderRadiusRight,le.borderRadius)};
743
743
  }
744
744
 
745
745
  .ft-switch--dense slot::slotted(ft-switch-option) {
746
746
  --ft-switch-internal-vertical-padding: 2px;
747
747
  --ft-switch-internal-horizontal-padding: 4px;
748
748
  }
749
- `;Uo([(0,ke.property)({type:Boolean})],Vt.prototype,"dense",void 0);Uo([(0,ke.property)({type:Boolean})],Vt.prototype,"unselectable",void 0);Uo([(0,ke.query)(".ft-switch slot")],Vt.prototype,"slottedContent",void 0);Uo([(0,ke.state)()],Vt.prototype,"selectedOption",void 0);Uo([(0,ke.query)(".ft-switch")],Vt.prototype,"ftSwitchDiv",void 0);(0,bi.customElement)("ft-switch")(Vt);(0,bi.customElement)("ft-switch-option")(pt);var as=u(S());var dr=u(_()),Qt=u(K()),ns=u(Te()),pr=u(S());var Xa=u(S());var lr=u(_()),re=u(K()),cr=u(S());var Ya=u(_()),mo=u(S()),ja={colorOutline:mo.FtCssVariableFactory.external(mo.designSystemVariables.colorOutline,"Design system"),colorOnSurfaceMedium:mo.FtCssVariableFactory.external(mo.designSystemVariables.colorOnSurfaceMedium,"Design system")},qa=Ya.css`
749
+ `;so([(0,Wt.property)({type:Boolean})],Ke.prototype,"dense",void 0);so([(0,Wt.property)({type:Boolean})],Ke.prototype,"unselectable",void 0);so([(0,Wt.query)(".ft-switch slot")],Ke.prototype,"slottedContent",void 0);so([(0,Wt.state)()],Ke.prototype,"selectedOption",void 0);so([(0,Wt.query)(".ft-switch")],Ke.prototype,"ftSwitchDiv",void 0);(0,on.customElement)("ft-switch")(Ke);(0,on.customElement)("ft-switch-option")(ge);var xl=m(E());var Uo=m($()),ot=m(j()),vl=m(Bt()),Bo=m(E());var pl=m(E());var $o=m($()),ct=m(j()),Mo=m(E());var cl=m($()),_r=m(E()),ll={colorOutline:_r.FtCssVariableFactory.external(_r.designSystemVariables.colorOutline,"Design system"),colorOnSurfaceMedium:_r.FtCssVariableFactory.external(_r.designSystemVariables.colorOnSurfaceMedium,"Design system")},dl=cl.css`
750
750
  :host {
751
751
  display: block;
752
752
  }
@@ -757,17 +757,17 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
757
757
 
758
758
  ft-icon {
759
759
  transform: rotate(-45deg);
760
- color: ${ja.colorOutline};
760
+ color: ${ll.colorOutline};
761
761
  }
762
762
 
763
763
  .ft-resizer--dragging ft-icon,
764
764
  .ft-resizer:hover ft-icon {
765
- color: ${ja.colorOnSurfaceMedium};
765
+ color: ${ll.colorOnSurfaceMedium};
766
766
  }
767
- `;var $e=function(o,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(o,t,r,i);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},xi=class extends CustomEvent{constructor(t,r){super("resize",{detail:{width:t,height:r}})}},At=class extends cr.FtLitElement{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=Mt.material,this.cursor="nwse-resize",this.dragging=!1,this.fixedWidth=0,this.fixedHeight=0,this.startX=0,this.startY=0,this.doDragFromMouse=t=>this.doDrag(t.clientX,t.clientY),this.doDragFromTouch=t=>this.doDrag(t.touches[0].clientX,t.touches[0].clientY),this.stopDrag=()=>{this.dragging=!1,document.removeEventListener("mousemove",this.doDragFromMouse,!1),document.removeEventListener("mouseup",this.stopDrag,!1),document.removeEventListener("touchmove",this.doDragFromTouch,!1),document.removeEventListener("touchend",this.stopDrag,!1),document.removeEventListener("touchcancel",this.stopDrag,!1)}}render(){return lr.html`
767
+ `;var Ht=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},nn=class extends CustomEvent{constructor(e,r){super("resize",{detail:{width:e,height:r}})}},Ie=class extends Mo.FtLitElement{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=He.material,this.cursor="nwse-resize",this.dragging=!1,this.fixedWidth=0,this.fixedHeight=0,this.startX=0,this.startY=0,this.doDragFromMouse=e=>this.doDrag(e.clientX,e.clientY),this.doDragFromTouch=e=>this.doDrag(e.touches[0].clientX,e.touches[0].clientY),this.stopDrag=()=>{this.dragging=!1,document.removeEventListener("mousemove",this.doDragFromMouse,!1),document.removeEventListener("mouseup",this.stopDrag,!1),document.removeEventListener("touchmove",this.doDragFromTouch,!1),document.removeEventListener("touchend",this.stopDrag,!1),document.removeEventListener("touchcancel",this.stopDrag,!1)}}render(){return $o.html`
768
768
  <style>
769
769
  .ft-resizer {
770
- cursor: ${(0,lr.unsafeCSS)(this.cursor)}
770
+ cursor: ${(0,$o.unsafeCSS)(this.cursor)}
771
771
  }
772
772
  </style>
773
773
  <div class="ft-resizer ft-no-text-select ${this.dragging?"ft-resizer--dragging":""}"
@@ -775,25 +775,25 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
775
775
  @touchstart=${this.initDragFromTouch}>
776
776
  <ft-icon .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
777
777
  </div>
778
- `}initDragFromMouse(t){this.initDrag(t.clientX,t.clientY)}initDragFromTouch(t){t.preventDefault(),t.stopPropagation(),this.initDrag(t.touches[0].clientX,t.touches[0].clientY)}initDrag(t,r){this.dragging=!0,this.startX=t,this.startY=r,this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,this.installDocumentEventListeners()}installDocumentEventListeners(){document.addEventListener("mousemove",this.doDragFromMouse,!1),document.addEventListener("mouseup",this.stopDrag,!1),document.addEventListener("touchmove",this.doDragFromTouch,!1),document.addEventListener("touchend",this.stopDrag,!1),document.addEventListener("touchcancel",this.stopDrag,!1)}doDrag(t,r){let i=this.fixedWidth+t-this.startX,n=this.fixedHeight+r-this.startY;this.dispatchEvent(new xi(i,n))}};At.elementDefinitions={"ft-icon":dt};At.styles=[cr.noTextSelect,qa];$e([(0,re.property)({type:Number})],At.prototype,"initialWidth",void 0);$e([(0,re.property)({type:Number})],At.prototype,"initialHeight",void 0);$e([(0,re.property)()],At.prototype,"icon",void 0);$e([(0,re.property)()],At.prototype,"iconVariant",void 0);$e([(0,re.property)()],At.prototype,"cursor",void 0);$e([(0,re.state)()],At.prototype,"dragging",void 0);$e([(0,re.eventOptions)({passive:!0})],At.prototype,"initDragFromMouse",null);$e([(0,re.eventOptions)({passive:!0})],At.prototype,"initDragFromTouch",null);(0,Xa.customElement)("ft-resizer")(At);var os=u(S());var vi=u(_()),go=u(K()),ts=u(Te()),es=u(S());var Qa=u(_()),G=u(S());var w={fontSize:G.FtCssVariableFactory.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:G.FtCssVariableFactory.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:G.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:G.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:G.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:G.FtCssVariableFactory.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:G.FtCssVariableFactory.extend("--ft-input-label-border-color","",G.designSystemVariables.colorOutline),textColor:G.FtCssVariableFactory.extend("--ft-input-label-text-color","",G.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:G.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color","",G.designSystemVariables.colorOnSurfaceDisabled),colorSurface:G.FtCssVariableFactory.external(G.designSystemVariables.colorSurface,"Design system"),borderRadiusS:G.FtCssVariableFactory.external(G.designSystemVariables.borderRadiusS,"Design system"),colorError:G.FtCssVariableFactory.external(G.designSystemVariables.colorError,"Design system")},Ja=Qa.css`
778
+ `}initDragFromMouse(e){this.initDrag(e.clientX,e.clientY)}initDragFromTouch(e){e.preventDefault(),e.stopPropagation(),this.initDrag(e.touches[0].clientX,e.touches[0].clientY)}initDrag(e,r){this.dragging=!0,this.startX=e,this.startY=r,this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,this.installDocumentEventListeners()}installDocumentEventListeners(){document.addEventListener("mousemove",this.doDragFromMouse,!1),document.addEventListener("mouseup",this.stopDrag,!1),document.addEventListener("touchmove",this.doDragFromTouch,!1),document.addEventListener("touchend",this.stopDrag,!1),document.addEventListener("touchcancel",this.stopDrag,!1)}doDrag(e,r){let i=this.fixedWidth+e-this.startX,n=this.fixedHeight+r-this.startY;this.dispatchEvent(new nn(i,n))}};Ie.elementDefinitions={"ft-icon":me};Ie.styles=[Mo.noTextSelect,dl];Ht([(0,ct.property)({type:Number})],Ie.prototype,"initialWidth",void 0);Ht([(0,ct.property)({type:Number})],Ie.prototype,"initialHeight",void 0);Ht([(0,ct.property)()],Ie.prototype,"icon",void 0);Ht([(0,ct.property)()],Ie.prototype,"iconVariant",void 0);Ht([(0,ct.property)()],Ie.prototype,"cursor",void 0);Ht([(0,ct.state)()],Ie.prototype,"dragging",void 0);Ht([(0,ct.eventOptions)({passive:!0})],Ie.prototype,"initDragFromMouse",null);Ht([(0,ct.eventOptions)({passive:!0})],Ie.prototype,"initDragFromTouch",null);(0,pl.customElement)("ft-resizer")(Ie);var gl=m(E());var an=m($()),kr=m(j()),hl=m(Bt()),ml=m(E());var fl=m($()),Q=m(E());var P={fontSize:Q.FtCssVariableFactory.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:Q.FtCssVariableFactory.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:Q.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:Q.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:Q.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:Q.FtCssVariableFactory.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:Q.FtCssVariableFactory.extend("--ft-input-label-border-color","",Q.designSystemVariables.colorOutline),textColor:Q.FtCssVariableFactory.extend("--ft-input-label-text-color","",Q.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:Q.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color","",Q.designSystemVariables.colorOnSurfaceDisabled),colorSurface:Q.FtCssVariableFactory.external(Q.designSystemVariables.colorSurface,"Design system"),borderRadiusS:Q.FtCssVariableFactory.external(Q.designSystemVariables.borderRadiusS,"Design system"),colorError:Q.FtCssVariableFactory.external(Q.designSystemVariables.colorError,"Design system")},ul=fl.css`
779
779
  .ft-input-label {
780
780
  position: absolute;
781
781
  inset: 0;
782
782
  display: flex;
783
- background-color: ${w.colorSurface};
784
- border-radius: ${w.borderRadiusS} ${w.borderRadiusS} 0 0;
783
+ background-color: ${P.colorSurface};
784
+ border-radius: ${P.borderRadiusS} ${P.borderRadiusS} 0 0;
785
785
  }
786
786
 
787
787
  .ft-input-label--outlined {
788
- border-radius: ${w.borderRadiusS};
788
+ border-radius: ${P.borderRadiusS};
789
789
  }
790
790
 
791
791
  .ft-input-label {
792
- border-color: ${w.borderColor};
792
+ border-color: ${P.borderColor};
793
793
  }
794
794
 
795
795
  .ft-input-label.ft-input-label--in-error {
796
- border-color: ${w.colorError}
796
+ border-color: ${P.colorError}
797
797
  }
798
798
 
799
799
  .ft-input-label:before,
@@ -806,7 +806,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
806
806
  }
807
807
 
808
808
  .ft-input-label:before {
809
- width: calc(${w.horizontalSpacing} - 4px);
809
+ width: calc(${P.horizontalSpacing} - 4px);
810
810
  flex-shrink: 0;
811
811
  }
812
812
 
@@ -822,20 +822,20 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
822
822
  border-bottom-width: 1px;
823
823
  border-bottom-style: solid;
824
824
  border-color: inherit;
825
- color: ${w.textColor};
825
+ color: ${P.textColor};
826
826
  transition: font-size 250ms, line-height 250ms, color 250ms;
827
- max-width: calc(${w.labelMaxWidth} - 2 * (${w.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
827
+ max-width: calc(${P.labelMaxWidth} - 2 * (${P.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
828
828
  text-overflow: ellipsis;
829
- ${(0,G.setVariable)(ee.fontSize,w.fontSize)};
830
- ${(0,G.setVariable)(ee.lineHeight,w.fontSize)};
829
+ ${(0,Q.setVariable)(st.fontSize,P.fontSize)};
830
+ ${(0,Q.setVariable)(st.lineHeight,P.fontSize)};
831
831
  }
832
832
 
833
833
  .ft-input-label--in-error .ft-input-label--text {
834
- color: ${w.colorError}
834
+ color: ${P.colorError}
835
835
  }
836
836
 
837
837
  .ft-input-label--disabled .ft-input-label--text {
838
- color: ${w.disabledTextColor};
838
+ color: ${P.disabledTextColor};
839
839
  }
840
840
 
841
841
  .ft-input-label--hidden-text {
@@ -852,19 +852,19 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
852
852
  overflow: hidden;
853
853
  white-space: nowrap;
854
854
  text-overflow: ellipsis;
855
- padding: ${w.verticalSpacing} 4px;
856
- margin: calc(${w.verticalSpacing} * -1) 0;
855
+ padding: ${P.verticalSpacing} 4px;
856
+ margin: calc(${P.verticalSpacing} * -1) 0;
857
857
  max-width: 100%;
858
858
  box-sizing: border-box;
859
859
  }
860
860
 
861
861
  .ft-input-label--raised .ft-input-label--text {
862
- ${(0,G.setVariable)(ee.fontSize,w.raisedFontSize)};
863
- ${(0,G.setVariable)(ee.lineHeight,w.raisedFontSize)};
862
+ ${(0,Q.setVariable)(st.fontSize,P.raisedFontSize)};
863
+ ${(0,Q.setVariable)(st.lineHeight,P.raisedFontSize)};
864
864
  }
865
865
 
866
866
  .ft-input-label--raised .ft-input-label--floating-text {
867
- top: ${w.verticalSpacing};
867
+ top: ${P.verticalSpacing};
868
868
  }
869
869
 
870
870
  .ft-input-label--outlined .ft-input-label--text,
@@ -877,36 +877,36 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
877
877
  .ft-input-label--outlined:before {
878
878
  border-left-width: 1px;
879
879
  border-left-style: solid;
880
- border-radius: ${w.borderRadiusS} 0 0 ${w.borderRadiusS};
880
+ border-radius: ${P.borderRadiusS} 0 0 ${P.borderRadiusS};
881
881
  }
882
882
 
883
883
  .ft-input-label--outlined:after {
884
884
  border-right-width: 1px;
885
885
  border-right-style: solid;
886
- border-radius: 0 ${w.borderRadiusS} ${w.borderRadiusS} 0;
886
+ border-radius: 0 ${P.borderRadiusS} ${P.borderRadiusS} 0;
887
887
  }
888
888
 
889
889
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
890
890
  padding: 2px 4px;
891
- z-index: ${w.raisedZIndex};
892
- background-color: ${w.colorSurface};
893
- border-radius: ${w.borderRadiusS};
891
+ z-index: ${P.raisedZIndex};
892
+ background-color: ${P.colorSurface};
893
+ border-radius: ${P.borderRadiusS};
894
894
  top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
895
895
  }
896
896
 
897
897
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
898
898
  border-top: none;
899
899
  }
900
- `;var Mo=function(o,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(o,t,r,i);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},Lt=class extends es.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1,this.error=!1}render(){let t={"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error};return vi.html`
901
- <div class="${(0,ts.classMap)(t)}">
902
- ${this.text?vi.html`
900
+ `;var lo=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},De=class extends ml.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1,this.error=!1}render(){let e={"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error};return an.html`
901
+ <div class="${(0,hl.classMap)(e)}">
902
+ ${this.text?an.html`
903
903
  <div class="ft-input-label--text ft-typography--caption">
904
904
  <span class="ft-input-label--floating-text">${this.text}</span>
905
905
  <span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
906
906
  </div>
907
907
  `:null}
908
908
  </div>
909
- `}};Lt.elementDefinitions={};Lt.styles=[Yo,Ja];Mo([(0,go.property)({type:String})],Lt.prototype,"text",void 0);Mo([(0,go.property)({type:Boolean})],Lt.prototype,"raised",void 0);Mo([(0,go.property)({type:Boolean})],Lt.prototype,"outlined",void 0);Mo([(0,go.property)({type:Boolean})],Lt.prototype,"disabled",void 0);Mo([(0,go.property)({type:Boolean})],Lt.prototype,"error",void 0);(0,os.customElement)("ft-input-label")(Lt);var rs=u(_()),U=u(S());var z={fontSize:U.FtCssVariableFactory.create("--ft-text-area-font-size","","SIZE","14px"),labelSize:U.FtCssVariableFactory.create("--ft-text-area-label-size","","SIZE","11px"),verticalSpacing:U.FtCssVariableFactory.create("--ft-text-area-vertical-spacing","","SIZE","4px"),horizontalSpacing:U.FtCssVariableFactory.create("--ft-text-area-horizontal-spacing","","SIZE","16px"),helperColor:U.FtCssVariableFactory.extend("--ft-text-area-helper-color","",U.designSystemVariables.colorOnSurfaceMedium),colorPrimary:U.FtCssVariableFactory.external(U.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:U.FtCssVariableFactory.external(U.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:U.FtCssVariableFactory.external(U.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:U.FtCssVariableFactory.external(U.designSystemVariables.borderRadiusS,"Design system"),colorError:U.FtCssVariableFactory.external(U.designSystemVariables.colorError,"Design system")},is=rs.css`
909
+ `}};De.elementDefinitions={};De.styles=[wo,ul];lo([(0,kr.property)({type:String})],De.prototype,"text",void 0);lo([(0,kr.property)({type:Boolean})],De.prototype,"raised",void 0);lo([(0,kr.property)({type:Boolean})],De.prototype,"outlined",void 0);lo([(0,kr.property)({type:Boolean})],De.prototype,"disabled",void 0);lo([(0,kr.property)({type:Boolean})],De.prototype,"error",void 0);(0,gl.customElement)("ft-input-label")(De);var yl=m($()),V=m(E());var q={fontSize:V.FtCssVariableFactory.create("--ft-text-area-font-size","","SIZE","14px"),labelSize:V.FtCssVariableFactory.create("--ft-text-area-label-size","","SIZE","11px"),verticalSpacing:V.FtCssVariableFactory.create("--ft-text-area-vertical-spacing","","SIZE","4px"),horizontalSpacing:V.FtCssVariableFactory.create("--ft-text-area-horizontal-spacing","","SIZE","16px"),helperColor:V.FtCssVariableFactory.extend("--ft-text-area-helper-color","",V.designSystemVariables.colorOnSurfaceMedium),colorPrimary:V.FtCssVariableFactory.external(V.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:V.FtCssVariableFactory.external(V.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:V.FtCssVariableFactory.external(V.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:V.FtCssVariableFactory.external(V.designSystemVariables.borderRadiusS,"Design system"),colorError:V.FtCssVariableFactory.external(V.designSystemVariables.colorError,"Design system")},bl=yl.css`
910
910
  *:focus {
911
911
  outline: none;
912
912
  }
@@ -918,10 +918,10 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
918
918
  }
919
919
 
920
920
  ft-input-label {
921
- ${(0,U.setVariable)(w.fontSize,z.fontSize)};
922
- ${(0,U.setVariable)(w.raisedFontSize,z.labelSize)};
923
- ${(0,U.setVariable)(w.verticalSpacing,z.verticalSpacing)};
924
- ${(0,U.setVariable)(w.horizontalSpacing,z.horizontalSpacing)};
921
+ ${(0,V.setVariable)(P.fontSize,q.fontSize)};
922
+ ${(0,V.setVariable)(P.raisedFontSize,q.labelSize)};
923
+ ${(0,V.setVariable)(P.verticalSpacing,q.verticalSpacing)};
924
+ ${(0,V.setVariable)(P.horizontalSpacing,q.horizontalSpacing)};
925
925
  }
926
926
 
927
927
  .ft-text-area--main-panel {
@@ -939,8 +939,8 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
939
939
  }
940
940
 
941
941
  .ft-text-area--input-panel ft-ripple {
942
- ${(0,U.setVariable)(N.opacityContentOnSurfaceHover,"0.08")};
943
- ${(0,U.setVariable)(N.opacityContentOnSurfacePressed,"0.04")};
942
+ ${(0,V.setVariable)(M.opacityContentOnSurfaceHover,"0.08")};
943
+ ${(0,V.setVariable)(M.opacityContentOnSurfacePressed,"0.04")};
944
944
  }
945
945
 
946
946
  .ft-text-area--input {
@@ -952,12 +952,12 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
952
952
  align-self: stretch;
953
953
  resize: none;
954
954
 
955
- ${(0,U.setVariable)(Yt.fontSize,z.fontSize)};
956
- ${(0,U.setVariable)(Yt.lineHeight,z.fontSize)};
957
- color: ${z.colorOnSurface};
955
+ ${(0,V.setVariable)(et.fontSize,q.fontSize)};
956
+ ${(0,V.setVariable)(et.lineHeight,q.fontSize)};
957
+ color: ${q.colorOnSurface};
958
958
 
959
- padding: 0 ${z.horizontalSpacing};
960
- margin: calc(${z.verticalSpacing} + ${z.labelSize} / 2) 0 ${z.verticalSpacing} 0;
959
+ padding: 0 ${q.horizontalSpacing};
960
+ margin: calc(${q.verticalSpacing} + ${q.labelSize} / 2) 0 ${q.verticalSpacing} 0;
961
961
 
962
962
  border: none;
963
963
  background: none;
@@ -966,7 +966,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
966
966
  }
967
967
 
968
968
  .ft-text-area--disabled .ft-text-area--input {
969
- color: ${z.colorOnSurfaceDisabled};
969
+ color: ${q.colorOnSurfaceDisabled};
970
970
  }
971
971
 
972
972
  .ft-text-area:not(.ft-text-area--disabled) .ft-text-area--input-panel {
@@ -974,49 +974,49 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
974
974
  }
975
975
 
976
976
  .ft-text-area:not(.ft-text-area--disabled):focus-within ft-input-label {
977
- ${(0,U.setVariable)(w.borderColor,z.colorPrimary)};
978
- ${(0,U.setVariable)(w.textColor,z.colorPrimary)};
977
+ ${(0,V.setVariable)(P.borderColor,q.colorPrimary)};
978
+ ${(0,V.setVariable)(P.textColor,q.colorPrimary)};
979
979
  }
980
980
 
981
981
  .ft-text-area--filled .ft-text-area--input-panel {
982
- border-radius: ${z.borderRadiusS} ${z.borderRadiusS} 0 0;
982
+ border-radius: ${q.borderRadiusS} ${q.borderRadiusS} 0 0;
983
983
  }
984
984
 
985
985
  .ft-text-area--filled:not(.ft-text-area--no-label) .ft-text-area--input {
986
986
  align-self: stretch;
987
- margin-bottom: ${z.verticalSpacing};
988
- margin-top: calc(${z.labelSize} + 2 * ${z.verticalSpacing});
987
+ margin-bottom: ${q.verticalSpacing};
988
+ margin-top: calc(${q.labelSize} + 2 * ${q.verticalSpacing});
989
989
  }
990
990
 
991
991
  .ft-text-area--outlined .ft-text-area--input-panel {
992
- border-radius: ${z.borderRadiusS};
992
+ border-radius: ${q.borderRadiusS};
993
993
  }
994
994
 
995
995
  .ft-text-area--helper-text {
996
- padding: 0 12px 0 ${z.horizontalSpacing};
997
- color: ${z.helperColor};
996
+ padding: 0 12px 0 ${q.horizontalSpacing};
997
+ color: ${q.helperColor};
998
998
  }
999
999
 
1000
1000
  .ft-text-area--in-error .ft-text-area--input,
1001
1001
  .ft-text-area--in-error .ft-text-area--helper-text {
1002
- color: ${z.colorError};
1002
+ color: ${q.colorError};
1003
1003
  }
1004
1004
 
1005
1005
  ft-resizer {
1006
1006
  position: absolute;
1007
1007
  bottom: 0;
1008
1008
  }
1009
- `;var Se=function(o,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(o,t,r,i);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},Ot=class extends(0,pr.toFtFormComponent)(pr.FtLitElement,"textbox"){constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.height=50,this.focused=!1}render(){let t={"ft-text-area":!0,"ft-text-area--filled":!this.outlined,"ft-text-area--outlined":this.outlined,"ft-text-area--disabled":this.disabled,"ft-text-area--has-value":!!this.value,"ft-text-area--no-label":!this.label,"ft-text-area--in-error":this.error};return dr.html`
1009
+ `;var It=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Ae=class extends(0,Bo.toFtFormComponent)(Bo.FtLitElement,"textbox"){constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.height=50,this.focused=!1}render(){let e={"ft-text-area":!0,"ft-text-area--filled":!this.outlined,"ft-text-area--outlined":this.outlined,"ft-text-area--disabled":this.disabled,"ft-text-area--has-value":!!this.value,"ft-text-area--no-label":!this.label,"ft-text-area--in-error":this.error};return Uo.html`
1010
1010
  <style>
1011
1011
  .ft-text-area--main-panel {
1012
- height: calc(4 * ${z.verticalSpacing} + ${z.labelSize} + ${z.fontSize} + ${this.height}px);
1012
+ height: calc(4 * ${q.verticalSpacing} + ${q.labelSize} + ${q.fontSize} + ${this.height}px);
1013
1013
  }
1014
1014
 
1015
1015
  ft-resizer {
1016
1016
  right: ${this.textarea!=null?this.textarea.offsetWidth-this.textarea.clientWidth:0}px;
1017
1017
  }
1018
1018
  </style>
1019
- <div class="${(0,ns.classMap)(t)}">
1019
+ <div class="${(0,vl.classMap)(e)}">
1020
1020
  <div class="ft-text-area--main-panel">
1021
1021
  <ft-input-label text="${this.label}"
1022
1022
  ?disabled=${this.disabled}
@@ -1026,7 +1026,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
1026
1026
  ></ft-input-label>
1027
1027
  <div class="ft-text-area--input-panel"
1028
1028
  aria-label="${this.label}">
1029
- ${this.outlined?null:dr.html`
1029
+ ${this.outlined?null:Uo.html`
1030
1030
  <ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
1031
1031
  `}
1032
1032
  <textarea class="ft-typography--body1 ft-text-area--input"
@@ -1043,45 +1043,45 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
1043
1043
  initialHeight="${this.height}"
1044
1044
  cursor="ns-resize"></ft-resizer>
1045
1045
  </div>
1046
- ${this.helper?dr.html`
1046
+ ${this.helper?Uo.html`
1047
1047
  <ft-typography class="ft-text-area--helper-text" variant="caption">
1048
1048
  ${this.helper}
1049
1049
  </ft-typography>`:void 0}
1050
1050
  </div>
1051
- `}setValue(t,r=!1){this.value=t,this.setFormValue(t),r&&(this.dispatchEvent(new CustomEvent("live-change",{detail:this.value})),this.dispatchEvent(new CustomEvent("change",{detail:this.value})))}onKeyDown(t){(t.key==="Enter"||t.key===" ")&&t.stopPropagation()}updateValueFromInputField(){this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=((t=this.textarea)===null||t===void 0?void 0:t.value)||"",this.setFormValue(this.value),this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onResize(t){t.detail.height>=50&&(this.height=t.detail.height)}};Ot.elementDefinitions={"ft-input-label":Lt,"ft-resizer":At,"ft-ripple":B,"ft-typography":it};Ot.styles=[no,is];Se([(0,Qt.property)({type:String})],Ot.prototype,"label",void 0);Se([(0,Qt.property)({reflect:!0})],Ot.prototype,"value",void 0);Se([(0,Qt.property)({type:String})],Ot.prototype,"helper",void 0);Se([(0,Qt.property)({type:Boolean})],Ot.prototype,"outlined",void 0);Se([(0,Qt.property)({type:Boolean})],Ot.prototype,"disabled",void 0);Se([(0,Qt.property)({type:Boolean})],Ot.prototype,"error",void 0);Se([(0,Qt.property)({type:Number,reflect:!0})],Ot.prototype,"height",void 0);Se([(0,Qt.query)("textarea")],Ot.prototype,"textarea",void 0);Se([(0,Qt.state)()],Ot.prototype,"focused",void 0);(0,as.customElement)("ft-text-area")(Ot);var pl=u(ls());var Si=u(S());var Fo=u(K()),us=u(S());var bo=u(S());var ps=u(S());var cs=u(_()),ds=u(S());var Ye=class extends ds.FtLitElement{render(){return cs.html`
1051
+ `}setValue(e,r=!1){this.value=e,this.setFormValue(e),r&&(this.dispatchEvent(new CustomEvent("live-change",{detail:this.value})),this.dispatchEvent(new CustomEvent("change",{detail:this.value})))}onKeyDown(e){(e.key==="Enter"||e.key===" ")&&e.stopPropagation()}updateValueFromInputField(){this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var e;this.value=((e=this.textarea)===null||e===void 0?void 0:e.value)||"",this.setFormValue(this.value),this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onResize(e){e.detail.height>=50&&(this.height=e.detail.height)}};Ae.elementDefinitions={"ft-input-label":De,"ft-resizer":Ie,"ft-ripple":H,"ft-typography":ce};Ae.styles=[Or,bl];It([(0,ot.property)({type:String})],Ae.prototype,"label",void 0);It([(0,ot.property)({reflect:!0})],Ae.prototype,"value",void 0);It([(0,ot.property)({type:String})],Ae.prototype,"helper",void 0);It([(0,ot.property)({type:Boolean})],Ae.prototype,"outlined",void 0);It([(0,ot.property)({type:Boolean})],Ae.prototype,"disabled",void 0);It([(0,ot.property)({type:Boolean})],Ae.prototype,"error",void 0);It([(0,ot.property)({type:Number,reflect:!0})],Ae.prototype,"height",void 0);It([(0,ot.query)("textarea")],Ae.prototype,"textarea",void 0);It([(0,ot.state)()],Ae.prototype,"focused",void 0);(0,xl.customElement)("ft-text-area")(Ae);var ud=m(Ol());var sn=m(E());var co=m(j()),Rl=m(E());var Lr=m(E());var El=m(E());var wl=m($()),Cl=m(E());var dr=class extends Cl.FtLitElement{render(){return wl.html`
1052
1052
  <div class="ft-loader">
1053
1053
  <div></div>
1054
1054
  <div></div>
1055
1055
  <div></div>
1056
1056
  <div></div>
1057
1057
  </div>
1058
- `}};Ye.styles=$n;(0,ps.customElement)("ft-loader")(Ye);var yo=u(_()),fs=u(Te()),kt=u(K()),Gt=function(o,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(o,t,r,i);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},ft=class extends(0,bo.toFtFormComponent)(bo.FtLitElement,"button"){constructor(){super(),this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.addEventListener("click",t=>{var r;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):this.type=="submit"&&((r=this.form)===null||r===void 0||r.requestSubmit())})}render(){return this.addTooltipIfNeeded(yo.html`
1058
+ `}};dr.styles=Za;(0,El.customElement)("ft-loader")(dr);var Pr=m($()),Al=m(Bt()),$e=m(j()),Ze=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ye=class extends(0,Lr.toFtFormComponent)(Lr.FtLitElement,"button"){constructor(){super(),this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.addEventListener("click",e=>{var r;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((r=this.form)===null||r===void 0||r.requestSubmit())})}render(){return this.addTooltipIfNeeded(Pr.html`
1059
1059
  <button part="button"
1060
- class="${(0,fs.classMap)(this.buttonClasses)}"
1060
+ class="${(0,Al.classMap)(this.buttonClasses)}"
1061
1061
  aria-label="${this.getLabel()}"
1062
1062
  ?disabled=${this.isDisabled()}>
1063
1063
  <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
1064
1064
  <ft-typography part="label"
1065
1065
  variant=${this.typographyVariant}
1066
1066
  element="span"
1067
- class="ft-button--label ${bo.isSafari?"ft-safari-ellipsis-fix":""}"
1067
+ class="ft-button--label ${Lr.isSafari?"ft-safari-ellipsis-fix":""}"
1068
1068
  ?hidden=${!this.hasTextContent()}>
1069
1069
  <slot @slotchange=${this.onSlotchange}></slot>
1070
1070
  </ft-typography>
1071
1071
  ${this.resolveIcon()}
1072
1072
  </button>
1073
- `)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?yo.html`
1073
+ `)}addTooltipIfNeeded(e){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?Pr.html`
1074
1074
  <ft-tooltip part="tooltip"
1075
1075
  text="${this.getLabel()}"
1076
1076
  position="${this.tooltipPosition}">
1077
- ${t}
1077
+ ${e}
1078
1078
  </ft-tooltip>
1079
- `:t}resolveIcon(){return this.loading?yo.html`
1080
- <ft-loader part="loader icon"></ft-loader> `:this.icon?yo.html`
1079
+ `:e}resolveIcon(){return this.loading?Pr.html`
1080
+ <ft-loader part="loader icon"></ft-loader> `:this.icon?Pr.html`
1081
1081
  <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
1082
- `:yo.html`
1082
+ `:Pr.html`
1083
1083
  <slot part="icon" name="icon"></slot>
1084
- `}focus(){var t;(t=this.button)===null||t===void 0||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map(r=>this.unslotText(r)).join(""):t?.textContent||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};ft.elementDefinitions={"ft-ripple":B,"ft-tooltip":Z,"ft-typography":it,"ft-icon":dt,"ft-loader":Ye};Gt([(0,kt.property)({type:String,reflect:!0})],ft.prototype,"role",void 0);Gt([(0,kt.property)()],ft.prototype,"type",void 0);Gt([(0,kt.property)({type:Boolean})],ft.prototype,"disabled",void 0);Gt([(0,kt.property)()],ft.prototype,"label",void 0);Gt([(0,kt.property)()],ft.prototype,"icon",void 0);Gt([(0,kt.property)()],ft.prototype,"iconVariant",void 0);Gt([(0,kt.property)({type:Boolean})],ft.prototype,"trailingIcon",void 0);Gt([(0,kt.property)({type:Boolean})],ft.prototype,"loading",void 0);Gt([(0,kt.property)()],ft.prototype,"tooltipPosition",void 0);Gt([(0,kt.property)({type:Boolean})],ft.prototype,"hideTooltip",void 0);Gt([(0,kt.property)({type:Boolean})],ft.prototype,"forceTooltip",void 0);Gt([(0,kt.query)(".ft-button")],ft.prototype,"button",void 0);Gt([(0,kt.query)(".ft-button--label slot")],ft.prototype,"slottedContent",void 0);var fr=function(o,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(o,t,r,i);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},ie=class extends ft{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}};ie.styles=[us.safariEllipsisFix,Fn];fr([(0,Fo.property)({type:Boolean})],ie.prototype,"primary",void 0);fr([(0,Fo.property)({type:Boolean})],ie.prototype,"outlined",void 0);fr([(0,Fo.property)({type:Boolean})],ie.prototype,"dense",void 0);fr([(0,Fo.property)({type:Boolean})],ie.prototype,"round",void 0);var xo=u(K());var gs=u(S());var hs=u(_()),D=u(S());var ms=[hs.css`
1084
+ `}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(e){return e instanceof HTMLSlotElement?e.assignedNodes().map(r=>this.unslotText(r)).join(""):e?.textContent||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};ye.elementDefinitions={"ft-ripple":H,"ft-tooltip":te,"ft-typography":ce,"ft-icon":me,"ft-loader":dr};Ze([(0,$e.property)({type:String,reflect:!0})],ye.prototype,"role",void 0);Ze([(0,$e.property)()],ye.prototype,"type",void 0);Ze([(0,$e.property)({type:Boolean})],ye.prototype,"disabled",void 0);Ze([(0,$e.property)()],ye.prototype,"label",void 0);Ze([(0,$e.property)()],ye.prototype,"icon",void 0);Ze([(0,$e.property)()],ye.prototype,"iconVariant",void 0);Ze([(0,$e.property)({type:Boolean})],ye.prototype,"trailingIcon",void 0);Ze([(0,$e.property)({type:Boolean})],ye.prototype,"loading",void 0);Ze([(0,$e.property)()],ye.prototype,"tooltipPosition",void 0);Ze([(0,$e.property)({type:Boolean})],ye.prototype,"hideTooltip",void 0);Ze([(0,$e.property)({type:Boolean})],ye.prototype,"forceTooltip",void 0);Ze([(0,$e.query)(".ft-button")],ye.prototype,"button",void 0);Ze([(0,$e.query)(".ft-button--label slot")],ye.prototype,"slottedContent",void 0);var Fo=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},dt=class extends ye{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}};dt.styles=[Rl.safariEllipsisFix,es];Fo([(0,co.property)({type:Boolean})],dt.prototype,"primary",void 0);Fo([(0,co.property)({type:Boolean})],dt.prototype,"outlined",void 0);Fo([(0,co.property)({type:Boolean})],dt.prototype,"dense",void 0);Fo([(0,co.property)({type:Boolean})],dt.prototype,"round",void 0);var Dr=m(j());var Tl=m(E());var Nl=m($()),W=m(E());var Il=[Nl.css`
1085
1085
  :host {
1086
1086
  display: inline-block;
1087
1087
  max-width: 100%;
@@ -1131,7 +1131,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
1131
1131
  }
1132
1132
 
1133
1133
  .ft-button:focus-visible {
1134
- outline-color: ${v.focusFocusRingColor};
1134
+ outline-color: ${C.focusFocusRingColor};
1135
1135
  outline-style: solid;
1136
1136
  }
1137
1137
 
@@ -1160,154 +1160,154 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
1160
1160
  /** Primary styles **/
1161
1161
 
1162
1162
  .ft-button--primary {
1163
- ${(0,D.setVariable)(Pt.color,v.primaryIconColor)};
1163
+ ${(0,W.setVariable)(Be.color,C.primaryIconColor)};
1164
1164
 
1165
- ${(0,D.setVariable)(N.color,v.primaryStateLayerColor)};
1166
- ${(0,D.setVariable)(N.opacityContentOnSurfaceHover,v.primaryHoverStateLayerOpacity)};
1167
- ${(0,D.setVariable)(N.opacityContentOnSurfaceFocused,v.primaryFocusStateLayerOpacity)};
1168
- ${(0,D.setVariable)(N.opacityContentOnSurfaceSelected,v.primaryActiveStateLayerOpacity)};
1169
- ${(0,D.setVariable)(N.opacityContentOnSurfacePressed,v.primaryActiveStateLayerOpacity)};
1165
+ ${(0,W.setVariable)(M.color,C.primaryStateLayerColor)};
1166
+ ${(0,W.setVariable)(M.opacityContentOnSurfaceHover,C.primaryHoverStateLayerOpacity)};
1167
+ ${(0,W.setVariable)(M.opacityContentOnSurfaceFocused,C.primaryFocusStateLayerOpacity)};
1168
+ ${(0,W.setVariable)(M.opacityContentOnSurfaceSelected,C.primaryActiveStateLayerOpacity)};
1169
+ ${(0,W.setVariable)(M.opacityContentOnSurfacePressed,C.primaryActiveStateLayerOpacity)};
1170
1170
 
1171
- background-color: ${v.primaryBackgroundColor};
1172
- color: ${v.primaryColor};
1171
+ background-color: ${C.primaryBackgroundColor};
1172
+ color: ${C.primaryColor};
1173
1173
  border-style: none;
1174
1174
  }
1175
1175
 
1176
1176
  .ft-button--primary[disabled] {
1177
- opacity: ${v.primaryDisabledComponentOpacity};
1177
+ opacity: ${C.primaryDisabledComponentOpacity};
1178
1178
  }
1179
1179
 
1180
1180
  .ft-button--primary ft-icon {
1181
- color: ${v.primaryIconColor};
1181
+ color: ${C.primaryIconColor};
1182
1182
  }
1183
1183
 
1184
1184
  /** Secondary styles **/
1185
1185
 
1186
1186
  .ft-button--secondary {
1187
- ${(0,D.setVariable)(Pt.color,v.secondaryIconColor)};
1187
+ ${(0,W.setVariable)(Be.color,C.secondaryIconColor)};
1188
1188
 
1189
- ${(0,D.setVariable)(N.color,v.secondaryStateLayerColor)};
1190
- ${(0,D.setVariable)(N.opacityContentOnSurfaceHover,v.secondaryHoverStateLayerOpacity)};
1191
- ${(0,D.setVariable)(N.opacityContentOnSurfaceFocused,v.secondaryFocusStateLayerOpacity)};
1192
- ${(0,D.setVariable)(N.opacityContentOnSurfaceSelected,v.secondaryActiveStateLayerOpacity)};
1193
- ${(0,D.setVariable)(N.opacityContentOnSurfacePressed,v.secondaryActiveStateLayerOpacity)};
1189
+ ${(0,W.setVariable)(M.color,C.secondaryStateLayerColor)};
1190
+ ${(0,W.setVariable)(M.opacityContentOnSurfaceHover,C.secondaryHoverStateLayerOpacity)};
1191
+ ${(0,W.setVariable)(M.opacityContentOnSurfaceFocused,C.secondaryFocusStateLayerOpacity)};
1192
+ ${(0,W.setVariable)(M.opacityContentOnSurfaceSelected,C.secondaryActiveStateLayerOpacity)};
1193
+ ${(0,W.setVariable)(M.opacityContentOnSurfacePressed,C.secondaryActiveStateLayerOpacity)};
1194
1194
 
1195
- background-color: ${v.secondaryBackgroundColor};
1196
- color: ${v.secondaryColor};
1197
- border-color: ${v.secondaryBorderColor};
1195
+ background-color: ${C.secondaryBackgroundColor};
1196
+ color: ${C.secondaryColor};
1197
+ border-color: ${C.secondaryBorderColor};
1198
1198
  border-style: solid;
1199
1199
  }
1200
1200
 
1201
1201
  .ft-button--secondary[disabled] {
1202
- opacity: ${v.secondaryDisabledComponentOpacity};
1202
+ opacity: ${C.secondaryDisabledComponentOpacity};
1203
1203
  }
1204
1204
 
1205
1205
  .ft-button--secondary ft-icon {
1206
- color: ${v.secondaryIconColor};
1206
+ color: ${C.secondaryIconColor};
1207
1207
  }
1208
1208
 
1209
1209
  /** Tertiary styles **/
1210
1210
 
1211
1211
  .ft-button--tertiary {
1212
- ${(0,D.setVariable)(Pt.color,v.tertiaryIconColor)};
1212
+ ${(0,W.setVariable)(Be.color,C.tertiaryIconColor)};
1213
1213
 
1214
- ${(0,D.setVariable)(N.color,v.tertiaryStateLayerColor)};
1215
- ${(0,D.setVariable)(N.opacityContentOnSurfaceHover,v.tertiaryHoverStateLayerOpacity)};
1216
- ${(0,D.setVariable)(N.opacityContentOnSurfaceFocused,v.tertiaryFocusStateLayerOpacity)};
1217
- ${(0,D.setVariable)(N.opacityContentOnSurfaceSelected,v.tertiaryActiveStateLayerOpacity)};
1218
- ${(0,D.setVariable)(N.opacityContentOnSurfacePressed,v.tertiaryActiveStateLayerOpacity)};
1214
+ ${(0,W.setVariable)(M.color,C.tertiaryStateLayerColor)};
1215
+ ${(0,W.setVariable)(M.opacityContentOnSurfaceHover,C.tertiaryHoverStateLayerOpacity)};
1216
+ ${(0,W.setVariable)(M.opacityContentOnSurfaceFocused,C.tertiaryFocusStateLayerOpacity)};
1217
+ ${(0,W.setVariable)(M.opacityContentOnSurfaceSelected,C.tertiaryActiveStateLayerOpacity)};
1218
+ ${(0,W.setVariable)(M.opacityContentOnSurfacePressed,C.tertiaryActiveStateLayerOpacity)};
1219
1219
 
1220
- background-color: ${v.tertiaryBackgroundColor};
1221
- color: ${v.tertiaryColor};
1220
+ background-color: ${C.tertiaryBackgroundColor};
1221
+ color: ${C.tertiaryColor};
1222
1222
  border-style: none;
1223
1223
  }
1224
1224
 
1225
1225
  .ft-button--tertiary[disabled] {
1226
- opacity: ${v.tertiaryDisabledComponentOpacity};
1226
+ opacity: ${C.tertiaryDisabledComponentOpacity};
1227
1227
  }
1228
1228
 
1229
1229
  .ft-button--tertiary ft-icon {
1230
- color: ${v.tertiaryIconColor};
1230
+ color: ${C.tertiaryIconColor};
1231
1231
  }
1232
1232
 
1233
1233
  /** Neutral styles **/
1234
1234
 
1235
1235
  .ft-button--neutral {
1236
- ${(0,D.setVariable)(Pt.color,v.neutralIconColor)};
1236
+ ${(0,W.setVariable)(Be.color,C.neutralIconColor)};
1237
1237
 
1238
- ${(0,D.setVariable)(N.backgroundColor,v.neutralStateLayerColor)};
1239
- ${(0,D.setVariable)(N.opacityContentOnSurfaceHover,v.neutralHoverStateLayerOpacity)};
1240
- ${(0,D.setVariable)(N.opacityContentOnSurfaceFocused,v.neutralFocusStateLayerOpacity)};
1241
- ${(0,D.setVariable)(N.opacityContentOnSurfaceSelected,v.neutralActiveStateLayerOpacity)};
1242
- ${(0,D.setVariable)(N.opacityContentOnSurfacePressed,v.neutralActiveStateLayerOpacity)};
1238
+ ${(0,W.setVariable)(M.backgroundColor,C.neutralStateLayerColor)};
1239
+ ${(0,W.setVariable)(M.opacityContentOnSurfaceHover,C.neutralHoverStateLayerOpacity)};
1240
+ ${(0,W.setVariable)(M.opacityContentOnSurfaceFocused,C.neutralFocusStateLayerOpacity)};
1241
+ ${(0,W.setVariable)(M.opacityContentOnSurfaceSelected,C.neutralActiveStateLayerOpacity)};
1242
+ ${(0,W.setVariable)(M.opacityContentOnSurfacePressed,C.neutralActiveStateLayerOpacity)};
1243
1243
 
1244
- background-color: ${v.neutralBackgroundColor};
1245
- color: ${v.neutralColor};
1244
+ background-color: ${C.neutralBackgroundColor};
1245
+ color: ${C.neutralColor};
1246
1246
  border-style: none;
1247
1247
  }
1248
1248
 
1249
1249
  .ft-button--neutral[disabled] {
1250
- opacity: ${v.neutralDisabledComponentOpacity};
1250
+ opacity: ${C.neutralDisabledComponentOpacity};
1251
1251
  }
1252
1252
 
1253
1253
  .ft-button--neutral ft-icon {
1254
- color: ${v.neutralIconColor};
1254
+ color: ${C.neutralIconColor};
1255
1255
  }
1256
1256
 
1257
1257
  /** Large styles **/
1258
1258
 
1259
1259
  .ft-button--large {
1260
- ${(0,D.setVariable)(bt.size,v.largeIconSize)};
1261
- ${(0,D.setVariable)(Pt.size,v.largeIconSize)};
1260
+ ${(0,W.setVariable)(Oe.size,C.largeIconSize)};
1261
+ ${(0,W.setVariable)(Be.size,C.largeIconSize)};
1262
1262
 
1263
- height: ${v.largeHeight};
1264
- padding: 0 ${v.largeHorizontalPadding};
1265
- gap: ${v.largeGap};
1266
- border-radius: ${v.largeBorderRadius};
1267
- border-width: ${v.largeBorderWidth};
1263
+ height: ${C.largeHeight};
1264
+ padding: 0 ${C.largeHorizontalPadding};
1265
+ gap: ${C.largeGap};
1266
+ border-radius: ${C.largeBorderRadius};
1267
+ border-width: ${C.largeBorderWidth};
1268
1268
  }
1269
1269
 
1270
1270
  .ft-button--large:focus-visible {
1271
- outline-width: ${v.largeFocusOutlineWidth};
1272
- outline-offset: ${v.largeFocusOutlineOffset};
1271
+ outline-width: ${C.largeFocusOutlineWidth};
1272
+ outline-offset: ${C.largeFocusOutlineOffset};
1273
1273
  }
1274
1274
 
1275
1275
  .ft-button--large.ft-button--icon-only {
1276
- width: ${v.largeIconOnlyWidth};
1276
+ width: ${C.largeIconOnlyWidth};
1277
1277
  padding: unset;
1278
1278
  }
1279
1279
 
1280
1280
  /** Small styles **/
1281
1281
 
1282
1282
  .ft-button--small {
1283
- ${(0,D.setVariable)(bt.size,v.smallIconSize)};
1284
- ${(0,D.setVariable)(Pt.size,v.smallIconSize)};
1283
+ ${(0,W.setVariable)(Oe.size,C.smallIconSize)};
1284
+ ${(0,W.setVariable)(Be.size,C.smallIconSize)};
1285
1285
 
1286
- height: ${v.smallHeight};
1287
- padding: 0 ${v.smallHorizontalPadding};
1288
- gap: ${v.smallGap};
1289
- border-radius: ${v.smallBorderRadius};
1290
- border-width: ${v.smallBorderWidth};
1286
+ height: ${C.smallHeight};
1287
+ padding: 0 ${C.smallHorizontalPadding};
1288
+ gap: ${C.smallGap};
1289
+ border-radius: ${C.smallBorderRadius};
1290
+ border-width: ${C.smallBorderWidth};
1291
1291
  }
1292
1292
 
1293
1293
  .ft-button--small:focus-visible {
1294
- outline-width: ${v.smallFocusOutlineWidth};
1295
- outline-offset: ${v.smallFocusOutlineOffset};
1294
+ outline-width: ${C.smallFocusOutlineWidth};
1295
+ outline-offset: ${C.smallFocusOutlineOffset};
1296
1296
  }
1297
1297
 
1298
1298
  .ft-button--small.ft-button--icon-only {
1299
- width: ${v.smallIconOnlyWidth};
1299
+ width: ${C.smallIconOnlyWidth};
1300
1300
  padding: unset;
1301
1301
  }
1302
- `,D.noTextSelect];var zo=function(o,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(o,t,r,i);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},pe=class extends ft{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary&&!this.neutral,"ft-button--neutral":this.neutral,"ft-button--large":!this.small,"ft-button--small":this.small,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon}}get typographyVariant(){return this.small?Ve.caption1medium:Ve.body2medium}};pe.styles=[gs.safariEllipsisFix,ms];zo([(0,xo.property)({type:Boolean})],pe.prototype,"primary",void 0);zo([(0,xo.property)({type:Boolean})],pe.prototype,"secondary",void 0);zo([(0,xo.property)({type:Boolean})],pe.prototype,"tertiary",void 0);zo([(0,xo.property)({type:Boolean})],pe.prototype,"neutral",void 0);zo([(0,xo.property)({type:Boolean})],pe.prototype,"small",void 0);(0,Si.customElement)("ft-button")(ie);(0,Si.customElement)("ftds-button")(pe);var Ts=u(S());var vr=u(_()),Sr=u(K()),Cr=u(S());var ys=u(_());var bs=ys.css`
1303
- `;var xr=u(S());var As=u(S());var ws=u(_()),Jt=u(K()),ne=u(S());var xs=u(_());var vs=xs.css`
1304
- `;var Ss=u(S()),Zl="ft-app-info",jl={},O=Ss.FtReduxStore.get({name:Zl,reducers:jl,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],metadataConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1}});var Pe=u(S());var Ci=u(S());var qe=class o{static get(t){let{baseUrl:r,apiIntegrationIdentifier:i}=O.getState(),n=t??i;if(r&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,n,!0)}static await(t){return new Promise(r=>{let i=o.get(t);if(i)r(i);else{let n=O.subscribe(()=>{i=o.get(t),i&&(n(),r(i))})}})}};var fe=class{constructor(t=!0,r){var i;this.overrideApi=r;let n=this.constructor;n.commonCache=(i=n.commonCache)!==null&&i!==void 0?i:new Ci.CacheRegistry,this.cache=t?n.commonCache:new Ci.CacheRegistry}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:qe.get()}get awaitApi(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:qe.await()}clearCache(){this.cache.clearAll()}};var Cs,Yl=Symbol("clearAfterUnitTest"),ur=class extends fe{constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Cs]=()=>{this.defaultMessages={},this.cache=new Pe.CacheRegistry,this.listeners={}},this.currentUiLocale=O.getState().uiLocale,O.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=O.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let r=t.name.toLowerCase();this.cache.setFinal(r,t),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,r){var i;if(t=t.toLowerCase(),Object.keys(r).length>0){let n={...(i=this.defaultMessages[t])!==null&&i!==void 0?i:{},...r};(0,Pe.deepEqual)(this.defaultMessages[t],n)||(this.defaultMessages[t]=n,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,r,...i){var n,a,s;t=t.toLowerCase(),this.fetchContext(t);let c=(a=(n=this.cache.getNow(t))===null||n===void 0?void 0:n.messages)!==null&&a!==void 0?a:{};return new Pe.ParametrizedLabelResolver((s=this.defaultMessages[t])!==null&&s!==void 0?s:{},c).resolve(r,...i)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t)),await this.notify(t)}catch(r){console.error(r)}}subscribe(t,r){var i;return t=t.toLowerCase(),this.listeners[t]=(i=this.listeners[t])!==null&&i!==void 0?i:new Set,this.listeners[t].add(r),()=>{var n;return(n=this.listeners[t])===null||n===void 0?void 0:n.delete(r)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map(t=>this.notify(t)))}async notify(t){this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(r=>(0,Pe.delay)(0).then(()=>r()).catch(()=>null)))}};Cs=Yl;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends ur{constructor(){super(async(o,t)=>(await this.awaitApi).getFluidTopicsMessageContext(o,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends ur{constructor(){super(async(o,t)=>(await this.awaitApi).getCustomMessageContext(o,t))}});var vo=window.FluidTopicsI18nService,Os=window.FluidTopicsCustomI18nService;var $t=function(o,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(o,t,r,i);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},nt=class extends ne.FtLitElement{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.apiProvider=()=>qe.get(),this.messageContexts=[],this.cache=new ne.CacheRegistry,this.cleanSessionDebouncer=new ne.Debouncer}render(){return ws.html`
1302
+ `,W.noTextSelect];var po=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},bt=class extends ye{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary&&!this.neutral,"ft-button--neutral":this.neutral,"ft-button--large":!this.small,"ft-button--small":this.small,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon}}get typographyVariant(){return this.small?nr.caption1medium:nr.body2medium}};bt.styles=[Tl.safariEllipsisFix,Il];po([(0,Dr.property)({type:Boolean})],bt.prototype,"primary",void 0);po([(0,Dr.property)({type:Boolean})],bt.prototype,"secondary",void 0);po([(0,Dr.property)({type:Boolean})],bt.prototype,"tertiary",void 0);po([(0,Dr.property)({type:Boolean})],bt.prototype,"neutral",void 0);po([(0,Dr.property)({type:Boolean})],bt.prototype,"small",void 0);(0,sn.customElement)("ft-button")(dt);(0,sn.customElement)("ftds-button")(bt);var kc=m(E());var ni=m($()),ai=m(j()),si=m(E());var _l=m($());var kl=_l.css`
1303
+ `;var ii=m(E());var Ic=m(E());var Ul=m($()),it=m(j()),pt=m(E());var Pl=m($());var Ll=Pl.css`
1304
+ `;var Dl=m(E()),qd="ft-app-info",Yd={},N=Dl.FtReduxStore.get({name:qd,reducers:Yd,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],metadataConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1}});var Vt=m(E());var ln=m(E());var pr=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:i}=N.getState(),n=e??i;if(r&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,n,!0)}static await(e){return new Promise(r=>{let i=t.get(e);if(i)r(i);else{let n=N.subscribe(()=>{i=t.get(e),i&&(n(),r(i))})}})}};var vt=class{constructor(e=!0,r){var i;this.overrideApi=r;let n=this.constructor;n.commonCache=(i=n.commonCache)!==null&&i!==void 0?i:new ln.CacheRegistry,this.cache=e?n.commonCache:new ln.CacheRegistry}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:pr.get()}get awaitApi(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:pr.await()}clearCache(){this.cache.clearAll()}};var $l,Xd=Symbol("clearAfterUnitTest"),zo=class extends vt{constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[$l]=()=>{this.defaultMessages={},this.cache=new Vt.CacheRegistry,this.listeners={}},this.currentUiLocale=N.getState().uiLocale,N.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=N.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var i;if(e=e.toLowerCase(),Object.keys(r).length>0){let n={...(i=this.defaultMessages[e])!==null&&i!==void 0?i:{},...r};(0,Vt.deepEqual)(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,await this.notify(e))}await this.fetchContext(e)}resolveMessage(e,r,...i){var n,a,s;e=e.toLowerCase(),this.fetchContext(e);let l=(a=(n=this.cache.getNow(e))===null||n===void 0?void 0:n.messages)!==null&&a!==void 0?a:{};return new Vt.ParametrizedLabelResolver((s=this.defaultMessages[e])!==null&&s!==void 0?s:{},l).resolve(r,...i)}async fetchContext(e){if(!this.cache.has(e))try{await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),await this.notify(e)}catch(r){console.error(r)}}subscribe(e,r){var i;return e=e.toLowerCase(),this.listeners[e]=(i=this.listeners[e])!==null&&i!==void 0?i:new Set,this.listeners[e].add(r),()=>{var n;return(n=this.listeners[e])===null||n===void 0?void 0:n.delete(r)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map(e=>this.notify(e)))}async notify(e){this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(r=>(0,Vt.delay)(0).then(()=>r()).catch(()=>null)))}};$l=Xd;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends zo{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends zo{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var $r=window.FluidTopicsI18nService,Ml=window.FluidTopicsCustomI18nService;var Me=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},de=class extends pt.FtLitElement{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.apiProvider=()=>pr.get(),this.messageContexts=[],this.cache=new pt.CacheRegistry,this.cleanSessionDebouncer=new pt.Debouncer}render(){return Ul.html`
1305
1305
  <slot></slot>
1306
- `}update(t){super.update(t),t.has("baseUrl")&&(O.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&O.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&O.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&O.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&O.actions.noCustom(this.noCustom),t.has("editorMode")&&O.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&O.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&O.actions.session(this.session),t.has("availableUiLocales")&&O.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(r=>vo.addContext(r)),t.has("openExternalDocumentInNewTab")&&O.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&O.actions.navigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&O.actions.forcedOffline(this.forcedOffline),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){!this.withManualResources&&this.apiProvider()&&(this.session==null&&this.updateSession(),this.availableUiLocales==null&&this.updateUiLocales(),this.metadataConfiguration==null&&this.updateMetadataConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},t.idleTimeoutInMillis),t})}async updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",()=>this.apiProvider().getAvailableUiLocales())}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}};nt.elementDefinitions={};nt.styles=vs;$t([(0,Jt.property)()],nt.prototype,"baseUrl",void 0);$t([(0,Jt.property)()],nt.prototype,"apiIntegrationIdentifier",void 0);$t([(0,Jt.property)()],nt.prototype,"uiLocale",void 0);$t([(0,ne.jsonProperty)(null)],nt.prototype,"availableUiLocales",void 0);$t([(0,ne.jsonProperty)(null)],nt.prototype,"metadataConfiguration",void 0);$t([(0,Jt.property)({type:Boolean})],nt.prototype,"editorMode",void 0);$t([(0,Jt.property)({type:Boolean})],nt.prototype,"noCustom",void 0);$t([(0,Jt.property)({type:Boolean})],nt.prototype,"openExternalDocumentInNewTab",void 0);$t([(0,Jt.property)({converter:{fromAttribute(o){return o==="false"?!1:o==="true"||(o??!1)}}})],nt.prototype,"noCustomComponent",void 0);$t([(0,Jt.property)({type:Boolean})],nt.prototype,"withManualResources",void 0);$t([(0,Jt.property)({type:Boolean})],nt.prototype,"navigatorOnline",void 0);$t([(0,Jt.property)({type:Boolean})],nt.prototype,"forcedOffline",void 0);$t([(0,Jt.property)({type:Object})],nt.prototype,"apiProvider",void 0);$t([(0,ne.jsonProperty)([])],nt.prototype,"messageContexts",void 0);$t([(0,ne.jsonProperty)(void 0)],nt.prototype,"session",void 0);var yr=u(S());var hr=class extends fe{async listMySearches(){let t=O.getState().session;return t?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),5*60*1e3):[]}};var mr=class extends fe{async listMyBookmarks(){let t=O.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),5*60*1e3):[]}};var ql="ft-user-assets",gr=yr.FtReduxStore.get({name:ql,initialState:{savedSearches:void 0,bookmarks:void 0}}),Oi=class{constructor(){this.currentSession=O.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new mr,this.savedSearchesService=new hr,O.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:r}=O.getState();(0,yr.deepEqual)((t=this.currentSession)===null||t===void 0?void 0:t.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),gr.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),gr.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();gr.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let r=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;gr.actions.bookmarks(r)}}},Es=new Oi;var wi=class{addCommand(t,r=!1){O.commands.add(t,r)}consumeCommand(t){return O.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new wi;var Rs=u(S()),Ei=class{highlightHtml(t,r){(0,Rs.highlightHtml)(t,r)}};window.FluidTopicsHighlightHtmlService=new Ei;(0,As.customElement)("ft-app-context")(nt);var Ns=u(K()),Xl=function(o,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(o,t,r,i);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},Ri=Symbol("i18nAttributes"),Xe=Symbol("i18nProperties"),Wo=Symbol("i18nUnsubs");function De(o){var t;class r extends o{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[t]=new Map}get i18nService(){return this.useCustomMessageContexts?Os:vo}i18n(n,a,...s){var c;if(typeof n=="string")return this.i18nService.resolveMessage(n,a,...s);let p=(c=n.args)!==null&&c!==void 0?c:n.argsProvider?n.argsProvider(this):[];return this.i18nService.resolveMessage(n.context,n.key,...p)}onI18nUpdate(n){var a,s;(a=this[Ri])===null||a===void 0||a.forEach((c,p)=>{var h;let g=this.getI18nAttributeValue(p);((h=g?.context)===null||h===void 0?void 0:h.toLowerCase())===n.toLowerCase()&&this.updateI18nAttributeMessage(p,g,c)}),(s=this[Xe])===null||s===void 0||s.forEach((c,p)=>{c.context.toLowerCase()===n.toLowerCase()&&(this[p]=this.i18n(c))}),setTimeout(()=>this.requestUpdate(),0)}updateI18nAttributeMessage(n,a,s){this[n]={...a,message:this.i18n({context:a.context,key:a.key,...s})}}update(n){var a,s;super.update(n),(a=this[Ri])===null||a===void 0||a.forEach((c,p)=>{let h=this.getI18nAttributeValue(p);h?.context&&h.key&&(n.has(p)||c.argsProvider!=null)&&(n.has(p)&&this.addI18nContext(h.context),this.updateI18nAttributeMessage(p,h,c))}),(s=this[Xe])===null||s===void 0||s.forEach((c,p)=>{c.argsProvider!=null&&(this[p]=this.i18n(c))})}getI18nAttributeValue(n){return this[n]}connectedCallback(){var n,a,s,c;super.connectedCallback(),new Set([...(a=(n=this[Xe])===null||n===void 0?void 0:n.values())!==null&&a!==void 0?a:[],...[...(c=(s=this[Ri])===null||s===void 0?void 0:s.keys())!==null&&c!==void 0?c:[]].map(p=>this.getI18nAttributeValue(p))].map(p=>p?.context)).forEach(p=>p&&this.addI18nMessages(p))}addI18nMessages(n,a){n=n.toLowerCase(),this[Wo].has(n)||this[Wo].set(n,this.i18nService.subscribe(n,()=>this.onI18nUpdate(n))),this.i18nService.prepareContext(n,a??{})}addI18nContext(n,a){this.addI18nMessages(typeof n=="string"?n:n.name,a)}disconnectedCallback(){super.disconnectedCallback(),this[Wo].forEach(n=>n()),this[Wo].clear()}}return t=Wo,Xl([(0,Ns.property)({type:Boolean})],r.prototype,"useCustomMessageContexts",void 0),r}var Is=class extends De(xr.FtLitElement){},br=class extends De(xr.FtLitElementRedux){};var Ho=function(o,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(o,t,r,i);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},ae=class extends br{constructor(){super(),this.editorMode=!1,this.addStore(O)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":vr.nothing:vr.html`
1306
+ `}update(e){super.update(e),e.has("baseUrl")&&(N.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&N.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("uiLocale")&&N.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&N.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&N.actions.noCustom(this.noCustom),e.has("editorMode")&&N.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&N.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&N.actions.session(this.session),e.has("availableUiLocales")&&N.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(r=>$r.addContext(r)),e.has("openExternalDocumentInNewTab")&&N.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&N.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&N.actions.forcedOffline(this.forcedOffline),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){!this.withManualResources&&this.apiProvider()&&(this.session==null&&this.updateSession(),this.availableUiLocales==null&&this.updateUiLocales(),this.metadataConfiguration==null&&this.updateMetadataConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let e=await this.apiProvider().getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},e.idleTimeoutInMillis),e})}async updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",()=>this.apiProvider().getAvailableUiLocales())}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}};de.elementDefinitions={};de.styles=Ll;Me([(0,it.property)()],de.prototype,"baseUrl",void 0);Me([(0,it.property)()],de.prototype,"apiIntegrationIdentifier",void 0);Me([(0,it.property)()],de.prototype,"uiLocale",void 0);Me([(0,pt.jsonProperty)(null)],de.prototype,"availableUiLocales",void 0);Me([(0,pt.jsonProperty)(null)],de.prototype,"metadataConfiguration",void 0);Me([(0,it.property)({type:Boolean})],de.prototype,"editorMode",void 0);Me([(0,it.property)({type:Boolean})],de.prototype,"noCustom",void 0);Me([(0,it.property)({type:Boolean})],de.prototype,"openExternalDocumentInNewTab",void 0);Me([(0,it.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],de.prototype,"noCustomComponent",void 0);Me([(0,it.property)({type:Boolean})],de.prototype,"withManualResources",void 0);Me([(0,it.property)({type:Boolean})],de.prototype,"navigatorOnline",void 0);Me([(0,it.property)({type:Boolean})],de.prototype,"forcedOffline",void 0);Me([(0,it.property)({type:Object})],de.prototype,"apiProvider",void 0);Me([(0,pt.jsonProperty)([])],de.prototype,"messageContexts",void 0);Me([(0,pt.jsonProperty)(void 0)],de.prototype,"session",void 0);var Mp=m(j());function Jd(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var r,i,n;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(i=r;i--!==0;)if(!Mr(t[i],e[i]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;for(i of t.entries())if(!Mr(i[1],e.get(i[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if(n=Object.keys(t),r=n.length,r!==Object.keys(e).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,n[i]))return!1;for(i=r;i--!==0;){var a=n[i];if(!Mr(t[a],e[a]))return!1}return!0}return t!==t&&e!==e}function Mr(t,e){try{return Jd(t,e)}catch{return!1}}var Qd=m(j(),1);var Wo=class{constructor(){this.queue=[]}add(e,r=!1){r&&(this.queue=this.queue.filter(i=>i.type!==e.type)),this.queue.push(e)}consume(e){let r=this.queue.find(i=>i.type===e);return r&&(this.queue=this.queue.filter(i=>i!==r)),r}};var dn=m(j(),1);var Bl=m(j(),1);function Fl(t,e){let r=()=>JSON.parse(JSON.stringify(t));return(0,Bl.property)({type:Object,converter:{fromAttribute:i=>{if(i==null)return r();try{return JSON.parse(i)}catch{return r()}},toAttribute:i=>JSON.stringify(i)},hasChanged:(i,n)=>!Mr(i,n),...e??{}})}var Ho=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,i)=>{this.resolvePromise=r,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let i=[...this.callbacks];this.callbacks=[];let n=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,a=(r=this.resolvePromise)!==null&&r!==void 0?r:()=>null;this.clearPromise();for(let s of i)try{await s()}catch(l){n(l);return}a(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Wl=m($(),1);var Vo=window,ep=Vo.ShadowRoot&&(Vo.ShadyCSS===void 0||Vo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,gv=Symbol();var zl=(t,e)=>{ep?t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):e.forEach(r=>{let i=document.createElement("style"),n=Vo.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=r.cssText,t.appendChild(i)})};var jo=class extends Wl.LitElement{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([n,a])=>e.registry.define(n,a)));let r={...e.shadowRootOptions,customElements:e.registry},i=this.renderOptions.creationScope=this.attachShadow(r);return zl(i,e.elementStyles),i}};var cn=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},jl,Hl=Symbol("constructorPrototype"),Vl=Symbol("constructorName"),Gl=Symbol("exportpartsDebouncer"),fr=class extends jo{constructor(){super(),this.adoptedCustomStyleSheet=new CSSStyleSheet,this.useAdoptedStyleSheets=!0,this[jl]=new Ho(5),this[Vl]=this.constructor.name,this[Hl]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Vl]&&Object.setPrototypeOf(this,this[Hl])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet])}catch(e){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",e)}}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate()})}contentAvailableCallback(e){}applyCustomStylesheet(e){var r,i,n;if(this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((r=this.customStylesheet)!==null&&r!==void 0?r:"")}catch(a){console.error(a,this.customStylesheet)}}else if(((n=(i=this.shadowRoot)===null||i===void 0?void 0:i.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(a=>a.remove()),this.customStylesheet){let a=document.createElement("style");a.classList.add("ft-lit-element--custom-stylesheet"),a.innerHTML=this.customStylesheet,this.shadowRoot.append(a)}}scheduleExportpartsUpdate(){var e,r,i;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(i=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&i!==void 0&&i)&&this[Gl].run(()=>{var n,a;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((a=this.exportpartsPrefixes)===null||a===void 0?void 0:a.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(e){var r,i,n,a,s,l;let d=y=>y!=null&&y.trim().length>0,p=e.filter(d).map(y=>y.trim());if(p.length===0){this.removeAttribute("exportparts");return}let u=new Set;for(let y of(i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let v=(a=(n=y.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&a!==void 0?a:[],b=(l=(s=y.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(S=>S.split(":")[1]))!==null&&l!==void 0?l:[];new Array(...v,...b).filter(d).map(S=>S.trim()).forEach(S=>u.add(S))}if(u.size===0){this.removeAttribute("exportparts");return}let g=[...u.values()].flatMap(y=>p.map(v=>`${y}:${v}--${y}`));this.setAttribute("exportparts",[...this.part,...g].join(", "))}};jl=Gl;cn([(0,dn.property)()],fr.prototype,"exportpartsPrefix",void 0);cn([Fl([])],fr.prototype,"exportpartsPrefixes",void 0);cn([(0,dn.property)()],fr.prototype,"customStylesheet",void 0);function fo(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Kl,Zl,ql,Go=Symbol("internalReduxEventsUnsubscribers"),jt=Symbol("internalStoresUnsubscribers"),ur=Symbol("internalStores"),uo=class extends fr{constructor(){super(...arguments),this[Kl]=new Map,this[Zl]=new Map,this[ql]=[]}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(r=>e.has(r))&&this.updateFromStores()}getUnnamedStore(){if(this[ur].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[ur].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[ur].get(e)}addStore(e,r){var i;r=(i=r??(fo(e)?e.name:void 0))!==null&&i!==void 0?i:"default-store",this.unsubscribeFromStore(r),this.setupStore(r,e)}removeStore(e){let r=typeof e=="string"?e:e.name;this.unsubscribeFromStore(r),this[ur].delete(r)}setupStore(e,r){this[ur].set(e,r),this.subscribeToStore(e,r),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[ur].forEach((e,r)=>this.subscribeToStore(r,e)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((e,r)=>{let i=this.constructor.getPropertyOptions(r);if(!i?.attribute||!this.hasAttribute(typeof i?.attribute=="string"?i.attribute:r)){let n=this.getStore(e.store);n&&(e.store?this[jt].has(e.store):this[jt].size>0)&&(this[r]=e.selector(n.getState(),this))}})}subscribeToStore(e,r){var i;this[jt].set(e,r.subscribe(()=>this.updateFromStores())),fo(r)&&r.eventBus&&((i=this.reduxConstructor.reduxEventListeners)===null||i===void 0||i.forEach((n,a)=>{if(typeof this[a]=="function"&&(!n.store||r.name===n.store)){let s=l=>this[a](l);r.eventBus.addEventListener(n.eventName,s),this[Go].push(()=>r.eventBus.removeEventListener(n.eventName,s))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[jt].forEach((e,r)=>this.unsubscribeFromStore(r)),this[Go].forEach(e=>e()),this[Go]=[]}unsubscribeFromStore(e){this[jt].has(e)&&this[jt].get(e)(),this[jt].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Kl=jt,Zl=ur,ql=Go;uo.reduxProperties=new Map;uo.reduxReactiveProperties=new Set;uo.reduxEventListeners=new Map;function nt(t){for(var e=arguments.length,r=Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];if(0)var n,a;throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Tt(t){return!!t&&!!t[re]}function ft(t){var e;return!!t&&(function(r){if(!r||typeof r!="object")return!1;var i=Object.getPrototypeOf(r);if(i===null)return!0;var n=Object.hasOwnProperty.call(i,"constructor")&&i.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===lp}(t)||Array.isArray(t)||!!t[rc]||!!(!((e=t.constructor)===null||e===void 0)&&e[rc])||vn(t)||xn(t))}function hr(t,e,r){r===void 0&&(r=!1),Fr(t)===0?(r?Object.keys:Br)(t).forEach(function(i){r&&typeof i=="symbol"||e(i,t[i],t)}):t.forEach(function(i,n){return e(n,i,t)})}function Fr(t){var e=t[re];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:vn(t)?2:xn(t)?3:0}function Ur(t,e){return Fr(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function tp(t,e){return Fr(t)===2?t.get(e):t[e]}function oc(t,e,r){var i=Fr(t);i===2?t.set(e,r):i===3?t.add(r):t[e]=r}function ic(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function vn(t){return ap&&t instanceof Map}function xn(t){return sp&&t instanceof Set}function Gt(t){return t.o||t.t}function Sn(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=sc(t);delete e[re];for(var r=Br(e),i=0;i<r.length;i++){var n=r[i],a=e[n];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[n]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[n]})}return Object.create(Object.getPrototypeOf(t),e)}function On(t,e){return e===void 0&&(e=!1),wn(t)||Tt(t)||!ft(t)||(Fr(t)>1&&(t.set=t.add=t.clear=t.delete=rp),Object.freeze(t),e&&hr(t,function(r,i){return On(i,!0)},!0)),t}function rp(){nt(2)}function wn(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function xt(t){var e=bn[t];return e||nt(18,t),e}function op(t,e){bn[t]||(bn[t]=e)}function mn(){return mo}function pn(t,e){e&&(xt("Patches"),t.u=[],t.s=[],t.v=e)}function Ko(t){gn(t),t.p.forEach(ip),t.p=null}function gn(t){t===mo&&(mo=t.l)}function Yl(t){return mo={p:[],l:mo,h:t,m:!0,_:0}}function ip(t){var e=t[re];e.i===0||e.i===1?e.j():e.g=!0}function fn(t,e){e._=e.p.length;var r=e.p[0],i=t!==void 0&&t!==r;return e.h.O||xt("ES5").S(e,t,i),i?(r[re].P&&(Ko(e),nt(4)),ft(t)&&(t=Zo(e,t),e.l||qo(e,t)),e.u&&xt("Patches").M(r[re].t,t,e.u,e.s)):t=Zo(e,r,[]),Ko(e),e.u&&e.v(e.u,e.s),t!==ac?t:void 0}function Zo(t,e,r){if(wn(e))return e;var i=e[re];if(!i)return hr(e,function(l,d){return Xl(t,i,e,l,d,r)},!0),e;if(i.A!==t)return e;if(!i.P)return qo(t,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var n=i.i===4||i.i===5?i.o=Sn(i.k):i.o,a=n,s=!1;i.i===3&&(a=new Set(n),n.clear(),s=!0),hr(a,function(l,d){return Xl(t,i,n,l,d,r,s)}),qo(t,n,!1),r&&t.u&&xt("Patches").N(i,r,t.u,t.s)}return i.o}function Xl(t,e,r,i,n,a,s){if(Tt(n)){var l=Zo(t,n,a&&e&&e.i!==3&&!Ur(e.R,i)?a.concat(i):void 0);if(oc(r,i,l),!Tt(l))return;t.m=!1}else s&&r.add(n);if(ft(n)&&!wn(n)){if(!t.h.D&&t._<1)return;Zo(t,n),e&&e.A.l||qo(t,n)}}function qo(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&On(e,r)}function un(t,e){var r=t[re];return(r?Gt(r):t)[e]}function Jl(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var i=Object.getOwnPropertyDescriptor(r,e);if(i)return i;r=Object.getPrototypeOf(r)}}function Kt(t){t.P||(t.P=!0,t.l&&Kt(t.l))}function hn(t){t.o||(t.o=Sn(t.t))}function yn(t,e,r){var i=vn(e)?xt("MapSet").F(e,r):xn(e)?xt("MapSet").T(e,r):t.O?function(n,a){var s=Array.isArray(n),l={i:s?1:0,A:a?a.A:mn(),P:!1,I:!1,R:{},l:a,t:n,k:null,o:null,j:null,C:!1},d=l,p=go;s&&(d=[l],p=ho);var u=Proxy.revocable(d,p),g=u.revoke,y=u.proxy;return l.k=y,l.j=g,y}(e,r):xt("ES5").J(e,r);return(r?r.A:mn()).p.push(i),i}function np(t){return Tt(t)||nt(22,t),function e(r){if(!ft(r))return r;var i,n=r[re],a=Fr(r);if(n){if(!n.P&&(n.i<4||!xt("ES5").K(n)))return n.t;n.I=!0,i=Ql(r,a),n.I=!1}else i=Ql(r,a);return hr(i,function(s,l){n&&tp(n.t,s)===l||oc(i,s,e(l))}),a===3?new Set(i):i}(t)}function Ql(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Sn(t)}function nc(){function t(s,l){var d=a[s];return d?d.enumerable=l:a[s]=d={configurable:!0,enumerable:l,get:function(){var p=this[re];return go.get(p,s)},set:function(p){var u=this[re];go.set(u,s,p)}},d}function e(s){for(var l=s.length-1;l>=0;l--){var d=s[l][re];if(!d.P)switch(d.i){case 5:i(d)&&Kt(d);break;case 4:r(d)&&Kt(d)}}}function r(s){for(var l=s.t,d=s.k,p=Br(d),u=p.length-1;u>=0;u--){var g=p[u];if(g!==re){var y=l[g];if(y===void 0&&!Ur(l,g))return!0;var v=d[g],b=v&&v[re];if(b?b.t!==y:!ic(v,y))return!0}}var S=!!l[re];return p.length!==Br(l).length+(S?0:1)}function i(s){var l=s.k;if(l.length!==s.t.length)return!0;var d=Object.getOwnPropertyDescriptor(l,l.length-1);if(d&&!d.get)return!0;for(var p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function n(s){s.g&&nt(3,JSON.stringify(Gt(s)))}var a={};op("ES5",{J:function(s,l){var d=Array.isArray(s),p=function(g,y){if(g){for(var v=Array(y.length),b=0;b<y.length;b++)Object.defineProperty(v,""+b,t(b,!0));return v}var S=sc(y);delete S[re];for(var I=Br(S),A=0;A<I.length;A++){var R=I[A];S[R]=t(R,g||!!S[R].enumerable)}return Object.create(Object.getPrototypeOf(y),S)}(d,s),u={i:d?5:4,A:l?l.A:mn(),P:!1,I:!1,R:{},l,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,re,{value:u,writable:!0}),p},S:function(s,l,d){d?Tt(l)&&l[re].A===s&&e(s.p):(s.u&&function p(u){if(u&&typeof u=="object"){var g=u[re];if(g){var y=g.t,v=g.k,b=g.R,S=g.i;if(S===4)hr(v,function(k){k!==re&&(y[k]!==void 0||Ur(y,k)?b[k]||p(v[k]):(b[k]=!0,Kt(g)))}),hr(y,function(k){v[k]!==void 0||Ur(v,k)||(b[k]=!1,Kt(g))});else if(S===5){if(i(g)&&(Kt(g),b.length=!0),v.length<y.length)for(var I=v.length;I<y.length;I++)b[I]=!1;else for(var A=y.length;A<v.length;A++)b[A]=!0;for(var R=Math.min(v.length,y.length),D=0;D<R;D++)v.hasOwnProperty(D)||(b[D]=!0),b[D]===void 0&&p(v[D])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?r(s):i(s)}})}var ec,mo,Cn=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",ap=typeof Map<"u",sp=typeof Set<"u",tc=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",ac=Cn?Symbol.for("immer-nothing"):((ec={})["immer-nothing"]=!0,ec),rc=Cn?Symbol.for("immer-draftable"):"__$immer_draftable",re=Cn?Symbol.for("immer-state"):"__$immer_state";var lp=""+Object.prototype.constructor,Br=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,sc=Object.getOwnPropertyDescriptors||function(t){var e={};return Br(t).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)}),e},bn={},go={get:function(t,e){if(e===re)return t;var r=Gt(t);if(!Ur(r,e))return function(n,a,s){var l,d=Jl(a,s);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(n.k):void 0}(t,r,e);var i=r[e];return t.I||!ft(i)?i:i===un(t.t,e)?(hn(t),t.o[e]=yn(t.A.h,i,t)):i},has:function(t,e){return e in Gt(t)},ownKeys:function(t){return Reflect.ownKeys(Gt(t))},set:function(t,e,r){var i=Jl(Gt(t),e);if(i?.set)return i.set.call(t.k,r),!0;if(!t.P){var n=un(Gt(t),e),a=n?.[re];if(a&&a.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(ic(r,n)&&(r!==void 0||Ur(t.t,e)))return!0;hn(t),Kt(t)}return t.o[e]===r&&(r!==void 0||e in t.o)||Number.isNaN(r)&&Number.isNaN(t.o[e])||(t.o[e]=r,t.R[e]=!0),!0},deleteProperty:function(t,e){return un(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,hn(t),Kt(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=Gt(t),i=Reflect.getOwnPropertyDescriptor(r,e);return i&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:i.enumerable,value:r[e]}},defineProperty:function(){nt(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){nt(12)}},ho={};hr(go,function(t,e){ho[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),ho.deleteProperty=function(t,e){return ho.set.call(this,t,e,void 0)},ho.set=function(t,e,r){return go.set.call(this,t[0],e,r,t[0])};var cp=function(){function t(r){var i=this;this.O=tc,this.D=!0,this.produce=function(n,a,s){if(typeof n=="function"&&typeof a!="function"){var l=a;a=n;var d=i;return function(S){var I=this;S===void 0&&(S=l);for(var A=arguments.length,R=Array(A>1?A-1:0),D=1;D<A;D++)R[D-1]=arguments[D];return d.produce(S,function(k){var K;return(K=a).call.apply(K,[I,k].concat(R))})}}var p;if(typeof a!="function"&&nt(6),s!==void 0&&typeof s!="function"&&nt(7),ft(n)){var u=Yl(i),g=yn(i,n,void 0),y=!0;try{p=a(g),y=!1}finally{y?Ko(u):gn(u)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(S){return pn(u,s),fn(S,u)},function(S){throw Ko(u),S}):(pn(u,s),fn(p,u))}if(!n||typeof n!="object"){if((p=a(n))===void 0&&(p=n),p===ac&&(p=void 0),i.D&&On(p,!0),s){var v=[],b=[];xt("Patches").M(n,p,v,b),s(v,b)}return p}nt(21,n)},this.produceWithPatches=function(n,a){if(typeof n=="function")return function(p){for(var u=arguments.length,g=Array(u>1?u-1:0),y=1;y<u;y++)g[y-1]=arguments[y];return i.produceWithPatches(p,function(v){return n.apply(void 0,[v].concat(g))})};var s,l,d=i.produce(n,a,function(p,u){s=p,l=u});return typeof Promise<"u"&&d instanceof Promise?d.then(function(p){return[p,s,l]}):[d,s,l]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=t.prototype;return e.createDraft=function(r){ft(r)||nt(8),Tt(r)&&(r=np(r));var i=Yl(this),n=yn(this,r,void 0);return n[re].C=!0,gn(i),n},e.finishDraft=function(r,i){var n=r&&r[re],a=n.A;return pn(a,i),fn(void 0,a)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!tc&&nt(20),this.O=r},e.applyPatches=function(r,i){var n;for(n=i.length-1;n>=0;n--){var a=i[n];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}n>-1&&(i=i.slice(n+1));var s=xt("Patches").$;return Tt(r)?s(r,i):this.produce(r,function(l){return s(l,i)})},t}(),qe=new cp,dp=qe.produce,Nv=qe.produceWithPatches.bind(qe),Iv=qe.setAutoFreeze.bind(qe),Tv=qe.setUseProxies.bind(qe),_v=qe.applyPatches.bind(qe),kv=qe.createDraft.bind(qe),Pv=qe.finishDraft.bind(qe),Yo=dp;function Zt(t){"@babel/helpers - typeof";return Zt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zt(t)}function En(t,e){if(Zt(t)!=="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,e||"default");if(Zt(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function An(t){var e=En(t,"string");return Zt(e)==="symbol"?e:String(e)}function Rn(t,e,r){return e=An(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function lc(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,i)}return r}function Xo(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?lc(Object(r),!0).forEach(function(i){Rn(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):lc(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function Te(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var cc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Nn=function(){return Math.random().toString(36).substring(7).split("").join(".")},Jo={INIT:"@@redux/INIT"+Nn(),REPLACE:"@@redux/REPLACE"+Nn(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Nn()}};function pp(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function In(t,e,r){var i;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Te(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Te(1));return r(In)(t,e)}if(typeof t!="function")throw new Error(Te(2));var n=t,a=e,s=[],l=s,d=!1;function p(){l===s&&(l=s.slice())}function u(){if(d)throw new Error(Te(3));return a}function g(S){if(typeof S!="function")throw new Error(Te(4));if(d)throw new Error(Te(5));var I=!0;return p(),l.push(S),function(){if(I){if(d)throw new Error(Te(6));I=!1,p();var R=l.indexOf(S);l.splice(R,1),s=null}}}function y(S){if(!pp(S))throw new Error(Te(7));if(typeof S.type>"u")throw new Error(Te(8));if(d)throw new Error(Te(9));try{d=!0,a=n(a,S)}finally{d=!1}for(var I=s=l,A=0;A<I.length;A++){var R=I[A];R()}return S}function v(S){if(typeof S!="function")throw new Error(Te(10));n=S,y({type:Jo.REPLACE})}function b(){var S,I=g;return S={subscribe:function(R){if(typeof R!="object"||R===null)throw new Error(Te(11));function D(){R.next&&R.next(u())}D();var k=I(D);return{unsubscribe:k}}},S[cc]=function(){return this},S}return y({type:Jo.INIT}),i={dispatch:y,subscribe:g,getState:u,replaceReducer:v},i[cc]=b,i}function fp(t){Object.keys(t).forEach(function(e){var r=t[e],i=r(void 0,{type:Jo.INIT});if(typeof i>"u")throw new Error(Te(12));if(typeof r(void 0,{type:Jo.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Te(13))})}function dc(t){for(var e=Object.keys(t),r={},i=0;i<e.length;i++){var n=e[i];typeof t[n]=="function"&&(r[n]=t[n])}var a=Object.keys(r),s,l;try{fp(r)}catch(d){l=d}return function(p,u){if(p===void 0&&(p={}),l)throw l;if(0)var g;for(var y=!1,v={},b=0;b<a.length;b++){var S=a[b],I=r[S],A=p[S],R=I(A,u);if(typeof R>"u"){var D=u&&u.type;throw new Error(Te(14))}v[S]=R,y=y||R!==A}return y=y||a.length!==Object.keys(p).length,y?v:p}}function zr(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length===0?function(i){return i}:e.length===1?e[0]:e.reduce(function(i,n){return function(){return i(n.apply(void 0,arguments))}})}function pc(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(i){return function(){var n=i.apply(void 0,arguments),a=function(){throw new Error(Te(15))},s={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=e.map(function(d){return d(s)});return a=zr.apply(void 0,l)(n.dispatch),Xo(Xo({},n),{},{dispatch:a})}}}function fc(t){var e=function(i){var n=i.dispatch,a=i.getState;return function(s){return function(l){return typeof l=="function"?l(n,a,t):s(l)}}};return e}var uc=fc();uc.withExtraArgument=fc;var Tn=uc;var bc=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(i[a]=n[a])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}(),up=function(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,n,a,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(p){return function(u){return d([p,u])}}function d(p){if(i)throw new TypeError("Generator is already executing.");for(;r;)try{if(i=1,n&&(a=p[0]&2?n.return:p[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,p[1])).done)return a;switch(n=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return r.label++,{value:p[1],done:!1};case 5:r.label++,n=p[1],p=[0];continue;case 7:p=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){r=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){r.label=p[1];break}if(p[0]===6&&r.label<a[1]){r.label=a[1],a=p;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(p);break}a[2]&&r.ops.pop(),r.trys.pop();continue}p=e.call(t,r)}catch(u){p=[6,u],n=0}finally{i=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Wr=function(t,e){for(var r=0,i=e.length,n=t.length;r<i;r++,n++)t[n]=e[r];return t},hp=Object.defineProperty,mp=Object.defineProperties,gp=Object.getOwnPropertyDescriptors,hc=Object.getOwnPropertySymbols,yp=Object.prototype.hasOwnProperty,bp=Object.prototype.propertyIsEnumerable,mc=function(t,e,r){return e in t?hp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},qt=function(t,e){for(var r in e||(e={}))yp.call(e,r)&&mc(t,r,e[r]);if(hc)for(var i=0,n=hc(e);i<n.length;i++){var r=n[i];bp.call(e,r)&&mc(t,r,e[r])}return t},_n=function(t,e){return mp(t,gp(e))},vp=function(t,e,r){return new Promise(function(i,n){var a=function(d){try{l(r.next(d))}catch(p){n(p)}},s=function(d){try{l(r.throw(d))}catch(p){n(p)}},l=function(d){return d.done?i(d.value):Promise.resolve(d.value).then(a,s)};l((r=r.apply(t,e)).next())})};var xp=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?zr:zr.apply(null,arguments)},Xv=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Sp(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return e===r}var Op=function(t){bc(e,t);function e(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var n=t.apply(this,r)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,Wr([void 0],r[0].concat(this)))):new(e.bind.apply(e,Wr([void 0],r.concat(this))))},e}(Array),wp=function(t){bc(e,t);function e(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var n=t.apply(this,r)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,Wr([void 0],r[0].concat(this)))):new(e.bind.apply(e,Wr([void 0],r.concat(this))))},e}(Array);function Ln(t){return ft(t)?Yo(t,function(){}):t}function Cp(t){return typeof t=="boolean"}function Ep(){return function(e){return Ap(e)}}function Ap(t){t===void 0&&(t={});var e=t.thunk,r=e===void 0?!0:e,i=t.immutableCheck,n=i===void 0?!0:i,a=t.serializableCheck,s=a===void 0?!0:a,l=new Op;if(r&&(Cp(r)?l.push(Tn):l.push(Tn.withExtraArgument(r.extraArgument))),0){if(n)var d;if(s)var p}return l}var kn=!0;function vc(t){var e=Ep(),r=t||{},i=r.reducer,n=i===void 0?void 0:i,a=r.middleware,s=a===void 0?e():a,l=r.devTools,d=l===void 0?!0:l,p=r.preloadedState,u=p===void 0?void 0:p,g=r.enhancers,y=g===void 0?void 0:g,v;if(typeof n=="function")v=n;else if(Sp(n))v=dc(n);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var b=s;if(typeof b=="function"&&(b=b(e),!kn&&!Array.isArray(b)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!kn&&b.some(function(k){return typeof k!="function"}))throw new Error("each middleware provided to configureStore must be a function");var S=pc.apply(void 0,b),I=zr;d&&(I=xp(qt({trace:!kn},typeof d=="object"&&d)));var A=new wp(S),R=A;Array.isArray(y)?R=Wr([S],y):typeof y=="function"&&(R=y(A));var D=I.apply(void 0,R);return In(v,u,D)}function Yt(t,e){function r(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(e){var a=e.apply(void 0,i);if(!a)throw new Error("prepareAction did not return an object");return qt(qt({type:t,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:t,payload:i[0]}}return r.toString=function(){return""+t},r.type=t,r.match=function(i){return i.type===t},r}function xc(t){var e={},r=[],i,n={addCase:function(a,s){var l=typeof a=="string"?a:a.type;if(l in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[l]=s,n},addMatcher:function(a,s){return r.push({matcher:a,reducer:s}),n},addDefaultCase:function(a){return i=a,n}};return t(n),[e,r,i]}function Rp(t){return typeof t=="function"}function Np(t,e,r,i){r===void 0&&(r=[]);var n=typeof e=="function"?xc(e):[e,r,i],a=n[0],s=n[1],l=n[2],d;if(Rp(t))d=function(){return Ln(t())};else{var p=Ln(t);d=function(){return p}}function u(g,y){g===void 0&&(g=d());var v=Wr([a[y.type]],s.filter(function(b){var S=b.matcher;return S(y)}).map(function(b){var S=b.reducer;return S}));return v.filter(function(b){return!!b}).length===0&&(v=[l]),v.reduce(function(b,S){if(S)if(Tt(b)){var I=b,A=S(I,y);return A===void 0?b:A}else{if(ft(b))return Yo(b,function(R){return S(R,y)});var A=S(b,y);if(A===void 0){if(b===null)return b;throw Error("A case reducer on a non-draftable value must not return undefined")}return A}return b},g)}return u.getInitialState=d,u}function Ip(t,e){return t+"/"+e}function Sc(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof t.initialState=="function"?t.initialState:Ln(t.initialState),i=t.reducers||{},n=Object.keys(i),a={},s={},l={};n.forEach(function(u){var g=i[u],y=Ip(e,u),v,b;"reducer"in g?(v=g.reducer,b=g.prepare):v=g,a[u]=v,s[y]=v,l[u]=b?Yt(y,b):Yt(y)});function d(){var u=typeof t.extraReducers=="function"?xc(t.extraReducers):[t.extraReducers],g=u[0],y=g===void 0?{}:g,v=u[1],b=v===void 0?[]:v,S=u[2],I=S===void 0?void 0:S,A=qt(qt({},y),s);return Np(r,function(R){for(var D in A)R.addCase(D,A[D]);for(var k=0,K=b;k<K.length;k++){var Ue=K[k];R.addMatcher(Ue.matcher,Ue.reducer)}I&&R.addDefaultCase(I)})}var p;return{name:e,reducer:function(u,g){return p||(p=d()),p(u,g)},actions:l,caseReducers:a,getInitialState:function(){return p||(p=d()),p.getInitialState()}}}var Tp="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",_p=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=Tp[Math.random()*64|0];return e},kp=["name","message","stack","code"],Pn=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),gc=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),Pp=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,i=kp;r<i.length;r++){var n=i[r];typeof t[n]=="string"&&(e[n]=t[n])}return e}return{message:String(t)}},tx=function(){function t(e,r,i){var n=Yt(e+"/fulfilled",function(u,g,y,v){return{payload:u,meta:_n(qt({},v||{}),{arg:y,requestId:g,requestStatus:"fulfilled"})}}),a=Yt(e+"/pending",function(u,g,y){return{payload:void 0,meta:_n(qt({},y||{}),{arg:g,requestId:u,requestStatus:"pending"})}}),s=Yt(e+"/rejected",function(u,g,y,v,b){return{payload:v,error:(i&&i.serializeError||Pp)(u||"Rejected"),meta:_n(qt({},b||{}),{arg:y,requestId:g,rejectedWithValue:!!v,requestStatus:"rejected",aborted:u?.name==="AbortError",condition:u?.name==="ConditionError"})}}),l=!1,d=typeof AbortController<"u"?AbortController:function(){function u(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return u.prototype.abort=function(){},u}();function p(u){return function(g,y,v){var b=i?.idGenerator?i.idGenerator(u):_p(),S=new d,I,A=!1;function R(k){I=k,S.abort()}var D=function(){return vp(this,null,function(){var k,K,Ue,be,Gr,Je,h;return up(this,function(x){switch(x.label){case 0:return x.trys.push([0,4,,5]),be=(k=i?.condition)==null?void 0:k.call(i,u,{getState:y,extra:v}),Dp(be)?[4,be]:[3,2];case 1:be=x.sent(),x.label=2;case 2:if(be===!1||S.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return A=!0,Gr=new Promise(function(T,ee){return S.signal.addEventListener("abort",function(){return ee({name:"AbortError",message:I||"Aborted"})})}),g(a(b,u,(K=i?.getPendingMeta)==null?void 0:K.call(i,{requestId:b,arg:u},{getState:y,extra:v}))),[4,Promise.race([Gr,Promise.resolve(r(u,{dispatch:g,getState:y,extra:v,requestId:b,signal:S.signal,abort:R,rejectWithValue:function(T,ee){return new Pn(T,ee)},fulfillWithValue:function(T,ee){return new gc(T,ee)}})).then(function(T){if(T instanceof Pn)throw T;return T instanceof gc?n(T.payload,b,u,T.meta):n(T,b,u)})])];case 3:return Ue=x.sent(),[3,5];case 4:return Je=x.sent(),Ue=Je instanceof Pn?s(null,b,u,Je.payload,Je.meta):s(Je,b,u),[3,5];case 5:return h=i&&!i.dispatchConditionRejection&&s.match(Ue)&&Ue.meta.condition,h||g(Ue),[2,Ue]}})})}();return Object.assign(D,{abort:R,requestId:b,arg:u,unwrap:function(){return D.then(Lp)}})}}return Object.assign(p,{pending:a,rejected:s,fulfilled:n,typePrefix:e})}return t.withTypes=function(){return t},t}();function Lp(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Dp(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Oc="listener",wc="completed",Cc="cancelled",rx="task-"+Cc,ox="task-"+wc,ix=Oc+"-"+Cc,nx=Oc+"-"+wc;var Dn="listenerMiddleware";var ax=Yt(Dn+"/add"),sx=Yt(Dn+"/removeAll"),lx=Yt(Dn+"/remove");var yc,cx=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(yc||(yc=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},$p=function(t){return function(e){setTimeout(e,t)}},dx=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:$p(10);nc();window.ftReduxStores||(window.ftReduxStores={});var Ec=class t{static get(e){var r;let i=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,a=window.ftReduxStores[i];if(fo(a))return a;if(n==null)return;let s=Sc({...n,reducers:(r=n.reducers)!==null&&r!==void 0?r:{}}),l=vc({reducer:(d,p)=>p.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...d,...p.overwrites}:s.reducer(d,p)});return window.ftReduxStores[n.name]=new t(s,l)}constructor(e,r){this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new Wo,this.actions=new Proxy(this.reduxSlice.actions,{get:(i,n,a)=>{let s=n,l=i[s];return l?(...d)=>{let p=l(...d);return this.reduxStore.dispatch(p),p}:d=>{this.setState({[s]:d})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var ri=m(E());var Qo=class extends vt{async listMySearches(){let e=N.getState().session;return e?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var ei=class extends vt{async listMyBookmarks(){let e=N.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var Up="ft-user-assets",ti=ri.FtReduxStore.get({name:Up,initialState:{savedSearches:void 0,bookmarks:void 0}}),$n=class{constructor(){this.currentSession=N.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new ei,this.savedSearchesService=new Qo,N.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=N.getState();(0,ri.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),ti.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),ti.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();ti.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let r=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;ti.actions.bookmarks(r)}}},Ac=new $n;var Mn=class{addCommand(e,r=!1){N.commands.add(e,r)}consumeCommand(e){return N.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Mn;var Rc=m(E()),Un=class{highlightHtml(e,r){(0,Rc.highlightHtml)(e,r)}};window.FluidTopicsHighlightHtmlService=new Un;var Nc=m(E());var Bn=class{isDate(e){var r,i,n,a;return(a=(n=((i=(r=N.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&i!==void 0?i:[]).find(l=>l.key===e))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1}format(e,r){var i,n,a;return Nc.DateFormatter.format(e,(i=r?.locale)!==null&&i!==void 0?i:N.getState().uiLocale,(n=r?.longFormat)!==null&&n!==void 0?n:!1,(a=r?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new Bn;(0,Ic.customElement)("ft-app-context")(de);var _c=m(j()),Bp=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Fn=Symbol("i18nAttributes"),mr=Symbol("i18nProperties"),yo=Symbol("i18nUnsubs");function Xt(t){var e;class r extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?Ml:$r}i18n(n,a,...s){var l;if(typeof n=="string")return this.i18nService.resolveMessage(n,a,...s);let d=(l=n.args)!==null&&l!==void 0?l:n.argsProvider?n.argsProvider(this):[];return this.i18nService.resolveMessage(n.context,n.key,...d)}onI18nUpdate(n){var a,s;(a=this[Fn])===null||a===void 0||a.forEach((l,d)=>{var p;let u=this.getI18nAttributeValue(d);((p=u?.context)===null||p===void 0?void 0:p.toLowerCase())===n.toLowerCase()&&this.updateI18nAttributeMessage(d,u,l)}),(s=this[mr])===null||s===void 0||s.forEach((l,d)=>{l.context.toLowerCase()===n.toLowerCase()&&(this[d]=this.i18n(l))}),setTimeout(()=>this.requestUpdate(),0)}updateI18nAttributeMessage(n,a,s){this[n]={...a,message:this.i18n({context:a.context,key:a.key,...s})}}update(n){var a,s;super.update(n),(a=this[Fn])===null||a===void 0||a.forEach((l,d)=>{let p=this.getI18nAttributeValue(d);p?.context&&p.key&&(n.has(d)||l.argsProvider!=null)&&(n.has(d)&&this.addI18nContext(p.context),this.updateI18nAttributeMessage(d,p,l))}),(s=this[mr])===null||s===void 0||s.forEach((l,d)=>{l.argsProvider!=null&&(this[d]=this.i18n(l))})}getI18nAttributeValue(n){return this[n]}connectedCallback(){var n,a,s,l;super.connectedCallback(),new Set([...(a=(n=this[mr])===null||n===void 0?void 0:n.values())!==null&&a!==void 0?a:[],...[...(l=(s=this[Fn])===null||s===void 0?void 0:s.keys())!==null&&l!==void 0?l:[]].map(d=>this.getI18nAttributeValue(d))].map(d=>d?.context)).forEach(d=>d&&this.addI18nMessages(d))}addI18nMessages(n,a){n=n.toLowerCase(),this[yo].has(n)||this[yo].set(n,this.i18nService.subscribe(n,()=>this.onI18nUpdate(n))),this.i18nService.prepareContext(n,a??{})}addI18nContext(n,a){this.addI18nMessages(typeof n=="string"?n:n.name,a)}disconnectedCallback(){super.disconnectedCallback(),this[yo].forEach(n=>n()),this[yo].clear()}}return e=yo,Bp([(0,_c.property)({type:Boolean})],r.prototype,"useCustomMessageContexts",void 0),r}var Tc=class extends Xt(ii.FtLitElement){},oi=class extends Xt(ii.FtLitElementRedux){};var bo=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ut=class extends oi{constructor(){super(),this.editorMode=!1,this.addStore(N)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":ni.nothing:ni.html`
1307
1307
  <span class="ft-i18n">
1308
1308
  ${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
1309
1309
  </span>
1310
- `}update(t){var r;super.update(t),["context","key","defaultMessage"].some(i=>t.has(i))&&this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};ae.elementDefinitions={};ae.styles=bs;Ho([(0,Cr.redux)()],ae.prototype,"editorMode",void 0);Ho([(0,Sr.property)()],ae.prototype,"context",void 0);Ho([(0,Sr.property)()],ae.prototype,"key",void 0);Ho([(0,Cr.jsonProperty)([])],ae.prototype,"args",void 0);Ho([(0,Sr.property)()],ae.prototype,"defaultMessage",void 0);var Be=class o{static build(t){return new o(t)}static fromGwt(t){return new o(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(r,i)=>{let n=i;return a=>({context:this.name,key:n,args:typeof a=="function"?void 0:a,argsProvider:typeof a=="function"?a:void 0})}}),this.messages=new Proxy({},{get:(r,i)=>(...n)=>vo.resolveMessage(this.name,i,...n)})}};var Or=(o,t)=>(r,i)=>{var n,a;r.constructor.createProperty(i,t??{attribute:!1,type:String});let s={...o,key:(n=o.key)!==null&&n!==void 0?n:i};r[Xe]=(a=r[Xe])!==null&&a!==void 0?a:new Map,r[Xe].set(i,s)};(0,Ts.customElement)("ft-i18n")(ae);var k=Be.build("integratedFeedbackComponent"),_s={starsRating:"{0} stars","starsRating[\\=1]":"1 star",like:"Like",dislike:"Dislike",dichotomousYes:"Yes",dichotomousNo:"No",notRated:"Not rated",ratedNow:"Rated now",ratedToday:"Rated today",ratedOn:"Rated on {0, date}",feedbackInputLabel:"How can we improve it?",feedbackfromEmail:"Your email",feedbackfromEmailInvalid:"Please enter a valid email address",okButton:"Send feedback",cancelButton:"Cancel",moreOptionsButton:"More options",feedbackSuccess:"Feedback successfully sent. Thank you!",feedbackFailure:"Failed to send feedback. Please try again later.",ratingSuccess:"Rating successfully sent. Thank you!",ratingFailure:"Failed to send rating. Please try again later.",mapFeedbackMainTitle:"Send feedback",mapRatingSectionTitle:"Rate this document",mapDichotomousRatingSectionTitle:"Did it solve your problem?",mapFeedbackSectionTitle:"Write your review",topicFeedbackMainTitle:"Send feedback",topicRatingSectionTitle:"Rate this content",topicDichotomousRatingSectionTitle:"Did this content solve your problem?",topicFeedbackSectionTitle:"Write your review"};var Ni=u(S());var te=u(_()),M=u(K()),Ps=u(Te());var Ls=o=>o??ct;var wr=u(S());var ks=u(_()),E=u(S());var L={fontSize:E.FtCssVariableFactory.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:E.FtCssVariableFactory.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:E.FtCssVariableFactory.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:E.FtCssVariableFactory.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:E.FtCssVariableFactory.extend("--ft-text-field-helper-color","",E.designSystemVariables.colorOnSurfaceMedium),colorPrimary:E.FtCssVariableFactory.external(E.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:E.FtCssVariableFactory.external(E.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:E.FtCssVariableFactory.external(E.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:E.FtCssVariableFactory.external(E.designSystemVariables.borderRadiusS,"Design system"),colorError:E.FtCssVariableFactory.external(E.designSystemVariables.colorError,"Design system"),prefixColor:E.FtCssVariableFactory.extend("--ft-text-field-prefix-color","",E.designSystemVariables.colorOnSurfaceMedium),iconColor:E.FtCssVariableFactory.extend("--ft-text-field-icon-color","",E.designSystemVariables.colorOnSurfaceMedium),floatingZIndex:E.FtCssVariableFactory.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),colorSurface:E.FtCssVariableFactory.external(E.designSystemVariables.colorSurface,"Design system"),colorOutline:E.FtCssVariableFactory.external(E.designSystemVariables.colorOutline,"Design system"),elevation02:E.FtCssVariableFactory.external(E.designSystemVariables.elevation02,"Design system"),suggestSize:E.FtCssVariableFactory.create("--ft-text-field-suggest-size","","SIZE","300px")},$s=ks.css`
1310
+ `}update(e){var r;super.update(e),["context","key","defaultMessage"].some(i=>e.has(i))&&this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};ut.elementDefinitions={};ut.styles=kl;bo([(0,si.redux)()],ut.prototype,"editorMode",void 0);bo([(0,ai.property)()],ut.prototype,"context",void 0);bo([(0,ai.property)()],ut.prototype,"key",void 0);bo([(0,si.jsonProperty)([])],ut.prototype,"args",void 0);bo([(0,ai.property)()],ut.prototype,"defaultMessage",void 0);var Jt=class t{static build(e){return new t(e)}static fromGwt(e){return new t(e)}constructor(e){this.name=e,this.properties=new Proxy({},{get:(r,i)=>{let n=i;return a=>({context:this.name,key:n,args:typeof a=="function"?void 0:a,argsProvider:typeof a=="function"?a:void 0})}}),this.messages=new Proxy({},{get:(r,i)=>(...n)=>$r.resolveMessage(this.name,i,...n)})}};var li=(t,e)=>(r,i)=>{var n,a;r.constructor.createProperty(i,e??{attribute:!1,type:String});let s={...t,key:(n=t.key)!==null&&n!==void 0?n:i};r[mr]=(a=r[mr])!==null&&a!==void 0?a:new Map,r[mr].set(i,s)};(0,kc.customElement)("ft-i18n")(ut);var F=Jt.build("integratedFeedbackComponent"),Pc={starsRating:"{0} stars","starsRating[\\=1]":"1 star",like:"Like",dislike:"Dislike",dichotomousYes:"Yes",dichotomousNo:"No",notRated:"Not rated",ratedNow:"Rated now",ratedToday:"Rated today",ratedOn:"Rated on {0, date}",feedbackInputLabel:"How can we improve it?",feedbackfromEmail:"Your email",feedbackfromEmailInvalid:"Please enter a valid email address",okButton:"Send feedback",cancelButton:"Cancel",moreOptionsButton:"More options",feedbackSuccess:"Feedback successfully sent. Thank you!",feedbackFailure:"Failed to send feedback. Please try again later.",ratingSuccess:"Rating successfully sent. Thank you!",ratingFailure:"Failed to send rating. Please try again later.",mapFeedbackMainTitle:"Send feedback",mapRatingSectionTitle:"Rate this document",mapDichotomousRatingSectionTitle:"Did it solve your problem?",mapFeedbackSectionTitle:"Write your review",topicFeedbackMainTitle:"Send feedback",topicRatingSectionTitle:"Rate this content",topicDichotomousRatingSectionTitle:"Did this content solve your problem?",topicFeedbackSectionTitle:"Write your review"};var Hn=m(E());var at=m($()),G=m(j()),Mc=m(Bt());var Lc=t=>t??he;var ci=m(E());var Dc=m($()),L=m(E());var B={fontSize:L.FtCssVariableFactory.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:L.FtCssVariableFactory.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:L.FtCssVariableFactory.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:L.FtCssVariableFactory.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:L.FtCssVariableFactory.extend("--ft-text-field-helper-color","",L.designSystemVariables.colorOnSurfaceMedium),colorPrimary:L.FtCssVariableFactory.external(L.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:L.FtCssVariableFactory.external(L.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:L.FtCssVariableFactory.external(L.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:L.FtCssVariableFactory.external(L.designSystemVariables.borderRadiusS,"Design system"),colorError:L.FtCssVariableFactory.external(L.designSystemVariables.colorError,"Design system"),prefixColor:L.FtCssVariableFactory.extend("--ft-text-field-prefix-color","",L.designSystemVariables.colorOnSurfaceMedium),iconColor:L.FtCssVariableFactory.extend("--ft-text-field-icon-color","",L.designSystemVariables.colorOnSurfaceMedium),floatingZIndex:L.FtCssVariableFactory.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),colorSurface:L.FtCssVariableFactory.external(L.designSystemVariables.colorSurface,"Design system"),colorOutline:L.FtCssVariableFactory.external(L.designSystemVariables.colorOutline,"Design system"),elevation02:L.FtCssVariableFactory.external(L.designSystemVariables.elevation02,"Design system"),suggestSize:L.FtCssVariableFactory.create("--ft-text-field-suggest-size","","SIZE","300px")},$c=Dc.css`
1311
1311
  *:focus {
1312
1312
  outline: none;
1313
1313
  }
@@ -1320,16 +1320,16 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
1320
1320
  }
1321
1321
 
1322
1322
  ft-input-label {
1323
- ${(0,E.setVariable)(w.fontSize,L.fontSize)};
1324
- ${(0,E.setVariable)(w.raisedFontSize,L.labelSize)};
1325
- ${(0,E.setVariable)(w.verticalSpacing,L.verticalSpacing)};
1326
- ${(0,E.setVariable)(w.horizontalSpacing,L.horizontalSpacing)};
1323
+ ${(0,L.setVariable)(P.fontSize,B.fontSize)};
1324
+ ${(0,L.setVariable)(P.raisedFontSize,B.labelSize)};
1325
+ ${(0,L.setVariable)(P.verticalSpacing,B.verticalSpacing)};
1326
+ ${(0,L.setVariable)(P.horizontalSpacing,B.horizontalSpacing)};
1327
1327
  }
1328
1328
 
1329
1329
  .ft-text-field--main-panel {
1330
1330
  position: relative;
1331
1331
  display: flex;
1332
- height: calc(4 * ${L.verticalSpacing} + ${L.labelSize} + ${L.fontSize});
1332
+ height: calc(4 * ${B.verticalSpacing} + ${B.labelSize} + ${B.fontSize});
1333
1333
  }
1334
1334
 
1335
1335
  .ft-text-field--input-panel {
@@ -1338,24 +1338,24 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
1338
1338
  display: flex;
1339
1339
  align-items: center;
1340
1340
  overflow: hidden;
1341
- padding: 0 ${L.horizontalSpacing};
1341
+ padding: 0 ${B.horizontalSpacing};
1342
1342
 
1343
- ${(0,E.setVariable)(Yt.fontSize,L.fontSize)};
1344
- ${(0,E.setVariable)(Yt.lineHeight,L.fontSize)};
1343
+ ${(0,L.setVariable)(et.fontSize,B.fontSize)};
1344
+ ${(0,L.setVariable)(et.lineHeight,B.fontSize)};
1345
1345
  }
1346
1346
 
1347
1347
  .ft-text-field--input-panel ft-ripple {
1348
- ${(0,E.setVariable)(N.opacityContentOnSurfaceHover,"0.08")};
1349
- ${(0,E.setVariable)(N.opacityContentOnSurfacePressed,"0.04")};
1348
+ ${(0,L.setVariable)(M.opacityContentOnSurfaceHover,"0.08")};
1349
+ ${(0,L.setVariable)(M.opacityContentOnSurfacePressed,"0.04")};
1350
1350
  }
1351
1351
 
1352
1352
  .ft-text-field--filled.ft-text-field--with-label .ft-text-field--input-panel {
1353
1353
  align-items: flex-end;
1354
- padding: 0 ${L.horizontalSpacing} ${L.verticalSpacing} ${L.horizontalSpacing};
1354
+ padding: 0 ${B.horizontalSpacing} ${B.verticalSpacing} ${B.horizontalSpacing};
1355
1355
  }
1356
1356
 
1357
1357
  .ft-text-field--prefix {
1358
- color: ${L.prefixColor};
1358
+ color: ${B.prefixColor};
1359
1359
  margin-right: 2px;
1360
1360
  flex-shrink: 1;
1361
1361
  overflow: hidden;
@@ -1374,15 +1374,15 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
1374
1374
  flex-shrink: 1;
1375
1375
  min-width: 0; /* flex sets this to auto an prevents input from shrinking properly */
1376
1376
 
1377
- color: ${L.colorOnSurface};
1378
- padding: calc(2 * ${L.verticalSpacing}) 0;
1377
+ color: ${B.colorOnSurface};
1378
+ padding: calc(2 * ${B.verticalSpacing}) 0;
1379
1379
  border: none;
1380
1380
  background: none;
1381
1381
  }
1382
1382
 
1383
1383
  .ft-text-field--filled.ft-text-field--with-label .ft-text-field--input {
1384
1384
  padding-bottom: 0;
1385
- padding-top: calc(${L.labelSize} + 2 * ${L.verticalSpacing});
1385
+ padding-top: calc(${B.labelSize} + 2 * ${B.verticalSpacing});
1386
1386
  }
1387
1387
 
1388
1388
  .ft-text-field--input::-webkit-calendar-picker-indicator,
@@ -1391,37 +1391,37 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
1391
1391
  }
1392
1392
 
1393
1393
  .ft-text-field--disabled .ft-text-field--input {
1394
- color: ${L.colorOnSurfaceDisabled};
1394
+ color: ${B.colorOnSurfaceDisabled};
1395
1395
  }
1396
1396
 
1397
1397
  .ft-text-field:not(.ft-text-field--disabled):focus-within ft-input-label {
1398
- ${(0,E.setVariable)(w.borderColor,L.colorPrimary)};
1399
- ${(0,E.setVariable)(w.textColor,L.colorPrimary)};
1398
+ ${(0,L.setVariable)(P.borderColor,B.colorPrimary)};
1399
+ ${(0,L.setVariable)(P.textColor,B.colorPrimary)};
1400
1400
  }
1401
1401
 
1402
1402
  .ft-text-field--filled .ft-text-field--input-panel {
1403
- border-radius: ${L.borderRadiusS} ${L.borderRadiusS} 0 0;
1403
+ border-radius: ${B.borderRadiusS} ${B.borderRadiusS} 0 0;
1404
1404
  }
1405
1405
 
1406
1406
  .ft-text-field--outlined .ft-text-field--input-panel {
1407
- border-radius: ${L.borderRadiusS};
1407
+ border-radius: ${B.borderRadiusS};
1408
1408
  }
1409
1409
 
1410
1410
  .ft-text-field--helper-text {
1411
- padding: 0 12px 0 ${L.horizontalSpacing};
1412
- color: ${L.helperColor};
1411
+ padding: 0 12px 0 ${B.horizontalSpacing};
1412
+ color: ${B.helperColor};
1413
1413
  }
1414
1414
 
1415
1415
  .ft-text-field--in-error .ft-text-field--input,
1416
1416
  .ft-text-field--in-error .ft-text-field--helper-text,
1417
1417
  .ft-text-field--in-error .ft-text-field--prefix {
1418
- color: ${L.colorError};
1418
+ color: ${B.colorError};
1419
1419
  }
1420
1420
 
1421
1421
  .ft-text-field--icon {
1422
1422
  align-self: center;
1423
1423
  margin-left: 8px;
1424
- color: ${L.iconColor};
1424
+ color: ${B.iconColor};
1425
1425
  }
1426
1426
 
1427
1427
  .ft-text-field--container {
@@ -1432,13 +1432,13 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
1432
1432
  display: none;
1433
1433
  flex-direction: column;
1434
1434
  position: absolute;
1435
- z-index: ${L.floatingZIndex};
1436
- background: ${L.colorSurface};
1437
- border: 1px solid ${L.colorOutline};
1438
- border-radius: 0 0 ${L.borderRadiusS} ${L.borderRadiusS};
1439
- box-shadow: ${L.elevation02};
1435
+ z-index: ${B.floatingZIndex};
1436
+ background: ${B.colorSurface};
1437
+ border: 1px solid ${B.colorOutline};
1438
+ border-radius: 0 0 ${B.borderRadiusS} ${B.borderRadiusS};
1439
+ box-shadow: ${B.elevation02};
1440
1440
  outline: none;
1441
- max-height: ${L.suggestSize};
1441
+ max-height: ${B.suggestSize};
1442
1442
  overflow-y: auto;
1443
1443
  }
1444
1444
 
@@ -1451,14 +1451,14 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
1451
1451
  }
1452
1452
 
1453
1453
  .ft-text-field--with-icon {
1454
- ${(0,E.setVariable)(w.labelMaxWidth,`calc(100% - ${bt.size} - ${w.horizontalSpacing})`)};
1454
+ ${(0,L.setVariable)(P.labelMaxWidth,`calc(100% - ${Oe.size} - ${P.horizontalSpacing})`)};
1455
1455
  }
1456
1456
 
1457
1457
  .ft-text-field--with-password ft-icon:hover {
1458
1458
  cursor: pointer;
1459
1459
  }
1460
- `;var j=function(o,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(o,t,r,i);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},$=class extends(0,wr.toFtFormComponent)(wr.FtLitElement,"textbox"){constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.prefix=null,this.passwordHiddenIcon=Ze.EYE_SLASH,this.passwordRevealedIcon=Ze.EYE,this.filterSuggestions=!1,this.password=!1,this.focused=!1,this.hidePassword=!0,this.hideSuggestions=!1,this.visibleSuggestions=[]}get value(){return this._value||""}set value(t){this.setInternalValue(t||""),this.dispatchedValue=t||""}setInternalValue(t){let r=this._value;this._value=t||"",this.setFormValue(this._value),this.requestUpdate("value",r)}focus(){var t;(t=this.input)===null||t===void 0||t.focus()}render(){let t={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--with-label":!!this.label,"ft-text-field--in-error":this.error,"ft-text-field--fixed":this.fixedMenuPosition,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--hide-suggestions":this.visibleSuggestions.length===0||this.hideSuggestions,"ft-text-field--raised-label":this.focused||this.value!="","ft-text-field--with-icon":!!this.icon,"ft-text-field--with-password":this.password};return te.html`
1461
- <div class="${(0,Ps.classMap)(t)}">
1460
+ `;var oe=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},z=class extends(0,ci.toFtFormComponent)(ci.FtLitElement,"textbox"){constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.prefix=null,this.passwordHiddenIcon=lr.EYE_SLASH,this.passwordRevealedIcon=lr.EYE,this.filterSuggestions=!1,this.password=!1,this.focused=!1,this.hidePassword=!0,this.hideSuggestions=!1,this.visibleSuggestions=[]}get value(){return this._value||""}set value(e){this.setInternalValue(e||""),this.dispatchedValue=e||""}setInternalValue(e){let r=this._value;this._value=e||"",this.setFormValue(this._value),this.requestUpdate("value",r)}focus(){var e;(e=this.input)===null||e===void 0||e.focus()}render(){let e={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--with-label":!!this.label,"ft-text-field--in-error":this.error,"ft-text-field--fixed":this.fixedMenuPosition,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--hide-suggestions":this.visibleSuggestions.length===0||this.hideSuggestions,"ft-text-field--raised-label":this.focused||this.value!="","ft-text-field--with-icon":!!this.icon,"ft-text-field--with-password":this.password};return at.html`
1461
+ <div class="${(0,Mc.classMap)(e)}">
1462
1462
  <div class="ft-text-field--main-panel"
1463
1463
  @keydown=${this.handleKeyboardNavigation}
1464
1464
  @focusout=${this.onMainPanelBlur}>
@@ -1468,16 +1468,16 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
1468
1468
  ?raised=${this.focused||this.value!=""}
1469
1469
  ?error=${this.error}></ft-input-label>
1470
1470
  <div class="ft-text-field--input-panel">
1471
- ${this.outlined?te.nothing:te.html`
1471
+ ${this.outlined?at.nothing:at.html`
1472
1472
  <ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
1473
1473
  `}
1474
- ${this.prefix?te.html`
1474
+ ${this.prefix?at.html`
1475
1475
  <ft-typography class="ft-text-field--prefix" variant="body1">
1476
1476
  ${this.prefix}
1477
1477
  </ft-typography>
1478
- `:te.nothing}
1478
+ `:at.nothing}
1479
1479
  <input type=${this.password&&this.hidePassword?"password":"text"}
1480
- maxlength=${Ls(this.maxLength||void 0)}
1480
+ maxlength=${Lc(this.maxLength||void 0)}
1481
1481
  aria-label="${this.label}"
1482
1482
  class="ft-typography--body1 ft-text-field--input"
1483
1483
  part="input"
@@ -1493,23 +1493,23 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
1493
1493
  <slot @slotchange=${()=>this.filterSuggestionsIfNeeded()}></slot>
1494
1494
  </div>
1495
1495
  </div>
1496
- ${this.helper?te.html`
1496
+ ${this.helper?at.html`
1497
1497
  <ft-typography class="ft-text-field--helper-text" variant="caption">
1498
1498
  ${this.helper}
1499
1499
  </ft-typography>
1500
- `:te.nothing}
1500
+ `:at.nothing}
1501
1501
  </div>
1502
- `}renderPasswordIcon(){return te.html`
1502
+ `}renderPasswordIcon(){return at.html`
1503
1503
  <ft-icon class="ft-text-field--icon"
1504
1504
  .variant=${this.iconVariant}
1505
1505
  .value=${this.hidePassword?this.passwordHiddenIcon:this.passwordRevealedIcon}
1506
1506
  @click=${()=>this.togglePasswordVisibility()}></ft-icon>
1507
- `}renderIcon(){return this.password?this.renderPasswordIcon():this.icon?te.html`
1507
+ `}renderIcon(){return this.password?this.renderPasswordIcon():this.icon?at.html`
1508
1508
  <ft-icon class="ft-text-field--icon"
1509
1509
  .variant=${this.iconVariant}
1510
1510
  .value=${this.icon}
1511
- @click=${()=>{var t;return(t=this.input)===null||t===void 0?void 0:t.focus()}}></ft-icon>
1512
- `:te.nothing}update(t){super.update(t),(t.has("value")||t.has("filterSuggestions"))&&this.filterSuggestionsIfNeeded(),t.has("value")&&t.get("value")!=null&&(this.hideSuggestions=!1),t.has("dispatchedValue")&&t.get("dispatchedValue")!=null&&(this.hideSuggestions=!0)}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.suggestions.forEach(t=>t.hidden=!t.getValue().toLowerCase().includes(this.value.toLowerCase())),this.visibleSuggestions=this.suggestions.filter(t=>!t.hidden)):this.visibleSuggestions=this.suggestions}contentAvailableCallback(t){super.contentAvailableCallback(t),t.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0&&(this.suggestionsContainer.style.width=this.mainPanel.getBoundingClientRect().width+"px",nr(this.mainPanel,this.suggestionsContainer,"bottom").then(({x:r,y:i})=>{this.suggestionsContainer.style.left=`${r}px`,this.suggestionsContainer.style.top=`${i}px`}))}setValue(t,r=!1){this.value!==t&&(this.setInternalValue(t),this.dispatchEvent(new CustomEvent("live-change",{detail:t}))),r&&this.dispatchedValue!==t&&(this.dispatchedValue=t,this.dispatchEvent(new CustomEvent("change",{detail:t})))}handleInput(t){var r;let i=((r=this.input)===null||r===void 0?void 0:r.value)||"";this.setValue(i,t.key=="Escape"||t.key=="Enter")}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(t){var r;if(t.key==="ArrowDown"||t.key==="ArrowUp"){t.preventDefault(),t.stopPropagation(),this.hideSuggestions=!1;let i=this.visibleSuggestions.findIndex(a=>a.matches(":focus-within")),n;t.key==="ArrowDown"?n=i<this.visibleSuggestions.length-1?i+1:0:n=i>0?i-1:this.visibleSuggestions.length-1,(r=this.visibleSuggestions[n])===null||r===void 0||r.focus()}(t.key=="Escape"||t.key=="Enter")&&(this.hideSuggestions=!0)}onSuggestionSelected(t){var r;this.setValue(t.detail,!0),(r=this.input)===null||r===void 0||r.focus(),setTimeout(()=>this.hideSuggestions=!0,0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var t,r;!((t=this.mainPanel)===null||t===void 0)&&t.matches(":focus-within")||(this.focused=!1,this.setValue(((r=this.input)===null||r===void 0?void 0:r.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}};$.elementDefinitions={"ft-input-label":Lt,"ft-ripple":B,"ft-typography":it,"ft-icon":dt};$.styles=[no,$s];j([(0,M.property)()],$.prototype,"label",void 0);j([(0,M.property)({noAccessor:!0})],$.prototype,"value",null);j([(0,M.state)()],$.prototype,"dispatchedValue",void 0);j([(0,M.property)()],$.prototype,"helper",void 0);j([(0,M.property)({type:Boolean})],$.prototype,"outlined",void 0);j([(0,M.property)({type:Boolean})],$.prototype,"disabled",void 0);j([(0,M.property)({type:Boolean})],$.prototype,"error",void 0);j([(0,M.property)({type:Boolean})],$.prototype,"fixedMenuPosition",void 0);j([(0,M.property)()],$.prototype,"prefix",void 0);j([(0,M.property)()],$.prototype,"icon",void 0);j([(0,M.property)()],$.prototype,"passwordHiddenIcon",void 0);j([(0,M.property)()],$.prototype,"passwordRevealedIcon",void 0);j([(0,M.property)()],$.prototype,"iconVariant",void 0);j([(0,M.property)({type:Boolean})],$.prototype,"filterSuggestions",void 0);j([(0,M.property)({type:Number})],$.prototype,"maxLength",void 0);j([(0,M.property)({type:Boolean})],$.prototype,"password",void 0);j([(0,M.state)()],$.prototype,"focused",void 0);j([(0,M.state)()],$.prototype,"hidePassword",void 0);j([(0,M.state)()],$.prototype,"hideSuggestions",void 0);j([(0,M.state)()],$.prototype,"visibleSuggestions",void 0);j([(0,M.query)(".ft-text-field--main-panel")],$.prototype,"mainPanel",void 0);j([(0,M.query)(".ft-text-field--input")],$.prototype,"input",void 0);j([(0,M.query)(".ft-text-field--suggestions")],$.prototype,"suggestionsContainer",void 0);j([(0,M.queryAssignedElements)({selector:"ft-text-field-suggestion"})],$.prototype,"suggestions",void 0);var Us=u(S()),Ms=u(_()),So=u(K());var Ds=u(_()),Bs=Ds.css`
1511
+ @click=${()=>{var e;return(e=this.input)===null||e===void 0?void 0:e.focus()}}></ft-icon>
1512
+ `:at.nothing}update(e){super.update(e),(e.has("value")||e.has("filterSuggestions"))&&this.filterSuggestionsIfNeeded(),e.has("value")&&e.get("value")!=null&&(this.hideSuggestions=!1),e.has("dispatchedValue")&&e.get("dispatchedValue")!=null&&(this.hideSuggestions=!0)}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.suggestions.forEach(e=>e.hidden=!e.getValue().toLowerCase().includes(this.value.toLowerCase())),this.visibleSuggestions=this.suggestions.filter(e=>!e.hidden)):this.visibleSuggestions=this.suggestions}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0&&(this.suggestionsContainer.style.width=this.mainPanel.getBoundingClientRect().width+"px",Po(this.mainPanel,this.suggestionsContainer,"bottom").then(({x:r,y:i})=>{this.suggestionsContainer.style.left=`${r}px`,this.suggestionsContainer.style.top=`${i}px`}))}setValue(e,r=!1){this.value!==e&&(this.setInternalValue(e),this.dispatchEvent(new CustomEvent("live-change",{detail:e}))),r&&this.dispatchedValue!==e&&(this.dispatchedValue=e,this.dispatchEvent(new CustomEvent("change",{detail:e})))}handleInput(e){var r;let i=((r=this.input)===null||r===void 0?void 0:r.value)||"";this.setValue(i,e.key=="Escape"||e.key=="Enter")}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(e){var r;if(e.key==="ArrowDown"||e.key==="ArrowUp"){e.preventDefault(),e.stopPropagation(),this.hideSuggestions=!1;let i=this.visibleSuggestions.findIndex(a=>a.matches(":focus-within")),n;e.key==="ArrowDown"?n=i<this.visibleSuggestions.length-1?i+1:0:n=i>0?i-1:this.visibleSuggestions.length-1,(r=this.visibleSuggestions[n])===null||r===void 0||r.focus()}(e.key=="Escape"||e.key=="Enter")&&(this.hideSuggestions=!0)}onSuggestionSelected(e){var r;this.setValue(e.detail,!0),(r=this.input)===null||r===void 0||r.focus(),setTimeout(()=>this.hideSuggestions=!0,0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var e,r;!((e=this.mainPanel)===null||e===void 0)&&e.matches(":focus-within")||(this.focused=!1,this.setValue(((r=this.input)===null||r===void 0?void 0:r.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}};z.elementDefinitions={"ft-input-label":De,"ft-ripple":H,"ft-typography":ce,"ft-icon":me};z.styles=[Or,$c];oe([(0,G.property)()],z.prototype,"label",void 0);oe([(0,G.property)({noAccessor:!0})],z.prototype,"value",null);oe([(0,G.state)()],z.prototype,"dispatchedValue",void 0);oe([(0,G.property)()],z.prototype,"helper",void 0);oe([(0,G.property)({type:Boolean})],z.prototype,"outlined",void 0);oe([(0,G.property)({type:Boolean})],z.prototype,"disabled",void 0);oe([(0,G.property)({type:Boolean})],z.prototype,"error",void 0);oe([(0,G.property)({type:Boolean})],z.prototype,"fixedMenuPosition",void 0);oe([(0,G.property)()],z.prototype,"prefix",void 0);oe([(0,G.property)()],z.prototype,"icon",void 0);oe([(0,G.property)()],z.prototype,"passwordHiddenIcon",void 0);oe([(0,G.property)()],z.prototype,"passwordRevealedIcon",void 0);oe([(0,G.property)()],z.prototype,"iconVariant",void 0);oe([(0,G.property)({type:Boolean})],z.prototype,"filterSuggestions",void 0);oe([(0,G.property)({type:Number})],z.prototype,"maxLength",void 0);oe([(0,G.property)({type:Boolean})],z.prototype,"password",void 0);oe([(0,G.state)()],z.prototype,"focused",void 0);oe([(0,G.state)()],z.prototype,"hidePassword",void 0);oe([(0,G.state)()],z.prototype,"hideSuggestions",void 0);oe([(0,G.state)()],z.prototype,"visibleSuggestions",void 0);oe([(0,G.query)(".ft-text-field--main-panel")],z.prototype,"mainPanel",void 0);oe([(0,G.query)(".ft-text-field--input")],z.prototype,"input",void 0);oe([(0,G.query)(".ft-text-field--suggestions")],z.prototype,"suggestionsContainer",void 0);oe([(0,G.queryAssignedElements)({selector:"ft-text-field-suggestion"})],z.prototype,"suggestions",void 0);var Fc=m(E()),zc=m($()),Hr=m(j());var Uc=m($()),Bc=Uc.css`
1513
1513
  .ft-text-field-suggestion {
1514
1514
  position: relative;
1515
1515
  padding: 8px 16px;
@@ -1534,7 +1534,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
1534
1534
  slot {
1535
1535
  pointer-events: none;
1536
1536
  }
1537
- `;var Ii=function(o,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(o,t,r,i);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},Ai=class extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t,bubbles:!0,composed:!0})}},Ce=class extends Us.FtLitElement{render(){return Ms.html`
1537
+ `;var Wn=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},zn=class extends CustomEvent{constructor(e){super("suggestion-selected",{detail:e,bubbles:!0,composed:!0})}},_t=class extends Fc.FtLitElement{render(){return zc.html`
1538
1538
  <div class="ft-text-field-suggestion"
1539
1539
  tabindex="-1"
1540
1540
  @keydown=${this.onKeyDown}
@@ -1546,17 +1546,17 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
1546
1546
  <slot></slot>
1547
1547
  </ft-typography>
1548
1548
  </div>
1549
- `}focus(t){var r;(r=this.container)===null||r===void 0||r.focus(t)}click(){var t;(t=this.container)===null||t===void 0||t.click()}confirmSuggestion(){this.dispatchEvent(new Ai(this.getValue()))}getValue(){return this.value||this.textContent}get textContent(){return this.assignedNodes.map(t=>t.textContent).join("").trim()}onKeyDown(t){["Enter"," "].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),this.confirmSuggestion())}};Ce.elementDefinitions={"ft-ripple":B,"ft-typography":it,"ft-icon":dt};Ce.styles=Bs;Ii([(0,So.property)()],Ce.prototype,"value",void 0);Ii([(0,So.query)(".ft-text-field-suggestion")],Ce.prototype,"container",void 0);Ii([(0,So.queryAssignedNodes)()],Ce.prototype,"assignedNodes",void 0);(0,Ni.customElement)("ft-text-field")($);(0,Ni.customElement)("ft-text-field-suggestion")(Ce);var dl=u(S());var Vo=u(_()),Ue=u(K()),Kt=u(S());var we=u(S());var Fs=u(S()),zs=o=>Fs.FtReduxStore.get({name:"ft-reader-"+o,initialState:{mapId:void 0,visibleTopics:[],map:void 0,toc:void 0,pagesToc:void 0,paginationConfiguration:void 0,currentPage:void 0,scrollTarget:void 0,configuration:void 0,searchInDocumentQuery:void 0,relatives:void 0}});var Ti=class{constructor(t){this.paginatedToc=t,this.nodeByTocId={},this.knownPrettyUrls=new Set,this.duplicatedPrettyUrls=new Set,this.pages=[],this.pageByTocId={}}build(){return{paginationConfiguration:this.paginatedToc.configuration,toc:this.convertNodes(this.paginatedToc.paginatedToc,1),pagesToc:this.extractPagesToc(this.paginatedToc.paginatedToc,1),nodeByTocId:this.nodeByTocId,duplicatedPrettyUrls:this.duplicatedPrettyUrls,pages:this.pages,pageByTocId:this.pageByTocId}}extractPagesToc(t,r,i){return t.flatMap(n=>(n.pageConfiguration&&this.registerPage(this.buildPage(n,i)),n.tocId==null?this.extractPagesToc(n.children,r,i):[{tocId:n.tocId,title:n.title,depth:r,children:this.extractPagesToc(n.children,r+1,n.tocId)}]))}convertNodes(t,r,i){return t.flatMap(n=>{var a,s,c;if(n.tocId==null)return[...this.convertSectionNodes((a=n.pageToc)!==null&&a!==void 0?a:[],r,n.tocId),...this.convertNodes(n.children,r,n.tocId)];let p=(s=n.prettyUrl)===null||s===void 0?void 0:s.replace(/^\//,""),h={tocId:n.tocId,contentId:n.contentId,title:n.title,hasRating:n.hasRating,origin:n.origin,prettyUrl:p,depth:r,parentTocId:i,children:[]};this.register(h);let g=this.convertSectionNodes((c=n.pageToc)!==null&&c!==void 0?c:[],r+1,n.tocId),x=this.convertNodes(n.children,r+1,h.tocId);return h.children=[...g,...x],[h]})}convertSectionNodes(t,r,i){return t.flatMap(n=>{var a;let s=(a=n.prettyUrl)===null||a===void 0?void 0:a.replace(/^\//,""),c={...n,prettyUrl:s,depth:r,parentTocId:i,children:[]};return this.register(c),c.children=this.convertSectionNodes(n.children,r+1,n.tocId),[c]})}buildPage(t,r){var i,n,a,s,c,p;let h={number:this.pages.length+1,title:(i=t.title)!==null&&i!==void 0?i:"",rootTocId:(n=t.tocId)!==null&&n!==void 0?n:"root",toc:((a=t.pageToc)!==null&&a!==void 0?a:[]).map(A=>this.nodeByTocId[A.tocId]),topics:[],hiddenTopics:[],breadcrumb:r?this.buildBreadcrumb(this.nodeByTocId[r]):[]},g=(A,R)=>(R?h.topics:h.hiddenTopics).push(A),x=(c=(s=t.pageConfiguration)===null||s===void 0?void 0:s.parentsVisibility)!==null&&c!==void 0?c:[];return h.breadcrumb.forEach((A,R)=>{g(A,x[R])}),t.tocId&&g(t.tocId,t.pageConfiguration.isVisible),h.topics.push(...this.tocIds((p=t.pageToc)!==null&&p!==void 0?p:[])),h}registerPage(t){for(let r of[...t.topics,...t.hiddenTopics])this.pageByTocId[r]||(this.pageByTocId[r]=t);this.pages.push(t)}tocIds(t){return t.flatMap(r=>[r.tocId,...this.tocIds(r.children)])}buildBreadcrumb(t){let r=[t.tocId];for(;t?.parentTocId;)r.unshift(t.parentTocId),t=this.nodeByTocId[t.parentTocId];return r}register(t){t.prettyUrl&&(this.knownPrettyUrls.has(t.prettyUrl)&&this.duplicatedPrettyUrls.add(t.prettyUrl),this.knownPrettyUrls.add(t.prettyUrl)),this.nodeByTocId[t.tocId]=t}},Er=class{convertPaginatedToc(t){return new Ti(t).build()}};var ob=u(Hs(),1);var Vs;(function(o){o.black="black",o.green="green",o.blue="blue",o.purple="purple",o.red="red",o.orange="orange",o.yellow="yellow"})(Vs||(Vs={}));var Gs;(function(o){o.OFFICIAL="OFFICIAL",o.PERSONAL="PERSONAL",o.SHARED="SHARED"})(Gs||(Gs={}));var Ks;(function(o){o.THIRD_PARTY="THIRD_PARTY",o.OFF_THE_GRID="OFF_THE_GRID",o.CONTENT_PACKAGER="CONTENT_PACKAGER",o.PAGES="PAGES",o.DESIGNED_READER="DESIGNED_READER"})(Ks||(Ks={}));var Zs;(function(o){o.HOMEPAGE="HOMEPAGE",o.CUSTOM="CUSTOM",o.READER="READER",o.TOPIC_TEMPLATE="TOPIC_TEMPLATE",o.SEARCH="SEARCH",o.SEARCH_RESULT="SEARCH_RESULT"})(Zs||(Zs={}));var js;(function(o){o.CLASSIC="CLASSIC",o.CUSTOM="CUSTOM",o.DESIGNER="DESIGNER"})(js||(js={}));var Ys;(function(o){o.AND="AND",o.OR="OR",o.MONOVALUED="MONOVALUED"})(Ys||(Ys={}));var qs;(function(o){o.NONE="NONE",o.ALPHABET="ALPHABET",o.VERSION="VERSION"})(qs||(qs={}));var Oe;(function(o){o.STARS="STARS",o.LIKE="LIKE",o.DICHOTOMOUS="DICHOTOMOUS",o.NO_RATING="NO_RATING"})(Oe||(Oe={}));var Xs;(function(o){o.LAST_WEEK="LAST_WEEK",o.LAST_MONTH="LAST_MONTH",o.LAST_QUARTER="LAST_QUARTER",o.LAST_YEAR="LAST_YEAR",o.CUSTOM="CUSTOM"})(Xs||(Xs={}));var Qs;(function(o){o.ASC="ASC",o.DESC="DESC"})(Qs||(Qs={}));var Js;(function(o){o.ALPHA="ALPHA",o.NATURAL="NATURAL"})(Js||(Js={}));var tl;(function(o){o.EVERYWHERE="EVERYWHERE",o.TITLE_ONLY="TITLE_ONLY",o.NONE="NONE"})(tl||(tl={}));var el;(function(o){o.ARTICLE="ARTICLE",o.BOOK="BOOK",o.SHARED_BOOK="SHARED_BOOK"})(el||(el={}));var ol;(function(o){o.FLUIDTOPICS="FLUIDTOPICS",o.EXTERNAL="EXTERNAL"})(ol||(ol={}));var rl;(function(o){o.MAP="MAP",o.DOCUMENT="DOCUMENT",o.TOPIC="TOPIC",o.PERSONAL_BOOK="PERSONAL_BOOK",o.SHARED_BOOK="SHARED_BOOK"})(rl||(rl={}));var il;(function(o){o.MAP="MAP",o.DOCUMENT="DOCUMENT",o.TOPIC="TOPIC"})(il||(il={}));var nl;(function(o){o.DEFAULT="DEFAULT",o.DOCUMENTS="DOCUMENTS",o.ALL_TOPICS="ALL_TOPICS"})(nl||(nl={}));var Y;(function(o){o.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",o.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",o.HTML_EXPORT_USER="HTML_EXPORT_USER",o.PDF_EXPORT_USER="PDF_EXPORT_USER",o.SAVED_SEARCH_USER="SAVED_SEARCH_USER",o.COLLECTION_USER="COLLECTION_USER",o.OFFLINE_USER="OFFLINE_USER",o.ANALYTICS_USER="ANALYTICS_USER",o.BETA_USER="BETA_USER",o.DEBUG_USER="DEBUG_USER",o.PRINT_USER="PRINT_USER",o.RATING_USER="RATING_USER",o.FEEDBACK_USER="FEEDBACK_USER",o.GENERATIVE_AI_USER="GENERATIVE_AI_USER",o.CONTENT_PUBLISHER="CONTENT_PUBLISHER",o.KHUB_ADMIN="KHUB_ADMIN",o.USERS_ADMIN="USERS_ADMIN",o.PORTAL_ADMIN="PORTAL_ADMIN",o.ADMIN="ADMIN",o.DEVELOPER="DEVELOPER"})(Y||(Y={}));var al;(function(o){o.VALID="VALID",o.INVALID="INVALID"})(al||(al={}));var Ql={[Y.PERSONAL_BOOK_SHARE_USER]:[Y.PERSONAL_BOOK_USER],[Y.HTML_EXPORT_USER]:[Y.PERSONAL_BOOK_USER],[Y.PDF_EXPORT_USER]:[Y.PERSONAL_BOOK_USER],[Y.KHUB_ADMIN]:[Y.CONTENT_PUBLISHER],[Y.ADMIN]:[Y.KHUB_ADMIN,Y.USERS_ADMIN,Y.PORTAL_ADMIN],[Y.DEVELOPER]:[Y.BETA_USER,Y.DEBUG_USER]};function sl(o,t){return o===t||(Ql[o]??[]).some(r=>sl(r,t))}function Qe(o,t){return o==null?!1:(Array.isArray(o)?o:Array.isArray(o.roles)?o.roles:Array.isArray(o.profile?.roles)?o.profile.roles:[]).some(i=>sl(i,t))}var Rr=class extends fe{get mapId(){return this._mapId}set mapId(t){t!==this._mapId&&this.clear(),this._mapId=t}constructor(t,r,i){super(!1,r),this.converter=t,this._mapId=i,this.initCache()}async withMapId(t){return this._mapId?t(this._mapId):void 0}initCache(){this.cache.registerFinal("configuration",()=>this.api.getReaderConfiguration()),this.cache.register("map",()=>this.withMapId(t=>this.fetchMap(t))),this.cache.register("enrichedToc",()=>this.withMapId(t=>this.fetchPages(t).then(r=>this.converter.convertPaginatedToc(r)))),this.cache.register("ratingSummary",()=>{var t,r;return Qe((r=(t=O.getState().session)===null||t===void 0?void 0:t.profile.roles)!==null&&r!==void 0?r:[],"RATING_USER")?this.withMapId(n=>this.fetchMapRating(n)):Promise.resolve()})}clear(){this.cache.clearAll()}getMap(){return this.cache.get("map")}getMapNow(){return this.cache.getNow("map")}getConfiguration(){return this.cache.get("configuration")}getEnrichedToc(){return this.cache.get("enrichedToc")}get enrichedToc(){return this.cache.getNow("enrichedToc")}async getPaginationConfiguration(){return(await this.getEnrichedToc()).paginationConfiguration}async getToc(){return(await this.getEnrichedToc()).toc}async getPagesToc(){return(await this.getEnrichedToc()).pagesToc}async getTocNode(t){return(await this.getEnrichedToc()).nodeByTocId[t]}getTocNodeNow(t){var r;return(r=this.enrichedToc)===null||r===void 0?void 0:r.nodeByTocId[t]}async getPage(t){let r=await this.getEnrichedToc();return r.pages[t-1]||r.pages[0]}async getPageByTocId(t){let r=await this.getEnrichedToc();return r.pageByTocId[t]||r.pages[0]}getTopicInfo(t){return this.cache.get("topic-"+t.tocId,()=>this.fetchTopicMetadata(t))}getTopicContent(t){return this.cache.get("topic-content-"+t.tocId,()=>this.fetchTopicHTMLContent(t))}getAttachments(){return this.cache.get("map-attachments",()=>this.fetchAttachments())}getRelativesForDocument(t,r){return this.cache.get("document-relatives-"+t+"-"+r.join("-"),()=>this.fetchRelativesForDocument(t,r))}getRelativesForTopicInMap(t,r,i){return this.cache.get("topic-relatives-"+[t,r,...i].join("-"),()=>this.fetchRelativesForTopicInMap(t,r,i))}getAttachmentDownloadLink(t){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(t).content}?download=true`)}getLink(t,r,i){let n=this.getNavigationData(t,r,i),a=this.getReaderLinkPrefix()+(n.prettyUrl?n.prettyUrl:`${n.mapId}/${n.tocId}`),s=new URL(a,this.api.tenantBaseUrl);return n.page!=null&&s.searchParams.set("page",`${n.page}`),n.prettyUrlDuplicated&&s.searchParams.set("tocId",n.tocId),n.section!=null&&s.searchParams.set("section",n.section),s.href}getNavigationData(t,r,i){var n,a;t=t||"root";let s=this.enrichedToc,c=s?.pageByTocId[t],p=s?.nodeByTocId[t],h=p?.prettyUrl;return{mapId:this.mapId,tocId:t,topicTitle:(n=p?.title)!==null&&n!==void 0?n:"",page:r&&c&&c.number!==r?r:void 0,prettyUrl:h?.replace(/^r\//,""),prettyUrlDuplicated:(a=s?.duplicatedPrettyUrls.has(h??""))!==null&&a!==void 0?a:!1,section:i}}async getAccurateNavigationData(t,r,i){return await this.getEnrichedToc(),this.getNavigationData(t,r,i)}getRatingSummary(){return this.cache.get("ratingSummary")}reloadRating(){return this.cache.clear("ratingSummary"),this.getRatingSummary()}getMapRating(){return this.getRatingSummary().then(t=>t?.publication)}getTopicRating(t){return this.getRatingSummary().then(r=>{var i;return r?{type:r.topics.type,rating:(i=r.topics)===null||i===void 0?void 0:i.ratings.find(n=>n.tocId===t)}:void 0})}rateMap(t,r){return this.makeRateMapRequest(t,r).then(()=>this.clearRatingIfNecessary())}unrateMap(){return this.makeUnrateMapRequest().then(()=>this.clearRatingIfNecessary())}sendMapFeedback(t,r){return this.makeMapFeedbackRequest(t,r)}rateTopic(t,r,i){return this.makeRateTopicRequest(t,r,i).then(()=>this.clearRatingIfNecessary())}unrateTopic(t){return this.makeUnrateTopicRequest(t).then(()=>this.clearRatingIfNecessary())}async clearRatingIfNecessary(){let t=O.getState().session;t?.sessionAuthenticated&&this.cache.clear("ratingSummary")}sendTopicFeedback(t,r,i){return this.makeTopicFeedbackRequest(t,r,i)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(t){let r=this.getTocNodeNow(t),i=[{tocId:r.tocId,title:r.title}],n=this.getTocNodeNow(r.parentTocId);for(;n;)i.unshift({tocId:n.tocId,title:n.title}),n=this.getTocNodeNow(n.parentTocId);return i}isFeatureAccessible(t,{session:r,ratingType:i}){var n;if(!this.isFeatureAvailable(t))return!1;switch(t){case jt.FEEDBACK:return Qe(r??[],Y.FEEDBACK_USER);case jt.RATING:return Qe(r??[],Y.RATING_USER)&&i!=null&&i!==Oe.NO_RATING;case jt.PRINT:return Qe(r??[],Y.PRINT_USER);case jt.BOOKMARK:return!!r?.sessionAuthenticated;case jt.COLLECTIONS:return Qe(r??[],Y.COLLECTION_USER);case jt.PERSONAL_BOOKS:return Qe(r??[],Y.PERSONAL_BOOK_USER)&&!(!((n=this.getMapNow())===null||n===void 0)&&n.pbkConfidential);default:return!1}}makeAbsolute(t){return this.api.makeAbsolute(t)}};var Ar=class o extends Rr{static async build(t){return new o(new Er,void 0,t)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(t){let r=await this.api.getMap(t);return this.fingerprint=r.fingerprint,r}fetchMapRating(t){return this.api.getMapRating(t)}async fetchPages(t){return await this.getMap(),this.api.getPages(t,this.fingerprint)}fetchTopicHTMLContent(t){return this.api.getTopicHTMLContent(this.mapId,t.contentId,"DESIGNED_READER",this.fingerprint)}fetchTopicMetadata(t){return this.api.getTopic(this.mapId,t.contentId,this.fingerprint)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch(()=>[])}fetchRelativesForDocument(t,r){return this.api.search({query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",filters:[{negative:!1,values:r,key:t}],sort:[],facets:[]})}fetchRelativesForTopicInMap(t,r,i){return this.api.search({query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",filters:[{negative:!1,values:i,key:r},{negative:!1,values:[t],key:"ft:publicationId"}],sort:[],facets:[]})}makeMapFeedbackRequest(t,r){return this.api.sendMapFeedback(this.mapId,t,r)}makeRateMapRequest(t,r){return this.api.rateMap(this.mapId,t,r)}makeRateTopicRequest(t,r,i){return this.api.rateTopic(this.mapId,t,r,i)}makeTopicFeedbackRequest(t,r,i){return this.api.sendTopicFeedback(this.mapId,t,r,i)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(t){return this.api.unrateTopic(this.mapId,t)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(t){return!0}};var Ir=class o{static build(t,r){return new o(zs(t.trim()||"context"),r??Ar.build)}constructor(t,r,i){this.store=t,this.clusteringHelperProvider=i,this.metadataForSwitchToRelatives=new Set,this.loadDebouncer=new we.Debouncer(10),this.initService(r)}async initService(t){return this.service=await t(),this.service.mapId=this.store.getState().mapId,this.reload()}async setMapId(t){t!==this.store.getState().mapId&&(this.store.actions.mapId(t),this.service&&(this.service.mapId=t),await this.reload())}setVisibleTopics(t){this.store.actions.visibleTopics(t)}async awaitService(){return(0,we.waitFor)(()=>this.service)}async navigateToTopic(t,r,i){let n=await this.awaitService(),a=await(i!=null?n.getPage(i):n.getPageByTocId(t??"root"));this.store.actions.currentPage(a),this.store.actions.scrollTarget({tocId:this.resolveValidNonRootTocId(t,a),section:r})}resolveValidNonRootTocId(t,r){var i,n,a;let s=(i=t==="root"?void 0:t)!==null&&i!==void 0?i:r.rootTocId;return r.topics.includes(s)?s:(a=(n=r.topics[0])!==null&&n!==void 0?n:r.hiddenTopics[0])!==null&&a!==void 0?a:"root"}async navigateToPage(t){let i=await(await this.awaitService()).getPage(t);this.store.actions.currentPage(i)}scrollDone(){this.store.actions.scrollTarget({})}async load(){var t;!((t=this.service)===null||t===void 0)&&t.mapId&&this.store.getState().map==null&&await this.loadDebouncer.run(()=>this.fetchData())}clear(){var t;this.store.actions.configuration(void 0),this.store.actions.map(void 0),this.store.actions.toc(void 0),this.store.actions.pagesToc(void 0),this.store.actions.currentPage(void 0),this.store.actions.searchInDocumentQuery(""),this.store.actions.relatives(void 0),(t=this.service)===null||t===void 0||t.clear(),this.clusteringHelper=void 0}reload(){return this.clear(),this.load()}async fetchData(){var t,r,i,n,a;try{await Promise.all([(t=this.service)===null||t===void 0?void 0:t.getConfiguration().then(s=>this.store.actions.configuration(s)),(r=this.service)===null||r===void 0?void 0:r.getMap().then(s=>this.store.actions.map(s)),(i=this.service)===null||i===void 0?void 0:i.getToc().then(s=>this.store.actions.toc(s)),(n=this.service)===null||n===void 0?void 0:n.getPagesToc().then(s=>this.store.actions.pagesToc(s)),(a=this.service)===null||a===void 0?void 0:a.getPaginationConfiguration().then(s=>this.store.actions.paginationConfiguration(s))]).then(()=>{this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives()})}catch(s){this.errorHandler&&!(s instanceof we.CanceledPromiseError)&&this.errorHandler(s)}}fetchRelatives(){var t,r,i;let n=(t=this.store.getState().map)===null||t===void 0?void 0:t.metadata.filter(a=>{var s;return a.key==((s=this.store.getState().configuration)===null||s===void 0?void 0:s.relativePivotMetadata)}).flatMap(a=>a.values);n!==void 0&&n.length>0?(r=this.service)===null||r===void 0||r.getRelativesForDocument((i=this.store.getState().configuration)===null||i===void 0?void 0:i.relativePivotMetadata,n).then(a=>{let s=a.results.flatMap(c=>c.entries);this.store.actions.relatives(s),this.updateClusteringHelper()}):this.updateClusteringHelper()}updateClusteringHelper(){this.clusteringHelper=this.createClusteringHelper(),this.clusteringHelper&&this.store.eventBus.dispatchEvent(new CustomEvent("clustering-helper-created"))}createClusteringHelper(){var t,r;if(this.clusteringHelperProvider)return this.clusteringHelperProvider();let i=this.store.getState().relatives;if(i){let n=i.find(s=>{var c;return((c=s.map)===null||c===void 0?void 0:c.mapId)==this.store.getState().mapId}),a=(r=(t=O.getState().metadataConfiguration)===null||t===void 0?void 0:t.descriptors)!==null&&r!==void 0?r:[];return new we.ClusteringHelper(i,n,this.metadataForSwitchToRelatives,a)}}async navigateToRelativeTopicIfFound(t){var r,i,n;let a=await(0,we.waitFor)(()=>{var h;return(h=this.store.getState().configuration)===null||h===void 0?void 0:h.relativeTopicPivotMetadata}),s=this.store.getState().mapId,p=await(await this.awaitService()).getRelativesForTopicInMap(s,a,[t]);if(!((n=(i=(r=p?.results)===null||r===void 0?void 0:r[0])===null||i===void 0?void 0:i.entries)===null||n===void 0)&&n[0]){let h=p.results[0].entries[0].topic.tocId;return await this.navigateToTopic(h),!0}else return await this.navigateToTopic("root"),!1}setSearchInDocumentQuery(t){this.store.actions.searchInDocumentQuery(t)}registerMetadataForSwitchToRelatives(t){this.metadataForSwitchToRelatives.add(t),this.store.getState().relatives==null?this.fetchRelatives():this.updateClusteringHelper()}unregisterMetadataForSwitchToRelatives(t){this.metadataForSwitchToRelatives.delete(t),this.updateClusteringHelper()}};var ll=u(_());var cl=ll.css`
1550
- `;var Nr=class extends CustomEvent{constructor(t,r){super("ft-reader-map-loaded",{detail:{map:t,toc:r}})}},Tr=class extends CustomEvent{constructor(t,r){super("ft-reader-visible-topics-change",{detail:{visibleTopics:r}})}},_r=class extends CustomEvent{constructor(t){super("ft-reader-navigation-done",{detail:t})}},Lr=class extends CustomEvent{constructor(t){super("ft-reader-load-error",{detail:t})}},kr=class extends Event{constructor(){super("ft-reader-map-not-found")}},$r=class extends Event{constructor(){super("ft-reader-map-unauthorized")}},Pr=class extends Event{constructor(){super("ft-reader-map-forbidden")}},Dr=class extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}};var Zt=function(o,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(o,t,r,i);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},Jl=o=>t=>+(t??"NaN")>0?+t:o,xt=class extends Kt.FtLitElementRedux{constructor(){super(),this.visibleTopics=[],this.scrollToTargetDebouncer=new Kt.Debouncer(5),this.navigationDebouncer=new Kt.Debouncer(10),this.mapLoadedEventDebouncer=new Kt.Debouncer(50),this.addStore(O)}render(){return Vo.html`
1549
+ `}focus(e){var r;(r=this.container)===null||r===void 0||r.focus(e)}click(){var e;(e=this.container)===null||e===void 0||e.click()}confirmSuggestion(){this.dispatchEvent(new zn(this.getValue()))}getValue(){return this.value||this.textContent}get textContent(){return this.assignedNodes.map(e=>e.textContent).join("").trim()}onKeyDown(e){["Enter"," "].includes(e.key)&&(e.preventDefault(),e.stopPropagation(),this.confirmSuggestion())}};_t.elementDefinitions={"ft-ripple":H,"ft-typography":ce,"ft-icon":me};_t.styles=Bc;Wn([(0,Hr.property)()],_t.prototype,"value",void 0);Wn([(0,Hr.query)(".ft-text-field-suggestion")],_t.prototype,"container",void 0);Wn([(0,Hr.queryAssignedNodes)()],_t.prototype,"assignedNodes",void 0);(0,Hn.customElement)("ft-text-field")(z);(0,Hn.customElement)("ft-text-field-suggestion")(_t);var fd=m(E());var vo=m($()),Qt=m(j()),Ye=m(E());var Pt=m(E());var Wc=m(E()),Hc=t=>Wc.FtReduxStore.get({name:"ft-reader-"+t,initialState:{mapId:void 0,visibleTopics:[],map:void 0,toc:void 0,pagesToc:void 0,paginationConfiguration:void 0,currentPage:void 0,scrollTarget:void 0,configuration:void 0,searchInDocumentQuery:void 0,relatives:void 0}});var Vn=class{constructor(e){this.paginatedToc=e,this.nodeByTocId={},this.knownPrettyUrls=new Set,this.duplicatedPrettyUrls=new Set,this.pages=[],this.pageByTocId={}}build(){return{paginationConfiguration:this.paginatedToc.configuration,toc:this.convertNodes(this.paginatedToc.paginatedToc,1),pagesToc:this.extractPagesToc(this.paginatedToc.paginatedToc,1),nodeByTocId:this.nodeByTocId,duplicatedPrettyUrls:this.duplicatedPrettyUrls,pages:this.pages,pageByTocId:this.pageByTocId}}extractPagesToc(e,r,i){return e.flatMap(n=>(n.pageConfiguration&&this.registerPage(this.buildPage(n,i)),n.tocId==null?this.extractPagesToc(n.children,r,i):[{tocId:n.tocId,title:n.title,depth:r,children:this.extractPagesToc(n.children,r+1,n.tocId)}]))}convertNodes(e,r,i){return e.flatMap(n=>{var a,s,l;if(n.tocId==null)return[...this.convertSectionNodes((a=n.pageToc)!==null&&a!==void 0?a:[],r,n.tocId),...this.convertNodes(n.children,r,n.tocId)];let d=(s=n.prettyUrl)===null||s===void 0?void 0:s.replace(/^\//,""),p={tocId:n.tocId,contentId:n.contentId,title:n.title,hasRating:n.hasRating,origin:n.origin,prettyUrl:d,depth:r,parentTocId:i,children:[]};this.register(p);let u=this.convertSectionNodes((l=n.pageToc)!==null&&l!==void 0?l:[],r+1,n.tocId),g=this.convertNodes(n.children,r+1,p.tocId);return p.children=[...u,...g],[p]})}convertSectionNodes(e,r,i){return e.flatMap(n=>{var a;let s=(a=n.prettyUrl)===null||a===void 0?void 0:a.replace(/^\//,""),l={...n,prettyUrl:s,depth:r,parentTocId:i,children:[]};return this.register(l),l.children=this.convertSectionNodes(n.children,r+1,n.tocId),[l]})}buildPage(e,r){var i,n,a,s,l,d;let p={number:this.pages.length+1,title:(i=e.title)!==null&&i!==void 0?i:"",rootTocId:(n=e.tocId)!==null&&n!==void 0?n:"root",toc:((a=e.pageToc)!==null&&a!==void 0?a:[]).map(y=>this.nodeByTocId[y.tocId]),topics:[],hiddenTopics:[],breadcrumb:r?this.buildBreadcrumb(this.nodeByTocId[r]):[]},u=(y,v)=>(v?p.topics:p.hiddenTopics).push(y),g=(l=(s=e.pageConfiguration)===null||s===void 0?void 0:s.parentsVisibility)!==null&&l!==void 0?l:[];return p.breadcrumb.forEach((y,v)=>{u(y,g[v])}),e.tocId&&u(e.tocId,e.pageConfiguration.isVisible),p.topics.push(...this.tocIds((d=e.pageToc)!==null&&d!==void 0?d:[])),p}registerPage(e){for(let r of[...e.topics,...e.hiddenTopics])this.pageByTocId[r]||(this.pageByTocId[r]=e);this.pages.push(e)}tocIds(e){return e.flatMap(r=>[r.tocId,...this.tocIds(r.children)])}buildBreadcrumb(e){let r=[e.tocId];for(;e?.parentTocId;)r.unshift(e.parentTocId),e=this.nodeByTocId[e.parentTocId];return r}register(e){e.prettyUrl&&(this.knownPrettyUrls.has(e.prettyUrl)&&this.duplicatedPrettyUrls.add(e.prettyUrl),this.knownPrettyUrls.add(e.prettyUrl)),this.nodeByTocId[e.tocId]=e}},di=class{convertPaginatedToc(e){return new Vn(e).build()}};var yS=m(jc(),1);var Gc;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Gc||(Gc={}));var Kc;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Kc||(Kc={}));var Zc;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"})(Zc||(Zc={}));var qc;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT"})(qc||(qc={}));var Yc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Yc||(Yc={}));var Xc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Xc||(Xc={}));var Jc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Jc||(Jc={}));var kt;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(kt||(kt={}));var Qc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(Qc||(Qc={}));var ed;(function(t){t.ASC="ASC",t.DESC="DESC"})(ed||(ed={}));var td;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(td||(td={}));var rd;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(rd||(rd={}));var od;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"})(od||(od={}));var id;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(id||(id={}));var nd;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"})(nd||(nd={}));var ad;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"})(ad||(ad={}));var sd;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS"})(sd||(sd={}));var ie;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"})(ie||(ie={}));var ld;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(ld||(ld={}));var Fp={[ie.PERSONAL_BOOK_SHARE_USER]:[ie.PERSONAL_BOOK_USER],[ie.HTML_EXPORT_USER]:[ie.PERSONAL_BOOK_USER],[ie.PDF_EXPORT_USER]:[ie.PERSONAL_BOOK_USER],[ie.KHUB_ADMIN]:[ie.CONTENT_PUBLISHER],[ie.ADMIN]:[ie.KHUB_ADMIN,ie.USERS_ADMIN,ie.PORTAL_ADMIN],[ie.DEVELOPER]:[ie.BETA_USER,ie.DEBUG_USER]};function cd(t,e){return t===e||(Fp[t]??[]).some(r=>cd(r,e))}function gr(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(i=>cd(i,e))}var pi=class extends vt{get mapId(){return this._mapId}set mapId(e){e!==this._mapId&&this.clear(),this._mapId=e}constructor(e,r,i){super(!1,r),this.converter=e,this._mapId=i,this.initCache()}async withMapId(e){return this._mapId?e(this._mapId):void 0}initCache(){this.cache.registerFinal("configuration",()=>this.api.getReaderConfiguration()),this.cache.register("map",()=>this.withMapId(e=>this.fetchMap(e))),this.cache.register("enrichedToc",()=>this.withMapId(e=>this.fetchPages(e).then(r=>this.converter.convertPaginatedToc(r)))),this.cache.register("ratingSummary",()=>{var e,r;return gr((r=(e=N.getState().session)===null||e===void 0?void 0:e.profile.roles)!==null&&r!==void 0?r:[],"RATING_USER")?this.withMapId(n=>this.fetchMapRating(n)):Promise.resolve()})}clear(){this.cache.clearAll()}getMap(){return this.cache.get("map")}getMapNow(){return this.cache.getNow("map")}getConfiguration(){return this.cache.get("configuration")}getEnrichedToc(){return this.cache.get("enrichedToc")}get enrichedToc(){return this.cache.getNow("enrichedToc")}async getPaginationConfiguration(){return(await this.getEnrichedToc()).paginationConfiguration}async getToc(){return(await this.getEnrichedToc()).toc}async getPagesToc(){return(await this.getEnrichedToc()).pagesToc}async getTocNode(e){return(await this.getEnrichedToc()).nodeByTocId[e]}getTocNodeNow(e){var r;return(r=this.enrichedToc)===null||r===void 0?void 0:r.nodeByTocId[e]}async getPage(e){let r=await this.getEnrichedToc();return r.pages[e-1]||r.pages[0]}async getPageByTocId(e){let r=await this.getEnrichedToc();return r.pageByTocId[e]||r.pages[0]}getTopicInfo(e){return this.cache.get("topic-"+e.tocId,()=>this.fetchTopicMetadata(e))}getTopicContent(e){return this.cache.get("topic-content-"+e.tocId,()=>this.fetchTopicHTMLContent(e))}getAttachments(){return this.cache.get("map-attachments",()=>this.fetchAttachments())}getRelativesForDocument(e,r){return this.cache.get("document-relatives-"+e+"-"+r.join("-"),()=>this.fetchRelativesForDocument(e,r))}getRelativesForTopicInMap(e,r,i){return this.cache.get("topic-relatives-"+[e,r,...i].join("-"),()=>this.fetchRelativesForTopicInMap(e,r,i))}getAttachmentDownloadLink(e){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(e).content}?download=true`)}getLink(e,r,i){let n=this.getNavigationData(e,r,i),a=this.getReaderLinkPrefix()+(n.prettyUrl?n.prettyUrl:`${n.mapId}/${n.tocId}`),s=new URL(a,this.api.tenantBaseUrl);return n.page!=null&&s.searchParams.set("page",`${n.page}`),n.prettyUrlDuplicated&&s.searchParams.set("tocId",n.tocId),n.section!=null&&s.searchParams.set("section",n.section),s.href}getNavigationData(e,r,i){var n,a;e=e||"root";let s=this.enrichedToc,l=s?.pageByTocId[e],d=s?.nodeByTocId[e],p=d?.prettyUrl;return{mapId:this.mapId,tocId:e,topicTitle:(n=d?.title)!==null&&n!==void 0?n:"",page:r&&l&&l.number!==r?r:void 0,prettyUrl:p?.replace(/^r\//,""),prettyUrlDuplicated:(a=s?.duplicatedPrettyUrls.has(p??""))!==null&&a!==void 0?a:!1,section:i}}async getAccurateNavigationData(e,r,i){return await this.getEnrichedToc(),this.getNavigationData(e,r,i)}getRatingSummary(){return this.cache.get("ratingSummary")}reloadRating(){return this.cache.clear("ratingSummary"),this.getRatingSummary()}getMapRating(){return this.getRatingSummary().then(e=>e?.publication)}getTopicRating(e){return this.getRatingSummary().then(r=>{var i;return r?{type:r.topics.type,rating:(i=r.topics)===null||i===void 0?void 0:i.ratings.find(n=>n.tocId===e)}:void 0})}rateMap(e,r){return this.makeRateMapRequest(e,r).then(()=>this.clearRatingIfNecessary())}unrateMap(){return this.makeUnrateMapRequest().then(()=>this.clearRatingIfNecessary())}sendMapFeedback(e,r){return this.makeMapFeedbackRequest(e,r)}rateTopic(e,r,i){return this.makeRateTopicRequest(e,r,i).then(()=>this.clearRatingIfNecessary())}unrateTopic(e){return this.makeUnrateTopicRequest(e).then(()=>this.clearRatingIfNecessary())}async clearRatingIfNecessary(){let e=N.getState().session;e?.sessionAuthenticated&&this.cache.clear("ratingSummary")}sendTopicFeedback(e,r,i){return this.makeTopicFeedbackRequest(e,r,i)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(e){let r=this.getTocNodeNow(e),i=[{tocId:r.tocId,title:r.title}],n=this.getTocNodeNow(r.parentTocId);for(;n;)i.unshift({tocId:n.tocId,title:n.title}),n=this.getTocNodeNow(n.parentTocId);return i}isFeatureAccessible(e,{session:r,ratingType:i}){var n;if(!this.isFeatureAvailable(e))return!1;switch(e){case Qe.FEEDBACK:return gr(r??[],ie.FEEDBACK_USER);case Qe.RATING:return gr(r??[],ie.RATING_USER)&&i!=null&&i!==kt.NO_RATING;case Qe.PRINT:return gr(r??[],ie.PRINT_USER);case Qe.BOOKMARK:return!!r?.sessionAuthenticated;case Qe.COLLECTIONS:return gr(r??[],ie.COLLECTION_USER);case Qe.PERSONAL_BOOKS:return gr(r??[],ie.PERSONAL_BOOK_USER)&&!(!((n=this.getMapNow())===null||n===void 0)&&n.pbkConfidential);default:return!1}}makeAbsolute(e){return this.api.makeAbsolute(e)}};var fi=class t extends pi{static async build(e){return new t(new di,void 0,e)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(e){let r=await this.api.getMap(e);return this.fingerprint=r.fingerprint,r}fetchMapRating(e){return this.api.getMapRating(e)}async fetchPages(e){return await this.getMap(),this.api.getPages(e,this.fingerprint)}fetchTopicHTMLContent(e){return this.api.getTopicHTMLContent(this.mapId,e.contentId,"DESIGNED_READER",this.fingerprint)}fetchTopicMetadata(e){return this.api.getTopic(this.mapId,e.contentId,this.fingerprint)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch(()=>[])}fetchRelativesForDocument(e,r){return this.api.search({query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",filters:[{negative:!1,values:r,key:e}],sort:[],facets:[]})}fetchRelativesForTopicInMap(e,r,i){return this.api.search({query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",filters:[{negative:!1,values:i,key:r},{negative:!1,values:[e],key:"ft:publicationId"}],sort:[],facets:[]})}makeMapFeedbackRequest(e,r){return this.api.sendMapFeedback(this.mapId,e,r)}makeRateMapRequest(e,r){return this.api.rateMap(this.mapId,e,r)}makeRateTopicRequest(e,r,i){return this.api.rateTopic(this.mapId,e,r,i)}makeTopicFeedbackRequest(e,r,i){return this.api.sendTopicFeedback(this.mapId,e,r,i)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(e){return this.api.unrateTopic(this.mapId,e)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(e){return!0}};var ui=class t{static build(e,r){return new t(Hc(e.trim()||"context"),r??fi.build)}constructor(e,r,i){this.store=e,this.clusteringHelperProvider=i,this.metadataForSwitchToRelatives=new Set,this.loadDebouncer=new Pt.Debouncer(10),this.initService(r)}async initService(e){return this.service=await e(),this.service.mapId=this.store.getState().mapId,this.reload()}async setMapId(e){e!==this.store.getState().mapId&&(this.store.actions.mapId(e),this.service&&(this.service.mapId=e),await this.reload())}setVisibleTopics(e){this.store.actions.visibleTopics(e)}async awaitService(){return(0,Pt.waitFor)(()=>this.service)}async navigateToTopic(e,r,i){let n=await this.awaitService(),a=await(i!=null?n.getPage(i):n.getPageByTocId(e??"root"));this.store.actions.currentPage(a),this.store.actions.scrollTarget({tocId:this.resolveValidNonRootTocId(e,a),section:r})}resolveValidNonRootTocId(e,r){var i,n,a;let s=(i=e==="root"?void 0:e)!==null&&i!==void 0?i:r.rootTocId;return r.topics.includes(s)?s:(a=(n=r.topics[0])!==null&&n!==void 0?n:r.hiddenTopics[0])!==null&&a!==void 0?a:"root"}async navigateToPage(e){let i=await(await this.awaitService()).getPage(e);this.store.actions.currentPage(i)}scrollDone(){this.store.actions.scrollTarget({})}async load(){var e;!((e=this.service)===null||e===void 0)&&e.mapId&&this.store.getState().map==null&&await this.loadDebouncer.run(()=>this.fetchData())}clear(){var e;this.store.actions.configuration(void 0),this.store.actions.map(void 0),this.store.actions.toc(void 0),this.store.actions.pagesToc(void 0),this.store.actions.currentPage(void 0),this.store.actions.searchInDocumentQuery(""),this.store.actions.relatives(void 0),(e=this.service)===null||e===void 0||e.clear(),this.clusteringHelper=void 0}reload(){return this.clear(),this.load()}async fetchData(){var e,r,i,n,a;try{await Promise.all([(e=this.service)===null||e===void 0?void 0:e.getConfiguration().then(s=>this.store.actions.configuration(s)),(r=this.service)===null||r===void 0?void 0:r.getMap().then(s=>this.store.actions.map(s)),(i=this.service)===null||i===void 0?void 0:i.getToc().then(s=>this.store.actions.toc(s)),(n=this.service)===null||n===void 0?void 0:n.getPagesToc().then(s=>this.store.actions.pagesToc(s)),(a=this.service)===null||a===void 0?void 0:a.getPaginationConfiguration().then(s=>this.store.actions.paginationConfiguration(s))]).then(()=>{this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives()})}catch(s){this.errorHandler&&!(s instanceof Pt.CanceledPromiseError)&&this.errorHandler(s)}}fetchRelatives(){var e,r,i;let n=(e=this.store.getState().map)===null||e===void 0?void 0:e.metadata.filter(a=>{var s;return a.key==((s=this.store.getState().configuration)===null||s===void 0?void 0:s.relativePivotMetadata)}).flatMap(a=>a.values);n!==void 0&&n.length>0?(r=this.service)===null||r===void 0||r.getRelativesForDocument((i=this.store.getState().configuration)===null||i===void 0?void 0:i.relativePivotMetadata,n).then(a=>{let s=a.results.flatMap(l=>l.entries);this.store.actions.relatives(s),this.updateClusteringHelper()}):this.updateClusteringHelper()}updateClusteringHelper(){this.clusteringHelper=this.createClusteringHelper(),this.clusteringHelper&&this.store.eventBus.dispatchEvent(new CustomEvent("clustering-helper-created"))}createClusteringHelper(){var e,r;if(this.clusteringHelperProvider)return this.clusteringHelperProvider();let i=this.store.getState().relatives;if(i){let n=i.find(s=>{var l;return((l=s.map)===null||l===void 0?void 0:l.mapId)==this.store.getState().mapId}),a=(r=(e=N.getState().metadataConfiguration)===null||e===void 0?void 0:e.descriptors)!==null&&r!==void 0?r:[];return new Pt.ClusteringHelper(i,n,this.metadataForSwitchToRelatives,a)}}async navigateToRelativeTopicIfFound(e){var r,i,n;let a=await(0,Pt.waitFor)(()=>{var p;return(p=this.store.getState().configuration)===null||p===void 0?void 0:p.relativeTopicPivotMetadata}),s=this.store.getState().mapId,d=await(await this.awaitService()).getRelativesForTopicInMap(s,a,[e]);if(!((n=(i=(r=d?.results)===null||r===void 0?void 0:r[0])===null||i===void 0?void 0:i.entries)===null||n===void 0)&&n[0]){let p=d.results[0].entries[0].topic.tocId;return await this.navigateToTopic(p),!0}else return await this.navigateToTopic("root"),!1}setSearchInDocumentQuery(e){this.store.actions.searchInDocumentQuery(e)}registerMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.add(e),this.store.getState().relatives==null?this.fetchRelatives():this.updateClusteringHelper()}unregisterMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.delete(e),this.updateClusteringHelper()}};var dd=m($());var pd=dd.css`
1550
+ `;var hi=class extends CustomEvent{constructor(e,r){super("ft-reader-map-loaded",{detail:{map:e,toc:r}})}},mi=class extends CustomEvent{constructor(e,r){super("ft-reader-visible-topics-change",{detail:{visibleTopics:r}})}},gi=class extends CustomEvent{constructor(e){super("ft-reader-navigation-done",{detail:e})}},yi=class extends CustomEvent{constructor(e){super("ft-reader-load-error",{detail:e})}},bi=class extends Event{constructor(){super("ft-reader-map-not-found")}},vi=class extends Event{constructor(){super("ft-reader-map-unauthorized")}},xi=class extends Event{constructor(){super("ft-reader-map-forbidden")}},Si=class extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}};var Xe=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},zp=t=>e=>+(e??"NaN")>0?+e:t,we=class extends Ye.FtLitElementRedux{constructor(){super(),this.visibleTopics=[],this.scrollToTargetDebouncer=new Ye.Debouncer(5),this.navigationDebouncer=new Ye.Debouncer(10),this.mapLoadedEventDebouncer=new Ye.Debouncer(50),this.addStore(N)}render(){return vo.html`
1551
1551
  ${this.importStyleIfNeeded()}
1552
1552
  <slot @register-ft-reader-component=${this.registerComponent}></slot>
1553
- `}importStyleIfNeeded(){var t,r;let i=(t=this.stateManager.service)===null||t===void 0?void 0:t.themeStylesheet();return!i||window.location.href.startsWith((r=this.baseUrl)!==null&&r!==void 0?r:"")?Vo.nothing:Vo.html`
1553
+ `}importStyleIfNeeded(){var e,r;let i=(e=this.stateManager.service)===null||e===void 0?void 0:e.themeStylesheet();return!i||window.location.href.startsWith((r=this.baseUrl)!==null&&r!==void 0?r:"")?vo.nothing:vo.html`
1554
1554
  <style>
1555
1555
  @import "${i}"
1556
1556
  </style>
1557
- `}get stateManager(){return this._stateManager==null&&(this._stateManager=Ir.build(this.id||(""+Math.round(Math.random()*999e3)).padStart(6,"0"),this.readerServiceProvider),this._stateManager.errorHandler=t=>this.handleLoadError(t),this.addStore(this.stateManager.store,"reader")),this._stateManager}connectedCallback(){super.connectedCallback(),this.stateManager.setMapId(this.mapId),this.stateManager.awaitService().then(t=>{let r=t.fontsStylesheet();if(r&&!window.location.href.startsWith(this.baseUrl)&&!document.querySelector(`head link[href="${r}"]`)){let i=document.createElement("link");i.setAttribute("rel","stylesheet"),i.setAttribute("href",r),document.head.append(i)}})}update(t){super.update(t),t.has("readerServiceProvider")&&this.readerServiceProvider&&this.stateManager.initService(this.readerServiceProvider),t.has("mapId")&&this.mapId&&(this.stateManager.setMapId(this.mapId),this.lastNotifiedNotFoundRelative=void 0),t.has("searchInDocumentQuery")&&this.searchInDocumentQuery!=null&&this.stateManager.setSearchInDocumentQuery(this.searchInDocumentQuery),["tocId","section","page","mapId","topicPivot"].some(r=>t.has(r))&&this.mapId&&this.navigateToTarget()}contentAvailableCallback(t){var r;if(super.contentAvailableCallback(t),(t.has("map")||t.has("toc"))&&this.sendLoadedEventIfLoaded(),t.has("scrollTarget")&&((r=this.scrollTarget)===null||r===void 0?void 0:r.tocId)==null){let i=t.get("scrollTarget");i?.tocId!=null&&this.scrollToTargetDebouncer.run(()=>{var n;return this.stateManager.service.getAccurateNavigationData(i.tocId,(n=this.currentPage)===null||n===void 0?void 0:n.number,i.section).then(a=>this.dispatchEvent(new _r(a)))})}t.has("visibleTopics")&&Promise.all(this.visibleTopics.map(i=>{var n;return this.stateManager.service.getAccurateNavigationData(i,(n=this.currentPage)===null||n===void 0?void 0:n.number)})).then(i=>{let n=i.filter(a=>a!=null&&a.topicTitle!=="").map(a=>{var s;return{tocId:a.tocId,title:a.topicTitle,page:a.page,prettyUrl:a.prettyUrl,prettyUrlDuplicated:a.prettyUrlDuplicated,breadcrumb:(s=this.stateManager.service)===null||s===void 0?void 0:s.buildBreadcrumb(a.tocId)}});this.dispatchEvent(new Tr(this.map,n))})}clear(){this.stateManager.clear()}async reload(){this.clear(),await this.navigateToTarget()}async navigateToTarget(){await this.stateManager.load(),await this.navigationDebouncer.run(async()=>{this.topicPivot!=null?!await this.stateManager.navigateToRelativeTopicIfFound(this.topicPivot)&&this.lastNotifiedNotFoundRelative!==this.mapId+this.topicPivot?(this.dispatchEvent(new Dr),this.lastNotifiedNotFoundRelative=this.mapId+this.topicPivot):this.lastNotifiedNotFoundRelative=void 0:this.tocId!=null?await this.stateManager.navigateToTopic(this.tocId,this.section,this.page):this.page!=null&&await this.stateManager.navigateToPage(this.page)})}registerComponent(t){t.stopPropagation();let r=t.composedPath()[0];this.register(r)}register(t){t.setReaderStateManager(this.stateManager)}handleLoadError(t){let r=t;r.status===401?this.dispatchEvent(new $r):r.status===403?this.dispatchEvent(new Pr):r.status===404?this.dispatchEvent(new kr):this.dispatchEvent(new Lr(t))}reloadBookmarks(){Es.reloadBookmarks()}async reloadRating(){var t,r;await((t=this.stateManager.service)===null||t===void 0?void 0:t.reloadRating()),(r=this.stateManager.store)===null||r===void 0||r.eventBus.dispatchEvent(new CustomEvent("rating-changed"))}sendLoadedEventIfLoaded(){this.mapLoadedEventDebouncer.run(()=>{this.map&&this.toc&&this.dispatchEvent(new Nr(this.map,this.toc))})}};xt.styles=cl;Zt([(0,Kt.redux)({store:O.name})],xt.prototype,"baseUrl",void 0);Zt([(0,Ue.property)()],xt.prototype,"mapId",void 0);Zt([(0,Ue.property)()],xt.prototype,"tocId",void 0);Zt([(0,Ue.property)()],xt.prototype,"section",void 0);Zt([(0,Ue.property)()],xt.prototype,"topicPivot",void 0);Zt([(0,Ue.property)()],xt.prototype,"searchInDocumentQuery",void 0);Zt([(0,Ue.property)({type:Number,converter:{fromAttribute:Jl()}})],xt.prototype,"page",void 0);Zt([(0,Kt.redux)({store:"reader"})],xt.prototype,"map",void 0);Zt([(0,Kt.redux)({store:"reader"})],xt.prototype,"toc",void 0);Zt([(0,Kt.redux)({store:"reader"})],xt.prototype,"visibleTopics",void 0);Zt([(0,Kt.redux)({store:"reader"})],xt.prototype,"currentPage",void 0);Zt([(0,Kt.redux)({store:"reader"})],xt.prototype,"scrollTarget",void 0);Zt([(0,Ue.property)({attribute:!1})],xt.prototype,"readerServiceProvider",void 0);(0,dl.customElement)("ft-reader-context")(xt);var Br=class extends CustomEvent{constructor(t){super("send-feedback",{detail:t})}},Ur=class extends CustomEvent{constructor(t){super("ft-reader-topic-feedback",{composed:!0,bubbles:!0,detail:t})}},Mr=class extends CustomEvent{constructor(t){super("ft-reader-feedback",{composed:!0,bubbles:!0,detail:t})}},Fr=class extends CustomEvent{constructor(t){super("ft-reader-mailer-topic-feedback",{composed:!0,bubbles:!0,detail:{topic:t}})}},zr=class extends CustomEvent{constructor(){super("ft-reader-mailer-map-feedback",{composed:!0,bubbles:!0})}};var mt=function(o,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(o,t,r,i);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},W=class extends De(Ee){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.ratingAllowed=!1,this.from="",this.feedbackMessage="",this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.addI18nContext(k,_s)}get canAccessFeedback(){var t;return(t=this.service)===null||t===void 0?void 0:t.isFeatureAccessible(jt.FEEDBACK,{session:this.session})}get canAccessRating(){var t,r;return(t=this.service)===null||t===void 0?void 0:t.isFeatureAccessible(jt.RATING,{session:this.session,ratingType:(r=this.ratingSummary)===null||r===void 0?void 0:r.type})}get configuredRatingType(){var t,r;return(r=this.ratingAllowed?(t=this.ratingSummary)===null||t===void 0?void 0:t.type:"NO_RATING")!==null&&r!==void 0?r:"NO_RATING"}get ratingType(){var t,r,i;return(i=(r=(t=this.ratingSummary)===null||t===void 0?void 0:t.rating)===null||r===void 0?void 0:r.type)!==null&&i!==void 0?i:"NO_RATING"}get ratingValue(){var t,r,i;return(i=(r=(t=this.ratingSummary)===null||t===void 0?void 0:t.rating)===null||r===void 0?void 0:r.value)!==null&&i!==void 0?i:-1}get ratingDate(){var t,r;let i=(r=(t=this.ratingSummary)===null||t===void 0?void 0:t.rating)===null||r===void 0?void 0:r.date;return typeof i=="string"?(0,Wr.parseDate)(i):i}render(){return!this.canAccessFeedback&&!this.canAccessRating?at.nothing:at.html`
1557
+ `}get stateManager(){return this._stateManager==null&&(this._stateManager=ui.build(this.id||(""+Math.round(Math.random()*999e3)).padStart(6,"0"),this.readerServiceProvider),this._stateManager.errorHandler=e=>this.handleLoadError(e),this.addStore(this.stateManager.store,"reader")),this._stateManager}connectedCallback(){super.connectedCallback(),this.stateManager.setMapId(this.mapId),this.stateManager.awaitService().then(e=>{let r=e.fontsStylesheet();if(r&&!window.location.href.startsWith(this.baseUrl)&&!document.querySelector(`head link[href="${r}"]`)){let i=document.createElement("link");i.setAttribute("rel","stylesheet"),i.setAttribute("href",r),document.head.append(i)}})}update(e){super.update(e),e.has("readerServiceProvider")&&this.readerServiceProvider&&this.stateManager.initService(this.readerServiceProvider),e.has("mapId")&&this.mapId&&(this.stateManager.setMapId(this.mapId),this.lastNotifiedNotFoundRelative=void 0),e.has("searchInDocumentQuery")&&this.searchInDocumentQuery!=null&&this.stateManager.setSearchInDocumentQuery(this.searchInDocumentQuery),["tocId","section","page","mapId","topicPivot"].some(r=>e.has(r))&&this.mapId&&this.navigateToTarget()}contentAvailableCallback(e){var r;if(super.contentAvailableCallback(e),(e.has("map")||e.has("toc"))&&this.sendLoadedEventIfLoaded(),e.has("scrollTarget")&&((r=this.scrollTarget)===null||r===void 0?void 0:r.tocId)==null){let i=e.get("scrollTarget");i?.tocId!=null&&this.scrollToTargetDebouncer.run(()=>{var n;return this.stateManager.service.getAccurateNavigationData(i.tocId,(n=this.currentPage)===null||n===void 0?void 0:n.number,i.section).then(a=>this.dispatchEvent(new gi(a)))})}e.has("visibleTopics")&&Promise.all(this.visibleTopics.map(i=>{var n;return this.stateManager.service.getAccurateNavigationData(i,(n=this.currentPage)===null||n===void 0?void 0:n.number)})).then(i=>{let n=i.filter(a=>a!=null&&a.topicTitle!=="").map(a=>{var s;return{tocId:a.tocId,title:a.topicTitle,page:a.page,prettyUrl:a.prettyUrl,prettyUrlDuplicated:a.prettyUrlDuplicated,breadcrumb:(s=this.stateManager.service)===null||s===void 0?void 0:s.buildBreadcrumb(a.tocId)}});this.dispatchEvent(new mi(this.map,n))})}clear(){this.stateManager.clear()}async reload(){this.clear(),await this.navigateToTarget()}async navigateToTarget(){await this.stateManager.load(),await this.navigationDebouncer.run(async()=>{this.topicPivot!=null?!await this.stateManager.navigateToRelativeTopicIfFound(this.topicPivot)&&this.lastNotifiedNotFoundRelative!==this.mapId+this.topicPivot?(this.dispatchEvent(new Si),this.lastNotifiedNotFoundRelative=this.mapId+this.topicPivot):this.lastNotifiedNotFoundRelative=void 0:this.tocId!=null?await this.stateManager.navigateToTopic(this.tocId,this.section,this.page):this.page!=null&&await this.stateManager.navigateToPage(this.page)})}registerComponent(e){e.stopPropagation();let r=e.composedPath()[0];this.register(r)}register(e){e.setReaderStateManager(this.stateManager)}handleLoadError(e){let r=e;r.status===401?this.dispatchEvent(new vi):r.status===403?this.dispatchEvent(new xi):r.status===404?this.dispatchEvent(new bi):this.dispatchEvent(new yi(e))}reloadBookmarks(){Ac.reloadBookmarks()}async reloadRating(){var e,r;await((e=this.stateManager.service)===null||e===void 0?void 0:e.reloadRating()),(r=this.stateManager.store)===null||r===void 0||r.eventBus.dispatchEvent(new CustomEvent("rating-changed"))}sendLoadedEventIfLoaded(){this.mapLoadedEventDebouncer.run(()=>{this.map&&this.toc&&this.dispatchEvent(new hi(this.map,this.toc))})}};we.styles=pd;Xe([(0,Ye.redux)({store:N.name})],we.prototype,"baseUrl",void 0);Xe([(0,Qt.property)()],we.prototype,"mapId",void 0);Xe([(0,Qt.property)()],we.prototype,"tocId",void 0);Xe([(0,Qt.property)()],we.prototype,"section",void 0);Xe([(0,Qt.property)()],we.prototype,"topicPivot",void 0);Xe([(0,Qt.property)()],we.prototype,"searchInDocumentQuery",void 0);Xe([(0,Qt.property)({type:Number,converter:{fromAttribute:zp()}})],we.prototype,"page",void 0);Xe([(0,Ye.redux)({store:"reader"})],we.prototype,"map",void 0);Xe([(0,Ye.redux)({store:"reader"})],we.prototype,"toc",void 0);Xe([(0,Ye.redux)({store:"reader"})],we.prototype,"visibleTopics",void 0);Xe([(0,Ye.redux)({store:"reader"})],we.prototype,"currentPage",void 0);Xe([(0,Ye.redux)({store:"reader"})],we.prototype,"scrollTarget",void 0);Xe([(0,Qt.property)({attribute:!1})],we.prototype,"readerServiceProvider",void 0);(0,fd.customElement)("ft-reader-context")(we);var Oi=class extends CustomEvent{constructor(e){super("send-feedback",{detail:e})}},wi=class extends CustomEvent{constructor(e){super("ft-reader-topic-feedback",{composed:!0,bubbles:!0,detail:e})}},Ci=class extends CustomEvent{constructor(e){super("ft-reader-feedback",{composed:!0,bubbles:!0,detail:e})}},Ei=class extends CustomEvent{constructor(e){super("ft-reader-mailer-topic-feedback",{composed:!0,bubbles:!0,detail:{topic:e}})}},Ai=class extends CustomEvent{constructor(){super("ft-reader-mailer-map-feedback",{composed:!0,bubbles:!0})}};var Se=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Y=class extends Xt(Lt){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.ratingAllowed=!1,this.from="",this.feedbackMessage="",this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.addI18nContext(F,Pc)}get canAccessFeedback(){var e;return(e=this.service)===null||e===void 0?void 0:e.isFeatureAccessible(Qe.FEEDBACK,{session:this.session})}get canAccessRating(){var e,r;return(e=this.service)===null||e===void 0?void 0:e.isFeatureAccessible(Qe.RATING,{session:this.session,ratingType:(r=this.ratingSummary)===null||r===void 0?void 0:r.type})}get configuredRatingType(){var e,r;return(r=this.ratingAllowed?(e=this.ratingSummary)===null||e===void 0?void 0:e.type:"NO_RATING")!==null&&r!==void 0?r:"NO_RATING"}get ratingType(){var e,r,i;return(i=(r=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||r===void 0?void 0:r.type)!==null&&i!==void 0?i:"NO_RATING"}get ratingValue(){var e,r,i;return(i=(r=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||r===void 0?void 0:r.value)!==null&&i!==void 0?i:-1}get ratingDate(){var e,r;let i=(r=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||r===void 0?void 0:r.date;return typeof i=="string"?(0,Ri.parseDate)(i):i}render(){return!this.canAccessFeedback&&!this.canAccessRating?pe.nothing:pe.html`
1558
1558
  <div class="ft-reader-feedback">
1559
- ${this.hideTitle?at.nothing:at.html`
1559
+ ${this.hideTitle?pe.nothing:pe.html`
1560
1560
  <ft-typography variant="title" part="main-title">
1561
1561
  ${this.i18n(this.i18nProperties.feedbackMainTitle)}
1562
1562
  </ft-typography>
@@ -1564,7 +1564,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
1564
1564
  ${this.renderRatingSection()}
1565
1565
  ${this.renderFeedbackSection()}
1566
1566
  </div>
1567
- `}renderRatingSection(){return this.canAccessRating?at.html`
1567
+ `}renderRatingSection(){return this.canAccessRating?pe.html`
1568
1568
  <div class="ft-reader-feedback--rating" part="rating-container">
1569
1569
  <ft-typography variant="title-dense" part="section-title" class="ft-reader-feedback--section-title">
1570
1570
  ${this.i18n(this.ratingSummary.type==="DICHOTOMOUS"?this.i18nProperties.dichotomousRatingSectionTitle:this.i18nProperties.ratingSectionTitle)}
@@ -1574,20 +1574,20 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
1574
1574
  ${this.renderRatingDate()}
1575
1575
  </ft-typography>
1576
1576
  </div>
1577
- `:at.nothing}renderRatingDate(){let t=this.ratingDate;if(t==null)return k.messages.notRated();if(t.getTime()>new Date().getTime()-6e4)return k.messages.ratedNow();let r=new Date().toLocaleDateString(),i=t.toLocaleDateString();return r===i?k.messages.ratedToday():k.messages.ratedOn(t)}renderRating(){switch(this.configuredRatingType){case"STARS":return at.html`
1577
+ `:pe.nothing}renderRatingDate(){let e=this.ratingDate;if(e==null)return F.messages.notRated();if(e.getTime()>new Date().getTime()-6e4)return F.messages.ratedNow();let r=new Date().toLocaleDateString(),i=e.toLocaleDateString();return r===i?F.messages.ratedToday():F.messages.ratedOn(e)}renderRating(){switch(this.configuredRatingType){case"STARS":return pe.html`
1578
1578
  <div class="ft-reader-feedback--stars" part="rating rating-stars">
1579
- ${(0,pl.repeat)(new Array(5),(a,s)=>s,(a,s)=>{let c=this.ratingType==="STARS"&&this.ratingValue>s,p=s+1;return at.html`
1580
- <ft-button round part="rating-stars-${p}"
1581
- label="${k.messages.starsRating(p)}"
1579
+ ${(0,ud.repeat)(new Array(5),(a,s)=>s,(a,s)=>{let l=this.ratingType==="STARS"&&this.ratingValue>s,d=s+1;return pe.html`
1580
+ <ft-button round part="rating-stars-${d}"
1581
+ label="${F.messages.starsRating(d)}"
1582
1582
  tooltipPosition="top"
1583
1583
  .iconVariant=${this.iconVariant}
1584
- icon="${c?this.filledStarIcon:this.emptyStarIcon}"
1585
- class="ft-reader-feedback--${c?"active":"inactive"}"
1586
- @click=${()=>this.rate(this.ratingValue===p?void 0:p)}
1584
+ icon="${l?this.filledStarIcon:this.emptyStarIcon}"
1585
+ class="ft-reader-feedback--${l?"active":"inactive"}"
1586
+ @click=${()=>this.rate(this.ratingValue===d?void 0:d)}
1587
1587
  ></ft-button>
1588
1588
  `})}
1589
1589
  </div>
1590
- `;case"LIKE":let t=this.ratingType==="LIKE"&&this.ratingValue===0,r=this.ratingType==="LIKE"&&this.ratingValue===1;return at.html`
1590
+ `;case"LIKE":let e=this.ratingType==="LIKE"&&this.ratingValue===0,r=this.ratingType==="LIKE"&&this.ratingValue===1;return pe.html`
1591
1591
  <ft-switch unselectable
1592
1592
  @change=${a=>this.rate(a.detail)}
1593
1593
  part="rating rating-like">
@@ -1595,82 +1595,82 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
1595
1595
  ?selected=${r}
1596
1596
  .iconVariant=${this.iconVariant}
1597
1597
  icon="${r?this.filledLikeIcon:this.emptyLikeIcon}">
1598
- ${k.messages.like()}
1598
+ ${F.messages.like()}
1599
1599
  </ft-switch-option>
1600
1600
  <ft-switch-option .value=${0}
1601
- ?selected=${t}
1601
+ ?selected=${e}
1602
1602
  .iconVariant=${this.iconVariant}
1603
- icon="${t?this.filledDislikeIcon:this.emptyDislikeIcon}">
1604
- ${k.messages.dislike()}
1603
+ icon="${e?this.filledDislikeIcon:this.emptyDislikeIcon}">
1604
+ ${F.messages.dislike()}
1605
1605
  </ft-switch-option>
1606
1606
  </ft-switch>
1607
- `;case"DICHOTOMOUS":let i=this.ratingType==="DICHOTOMOUS"&&this.ratingValue===0,n=this.ratingType==="DICHOTOMOUS"&&this.ratingValue===1;return at.html`
1607
+ `;case"DICHOTOMOUS":let i=this.ratingType==="DICHOTOMOUS"&&this.ratingValue===0,n=this.ratingType==="DICHOTOMOUS"&&this.ratingValue===1;return pe.html`
1608
1608
  <ft-switch unselectable
1609
1609
  @change=${a=>this.rate(a.detail)}
1610
1610
  part="rating rating-dichotomous">
1611
1611
  <ft-switch-option .value=${1}
1612
1612
  ?selected=${n}>
1613
- ${k.messages.dichotomousYes()}
1613
+ ${F.messages.dichotomousYes()}
1614
1614
  </ft-switch-option>
1615
1615
  <ft-switch-option .value=${0}
1616
1616
  ?selected=${i}>
1617
- ${k.messages.dichotomousNo()}
1617
+ ${F.messages.dichotomousNo()}
1618
1618
  </ft-switch-option>
1619
1619
  </ft-switch>
1620
- `}return at.nothing}rate(t){(t??-1)!==this.ratingValue&&this.dispatchEvent(new CustomEvent("rate",{detail:t}))}renderFeedbackSection(){var t,r,i,n,a;if(this.canAccessFeedback){let s=this.feedbackMailLinkBuilder(this.feedbackMessage),c=at.html`
1620
+ `}return pe.nothing}rate(e){(e??-1)!==this.ratingValue&&this.dispatchEvent(new CustomEvent("rate",{detail:e}))}renderFeedbackSection(){var e,r,i,n,a;if(this.canAccessFeedback){let s=this.feedbackMailLinkBuilder(this.feedbackMessage),l=pe.html`
1621
1621
  <ft-button primary
1622
1622
  type="submit" name="submit"
1623
1623
  class="ft-reader-feedback--send-feedback"
1624
1624
  ?disabled=${!this.feedbackMessage||!this.validFromEmail()}
1625
1625
  part="send-feedback">
1626
- ${k.messages.okButton()}
1626
+ ${F.messages.okButton()}
1627
1627
  </ft-button>
1628
- `;s&&(c=at.html`
1628
+ `;s&&(l=pe.html`
1629
1629
  <a class="ft-reader-feedback--feedback-link" href="${s}">
1630
- ${c}
1630
+ ${l}
1631
1631
  </a>
1632
- `);let p=this.withMoreOptionsButton&&(!((t=this.configuration)===null||t===void 0)&&t.mailsSentByFluidTopics||!((r=this.configuration)===null||r===void 0)&&r.mailsSentByFluidTopicsForUnauthenticatedUsers)?at.html`
1632
+ `);let d=this.withMoreOptionsButton&&(!((e=this.configuration)===null||e===void 0)&&e.mailsSentByFluidTopics||!((r=this.configuration)===null||r===void 0)&&r.mailsSentByFluidTopicsForUnauthenticatedUsers)?pe.html`
1633
1633
  <ft-button outlined
1634
1634
  type="button" name="more-options"
1635
1635
  class="ft-reader-feedback--more-options"
1636
1636
  @click="${this.onOpenMoreDetails}"
1637
1637
  part="more-options">
1638
- ${k.messages.moreOptionsButton()}
1638
+ ${F.messages.moreOptionsButton()}
1639
1639
  </ft-button>
1640
- `:at.nothing;return at.html`
1640
+ `:pe.nothing;return pe.html`
1641
1641
  <form class="ft-reader-feedback--feedback" part="feedback-container" autocomplete="on"
1642
- @submit="${h=>this.onFormSubmitEvent(h,!!s)}">
1642
+ @submit="${p=>this.onFormSubmitEvent(p,!!s)}">
1643
1643
  <ft-typography variant="title-dense" part="section-title" class="ft-reader-feedback--section-title">
1644
1644
  ${this.i18n(this.i18nProperties.feedbackSectionTitle)}
1645
1645
  </ft-typography>
1646
- ${((n=(i=this.session)===null||i===void 0?void 0:i.profile)===null||n===void 0?void 0:n.userId)==null&&(!((a=this.configuration)===null||a===void 0)&&a.mailsSentByFluidTopicsForUnauthenticatedUsers)?at.html`
1646
+ ${((n=(i=this.session)===null||i===void 0?void 0:i.profile)===null||n===void 0?void 0:n.userId)==null&&(!((a=this.configuration)===null||a===void 0)&&a.mailsSentByFluidTopicsForUnauthenticatedUsers)?pe.html`
1647
1647
  <ft-text-field outlined name="email" type="email" autocomplete="email"
1648
1648
  class="ft-reader-feedback--from-input"
1649
- label=${k.messages.feedbackfromEmail()}
1650
- @change=${h=>this.from=h.detail.trim()}
1649
+ label=${F.messages.feedbackfromEmail()}
1650
+ @change=${p=>this.from=p.detail.trim()}
1651
1651
  ?error=${this.from&&!this.validFromEmail()}
1652
- helper=${this.from&&!this.validFromEmail()?k.messages.feedbackfromEmailInvalid():""}
1652
+ helper=${this.from&&!this.validFromEmail()?F.messages.feedbackfromEmailInvalid():""}
1653
1653
  />
1654
- `:at.nothing}
1654
+ `:pe.nothing}
1655
1655
  <ft-text-area outlined
1656
1656
  class="ft-reader-feedback--feedback-input" part="feedback-input"
1657
- label="${k.messages.feedbackInputLabel()}"
1658
- @live-change=${h=>this.feedbackMessage=h.detail.trim()}
1657
+ label="${F.messages.feedbackInputLabel()}"
1658
+ @live-change=${p=>this.feedbackMessage=p.detail.trim()}
1659
1659
  ></ft-text-area>
1660
1660
  <div part="buttons-container">
1661
- ${p}
1662
- ${c}
1661
+ ${d}
1662
+ ${l}
1663
1663
  </div>
1664
1664
  </form>
1665
- `}return at.nothing}onFormSubmitEvent(t,r){t.preventDefault(),r?this.onMailerFeedbackSent():this.sendFeedback()}validFromEmail(){var t,r,i;let n=/^[a-zA-Z0-9_+&*-]+(?:\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/;return!(((r=(t=this.session)===null||t===void 0?void 0:t.profile)===null||r===void 0?void 0:r.userId)==null&&(!((i=this.configuration)===null||i===void 0)&&i.mailsSentByFluidTopicsForUnauthenticatedUsers))||n.test(this.from)}sendFeedback(){var t;this.dispatchEvent(new Br({message:this.feedbackInput.value,...((t=this.configuration)===null||t===void 0?void 0:t.mailsSentByFluidTopicsForUnauthenticatedUsers)&&{from:this.from}}))}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("mailer-feedback"))}onOpenMoreDetails(){this.dispatchEvent(new CustomEvent("open-more-options"))}clearFeedbackInput(){setTimeout(()=>this.feedbackInput.value="",0)}};W.elementDefinitions={"ft-button":ie,"ft-typography":it,"ft-switch":Vt,"ft-switch-option":pt,"ft-text-area":Ot,"ft-text-field":$};W.styles=Wn;mt([(0,st.property)({type:Boolean})],W.prototype,"editorMode",void 0);mt([(0,st.property)({type:Boolean})],W.prototype,"hideTitle",void 0);mt([(0,st.property)({type:Boolean})],W.prototype,"withMoreOptionsButton",void 0);mt([(0,st.property)({type:Boolean})],W.prototype,"ratingAllowed",void 0);mt([(0,st.property)({attribute:!1})],W.prototype,"i18nProperties",void 0);mt([(0,st.property)({attribute:!1})],W.prototype,"ratingSummary",void 0);mt([(0,st.property)({attribute:!1})],W.prototype,"session",void 0);mt([(0,st.query)(".ft-reader-feedback--feedback-input")],W.prototype,"feedbackInput",void 0);mt([(0,st.state)()],W.prototype,"from",void 0);mt([(0,st.state)()],W.prototype,"feedbackMessage",void 0);mt([(0,st.property)()],W.prototype,"iconVariant",void 0);mt([(0,st.property)()],W.prototype,"emptyStarIcon",void 0);mt([(0,st.property)()],W.prototype,"filledStarIcon",void 0);mt([(0,st.property)()],W.prototype,"emptyLikeIcon",void 0);mt([(0,st.property)()],W.prototype,"filledLikeIcon",void 0);mt([(0,st.property)()],W.prototype,"emptyDislikeIcon",void 0);mt([(0,st.property)()],W.prototype,"filledDislikeIcon",void 0);mt([(0,Wr.redux)({store:"reader",selector:o=>{var t;return(t=o.configuration)===null||t===void 0?void 0:t.feedback}})],W.prototype,"configuration",void 0);mt([(0,st.property)()],W.prototype,"feedbackMailLinkBuilder",void 0);var Co=Be.fromGwt("server");var Oo=class{constructor(){this.subject="",this.url="",this.subjectMetadata="",this.bodyMetadata="",this.isAuthenticated=!1}update(t,r,i,n,a){var s;this.subject=t,this.url=r,this.configuration=n,this.isAuthenticated=a,this.subjectMetadata=this.filterMetadata(i,n.subjectMetadataIds).map(c=>"["+c.values[c.values.length-1]+"]").join(""),this.bodyMetadata=this.filterMetadata(i,(s=n.bodyMetadataIds)!==null&&s!==void 0?s:[]).map(c=>"["+c.values.join(", ")+"]").join(" ")}filterMetadata(t,r){return r.map(i=>t.find(n=>n.key===i)).filter(i=>i!=null&&i.values.length>0)}shouldUseMailer(){var t,r;let i=this.isAuthenticated&&!(!((t=this.configuration)===null||t===void 0)&&t.mailsSentByFluidTopics),n=!this.isAuthenticated&&!(!((r=this.configuration)===null||r===void 0)&&r.mailsSentByFluidTopicsForUnauthenticatedUsers);return i||n}build(t){var r;if(t!=null&&t.length===0||!this.shouldUseMailer())return;let i=encodeURIComponent(this.subject+" "+this.subjectMetadata),n=encodeURIComponent(`
1665
+ `}return pe.nothing}onFormSubmitEvent(e,r){e.preventDefault(),r?this.onMailerFeedbackSent():this.sendFeedback()}validFromEmail(){var e,r,i;let n=/^[a-zA-Z0-9_+&*-]+(?:\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/;return!(((r=(e=this.session)===null||e===void 0?void 0:e.profile)===null||r===void 0?void 0:r.userId)==null&&(!((i=this.configuration)===null||i===void 0)&&i.mailsSentByFluidTopicsForUnauthenticatedUsers))||n.test(this.from)}sendFeedback(){var e;this.dispatchEvent(new Oi({message:this.feedbackInput.value,...((e=this.configuration)===null||e===void 0?void 0:e.mailsSentByFluidTopicsForUnauthenticatedUsers)&&{from:this.from}}))}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("mailer-feedback"))}onOpenMoreDetails(){this.dispatchEvent(new CustomEvent("open-more-options"))}clearFeedbackInput(){setTimeout(()=>this.feedbackInput.value="",0)}};Y.elementDefinitions={"ft-button":dt,"ft-typography":ce,"ft-switch":Ke,"ft-switch-option":ge,"ft-text-area":Ae,"ft-text-field":z};Y.styles=rs;Se([(0,fe.property)({type:Boolean})],Y.prototype,"editorMode",void 0);Se([(0,fe.property)({type:Boolean})],Y.prototype,"hideTitle",void 0);Se([(0,fe.property)({type:Boolean})],Y.prototype,"withMoreOptionsButton",void 0);Se([(0,fe.property)({type:Boolean})],Y.prototype,"ratingAllowed",void 0);Se([(0,fe.property)({attribute:!1})],Y.prototype,"i18nProperties",void 0);Se([(0,fe.property)({attribute:!1})],Y.prototype,"ratingSummary",void 0);Se([(0,fe.property)({attribute:!1})],Y.prototype,"session",void 0);Se([(0,fe.query)(".ft-reader-feedback--feedback-input")],Y.prototype,"feedbackInput",void 0);Se([(0,fe.state)()],Y.prototype,"from",void 0);Se([(0,fe.state)()],Y.prototype,"feedbackMessage",void 0);Se([(0,fe.property)()],Y.prototype,"iconVariant",void 0);Se([(0,fe.property)()],Y.prototype,"emptyStarIcon",void 0);Se([(0,fe.property)()],Y.prototype,"filledStarIcon",void 0);Se([(0,fe.property)()],Y.prototype,"emptyLikeIcon",void 0);Se([(0,fe.property)()],Y.prototype,"filledLikeIcon",void 0);Se([(0,fe.property)()],Y.prototype,"emptyDislikeIcon",void 0);Se([(0,fe.property)()],Y.prototype,"filledDislikeIcon",void 0);Se([(0,Ri.redux)({store:"reader",selector:t=>{var e;return(e=t.configuration)===null||e===void 0?void 0:e.feedback}})],Y.prototype,"configuration",void 0);Se([(0,fe.property)()],Y.prototype,"feedbackMailLinkBuilder",void 0);var Vr=Jt.fromGwt("server");var jr=class{constructor(){this.subject="",this.url="",this.subjectMetadata="",this.bodyMetadata="",this.isAuthenticated=!1}update(e,r,i,n,a){var s;this.subject=e,this.url=r,this.configuration=n,this.isAuthenticated=a,this.subjectMetadata=this.filterMetadata(i,n.subjectMetadataIds).map(l=>"["+l.values[l.values.length-1]+"]").join(""),this.bodyMetadata=this.filterMetadata(i,(s=n.bodyMetadataIds)!==null&&s!==void 0?s:[]).map(l=>"["+l.values.join(", ")+"]").join(" ")}filterMetadata(e,r){return r.map(i=>e.find(n=>n.key===i)).filter(i=>i!=null&&i.values.length>0)}shouldUseMailer(){var e,r;let i=this.isAuthenticated&&!(!((e=this.configuration)===null||e===void 0)&&e.mailsSentByFluidTopics),n=!this.isAuthenticated&&!(!((r=this.configuration)===null||r===void 0)&&r.mailsSentByFluidTopicsForUnauthenticatedUsers);return i||n}build(e){var r;if(e!=null&&e.length===0||!this.shouldUseMailer())return;let i=encodeURIComponent(this.subject+" "+this.subjectMetadata),n=encodeURIComponent(`
1666
1666
  ${this.bodyMetadata}
1667
1667
  ${this.url}
1668
1668
  _________________________________________________________________
1669
1669
 
1670
- ${t??""}
1670
+ ${e??""}
1671
1671
 
1672
1672
  _________________________________________________________________
1673
- ${Co.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configuration)===null||r===void 0?void 0:r.recipients.join(",")}?subject=${i}&body=${n}`}};var Me=Be.build("inDesignerFeedbackComponent"),Hr={feedbackAndRatingDisabledInEditor:"Feedback and ratings performed here are not taken into account."};var wt=function(o,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(o,t,r,i);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},tt=class extends De(Ee){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=Mt.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new Oo,this.i18nProperties={feedbackMainTitle:k.properties.mapFeedbackMainTitle(),ratingSectionTitle:k.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:k.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:k.properties.mapFeedbackSectionTitle()},this.updateDebouncer=new It.Debouncer(100),this.sendRatingDebouncer=new It.Debouncer(500),this.addStore(O)}render(){return fl.html`
1673
+ ${Vr.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configuration)===null||r===void 0?void 0:r.recipients.join(",")}?subject=${i}&body=${n}`}};var er=Jt.build("inDesignerFeedbackComponent"),Ni={feedbackAndRatingDisabledInEditor:"Feedback and ratings performed here are not taken into account."};var Re=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ae=class extends Xt(Lt){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=He.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new jr,this.i18nProperties={feedbackMainTitle:F.properties.mapFeedbackMainTitle(),ratingSectionTitle:F.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:F.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:F.properties.mapFeedbackSectionTitle()},this.updateDebouncer=new _e.Debouncer(100),this.sendRatingDebouncer=new _e.Debouncer(500),this.addStore(N)}render(){return hd.html`
1674
1674
  <ft-reader-feedback
1675
1675
  ratingAllowed
1676
1676
  .i18nProperties=${this.i18nProperties}
@@ -1686,16 +1686,16 @@ ${Co.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
1686
1686
  .filledLikeIcon=${this.filledLikeIcon}
1687
1687
  .emptyDislikeIcon=${this.emptyDislikeIcon}
1688
1688
  .filledDislikeIcon=${this.filledDislikeIcon}
1689
- .feedbackMailLinkBuilder=${t=>this.feedbackLinkBuilder.build(t)}
1689
+ .feedbackMailLinkBuilder=${e=>this.feedbackLinkBuilder.build(e)}
1690
1690
  @rate=${this.rate}
1691
1691
  @send-feedback=${this.sendFeedback}
1692
1692
  @mailer-feedback=${this.onMailerFeedbackSent}
1693
1693
  @open-more-options=${this.openMoreOptions}
1694
1694
  ></ft-reader-feedback>
1695
- `}update(t){var r,i,n,a;super.update(t),t.has("map")&&this.map&&this.updateData(),t.has("editorMode")&&this.editorMode&&this.addI18nContext(Me,Hr),["map","configuration","user","mailSubject"].some(s=>t.has(s))&&this.map&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,(i=(r=this.service)===null||r===void 0?void 0:r.getLink())!==null&&i!==void 0?i:"",this.map.metadata,this.configuration,((a=(n=this.session)===null||n===void 0?void 0:n.profile)===null||a===void 0?void 0:a.userId)!=null)}connectedCallback(){super.connectedCallback(),this.updateData()}onStoreAvailable(t){super.onStoreAvailable(t),this.updateData()}updateData(){this.updateDebouncer.run(async()=>{var t,r;this.map&&(!((r=(t=this.session)===null||t===void 0?void 0:t.profile)===null||r===void 0)&&r.userId||this.ratingSummary==null)&&await this.fetchRatingSummary()})}async fetchRatingSummary(){var t;this.ratingSummary=await((t=this.service)===null||t===void 0?void 0:t.getMapRating())}rate(t){this.ratingSummary&&(this.ratingSummary={...this.ratingSummary,rating:t.detail==null?void 0:{type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run(()=>this.sendRating(t.detail)))}async sendRating(t){var r,i,n;if(!this.editorMode&&this.ratingSummary){try{t==null?await((r=this.service)===null||r===void 0?void 0:r.unrateMap()):await((i=this.service)===null||i===void 0?void 0:i.rateMap((n=this.ratingSummary)===null||n===void 0?void 0:n.type,t))}catch{this.dispatchEvent(new It.FtNotificationEvent({type:"error",message:k.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new It.FtNotificationEvent({type:"info",message:Me.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var r;try{this.editorMode?this.dispatchEvent(new It.FtNotificationEvent({type:"info",message:Me.messages.feedbackAndRatingDisabledInEditor()})):(await((r=this.service)===null||r===void 0?void 0:r.sendMapFeedback(t.detail.message,t.detail.from)),this.dispatchEvent(new It.FtNotificationEvent({type:"info",message:k.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new It.FtNotificationEvent({type:"error",message:k.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new zr)}openMoreOptions(){var t,r,i;this.dispatchEvent(new Mr({mapId:this.map.id,mapTitle:this.map.title,mapMetadata:((t=this.map)===null||t===void 0?void 0:t.metadata)||[],ratingType:((r=this.ratingSummary)===null||r===void 0?void 0:r.type)||Oe.NO_RATING,ratingValue:(i=this.ratingSummary)===null||i===void 0?void 0:i.rating}))}};tt.elementDefinitions={"ft-reader-feedback":W};wt([(0,It.redux)({store:O.name})],tt.prototype,"session",void 0);wt([(0,It.redux)({store:"reader"})],tt.prototype,"map",void 0);wt([(0,It.redux)({store:O.name})],tt.prototype,"editorMode",void 0);wt([(0,It.redux)({store:"reader",selector:o=>{var t;return(t=o.configuration)===null||t===void 0?void 0:t.feedback}})],tt.prototype,"configuration",void 0);wt([(0,Ft.state)()],tt.prototype,"ratingSummary",void 0);wt([(0,Ft.property)({type:Boolean})],tt.prototype,"hideTitle",void 0);wt([(0,Ft.property)({type:Boolean})],tt.prototype,"withMoreOptionsButton",void 0);wt([(0,Ft.property)()],tt.prototype,"iconVariant",void 0);wt([(0,Ft.property)()],tt.prototype,"emptyStarIcon",void 0);wt([(0,Ft.property)()],tt.prototype,"filledStarIcon",void 0);wt([(0,Ft.property)()],tt.prototype,"emptyLikeIcon",void 0);wt([(0,Ft.property)()],tt.prototype,"filledLikeIcon",void 0);wt([(0,Ft.property)()],tt.prototype,"emptyDislikeIcon",void 0);wt([(0,Ft.property)()],tt.prototype,"filledDislikeIcon",void 0);wt([(0,Ft.query)("ft-reader-feedback")],tt.prototype,"readerFeedback",void 0);wt([Or(Co.properties["mail.map_feedback.subject"](o=>{var t;return[(t=o.map)===null||t===void 0?void 0:t.title]}))],tt.prototype,"mailSubject",void 0);wt([(0,It.reduxEventListener)({eventName:"rating-changed"})],tt.prototype,"fetchRatingSummary",null);var hl=u(_()),zt=u(K()),Nt=u(S());var Li=u(K());var ul=function(o,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(o,t,r,i);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},ki=class extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}},_i=Symbol("registerInterval");function tc(o){var t;class r extends o{constructor(){super(...arguments),this.disableContextInteractions=!1,this[t]=0}connectedCallback(){super.connectedCallback(),this[_i]=window.setInterval(()=>this.tryToRegisterToTopicContext(),50)}tryToRegisterToTopicContext(){this.tocNode!=null?window.clearInterval(this[_i]):this.dispatchEvent(new ki)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return t=_i,ul([(0,Li.state)()],r.prototype,"tocNode",void 0),ul([(0,Li.state)()],r.prototype,"disableContextInteractions",void 0),r}var Vr=class extends tc(Ee){};var Et=function(o,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(o,t,r,i);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},et=class extends De(Vr){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=Mt.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new Oo,this.i18nProperties={feedbackMainTitle:k.properties.topicFeedbackMainTitle(),ratingSectionTitle:k.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:k.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:k.properties.topicFeedbackSectionTitle()},this.updateDebouncer=new Nt.Debouncer(100),this.sendRatingDebouncer=new Nt.Debouncer(500),this.addStore(O)}render(){var t;return hl.html`
1695
+ `}update(e){var r,i,n,a;super.update(e),e.has("map")&&this.map&&this.updateData(),e.has("editorMode")&&this.editorMode&&this.addI18nContext(er,Ni),["map","configuration","user","mailSubject"].some(s=>e.has(s))&&this.map&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,(i=(r=this.service)===null||r===void 0?void 0:r.getLink())!==null&&i!==void 0?i:"",this.map.metadata,this.configuration,((a=(n=this.session)===null||n===void 0?void 0:n.profile)===null||a===void 0?void 0:a.userId)!=null)}connectedCallback(){super.connectedCallback(),this.updateData()}onStoreAvailable(e){super.onStoreAvailable(e),this.updateData()}updateData(){this.updateDebouncer.run(async()=>{var e,r;this.map&&(!((r=(e=this.session)===null||e===void 0?void 0:e.profile)===null||r===void 0)&&r.userId||this.ratingSummary==null)&&await this.fetchRatingSummary()})}async fetchRatingSummary(){var e;this.ratingSummary=await((e=this.service)===null||e===void 0?void 0:e.getMapRating())}rate(e){this.ratingSummary&&(this.ratingSummary={...this.ratingSummary,rating:e.detail==null?void 0:{type:this.ratingSummary.type,value:e.detail,date:new Date}},this.sendRatingDebouncer.run(()=>this.sendRating(e.detail)))}async sendRating(e){var r,i,n;if(!this.editorMode&&this.ratingSummary){try{e==null?await((r=this.service)===null||r===void 0?void 0:r.unrateMap()):await((i=this.service)===null||i===void 0?void 0:i.rateMap((n=this.ratingSummary)===null||n===void 0?void 0:n.type,e))}catch{this.dispatchEvent(new _e.FtNotificationEvent({type:"error",message:F.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new _e.FtNotificationEvent({type:"info",message:er.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(e){var r;try{this.editorMode?this.dispatchEvent(new _e.FtNotificationEvent({type:"info",message:er.messages.feedbackAndRatingDisabledInEditor()})):(await((r=this.service)===null||r===void 0?void 0:r.sendMapFeedback(e.detail.message,e.detail.from)),this.dispatchEvent(new _e.FtNotificationEvent({type:"info",message:F.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new _e.FtNotificationEvent({type:"error",message:F.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new Ai)}openMoreOptions(){var e,r,i;this.dispatchEvent(new Ci({mapId:this.map.id,mapTitle:this.map.title,mapMetadata:((e=this.map)===null||e===void 0?void 0:e.metadata)||[],ratingType:((r=this.ratingSummary)===null||r===void 0?void 0:r.type)||kt.NO_RATING,ratingValue:(i=this.ratingSummary)===null||i===void 0?void 0:i.rating}))}};ae.elementDefinitions={"ft-reader-feedback":Y};Re([(0,_e.redux)({store:N.name})],ae.prototype,"session",void 0);Re([(0,_e.redux)({store:"reader"})],ae.prototype,"map",void 0);Re([(0,_e.redux)({store:N.name})],ae.prototype,"editorMode",void 0);Re([(0,_e.redux)({store:"reader",selector:t=>{var e;return(e=t.configuration)===null||e===void 0?void 0:e.feedback}})],ae.prototype,"configuration",void 0);Re([(0,Ve.state)()],ae.prototype,"ratingSummary",void 0);Re([(0,Ve.property)({type:Boolean})],ae.prototype,"hideTitle",void 0);Re([(0,Ve.property)({type:Boolean})],ae.prototype,"withMoreOptionsButton",void 0);Re([(0,Ve.property)()],ae.prototype,"iconVariant",void 0);Re([(0,Ve.property)()],ae.prototype,"emptyStarIcon",void 0);Re([(0,Ve.property)()],ae.prototype,"filledStarIcon",void 0);Re([(0,Ve.property)()],ae.prototype,"emptyLikeIcon",void 0);Re([(0,Ve.property)()],ae.prototype,"filledLikeIcon",void 0);Re([(0,Ve.property)()],ae.prototype,"emptyDislikeIcon",void 0);Re([(0,Ve.property)()],ae.prototype,"filledDislikeIcon",void 0);Re([(0,Ve.query)("ft-reader-feedback")],ae.prototype,"readerFeedback",void 0);Re([li(Vr.properties["mail.map_feedback.subject"](t=>{var e;return[(e=t.map)===null||e===void 0?void 0:e.title]}))],ae.prototype,"mailSubject",void 0);Re([(0,_e.reduxEventListener)({eventName:"rating-changed"})],ae.prototype,"fetchRatingSummary",null);var gd=m($()),je=m(j()),ke=m(E());var Gn=m(j());var md=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Kn=class extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}},jn=Symbol("registerInterval");function Wp(t){var e;class r extends t{constructor(){super(...arguments),this.disableContextInteractions=!1,this[e]=0}connectedCallback(){super.connectedCallback(),this[jn]=window.setInterval(()=>this.tryToRegisterToTopicContext(),50)}tryToRegisterToTopicContext(){this.tocNode!=null?window.clearInterval(this[jn]):this.dispatchEvent(new Kn)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return e=jn,md([(0,Gn.state)()],r.prototype,"tocNode",void 0),md([(0,Gn.state)()],r.prototype,"disableContextInteractions",void 0),r}var Ii=class extends Wp(Lt){};var Ne=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},se=class extends Xt(Ii){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=He.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new jr,this.i18nProperties={feedbackMainTitle:F.properties.topicFeedbackMainTitle(),ratingSectionTitle:F.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:F.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:F.properties.topicFeedbackSectionTitle()},this.updateDebouncer=new ke.Debouncer(100),this.sendRatingDebouncer=new ke.Debouncer(500),this.addStore(N)}render(){var e;return gd.html`
1696
1696
  <ft-reader-feedback
1697
1697
  .i18nProperties=${this.i18nProperties}
1698
- ?ratingAllowed=${(t=this.tocNode)===null||t===void 0?void 0:t.hasRating}
1698
+ ?ratingAllowed=${(e=this.tocNode)===null||e===void 0?void 0:e.hasRating}
1699
1699
  .editorMode=${this.editorMode}
1700
1700
  ?hideTitle=${this.hideTitle}
1701
1701
  ?withMoreOptionsButton=${this.withMoreOptionsButton}
@@ -1714,7 +1714,7 @@ ${Co.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
1714
1714
  @mailer-feedback=${this.onMailerFeedbackSent}
1715
1715
  @open-more-options=${this.openMoreOptions}
1716
1716
  ></ft-reader-feedback>
1717
- `}update(t){var r,i,n,a;super.update(t),["tocNode","user"].some(s=>t.has(s))&&this.tocNode&&this.updateData(),t.has("editorMode")&&this.editorMode&&this.addI18nContext(Me,Hr),["map","tocNode","configuration","user","mailSubject"].some(s=>t.has(s))&&this.map&&this.tocNode&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,(i=(r=this.service)===null||r===void 0?void 0:r.getLink(this.tocNode.tocId))!==null&&i!==void 0?i:"",this.map.metadata,this.configuration,((a=(n=this.session)===null||n===void 0?void 0:n.profile)===null||a===void 0?void 0:a.userId)!=null)}connectedCallback(){super.connectedCallback(),this.updateData()}updateData(){this.updateDebouncer.run(async()=>{var t,r;this.tocNode&&(!((r=(t=this.session)===null||t===void 0?void 0:t.profile)===null||r===void 0)&&r.userId||this.ratingSummary==null)&&await this.fetchRatingSummary()})}async fetchRatingSummary(){var t;this.ratingSummary=await((t=this.service)===null||t===void 0?void 0:t.getTopicRating(this.tocNode.tocId))}rate(t){this.ratingSummary&&this.tocNode&&(this.ratingSummary={...this.ratingSummary,rating:t.detail==null?void 0:{tocId:this.tocNode.tocId,type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run(()=>this.sendRating(t.detail)))}async sendRating(t){var r,i,n;if(!this.editorMode&&this.ratingSummary&&this.tocNode){try{t==null?await((r=this.service)===null||r===void 0?void 0:r.unrateTopic(this.tocNode.tocId)):await((i=this.service)===null||i===void 0?void 0:i.rateTopic(this.tocNode.tocId,(n=this.ratingSummary)===null||n===void 0?void 0:n.type,t))}catch{this.dispatchEvent(new Nt.FtNotificationEvent({type:"error",message:k.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new Nt.FtNotificationEvent({type:"info",message:Me.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var r;try{!this.editorMode&&this.tocNode?(await((r=this.service)===null||r===void 0?void 0:r.sendTopicFeedback(this.tocNode.tocId,t.detail.message,t.detail.from)),this.dispatchEvent(new Nt.FtNotificationEvent({type:"info",message:k.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new Nt.FtNotificationEvent({type:"info",message:Me.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new Nt.FtNotificationEvent({type:"error",message:k.messages.feedbackFailure()}))}}onMailerFeedbackSent(){let t=this.tocNode;this.dispatchEvent(new Fr(t))}openMoreOptions(){var t,r,i,n,a,s,c,p;this.dispatchEvent(new Ur({mapId:this.map.id,mapTitle:this.map.title,tocId:this.tocNode.tocId,topicTitle:this.tocNode.title,topicUrl:(r=(t=this.service)===null||t===void 0?void 0:t.getLink(this.tocNode.tocId))!==null&&r!==void 0?r:"",mapMetadata:((i=this.map)===null||i===void 0?void 0:i.metadata)||[],breadcrumb:((a=(n=this.stateManager)===null||n===void 0?void 0:n.service)===null||a===void 0?void 0:a.buildBreadcrumb(this.tocNode.tocId))||[],ratingType:(!((s=this.tocNode)===null||s===void 0)&&s.hasRating?(c=this.ratingSummary)===null||c===void 0?void 0:c.type:Oe.NO_RATING)||Oe.NO_RATING,ratingValue:(p=this.ratingSummary)===null||p===void 0?void 0:p.rating}))}};et.elementDefinitions={"ft-reader-feedback":W};Et([(0,Nt.redux)({store:O.name})],et.prototype,"session",void 0);Et([(0,Nt.redux)({store:"reader"})],et.prototype,"map",void 0);Et([(0,Nt.redux)({store:O.name})],et.prototype,"editorMode",void 0);Et([(0,Nt.redux)({store:"reader",selector:o=>{var t;return(t=o.configuration)===null||t===void 0?void 0:t.feedback}})],et.prototype,"configuration",void 0);Et([(0,zt.state)()],et.prototype,"ratingSummary",void 0);Et([(0,zt.property)({type:Boolean})],et.prototype,"hideTitle",void 0);Et([(0,zt.property)({type:Boolean})],et.prototype,"withMoreOptionsButton",void 0);Et([(0,zt.property)()],et.prototype,"iconVariant",void 0);Et([(0,zt.property)()],et.prototype,"emptyStarIcon",void 0);Et([(0,zt.property)()],et.prototype,"filledStarIcon",void 0);Et([(0,zt.property)()],et.prototype,"emptyLikeIcon",void 0);Et([(0,zt.property)()],et.prototype,"filledLikeIcon",void 0);Et([(0,zt.property)()],et.prototype,"emptyDislikeIcon",void 0);Et([(0,zt.property)()],et.prototype,"filledDislikeIcon",void 0);Et([(0,zt.query)("ft-reader-feedback")],et.prototype,"readerFeedback",void 0);Et([Or(Co.properties["mail.feedback.subject"](o=>{var t,r;return[(t=o.tocNode)===null||t===void 0?void 0:t.title,(r=o.map)===null||r===void 0?void 0:r.title]}))],et.prototype,"mailSubject",void 0);Et([(0,Nt.reduxEventListener)({eventName:"rating-changed"})],et.prototype,"fetchRatingSummary",null);(0,$i.customElement)("ft-reader-map-feedback")(tt);(0,$i.customElement)("ft-reader-topic-feedback")(et);})();
1717
+ `}update(e){var r,i,n,a;super.update(e),["tocNode","user"].some(s=>e.has(s))&&this.tocNode&&this.updateData(),e.has("editorMode")&&this.editorMode&&this.addI18nContext(er,Ni),["map","tocNode","configuration","user","mailSubject"].some(s=>e.has(s))&&this.map&&this.tocNode&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,(i=(r=this.service)===null||r===void 0?void 0:r.getLink(this.tocNode.tocId))!==null&&i!==void 0?i:"",this.map.metadata,this.configuration,((a=(n=this.session)===null||n===void 0?void 0:n.profile)===null||a===void 0?void 0:a.userId)!=null)}connectedCallback(){super.connectedCallback(),this.updateData()}updateData(){this.updateDebouncer.run(async()=>{var e,r;this.tocNode&&(!((r=(e=this.session)===null||e===void 0?void 0:e.profile)===null||r===void 0)&&r.userId||this.ratingSummary==null)&&await this.fetchRatingSummary()})}async fetchRatingSummary(){var e;this.ratingSummary=await((e=this.service)===null||e===void 0?void 0:e.getTopicRating(this.tocNode.tocId))}rate(e){this.ratingSummary&&this.tocNode&&(this.ratingSummary={...this.ratingSummary,rating:e.detail==null?void 0:{tocId:this.tocNode.tocId,type:this.ratingSummary.type,value:e.detail,date:new Date}},this.sendRatingDebouncer.run(()=>this.sendRating(e.detail)))}async sendRating(e){var r,i,n;if(!this.editorMode&&this.ratingSummary&&this.tocNode){try{e==null?await((r=this.service)===null||r===void 0?void 0:r.unrateTopic(this.tocNode.tocId)):await((i=this.service)===null||i===void 0?void 0:i.rateTopic(this.tocNode.tocId,(n=this.ratingSummary)===null||n===void 0?void 0:n.type,e))}catch{this.dispatchEvent(new ke.FtNotificationEvent({type:"error",message:F.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new ke.FtNotificationEvent({type:"info",message:er.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(e){var r;try{!this.editorMode&&this.tocNode?(await((r=this.service)===null||r===void 0?void 0:r.sendTopicFeedback(this.tocNode.tocId,e.detail.message,e.detail.from)),this.dispatchEvent(new ke.FtNotificationEvent({type:"info",message:F.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new ke.FtNotificationEvent({type:"info",message:er.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new ke.FtNotificationEvent({type:"error",message:F.messages.feedbackFailure()}))}}onMailerFeedbackSent(){let e=this.tocNode;this.dispatchEvent(new Ei(e))}openMoreOptions(){var e,r,i,n,a,s,l,d;this.dispatchEvent(new wi({mapId:this.map.id,mapTitle:this.map.title,tocId:this.tocNode.tocId,topicTitle:this.tocNode.title,topicUrl:(r=(e=this.service)===null||e===void 0?void 0:e.getLink(this.tocNode.tocId))!==null&&r!==void 0?r:"",mapMetadata:((i=this.map)===null||i===void 0?void 0:i.metadata)||[],breadcrumb:((a=(n=this.stateManager)===null||n===void 0?void 0:n.service)===null||a===void 0?void 0:a.buildBreadcrumb(this.tocNode.tocId))||[],ratingType:(!((s=this.tocNode)===null||s===void 0)&&s.hasRating?(l=this.ratingSummary)===null||l===void 0?void 0:l.type:kt.NO_RATING)||kt.NO_RATING,ratingValue:(d=this.ratingSummary)===null||d===void 0?void 0:d.rating}))}};se.elementDefinitions={"ft-reader-feedback":Y};Ne([(0,ke.redux)({store:N.name})],se.prototype,"session",void 0);Ne([(0,ke.redux)({store:"reader"})],se.prototype,"map",void 0);Ne([(0,ke.redux)({store:N.name})],se.prototype,"editorMode",void 0);Ne([(0,ke.redux)({store:"reader",selector:t=>{var e;return(e=t.configuration)===null||e===void 0?void 0:e.feedback}})],se.prototype,"configuration",void 0);Ne([(0,je.state)()],se.prototype,"ratingSummary",void 0);Ne([(0,je.property)({type:Boolean})],se.prototype,"hideTitle",void 0);Ne([(0,je.property)({type:Boolean})],se.prototype,"withMoreOptionsButton",void 0);Ne([(0,je.property)()],se.prototype,"iconVariant",void 0);Ne([(0,je.property)()],se.prototype,"emptyStarIcon",void 0);Ne([(0,je.property)()],se.prototype,"filledStarIcon",void 0);Ne([(0,je.property)()],se.prototype,"emptyLikeIcon",void 0);Ne([(0,je.property)()],se.prototype,"filledLikeIcon",void 0);Ne([(0,je.property)()],se.prototype,"emptyDislikeIcon",void 0);Ne([(0,je.property)()],se.prototype,"filledDislikeIcon",void 0);Ne([(0,je.query)("ft-reader-feedback")],se.prototype,"readerFeedback",void 0);Ne([li(Vr.properties["mail.feedback.subject"](t=>{var e,r;return[(e=t.tocNode)===null||e===void 0?void 0:e.title,(r=t.map)===null||r===void 0?void 0:r.title]}))],se.prototype,"mailSubject",void 0);Ne([(0,ke.reduxEventListener)({eventName:"rating-changed"})],se.prototype,"fetchRatingSummary",null);(0,Zn.customElement)("ft-reader-map-feedback")(ae);(0,Zn.customElement)("ft-reader-topic-feedback")(se);})();
1718
1718
  /*! Bundled license information:
1719
1719
 
1720
1720
  lit-html/lit-html.js:
@@ -1731,6 +1731,13 @@ lit-html/static.js:
1731
1731
  * SPDX-License-Identifier: BSD-3-Clause
1732
1732
  *)
1733
1733
 
1734
+ @lit/reactive-element/css-tag.js:
1735
+ (**
1736
+ * @license
1737
+ * Copyright 2019 Google LLC
1738
+ * SPDX-License-Identifier: BSD-3-Clause
1739
+ *)
1740
+
1734
1741
  lit-html/directives/if-defined.js:
1735
1742
  (**
1736
1743
  * @license