@fluid-topics/ft-reader-feedback 1.1.104 → 1.1.106

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,5 @@
1
- "use strict";(()=>{var xd=Object.create;var ra=Object.defineProperty;var Sd=Object.getOwnPropertyDescriptor;var Od=Object.getOwnPropertyNames;var wd=Object.getPrototypeOf,Cd=Object.prototype.hasOwnProperty;var or=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Ed=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Od(e))!Cd.call(t,n)&&n!==r&&ra(t,n,{get:()=>e[n],enumerable:!(i=Sd(e,n))||i.enumerable});return t};var m=(t,e,r)=>(r=t!=null?xd(wd(t)):{},Ed(e||!t||!t.__esModule?ra(r,"default",{value:t,enumerable:!0}):r,t));var E=or((Kp,oa)=>{oa.exports=ftGlobals.wcUtils});var $=or((Zp,ia)=>{ia.exports=ftGlobals.lit});var G=or((qp,na)=>{na.exports=ftGlobals.litDecorators});var Ft=or((ag,Ns)=>{Ns.exports=ftGlobals.litClassMap});var nl=or((Zg,il)=>{il.exports=ftGlobals.litUnsafeHTML});var Rl=or((ub,Al)=>{Al.exports=ftGlobals.litRepeat});var Zc=or(Kc=>{(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),te=0;te<x.length;te++)T[te]=String.fromCharCode(x[te]);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 te=T.split("="),Ce=te.shift().replace(/\+/g," "),Z=te.join("=").replace(/\+/g," ");x.append(decodeURIComponent(Ce),decodeURIComponent(Z))}}),x}function Fe(h){var x=new u,T=h.replace(/\r?\n[\t ]+/g," ");return T.split(/\r?\n/).forEach(function(te){var Ce=te.split(":"),Z=Ce.shift().trim();if(Z){var So=Ce.join(":").trim();x.append(Z,So)}}),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 te=Error(x);this.stack=te.stack},r.DOMException.prototype=Object.create(Error.prototype),r.DOMException.prototype.constructor=r.DOMException}function Je(h,x){return new Promise(function(T,te){var Ce=new k(h,x);if(Ce.signal&&Ce.signal.aborted)return te(new r.DOMException("Aborted","AbortError"));var Z=new XMLHttpRequest;function So(){Z.abort()}Z.onload=function(){var Kr={status:Z.status,statusText:Z.statusText,headers:Fe(Z.getAllResponseHeaders()||"")};Kr.url="responseURL"in Z?Z.responseURL:Kr.headers.get("X-Request-URL");var $i="response"in Z?Z.response:Z.responseText;T(new be($i,Kr))},Z.onerror=function(){te(new TypeError("Network request failed"))},Z.ontimeout=function(){te(new TypeError("Network request failed"))},Z.onabort=function(){te(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,$i){Z.setRequestHeader($i,Kr)}),Ce.signal&&(Ce.signal.addEventListener("abort",So),Z.onreadystatechange=function(){Z.readyState===4&&Ce.signal.removeEventListener("abort",So)}),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:Kc)});var ta=m(E());var yd=m($()),Ke=m(G()),Pe=m(E());var aa=m(E()),sa=m(G());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 Ad=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},Bi=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},Mi=Symbol("registerInterval");function Rd(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[Mi]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[Mi]):this.dispatchEvent(new Bi)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=Mi,Ad([(0,sa.state)()],r.prototype,"stateManager",void 0),r}var Lt=class extends Rd(aa.FtLitElementRedux){};var fe=m($()),ue=m(G()),Pi=m(E());var as=m($()),X=m(E());var is=m($()),B=m(E());var ua=m($()),he=m(E()),la=he.FtCssVariableFactory.extend("--ft-ripple-color","",he.designSystemVariables.colorContent),M={color:la,backgroundColor:he.FtCssVariableFactory.extend("--ft-ripple-background-color","",la),opacityContentOnSurfacePressed:he.FtCssVariableFactory.external(he.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:he.FtCssVariableFactory.external(he.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:he.FtCssVariableFactory.external(he.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:he.FtCssVariableFactory.external(he.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:he.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},ca=he.FtCssVariableFactory.extend("--ft-ripple-color","",he.designSystemVariables.colorPrimary),da={color:ca,backgroundColor:he.FtCssVariableFactory.extend("--ft-ripple-background-color","",ca)},pa=he.FtCssVariableFactory.extend("--ft-ripple-color","",he.designSystemVariables.colorSecondary),fa={color:pa,backgroundColor:he.FtCssVariableFactory.extend("--ft-ripple-background-color","",pa)},ha=ua.css`
1
+ "use strict";(()=>{var Rd=Object.create;var ca=Object.defineProperty;var Nd=Object.getOwnPropertyDescriptor;var Td=Object.getOwnPropertyNames;var Id=Object.getPrototypeOf,_d=Object.prototype.hasOwnProperty;var lr=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var kd=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Td(e))!_d.call(t,n)&&n!==r&&ca(t,n,{get:()=>e[n],enumerable:!(i=Nd(e,n))||i.enumerable});return t};var g=(t,e,r)=>(r=t!=null?Rd(Id(t)):{},kd(e||!t||!t.__esModule?ca(r,"default",{value:t,enumerable:!0}):r,t));var E=lr((tf,da)=>{da.exports=ftGlobals.wcUtils});var D=lr((rf,pa)=>{pa.exports=ftGlobals.lit});var Z=lr((of,fa)=>{fa.exports=ftGlobals.litDecorators});var Ht=lr((hg,Ds)=>{Ds.exports=ftGlobals.litClassMap});var fl=lr((ry,pl)=>{pl.exports=ftGlobals.litUnsafeHTML});var Ll=lr((Sb,Pl)=>{Pl.exports=ftGlobals.litRepeat});var td=lr((ir,ed)=>{var Si=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,Oi=function(){function t(){this.fetch=!1,this.DOMException=Si.DOMException}return t.prototype=Si,new t}();(function(t){var e=function(r){var i=typeof t<"u"&&t||typeof self<"u"&&self||typeof global<"u"&&global||{},n={searchParams:"URLSearchParams"in i,iterable:"Symbol"in i&&"iterator"in Symbol,blob:"FileReader"in i&&"Blob"in i&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in i,arrayBuffer:"ArrayBuffer"in i};function a(u){return u&&DataView.prototype.isPrototypeOf(u)}if(n.arrayBuffer)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(u){return u&&s.indexOf(Object.prototype.toString.call(u))>-1};function d(u){if(typeof u!="string"&&(u=String(u)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(u)||u==="")throw new TypeError('Invalid character in header field name: "'+u+'"');return u.toLowerCase()}function p(u){return typeof u!="string"&&(u=String(u)),u}function h(u){var b={next:function(){var _=u.shift();return{done:_===void 0,value:_}}};return n.iterable&&(b[Symbol.iterator]=function(){return b}),b}function m(u){this.map={},u instanceof m?u.forEach(function(b,_){this.append(_,b)},this):Array.isArray(u)?u.forEach(function(b){if(b.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+b.length);this.append(b[0],b[1])},this):u&&Object.getOwnPropertyNames(u).forEach(function(b){this.append(b,u[b])},this)}m.prototype.append=function(u,b){u=d(u),b=p(b);var _=this.map[u];this.map[u]=_?_+", "+b:b},m.prototype.delete=function(u){delete this.map[d(u)]},m.prototype.get=function(u){return u=d(u),this.has(u)?this.map[u]:null},m.prototype.has=function(u){return this.map.hasOwnProperty(d(u))},m.prototype.set=function(u,b){this.map[d(u)]=p(b)},m.prototype.forEach=function(u,b){for(var _ in this.map)this.map.hasOwnProperty(_)&&u.call(b,this.map[_],_,this)},m.prototype.keys=function(){var u=[];return this.forEach(function(b,_){u.push(_)}),h(u)},m.prototype.values=function(){var u=[];return this.forEach(function(b){u.push(b)}),h(u)},m.prototype.entries=function(){var u=[];return this.forEach(function(b,_){u.push([_,b])}),h(u)},n.iterable&&(m.prototype[Symbol.iterator]=m.prototype.entries);function y(u){if(!u._noBody){if(u.bodyUsed)return Promise.reject(new TypeError("Already read"));u.bodyUsed=!0}}function v(u){return new Promise(function(b,_){u.onload=function(){b(u.result)},u.onerror=function(){_(u.error)}})}function x(u){var b=new FileReader,_=v(b);return b.readAsArrayBuffer(u),_}function S(u){var b=new FileReader,_=v(b),q=/charset=([A-Za-z0-9_-]+)/.exec(u.type),ne=q?q[1]:"utf-8";return b.readAsText(u,ne),_}function T(u){for(var b=new Uint8Array(u),_=new Array(b.length),q=0;q<b.length;q++)_[q]=String.fromCharCode(b[q]);return _.join("")}function A(u){if(u.slice)return u.slice(0);var b=new Uint8Array(u.byteLength);return b.set(new Uint8Array(u)),b.buffer}function R(){return this.bodyUsed=!1,this._initBody=function(u){this.bodyUsed=this.bodyUsed,this._bodyInit=u,u?typeof u=="string"?this._bodyText=u:n.blob&&Blob.prototype.isPrototypeOf(u)?this._bodyBlob=u:n.formData&&FormData.prototype.isPrototypeOf(u)?this._bodyFormData=u:n.searchParams&&URLSearchParams.prototype.isPrototypeOf(u)?this._bodyText=u.toString():n.arrayBuffer&&n.blob&&a(u)?(this._bodyArrayBuffer=A(u.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):n.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(u)||l(u))?this._bodyArrayBuffer=A(u):this._bodyText=u=Object.prototype.toString.call(u):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof u=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n.searchParams&&URLSearchParams.prototype.isPrototypeOf(u)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n.blob&&(this.blob=function(){var u=y(this);if(u)return u;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(){if(this._bodyArrayBuffer){var u=y(this);return u||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(n.blob)return this.blob().then(x);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var u=y(this);if(u)return u;if(this._bodyBlob)return S(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(T(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},n.formData&&(this.formData=function(){return this.text().then(We)}),this.json=function(){return this.text().then(JSON.parse)},this}var L=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function B(u){var b=u.toUpperCase();return L.indexOf(b)>-1?b:u}function F(u,b){if(!(this instanceof F))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');b=b||{};var _=b.body;if(u instanceof F){if(u.bodyUsed)throw new TypeError("Already read");this.url=u.url,this.credentials=u.credentials,b.headers||(this.headers=new m(u.headers)),this.method=u.method,this.mode=u.mode,this.signal=u.signal,!_&&u._bodyInit!=null&&(_=u._bodyInit,u.bodyUsed=!0)}else this.url=String(u);if(this.credentials=b.credentials||this.credentials||"same-origin",(b.headers||!this.headers)&&(this.headers=new m(b.headers)),this.method=B(b.method||this.method||"GET"),this.mode=b.mode||this.mode||null,this.signal=b.signal||this.signal||function(){if("AbortController"in i){var z=new AbortController;return z.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&_)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(_),(this.method==="GET"||this.method==="HEAD")&&(b.cache==="no-store"||b.cache==="no-cache")){var q=/([?&])_=[^&]*/;if(q.test(this.url))this.url=this.url.replace(q,"$1_="+new Date().getTime());else{var ne=/\?/;this.url+=(ne.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}F.prototype.clone=function(){return new F(this,{body:this._bodyInit})};function We(u){var b=new FormData;return u.trim().split("&").forEach(function(_){if(_){var q=_.split("="),ne=q.shift().replace(/\+/g," "),z=q.join("=").replace(/\+/g," ");b.append(decodeURIComponent(ne),decodeURIComponent(z))}}),b}function gt(u){var b=new m,_=u.replace(/\r?\n[\t ]+/g," ");return _.split("\r").map(function(q){return q.indexOf(`
2
+ `)===0?q.substr(1,q.length):q}).forEach(function(q){var ne=q.split(":"),z=ne.shift().trim();if(z){var Eo=ne.join(":").trim();try{b.append(z,Eo)}catch(Wi){console.warn("Response "+Wi.message)}}}),b}R.call(F.prototype);function $e(u,b){if(!(this instanceof $e))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(b||(b={}),this.type="default",this.status=b.status===void 0?200:b.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=b.statusText===void 0?"":""+b.statusText,this.headers=new m(b.headers),this.url=b.url||"",this._initBody(u)}R.call($e.prototype),$e.prototype.clone=function(){return new $e(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new m(this.headers),url:this.url})},$e.error=function(){var u=new $e(null,{status:200,statusText:""});return u.ok=!1,u.status=0,u.type="error",u};var yt=[301,302,303,307,308];$e.redirect=function(u,b){if(yt.indexOf(b)===-1)throw new RangeError("Invalid status code");return new $e(null,{status:b,headers:{location:u}})},r.DOMException=i.DOMException;try{new r.DOMException}catch{r.DOMException=function(b,_){this.message=b,this.name=_;var q=Error(b);this.stack=q.stack},r.DOMException.prototype=Object.create(Error.prototype),r.DOMException.prototype.constructor=r.DOMException}function Ce(u,b){return new Promise(function(_,q){var ne=new F(u,b);if(ne.signal&&ne.signal.aborted)return q(new r.DOMException("Aborted","AbortError"));var z=new XMLHttpRequest;function Eo(){z.abort()}z.onload=function(){var Ee={statusText:z.statusText,headers:gt(z.getAllResponseHeaders()||"")};ne.url.indexOf("file://")===0&&(z.status<200||z.status>599)?Ee.status=200:Ee.status=z.status,Ee.url="responseURL"in z?z.responseURL:Ee.headers.get("X-Request-URL");var sr="response"in z?z.response:z.responseText;setTimeout(function(){_(new $e(sr,Ee))},0)},z.onerror=function(){setTimeout(function(){q(new TypeError("Network request failed"))},0)},z.ontimeout=function(){setTimeout(function(){q(new TypeError("Network request timed out"))},0)},z.onabort=function(){setTimeout(function(){q(new r.DOMException("Aborted","AbortError"))},0)};function Wi(Ee){try{return Ee===""&&i.location.href?i.location.href:Ee}catch{return Ee}}if(z.open(ne.method,Wi(ne.url),!0),ne.credentials==="include"?z.withCredentials=!0:ne.credentials==="omit"&&(z.withCredentials=!1),"responseType"in z&&(n.blob?z.responseType="blob":n.arrayBuffer&&(z.responseType="arraybuffer")),b&&typeof b.headers=="object"&&!(b.headers instanceof m||i.Headers&&b.headers instanceof i.Headers)){var la=[];Object.getOwnPropertyNames(b.headers).forEach(function(Ee){la.push(d(Ee)),z.setRequestHeader(Ee,p(b.headers[Ee]))}),ne.headers.forEach(function(Ee,sr){la.indexOf(sr)===-1&&z.setRequestHeader(sr,Ee)})}else ne.headers.forEach(function(Ee,sr){z.setRequestHeader(sr,Ee)});ne.signal&&(ne.signal.addEventListener("abort",Eo),z.onreadystatechange=function(){z.readyState===4&&ne.signal.removeEventListener("abort",Eo)}),z.send(typeof ne._bodyInit>"u"?null:ne._bodyInit)})}return Ce.polyfill=!0,i.fetch||(i.fetch=Ce,i.Headers=m,i.Request=F,i.Response=$e),r.Headers=m,r.Request=F,r.Response=$e,r.fetch=Ce,r}({})})(Oi);Oi.fetch.ponyfill=!0;delete Oi.fetch.polyfill;var qr=Si.fetch?Si:Oi;ir=qr.fetch;ir.default=qr.fetch;ir.fetch=qr.fetch;ir.Headers=qr.Headers;ir.Request=qr.Request;ir.Response=qr.Response;ed.exports=ir});var sa=g(E());var Cd=g(D()),qe=g(Z()),Le=g(E());var ua=g(E()),ha=g(Z());var et;(function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"})(et||(et={}));var Pd=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},Vi=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},Hi=Symbol("registerInterval");function Ld(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[Hi]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[Hi]):this.dispatchEvent(new Vi)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=Hi,Pd([(0,ha.state)()],r.prototype,"stateManager",void 0),r}var Mt=class extends Ld(ua.FtLitElementRedux){};var ue=g(D()),he=g(Z()),Ui=g(E());var us=g(D()),J=g(E());var ps=g(D()),M=g(E());var xa=g(D()),me=g(E()),ma=me.FtCssVariableFactory.extend("--ft-ripple-color","",me.designSystemVariables.colorContent),$={color:ma,backgroundColor:me.FtCssVariableFactory.extend("--ft-ripple-background-color","",ma),opacityContentOnSurfacePressed:me.FtCssVariableFactory.external(me.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:me.FtCssVariableFactory.external(me.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:me.FtCssVariableFactory.external(me.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:me.FtCssVariableFactory.external(me.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:me.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},ga=me.FtCssVariableFactory.extend("--ft-ripple-color","",me.designSystemVariables.colorPrimary),ya={color:ga,backgroundColor:me.FtCssVariableFactory.extend("--ft-ripple-background-color","",ga)},ba=me.FtCssVariableFactory.extend("--ft-ripple-color","",me.designSystemVariables.colorSecondary),va={color:ba,backgroundColor:me.FtCssVariableFactory.extend("--ft-ripple-background-color","",ba)},Sa=xa.css`
2
3
  :host {
3
4
  display: contents;
4
5
  }
@@ -11,7 +12,7 @@
11
12
 
12
13
  .ft-ripple:not(.ft-ripple--unbounded) {
13
14
  overflow: hidden;
14
- border-radius: ${M.borderRadius};
15
+ border-radius: ${$.borderRadius};
15
16
  }
16
17
 
17
18
  .ft-ripple .ft-ripple--background,
@@ -45,27 +46,27 @@
45
46
  }
46
47
 
47
48
  .ft-ripple .ft-ripple--background {
48
- background-color: ${M.backgroundColor};
49
+ background-color: ${$.backgroundColor};
49
50
  }
50
51
 
51
52
  .ft-ripple .ft-ripple--effect {
52
- background-color: ${M.color};
53
+ background-color: ${$.color};
53
54
  }
54
55
 
55
56
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
56
- background-color: ${fa.backgroundColor};
57
+ background-color: ${va.backgroundColor};
57
58
  }
58
59
 
59
60
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
60
- background-color: ${fa.color};
61
+ background-color: ${va.color};
61
62
  }
62
63
 
63
64
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
64
- background-color: ${da.backgroundColor};
65
+ background-color: ${ya.backgroundColor};
65
66
  }
66
67
 
67
68
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
68
- background-color: ${da.color};
69
+ background-color: ${ya.color};
69
70
  }
70
71
 
71
72
  .ft-ripple .ft-ripple--background {
@@ -95,24 +96,24 @@
95
96
  }
96
97
 
97
98
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
98
- opacity: ${M.opacityContentOnSurfaceHover};
99
+ opacity: ${$.opacityContentOnSurfaceHover};
99
100
  }
100
101
 
101
102
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
102
- opacity: ${M.opacityContentOnSurfaceSelected};
103
+ opacity: ${$.opacityContentOnSurfaceSelected};
103
104
  }
104
105
 
105
106
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
106
- opacity: ${M.opacityContentOnSurfaceFocused};
107
+ opacity: ${$.opacityContentOnSurfaceFocused};
107
108
  }
108
109
 
109
110
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
110
- opacity: ${M.opacityContentOnSurfacePressed};
111
+ opacity: ${$.opacityContentOnSurfacePressed};
111
112
  transform: translate(-50%, -50%) scale(1);
112
113
  }
113
- `;var tt=m($()),C=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)")},ma={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")},ga={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")},ya={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")},ba={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")},va={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")},xa={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")},Sa={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")},Oa={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")},wa={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")},Nd={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")},Ca={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")},Ea={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")},Aa={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")},Ra={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")},Na={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")},Ia={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")},Ta={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")},_a={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")},ka={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")},Pa={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")},La={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")},Da={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")},$a={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")},Ma={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")},Ba={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")},Ua={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")},Oo={display:ma,"title-1":ga,"title-2":ya,"title-3":ba,"body-1-regular":va,"body-1-medium":xa,"body-1-semibold":Sa,"body-2-regular":Oa,"body-2-medium":wa,"body-2-medium-underline":Nd,"body-2-semibold":Ca,"label-1-medium":Ea,"label-1-semibold":Aa,"label-1-bold":Ra,"label-2-medium":Na,"label-2-semibold":Ia,"label-2-bold":Ta,"caption-1-medium":_a,"caption-1-semibold":ka,"caption-1-bold":Pa,"caption-2-medium":La,"caption-2-semibold":Da,"caption-2-bold":$a,"caption-3-medium":Ma,"caption-3-semibold":Ba,"caption-3-bold":Ua};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 O={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 hf={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.create("--ft-chip-large-border-radius","","SIZE","18px"),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.create("--ft-chip-medium-border-radius","","SIZE","12px"),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.create("--ft-chip-small-border-radius","","SIZE","10px"),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 vf={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 Cf={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 If={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 Lf={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 Uf={horizontalPadding:o.extend("--ft-page-header-horizontal-padding","",c.spacing6),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 Vf={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 qf={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 eu={offBorderBottomWidth:o.create("--ft-tabs-off-border-bottom-width","","SIZE","1px"),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),offBorderBottomColor:o.extend("--ft-tabs-off-border-bottom-color","",f.borderGlobalSubtle),activeTabIndicatorHeight:o.create("--ft-tabs-active-tab-indicator-height","","SIZE","3px"),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),onHoverStateLayerOpacity:o.extend("--ft-tabs-on-hover-state-layer-opacity","",c.opacity16),onDefaultStateLayerOpacity:o.extend("--ft-tabs-on-default-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:o.extend("--ft-tabs-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:o.extend("--ft-tabs-on-active-state-layer-opacity","",c.opacity24),onColor:o.extend("--ft-tabs-on-color","",f.contentActionPrimary),onStateLayerColor:o.extend("--ft-tabs-on-state-layer-color","",f.contentActionPrimary),onActiveTabIndicatorColor:o.extend("--ft-tabs-on-active-tab-indicator-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 nu={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 du={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 mu={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),shadow:o.extend("--ft-floating-menu-shadow","",c.shadowElevation02)};var xu={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 Eu={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 Tu={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 Du={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 Fu={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 Vu={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 qu={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 eh={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 nh={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 dh={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 mh={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 xh={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.shadowElevation02),maxWidth:o.create("--ft-tooltip-max-width","","SIZE","256px"),gap:o.extend("--ft-tooltip-gap","",c.spacing05)};var wo;(function(t){t.brand="brand",t.neutral="neutral",t.info="info",t.success="success",t.warning="warning",t.error="error"})(wo||(wo={}));var br;(function(t){t.large="large",t.medium="medium",t.small="small"})(br||(br={}));var Co=m($());function Fa(t){let e=Oo[t];return Co.css`
115
- .ft-typography--${(0,Co.unsafeCSS)(t)} {
114
+ `;var rt=g(D()),C=g(E());var Ct=g(D(),1),Bt=t=>typeof t=="string"?(0,Ct.unsafeCSS)(t):t,o=class{static create(e,r,i,n){let a=l=>Bt(l??n),s=Ct.css`var(${Bt(e)}, ${a(n)})`;return s.name=e,s.description=r,s.category=i,s.defaultValue=n,s.defaultCssValue=a,s.get=l=>Ct.css`var(${Bt(e)}, ${a(l)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>n,s}static extend(e,r,i,n){let a=l=>i.get(l??n),s=Ct.css`var(${Bt(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=>Ct.css`var(${Bt(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):Bt(a??e.lastResortDefaultValue()),n=Ct.css`var(${Bt(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=>Ct.css`var(${Bt(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)")},Oa={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")},wa={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")},Ca={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")},Ea={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")},Aa={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")},Ra={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")},Na={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")},Ta={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")},Ia={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")},Dd={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")},_a={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")},ka={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")},Pa={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")},La={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")},Da={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")},$a={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")},Ma={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")},Ba={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")},Ua={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")},Fa={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")},za={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")},Wa={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")},Ha={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")},Va={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")},ja={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")},Ga={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")},Ao={display:Oa,"title-1":wa,"title-2":Ca,"title-3":Ea,"body-1-regular":Aa,"body-1-medium":Ra,"body-1-semibold":Na,"body-2-regular":Ta,"body-2-medium":Ia,"body-2-medium-underline":Dd,"body-2-semibold":_a,"label-1-medium":ka,"label-1-semibold":Pa,"label-1-bold":La,"label-2-medium":Da,"label-2-semibold":$a,"label-2-bold":Ma,"caption-1-medium":Ba,"caption-1-semibold":Ua,"caption-1-bold":Fa,"caption-2-medium":za,"caption-2-semibold":Wa,"caption-2-bold":Ha,"caption-3-medium":Va,"caption-3-semibold":ja,"caption-3-bold":Ga};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.
115
+ 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 O={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 Of={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.create("--ft-chip-large-border-radius","","SIZE","18px"),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.create("--ft-chip-medium-border-radius","","SIZE","12px"),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.create("--ft-chip-small-border-radius","","SIZE","10px"),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 Rf={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 kf={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 Mf={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 Wf={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 Kf={horizontalPadding:o.extend("--ft-page-header-horizontal-padding","",c.spacing6),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 Jf={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 ou={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 lu={offBorderBottomWidth:o.create("--ft-tabs-off-border-bottom-width","","SIZE","1px"),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),offBorderBottomColor:o.extend("--ft-tabs-off-border-bottom-color","",f.borderGlobalSubtle),activeTabIndicatorHeight:o.create("--ft-tabs-active-tab-indicator-height","","SIZE","3px"),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),onHoverStateLayerOpacity:o.extend("--ft-tabs-on-hover-state-layer-opacity","",c.opacity16),onDefaultStateLayerOpacity:o.extend("--ft-tabs-on-default-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:o.extend("--ft-tabs-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:o.extend("--ft-tabs-on-active-state-layer-opacity","",c.opacity24),onColor:o.extend("--ft-tabs-on-color","",f.contentActionPrimary),onStateLayerColor:o.extend("--ft-tabs-on-state-layer-color","",f.contentActionPrimary),onActiveTabIndicatorColor:o.extend("--ft-tabs-on-active-tab-indicator-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 uu={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 bu={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 wu={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),shadow:o.extend("--ft-floating-menu-shadow","",c.shadowElevation02)};var Nu={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 Pu={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 Bu={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 Hu={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 Zu={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 Ju={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 oh={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 lh={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 uh={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 bh={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 wh={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 Nh={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.shadowElevation02),maxWidth:o.create("--ft-tooltip-max-width","","SIZE","256px"),gap:o.extend("--ft-tooltip-gap","",c.spacing05)};var Ro;(function(t){t.brand="brand",t.neutral="neutral",t.info="info",t.success="success",t.warning="warning",t.error="error"})(Ro||(Ro={}));var wr;(function(t){t.large="large",t.medium="medium",t.small="small"})(wr||(wr={}));var No=g(D());function Ka(t){let e=Ao[t];return No.css`
116
+ .ft-typography--${(0,No.unsafeCSS)(t)} {
116
117
  font-family: ${e.fontFamily};
117
118
  font-size: ${e.fontSize};
118
119
  font-weight: ${e.fontWeight};
@@ -120,102 +121,102 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
120
121
  line-height: ${e.lineHeight};
121
122
  text-transform: ${e.textCase};
122
123
  }
123
- `}var za=C.FtCssVariableFactory.extend("--ft-typography-font-family","",C.designSystemVariables.titleFont),Ot=C.FtCssVariableFactory.extend("--ft-typography-font-family","",C.designSystemVariables.contentFont),_={fontFamily:Ot,fontSize:C.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:C.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:C.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:C.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:C.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},$t={fontFamily:C.FtCssVariableFactory.extend("--ft-typography-title-font-family","",za),fontSize:C.FtCssVariableFactory.extend("--ft-typography-title-font-size","",_.fontSize,"20px"),fontWeight:C.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",_.fontWeight,"normal"),letterSpacing:C.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",_.letterSpacing,"0.15px"),lineHeight:C.FtCssVariableFactory.extend("--ft-typography-title-line-height","",_.lineHeight,"1.2"),textTransform:C.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",_.textTransform,"inherit")},Mt={fontFamily:C.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",za),fontSize:C.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",_.fontSize,"14px"),fontWeight:C.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",_.fontWeight,"normal"),letterSpacing:C.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",_.letterSpacing,"0.105px"),lineHeight:C.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",_.lineHeight,"1.7"),textTransform:C.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",_.textTransform,"inherit")},vr={fontFamily:C.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Ot),fontSize:C.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",_.fontSize,"16px"),fontWeight:C.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",_.fontWeight,"600"),letterSpacing:C.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",_.letterSpacing,"0.144px"),lineHeight:C.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",_.lineHeight,"1.5"),textTransform:C.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",_.textTransform,"inherit")},xr={fontFamily:C.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Ot),fontSize:C.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",_.fontSize,"14px"),fontWeight:C.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",_.fontWeight,"normal"),letterSpacing:C.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",_.letterSpacing,"0.098px"),lineHeight:C.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",_.lineHeight,"1.7"),textTransform:C.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",_.textTransform,"inherit")},et={fontFamily:C.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Ot),fontSize:C.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",_.fontSize,"16px"),fontWeight:C.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",_.fontWeight,"normal"),letterSpacing:C.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",_.letterSpacing,"0.496px"),lineHeight:C.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",_.lineHeight,"1.5"),textTransform:C.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",_.textTransform,"inherit")},Sr={fontFamily:C.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Ot),fontSize:C.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",_.fontSize,"14px"),fontWeight:C.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",_.fontWeight,"normal"),letterSpacing:C.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",_.letterSpacing,"0.252px"),lineHeight:C.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",_.lineHeight,"1.4"),textTransform:C.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",_.textTransform,"inherit")},st={fontFamily:C.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Ot),fontSize:C.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",_.fontSize,"12px"),fontWeight:C.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",_.fontWeight,"normal"),letterSpacing:C.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",_.letterSpacing,"0.396px"),lineHeight:C.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",_.lineHeight,"1.33"),textTransform:C.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",_.textTransform,"inherit")},Or={fontFamily:C.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Ot),fontSize:C.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",_.fontSize,"10px"),fontWeight:C.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",_.fontWeight,"normal"),letterSpacing:C.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",_.letterSpacing,"0.33px"),lineHeight:C.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",_.lineHeight,"1.6"),textTransform:C.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",_.textTransform,"inherit")},wr={fontFamily:C.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Ot),fontSize:C.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",_.fontSize,"10px"),fontWeight:C.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",_.fontWeight,"normal"),letterSpacing:C.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",_.letterSpacing,"1.5px"),lineHeight:C.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",_.lineHeight,"1.6"),textTransform:C.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",_.textTransform,"uppercase")},De={fontFamily:C.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Ot),fontSize:C.FtCssVariableFactory.extend("--ft-typography-button-font-size","",_.fontSize,"14px"),fontWeight:C.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",_.fontWeight,"600"),letterSpacing:C.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",_.letterSpacing,"1.246px"),lineHeight:C.FtCssVariableFactory.extend("--ft-typography-button-line-height","",_.lineHeight,"1.15"),textTransform:C.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",_.textTransform,"uppercase")},Wa=tt.css`
124
+ `}var Za=C.FtCssVariableFactory.extend("--ft-typography-font-family","",C.designSystemVariables.titleFont),Et=C.FtCssVariableFactory.extend("--ft-typography-font-family","",C.designSystemVariables.contentFont),I={fontFamily:Et,fontSize:C.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:C.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:C.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:C.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:C.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Ut={fontFamily:C.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Za),fontSize:C.FtCssVariableFactory.extend("--ft-typography-title-font-size","",I.fontSize,"20px"),fontWeight:C.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",I.fontWeight,"normal"),letterSpacing:C.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",I.letterSpacing,"0.15px"),lineHeight:C.FtCssVariableFactory.extend("--ft-typography-title-line-height","",I.lineHeight,"1.2"),textTransform:C.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",I.textTransform,"inherit")},Ft={fontFamily:C.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Za),fontSize:C.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",I.fontSize,"14px"),fontWeight:C.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",I.fontWeight,"normal"),letterSpacing:C.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",I.letterSpacing,"0.105px"),lineHeight:C.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",I.lineHeight,"1.7"),textTransform:C.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",I.textTransform,"inherit")},Cr={fontFamily:C.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Et),fontSize:C.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",I.fontSize,"16px"),fontWeight:C.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",I.fontWeight,"600"),letterSpacing:C.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",I.letterSpacing,"0.144px"),lineHeight:C.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",I.lineHeight,"1.5"),textTransform:C.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",I.textTransform,"inherit")},Er={fontFamily:C.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Et),fontSize:C.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",I.fontSize,"14px"),fontWeight:C.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",I.fontWeight,"normal"),letterSpacing:C.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",I.letterSpacing,"0.098px"),lineHeight:C.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",I.lineHeight,"1.7"),textTransform:C.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",I.textTransform,"inherit")},tt={fontFamily:C.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Et),fontSize:C.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",I.fontSize,"16px"),fontWeight:C.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",I.fontWeight,"normal"),letterSpacing:C.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",I.letterSpacing,"0.496px"),lineHeight:C.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",I.lineHeight,"1.5"),textTransform:C.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",I.textTransform,"inherit")},Ar={fontFamily:C.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Et),fontSize:C.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",I.fontSize,"14px"),fontWeight:C.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",I.fontWeight,"normal"),letterSpacing:C.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",I.letterSpacing,"0.252px"),lineHeight:C.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",I.lineHeight,"1.4"),textTransform:C.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",I.textTransform,"inherit")},lt={fontFamily:C.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Et),fontSize:C.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",I.fontSize,"12px"),fontWeight:C.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",I.fontWeight,"normal"),letterSpacing:C.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",I.letterSpacing,"0.396px"),lineHeight:C.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",I.lineHeight,"1.33"),textTransform:C.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",I.textTransform,"inherit")},Rr={fontFamily:C.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Et),fontSize:C.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",I.fontSize,"10px"),fontWeight:C.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",I.fontWeight,"normal"),letterSpacing:C.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",I.letterSpacing,"0.33px"),lineHeight:C.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",I.lineHeight,"1.6"),textTransform:C.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",I.textTransform,"inherit")},Nr={fontFamily:C.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Et),fontSize:C.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",I.fontSize,"10px"),fontWeight:C.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",I.fontWeight,"normal"),letterSpacing:C.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",I.letterSpacing,"1.5px"),lineHeight:C.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",I.lineHeight,"1.6"),textTransform:C.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",I.textTransform,"uppercase")},Me={fontFamily:C.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Et),fontSize:C.FtCssVariableFactory.extend("--ft-typography-button-font-size","",I.fontSize,"14px"),fontWeight:C.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",I.fontWeight,"600"),letterSpacing:C.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",I.letterSpacing,"1.246px"),lineHeight:C.FtCssVariableFactory.extend("--ft-typography-button-line-height","",I.lineHeight,"1.15"),textTransform:C.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",I.textTransform,"uppercase")},qa=rt.css`
124
125
  .ft-typography--title {
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
- `,Ha=tt.css`
126
+ font-family: ${Ut.fontFamily};
127
+ font-size: ${Ut.fontSize};
128
+ font-weight: ${Ut.fontWeight};
129
+ letter-spacing: ${Ut.letterSpacing};
130
+ line-height: ${Ut.lineHeight};
131
+ text-transform: ${Ut.textTransform};
132
+ }
133
+ `,Ya=rt.css`
133
134
  .ft-typography--title-dense {
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
- `,Va=tt.css`
135
+ font-family: ${Ft.fontFamily};
136
+ font-size: ${Ft.fontSize};
137
+ font-weight: ${Ft.fontWeight};
138
+ letter-spacing: ${Ft.letterSpacing};
139
+ line-height: ${Ft.lineHeight};
140
+ text-transform: ${Ft.textTransform};
141
+ }
142
+ `,Xa=rt.css`
142
143
  .ft-typography--subtitle1 {
143
- font-family: ${vr.fontFamily};
144
- font-size: ${vr.fontSize};
145
- font-weight: ${vr.fontWeight};
146
- letter-spacing: ${vr.letterSpacing};
147
- line-height: ${vr.lineHeight};
148
- text-transform: ${vr.textTransform};
149
- }
150
- `,ja=tt.css`
144
+ font-family: ${Cr.fontFamily};
145
+ font-size: ${Cr.fontSize};
146
+ font-weight: ${Cr.fontWeight};
147
+ letter-spacing: ${Cr.letterSpacing};
148
+ line-height: ${Cr.lineHeight};
149
+ text-transform: ${Cr.textTransform};
150
+ }
151
+ `,Ja=rt.css`
151
152
  .ft-typography--subtitle2 {
152
- font-family: ${xr.fontFamily};
153
- font-size: ${xr.fontSize};
154
- font-weight: ${xr.fontWeight};
155
- letter-spacing: ${xr.letterSpacing};
156
- line-height: ${xr.lineHeight};
157
- text-transform: ${xr.textTransform};
153
+ font-family: ${Er.fontFamily};
154
+ font-size: ${Er.fontSize};
155
+ font-weight: ${Er.fontWeight};
156
+ letter-spacing: ${Er.letterSpacing};
157
+ line-height: ${Er.lineHeight};
158
+ text-transform: ${Er.textTransform};
158
159
  }
159
160
 
160
- `,Cr=tt.css`
161
+ `,Tr=rt.css`
161
162
  .ft-typography--body1 {
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
- `,Ga=tt.css`
163
+ font-family: ${tt.fontFamily};
164
+ font-size: ${tt.fontSize};
165
+ font-weight: ${tt.fontWeight};
166
+ letter-spacing: ${tt.letterSpacing};
167
+ line-height: ${tt.lineHeight};
168
+ text-transform: ${tt.textTransform};
169
+ }
170
+ `,Qa=rt.css`
170
171
  .ft-typography--body2 {
171
- font-family: ${Sr.fontFamily};
172
- font-size: ${Sr.fontSize};
173
- font-weight: ${Sr.fontWeight};
174
- letter-spacing: ${Sr.letterSpacing};
175
- line-height: ${Sr.lineHeight};
176
- text-transform: ${Sr.textTransform};
177
- }
178
- `,Eo=tt.css`
172
+ font-family: ${Ar.fontFamily};
173
+ font-size: ${Ar.fontSize};
174
+ font-weight: ${Ar.fontWeight};
175
+ letter-spacing: ${Ar.letterSpacing};
176
+ line-height: ${Ar.lineHeight};
177
+ text-transform: ${Ar.textTransform};
178
+ }
179
+ `,To=rt.css`
179
180
  .ft-typography--caption {
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
- `,Ka=tt.css`
181
+ font-family: ${lt.fontFamily};
182
+ font-size: ${lt.fontSize};
183
+ font-weight: ${lt.fontWeight};
184
+ letter-spacing: ${lt.letterSpacing};
185
+ line-height: ${lt.lineHeight};
186
+ text-transform: ${lt.textTransform};
187
+ }
188
+ `,es=rt.css`
188
189
  .ft-typography--breadcrumb {
189
- font-family: ${Or.fontFamily};
190
- font-size: ${Or.fontSize};
191
- font-weight: ${Or.fontWeight};
192
- letter-spacing: ${Or.letterSpacing};
193
- line-height: ${Or.lineHeight};
194
- text-transform: ${Or.textTransform};
195
- }
196
- `,Za=tt.css`
190
+ font-family: ${Rr.fontFamily};
191
+ font-size: ${Rr.fontSize};
192
+ font-weight: ${Rr.fontWeight};
193
+ letter-spacing: ${Rr.letterSpacing};
194
+ line-height: ${Rr.lineHeight};
195
+ text-transform: ${Rr.textTransform};
196
+ }
197
+ `,ts=rt.css`
197
198
  .ft-typography--overline {
198
- font-family: ${wr.fontFamily};
199
- font-size: ${wr.fontSize};
200
- font-weight: ${wr.fontWeight};
201
- letter-spacing: ${wr.letterSpacing};
202
- line-height: ${wr.lineHeight};
203
- text-transform: ${wr.textTransform};
204
- }
205
- `,qa=tt.css`
199
+ font-family: ${Nr.fontFamily};
200
+ font-size: ${Nr.fontSize};
201
+ font-weight: ${Nr.fontWeight};
202
+ letter-spacing: ${Nr.letterSpacing};
203
+ line-height: ${Nr.lineHeight};
204
+ text-transform: ${Nr.textTransform};
205
+ }
206
+ `,rs=rt.css`
206
207
  .ft-typography--button {
207
- font-family: ${De.fontFamily};
208
- font-size: ${De.fontSize};
209
- font-weight: ${De.fontWeight};
210
- letter-spacing: ${De.letterSpacing};
211
- line-height: ${De.lineHeight};
212
- text-transform: ${De.textTransform};
213
- }
214
- `,Ya=tt.css`
208
+ font-family: ${Me.fontFamily};
209
+ font-size: ${Me.fontSize};
210
+ font-weight: ${Me.fontWeight};
211
+ letter-spacing: ${Me.letterSpacing};
212
+ line-height: ${Me.lineHeight};
213
+ text-transform: ${Me.textTransform};
214
+ }
215
+ `,os=rt.css`
215
216
  .ft-typography {
216
217
  vertical-align: inherit;
217
218
  }
218
- `,Xa=[Object.keys(Oo).map(t=>Fa(t))];var Ja=m($()),Zr=m(E()),$e={color:Zr.FtCssVariableFactory.extend("--ft-loader-color","",Zr.designSystemVariables.colorPrimary),size:Zr.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},Qa=Ja.css`
219
+ `,is=[Object.keys(Ao).map(t=>Ka(t))];var ns=g(D()),Jr=g(E()),Be={color:Jr.FtCssVariableFactory.extend("--ft-loader-color","",Jr.designSystemVariables.colorPrimary),size:Jr.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},as=ns.css`
219
220
  :host {
220
221
  line-height: 0;
221
222
  }
@@ -224,8 +225,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
224
225
  display: inline-block;
225
226
  position: relative;
226
227
 
227
- width: ${$e.size};
228
- height: ${$e.size};
228
+ width: ${Be.size};
229
+ height: ${Be.size};
229
230
  }
230
231
 
231
232
  .ft-loader div {
@@ -234,7 +235,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
234
235
  width: 25%;
235
236
  height: 25%;
236
237
  border-radius: 50%;
237
- background: ${$e.color};
238
+ background: ${Be.color};
238
239
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
239
240
  }
240
241
 
@@ -281,10 +282,10 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
281
282
  transform: translate(0, 0);
282
283
  }
283
284
  100% {
284
- transform: translate(calc(0.35 * ${$e.size}), 0);
285
+ transform: translate(calc(0.35 * ${Be.size}), 0);
285
286
  }
286
287
  }
287
- `;var es=m($()),wt=m(E()),ve={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")},ts=es.css`
288
+ `;var ss=g(D()),At=g(E()),ve={size:At.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:At.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",At.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:At.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",At.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:At.FtCssVariableFactory.extend("--ft-icon-material-font-family","",At.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:At.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},ls=ss.css`
288
289
  :host, i.ft-icon {
289
290
  display: inline-flex;
290
291
  align-items: center;
@@ -332,7 +333,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
332
333
  .ft-icon--material {
333
334
  font-family: ${ve.materialFontFamily}, "Material Icons", sans-serif;
334
335
  }
335
- `;var rs=B.FtCssVariableFactory.extend("--ft-button-color","",B.designSystemVariables.colorPrimary),Q={backgroundColor:B.FtCssVariableFactory.extend("--ft-button-background-color","",B.designSystemVariables.colorSurface),borderRadius:B.FtCssVariableFactory.extend("--ft-button-border-radius","",B.designSystemVariables.borderRadiusL),color:rs,fontSize:B.FtCssVariableFactory.extend("--ft-button-font-size","",De.fontSize),iconSize:B.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:B.FtCssVariableFactory.extend("--ft-button-ripple-color","",rs),verticalPadding:B.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:B.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:B.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:B.FtCssVariableFactory.external(B.designSystemVariables.colorOpacityDisabled,"Design system")},os=B.FtCssVariableFactory.extend("--ft-button-primary-color","",B.FtCssVariableFactory.extend("--ft-button-color","",B.designSystemVariables.colorOnPrimary)),Ui={backgroundColor:B.FtCssVariableFactory.extend("--ft-button-primary-background-color","",B.FtCssVariableFactory.extend("--ft-button-background-color","",B.designSystemVariables.colorPrimary)),color:os,rippleColor:B.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",os)},mt={borderRadius:B.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",B.FtCssVariableFactory.extend("--ft-button-border-radius","",B.designSystemVariables.borderRadiusM)),verticalPadding:B.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:B.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:B.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},ns=[is.css`
336
+ `;var cs=M.FtCssVariableFactory.extend("--ft-button-color","",M.designSystemVariables.colorPrimary),ee={backgroundColor:M.FtCssVariableFactory.extend("--ft-button-background-color","",M.designSystemVariables.colorSurface),borderRadius:M.FtCssVariableFactory.extend("--ft-button-border-radius","",M.designSystemVariables.borderRadiusL),color:cs,fontSize:M.FtCssVariableFactory.extend("--ft-button-font-size","",Me.fontSize),iconSize:M.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:M.FtCssVariableFactory.extend("--ft-button-ripple-color","",cs),verticalPadding:M.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:M.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:M.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:M.FtCssVariableFactory.external(M.designSystemVariables.colorOpacityDisabled,"Design system")},ds=M.FtCssVariableFactory.extend("--ft-button-primary-color","",M.FtCssVariableFactory.extend("--ft-button-color","",M.designSystemVariables.colorOnPrimary)),ji={backgroundColor:M.FtCssVariableFactory.extend("--ft-button-primary-background-color","",M.FtCssVariableFactory.extend("--ft-button-background-color","",M.designSystemVariables.colorPrimary)),color:ds,rippleColor:M.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",ds)},bt={borderRadius:M.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",M.FtCssVariableFactory.extend("--ft-button-border-radius","",M.designSystemVariables.borderRadiusM)),verticalPadding:M.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:M.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:M.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},fs=[ps.css`
336
337
  :host {
337
338
  display: inline-block;
338
339
  max-width: 100%;
@@ -343,7 +344,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
343
344
  box-shadow: 0px 0px 0px transparent;
344
345
  border: 0px solid transparent;
345
346
  text-shadow: 0px 0px 0px transparent;
346
- font-size: ${Q.fontSize};
347
+ font-size: ${ee.fontSize};
347
348
  }
348
349
 
349
350
  button:hover {
@@ -372,31 +373,31 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
372
373
  border: none;
373
374
  pointer-events: auto;
374
375
 
375
- --ft-button-internal-line-height: max(calc(${Q.fontSize} + 2px), ${Q.iconSize});
376
- --ft-button-internal-color: ${Q.color};
377
- ${(0,B.setVariable)(ve.size,Q.iconSize)};
378
- ${(0,B.setVariable)(M.color,Q.rippleColor)};
376
+ --ft-button-internal-line-height: max(calc(${ee.fontSize} + 2px), ${ee.iconSize});
377
+ --ft-button-internal-color: ${ee.color};
378
+ ${(0,M.setVariable)(ve.size,ee.iconSize)};
379
+ ${(0,M.setVariable)($.color,ee.rippleColor)};
379
380
 
380
- border-radius: ${Q.borderRadius};
381
- padding: ${Q.verticalPadding} ${Q.horizontalPadding};
382
- background-color: ${Q.backgroundColor};
381
+ border-radius: ${ee.borderRadius};
382
+ padding: ${ee.verticalPadding} ${ee.horizontalPadding};
383
+ background-color: ${ee.backgroundColor};
383
384
  color: var(--ft-button-internal-color);
384
385
  -webkit-mask-image: radial-gradient(white, black);
385
386
  }
386
387
 
387
388
  .ft-button.ft-button--outlined {
388
389
  border: 1px solid var(--ft-button-internal-color);
389
- padding: calc(${Q.verticalPadding} - 1px) calc(${Q.horizontalPadding} - 1px);
390
+ padding: calc(${ee.verticalPadding} - 1px) calc(${ee.horizontalPadding} - 1px);
390
391
  }
391
392
 
392
393
  .ft-button.ft-button--dense {
393
- padding: ${mt.verticalPadding} ${mt.horizontalPadding};
394
- border-radius: ${mt.borderRadius};
395
- gap: ${mt.iconPadding};
394
+ padding: ${bt.verticalPadding} ${bt.horizontalPadding};
395
+ border-radius: ${bt.borderRadius};
396
+ gap: ${bt.iconPadding};
396
397
  }
397
398
 
398
399
  .ft-button.ft-button--dense.ft-button--outlined {
399
- padding: calc(${mt.verticalPadding} - 1px) calc(${mt.horizontalPadding} - 1px);
400
+ padding: calc(${bt.verticalPadding} - 1px) calc(${bt.horizontalPadding} - 1px);
400
401
  }
401
402
 
402
403
  .ft-button:not([disabled]):hover {
@@ -404,22 +405,22 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
404
405
  }
405
406
 
406
407
  .ft-button--round {
407
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Q.verticalPadding});
408
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${ee.verticalPadding});
408
409
  }
409
410
 
410
411
  .ft-button--round.ft-button--dense {
411
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${mt.verticalPadding});
412
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${bt.verticalPadding});
412
413
  }
413
414
 
414
415
  .ft-button[disabled] {
415
416
  filter: grayscale(1);
416
- opacity: ${Q.opacityDisabled};
417
+ opacity: ${ee.opacityDisabled};
417
418
  }
418
419
 
419
420
  .ft-button.ft-button--primary {
420
- background-color: ${Ui.backgroundColor};
421
- --ft-button-internal-color: ${Ui.color};
422
- ${(0,B.setVariable)(M.color,Ui.rippleColor)};
421
+ background-color: ${ji.backgroundColor};
422
+ --ft-button-internal-color: ${ji.color};
423
+ ${(0,M.setVariable)($.color,ji.rippleColor)};
423
424
  }
424
425
 
425
426
  .ft-button:focus {
@@ -432,13 +433,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
432
433
  white-space: nowrap;
433
434
  text-overflow: ellipsis;
434
435
  display: block;
435
- margin: 0 ${Q.iconPadding};
436
- ${(0,B.setVariable)(De.fontSize,"1em")};
437
- ${(0,B.setVariable)(De.lineHeight,"var(--ft-button-internal-line-height)")};
436
+ margin: 0 ${ee.iconPadding};
437
+ ${(0,M.setVariable)(Me.fontSize,"1em")};
438
+ ${(0,M.setVariable)(Me.lineHeight,"var(--ft-button-internal-line-height)")};
438
439
  }
439
440
 
440
441
  .ft-button--dense .ft-button--label {
441
- margin: 0 ${mt.iconPadding};
442
+ margin: 0 ${bt.iconPadding};
442
443
  }
443
444
 
444
445
  .ft-button--label[hidden] {
@@ -451,13 +452,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
451
452
  }
452
453
 
453
454
  .ft-button--label[hidden] + [part="icon"] {
454
- margin: 0 calc(${Q.horizontalPadding} * -1);
455
- padding: 0 ${Q.verticalPadding};
455
+ margin: 0 calc(${ee.horizontalPadding} * -1);
456
+ padding: 0 ${ee.verticalPadding};
456
457
  }
457
458
 
458
459
  .ft-button--dense .ft-button--label[hidden] + [part="icon"] {
459
- margin: 0 calc(${mt.horizontalPadding} * -1);
460
- padding: 0 ${mt.verticalPadding};
460
+ margin: 0 calc(${bt.horizontalPadding} * -1);
461
+ padding: 0 ${bt.verticalPadding};
461
462
  }
462
463
 
463
464
  .ft-button:not(.ft-button--trailing-icon) [part="label"]{
@@ -465,10 +466,10 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
465
466
  }
466
467
 
467
468
  ft-loader {
468
- ${(0,B.setVariable)($e.size,Q.iconSize)};
469
- ${(0,B.setVariable)($e.color,"var(--ft-button-internal-color)")};
469
+ ${(0,M.setVariable)(Be.size,ee.iconSize)};
470
+ ${(0,M.setVariable)(Be.color,"var(--ft-button-internal-color)")};
470
471
  }
471
- `,B.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","",De.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 gt={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)},ss=as.css`
472
+ `,M.noTextSelect];var ae=g(E());var ce={textColor:ae.FtCssVariableFactory.extend("--ft-switch-text-color","",ae.designSystemVariables.colorOnSurfaceHigh),backgroundColor:ae.FtCssVariableFactory.extend("--ft-switch-background-color","",ae.designSystemVariables.colorSurface),selectedTextColor:ae.FtCssVariableFactory.extend("--ft-switch-selected-text-color","",ae.designSystemVariables.colorPrimary),selectedBackgroundColor:ae.FtCssVariableFactory.extend("--ft-switch-selected-background-color","",ae.designSystemVariables.colorPrimary),borderColor:ae.FtCssVariableFactory.extend("--ft-switch-border-color","",ae.designSystemVariables.colorOutline),borderRadius:ae.FtCssVariableFactory.extend("--ft-switch-border-radius","",ae.designSystemVariables.borderRadiusL),fontSize:ae.FtCssVariableFactory.extend("--ft-switch-font-size","",Me.fontSize),iconSize:ae.FtCssVariableFactory.create("--ft-switch-icon-size","","SIZE","24px"),iconColor:ae.FtCssVariableFactory.extend("--ft-switch-text-color","",ae.designSystemVariables.colorOnSurfaceMedium),rippleColor:ae.FtCssVariableFactory.extend("--ft-switch-ripple-color","",ae.designSystemVariables.colorPrimary),outlineColor:ae.FtCssVariableFactory.extend("--ft-switch-outline-color","",ae.designSystemVariables.colorPrimary)};var vt={feedbackInputMinWidth:J.FtCssVariableFactory.create("--ft-reader-feedback-input-min-width","","SIZE","300px"),ratedDateColor:J.FtCssVariableFactory.external(J.designSystemVariables.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:J.FtCssVariableFactory.extend("--ft-reader-feedback-send-feedback-color","",J.designSystemVariables.colorOnPrimary),sendFeedbackBackgroundColor:J.FtCssVariableFactory.extend("--ft-reader-feedback-send-feedback-background-color","",J.designSystemVariables.colorPrimary),filledRatingColor:J.FtCssVariableFactory.extend("--ft-reader-feedback-filled-rating-color","",J.designSystemVariables.colorPrimary),emptyRatingColor:J.FtCssVariableFactory.extend("--ft-reader-feedback-empty-rating-color","",J.designSystemVariables.colorOnSurfaceMedium),mainTitleFontSize:J.FtCssVariableFactory.external(Ut.fontSize,"Typography"),sectionTitleFontSize:J.FtCssVariableFactory.external(Ft.fontSize,"Typography"),starsBackgroundColor:J.FtCssVariableFactory.create("--ft-reader-feedback-stars-background-color","","COLOR",J.designSystemVariables.colorSurface)},hs=us.css`
472
473
  .ft-reader-feedback {
473
474
  box-sizing: border-box;
474
475
  display: flex;
@@ -481,7 +482,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
481
482
  flex-direction: row;
482
483
  align-items: center;
483
484
  margin-left: -6px;
484
- ${(0,X.setVariable)(Q.backgroundColor,gt.starsBackgroundColor)}
485
+ ${(0,J.setVariable)(ee.backgroundColor,vt.starsBackgroundColor)}
485
486
  }
486
487
 
487
488
  .ft-reader-feedback--rating, .ft-reader-feedback--feedback {
@@ -494,14 +495,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
494
495
  }
495
496
 
496
497
  .ft-reader-feedback--rating {
497
- ${(0,X.setVariable)(Q.color,gt.emptyRatingColor)};
498
- ${(0,X.setVariable)(Q.rippleColor,gt.filledRatingColor)};
499
- ${(0,X.setVariable)(le.textColor,gt.emptyRatingColor)};
500
- ${(0,X.setVariable)(le.selectedTextColor,gt.filledRatingColor)};
498
+ ${(0,J.setVariable)(ee.color,vt.emptyRatingColor)};
499
+ ${(0,J.setVariable)(ee.rippleColor,vt.filledRatingColor)};
500
+ ${(0,J.setVariable)(ce.textColor,vt.emptyRatingColor)};
501
+ ${(0,J.setVariable)(ce.selectedTextColor,vt.filledRatingColor)};
501
502
  }
502
503
 
503
504
  .ft-reader-feedback--rating .ft-reader-feedback--active {
504
- ${(0,X.setVariable)(Q.color,gt.filledRatingColor)};
505
+ ${(0,J.setVariable)(ee.color,vt.filledRatingColor)};
505
506
  }
506
507
 
507
508
  .ft-reader-feedback--feedback {
@@ -509,43 +510,43 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
509
510
  }
510
511
 
511
512
  .ft-reader-feedback--rating-date {
512
- color: ${gt.ratedDateColor};
513
+ color: ${vt.ratedDateColor};
513
514
  }
514
515
 
515
516
  .ft-reader-feedback--feedback ft-text-area {
516
- min-width: ${gt.feedbackInputMinWidth};
517
+ min-width: ${vt.feedbackInputMinWidth};
517
518
  }
518
519
 
519
520
  .ft-reader-feedback--send-feedback, .ft-reader-feedback--feedback-link {
520
- ${(0,X.setVariable)(Q.color,gt.sendFeedbackColor)};
521
- ${(0,X.setVariable)(Q.backgroundColor,gt.sendFeedbackBackgroundColor)};
521
+ ${(0,J.setVariable)(ee.color,vt.sendFeedbackColor)};
522
+ ${(0,J.setVariable)(ee.backgroundColor,vt.sendFeedbackBackgroundColor)};
522
523
  }
523
524
 
524
525
  [part="buttons-container"] {
525
526
  align-self: flex-end;
526
527
  }
527
- `;var Rs=m(E());var Gi=globalThis,Ao=Gi.trustedTypes,ls=Ao?Ao.createPolicy("lit-html",{createHTML:t=>t}):void 0,hs="$lit$",Bt=`lit$${(Math.random()+"").slice(9)}$`,ms="?"+Bt,Id=`<${ms}>`,ar=document,Ro=()=>ar.createComment(""),Yr=t=>t===null||typeof t!="object"&&typeof t!="function",gs=Array.isArray,Td=t=>gs(t)||typeof t?.[Symbol.iterator]=="function",Fi=`[
528
- \f\r]`,qr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,cs=/-->/g,ds=/>/g,ir=RegExp(`>|${Fi}(?:([^\\s"'>=/]+)(${Fi}*=${Fi}*(?:[^
529
- \f\r"'\`<>=]|("|')|))|$)`,"g"),ps=/'/g,fs=/"/g,ys=/^(?:script|style|textarea|title)$/i,bs=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),vs=bs(1),xs=bs(2),Xr=Symbol.for("lit-noChange"),me=Symbol.for("lit-nothing"),us=new WeakMap,nr=ar.createTreeWalker(ar,129);function Ss(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return ls!==void 0?ls.createHTML(e):e}var _d=(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=cs:u[1]!==void 0?s=ds:u[2]!==void 0?(ys.test(u[2])&&(n=RegExp("</"+u[2],"g")),s=ir):u[3]!==void 0&&(s=ir):s===ir?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?ir:u[3]==='"'?fs:ps):s===fs||s===ps?s=ir:s===cs||s===ds?s=qr:(s=ir,n=void 0);let v=s===ir&&t[l+1].startsWith("/>")?" ":"";a+=s===qr?d+Id:g>=0?(i.push(p),d.slice(0,g)+hs+d.slice(g)+Bt+v):d+Bt+(g===-2?l:v)}return[Ss(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]=_d(e,r);if(this.el=t.createElement(p,i),nr.currentNode=this.el.content,r===2){let g=this.el.content.firstChild;g.replaceWith(...g.childNodes)}for(;(n=nr.nextNode())!==null&&d.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let g of n.getAttributeNames())if(g.endsWith(hs)){let y=u[s++],v=n.getAttribute(g).split(Bt),b=/([.?@])?(.*)/.exec(y);d.push({type:1,index:a,name:b[2],strings:v,ctor:b[1]==="."?Wi:b[1]==="?"?Hi:b[1]==="@"?Vi:Ar}),n.removeAttribute(g)}else g.startsWith(Bt)&&(d.push({type:6,index:a}),n.removeAttribute(g));if(ys.test(n.tagName)){let g=n.textContent.split(Bt),y=g.length-1;if(y>0){n.textContent=Ao?Ao.emptyScript:"";for(let v=0;v<y;v++)n.append(g[v],Ro()),nr.nextNode(),d.push({type:2,index:++a});n.append(g[y],Ro())}}}else if(n.nodeType===8)if(n.data===ms)d.push({type:2,index:a});else{let g=-1;for(;(g=n.data.indexOf(Bt,g+1))!==-1;)d.push({type:7,index:a}),g+=Bt.length-1}a++}}static createElement(e,r){let i=ar.createElement("template");return i.innerHTML=e,i}};function Er(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=Er(t,n._$AS(t,e.values),n,i)),e}var zi=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??ar).importNode(r,!0);nr.currentNode=n;let a=nr.nextNode(),s=0,l=0,d=i[0];for(;d!==void 0;){if(s===d.index){let p;d.type===2?p=new No(a,a.nextSibling,this,e):d.type===1?p=new d.ctor(a,d.name,d.strings,this,e):d.type===6&&(p=new ji(a,this,e)),this._$AV.push(p),d=i[++l]}s!==d?.index&&(a=nr.nextNode(),s++)}return nr.currentNode=ar,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++}},No=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,i,n){this.type=2,this._$AH=me,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=Er(this,e,r),Yr(e)?e===me||e==null||e===""?(this._$AH!==me&&this._$AR(),this._$AH=me):e!==this._$AH&&e!==Xr&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):Td(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!==me&&Yr(this._$AH)?this._$AA.nextSibling.data=e:this.$(ar.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(Ss(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(r);else{let a=new zi(n,this),s=a.u(this.options);a.p(r),this.$(s),this._$AH=a}}_$AC(e){let r=us.get(e.strings);return r===void 0&&us.set(e.strings,r=new Jr(e)),r}T(e){gs(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(Ro()),this.k(Ro()),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))}},Ar=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,n,a){this.type=1,this._$AH=me,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=me}_$AI(e,r=this,i,n){let a=this.strings,s=!1;if(a===void 0)e=Er(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=Er(this,l[i+d],r,d),p===Xr&&(p=this._$AH[d]),s||=!Yr(p)||p!==this._$AH[d],p===me?e=me:e!==me&&(e+=(p??"")+a[d+1]),this._$AH[d]=p}s&&!n&&this.O(e)}O(e){e===me?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Wi=class extends Ar{constructor(){super(...arguments),this.type=3}O(e){this.element[this.name]=e===me?void 0:e}},Hi=class extends Ar{constructor(){super(...arguments),this.type=4}O(e){this.element.toggleAttribute(this.name,!!e&&e!==me)}},Vi=class extends Ar{constructor(e,r,i,n,a){super(e,r,i,n,a),this.type=5}_$AI(e,r=this){if((e=Er(this,e,r,0)??me)===Xr)return;let i=this._$AH,n=e===me&&i!==me||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,a=e!==me&&(i===me||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)}},ji=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){Er(this,e)}};var kd=Gi.litHtmlPolyfillSupport;kd?.(Jr,No),(Gi.litHtmlVersions??=[]).push("3.1.0");var ws=Symbol.for(""),Pd=t=>{if(t?.r===ws)return t?._$litStatic$},Ki=t=>({_$litStatic$:t,r:ws});var Os=new Map,Cs=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=Pd(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=Os.get(g))===void 0&&(s.raw=s,Os.set(g,e=s)),r=l}return t(e,...r)},Zi=Cs(vs),Gm=Cs(xs);var qi=m(G()),As=m(E());var Ut;(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"})(Ut||(Ut={}));var Es=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 As.FtLitElement{constructor(){super(...arguments),this.variant=Ut.body1}render(){return this.element?Zi`
530
- <${Ki(this.element)}
528
+ `;var Ls=g(E());var Ji=globalThis,Io=Ji.trustedTypes,ms=Io?Io.createPolicy("lit-html",{createHTML:t=>t}):void 0,Ss="$lit$",zt=`lit$${(Math.random()+"").slice(9)}$`,Os="?"+zt,$d=`<${Os}>`,pr=document,_o=()=>pr.createComment(""),eo=t=>t===null||typeof t!="object"&&typeof t!="function",ws=Array.isArray,Md=t=>ws(t)||typeof t?.[Symbol.iterator]=="function",Gi=`[
529
+ \f\r]`,Qr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,gs=/-->/g,ys=/>/g,cr=RegExp(`>|${Gi}(?:([^\\s"'>=/]+)(${Gi}*=${Gi}*(?:[^
530
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),bs=/'/g,vs=/"/g,Cs=/^(?:script|style|textarea|title)$/i,Es=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),As=Es(1),Rs=Es(2),to=Symbol.for("lit-noChange"),ge=Symbol.for("lit-nothing"),xs=new WeakMap,dr=pr.createTreeWalker(pr,129);function Ns(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return ms!==void 0?ms.createHTML(e):e}var Bd=(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,h,m=-1,y=0;for(;y<d.length&&(s.lastIndex=y,h=s.exec(d),h!==null);)y=s.lastIndex,s===Qr?h[1]==="!--"?s=gs:h[1]!==void 0?s=ys:h[2]!==void 0?(Cs.test(h[2])&&(n=RegExp("</"+h[2],"g")),s=cr):h[3]!==void 0&&(s=cr):s===cr?h[0]===">"?(s=n??Qr,m=-1):h[1]===void 0?m=-2:(m=s.lastIndex-h[2].length,p=h[1],s=h[3]===void 0?cr:h[3]==='"'?vs:bs):s===vs||s===bs?s=cr:s===gs||s===ys?s=Qr:(s=cr,n=void 0);let v=s===cr&&t[l+1].startsWith("/>")?" ":"";a+=s===Qr?d+$d:m>=0?(i.push(p),d.slice(0,m)+Ss+d.slice(m)+zt+v):d+zt+(m===-2?l:v)}return[Ns(t,a+(t[r]||"<?>")+(e===2?"</svg>":"")),i]},ro=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,h]=Bd(e,r);if(this.el=t.createElement(p,i),dr.currentNode=this.el.content,r===2){let m=this.el.content.firstChild;m.replaceWith(...m.childNodes)}for(;(n=dr.nextNode())!==null&&d.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let m of n.getAttributeNames())if(m.endsWith(Ss)){let y=h[s++],v=n.getAttribute(m).split(zt),x=/([.?@])?(.*)/.exec(y);d.push({type:1,index:a,name:x[2],strings:v,ctor:x[1]==="."?Zi:x[1]==="?"?qi:x[1]==="@"?Yi:_r}),n.removeAttribute(m)}else m.startsWith(zt)&&(d.push({type:6,index:a}),n.removeAttribute(m));if(Cs.test(n.tagName)){let m=n.textContent.split(zt),y=m.length-1;if(y>0){n.textContent=Io?Io.emptyScript:"";for(let v=0;v<y;v++)n.append(m[v],_o()),dr.nextNode(),d.push({type:2,index:++a});n.append(m[y],_o())}}}else if(n.nodeType===8)if(n.data===Os)d.push({type:2,index:a});else{let m=-1;for(;(m=n.data.indexOf(zt,m+1))!==-1;)d.push({type:7,index:a}),m+=zt.length-1}a++}}static createElement(e,r){let i=pr.createElement("template");return i.innerHTML=e,i}};function Ir(t,e,r=t,i){if(e===to)return e;let n=i!==void 0?r._$Co?.[i]:r._$Cl,a=eo(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=Ir(t,n._$AS(t,e.values),n,i)),e}var Ki=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??pr).importNode(r,!0);dr.currentNode=n;let a=dr.nextNode(),s=0,l=0,d=i[0];for(;d!==void 0;){if(s===d.index){let p;d.type===2?p=new ko(a,a.nextSibling,this,e):d.type===1?p=new d.ctor(a,d.name,d.strings,this,e):d.type===6&&(p=new Xi(a,this,e)),this._$AV.push(p),d=i[++l]}s!==d?.index&&(a=dr.nextNode(),s++)}return dr.currentNode=pr,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++}},ko=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,i,n){this.type=2,this._$AH=ge,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=Ir(this,e,r),eo(e)?e===ge||e==null||e===""?(this._$AH!==ge&&this._$AR(),this._$AH=ge):e!==this._$AH&&e!==to&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):Md(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!==ge&&eo(this._$AH)?this._$AA.nextSibling.data=e:this.$(pr.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=ro.createElement(Ns(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(r);else{let a=new Ki(n,this),s=a.u(this.options);a.p(r),this.$(s),this._$AH=a}}_$AC(e){let r=xs.get(e.strings);return r===void 0&&xs.set(e.strings,r=new ro(e)),r}T(e){ws(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(_o()),this.k(_o()),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))}},_r=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,n,a){this.type=1,this._$AH=ge,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=ge}_$AI(e,r=this,i,n){let a=this.strings,s=!1;if(a===void 0)e=Ir(this,e,r,0),s=!eo(e)||e!==this._$AH&&e!==to,s&&(this._$AH=e);else{let l=e,d,p;for(e=a[0],d=0;d<a.length-1;d++)p=Ir(this,l[i+d],r,d),p===to&&(p=this._$AH[d]),s||=!eo(p)||p!==this._$AH[d],p===ge?e=ge:e!==ge&&(e+=(p??"")+a[d+1]),this._$AH[d]=p}s&&!n&&this.O(e)}O(e){e===ge?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Zi=class extends _r{constructor(){super(...arguments),this.type=3}O(e){this.element[this.name]=e===ge?void 0:e}},qi=class extends _r{constructor(){super(...arguments),this.type=4}O(e){this.element.toggleAttribute(this.name,!!e&&e!==ge)}},Yi=class extends _r{constructor(e,r,i,n,a){super(e,r,i,n,a),this.type=5}_$AI(e,r=this){if((e=Ir(this,e,r,0)??ge)===to)return;let i=this._$AH,n=e===ge&&i!==ge||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,a=e!==ge&&(i===ge||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)}},Xi=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){Ir(this,e)}};var Ud=Ji.litHtmlPolyfillSupport;Ud?.(ro,ko),(Ji.litHtmlVersions??=[]).push("3.1.0");var Is=Symbol.for(""),Fd=t=>{if(t?.r===Is)return t?._$litStatic$},Qi=t=>({_$litStatic$:t,r:Is});var Ts=new Map,_s=t=>(e,...r)=>{let i=r.length,n,a,s=[],l=[],d,p=0,h=!1;for(;p<i;){for(d=e[p];p<i&&(a=r[p],(n=Fd(a))!==void 0);)d+=n+e[++p],h=!0;p!==i&&l.push(a),s.push(d),p++}if(p===i&&s.push(e[i]),h){let m=s.join("$$lit$$");(e=Ts.get(m))===void 0&&(s.raw=s,Ts.set(m,e=s)),r=l}return t(e,...r)},en=_s(As),eg=_s(Rs);var tn=g(Z()),Ps=g(E());var Wt;(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"})(Wt||(Wt={}));var ks=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 Ps.FtLitElement{constructor(){super(...arguments),this.variant=Wt.body1}render(){return this.element?en`
531
+ <${Qi(this.element)}
531
532
  part="text"
532
533
  class="ft-typography ft-typography--${this.variant}">
533
534
  <slot></slot>
534
- </${Ki(this.element)}>
535
- `:Zi`
535
+ </${Qi(this.element)}>
536
+ `:en`
536
537
  <slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
537
- `}};ce.styles=[Wa,Ha,Va,ja,Cr,Ga,Eo,Ka,Za,qa,Ya,...Xa];Es([(0,qi.property)()],ce.prototype,"element",void 0);Es([(0,qi.property)()],ce.prototype,"variant",void 0);(0,Rs.customElement)("ft-typography")(ce);var dn=m(E());var Mo=m($()),Ht=m(G()),fl=m(Ft()),Nt=m(E());var _r=m($()),rt=m(G()),kr=m(E());var _s=m(E());var Is=m($()),Ee=m(G()),Ts=m(Ft()),Qr=m(E());var 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},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 Is.html`
538
+ `}};de.styles=[qa,Ya,Xa,Ja,Tr,Qa,To,es,ts,rs,os,...is];ks([(0,tn.property)()],de.prototype,"element",void 0);ks([(0,tn.property)()],de.prototype,"variant",void 0);(0,Ls.customElement)("ft-typography")(de);var gn=g(E());var zo=g(D()),Gt=g(Z()),vl=g(Ht()),_t=g(E());var $r=g(D()),ot=g(Z()),Mr=g(E());var Bs=g(E());var $s=g(D()),Ae=g(Z()),Ms=g(Ht()),oo=g(E());var He=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},j=class extends oo.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 oo.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 oo.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 $s.html`
538
539
  <style>
539
540
  .ft-ripple .ft-ripple--effect {
540
541
  left: ${this.originX}px;
541
542
  top: ${this.originY}px;
542
543
  }
543
544
  </style>
544
- <div class="${(0,Ts.classMap)(e)}">
545
+ <div class="${(0,Ms.classMap)(e)}">
545
546
  <div class="ft-ripple--background"></div>
546
547
  <div class="ft-ripple--effect"></div>
547
548
  </div>
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=ha;ze([(0,Ee.property)({type:Boolean})],H.prototype,"primary",void 0);ze([(0,Ee.property)({type:Boolean})],H.prototype,"secondary",void 0);ze([(0,Ee.property)({type:Boolean})],H.prototype,"unbounded",void 0);ze([(0,Ee.property)({type:Boolean})],H.prototype,"activated",void 0);ze([(0,Ee.property)({type:Boolean})],H.prototype,"selected",void 0);ze([(0,Ee.property)({type:Boolean})],H.prototype,"disabled",void 0);ze([(0,Ee.state)()],H.prototype,"hovered",void 0);ze([(0,Ee.state)()],H.prototype,"focused",void 0);ze([(0,Ee.state)()],H.prototype,"pressed",void 0);ze([(0,Ee.state)()],H.prototype,"rippling",void 0);ze([(0,Ee.state)()],H.prototype,"originX",void 0);ze([(0,Ee.state)()],H.prototype,"originY",void 0);ze([(0,Ee.query)(".ft-ripple")],H.prototype,"ripple",void 0);ze([(0,Ee.query)(".ft-ripple--effect")],H.prototype,"rippleEffect",void 0);(0,_s.customElement)("ft-ripple")(H);var pl=m(Ft());var ol=m(E());var rl=m($()),xe=m(G()),no=m(E());var ks=m($()),Ct=m(E()),Rr={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")},Ps=ks.css`
549
+ `}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()}};j.elementDefinitions={};j.styles=Sa;He([(0,Ae.property)({type:Boolean})],j.prototype,"primary",void 0);He([(0,Ae.property)({type:Boolean})],j.prototype,"secondary",void 0);He([(0,Ae.property)({type:Boolean})],j.prototype,"unbounded",void 0);He([(0,Ae.property)({type:Boolean})],j.prototype,"activated",void 0);He([(0,Ae.property)({type:Boolean})],j.prototype,"selected",void 0);He([(0,Ae.property)({type:Boolean})],j.prototype,"disabled",void 0);He([(0,Ae.state)()],j.prototype,"hovered",void 0);He([(0,Ae.state)()],j.prototype,"focused",void 0);He([(0,Ae.state)()],j.prototype,"pressed",void 0);He([(0,Ae.state)()],j.prototype,"rippling",void 0);He([(0,Ae.state)()],j.prototype,"originX",void 0);He([(0,Ae.state)()],j.prototype,"originY",void 0);He([(0,Ae.query)(".ft-ripple")],j.prototype,"ripple",void 0);He([(0,Ae.query)(".ft-ripple--effect")],j.prototype,"rippleEffect",void 0);(0,Bs.customElement)("ft-ripple")(j);var bl=g(Ht());var dl=g(E());var cl=g(D()),xe=g(Z()),co=g(E());var Us=g(D()),Rt=g(E()),kr={distance:Rt.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:Rt.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:Rt.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:Rt.FtCssVariableFactory.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:Rt.FtCssVariableFactory.external(Rt.designSystemVariables.borderRadiusS,"Design system"),maxWidth:Rt.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},Fs=Us.css`
549
550
  .ft-tooltip--container {
550
551
  display: block;
551
552
  }
@@ -560,21 +561,21 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
560
561
  box-sizing: border-box;
561
562
  overflow: hidden;
562
563
  width: max-content;
563
- max-width: ${Rr.maxWidth};
564
+ max-width: ${kr.maxWidth};
564
565
  text-align: center;
565
- padding: ${Rr.distance};
566
- z-index: ${Rr.zIndex};
566
+ padding: ${kr.distance};
567
+ z-index: ${kr.zIndex};
567
568
  }
568
569
 
569
570
  .ft-tooltip--content {
570
571
  padding: 4px 8px;
571
- border-radius: ${Rr.borderRadiusS};
572
- background-color: ${Rr.backgroundColor};
573
- color: ${Rr.color};
572
+ border-radius: ${kr.borderRadiusS};
573
+ background-color: ${kr.backgroundColor};
574
+ color: ${kr.color};
574
575
  position: relative;
575
576
  word-break: break-word;
576
577
  }
577
- `;var Ds=["top","right","bottom","left"],Ls=["start","end"],Xi=Ds.reduce((t,e)=>t.concat(e,e+"-"+Ls[0],e+"-"+Ls[1]),[]),eo=Math.min,zt=Math.max,to=Math.round;var Et=t=>({x:t,y:t}),Ld={left:"right",right:"left",bottom:"top",top:"bottom"},Dd={start:"end",end:"start"};function Ji(t,e,r){return zt(t,eo(e,r))}function Io(t,e){return typeof t=="function"?t(e):t}function Nr(t){return t.split("-")[0]}function Wt(t){return t.split("-")[1]}function Qi(t){return t==="x"?"y":"x"}function en(t){return t==="y"?"height":"width"}function To(t){return["top","bottom"].includes(Nr(t))?"y":"x"}function tn(t){return Qi(To(t))}function $s(t,e,r){r===void 0&&(r=!1);let i=Wt(t),n=tn(t),a=en(n),s=n==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=Yi(s)),[s,Yi(s)]}function Ms(t){return t.replace(/start|end/g,e=>Dd[e])}function Yi(t){return t.replace(/left|right|bottom|top/g,e=>Ld[e])}function $d(t){return{top:0,right:0,bottom:0,left:0,...t}}function Bs(t){return typeof t!="number"?$d(t):{top:t,right:t,bottom:t,left:t}}function sr(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Us(t,e,r){let{reference:i,floating:n}=t,a=To(e),s=tn(e),l=en(s),d=Nr(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(Wt(e)){case"start":v[s]-=y*(r&&p?-1:1);break;case"end":v[s]+=y*(r&&p?-1:1);break}return v}var Fs=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}=Us(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}=Us(p,y,d)),S=-1;continue}}return{x:u,y:g,placement:y,strategy:n,middlewareData:v}};async function rn(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}=Io(e,t),b=Bs(v),I=l[y?g==="floating"?"reference":"floating":g],A=sr(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=sr(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 Md(t,e,r){return(t?[...r.filter(n=>Wt(n)===t),...r.filter(n=>Wt(n)!==t)]:r.filter(n=>Nr(n)===n)).filter(n=>t?Wt(n)===t||(e?Ms(n)!==n:!1):!0)}var on=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=Xi,autoAlignment:v=!0,...b}=Io(t,e),S=g!==void 0||y===Xi?Md(g||null,v,y):y,I=await rn(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[Nr(R)],I[D[0]],I[D[1]]],K=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:R,overflows:k}],Fe=S[A+1];if(Fe)return{data:{index:A+1,overflows:K},reset:{placement:Fe}};let be=K.map(h=>{let x=Wt(h.placement);return[h.placement,x&&u?h.overflows.slice(0,2).reduce((T,te)=>T+te,0):h.overflows[0],h.overflows]}).sort((h,x)=>h[1]-x[1]),Je=((n=be.filter(h=>h[2].slice(0,Wt(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 nn=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}=Io(t,e),p={x:r,y:i},u=await rn(e,d),g=To(Nr(n)),y=Qi(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=Ji(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=Ji(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 Ws(t)?(t.nodeName||"").toLowerCase():"#document"}function We(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Rt(t){var e;return(e=(Ws(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Ws(t){return t instanceof Node||t instanceof We(t).Node}function yt(t){return t instanceof Element||t instanceof We(t).Element}function lt(t){return t instanceof HTMLElement||t instanceof We(t).HTMLElement}function zs(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof We(t).ShadowRoot}function Ir(t){let{overflow:e,overflowX:r,overflowY:i,display:n}=qe(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&!["inline","contents"].includes(n)}function Hs(t){return["table","td","th"].includes(At(t))}function ko(t){let e=Po(),r=qe(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 Vs(t){let e=lr(t);for(;lt(e)&&!ro(e);){if(ko(e))return e;e=lr(e)}return null}function Po(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ro(t){return["html","body","#document"].includes(At(t))}function qe(t){return We(t).getComputedStyle(t)}function oo(t){return yt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function lr(t){if(At(t)==="html")return t;let e=t.assignedSlot||t.parentNode||zs(t)&&t.host||Rt(t);return zs(e)?e.host:e}function js(t){let e=lr(t);return ro(e)?t.ownerDocument?t.ownerDocument.body:t.body:lt(e)&&Ir(e)?e:js(e)}function _o(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let n=js(t),a=n===((i=t.ownerDocument)==null?void 0:i.body),s=We(n);return a?e.concat(s,s.visualViewport||[],Ir(n)?n:[],s.frameElement&&r?_o(s.frameElement):[]):e.concat(n,_o(n,[],r))}function Zs(t){let e=qe(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 qs(t){return yt(t)?t:t.contextElement}function Tr(t){let e=qs(t);if(!lt(e))return Et(1);let r=e.getBoundingClientRect(),{width:i,height:n,$:a}=Zs(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 Bd=Et(0);function Ys(t){let e=We(t);return!Po()||!e.visualViewport?Bd:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Ud(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==We(t)?!1:e}function io(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let n=t.getBoundingClientRect(),a=qs(t),s=Et(1);e&&(i?yt(i)&&(s=Tr(i)):s=Tr(t));let l=Ud(a,r,i)?Ys(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=We(a),v=i&&yt(i)?We(i):i,b=y.frameElement;for(;b&&i&&v!==y;){let S=Tr(b),I=b.getBoundingClientRect(),A=qe(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=We(b).frameElement}}return sr({width:u,height:g,x:d,y:p})}function Fd(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"||Ir(a))&&(s=oo(r)),lt(r))){let p=io(r);l=Tr(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 zd(t){return Array.from(t.getClientRects())}function Xs(t){return io(Rt(t)).left+oo(t).scrollLeft}function Wd(t){let e=Rt(t),r=oo(t),i=t.ownerDocument.body,n=zt(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),a=zt(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight),s=-r.scrollLeft+Xs(t),l=-r.scrollTop;return qe(i).direction==="rtl"&&(s+=zt(e.clientWidth,i.clientWidth)-n),{width:n,height:a,x:s,y:l}}function Hd(t,e){let r=We(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=Po();(!p||p&&e==="fixed")&&(l=n.offsetLeft,d=n.offsetTop)}return{width:a,height:s,x:l,y:d}}function Vd(t,e){let r=io(t,!0,e==="fixed"),i=r.top+t.clientTop,n=r.left+t.clientLeft,a=lt(t)?Tr(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 Gs(t,e,r){let i;if(e==="viewport")i=Hd(t,r);else if(e==="document")i=Wd(Rt(t));else if(yt(e))i=Vd(e,r);else{let n=Ys(t);i={...e,x:e.x-n.x,y:e.y-n.y}}return sr(i)}function Js(t,e){let r=lr(t);return r===e||!yt(r)||ro(r)?!1:qe(r).position==="fixed"||Js(r,e)}function jd(t,e){let r=e.get(t);if(r)return r;let i=_o(t,[],!1).filter(l=>yt(l)&&At(l)!=="body"),n=null,a=qe(t).position==="fixed",s=a?lr(t):t;for(;yt(s)&&!ro(s);){let l=qe(s),d=ko(s);!d&&l.position==="fixed"&&(n=null),(a?!d&&!n:!d&&l.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||Ir(s)&&!d&&Js(t,s))?i=i.filter(u=>u!==s):n=l,s=lr(s)}return e.set(t,i),i}function Gd(t){let{element:e,boundary:r,rootBoundary:i,strategy:n}=t,s=[...r==="clippingAncestors"?jd(e,this._c):[].concat(r),i],l=s[0],d=s.reduce((p,u)=>{let g=Gs(e,u,n);return p.top=zt(g.top,p.top),p.right=eo(g.right,p.right),p.bottom=eo(g.bottom,p.bottom),p.left=zt(g.left,p.left),p},Gs(e,l,n));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function Kd(t){return Zs(t)}function Zd(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"||Ir(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=Xs(n));return{x:s.left+l.scrollLeft-d.x,y:s.top+l.scrollTop-d.y,width:s.width,height:s.height}}function Ks(t,e){return!lt(t)||qe(t).position==="fixed"?null:e?e(t):t.offsetParent}function Qs(t,e){let r=We(t);if(!lt(t))return r;let i=Ks(t,e);for(;i&&Hs(i)&&qe(i).position==="static";)i=Ks(i,e);return i&&(At(i)==="html"||At(i)==="body"&&qe(i).position==="static"&&!ko(i))?r:i||Vs(t)||r}var qd=async function(t){let{reference:e,floating:r,strategy:i}=t,n=this.getOffsetParent||Qs,a=this.getDimensions;return{reference:Zd(e,await n(r),i),floating:{x:0,y:0,...await a(r)}}};function Yd(t){return qe(t).direction==="rtl"}var Lo={convertOffsetParentRelativeRectToViewportRelativeRect:Fd,getDocumentElement:Rt,getClippingRect:Gd,getOffsetParent:Qs,getElementRects:qd,getClientRects:zd,getDimensions:Kd,getScale:Tr,isElement:yt,isRTL:Yd};var el=(t,e,r)=>{let i=new Map,n={platform:Lo,...r},a={...n.platform,_c:i};return Fs(t,e,{...n,platform:a})};function tl(t){return Xd(t)}function an(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Xd(t){for(let e=t;e;e=an(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=an(t);e;e=an(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 Do(t,e,r){return el(t,e,{platform:{...Lo,getOffsetParent:i=>Lo.getOffsetParent(i,tl)},middleware:[nn({crossAxis:!0}),on({allowedPlacements:[r]})]})}var He=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},re=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 rl.html`
578
+ `;var Ws=["top","right","bottom","left"],zs=["start","end"],on=Ws.reduce((t,e)=>t.concat(e,e+"-"+zs[0],e+"-"+zs[1]),[]),io=Math.min,Vt=Math.max,no=Math.round;var Nt=t=>({x:t,y:t}),zd={left:"right",right:"left",bottom:"top",top:"bottom"},Wd={start:"end",end:"start"};function nn(t,e,r){return Vt(t,io(e,r))}function Po(t,e){return typeof t=="function"?t(e):t}function Pr(t){return t.split("-")[0]}function jt(t){return t.split("-")[1]}function an(t){return t==="x"?"y":"x"}function sn(t){return t==="y"?"height":"width"}function Lo(t){return["top","bottom"].includes(Pr(t))?"y":"x"}function ln(t){return an(Lo(t))}function Hs(t,e,r){r===void 0&&(r=!1);let i=jt(t),n=ln(t),a=sn(n),s=n==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=rn(s)),[s,rn(s)]}function Vs(t){return t.replace(/start|end/g,e=>Wd[e])}function rn(t){return t.replace(/left|right|bottom|top/g,e=>zd[e])}function Hd(t){return{top:0,right:0,bottom:0,left:0,...t}}function js(t){return typeof t!="number"?Hd(t):{top:t,right:t,bottom:t,left:t}}function fr(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Gs(t,e,r){let{reference:i,floating:n}=t,a=Lo(e),s=ln(e),l=sn(s),d=Pr(e),p=a==="y",h=i.x+i.width/2-n.width/2,m=i.y+i.height/2-n.height/2,y=i[l]/2-n[l]/2,v;switch(d){case"top":v={x:h,y:i.y-n.height};break;case"bottom":v={x:h,y:i.y+i.height};break;case"right":v={x:i.x+i.width,y:m};break;case"left":v={x:i.x-n.width,y:m};break;default:v={x:i.x,y:i.y}}switch(jt(e)){case"start":v[s]-=y*(r&&p?-1:1);break;case"end":v[s]+=y*(r&&p?-1:1);break}return v}var Ks=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:h,y:m}=Gs(p,i,d),y=i,v={},x=0;for(let S=0;S<l.length;S++){let{name:T,fn:A}=l[S],{x:R,y:L,data:B,reset:F}=await A({x:h,y:m,initialPlacement:i,placement:y,strategy:n,middlewareData:v,rects:p,platform:s,elements:{reference:t,floating:e}});if(h=R??h,m=L??m,v={...v,[T]:{...v[T],...B}},F&&x<=50){x++,typeof F=="object"&&(F.placement&&(y=F.placement),F.rects&&(p=F.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:n}):F.rects),{x:h,y:m}=Gs(p,y,d)),S=-1;continue}}return{x:h,y:m,placement:y,strategy:n,middlewareData:v}};async function cn(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:h="viewport",elementContext:m="floating",altBoundary:y=!1,padding:v=0}=Po(e,t),x=js(v),T=l[y?m==="floating"?"reference":"floating":m],A=fr(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(T)))==null||r?T:T.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:p,rootBoundary:h,strategy:d})),R=m==="floating"?{...s.floating,x:i,y:n}:s.reference,L=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),B=await(a.isElement==null?void 0:a.isElement(L))?await(a.getScale==null?void 0:a.getScale(L))||{x:1,y:1}:{x:1,y:1},F=fr(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:R,offsetParent:L,strategy:d}):R);return{top:(A.top-F.top+x.top)/B.y,bottom:(F.bottom-A.bottom+x.bottom)/B.y,left:(A.left-F.left+x.left)/B.x,right:(F.right-A.right+x.right)/B.x}}function Vd(t,e,r){return(t?[...r.filter(n=>jt(n)===t),...r.filter(n=>jt(n)!==t)]:r.filter(n=>Pr(n)===n)).filter(n=>t?jt(n)===t||(e?Vs(n)!==n:!1):!0)}var dn=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:h=!1,alignment:m,allowedPlacements:y=on,autoAlignment:v=!0,...x}=Po(t,e),S=m!==void 0||y===on?Vd(m||null,v,y):y,T=await cn(e,x),A=((r=s.autoPlacement)==null?void 0:r.index)||0,R=S[A];if(R==null)return{};let L=Hs(R,a,await(d.isRTL==null?void 0:d.isRTL(p.floating)));if(l!==R)return{reset:{placement:S[0]}};let B=[T[Pr(R)],T[L[0]],T[L[1]]],F=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:R,overflows:B}],We=S[A+1];if(We)return{data:{index:A+1,overflows:F},reset:{placement:We}};let gt=F.map(Ce=>{let u=jt(Ce.placement);return[Ce.placement,u&&h?Ce.overflows.slice(0,2).reduce((b,_)=>b+_,0):Ce.overflows[0],Ce.overflows]}).sort((Ce,u)=>Ce[1]-u[1]),yt=((n=gt.filter(Ce=>Ce[2].slice(0,jt(Ce[0])?2:3).every(u=>u<=0))[0])==null?void 0:n[0])||gt[0][0];return yt!==l?{data:{index:A+1,overflows:F},reset:{placement:yt}}:{}}}};var pn=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:T=>{let{x:A,y:R}=T;return{x:A,y:R}}},...d}=Po(t,e),p={x:r,y:i},h=await cn(e,d),m=Lo(Pr(n)),y=an(m),v=p[y],x=p[m];if(a){let T=y==="y"?"top":"left",A=y==="y"?"bottom":"right",R=v+h[T],L=v-h[A];v=nn(R,v,L)}if(s){let T=m==="y"?"top":"left",A=m==="y"?"bottom":"right",R=x+h[T],L=x-h[A];x=nn(R,x,L)}let S=l.fn({...e,[y]:v,[m]:x});return{...S,data:{x:S.x-r,y:S.y-i}}}}};function Tt(t){return qs(t)?(t.nodeName||"").toLowerCase():"#document"}function Ve(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function It(t){var e;return(e=(qs(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function qs(t){return t instanceof Node||t instanceof Ve(t).Node}function xt(t){return t instanceof Element||t instanceof Ve(t).Element}function ct(t){return t instanceof HTMLElement||t instanceof Ve(t).HTMLElement}function Zs(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Ve(t).ShadowRoot}function Lr(t){let{overflow:e,overflowX:r,overflowY:i,display:n}=Xe(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&!["inline","contents"].includes(n)}function Ys(t){return["table","td","th"].includes(Tt(t))}function $o(t){let e=Mo(),r=Xe(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 Xs(t){let e=ur(t);for(;ct(e)&&!ao(e);){if($o(e))return e;e=ur(e)}return null}function Mo(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ao(t){return["html","body","#document"].includes(Tt(t))}function Xe(t){return Ve(t).getComputedStyle(t)}function so(t){return xt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function ur(t){if(Tt(t)==="html")return t;let e=t.assignedSlot||t.parentNode||Zs(t)&&t.host||It(t);return Zs(e)?e.host:e}function Js(t){let e=ur(t);return ao(e)?t.ownerDocument?t.ownerDocument.body:t.body:ct(e)&&Lr(e)?e:Js(e)}function Do(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let n=Js(t),a=n===((i=t.ownerDocument)==null?void 0:i.body),s=Ve(n);return a?e.concat(s,s.visualViewport||[],Lr(n)?n:[],s.frameElement&&r?Do(s.frameElement):[]):e.concat(n,Do(n,[],r))}function tl(t){let e=Xe(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,n=ct(t),a=n?t.offsetWidth:r,s=n?t.offsetHeight:i,l=no(r)!==a||no(i)!==s;return l&&(r=a,i=s),{width:r,height:i,$:l}}function rl(t){return xt(t)?t:t.contextElement}function Dr(t){let e=rl(t);if(!ct(e))return Nt(1);let r=e.getBoundingClientRect(),{width:i,height:n,$:a}=tl(e),s=(a?no(r.width):r.width)/i,l=(a?no(r.height):r.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var jd=Nt(0);function ol(t){let e=Ve(t);return!Mo()||!e.visualViewport?jd:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Gd(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==Ve(t)?!1:e}function lo(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let n=t.getBoundingClientRect(),a=rl(t),s=Nt(1);e&&(i?xt(i)&&(s=Dr(i)):s=Dr(t));let l=Gd(a,r,i)?ol(a):Nt(0),d=(n.left+l.x)/s.x,p=(n.top+l.y)/s.y,h=n.width/s.x,m=n.height/s.y;if(a){let y=Ve(a),v=i&&xt(i)?Ve(i):i,x=y.frameElement;for(;x&&i&&v!==y;){let S=Dr(x),T=x.getBoundingClientRect(),A=Xe(x),R=T.left+(x.clientLeft+parseFloat(A.paddingLeft))*S.x,L=T.top+(x.clientTop+parseFloat(A.paddingTop))*S.y;d*=S.x,p*=S.y,h*=S.x,m*=S.y,d+=R,p+=L,x=Ve(x).frameElement}}return fr({width:h,height:m,x:d,y:p})}function Kd(t){let{rect:e,offsetParent:r,strategy:i}=t,n=ct(r),a=It(r);if(r===a)return e;let s={scrollLeft:0,scrollTop:0},l=Nt(1),d=Nt(0);if((n||!n&&i!=="fixed")&&((Tt(r)!=="body"||Lr(a))&&(s=so(r)),ct(r))){let p=lo(r);l=Dr(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 Zd(t){return Array.from(t.getClientRects())}function il(t){return lo(It(t)).left+so(t).scrollLeft}function qd(t){let e=It(t),r=so(t),i=t.ownerDocument.body,n=Vt(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),a=Vt(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight),s=-r.scrollLeft+il(t),l=-r.scrollTop;return Xe(i).direction==="rtl"&&(s+=Vt(e.clientWidth,i.clientWidth)-n),{width:n,height:a,x:s,y:l}}function Yd(t,e){let r=Ve(t),i=It(t),n=r.visualViewport,a=i.clientWidth,s=i.clientHeight,l=0,d=0;if(n){a=n.width,s=n.height;let p=Mo();(!p||p&&e==="fixed")&&(l=n.offsetLeft,d=n.offsetTop)}return{width:a,height:s,x:l,y:d}}function Xd(t,e){let r=lo(t,!0,e==="fixed"),i=r.top+t.clientTop,n=r.left+t.clientLeft,a=ct(t)?Dr(t):Nt(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 Qs(t,e,r){let i;if(e==="viewport")i=Yd(t,r);else if(e==="document")i=qd(It(t));else if(xt(e))i=Xd(e,r);else{let n=ol(t);i={...e,x:e.x-n.x,y:e.y-n.y}}return fr(i)}function nl(t,e){let r=ur(t);return r===e||!xt(r)||ao(r)?!1:Xe(r).position==="fixed"||nl(r,e)}function Jd(t,e){let r=e.get(t);if(r)return r;let i=Do(t,[],!1).filter(l=>xt(l)&&Tt(l)!=="body"),n=null,a=Xe(t).position==="fixed",s=a?ur(t):t;for(;xt(s)&&!ao(s);){let l=Xe(s),d=$o(s);!d&&l.position==="fixed"&&(n=null),(a?!d&&!n:!d&&l.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||Lr(s)&&!d&&nl(t,s))?i=i.filter(h=>h!==s):n=l,s=ur(s)}return e.set(t,i),i}function Qd(t){let{element:e,boundary:r,rootBoundary:i,strategy:n}=t,s=[...r==="clippingAncestors"?Jd(e,this._c):[].concat(r),i],l=s[0],d=s.reduce((p,h)=>{let m=Qs(e,h,n);return p.top=Vt(m.top,p.top),p.right=io(m.right,p.right),p.bottom=io(m.bottom,p.bottom),p.left=Vt(m.left,p.left),p},Qs(e,l,n));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function ep(t){return tl(t)}function tp(t,e,r){let i=ct(e),n=It(e),a=r==="fixed",s=lo(t,!0,a,e),l={scrollLeft:0,scrollTop:0},d=Nt(0);if(i||!i&&!a)if((Tt(e)!=="body"||Lr(n))&&(l=so(e)),i){let p=lo(e,!0,a,e);d.x=p.x+e.clientLeft,d.y=p.y+e.clientTop}else n&&(d.x=il(n));return{x:s.left+l.scrollLeft-d.x,y:s.top+l.scrollTop-d.y,width:s.width,height:s.height}}function el(t,e){return!ct(t)||Xe(t).position==="fixed"?null:e?e(t):t.offsetParent}function al(t,e){let r=Ve(t);if(!ct(t))return r;let i=el(t,e);for(;i&&Ys(i)&&Xe(i).position==="static";)i=el(i,e);return i&&(Tt(i)==="html"||Tt(i)==="body"&&Xe(i).position==="static"&&!$o(i))?r:i||Xs(t)||r}var rp=async function(t){let{reference:e,floating:r,strategy:i}=t,n=this.getOffsetParent||al,a=this.getDimensions;return{reference:tp(e,await n(r),i),floating:{x:0,y:0,...await a(r)}}};function op(t){return Xe(t).direction==="rtl"}var Bo={convertOffsetParentRelativeRectToViewportRelativeRect:Kd,getDocumentElement:It,getClippingRect:Qd,getOffsetParent:al,getElementRects:rp,getClientRects:Zd,getDimensions:ep,getScale:Dr,isElement:xt,isRTL:op};var sl=(t,e,r)=>{let i=new Map,n={platform:Bo,...r},a={...n.platform,_c:i};return Ks(t,e,{...n,platform:a})};function ll(t){return ip(t)}function fn(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function ip(t){for(let e=t;e;e=fn(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=fn(t);e;e=fn(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 Uo(t,e,r){return sl(t,e,{platform:{...Bo,getOffsetParent:i=>Bo.getOffsetParent(i,ll)},middleware:[pn({crossAxis:!0}),dn({allowedPlacements:[r]})]})}var je=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},re=class extends co.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 co.Debouncer,this.revealDebouncer=new co.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return cl.html`
578
579
  <div part="container"
579
580
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
580
581
  @mouseenter=${this.onHover}
@@ -592,12 +593,12 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
592
593
  </div>
593
594
  </div>
594
595
  </div>
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="",Do(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))}};re.elementDefinitions={"ft-typography":ce};re.styles=Ps;He([(0,xe.property)()],re.prototype,"text",void 0);He([(0,xe.property)({type:Boolean})],re.prototype,"manual",void 0);He([(0,xe.property)({type:Boolean})],re.prototype,"inline",void 0);He([(0,xe.property)({type:Number})],re.prototype,"delay",void 0);He([(0,xe.property)()],re.prototype,"position",void 0);He([(0,xe.queryAssignedNodes)()],re.prototype,"slotNodes",void 0);He([(0,xe.query)(".ft-tooltip--container")],re.prototype,"container",void 0);He([(0,xe.query)(".ft-tooltip")],re.prototype,"tooltip",void 0);He([(0,xe.query)(".ft-tooltip--content")],re.prototype,"tooltipContent",void 0);He([(0,xe.state)()],re.prototype,"visible",void 0);He([(0,xe.eventOptions)({passive:!0})],re.prototype,"onTouch",null);He([(0,xe.eventOptions)({passive:!0})],re.prototype,"onHover",null);He([(0,xe.eventOptions)({passive:!0})],re.prototype,"onOut",null);He([(0,xe.eventOptions)({passive:!0})],re.prototype,"onClick",null);(0,ol.customElement)("ft-tooltip")(re);var ll=m(E());var ao=m($()),dr=m(G()),al=m(E()),sl=m(nl());var cr;(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.ROUTE="&#xe992;",t.CIRCLE_USER_SLASH="&#xe993;",t.CIRCLE_USER_CHECK="&#xe994;",t.LIST_MAGNIFYING_GLASS="&#xe995;",t.MEDAL="&#xe996;",t.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",t.ARROW_TURN_DOWN_RIGHT="&#xe998;",t.FLASK="&#xe999;",t.EYE="&#xf06e;",t.SHARE="&#xe80f1;"})(cr||(cr={}));var w;(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;"})(w||(w={}));var qg=new Map([...["abw"].map(t=>[t,w.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,w.AUDIO]),...["avi"].map(t=>[t,w.AVI]),...["chm","xhs"].map(t=>[t,w.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,w.CODE]),...["csv"].map(t=>[t,w.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,w.DITA]),...["epub"].map(t=>[t,w.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,w.EXCEL]),...["flac"].map(t=>[t,w.FLAC]),...["gif"].map(t=>[t,w.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,w.GZIP]),...["html","htm","xhtml"].map(t=>[t,w.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,w.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,w.JPEG]),...["json"].map(t=>[t,w.JSON]),...["m4a","m4p"].map(t=>[t,w.M4A]),...["mov","qt"].map(t=>[t,w.MOV]),...["mp3"].map(t=>[t,w.MP3]),...["mp4","m4v"].map(t=>[t,w.MP4]),...["ogg","oga"].map(t=>[t,w.OGG]),...["pdf","ps"].map(t=>[t,w.PDF]),...["png"].map(t=>[t,w.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,w.POWERPOINT]),...["rar"].map(t=>[t,w.RAR]),...["stp"].map(t=>[t,w.STP]),...["txt","rtf","md","mdown"].map(t=>[t,w.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,w.VIDEO]),...["wav"].map(t=>[t,w.WAV]),...["wma"].map(t=>[t,w.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,w.WORD]),...["xml","xsl","rdf"].map(t=>[t,w.XML]),...["yaml","yml","x-yaml"].map(t=>[t,w.YAML]),...["zip"].map(t=>[t,w.ZIP])]);var Yg={[w.ABW]:"#91ABC6",[w.AUDIO]:"#1795E3",[w.AVI]:"#E63324",[w.CHM]:"#71C3EB",[w.CODE]:"#71C3EB",[w.CSV]:"#1F7345",[w.DITA]:"#71C3EB",[w.EPUB]:"#85B926",[w.EXCEL]:"#1F7345",[w.FLAC]:"#1795E3",[w.GIF]:"#59B031",[w.GZIP]:"#F8AB36",[w.HTML]:"#71C3EB",[w.IMAGE]:"#59B031",[w.JPEG]:"#59B031",[w.JSON]:"#71C3EB",[w.M4A]:"#1795E3",[w.MOV]:"#E63324",[w.MP3]:"#1795E3",[w.MP4]:"#E63324",[w.OGG]:"#1795E3",[w.PDF]:"#E44948",[w.PNG]:"#59B031",[w.POWERPOINT]:"#B54A2B",[w.RAR]:"#F8AB36",[w.STP]:"#3764B1",[w.TEXT]:"#3162AB",[w.UNKNOWN]:"#999999",[w.VIDEO]:"#E63324",[w.WAV]:"#1795E3",[w.WMA]:"#1795E3",[w.WORD]:"#3162AB",[w.XML]:"#71C3EB",[w.YAML]:"#71C3EB",[w.ZIP]:"#F8AB36"};var Ie;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(Ie||(Ie={}));var $o=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},ge=class extends al.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=ao.nothing}render(){let e=this.variant&&Object.values(Ie).includes(this.variant)?this.variant:Ie.fluid_topics,r=e!==Ie.material||!!this.value;return ao.html`
596
+ `}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="",Uo(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))}};re.elementDefinitions={"ft-typography":de};re.styles=Fs;je([(0,xe.property)()],re.prototype,"text",void 0);je([(0,xe.property)({type:Boolean})],re.prototype,"manual",void 0);je([(0,xe.property)({type:Boolean})],re.prototype,"inline",void 0);je([(0,xe.property)({type:Number})],re.prototype,"delay",void 0);je([(0,xe.property)()],re.prototype,"position",void 0);je([(0,xe.queryAssignedNodes)()],re.prototype,"slotNodes",void 0);je([(0,xe.query)(".ft-tooltip--container")],re.prototype,"container",void 0);je([(0,xe.query)(".ft-tooltip")],re.prototype,"tooltip",void 0);je([(0,xe.query)(".ft-tooltip--content")],re.prototype,"tooltipContent",void 0);je([(0,xe.state)()],re.prototype,"visible",void 0);je([(0,xe.eventOptions)({passive:!0})],re.prototype,"onTouch",null);je([(0,xe.eventOptions)({passive:!0})],re.prototype,"onHover",null);je([(0,xe.eventOptions)({passive:!0})],re.prototype,"onOut",null);je([(0,xe.eventOptions)({passive:!0})],re.prototype,"onClick",null);(0,dl.customElement)("ft-tooltip")(re);var ml=g(E());var po=g(D()),mr=g(Z()),ul=g(E()),hl=g(fl());var hr;(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.ROUTE="&#xe992;",t.CIRCLE_USER_SLASH="&#xe993;",t.CIRCLE_USER_CHECK="&#xe994;",t.LIST_MAGNIFYING_GLASS="&#xe995;",t.MEDAL="&#xe996;",t.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",t.ARROW_TURN_DOWN_RIGHT="&#xe998;",t.FLASK="&#xe999;",t.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",t.HOURGLASS_END="&#xe99b;",t.EYE="&#xf06e;",t.SHARE="&#xe80f1;"})(hr||(hr={}));var w;(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;"})(w||(w={}));var oy=new Map([...["abw"].map(t=>[t,w.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,w.AUDIO]),...["avi"].map(t=>[t,w.AVI]),...["chm","xhs"].map(t=>[t,w.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,w.CODE]),...["csv"].map(t=>[t,w.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,w.DITA]),...["epub"].map(t=>[t,w.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,w.EXCEL]),...["flac"].map(t=>[t,w.FLAC]),...["gif"].map(t=>[t,w.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,w.GZIP]),...["html","htm","xhtml"].map(t=>[t,w.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,w.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,w.JPEG]),...["json"].map(t=>[t,w.JSON]),...["m4a","m4p"].map(t=>[t,w.M4A]),...["mov","qt"].map(t=>[t,w.MOV]),...["mp3"].map(t=>[t,w.MP3]),...["mp4","m4v"].map(t=>[t,w.MP4]),...["ogg","oga"].map(t=>[t,w.OGG]),...["pdf","ps"].map(t=>[t,w.PDF]),...["png"].map(t=>[t,w.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,w.POWERPOINT]),...["rar"].map(t=>[t,w.RAR]),...["stp"].map(t=>[t,w.STP]),...["txt","rtf","md","mdown"].map(t=>[t,w.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,w.VIDEO]),...["wav"].map(t=>[t,w.WAV]),...["wma"].map(t=>[t,w.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,w.WORD]),...["xml","xsl","rdf"].map(t=>[t,w.XML]),...["yaml","yml","x-yaml"].map(t=>[t,w.YAML]),...["zip"].map(t=>[t,w.ZIP])]);var iy={[w.ABW]:"#91ABC6",[w.AUDIO]:"#1795E3",[w.AVI]:"#E63324",[w.CHM]:"#71C3EB",[w.CODE]:"#71C3EB",[w.CSV]:"#1F7345",[w.DITA]:"#71C3EB",[w.EPUB]:"#85B926",[w.EXCEL]:"#1F7345",[w.FLAC]:"#1795E3",[w.GIF]:"#59B031",[w.GZIP]:"#F8AB36",[w.HTML]:"#71C3EB",[w.IMAGE]:"#59B031",[w.JPEG]:"#59B031",[w.JSON]:"#71C3EB",[w.M4A]:"#1795E3",[w.MOV]:"#E63324",[w.MP3]:"#1795E3",[w.MP4]:"#E63324",[w.OGG]:"#1795E3",[w.PDF]:"#E44948",[w.PNG]:"#59B031",[w.POWERPOINT]:"#B54A2B",[w.RAR]:"#F8AB36",[w.STP]:"#3764B1",[w.TEXT]:"#3162AB",[w.UNKNOWN]:"#999999",[w.VIDEO]:"#E63324",[w.WAV]:"#1795E3",[w.WMA]:"#1795E3",[w.WORD]:"#3162AB",[w.XML]:"#71C3EB",[w.YAML]:"#71C3EB",[w.ZIP]:"#F8AB36"};var Ie;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(Ie||(Ie={}));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},ye=class extends ul.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=po.nothing}render(){let e=this.variant&&Object.values(Ie).includes(this.variant)?this.variant:Ie.fluid_topics,r=e!==Ie.material||!!this.value;return po.html`
596
597
  <i class="ft-icon ft-icon--${e}" part="icon icon-${e}">
597
- ${(0,sl.unsafeHTML)(this.resolvedIcon)}
598
+ ${(0,hl.unsafeHTML)(this.resolvedIcon)}
598
599
  <slot ?hidden=${r}></slot>
599
600
  </i>
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 Ie.file_format:this.resolvedIcon=(e=w[i.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:i;break;case Ie.material:this.resolvedIcon=this.value||ao.nothing;break;default:this.resolvedIcon=(r=cr[i.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:i;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};ge.elementDefinitions={};ge.styles=ts;$o([(0,dr.property)()],ge.prototype,"variant",void 0);$o([(0,dr.property)()],ge.prototype,"value",void 0);$o([(0,dr.state)()],ge.prototype,"resolvedIcon",void 0);$o([(0,dr.query)("slot")],ge.prototype,"slottedContent",void 0);(0,ll.customElement)("ft-icon")(ge);var cl=m($()),Me=m(E());var Se={borderRadiusLeft:Me.FtCssVariableFactory.extend("--ft-switch-option-border-radius-left","",Me.designSystemVariables.borderRadiusL),borderRadiusRight:Me.FtCssVariableFactory.extend("--ft-switch-option-border-radius-right","",Me.designSystemVariables.borderRadiusL),borderWidthLeft:Me.FtCssVariableFactory.create("--ft-switch-option-border-width-left","","SIZE","1px"),borderWidthRight:Me.FtCssVariableFactory.create("--ft-switch-option-border-width-right","","SIZE","1px"),borderWidthVertical:Me.FtCssVariableFactory.create("--ft-switch-option-border-width-vertical","","SIZE","1px")},dl=cl.css`
601
+ `}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 Ie.file_format:this.resolvedIcon=(e=w[i.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:i;break;case Ie.material:this.resolvedIcon=this.value||po.nothing;break;default:this.resolvedIcon=(r=hr[i.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:i;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};ye.elementDefinitions={};ye.styles=ls;Fo([(0,mr.property)()],ye.prototype,"variant",void 0);Fo([(0,mr.property)()],ye.prototype,"value",void 0);Fo([(0,mr.state)()],ye.prototype,"resolvedIcon",void 0);Fo([(0,mr.query)("slot")],ye.prototype,"slottedContent",void 0);(0,ml.customElement)("ft-icon")(ye);var gl=g(D()),Ue=g(E());var Se={borderRadiusLeft:Ue.FtCssVariableFactory.extend("--ft-switch-option-border-radius-left","",Ue.designSystemVariables.borderRadiusL),borderRadiusRight:Ue.FtCssVariableFactory.extend("--ft-switch-option-border-radius-right","",Ue.designSystemVariables.borderRadiusL),borderWidthLeft:Ue.FtCssVariableFactory.create("--ft-switch-option-border-width-left","","SIZE","1px"),borderWidthRight:Ue.FtCssVariableFactory.create("--ft-switch-option-border-width-right","","SIZE","1px"),borderWidthVertical:Ue.FtCssVariableFactory.create("--ft-switch-option-border-width-vertical","","SIZE","1px")},yl=gl.css`
601
602
  .ft-switch-option {
602
603
  position: relative;
603
604
  display: inline-block;
@@ -611,20 +612,20 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
611
612
  }
612
613
 
613
614
  .ft-switch-option--content {
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});
615
+ --ft-switch-option-internal-line-height: calc(${ce.fontSize} + 2px);
616
+ --ft-switch-option-internal-content-height: max(var(--ft-switch-option-internal-line-height), ${ce.iconSize});
616
617
 
617
618
  border-style: solid;
618
- border-color: ${le.borderColor};
619
+ border-color: ${ce.borderColor};
619
620
  border-width: ${Se.borderWidthVertical} ${Se.borderWidthRight} ${Se.borderWidthVertical} ${Se.borderWidthLeft};
620
621
  border-radius: ${Se.borderRadiusLeft} ${Se.borderRadiusRight} ${Se.borderRadiusRight} ${Se.borderRadiusLeft};
621
622
  display: flex;
622
623
  align-items: center;
623
624
  justify-content: center;
624
625
  overflow: hidden;
625
- ${(0,Me.setVariable)(ve.size,le.iconSize)};
626
+ ${(0,Ue.setVariable)(ve.size,ce.iconSize)};
626
627
  padding: var(--ft-switch-internal-vertical-padding, 6px) var(--ft-switch-internal-horizontal-padding, 8px);
627
- background-color: ${le.backgroundColor};
628
+ background-color: ${ce.backgroundColor};
628
629
  -webkit-mask-image: radial-gradient(white, black);
629
630
  }
630
631
 
@@ -633,28 +634,28 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
633
634
  }
634
635
 
635
636
  .ft-switch-option--selected .ft-switch-option--content:before {
636
- background-color: ${le.selectedBackgroundColor};
637
+ background-color: ${ce.selectedBackgroundColor};
637
638
  border-radius: ${Se.borderRadiusLeft} ${Se.borderRadiusRight} ${Se.borderRadiusRight} ${Se.borderRadiusLeft};
638
639
  position: absolute;
639
640
  inset: 0;
640
641
  content: "";
641
642
  z-index: 1;
642
- opacity: ${Me.designSystemVariables.opacityPrimaryOnSurfaceSelected};
643
+ opacity: ${Ue.designSystemVariables.opacityPrimaryOnSurfaceSelected};
643
644
  }
644
645
 
645
646
  .ft-switch-option--label {
646
- color: ${le.textColor};
647
+ color: ${ce.textColor};
647
648
  overflow: hidden;
648
649
  white-space: nowrap;
649
650
  text-overflow: ellipsis;
650
651
  display: block;
651
652
  margin: 0 8px;
652
- ${(0,Me.setVariable)(De.fontSize,le.fontSize)};
653
- ${(0,Me.setVariable)(De.lineHeight,"var(--ft-switch-option-internal-content-height)")}
653
+ ${(0,Ue.setVariable)(Me.fontSize,ce.fontSize)};
654
+ ${(0,Ue.setVariable)(Me.lineHeight,"var(--ft-switch-option-internal-content-height)")}
654
655
  }
655
656
 
656
657
  .ft-switch-option--selected .ft-switch-option--label {
657
- color: ${le.selectedTextColor};
658
+ color: ${ce.selectedTextColor};
658
659
  }
659
660
 
660
661
  .ft-switch-option--label[hidden] {
@@ -662,7 +663,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
662
663
  }
663
664
 
664
665
  .ft-switch-option--ripple {
665
- ${(0,Me.setVariable)(M.color,le.rippleColor)};
666
+ ${(0,Ue.setVariable)($.color,ce.rippleColor)};
666
667
  }
667
668
 
668
669
  ft-icon, ft-ripple, ft-typography {
@@ -675,20 +676,20 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
675
676
 
676
677
  ft-icon {
677
678
  flex-shrink: 0;
678
- color: ${le.iconColor};
679
+ color: ${ce.iconColor};
679
680
  }
680
681
 
681
682
  .ft-switch-option--selected ft-icon {
682
- color: ${le.selectedTextColor};
683
+ color: ${ce.selectedTextColor};
683
684
  }
684
- `;var bt=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},sn=class extends CustomEvent{constructor(e){super("option-change-by-user",{detail:e,bubbles:!0,composed:!0})}},ln=class extends CustomEvent{constructor(e){super("option-change",{detail:e,bubbles:!0,composed:!0})}},ye=class extends kr.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 ln(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(_r.html`
685
- <label part="label" for="input" class=${(0,pl.classMap)(e)}
685
+ `;var St=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},un=class extends CustomEvent{constructor(e){super("option-change-by-user",{detail:e,bubbles:!0,composed:!0})}},hn=class extends CustomEvent{constructor(e){super("option-change",{detail:e,bubbles:!0,composed:!0})}},be=class extends Mr.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 hn(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($r.html`
686
+ <label part="label" for="input" class=${(0,bl.classMap)(e)}
686
687
  @click=${this.onChange}>
687
688
  <div class="ft-switch-option--content">
688
689
  <ft-ripple part="ripple" class="ft-switch-option--ripple"></ft-ripple>
689
690
  <ft-typography part="text"
690
691
  variant="button"
691
- class="ft-switch-option--label ${kr.isSafari?"ft-safari-ellipsis-fix":""}"
692
+ class="ft-switch-option--label ${Mr.isSafari?"ft-safari-ellipsis-fix":""}"
692
693
  ?hidden=${!this.hasTextContent()}>
693
694
  <slot @slotchange=${this.onSlotchange}></slot>
694
695
  </ft-typography>
@@ -697,29 +698,29 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
697
698
  </label>
698
699
  <input id="input" type="radio" class="ft-switch-option--input"
699
700
  .checked=${this.selected}>
700
- `)}addTooltip(e){return this.hasTextContent()||this.getLabel().trim().length===0?e:_r.html`
701
+ `)}addTooltip(e){return this.hasTextContent()||this.getLabel().trim().length===0?e:$r.html`
701
702
  <ft-tooltip part="tooltip"
702
703
  text="${this.getLabel()}"
703
704
  position="${this.tooltipPosition}">
704
705
  ${e}
705
706
  </ft-tooltip>
706
- `}onChange(){this.selected=this.unselectable?!this.selected:!0,this.dispatchEvent(new sn(this.selected))}getLabel(){return this.label||this.textContent}resolveIcon(){return this.icon?_r.html`
707
+ `}onChange(){this.selected=this.unselectable?!this.selected:!0,this.dispatchEvent(new un(this.selected))}getLabel(){return this.label||this.textContent}resolveIcon(){return this.icon?$r.html`
707
708
  <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
708
- `:_r.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()}};ye.elementDefinitions={"ft-ripple":H,"ft-typography":ce,"ft-tooltip":re,"ft-icon":ge};ye.styles=[kr.safariEllipsisFix,dl];bt([(0,rt.property)()],ye.prototype,"value",void 0);bt([(0,rt.property)()],ye.prototype,"icon",void 0);bt([(0,rt.property)()],ye.prototype,"iconVariant",void 0);bt([(0,rt.property)()],ye.prototype,"label",void 0);bt([(0,rt.property)()],ye.prototype,"tooltipPosition",void 0);bt([(0,rt.property)({type:Boolean,reflect:!0})],ye.prototype,"selected",void 0);bt([(0,rt.property)({type:Boolean})],ye.prototype,"trailingIcon",void 0);bt([(0,rt.property)({type:Boolean})],ye.prototype,"unselectable",void 0);bt([(0,rt.query)(".ft-switch-option--content slot")],ye.prototype,"slottedContent",void 0);bt([(0,rt.query)(".ft-switch-option--input")],ye.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},cn=class extends CustomEvent{constructor(e){super("change",{detail:e})}},Ye=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 Mo.html`
709
- <div @keydown=${this.onKeyDown} tabindex="0" class="${(0,fl.classMap)(e)}">
709
+ `:$r.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()}};be.elementDefinitions={"ft-ripple":j,"ft-typography":de,"ft-tooltip":re,"ft-icon":ye};be.styles=[Mr.safariEllipsisFix,yl];St([(0,ot.property)()],be.prototype,"value",void 0);St([(0,ot.property)()],be.prototype,"icon",void 0);St([(0,ot.property)()],be.prototype,"iconVariant",void 0);St([(0,ot.property)()],be.prototype,"label",void 0);St([(0,ot.property)()],be.prototype,"tooltipPosition",void 0);St([(0,ot.property)({type:Boolean,reflect:!0})],be.prototype,"selected",void 0);St([(0,ot.property)({type:Boolean})],be.prototype,"trailingIcon",void 0);St([(0,ot.property)({type:Boolean})],be.prototype,"unselectable",void 0);St([(0,ot.query)(".ft-switch-option--content slot")],be.prototype,"slottedContent",void 0);St([(0,ot.query)(".ft-switch-option--input")],be.prototype,"input",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},mn=class extends CustomEvent{constructor(e){super("change",{detail:e})}},Je=class extends _t.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 zo.html`
710
+ <div @keydown=${this.onKeyDown} tabindex="0" class="${(0,vl.classMap)(e)}">
710
711
  <slot @slotchange=${this.onSlotchange}
711
712
  @option-change=${this.onOptionChangeByScript}
712
713
  @option-change-by-user=${this.onOptionChangeByUser}
713
714
  ></slot>
714
715
  </div>
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 ye&&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 cn((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})}};Ye.elementDefinitions={};Ye.styles=Mo.css`
716
+ `}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 be&&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 mn((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})}};Je.elementDefinitions={};Je.styles=zo.css`
716
717
  :host {
717
718
  display: inline-block;
718
719
  }
719
720
 
720
721
  .ft-switch {
721
- border-radius: ${le.borderRadius};
722
- outline-color: ${le.outlineColor};
722
+ border-radius: ${ce.borderRadius};
723
+ outline-color: ${ce.outlineColor};
723
724
  }
724
725
 
725
726
  .ft-switch slot {
@@ -728,25 +729,25 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
728
729
  }
729
730
 
730
731
  .ft-switch slot::slotted(ft-switch-option) {
731
- ${(0,Nt.setVariable)(Se.borderRadiusLeft,"0")};
732
- ${(0,Nt.setVariable)(Se.borderRadiusRight,"0")};
733
- ${(0,Nt.setVariable)(Se.borderWidthLeft,"0")};
732
+ ${(0,_t.setVariable)(Se.borderRadiusLeft,"0")};
733
+ ${(0,_t.setVariable)(Se.borderRadiusRight,"0")};
734
+ ${(0,_t.setVariable)(Se.borderWidthLeft,"0")};
734
735
  }
735
736
 
736
737
  .ft-switch slot::slotted(ft-switch-option:first-child) {
737
- ${(0,Nt.setVariable)(Se.borderRadiusLeft,le.borderRadius)};
738
- ${(0,Nt.setVariable)(Se.borderWidthLeft,"1px")};
738
+ ${(0,_t.setVariable)(Se.borderRadiusLeft,ce.borderRadius)};
739
+ ${(0,_t.setVariable)(Se.borderWidthLeft,"1px")};
739
740
  }
740
741
 
741
742
  .ft-switch slot::slotted(ft-switch-option:last-child) {
742
- ${(0,Nt.setVariable)(Se.borderRadiusRight,le.borderRadius)};
743
+ ${(0,_t.setVariable)(Se.borderRadiusRight,ce.borderRadius)};
743
744
  }
744
745
 
745
746
  .ft-switch--dense slot::slotted(ft-switch-option) {
746
747
  --ft-switch-internal-vertical-padding: 2px;
747
748
  --ft-switch-internal-horizontal-padding: 4px;
748
749
  }
749
- `;so([(0,Ht.property)({type:Boolean})],Ye.prototype,"dense",void 0);so([(0,Ht.property)({type:Boolean})],Ye.prototype,"unselectable",void 0);so([(0,Ht.query)(".ft-switch slot")],Ye.prototype,"slottedContent",void 0);so([(0,Ht.state)()],Ye.prototype,"selectedOption",void 0);so([(0,Ht.query)(".ft-switch")],Ye.prototype,"ftSwitchDiv",void 0);(0,dn.customElement)("ft-switch")(Ye);(0,dn.customElement)("ft-switch-option")(ye);var El=m(E());var Fo=m($()),ot=m(G()),Cl=m(Ft()),zo=m(E());var gl=m(E());var Bo=m($()),ct=m(G()),Uo=m(E());var hl=m($()),Pr=m(E()),ul={colorOutline:Pr.FtCssVariableFactory.external(Pr.designSystemVariables.colorOutline,"Design system"),colorOnSurfaceMedium:Pr.FtCssVariableFactory.external(Pr.designSystemVariables.colorOnSurfaceMedium,"Design system")},ml=hl.css`
750
+ `;fo([(0,Gt.property)({type:Boolean})],Je.prototype,"dense",void 0);fo([(0,Gt.property)({type:Boolean})],Je.prototype,"unselectable",void 0);fo([(0,Gt.query)(".ft-switch slot")],Je.prototype,"slottedContent",void 0);fo([(0,Gt.state)()],Je.prototype,"selectedOption",void 0);fo([(0,Gt.query)(".ft-switch")],Je.prototype,"ftSwitchDiv",void 0);(0,gn.customElement)("ft-switch")(Je);(0,gn.customElement)("ft-switch-option")(be);var kl=g(E());var Vo=g(D()),it=g(Z()),_l=g(Ht()),jo=g(E());var wl=g(E());var Wo=g(D()),dt=g(Z()),Ho=g(E());var Sl=g(D()),Br=g(E()),xl={colorOutline:Br.FtCssVariableFactory.external(Br.designSystemVariables.colorOutline,"Design system"),colorOnSurfaceMedium:Br.FtCssVariableFactory.external(Br.designSystemVariables.colorOnSurfaceMedium,"Design system")},Ol=Sl.css`
750
751
  :host {
751
752
  display: block;
752
753
  }
@@ -757,17 +758,17 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
757
758
 
758
759
  ft-icon {
759
760
  transform: rotate(-45deg);
760
- color: ${ul.colorOutline};
761
+ color: ${xl.colorOutline};
761
762
  }
762
763
 
763
764
  .ft-resizer--dragging ft-icon,
764
765
  .ft-resizer:hover ft-icon {
765
- color: ${ul.colorOnSurfaceMedium};
766
+ color: ${xl.colorOnSurfaceMedium};
766
767
  }
767
- `;var Vt=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},pn=class extends CustomEvent{constructor(e,r){super("resize",{detail:{width:e,height:r}})}},Te=class extends Uo.FtLitElement{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=Ie.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 Bo.html`
768
+ `;var Kt=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},yn=class extends CustomEvent{constructor(e,r){super("resize",{detail:{width:e,height:r}})}},_e=class extends Ho.FtLitElement{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=Ie.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 Wo.html`
768
769
  <style>
769
770
  .ft-resizer {
770
- cursor: ${(0,Bo.unsafeCSS)(this.cursor)}
771
+ cursor: ${(0,Wo.unsafeCSS)(this.cursor)}
771
772
  }
772
773
  </style>
773
774
  <div class="ft-resizer ft-no-text-select ${this.dragging?"ft-resizer--dragging":""}"
@@ -775,25 +776,25 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
775
776
  @touchstart=${this.initDragFromTouch}>
776
777
  <ft-icon .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
777
778
  </div>
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 pn(i,n))}};Te.elementDefinitions={"ft-icon":ge};Te.styles=[Uo.noTextSelect,ml];Vt([(0,ct.property)({type:Number})],Te.prototype,"initialWidth",void 0);Vt([(0,ct.property)({type:Number})],Te.prototype,"initialHeight",void 0);Vt([(0,ct.property)()],Te.prototype,"icon",void 0);Vt([(0,ct.property)()],Te.prototype,"iconVariant",void 0);Vt([(0,ct.property)()],Te.prototype,"cursor",void 0);Vt([(0,ct.state)()],Te.prototype,"dragging",void 0);Vt([(0,ct.eventOptions)({passive:!0})],Te.prototype,"initDragFromMouse",null);Vt([(0,ct.eventOptions)({passive:!0})],Te.prototype,"initDragFromTouch",null);(0,gl.customElement)("ft-resizer")(Te);var Sl=m(E());var fn=m($()),Lr=m(G()),vl=m(Ft()),xl=m(E());var yl=m($()),ee=m(E());var P={fontSize:ee.FtCssVariableFactory.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:ee.FtCssVariableFactory.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:ee.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:ee.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:ee.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:ee.FtCssVariableFactory.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:ee.FtCssVariableFactory.extend("--ft-input-label-border-color","",ee.designSystemVariables.colorOutline),textColor:ee.FtCssVariableFactory.extend("--ft-input-label-text-color","",ee.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:ee.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color","",ee.designSystemVariables.colorOnSurfaceDisabled),colorSurface:ee.FtCssVariableFactory.external(ee.designSystemVariables.colorSurface,"Design system"),borderRadiusS:ee.FtCssVariableFactory.external(ee.designSystemVariables.borderRadiusS,"Design system"),colorError:ee.FtCssVariableFactory.external(ee.designSystemVariables.colorError,"Design system")},bl=yl.css`
779
+ `}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 yn(i,n))}};_e.elementDefinitions={"ft-icon":ye};_e.styles=[Ho.noTextSelect,Ol];Kt([(0,dt.property)({type:Number})],_e.prototype,"initialWidth",void 0);Kt([(0,dt.property)({type:Number})],_e.prototype,"initialHeight",void 0);Kt([(0,dt.property)()],_e.prototype,"icon",void 0);Kt([(0,dt.property)()],_e.prototype,"iconVariant",void 0);Kt([(0,dt.property)()],_e.prototype,"cursor",void 0);Kt([(0,dt.state)()],_e.prototype,"dragging",void 0);Kt([(0,dt.eventOptions)({passive:!0})],_e.prototype,"initDragFromMouse",null);Kt([(0,dt.eventOptions)({passive:!0})],_e.prototype,"initDragFromTouch",null);(0,wl.customElement)("ft-resizer")(_e);var Nl=g(E());var bn=g(D()),Ur=g(Z()),Al=g(Ht()),Rl=g(E());var Cl=g(D()),te=g(E());var k={fontSize:te.FtCssVariableFactory.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:te.FtCssVariableFactory.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:te.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:te.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:te.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:te.FtCssVariableFactory.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:te.FtCssVariableFactory.extend("--ft-input-label-border-color","",te.designSystemVariables.colorOutline),textColor:te.FtCssVariableFactory.extend("--ft-input-label-text-color","",te.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:te.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color","",te.designSystemVariables.colorOnSurfaceDisabled),colorSurface:te.FtCssVariableFactory.external(te.designSystemVariables.colorSurface,"Design system"),borderRadiusS:te.FtCssVariableFactory.external(te.designSystemVariables.borderRadiusS,"Design system"),colorError:te.FtCssVariableFactory.external(te.designSystemVariables.colorError,"Design system")},El=Cl.css`
779
780
  .ft-input-label {
780
781
  position: absolute;
781
782
  inset: 0;
782
783
  display: flex;
783
- background-color: ${P.colorSurface};
784
- border-radius: ${P.borderRadiusS} ${P.borderRadiusS} 0 0;
784
+ background-color: ${k.colorSurface};
785
+ border-radius: ${k.borderRadiusS} ${k.borderRadiusS} 0 0;
785
786
  }
786
787
 
787
788
  .ft-input-label--outlined {
788
- border-radius: ${P.borderRadiusS};
789
+ border-radius: ${k.borderRadiusS};
789
790
  }
790
791
 
791
792
  .ft-input-label {
792
- border-color: ${P.borderColor};
793
+ border-color: ${k.borderColor};
793
794
  }
794
795
 
795
796
  .ft-input-label.ft-input-label--in-error {
796
- border-color: ${P.colorError}
797
+ border-color: ${k.colorError}
797
798
  }
798
799
 
799
800
  .ft-input-label:before,
@@ -806,7 +807,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
806
807
  }
807
808
 
808
809
  .ft-input-label:before {
809
- width: calc(${P.horizontalSpacing} - 4px);
810
+ width: calc(${k.horizontalSpacing} - 4px);
810
811
  flex-shrink: 0;
811
812
  }
812
813
 
@@ -822,20 +823,20 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
822
823
  border-bottom-width: 1px;
823
824
  border-bottom-style: solid;
824
825
  border-color: inherit;
825
- color: ${P.textColor};
826
+ color: ${k.textColor};
826
827
  transition: font-size 250ms, line-height 250ms, color 250ms;
827
- max-width: calc(${P.labelMaxWidth} - 2 * (${P.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
828
+ max-width: calc(${k.labelMaxWidth} - 2 * (${k.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
828
829
  text-overflow: ellipsis;
829
- ${(0,ee.setVariable)(st.fontSize,P.fontSize)};
830
- ${(0,ee.setVariable)(st.lineHeight,P.fontSize)};
830
+ ${(0,te.setVariable)(lt.fontSize,k.fontSize)};
831
+ ${(0,te.setVariable)(lt.lineHeight,k.fontSize)};
831
832
  }
832
833
 
833
834
  .ft-input-label--in-error .ft-input-label--text {
834
- color: ${P.colorError}
835
+ color: ${k.colorError}
835
836
  }
836
837
 
837
838
  .ft-input-label--disabled .ft-input-label--text {
838
- color: ${P.disabledTextColor};
839
+ color: ${k.disabledTextColor};
839
840
  }
840
841
 
841
842
  .ft-input-label--hidden-text {
@@ -852,19 +853,19 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
852
853
  overflow: hidden;
853
854
  white-space: nowrap;
854
855
  text-overflow: ellipsis;
855
- padding: ${P.verticalSpacing} 4px;
856
- margin: calc(${P.verticalSpacing} * -1) 0;
856
+ padding: ${k.verticalSpacing} 4px;
857
+ margin: calc(${k.verticalSpacing} * -1) 0;
857
858
  max-width: 100%;
858
859
  box-sizing: border-box;
859
860
  }
860
861
 
861
862
  .ft-input-label--raised .ft-input-label--text {
862
- ${(0,ee.setVariable)(st.fontSize,P.raisedFontSize)};
863
- ${(0,ee.setVariable)(st.lineHeight,P.raisedFontSize)};
863
+ ${(0,te.setVariable)(lt.fontSize,k.raisedFontSize)};
864
+ ${(0,te.setVariable)(lt.lineHeight,k.raisedFontSize)};
864
865
  }
865
866
 
866
867
  .ft-input-label--raised .ft-input-label--floating-text {
867
- top: ${P.verticalSpacing};
868
+ top: ${k.verticalSpacing};
868
869
  }
869
870
 
870
871
  .ft-input-label--outlined .ft-input-label--text,
@@ -877,36 +878,36 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
877
878
  .ft-input-label--outlined:before {
878
879
  border-left-width: 1px;
879
880
  border-left-style: solid;
880
- border-radius: ${P.borderRadiusS} 0 0 ${P.borderRadiusS};
881
+ border-radius: ${k.borderRadiusS} 0 0 ${k.borderRadiusS};
881
882
  }
882
883
 
883
884
  .ft-input-label--outlined:after {
884
885
  border-right-width: 1px;
885
886
  border-right-style: solid;
886
- border-radius: 0 ${P.borderRadiusS} ${P.borderRadiusS} 0;
887
+ border-radius: 0 ${k.borderRadiusS} ${k.borderRadiusS} 0;
887
888
  }
888
889
 
889
890
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
890
891
  padding: 2px 4px;
891
- z-index: ${P.raisedZIndex};
892
- background-color: ${P.colorSurface};
893
- border-radius: ${P.borderRadiusS};
892
+ z-index: ${k.raisedZIndex};
893
+ background-color: ${k.colorSurface};
894
+ border-radius: ${k.borderRadiusS};
894
895
  top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
895
896
  }
896
897
 
897
898
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
898
899
  border-top: none;
899
900
  }
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},Be=class extends xl.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 fn.html`
901
- <div class="${(0,vl.classMap)(e)}">
902
- ${this.text?fn.html`
901
+ `;var uo=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},Fe=class extends Rl.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 bn.html`
902
+ <div class="${(0,Al.classMap)(e)}">
903
+ ${this.text?bn.html`
903
904
  <div class="ft-input-label--text ft-typography--caption">
904
905
  <span class="ft-input-label--floating-text">${this.text}</span>
905
906
  <span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
906
907
  </div>
907
908
  `:null}
908
909
  </div>
909
- `}};Be.elementDefinitions={};Be.styles=[Eo,bl];lo([(0,Lr.property)({type:String})],Be.prototype,"text",void 0);lo([(0,Lr.property)({type:Boolean})],Be.prototype,"raised",void 0);lo([(0,Lr.property)({type:Boolean})],Be.prototype,"outlined",void 0);lo([(0,Lr.property)({type:Boolean})],Be.prototype,"disabled",void 0);lo([(0,Lr.property)({type:Boolean})],Be.prototype,"error",void 0);(0,Sl.customElement)("ft-input-label")(Be);var Ol=m($()),j=m(E());var q={fontSize:j.FtCssVariableFactory.create("--ft-text-area-font-size","","SIZE","14px"),labelSize:j.FtCssVariableFactory.create("--ft-text-area-label-size","","SIZE","11px"),verticalSpacing:j.FtCssVariableFactory.create("--ft-text-area-vertical-spacing","","SIZE","4px"),horizontalSpacing:j.FtCssVariableFactory.create("--ft-text-area-horizontal-spacing","","SIZE","16px"),helperColor:j.FtCssVariableFactory.extend("--ft-text-area-helper-color","",j.designSystemVariables.colorOnSurfaceMedium),colorPrimary:j.FtCssVariableFactory.external(j.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:j.FtCssVariableFactory.external(j.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:j.FtCssVariableFactory.external(j.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:j.FtCssVariableFactory.external(j.designSystemVariables.borderRadiusS,"Design system"),colorError:j.FtCssVariableFactory.external(j.designSystemVariables.colorError,"Design system")},wl=Ol.css`
910
+ `}};Fe.elementDefinitions={};Fe.styles=[To,El];uo([(0,Ur.property)({type:String})],Fe.prototype,"text",void 0);uo([(0,Ur.property)({type:Boolean})],Fe.prototype,"raised",void 0);uo([(0,Ur.property)({type:Boolean})],Fe.prototype,"outlined",void 0);uo([(0,Ur.property)({type:Boolean})],Fe.prototype,"disabled",void 0);uo([(0,Ur.property)({type:Boolean})],Fe.prototype,"error",void 0);(0,Nl.customElement)("ft-input-label")(Fe);var Tl=g(D()),K=g(E());var Y={fontSize:K.FtCssVariableFactory.create("--ft-text-area-font-size","","SIZE","14px"),labelSize:K.FtCssVariableFactory.create("--ft-text-area-label-size","","SIZE","11px"),verticalSpacing:K.FtCssVariableFactory.create("--ft-text-area-vertical-spacing","","SIZE","4px"),horizontalSpacing:K.FtCssVariableFactory.create("--ft-text-area-horizontal-spacing","","SIZE","16px"),helperColor:K.FtCssVariableFactory.extend("--ft-text-area-helper-color","",K.designSystemVariables.colorOnSurfaceMedium),colorPrimary:K.FtCssVariableFactory.external(K.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:K.FtCssVariableFactory.external(K.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:K.FtCssVariableFactory.external(K.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:K.FtCssVariableFactory.external(K.designSystemVariables.borderRadiusS,"Design system"),colorError:K.FtCssVariableFactory.external(K.designSystemVariables.colorError,"Design system")},Il=Tl.css`
910
911
  *:focus {
911
912
  outline: none;
912
913
  }
@@ -918,10 +919,10 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
918
919
  }
919
920
 
920
921
  ft-input-label {
921
- ${(0,j.setVariable)(P.fontSize,q.fontSize)};
922
- ${(0,j.setVariable)(P.raisedFontSize,q.labelSize)};
923
- ${(0,j.setVariable)(P.verticalSpacing,q.verticalSpacing)};
924
- ${(0,j.setVariable)(P.horizontalSpacing,q.horizontalSpacing)};
922
+ ${(0,K.setVariable)(k.fontSize,Y.fontSize)};
923
+ ${(0,K.setVariable)(k.raisedFontSize,Y.labelSize)};
924
+ ${(0,K.setVariable)(k.verticalSpacing,Y.verticalSpacing)};
925
+ ${(0,K.setVariable)(k.horizontalSpacing,Y.horizontalSpacing)};
925
926
  }
926
927
 
927
928
  .ft-text-area--main-panel {
@@ -939,8 +940,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
939
940
  }
940
941
 
941
942
  .ft-text-area--input-panel ft-ripple {
942
- ${(0,j.setVariable)(M.opacityContentOnSurfaceHover,"0.08")};
943
- ${(0,j.setVariable)(M.opacityContentOnSurfacePressed,"0.04")};
943
+ ${(0,K.setVariable)($.opacityContentOnSurfaceHover,"0.08")};
944
+ ${(0,K.setVariable)($.opacityContentOnSurfacePressed,"0.04")};
944
945
  }
945
946
 
946
947
  .ft-text-area--input {
@@ -952,12 +953,12 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
952
953
  align-self: stretch;
953
954
  resize: none;
954
955
 
955
- ${(0,j.setVariable)(et.fontSize,q.fontSize)};
956
- ${(0,j.setVariable)(et.lineHeight,q.fontSize)};
957
- color: ${q.colorOnSurface};
956
+ ${(0,K.setVariable)(tt.fontSize,Y.fontSize)};
957
+ ${(0,K.setVariable)(tt.lineHeight,Y.fontSize)};
958
+ color: ${Y.colorOnSurface};
958
959
 
959
- padding: 0 ${q.horizontalSpacing};
960
- margin: calc(${q.verticalSpacing} + ${q.labelSize} / 2) 0 ${q.verticalSpacing} 0;
960
+ padding: 0 ${Y.horizontalSpacing};
961
+ margin: calc(${Y.verticalSpacing} + ${Y.labelSize} / 2) 0 ${Y.verticalSpacing} 0;
961
962
 
962
963
  border: none;
963
964
  background: none;
@@ -966,7 +967,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
966
967
  }
967
968
 
968
969
  .ft-text-area--disabled .ft-text-area--input {
969
- color: ${q.colorOnSurfaceDisabled};
970
+ color: ${Y.colorOnSurfaceDisabled};
970
971
  }
971
972
 
972
973
  .ft-text-area:not(.ft-text-area--disabled) .ft-text-area--input-panel {
@@ -974,49 +975,49 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
974
975
  }
975
976
 
976
977
  .ft-text-area:not(.ft-text-area--disabled):focus-within ft-input-label {
977
- ${(0,j.setVariable)(P.borderColor,q.colorPrimary)};
978
- ${(0,j.setVariable)(P.textColor,q.colorPrimary)};
978
+ ${(0,K.setVariable)(k.borderColor,Y.colorPrimary)};
979
+ ${(0,K.setVariable)(k.textColor,Y.colorPrimary)};
979
980
  }
980
981
 
981
982
  .ft-text-area--filled .ft-text-area--input-panel {
982
- border-radius: ${q.borderRadiusS} ${q.borderRadiusS} 0 0;
983
+ border-radius: ${Y.borderRadiusS} ${Y.borderRadiusS} 0 0;
983
984
  }
984
985
 
985
986
  .ft-text-area--filled:not(.ft-text-area--no-label) .ft-text-area--input {
986
987
  align-self: stretch;
987
- margin-bottom: ${q.verticalSpacing};
988
- margin-top: calc(${q.labelSize} + 2 * ${q.verticalSpacing});
988
+ margin-bottom: ${Y.verticalSpacing};
989
+ margin-top: calc(${Y.labelSize} + 2 * ${Y.verticalSpacing});
989
990
  }
990
991
 
991
992
  .ft-text-area--outlined .ft-text-area--input-panel {
992
- border-radius: ${q.borderRadiusS};
993
+ border-radius: ${Y.borderRadiusS};
993
994
  }
994
995
 
995
996
  .ft-text-area--helper-text {
996
- padding: 0 12px 0 ${q.horizontalSpacing};
997
- color: ${q.helperColor};
997
+ padding: 0 12px 0 ${Y.horizontalSpacing};
998
+ color: ${Y.helperColor};
998
999
  }
999
1000
 
1000
1001
  .ft-text-area--in-error .ft-text-area--input,
1001
1002
  .ft-text-area--in-error .ft-text-area--helper-text {
1002
- color: ${q.colorError};
1003
+ color: ${Y.colorError};
1003
1004
  }
1004
1005
 
1005
1006
  ft-resizer {
1006
1007
  position: absolute;
1007
1008
  bottom: 0;
1008
1009
  }
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,zo.toFtFormComponent)(zo.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 Fo.html`
1010
+ `;var kt=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},Re=class extends(0,jo.toFtFormComponent)(jo.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 Vo.html`
1010
1011
  <style>
1011
1012
  .ft-text-area--main-panel {
1012
- height: calc(4 * ${q.verticalSpacing} + ${q.labelSize} + ${q.fontSize} + ${this.height}px);
1013
+ height: calc(4 * ${Y.verticalSpacing} + ${Y.labelSize} + ${Y.fontSize} + ${this.height}px);
1013
1014
  }
1014
1015
 
1015
1016
  ft-resizer {
1016
1017
  right: ${this.textarea!=null?this.textarea.offsetWidth-this.textarea.clientWidth:0}px;
1017
1018
  }
1018
1019
  </style>
1019
- <div class="${(0,Cl.classMap)(e)}">
1020
+ <div class="${(0,_l.classMap)(e)}">
1020
1021
  <div class="ft-text-area--main-panel">
1021
1022
  <ft-input-label text="${this.label}"
1022
1023
  ?disabled=${this.disabled}
@@ -1026,7 +1027,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1026
1027
  ></ft-input-label>
1027
1028
  <div class="ft-text-area--input-panel"
1028
1029
  aria-label="${this.label}">
1029
- ${this.outlined?null:Fo.html`
1030
+ ${this.outlined?null:Vo.html`
1030
1031
  <ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
1031
1032
  `}
1032
1033
  <textarea class="ft-typography--body1 ft-text-area--input"
@@ -1043,45 +1044,45 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1043
1044
  initialHeight="${this.height}"
1044
1045
  cursor="ns-resize"></ft-resizer>
1045
1046
  </div>
1046
- ${this.helper?Fo.html`
1047
+ ${this.helper?Vo.html`
1047
1048
  <ft-typography class="ft-text-area--helper-text" variant="caption">
1048
1049
  ${this.helper}
1049
1050
  </ft-typography>`:void 0}
1050
1051
  </div>
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":Be,"ft-resizer":Te,"ft-ripple":H,"ft-typography":ce};Ae.styles=[Cr,wl];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,El.customElement)("ft-text-area")(Ae);var gd=m(Rl());var un=m(E());var co=m(G()),kl=m(E());var $r=m(E());var Tl=m(E());var Nl=m($()),Il=m(E());var pr=class extends Il.FtLitElement{render(){return Nl.html`
1052
+ `}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)}};Re.elementDefinitions={"ft-input-label":Fe,"ft-resizer":_e,"ft-ripple":j,"ft-typography":de};Re.styles=[Tr,Il];kt([(0,it.property)({type:String})],Re.prototype,"label",void 0);kt([(0,it.property)({reflect:!0})],Re.prototype,"value",void 0);kt([(0,it.property)({type:String})],Re.prototype,"helper",void 0);kt([(0,it.property)({type:Boolean})],Re.prototype,"outlined",void 0);kt([(0,it.property)({type:Boolean})],Re.prototype,"disabled",void 0);kt([(0,it.property)({type:Boolean})],Re.prototype,"error",void 0);kt([(0,it.property)({type:Number,reflect:!0})],Re.prototype,"height",void 0);kt([(0,it.query)("textarea")],Re.prototype,"textarea",void 0);kt([(0,it.state)()],Re.prototype,"focused",void 0);(0,kl.customElement)("ft-text-area")(Re);var wd=g(Ll());var vn=g(E());var ho=g(Z()),Ul=g(E());var zr=g(E());var Ml=g(E());var Dl=g(D()),$l=g(E());var gr=class extends $l.FtLitElement{render(){return Dl.html`
1052
1053
  <div class="ft-loader">
1053
1054
  <div></div>
1054
1055
  <div></div>
1055
1056
  <div></div>
1056
1057
  <div></div>
1057
1058
  </div>
1058
- `}};pr.styles=Qa;(0,Tl.customElement)("ft-loader")(pr);var Dr=m($()),_l=m(Ft()),_e=m(G()),Ve=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(0,$r.toFtFormComponent)($r.FtLitElement,"button"){get buttonClasses(){return{}}get typographyVariant(){return""}constructor(){super(),this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.ariaLabel=null,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(){var e;return this.addTooltipIfNeeded(Dr.html`
1059
+ `}};gr.styles=as;(0,Ml.customElement)("ft-loader")(gr);var Fr=g(D()),Bl=g(Ht()),ke=g(Z()),Ge=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},pe=class extends(0,zr.toFtFormComponent)(zr.FtLitElement,"button"){get buttonClasses(){return{}}get typographyVariant(){return""}constructor(){super(),this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.ariaLabel=null,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(){var e;return this.addTooltipIfNeeded(Fr.html`
1059
1060
  <button part="button"
1060
- class="${(0,_l.classMap)(this.buttonClasses)}"
1061
+ class="${(0,Bl.classMap)(this.buttonClasses)}"
1061
1062
  aria-label="${(e=this.ariaLabel)!==null&&e!==void 0?e:this.getLabel()}"
1062
1063
  ?disabled=${this.isDisabled()}>
1063
1064
  <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
1064
1065
  <ft-typography part="label"
1065
1066
  variant=${this.typographyVariant}
1066
1067
  element="span"
1067
- class="ft-button--label ${$r.isSafari?"ft-safari-ellipsis-fix":""}"
1068
+ class="ft-button--label ${zr.isSafari?"ft-safari-ellipsis-fix":""}"
1068
1069
  ?hidden=${!this.hasTextContent()}>
1069
1070
  <slot @slotchange=${this.onSlotchange}></slot>
1070
1071
  </ft-typography>
1071
1072
  ${this.resolveIcon()}
1072
1073
  </button>
1073
- `)}addTooltipIfNeeded(e){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?Dr.html`
1074
+ `)}addTooltipIfNeeded(e){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?Fr.html`
1074
1075
  <ft-tooltip part="tooltip"
1075
1076
  text="${this.getLabel()}"
1076
1077
  position="${this.tooltipPosition}">
1077
1078
  ${e}
1078
1079
  </ft-tooltip>
1079
- `:e}resolveIcon(){return this.loading?Dr.html`
1080
- <ft-loader part="loader icon"></ft-loader> `:this.icon?Dr.html`
1080
+ `:e}resolveIcon(){return this.loading?Fr.html`
1081
+ <ft-loader part="loader icon"></ft-loader> `:this.icon?Fr.html`
1081
1082
  <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
1082
- `:Dr.html`
1083
+ `:Fr.html`
1083
1084
  <slot part="icon" name="icon"></slot>
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}};de.elementDefinitions={"ft-ripple":H,"ft-tooltip":re,"ft-typography":ce,"ft-icon":ge,"ft-loader":pr};Ve([(0,_e.property)({type:String,reflect:!0})],de.prototype,"role",void 0);Ve([(0,_e.property)()],de.prototype,"type",void 0);Ve([(0,_e.property)({type:Boolean})],de.prototype,"disabled",void 0);Ve([(0,_e.property)()],de.prototype,"label",void 0);Ve([(0,_e.property)()],de.prototype,"icon",void 0);Ve([(0,_e.property)()],de.prototype,"iconVariant",void 0);Ve([(0,_e.property)({type:Boolean})],de.prototype,"trailingIcon",void 0);Ve([(0,_e.property)({type:Boolean})],de.prototype,"loading",void 0);Ve([(0,_e.property)({attribute:"aria-label"})],de.prototype,"ariaLabel",void 0);Ve([(0,_e.property)()],de.prototype,"tooltipPosition",void 0);Ve([(0,_e.property)({type:Boolean})],de.prototype,"hideTooltip",void 0);Ve([(0,_e.property)({type:Boolean})],de.prototype,"forceTooltip",void 0);Ve([(0,_e.query)(".ft-button")],de.prototype,"button",void 0);Ve([(0,_e.query)(".ft-button--label slot")],de.prototype,"slottedContent",void 0);var Wo=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 de{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=[kl.safariEllipsisFix,ns];Wo([(0,co.property)({type:Boolean})],dt.prototype,"primary",void 0);Wo([(0,co.property)({type:Boolean})],dt.prototype,"outlined",void 0);Wo([(0,co.property)({type:Boolean})],dt.prototype,"dense",void 0);Wo([(0,co.property)({type:Boolean})],dt.prototype,"round",void 0);var po=m(G());var Vo=m(E());var Pl=m($()),z=m(E());var Ll=[Pl.css`
1085
+ `}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}};pe.elementDefinitions={"ft-ripple":j,"ft-tooltip":re,"ft-typography":de,"ft-icon":ye,"ft-loader":gr};Ge([(0,ke.property)({type:String,reflect:!0})],pe.prototype,"role",void 0);Ge([(0,ke.property)()],pe.prototype,"type",void 0);Ge([(0,ke.property)({type:Boolean})],pe.prototype,"disabled",void 0);Ge([(0,ke.property)()],pe.prototype,"label",void 0);Ge([(0,ke.property)()],pe.prototype,"icon",void 0);Ge([(0,ke.property)()],pe.prototype,"iconVariant",void 0);Ge([(0,ke.property)({type:Boolean})],pe.prototype,"trailingIcon",void 0);Ge([(0,ke.property)({type:Boolean})],pe.prototype,"loading",void 0);Ge([(0,ke.property)({attribute:"aria-label"})],pe.prototype,"ariaLabel",void 0);Ge([(0,ke.property)()],pe.prototype,"tooltipPosition",void 0);Ge([(0,ke.property)({type:Boolean})],pe.prototype,"hideTooltip",void 0);Ge([(0,ke.property)({type:Boolean})],pe.prototype,"forceTooltip",void 0);Ge([(0,ke.query)(".ft-button")],pe.prototype,"button",void 0);Ge([(0,ke.query)(".ft-button--label slot")],pe.prototype,"slottedContent",void 0);var Go=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},pt=class extends pe{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"}};pt.styles=[Ul.safariEllipsisFix,fs];Go([(0,ho.property)({type:Boolean})],pt.prototype,"primary",void 0);Go([(0,ho.property)({type:Boolean})],pt.prototype,"outlined",void 0);Go([(0,ho.property)({type:Boolean})],pt.prototype,"dense",void 0);Go([(0,ho.property)({type:Boolean})],pt.prototype,"round",void 0);var mo=g(Z());var Zo=g(E());var Fl=g(D()),H=g(E());var zl=[Fl.css`
1085
1086
  :host {
1086
1087
  display: inline-block;
1087
1088
  max-width: 100%;
@@ -1165,13 +1166,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1165
1166
  /** Primary styles **/
1166
1167
 
1167
1168
  .ft-button--primary {
1168
- ${(0,z.setVariable)($e.color,O.primaryIconColor)};
1169
+ ${(0,H.setVariable)(Be.color,O.primaryIconColor)};
1169
1170
 
1170
- ${(0,z.setVariable)(M.color,O.primaryStateLayerColor)};
1171
- ${(0,z.setVariable)(M.opacityContentOnSurfaceHover,O.primaryHoverStateLayerOpacity)};
1172
- ${(0,z.setVariable)(M.opacityContentOnSurfaceFocused,O.primaryFocusStateLayerOpacity)};
1173
- ${(0,z.setVariable)(M.opacityContentOnSurfaceSelected,O.primaryActiveStateLayerOpacity)};
1174
- ${(0,z.setVariable)(M.opacityContentOnSurfacePressed,O.primaryActiveStateLayerOpacity)};
1171
+ ${(0,H.setVariable)($.color,O.primaryStateLayerColor)};
1172
+ ${(0,H.setVariable)($.opacityContentOnSurfaceHover,O.primaryHoverStateLayerOpacity)};
1173
+ ${(0,H.setVariable)($.opacityContentOnSurfaceFocused,O.primaryFocusStateLayerOpacity)};
1174
+ ${(0,H.setVariable)($.opacityContentOnSurfaceSelected,O.primaryActiveStateLayerOpacity)};
1175
+ ${(0,H.setVariable)($.opacityContentOnSurfacePressed,O.primaryActiveStateLayerOpacity)};
1175
1176
 
1176
1177
  background-color: ${O.primaryBackgroundColor};
1177
1178
  color: ${O.primaryColor};
@@ -1189,13 +1190,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1189
1190
  /** Secondary styles **/
1190
1191
 
1191
1192
  .ft-button--secondary {
1192
- ${(0,z.setVariable)($e.color,O.secondaryIconColor)};
1193
+ ${(0,H.setVariable)(Be.color,O.secondaryIconColor)};
1193
1194
 
1194
- ${(0,z.setVariable)(M.color,O.secondaryStateLayerColor)};
1195
- ${(0,z.setVariable)(M.opacityContentOnSurfaceHover,O.secondaryHoverStateLayerOpacity)};
1196
- ${(0,z.setVariable)(M.opacityContentOnSurfaceFocused,O.secondaryFocusStateLayerOpacity)};
1197
- ${(0,z.setVariable)(M.opacityContentOnSurfaceSelected,O.secondaryActiveStateLayerOpacity)};
1198
- ${(0,z.setVariable)(M.opacityContentOnSurfacePressed,O.secondaryActiveStateLayerOpacity)};
1195
+ ${(0,H.setVariable)($.color,O.secondaryStateLayerColor)};
1196
+ ${(0,H.setVariable)($.opacityContentOnSurfaceHover,O.secondaryHoverStateLayerOpacity)};
1197
+ ${(0,H.setVariable)($.opacityContentOnSurfaceFocused,O.secondaryFocusStateLayerOpacity)};
1198
+ ${(0,H.setVariable)($.opacityContentOnSurfaceSelected,O.secondaryActiveStateLayerOpacity)};
1199
+ ${(0,H.setVariable)($.opacityContentOnSurfacePressed,O.secondaryActiveStateLayerOpacity)};
1199
1200
 
1200
1201
  background-color: ${O.secondaryBackgroundColor};
1201
1202
  color: ${O.secondaryColor};
@@ -1214,13 +1215,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1214
1215
  /** Tertiary styles **/
1215
1216
 
1216
1217
  .ft-button--tertiary {
1217
- ${(0,z.setVariable)($e.color,O.tertiaryIconColor)};
1218
+ ${(0,H.setVariable)(Be.color,O.tertiaryIconColor)};
1218
1219
 
1219
- ${(0,z.setVariable)(M.color,O.tertiaryStateLayerColor)};
1220
- ${(0,z.setVariable)(M.opacityContentOnSurfaceHover,O.tertiaryHoverStateLayerOpacity)};
1221
- ${(0,z.setVariable)(M.opacityContentOnSurfaceFocused,O.tertiaryFocusStateLayerOpacity)};
1222
- ${(0,z.setVariable)(M.opacityContentOnSurfaceSelected,O.tertiaryActiveStateLayerOpacity)};
1223
- ${(0,z.setVariable)(M.opacityContentOnSurfacePressed,O.tertiaryActiveStateLayerOpacity)};
1220
+ ${(0,H.setVariable)($.color,O.tertiaryStateLayerColor)};
1221
+ ${(0,H.setVariable)($.opacityContentOnSurfaceHover,O.tertiaryHoverStateLayerOpacity)};
1222
+ ${(0,H.setVariable)($.opacityContentOnSurfaceFocused,O.tertiaryFocusStateLayerOpacity)};
1223
+ ${(0,H.setVariable)($.opacityContentOnSurfaceSelected,O.tertiaryActiveStateLayerOpacity)};
1224
+ ${(0,H.setVariable)($.opacityContentOnSurfacePressed,O.tertiaryActiveStateLayerOpacity)};
1224
1225
 
1225
1226
  background-color: ${O.tertiaryBackgroundColor};
1226
1227
  color: ${O.tertiaryColor};
@@ -1238,13 +1239,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1238
1239
  /** Neutral styles **/
1239
1240
 
1240
1241
  .ftds--family-neutral {
1241
- ${(0,z.setVariable)($e.color,O.neutralIconColor)};
1242
+ ${(0,H.setVariable)(Be.color,O.neutralIconColor)};
1242
1243
 
1243
- ${(0,z.setVariable)(M.backgroundColor,O.neutralStateLayerColor)};
1244
- ${(0,z.setVariable)(M.opacityContentOnSurfaceHover,O.neutralHoverStateLayerOpacity)};
1245
- ${(0,z.setVariable)(M.opacityContentOnSurfaceFocused,O.neutralFocusStateLayerOpacity)};
1246
- ${(0,z.setVariable)(M.opacityContentOnSurfaceSelected,O.neutralActiveStateLayerOpacity)};
1247
- ${(0,z.setVariable)(M.opacityContentOnSurfacePressed,O.neutralActiveStateLayerOpacity)};
1244
+ ${(0,H.setVariable)($.backgroundColor,O.neutralStateLayerColor)};
1245
+ ${(0,H.setVariable)($.opacityContentOnSurfaceHover,O.neutralHoverStateLayerOpacity)};
1246
+ ${(0,H.setVariable)($.opacityContentOnSurfaceFocused,O.neutralFocusStateLayerOpacity)};
1247
+ ${(0,H.setVariable)($.opacityContentOnSurfaceSelected,O.neutralActiveStateLayerOpacity)};
1248
+ ${(0,H.setVariable)($.opacityContentOnSurfacePressed,O.neutralActiveStateLayerOpacity)};
1248
1249
 
1249
1250
  background-color: ${O.neutralBackgroundColor};
1250
1251
  color: ${O.neutralColor};
@@ -1262,8 +1263,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1262
1263
  /** Large styles **/
1263
1264
 
1264
1265
  .ftds--size-large {
1265
- ${(0,z.setVariable)(ve.size,O.largeIconSize)};
1266
- ${(0,z.setVariable)($e.size,O.largeIconSize)};
1266
+ ${(0,H.setVariable)(ve.size,O.largeIconSize)};
1267
+ ${(0,H.setVariable)(Be.size,O.largeIconSize)};
1267
1268
 
1268
1269
  height: ${O.largeHeight};
1269
1270
  padding: 0 ${O.largeHorizontalPadding};
@@ -1284,8 +1285,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1284
1285
  /** Small styles **/
1285
1286
 
1286
1287
  .ftds--size-medium {
1287
- ${(0,z.setVariable)(ve.size,O.mediumIconSize)};
1288
- ${(0,z.setVariable)($e.size,O.mediumIconSize)};
1288
+ ${(0,H.setVariable)(ve.size,O.mediumIconSize)};
1289
+ ${(0,H.setVariable)(Be.size,O.mediumIconSize)};
1289
1290
 
1290
1291
  height: ${O.mediumHeight};
1291
1292
  padding: 0 ${O.mediumHorizontalPadding};
@@ -1307,8 +1308,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1307
1308
  /** Small styles **/
1308
1309
 
1309
1310
  .ftds--size-small {
1310
- ${(0,z.setVariable)(ve.size,O.smallIconSize)};
1311
- ${(0,z.setVariable)($e.size,O.smallIconSize)};
1311
+ ${(0,H.setVariable)(ve.size,O.smallIconSize)};
1312
+ ${(0,H.setVariable)(Be.size,O.smallIconSize)};
1312
1313
 
1313
1314
  height: ${O.smallHeight};
1314
1315
  padding: 0 ${O.smallHorizontalPadding};
@@ -1325,15 +1326,15 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1325
1326
  .ftds--size-small.ft-button--icon-only {
1326
1327
  width: ${O.smallIconOnlyWidth};
1327
1328
  }
1328
- `,z.noTextSelect];var Ho=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},Tt=class extends(0,Vo.toFtdsBase)(de){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=wo.brand,this.iconVariant=Ie.fluid_topics}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,"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,"ft-button--round":this.round,...this.getDesignSystemBaseClasses()}}get typographyVariant(){switch(this.size){case br.large:return Ut.body2medium;case br.medium:return Ut.caption1medium;case br.small:return Ut.caption2medium}}};Tt.styles=[Vo.safariEllipsisFix,Ll];Ho([(0,po.property)({type:Boolean})],Tt.prototype,"primary",void 0);Ho([(0,po.property)({type:Boolean})],Tt.prototype,"secondary",void 0);Ho([(0,po.property)({type:Boolean})],Tt.prototype,"tertiary",void 0);Ho([(0,po.property)({type:Boolean})],Tt.prototype,"round",void 0);(0,un.customElement)("ft-button")(dt);(0,un.customElement)("ftds-button")(Tt);var $c=m(E());var fi=m($()),ui=m(G()),hi=m(E());var Dl=m($());var $l=Dl.css`
1329
- `;var pi=m(E());var Pc=m(E());var zl=m($()),it=m(G()),pt=m(E());var Ml=m($());var Bl=Ml.css`
1330
- `;var jo=m(E()),Jd="ft-app-info",hn=class extends CustomEvent{constructor(e){super("authentication-change",{detail:e})}},Qd={session:(t,e)=>{(0,jo.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>N.eventBus.dispatchEvent(new hn(e.payload)),0))}},N=jo.FtReduxStore.get({name:Jd,reducers:Qd,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 jt=m(E());var mn=m(E());var fr=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 mn.CacheRegistry,this.cache=e?n.commonCache:new mn.CacheRegistry}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:fr.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):fr.await()}clearCache(){this.cache.clearAll()}};var Ul,ep=Symbol("clearAfterUnitTest"),Go=class extends vt{constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Ul]=()=>{this.defaultMessages={},this.cache=new jt.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,jt.deepEqual)(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,await this.notify(e))}await this.fetchContext(e)}resolveContext(e){var r,i;return this.fetchContext(e),(i=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(e,r){let i=e.toLowerCase();return this.resolveContext(i)[r]}resolveMessage(e,r,...i){var n;let a=e.toLowerCase(),s=this.resolveContext(a);return new jt.ParametrizedLabelResolver((n=this.defaultMessages[a])!==null&&n!==void 0?n:{},s).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,jt.delay)(0).then(()=>r()).catch(()=>null)))}};Ul=ep;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Go{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Go{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var ur=window.FluidTopicsI18nService,Fl=window.FluidTopicsCustomI18nService;var Ue=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},pe=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=()=>fr.get(),this.messageContexts=[],this.cache=new pt.CacheRegistry,this.cleanSessionDebouncer=new pt.Debouncer}render(){return zl.html`
1329
+ `,H.noTextSelect];var Ko=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},Pt=class extends(0,Zo.toFtdsBase)(pe){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=Ro.brand,this.iconVariant=Ie.fluid_topics}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,"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,"ft-button--round":this.round,...this.getDesignSystemBaseClasses()}}get typographyVariant(){switch(this.size){case wr.large:return Wt.body2medium;case wr.medium:return Wt.caption1medium;case wr.small:return Wt.caption2medium}}};Pt.styles=[Zo.safariEllipsisFix,zl];Ko([(0,mo.property)({type:Boolean})],Pt.prototype,"primary",void 0);Ko([(0,mo.property)({type:Boolean})],Pt.prototype,"secondary",void 0);Ko([(0,mo.property)({type:Boolean})],Pt.prototype,"tertiary",void 0);Ko([(0,mo.property)({type:Boolean})],Pt.prototype,"round",void 0);(0,vn.customElement)("ft-button")(pt);(0,vn.customElement)("ftds-button")(Pt);var Hc=g(E());var gi=g(D()),yi=g(Z()),bi=g(E());var Wl=g(D());var Hl=Wl.css`
1330
+ `;var mi=g(E());var Fc=g(E());var Zl=g(D()),nt=g(Z()),ft=g(E());var Vl=g(D());var jl=Vl.css`
1331
+ `;var qo=g(E()),np="ft-app-info",xn=class extends CustomEvent{constructor(e){super("authentication-change",{detail:e})}},ap={session:(t,e)=>{(0,qo.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>N.eventBus.dispatchEvent(new xn(e.payload)),0))}},N=qo.FtReduxStore.get({name:np,reducers:ap,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 Zt=g(E());var Sn=g(E());var yr=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 Ot=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 Sn.CacheRegistry,this.cache=e?n.commonCache:new Sn.CacheRegistry}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:yr.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):yr.await()}clearCache(){this.cache.clearAll()}};var Gl,sp=Symbol("clearAfterUnitTest"),Yo=class extends Ot{constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Gl]=()=>{this.defaultMessages={},this.cache=new Zt.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,Zt.deepEqual)(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,await this.notify(e))}await this.fetchContext(e)}resolveContext(e){var r,i;return this.fetchContext(e),(i=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(e,r){let i=e.toLowerCase();return this.resolveContext(i)[r]}resolveMessage(e,r,...i){var n;let a=e.toLowerCase(),s=this.resolveContext(a);return new Zt.ParametrizedLabelResolver((n=this.defaultMessages[a])!==null&&n!==void 0?n:{},s).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,Zt.delay)(0).then(()=>r()).catch(()=>null)))}};Gl=sp;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Yo{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Yo{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var br=window.FluidTopicsI18nService,Kl=window.FluidTopicsCustomI18nService;var 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},fe=class extends ft.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=()=>yr.get(),this.messageContexts=[],this.cache=new ft.CacheRegistry,this.cleanSessionDebouncer=new ft.Debouncer}render(){return Zl.html`
1331
1332
  <slot></slot>
1332
- `}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=>ur.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())}};pe.elementDefinitions={};pe.styles=Bl;Ue([(0,it.property)()],pe.prototype,"baseUrl",void 0);Ue([(0,it.property)()],pe.prototype,"apiIntegrationIdentifier",void 0);Ue([(0,it.property)()],pe.prototype,"uiLocale",void 0);Ue([(0,pt.jsonProperty)(null)],pe.prototype,"availableUiLocales",void 0);Ue([(0,pt.jsonProperty)(null)],pe.prototype,"metadataConfiguration",void 0);Ue([(0,it.property)({type:Boolean})],pe.prototype,"editorMode",void 0);Ue([(0,it.property)({type:Boolean})],pe.prototype,"noCustom",void 0);Ue([(0,it.property)({type:Boolean})],pe.prototype,"openExternalDocumentInNewTab",void 0);Ue([(0,it.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],pe.prototype,"noCustomComponent",void 0);Ue([(0,it.property)({type:Boolean})],pe.prototype,"withManualResources",void 0);Ue([(0,it.property)({type:Boolean})],pe.prototype,"navigatorOnline",void 0);Ue([(0,it.property)({type:Boolean})],pe.prototype,"forcedOffline",void 0);Ue([(0,it.property)({type:Object})],pe.prototype,"apiProvider",void 0);Ue([(0,pt.jsonProperty)([])],pe.prototype,"messageContexts",void 0);Ue([(0,pt.jsonProperty)(void 0)],pe.prototype,"session",void 0);var Fp=m(G());function tp(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(!Ko(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(!Ko(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(!Ko(t[a],e[a]))return!1}return!0}return t!==t&&e!==e}function Ko(t,e){try{return tp(t,e)}catch{return!1}}function gn(t,e){return!Ko(t,e)}var rp=m(G(),1);var Zo=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 fo=m(G(),1);var Wl=m(G(),1);function Hl(t,e){let r=()=>JSON.parse(JSON.stringify(t));return(0,Wl.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:gn,...e??{}})}var qo=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 jl=m($(),1);var Yo=window,op=Yo.ShadowRoot&&(Yo.ShadyCSS===void 0||Yo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Sv=Symbol();var Vl=(t,e)=>{op?t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):e.forEach(r=>{let i=document.createElement("style"),n=Yo.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=r.cssText,t.appendChild(i)})};var Xo=class extends jl.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 Vl(i,e.elementStyles),i}};var Jo=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},ql,Gl=Symbol("constructorPrototype"),Kl=Symbol("constructorName"),Yl=Symbol("exportpartsDebouncer"),Zl=Symbol("dynamicDependenciesLoaded"),Gt=class extends Xo{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[ql]=new qo(5),this[Kl]=this.constructor.name,this[Gl]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Kl]&&Object.setPrototypeOf(this,this[Gl])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(r){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",r)}let e=this.constructor;e[Zl]||(e[Zl]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}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(((i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(a){console.error(a,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(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[Yl].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(", "))}};ql=Yl;Jo([(0,fo.property)()],Gt.prototype,"exportpartsPrefix",void 0);Jo([Hl([])],Gt.prototype,"exportpartsPrefixes",void 0);Jo([(0,fo.property)()],Gt.prototype,"customStylesheet",void 0);Jo([(0,fo.state)()],Gt.prototype,"useAdoptedStyleSheets",void 0);function uo(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Xl,Jl,Ql,Qo=Symbol("internalReduxEventsUnsubscribers"),Kt=Symbol("internalStoresUnsubscribers"),hr=Symbol("internalStores"),ho=class extends Gt{constructor(){super(...arguments),this[Xl]=new Map,this[Jl]=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[hr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[hr].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[hr].get(e)}addStore(e,r){var i;r=(i=r??(uo(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[hr].delete(r)}setupStore(e,r){this[hr].set(e,r),this.subscribeToStore(e,r),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[hr].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[Kt].has(e.store):this[Kt].size>0)&&(this[r]=e.selector(n.getState(),this))}})}subscribeToStore(e,r){var i;this[Kt].set(e,r.subscribe(()=>this.updateFromStores())),uo(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[Qo].push(()=>r.eventBus.removeEventListener(n.eventName,s))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[Kt].forEach((e,r)=>this.unsubscribeFromStore(r)),this[Qo].forEach(e=>e()),this[Qo]=[]}unsubscribeFromStore(e){this[Kt].has(e)&&this[Kt].get(e)(),this[Kt].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Xl=Kt,Jl=hr,Ql=Qo;ho.reduxProperties=new Map;ho.reduxReactiveProperties=new Set;ho.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 _t(t){return!!t&&!!t[oe]}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)===pp}(t)||Array.isArray(t)||!!t[ac]||!!(!((e=t.constructor)===null||e===void 0)&&e[ac])||En(t)||An(t))}function mr(t,e,r){r===void 0&&(r=!1),Ur(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 Ur(t){var e=t[oe];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:En(t)?2:An(t)?3:0}function Mr(t,e){return Ur(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function ip(t,e){return Ur(t)===2?t.get(e):t[e]}function sc(t,e,r){var i=Ur(t);i===2?t.set(e,r):i===3?t.add(r):t[e]=r}function lc(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function En(t){return cp&&t instanceof Map}function An(t){return dp&&t instanceof Set}function Zt(t){return t.o||t.t}function Rn(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=pc(t);delete e[oe];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 Nn(t,e){return e===void 0&&(e=!1),In(t)||_t(t)||!ft(t)||(Ur(t)>1&&(t.set=t.add=t.clear=t.delete=np),Object.freeze(t),e&&mr(t,function(r,i){return Nn(i,!0)},!0)),t}function np(){nt(2)}function In(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function xt(t){var e=Cn[t];return e||nt(18,t),e}function ap(t,e){Cn[t]||(Cn[t]=e)}function Sn(){return go}function yn(t,e){e&&(xt("Patches"),t.u=[],t.s=[],t.v=e)}function ei(t){On(t),t.p.forEach(sp),t.p=null}function On(t){t===go&&(go=t.l)}function ec(t){return go={p:[],l:go,h:t,m:!0,_:0}}function sp(t){var e=t[oe];e.i===0||e.i===1?e.j():e.g=!0}function bn(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[oe].P&&(ei(e),nt(4)),ft(t)&&(t=ti(e,t),e.l||ri(e,t)),e.u&&xt("Patches").M(r[oe].t,t,e.u,e.s)):t=ti(e,r,[]),ei(e),e.u&&e.v(e.u,e.s),t!==dc?t:void 0}function ti(t,e,r){if(In(e))return e;var i=e[oe];if(!i)return mr(e,function(l,d){return tc(t,i,e,l,d,r)},!0),e;if(i.A!==t)return e;if(!i.P)return ri(t,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var n=i.i===4||i.i===5?i.o=Rn(i.k):i.o,a=n,s=!1;i.i===3&&(a=new Set(n),n.clear(),s=!0),mr(a,function(l,d){return tc(t,i,n,l,d,r,s)}),ri(t,n,!1),r&&t.u&&xt("Patches").N(i,r,t.u,t.s)}return i.o}function tc(t,e,r,i,n,a,s){if(_t(n)){var l=ti(t,n,a&&e&&e.i!==3&&!Mr(e.R,i)?a.concat(i):void 0);if(sc(r,i,l),!_t(l))return;t.m=!1}else s&&r.add(n);if(ft(n)&&!In(n)){if(!t.h.D&&t._<1)return;ti(t,n),e&&e.A.l||ri(t,n)}}function ri(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&Nn(e,r)}function vn(t,e){var r=t[oe];return(r?Zt(r):t)[e]}function rc(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 qt(t){t.P||(t.P=!0,t.l&&qt(t.l))}function xn(t){t.o||(t.o=Rn(t.t))}function wn(t,e,r){var i=En(e)?xt("MapSet").F(e,r):An(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:Sn(),P:!1,I:!1,R:{},l:a,t:n,k:null,o:null,j:null,C:!1},d=l,p=yo;s&&(d=[l],p=mo);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:Sn()).p.push(i),i}function lp(t){return _t(t)||nt(22,t),function e(r){if(!ft(r))return r;var i,n=r[oe],a=Ur(r);if(n){if(!n.P&&(n.i<4||!xt("ES5").K(n)))return n.t;n.I=!0,i=oc(r,a),n.I=!1}else i=oc(r,a);return mr(i,function(s,l){n&&ip(n.t,s)===l||sc(i,s,e(l))}),a===3?new Set(i):i}(t)}function oc(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Rn(t)}function cc(){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[oe];return yo.get(p,s)},set:function(p){var u=this[oe];yo.set(u,s,p)}},d}function e(s){for(var l=s.length-1;l>=0;l--){var d=s[l][oe];if(!d.P)switch(d.i){case 5:i(d)&&qt(d);break;case 4:r(d)&&qt(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!==oe){var y=l[g];if(y===void 0&&!Mr(l,g))return!0;var v=d[g],b=v&&v[oe];if(b?b.t!==y:!lc(v,y))return!0}}var S=!!l[oe];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(Zt(s)))}var a={};ap("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=pc(y);delete S[oe];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:Sn(),P:!1,I:!1,R:{},l,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,oe,{value:u,writable:!0}),p},S:function(s,l,d){d?_t(l)&&l[oe].A===s&&e(s.p):(s.u&&function p(u){if(u&&typeof u=="object"){var g=u[oe];if(g){var y=g.t,v=g.k,b=g.R,S=g.i;if(S===4)mr(v,function(k){k!==oe&&(y[k]!==void 0||Mr(y,k)?b[k]||p(v[k]):(b[k]=!0,qt(g)))}),mr(y,function(k){v[k]!==void 0||Mr(v,k)||(b[k]=!1,qt(g))});else if(S===5){if(i(g)&&(qt(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 ic,go,Tn=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",cp=typeof Map<"u",dp=typeof Set<"u",nc=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",dc=Tn?Symbol.for("immer-nothing"):((ic={})["immer-nothing"]=!0,ic),ac=Tn?Symbol.for("immer-draftable"):"__$immer_draftable",oe=Tn?Symbol.for("immer-state"):"__$immer_state";var pp=""+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,pc=Object.getOwnPropertyDescriptors||function(t){var e={};return Br(t).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)}),e},Cn={},yo={get:function(t,e){if(e===oe)return t;var r=Zt(t);if(!Mr(r,e))return function(n,a,s){var l,d=rc(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===vn(t.t,e)?(xn(t),t.o[e]=wn(t.A.h,i,t)):i},has:function(t,e){return e in Zt(t)},ownKeys:function(t){return Reflect.ownKeys(Zt(t))},set:function(t,e,r){var i=rc(Zt(t),e);if(i?.set)return i.set.call(t.k,r),!0;if(!t.P){var n=vn(Zt(t),e),a=n?.[oe];if(a&&a.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(lc(r,n)&&(r!==void 0||Mr(t.t,e)))return!0;xn(t),qt(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 vn(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,xn(t),qt(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=Zt(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)}},mo={};mr(yo,function(t,e){mo[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),mo.deleteProperty=function(t,e){return mo.set.call(this,t,e,void 0)},mo.set=function(t,e,r){return yo.set.call(this,t[0],e,r,t[0])};var fp=function(){function t(r){var i=this;this.O=nc,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=ec(i),g=wn(i,n,void 0),y=!0;try{p=a(g),y=!1}finally{y?ei(u):On(u)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(S){return yn(u,s),bn(S,u)},function(S){throw ei(u),S}):(yn(u,s),bn(p,u))}if(!n||typeof n!="object"){if((p=a(n))===void 0&&(p=n),p===dc&&(p=void 0),i.D&&Nn(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),_t(r)&&(r=lp(r));var i=ec(this),n=wn(this,r,void 0);return n[oe].C=!0,On(i),n},e.finishDraft=function(r,i){var n=r&&r[oe],a=n.A;return yn(a,i),bn(void 0,a)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!nc&&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 _t(r)?s(r,i):this.produce(r,function(l){return s(l,i)})},t}(),Xe=new fp,up=Xe.produce,Pv=Xe.produceWithPatches.bind(Xe),Lv=Xe.setAutoFreeze.bind(Xe),Dv=Xe.setUseProxies.bind(Xe),$v=Xe.applyPatches.bind(Xe),Mv=Xe.createDraft.bind(Xe),Bv=Xe.finishDraft.bind(Xe),oi=up;function Yt(t){"@babel/helpers - typeof";return Yt=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},Yt(t)}function _n(t,e){if(Yt(t)!=="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,e||"default");if(Yt(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function kn(t){var e=_n(t,"string");return Yt(e)==="symbol"?e:String(e)}function Pn(t,e,r){return e=kn(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function fc(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 ii(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?fc(Object(r),!0).forEach(function(i){Pn(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):fc(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function ke(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 uc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Ln=function(){return Math.random().toString(36).substring(7).split("").join(".")},ni={INIT:"@@redux/INIT"+Ln(),REPLACE:"@@redux/REPLACE"+Ln(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Ln()}};function hp(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 Dn(t,e,r){var i;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(ke(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(ke(1));return r(Dn)(t,e)}if(typeof t!="function")throw new Error(ke(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(ke(3));return a}function g(S){if(typeof S!="function")throw new Error(ke(4));if(d)throw new Error(ke(5));var I=!0;return p(),l.push(S),function(){if(I){if(d)throw new Error(ke(6));I=!1,p();var R=l.indexOf(S);l.splice(R,1),s=null}}}function y(S){if(!hp(S))throw new Error(ke(7));if(typeof S.type>"u")throw new Error(ke(8));if(d)throw new Error(ke(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(ke(10));n=S,y({type:ni.REPLACE})}function b(){var S,I=g;return S={subscribe:function(R){if(typeof R!="object"||R===null)throw new Error(ke(11));function D(){R.next&&R.next(u())}D();var k=I(D);return{unsubscribe:k}}},S[uc]=function(){return this},S}return y({type:ni.INIT}),i={dispatch:y,subscribe:g,getState:u,replaceReducer:v},i[uc]=b,i}function mp(t){Object.keys(t).forEach(function(e){var r=t[e],i=r(void 0,{type:ni.INIT});if(typeof i>"u")throw new Error(ke(12));if(typeof r(void 0,{type:ni.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ke(13))})}function hc(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{mp(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(ke(14))}v[S]=R,y=y||R!==A}return y=y||a.length!==Object.keys(p).length,y?v:p}}function Fr(){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 mc(){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(ke(15))},s={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=e.map(function(d){return d(s)});return a=Fr.apply(void 0,l)(n.dispatch),ii(ii({},n),{},{dispatch:a})}}}function gc(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 yc=gc();yc.withExtraArgument=gc;var $n=yc;var Oc=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)}}(),gp=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}}},zr=function(t,e){for(var r=0,i=e.length,n=t.length;r<i;r++,n++)t[n]=e[r];return t},yp=Object.defineProperty,bp=Object.defineProperties,vp=Object.getOwnPropertyDescriptors,bc=Object.getOwnPropertySymbols,xp=Object.prototype.hasOwnProperty,Sp=Object.prototype.propertyIsEnumerable,vc=function(t,e,r){return e in t?yp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},Xt=function(t,e){for(var r in e||(e={}))xp.call(e,r)&&vc(t,r,e[r]);if(bc)for(var i=0,n=bc(e);i<n.length;i++){var r=n[i];Sp.call(e,r)&&vc(t,r,e[r])}return t},Mn=function(t,e){return bp(t,vp(e))},Op=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 wp=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Fr:Fr.apply(null,arguments)},rx=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Cp(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 Ep=function(t){Oc(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,zr([void 0],r[0].concat(this)))):new(e.bind.apply(e,zr([void 0],r.concat(this))))},e}(Array),Ap=function(t){Oc(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,zr([void 0],r[0].concat(this)))):new(e.bind.apply(e,zr([void 0],r.concat(this))))},e}(Array);function Fn(t){return ft(t)?oi(t,function(){}):t}function Rp(t){return typeof t=="boolean"}function Np(){return function(e){return Ip(e)}}function Ip(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 Ep;if(r&&(Rp(r)?l.push($n):l.push($n.withExtraArgument(r.extraArgument))),0){if(n)var d;if(s)var p}return l}var Bn=!0;function wc(t){var e=Np(),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(Cp(n))v=hc(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),!Bn&&!Array.isArray(b)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Bn&&b.some(function(k){return typeof k!="function"}))throw new Error("each middleware provided to configureStore must be a function");var S=mc.apply(void 0,b),I=Fr;d&&(I=wp(Xt({trace:!Bn},typeof d=="object"&&d)));var A=new Ap(S),R=A;Array.isArray(y)?R=zr([S],y):typeof y=="function"&&(R=y(A));var D=I.apply(void 0,R);return Dn(v,u,D)}function Jt(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 Xt(Xt({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 Cc(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 Tp(t){return typeof t=="function"}function _p(t,e,r,i){r===void 0&&(r=[]);var n=typeof e=="function"?Cc(e):[e,r,i],a=n[0],s=n[1],l=n[2],d;if(Tp(t))d=function(){return Fn(t())};else{var p=Fn(t);d=function(){return p}}function u(g,y){g===void 0&&(g=d());var v=zr([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(_t(b)){var I=b,A=S(I,y);return A===void 0?b:A}else{if(ft(b))return oi(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 kp(t,e){return t+"/"+e}function Ec(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:Fn(t.initialState),i=t.reducers||{},n=Object.keys(i),a={},s={},l={};n.forEach(function(u){var g=i[u],y=kp(e,u),v,b;"reducer"in g?(v=g.reducer,b=g.prepare):v=g,a[u]=v,s[y]=v,l[u]=b?Jt(y,b):Jt(y)});function d(){var u=typeof t.extraReducers=="function"?Cc(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=Xt(Xt({},y),s);return _p(r,function(R){for(var D in A)R.addCase(D,A[D]);for(var k=0,K=b;k<K.length;k++){var Fe=K[k];R.addMatcher(Fe.matcher,Fe.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 Pp="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Lp=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=Pp[Math.random()*64|0];return e},Dp=["name","message","stack","code"],Un=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),xc=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),$p=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,i=Dp;r<i.length;r++){var n=i[r];typeof t[n]=="string"&&(e[n]=t[n])}return e}return{message:String(t)}},ax=function(){function t(e,r,i){var n=Jt(e+"/fulfilled",function(u,g,y,v){return{payload:u,meta:Mn(Xt({},v||{}),{arg:y,requestId:g,requestStatus:"fulfilled"})}}),a=Jt(e+"/pending",function(u,g,y){return{payload:void 0,meta:Mn(Xt({},y||{}),{arg:g,requestId:u,requestStatus:"pending"})}}),s=Jt(e+"/rejected",function(u,g,y,v,b){return{payload:v,error:(i&&i.serializeError||$p)(u||"Rejected"),meta:Mn(Xt({},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):Lp(),S=new d,I,A=!1;function R(k){I=k,S.abort()}var D=function(){return Op(this,null,function(){var k,K,Fe,be,Gr,Je,h;return gp(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}),Bp(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,te){return S.signal.addEventListener("abort",function(){return te({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,te){return new Un(T,te)},fulfillWithValue:function(T,te){return new xc(T,te)}})).then(function(T){if(T instanceof Un)throw T;return T instanceof xc?n(T.payload,b,u,T.meta):n(T,b,u)})])];case 3:return Fe=x.sent(),[3,5];case 4:return Je=x.sent(),Fe=Je instanceof Un?s(null,b,u,Je.payload,Je.meta):s(Je,b,u),[3,5];case 5:return h=i&&!i.dispatchConditionRejection&&s.match(Fe)&&Fe.meta.condition,h||g(Fe),[2,Fe]}})})}();return Object.assign(D,{abort:R,requestId:b,arg:u,unwrap:function(){return D.then(Mp)}})}}return Object.assign(p,{pending:a,rejected:s,fulfilled:n,typePrefix:e})}return t.withTypes=function(){return t},t}();function Mp(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Bp(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Ac="listener",Rc="completed",Nc="cancelled",sx="task-"+Nc,lx="task-"+Rc,cx=Ac+"-"+Nc,dx=Ac+"-"+Rc;var zn="listenerMiddleware";var px=Jt(zn+"/add"),fx=Jt(zn+"/removeAll"),ux=Jt(zn+"/remove");var Sc,hx=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Sc||(Sc=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Up=function(t){return function(e){setTimeout(e,t)}},mx=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Up(10);cc();window.ftReduxStores||(window.ftReduxStores={});var Ic=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(uo(a))return a;if(n==null)return;let s=Ec({...n,reducers:(r=n.reducers)!==null&&r!==void 0?r:{}}),l=wc({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 Zo,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 ci=m(E());var ai=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 si=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 zp="ft-user-assets",li=ci.FtReduxStore.get({name:zp,initialState:{savedSearches:void 0,bookmarks:void 0}}),Wn=class{constructor(){this.currentSession=N.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new si,this.savedSearchesService=new ai,N.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=N.getState();(0,ci.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(),li.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),li.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();li.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;li.actions.bookmarks(r)}}},Tc=new Wn;var Hn=class{addCommand(e,r=!1){N.commands.add(e,r)}consumeCommand(e){return N.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Hn;var _c=m(E()),Vn=class{highlightHtml(e,r,i){(0,_c.highlightHtml)(e,r,i)}};window.FluidTopicsHighlightHtmlService=new Vn;var kc=m(E());var jn=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 kc.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 jn;(0,Pc.customElement)("ft-app-context")(pe);var Dc=m(G()),Wp=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},Gn=Symbol("i18nAttributes"),gr=Symbol("i18nProperties"),bo=Symbol("i18nUnsubs");function Qt(t){var e;class r extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?Fl:ur}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[Gn])===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[gr])===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[Gn])===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[gr])===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[gr])===null||n===void 0?void 0:n.values())!==null&&a!==void 0?a:[],...[...(l=(s=this[Gn])===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[bo].has(n)||this[bo].set(n,this.i18nService.subscribe(n,()=>this.onI18nUpdate(n))),this.i18nService.prepareContext(n,a??{}),this.onI18nUpdate(n)}addI18nContext(n,a){this.addI18nMessages(typeof n=="string"?n:n.name,a)}disconnectedCallback(){super.disconnectedCallback(),this[bo].forEach(n=>n()),this[bo].clear()}}return e=bo,Wp([(0,Dc.property)({type:Boolean})],r.prototype,"useCustomMessageContexts",void 0),r}var Lc=class extends Qt(pi.FtLitElement){},di=class extends Qt(pi.FtLitElementRedux){};var vo=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 di{constructor(){super(),this.editorMode=!1,this.addStore(N)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":fi.nothing:fi.html`
1333
+ `}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=>br.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())}};fe.elementDefinitions={};fe.styles=jl;ze([(0,nt.property)()],fe.prototype,"baseUrl",void 0);ze([(0,nt.property)()],fe.prototype,"apiIntegrationIdentifier",void 0);ze([(0,nt.property)()],fe.prototype,"uiLocale",void 0);ze([(0,ft.jsonProperty)(null)],fe.prototype,"availableUiLocales",void 0);ze([(0,ft.jsonProperty)(null)],fe.prototype,"metadataConfiguration",void 0);ze([(0,nt.property)({type:Boolean})],fe.prototype,"editorMode",void 0);ze([(0,nt.property)({type:Boolean})],fe.prototype,"noCustom",void 0);ze([(0,nt.property)({type:Boolean})],fe.prototype,"openExternalDocumentInNewTab",void 0);ze([(0,nt.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],fe.prototype,"noCustomComponent",void 0);ze([(0,nt.property)({type:Boolean})],fe.prototype,"withManualResources",void 0);ze([(0,nt.property)({type:Boolean})],fe.prototype,"navigatorOnline",void 0);ze([(0,nt.property)({type:Boolean})],fe.prototype,"forcedOffline",void 0);ze([(0,nt.property)({type:Object})],fe.prototype,"apiProvider",void 0);ze([(0,ft.jsonProperty)([])],fe.prototype,"messageContexts",void 0);ze([(0,ft.jsonProperty)(void 0)],fe.prototype,"session",void 0);var Kp=g(Z());function lp(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(!Xo(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(!Xo(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(!Xo(t[a],e[a]))return!1}return!0}return t!==t&&e!==e}function Xo(t,e){try{return lp(t,e)}catch{return!1}}function On(t,e){return!Xo(t,e)}var cp=g(Z(),1);var Jo=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 go=g(Z(),1);var ql=g(Z(),1);function Yl(t,e){let r=()=>JSON.parse(JSON.stringify(t));return(0,ql.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:On,...e??{}})}var Qo=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 Jl=g(D(),1);var ei=window,dp=ei.ShadowRoot&&(ei.ShadyCSS===void 0||ei.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Tv=Symbol();var Xl=(t,e)=>{dp?t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):e.forEach(r=>{let i=document.createElement("style"),n=ei.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=r.cssText,t.appendChild(i)})};var ti=class extends Jl.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 Xl(i,e.elementStyles),i}};var ri=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},rc,Ql=Symbol("constructorPrototype"),ec=Symbol("constructorName"),oc=Symbol("exportpartsDebouncer"),tc=Symbol("dynamicDependenciesLoaded"),qt=class extends ti{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[rc]=new Qo(5),this[ec]=this.constructor.name,this[Ql]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[ec]&&Object.setPrototypeOf(this,this[Ql])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(r){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",r)}let e=this.constructor;e[tc]||(e[tc]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}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(((i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(a){console.error(a,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(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[oc].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 h=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:[],x=(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,...x).filter(d).map(S=>S.trim()).forEach(S=>h.add(S))}if(h.size===0){this.removeAttribute("exportparts");return}let m=[...h.values()].flatMap(y=>p.map(v=>`${y}:${v}--${y}`));this.setAttribute("exportparts",[...this.part,...m].join(", "))}};rc=oc;ri([(0,go.property)()],qt.prototype,"exportpartsPrefix",void 0);ri([Yl([])],qt.prototype,"exportpartsPrefixes",void 0);ri([(0,go.property)()],qt.prototype,"customStylesheet",void 0);ri([(0,go.state)()],qt.prototype,"useAdoptedStyleSheets",void 0);function yo(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var ic,nc,ac,oi=Symbol("internalReduxEventsUnsubscribers"),Yt=Symbol("internalStoresUnsubscribers"),vr=Symbol("internalStores"),bo=class extends qt{constructor(){super(...arguments),this[ic]=new Map,this[nc]=new Map,this[ac]=[]}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(r=>e.has(r))&&this.updateFromStores()}getUnnamedStore(){if(this[vr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[vr].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[vr].get(e)}addStore(e,r){var i;r=(i=r??(yo(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[vr].delete(r)}setupStore(e,r){this[vr].set(e,r),this.subscribeToStore(e,r),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[vr].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[Yt].has(e.store):this[Yt].size>0)&&(this[r]=e.selector(n.getState(),this))}})}subscribeToStore(e,r){var i;this[Yt].set(e,r.subscribe(()=>this.updateFromStores())),yo(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[oi].push(()=>r.eventBus.removeEventListener(n.eventName,s))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[Yt].forEach((e,r)=>this.unsubscribeFromStore(r)),this[oi].forEach(e=>e()),this[oi]=[]}unsubscribeFromStore(e){this[Yt].has(e)&&this[Yt].get(e)(),this[Yt].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};ic=Yt,nc=vr,ac=oi;bo.reduxProperties=new Map;bo.reduxReactiveProperties=new Set;bo.reduxEventListeners=new Map;function at(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 Lt(t){return!!t&&!!t[oe]}function ut(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)===bp}(t)||Array.isArray(t)||!!t[uc]||!!(!((e=t.constructor)===null||e===void 0)&&e[uc])||_n(t)||kn(t))}function xr(t,e,r){r===void 0&&(r=!1),Vr(t)===0?(r?Object.keys:Hr)(t).forEach(function(i){r&&typeof i=="symbol"||e(i,t[i],t)}):t.forEach(function(i,n){return e(n,i,t)})}function Vr(t){var e=t[oe];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:_n(t)?2:kn(t)?3:0}function Wr(t,e){return Vr(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function pp(t,e){return Vr(t)===2?t.get(e):t[e]}function hc(t,e,r){var i=Vr(t);i===2?t.set(e,r):i===3?t.add(r):t[e]=r}function mc(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function _n(t){return gp&&t instanceof Map}function kn(t){return yp&&t instanceof Set}function Xt(t){return t.o||t.t}function Pn(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=bc(t);delete e[oe];for(var r=Hr(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 Ln(t,e){return e===void 0&&(e=!1),Dn(t)||Lt(t)||!ut(t)||(Vr(t)>1&&(t.set=t.add=t.clear=t.delete=fp),Object.freeze(t),e&&xr(t,function(r,i){return Ln(i,!0)},!0)),t}function fp(){at(2)}function Dn(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function wt(t){var e=In[t];return e||at(18,t),e}function up(t,e){In[t]||(In[t]=e)}function Rn(){return xo}function wn(t,e){e&&(wt("Patches"),t.u=[],t.s=[],t.v=e)}function ii(t){Nn(t),t.p.forEach(hp),t.p=null}function Nn(t){t===xo&&(xo=t.l)}function sc(t){return xo={p:[],l:xo,h:t,m:!0,_:0}}function hp(t){var e=t[oe];e.i===0||e.i===1?e.j():e.g=!0}function Cn(t,e){e._=e.p.length;var r=e.p[0],i=t!==void 0&&t!==r;return e.h.O||wt("ES5").S(e,t,i),i?(r[oe].P&&(ii(e),at(4)),ut(t)&&(t=ni(e,t),e.l||ai(e,t)),e.u&&wt("Patches").M(r[oe].t,t,e.u,e.s)):t=ni(e,r,[]),ii(e),e.u&&e.v(e.u,e.s),t!==yc?t:void 0}function ni(t,e,r){if(Dn(e))return e;var i=e[oe];if(!i)return xr(e,function(l,d){return lc(t,i,e,l,d,r)},!0),e;if(i.A!==t)return e;if(!i.P)return ai(t,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var n=i.i===4||i.i===5?i.o=Pn(i.k):i.o,a=n,s=!1;i.i===3&&(a=new Set(n),n.clear(),s=!0),xr(a,function(l,d){return lc(t,i,n,l,d,r,s)}),ai(t,n,!1),r&&t.u&&wt("Patches").N(i,r,t.u,t.s)}return i.o}function lc(t,e,r,i,n,a,s){if(Lt(n)){var l=ni(t,n,a&&e&&e.i!==3&&!Wr(e.R,i)?a.concat(i):void 0);if(hc(r,i,l),!Lt(l))return;t.m=!1}else s&&r.add(n);if(ut(n)&&!Dn(n)){if(!t.h.D&&t._<1)return;ni(t,n),e&&e.A.l||ai(t,n)}}function ai(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&Ln(e,r)}function En(t,e){var r=t[oe];return(r?Xt(r):t)[e]}function cc(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 Jt(t){t.P||(t.P=!0,t.l&&Jt(t.l))}function An(t){t.o||(t.o=Pn(t.t))}function Tn(t,e,r){var i=_n(e)?wt("MapSet").F(e,r):kn(e)?wt("MapSet").T(e,r):t.O?function(n,a){var s=Array.isArray(n),l={i:s?1:0,A:a?a.A:Rn(),P:!1,I:!1,R:{},l:a,t:n,k:null,o:null,j:null,C:!1},d=l,p=So;s&&(d=[l],p=vo);var h=Proxy.revocable(d,p),m=h.revoke,y=h.proxy;return l.k=y,l.j=m,y}(e,r):wt("ES5").J(e,r);return(r?r.A:Rn()).p.push(i),i}function mp(t){return Lt(t)||at(22,t),function e(r){if(!ut(r))return r;var i,n=r[oe],a=Vr(r);if(n){if(!n.P&&(n.i<4||!wt("ES5").K(n)))return n.t;n.I=!0,i=dc(r,a),n.I=!1}else i=dc(r,a);return xr(i,function(s,l){n&&pp(n.t,s)===l||hc(i,s,e(l))}),a===3?new Set(i):i}(t)}function dc(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Pn(t)}function gc(){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[oe];return So.get(p,s)},set:function(p){var h=this[oe];So.set(h,s,p)}},d}function e(s){for(var l=s.length-1;l>=0;l--){var d=s[l][oe];if(!d.P)switch(d.i){case 5:i(d)&&Jt(d);break;case 4:r(d)&&Jt(d)}}}function r(s){for(var l=s.t,d=s.k,p=Hr(d),h=p.length-1;h>=0;h--){var m=p[h];if(m!==oe){var y=l[m];if(y===void 0&&!Wr(l,m))return!0;var v=d[m],x=v&&v[oe];if(x?x.t!==y:!mc(v,y))return!0}}var S=!!l[oe];return p.length!==Hr(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&&at(3,JSON.stringify(Xt(s)))}var a={};up("ES5",{J:function(s,l){var d=Array.isArray(s),p=function(m,y){if(m){for(var v=Array(y.length),x=0;x<y.length;x++)Object.defineProperty(v,""+x,t(x,!0));return v}var S=bc(y);delete S[oe];for(var T=Hr(S),A=0;A<T.length;A++){var R=T[A];S[R]=t(R,m||!!S[R].enumerable)}return Object.create(Object.getPrototypeOf(y),S)}(d,s),h={i:d?5:4,A:l?l.A:Rn(),P:!1,I:!1,R:{},l,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,oe,{value:h,writable:!0}),p},S:function(s,l,d){d?Lt(l)&&l[oe].A===s&&e(s.p):(s.u&&function p(h){if(h&&typeof h=="object"){var m=h[oe];if(m){var y=m.t,v=m.k,x=m.R,S=m.i;if(S===4)xr(v,function(B){B!==oe&&(y[B]!==void 0||Wr(y,B)?x[B]||p(v[B]):(x[B]=!0,Jt(m)))}),xr(y,function(B){v[B]!==void 0||Wr(v,B)||(x[B]=!1,Jt(m))});else if(S===5){if(i(m)&&(Jt(m),x.length=!0),v.length<y.length)for(var T=v.length;T<y.length;T++)x[T]=!1;else for(var A=y.length;A<v.length;A++)x[A]=!0;for(var R=Math.min(v.length,y.length),L=0;L<R;L++)v.hasOwnProperty(L)||(x[L]=!0),x[L]===void 0&&p(v[L])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?r(s):i(s)}})}var pc,xo,$n=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",gp=typeof Map<"u",yp=typeof Set<"u",fc=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",yc=$n?Symbol.for("immer-nothing"):((pc={})["immer-nothing"]=!0,pc),uc=$n?Symbol.for("immer-draftable"):"__$immer_draftable",oe=$n?Symbol.for("immer-state"):"__$immer_state";var bp=""+Object.prototype.constructor,Hr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,bc=Object.getOwnPropertyDescriptors||function(t){var e={};return Hr(t).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)}),e},In={},So={get:function(t,e){if(e===oe)return t;var r=Xt(t);if(!Wr(r,e))return function(n,a,s){var l,d=cc(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||!ut(i)?i:i===En(t.t,e)?(An(t),t.o[e]=Tn(t.A.h,i,t)):i},has:function(t,e){return e in Xt(t)},ownKeys:function(t){return Reflect.ownKeys(Xt(t))},set:function(t,e,r){var i=cc(Xt(t),e);if(i?.set)return i.set.call(t.k,r),!0;if(!t.P){var n=En(Xt(t),e),a=n?.[oe];if(a&&a.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(mc(r,n)&&(r!==void 0||Wr(t.t,e)))return!0;An(t),Jt(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 En(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,An(t),Jt(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=Xt(t),i=Reflect.getOwnPropertyDescriptor(r,e);return i&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:i.enumerable,value:r[e]}},defineProperty:function(){at(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){at(12)}},vo={};xr(So,function(t,e){vo[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),vo.deleteProperty=function(t,e){return vo.set.call(this,t,e,void 0)},vo.set=function(t,e,r){return So.set.call(this,t[0],e,r,t[0])};var vp=function(){function t(r){var i=this;this.O=fc,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 T=this;S===void 0&&(S=l);for(var A=arguments.length,R=Array(A>1?A-1:0),L=1;L<A;L++)R[L-1]=arguments[L];return d.produce(S,function(B){var F;return(F=a).call.apply(F,[T,B].concat(R))})}}var p;if(typeof a!="function"&&at(6),s!==void 0&&typeof s!="function"&&at(7),ut(n)){var h=sc(i),m=Tn(i,n,void 0),y=!0;try{p=a(m),y=!1}finally{y?ii(h):Nn(h)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(S){return wn(h,s),Cn(S,h)},function(S){throw ii(h),S}):(wn(h,s),Cn(p,h))}if(!n||typeof n!="object"){if((p=a(n))===void 0&&(p=n),p===yc&&(p=void 0),i.D&&Ln(p,!0),s){var v=[],x=[];wt("Patches").M(n,p,v,x),s(v,x)}return p}at(21,n)},this.produceWithPatches=function(n,a){if(typeof n=="function")return function(p){for(var h=arguments.length,m=Array(h>1?h-1:0),y=1;y<h;y++)m[y-1]=arguments[y];return i.produceWithPatches(p,function(v){return n.apply(void 0,[v].concat(m))})};var s,l,d=i.produce(n,a,function(p,h){s=p,l=h});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){ut(r)||at(8),Lt(r)&&(r=mp(r));var i=sc(this),n=Tn(this,r,void 0);return n[oe].C=!0,Nn(i),n},e.finishDraft=function(r,i){var n=r&&r[oe],a=n.A;return wn(a,i),Cn(void 0,a)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!fc&&at(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=wt("Patches").$;return Lt(r)?s(r,i):this.produce(r,function(l){return s(l,i)})},t}(),Qe=new vp,xp=Qe.produce,zv=Qe.produceWithPatches.bind(Qe),Wv=Qe.setAutoFreeze.bind(Qe),Hv=Qe.setUseProxies.bind(Qe),Vv=Qe.applyPatches.bind(Qe),jv=Qe.createDraft.bind(Qe),Gv=Qe.finishDraft.bind(Qe),si=xp;function Qt(t){"@babel/helpers - typeof";return Qt=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},Qt(t)}function Mn(t,e){if(Qt(t)!=="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,e||"default");if(Qt(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Bn(t){var e=Mn(t,"string");return Qt(e)==="symbol"?e:String(e)}function Un(t,e,r){return e=Bn(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function vc(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 li(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?vc(Object(r),!0).forEach(function(i){Un(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):vc(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function Pe(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 xc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Fn=function(){return Math.random().toString(36).substring(7).split("").join(".")},ci={INIT:"@@redux/INIT"+Fn(),REPLACE:"@@redux/REPLACE"+Fn(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Fn()}};function Sp(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 zn(t,e,r){var i;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Pe(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Pe(1));return r(zn)(t,e)}if(typeof t!="function")throw new Error(Pe(2));var n=t,a=e,s=[],l=s,d=!1;function p(){l===s&&(l=s.slice())}function h(){if(d)throw new Error(Pe(3));return a}function m(S){if(typeof S!="function")throw new Error(Pe(4));if(d)throw new Error(Pe(5));var T=!0;return p(),l.push(S),function(){if(T){if(d)throw new Error(Pe(6));T=!1,p();var R=l.indexOf(S);l.splice(R,1),s=null}}}function y(S){if(!Sp(S))throw new Error(Pe(7));if(typeof S.type>"u")throw new Error(Pe(8));if(d)throw new Error(Pe(9));try{d=!0,a=n(a,S)}finally{d=!1}for(var T=s=l,A=0;A<T.length;A++){var R=T[A];R()}return S}function v(S){if(typeof S!="function")throw new Error(Pe(10));n=S,y({type:ci.REPLACE})}function x(){var S,T=m;return S={subscribe:function(R){if(typeof R!="object"||R===null)throw new Error(Pe(11));function L(){R.next&&R.next(h())}L();var B=T(L);return{unsubscribe:B}}},S[xc]=function(){return this},S}return y({type:ci.INIT}),i={dispatch:y,subscribe:m,getState:h,replaceReducer:v},i[xc]=x,i}function Op(t){Object.keys(t).forEach(function(e){var r=t[e],i=r(void 0,{type:ci.INIT});if(typeof i>"u")throw new Error(Pe(12));if(typeof r(void 0,{type:ci.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Pe(13))})}function Sc(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{Op(r)}catch(d){l=d}return function(p,h){if(p===void 0&&(p={}),l)throw l;if(0)var m;for(var y=!1,v={},x=0;x<a.length;x++){var S=a[x],T=r[S],A=p[S],R=T(A,h);if(typeof R>"u"){var L=h&&h.type;throw new Error(Pe(14))}v[S]=R,y=y||R!==A}return y=y||a.length!==Object.keys(p).length,y?v:p}}function jr(){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 Oc(){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(Pe(15))},s={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=e.map(function(d){return d(s)});return a=jr.apply(void 0,l)(n.dispatch),li(li({},n),{},{dispatch:a})}}}function wc(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 Cc=wc();Cc.withExtraArgument=wc;var Wn=Cc;var Tc=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)}}(),wp=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(h){return d([p,h])}}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(h){p=[6,h],n=0}finally{i=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Gr=function(t,e){for(var r=0,i=e.length,n=t.length;r<i;r++,n++)t[n]=e[r];return t},Cp=Object.defineProperty,Ep=Object.defineProperties,Ap=Object.getOwnPropertyDescriptors,Ec=Object.getOwnPropertySymbols,Rp=Object.prototype.hasOwnProperty,Np=Object.prototype.propertyIsEnumerable,Ac=function(t,e,r){return e in t?Cp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},er=function(t,e){for(var r in e||(e={}))Rp.call(e,r)&&Ac(t,r,e[r]);if(Ec)for(var i=0,n=Ec(e);i<n.length;i++){var r=n[i];Np.call(e,r)&&Ac(t,r,e[r])}return t},Hn=function(t,e){return Ep(t,Ap(e))},Tp=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 Ip=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?jr:jr.apply(null,arguments)},dx=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function _p(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 kp=function(t){Tc(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,Gr([void 0],r[0].concat(this)))):new(e.bind.apply(e,Gr([void 0],r.concat(this))))},e}(Array),Pp=function(t){Tc(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,Gr([void 0],r[0].concat(this)))):new(e.bind.apply(e,Gr([void 0],r.concat(this))))},e}(Array);function Gn(t){return ut(t)?si(t,function(){}):t}function Lp(t){return typeof t=="boolean"}function Dp(){return function(e){return $p(e)}}function $p(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 kp;if(r&&(Lp(r)?l.push(Wn):l.push(Wn.withExtraArgument(r.extraArgument))),0){if(n)var d;if(s)var p}return l}var Vn=!0;function Ic(t){var e=Dp(),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,h=p===void 0?void 0:p,m=r.enhancers,y=m===void 0?void 0:m,v;if(typeof n=="function")v=n;else if(_p(n))v=Sc(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 x=s;if(typeof x=="function"&&(x=x(e),!Vn&&!Array.isArray(x)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Vn&&x.some(function(B){return typeof B!="function"}))throw new Error("each middleware provided to configureStore must be a function");var S=Oc.apply(void 0,x),T=jr;d&&(T=Ip(er({trace:!Vn},typeof d=="object"&&d)));var A=new Pp(S),R=A;Array.isArray(y)?R=Gr([S],y):typeof y=="function"&&(R=y(A));var L=T.apply(void 0,R);return zn(v,h,L)}function tr(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 er(er({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 _c(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 Mp(t){return typeof t=="function"}function Bp(t,e,r,i){r===void 0&&(r=[]);var n=typeof e=="function"?_c(e):[e,r,i],a=n[0],s=n[1],l=n[2],d;if(Mp(t))d=function(){return Gn(t())};else{var p=Gn(t);d=function(){return p}}function h(m,y){m===void 0&&(m=d());var v=Gr([a[y.type]],s.filter(function(x){var S=x.matcher;return S(y)}).map(function(x){var S=x.reducer;return S}));return v.filter(function(x){return!!x}).length===0&&(v=[l]),v.reduce(function(x,S){if(S)if(Lt(x)){var T=x,A=S(T,y);return A===void 0?x:A}else{if(ut(x))return si(x,function(R){return S(R,y)});var A=S(x,y);if(A===void 0){if(x===null)return x;throw Error("A case reducer on a non-draftable value must not return undefined")}return A}return x},m)}return h.getInitialState=d,h}function Up(t,e){return t+"/"+e}function kc(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:Gn(t.initialState),i=t.reducers||{},n=Object.keys(i),a={},s={},l={};n.forEach(function(h){var m=i[h],y=Up(e,h),v,x;"reducer"in m?(v=m.reducer,x=m.prepare):v=m,a[h]=v,s[y]=v,l[h]=x?tr(y,x):tr(y)});function d(){var h=typeof t.extraReducers=="function"?_c(t.extraReducers):[t.extraReducers],m=h[0],y=m===void 0?{}:m,v=h[1],x=v===void 0?[]:v,S=h[2],T=S===void 0?void 0:S,A=er(er({},y),s);return Bp(r,function(R){for(var L in A)R.addCase(L,A[L]);for(var B=0,F=x;B<F.length;B++){var We=F[B];R.addMatcher(We.matcher,We.reducer)}T&&R.addDefaultCase(T)})}var p;return{name:e,reducer:function(h,m){return p||(p=d()),p(h,m)},actions:l,caseReducers:a,getInitialState:function(){return p||(p=d()),p.getInitialState()}}}var Fp="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",zp=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=Fp[Math.random()*64|0];return e},Wp=["name","message","stack","code"],jn=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),Rc=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),Hp=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,i=Wp;r<i.length;r++){var n=i[r];typeof t[n]=="string"&&(e[n]=t[n])}return e}return{message:String(t)}},hx=function(){function t(e,r,i){var n=tr(e+"/fulfilled",function(h,m,y,v){return{payload:h,meta:Hn(er({},v||{}),{arg:y,requestId:m,requestStatus:"fulfilled"})}}),a=tr(e+"/pending",function(h,m,y){return{payload:void 0,meta:Hn(er({},y||{}),{arg:m,requestId:h,requestStatus:"pending"})}}),s=tr(e+"/rejected",function(h,m,y,v,x){return{payload:v,error:(i&&i.serializeError||Hp)(h||"Rejected"),meta:Hn(er({},x||{}),{arg:y,requestId:m,rejectedWithValue:!!v,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),l=!1,d=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function p(h){return function(m,y,v){var x=i?.idGenerator?i.idGenerator(h):zp(),S=new d,T,A=!1;function R(B){T=B,S.abort()}var L=function(){return Tp(this,null,function(){var B,F,We,gt,$e,yt,Ce;return wp(this,function(u){switch(u.label){case 0:return u.trys.push([0,4,,5]),gt=(B=i?.condition)==null?void 0:B.call(i,h,{getState:y,extra:v}),jp(gt)?[4,gt]:[3,2];case 1:gt=u.sent(),u.label=2;case 2:if(gt===!1||S.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return A=!0,$e=new Promise(function(b,_){return S.signal.addEventListener("abort",function(){return _({name:"AbortError",message:T||"Aborted"})})}),m(a(x,h,(F=i?.getPendingMeta)==null?void 0:F.call(i,{requestId:x,arg:h},{getState:y,extra:v}))),[4,Promise.race([$e,Promise.resolve(r(h,{dispatch:m,getState:y,extra:v,requestId:x,signal:S.signal,abort:R,rejectWithValue:function(b,_){return new jn(b,_)},fulfillWithValue:function(b,_){return new Rc(b,_)}})).then(function(b){if(b instanceof jn)throw b;return b instanceof Rc?n(b.payload,x,h,b.meta):n(b,x,h)})])];case 3:return We=u.sent(),[3,5];case 4:return yt=u.sent(),We=yt instanceof jn?s(null,x,h,yt.payload,yt.meta):s(yt,x,h),[3,5];case 5:return Ce=i&&!i.dispatchConditionRejection&&s.match(We)&&We.meta.condition,Ce||m(We),[2,We]}})})}();return Object.assign(L,{abort:R,requestId:x,arg:h,unwrap:function(){return L.then(Vp)}})}}return Object.assign(p,{pending:a,rejected:s,fulfilled:n,typePrefix:e})}return t.withTypes=function(){return t},t}();function Vp(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function jp(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Pc="listener",Lc="completed",Dc="cancelled",mx="task-"+Dc,gx="task-"+Lc,yx=Pc+"-"+Dc,bx=Pc+"-"+Lc;var Kn="listenerMiddleware";var vx=tr(Kn+"/add"),xx=tr(Kn+"/removeAll"),Sx=tr(Kn+"/remove");var Nc,Ox=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Nc||(Nc=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Gp=function(t){return function(e){setTimeout(e,t)}},wx=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Gp(10);gc();window.ftReduxStores||(window.ftReduxStores={});var $c=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(yo(a))return a;if(n==null)return;let s=kc({...n,reducers:(r=n.reducers)!==null&&r!==void 0?r:{}}),l=Ic({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 Jo,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 ui=g(E());var di=class extends Ot{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 pi=class extends Ot{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 Zp="ft-user-assets",fi=ui.FtReduxStore.get({name:Zp,initialState:{savedSearches:void 0,bookmarks:void 0}}),Zn=class{constructor(){this.currentSession=N.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new pi,this.savedSearchesService=new di,N.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=N.getState();(0,ui.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(),fi.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),fi.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();fi.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;fi.actions.bookmarks(r)}}},Mc=new Zn;var qn=class{addCommand(e,r=!1){N.commands.add(e,r)}consumeCommand(e){return N.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new qn;var Bc=g(E()),Yn=class{highlightHtml(e,r,i){(0,Bc.highlightHtml)(e,r,i)}};window.FluidTopicsHighlightHtmlService=new Yn;var Uc=g(E());var Xn=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 Uc.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 Xn;(0,Fc.customElement)("ft-app-context")(fe);var Wc=g(Z()),qp=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},Jn=Symbol("i18nAttributes"),Sr=Symbol("i18nProperties"),Oo=Symbol("i18nUnsubs");function rr(t){var e;class r extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?Kl:br}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[Jn])===null||a===void 0||a.forEach((l,d)=>{var p;let h=this.getI18nAttributeValue(d);((p=h?.context)===null||p===void 0?void 0:p.toLowerCase())===n.toLowerCase()&&this.updateI18nAttributeMessage(d,h,l)}),(s=this[Sr])===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[Jn])===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[Sr])===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[Sr])===null||n===void 0?void 0:n.values())!==null&&a!==void 0?a:[],...[...(l=(s=this[Jn])===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[Oo].has(n)||this[Oo].set(n,this.i18nService.subscribe(n,()=>this.onI18nUpdate(n))),this.i18nService.prepareContext(n,a??{}),this.onI18nUpdate(n)}addI18nContext(n,a){this.addI18nMessages(typeof n=="string"?n:n.name,a)}disconnectedCallback(){super.disconnectedCallback(),this[Oo].forEach(n=>n()),this[Oo].clear()}}return e=Oo,qp([(0,Wc.property)({type:Boolean})],r.prototype,"useCustomMessageContexts",void 0),r}var zc=class extends rr(mi.FtLitElement){},hi=class extends rr(mi.FtLitElementRedux){};var wo=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},ht=class extends hi{constructor(){super(),this.editorMode=!1,this.addStore(N)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":gi.nothing:gi.html`
1333
1334
  <span class="ft-i18n">
1334
1335
  ${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
1335
1336
  </span>
1336
- `}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=$l;vo([(0,hi.redux)()],ut.prototype,"editorMode",void 0);vo([(0,ui.property)()],ut.prototype,"context",void 0);vo([(0,ui.property)()],ut.prototype,"key",void 0);vo([(0,hi.jsonProperty)([])],ut.prototype,"args",void 0);vo([(0,ui.property)()],ut.prototype,"defaultMessage",void 0);var er=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)=>ur.resolveMessage(this.name,i,...n)}),this.rawMessages=new Proxy({},{get:(r,i)=>ur.resolveRawMessage(this.name,i)})}};var mi=(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[gr]=(a=r[gr])!==null&&a!==void 0?a:new Map,r[gr].set(i,s)};(0,$c.customElement)("ft-i18n")(ut);var W=er.build("integratedFeedbackComponent"),Mc={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 Yn=m(E());var at=m($()),V=m(G()),Fc=m(Ft());var Kn=t=>t??me;var Wr=m(E());var Bc=m($()),L=m(E());var U={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")},Uc=Bc.css`
1337
+ `}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:""})}};ht.elementDefinitions={};ht.styles=Hl;wo([(0,bi.redux)()],ht.prototype,"editorMode",void 0);wo([(0,yi.property)()],ht.prototype,"context",void 0);wo([(0,yi.property)()],ht.prototype,"key",void 0);wo([(0,bi.jsonProperty)([])],ht.prototype,"args",void 0);wo([(0,yi.property)()],ht.prototype,"defaultMessage",void 0);var or=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)=>br.resolveMessage(this.name,i,...n)}),this.rawMessages=new Proxy({},{get:(r,i)=>br.resolveRawMessage(this.name,i)})}};var vi=(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[Sr]=(a=r[Sr])!==null&&a!==void 0?a:new Map,r[Sr].set(i,s)};(0,Hc.customElement)("ft-i18n")(ht);var V=or.build("integratedFeedbackComponent"),Vc={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 ra=g(E());var st=g(D()),G=g(Z()),Kc=g(Ht());var Qn=t=>t??ge;var Kr=g(E());var jc=g(D()),P=g(E());var U={fontSize:P.FtCssVariableFactory.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:P.FtCssVariableFactory.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:P.FtCssVariableFactory.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:P.FtCssVariableFactory.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:P.FtCssVariableFactory.extend("--ft-text-field-helper-color","",P.designSystemVariables.colorOnSurfaceMedium),colorPrimary:P.FtCssVariableFactory.external(P.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:P.FtCssVariableFactory.external(P.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:P.FtCssVariableFactory.external(P.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:P.FtCssVariableFactory.external(P.designSystemVariables.borderRadiusS,"Design system"),colorError:P.FtCssVariableFactory.external(P.designSystemVariables.colorError,"Design system"),prefixColor:P.FtCssVariableFactory.extend("--ft-text-field-prefix-color","",P.designSystemVariables.colorOnSurfaceMedium),iconColor:P.FtCssVariableFactory.extend("--ft-text-field-icon-color","",P.designSystemVariables.colorOnSurfaceMedium),floatingZIndex:P.FtCssVariableFactory.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),colorSurface:P.FtCssVariableFactory.external(P.designSystemVariables.colorSurface,"Design system"),colorOutline:P.FtCssVariableFactory.external(P.designSystemVariables.colorOutline,"Design system"),elevation02:P.FtCssVariableFactory.external(P.designSystemVariables.elevation02,"Design system"),suggestSize:P.FtCssVariableFactory.create("--ft-text-field-suggest-size","","SIZE","300px")},Gc=jc.css`
1337
1338
  *:focus {
1338
1339
  outline: none;
1339
1340
  }
@@ -1346,10 +1347,10 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1346
1347
  }
1347
1348
 
1348
1349
  ft-input-label {
1349
- ${(0,L.setVariable)(P.fontSize,U.fontSize)};
1350
- ${(0,L.setVariable)(P.raisedFontSize,U.labelSize)};
1351
- ${(0,L.setVariable)(P.verticalSpacing,U.verticalSpacing)};
1352
- ${(0,L.setVariable)(P.horizontalSpacing,U.horizontalSpacing)};
1350
+ ${(0,P.setVariable)(k.fontSize,U.fontSize)};
1351
+ ${(0,P.setVariable)(k.raisedFontSize,U.labelSize)};
1352
+ ${(0,P.setVariable)(k.verticalSpacing,U.verticalSpacing)};
1353
+ ${(0,P.setVariable)(k.horizontalSpacing,U.horizontalSpacing)};
1353
1354
  }
1354
1355
 
1355
1356
  .ft-text-field--main-panel {
@@ -1366,13 +1367,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1366
1367
  overflow: hidden;
1367
1368
  padding: 0 ${U.horizontalSpacing};
1368
1369
 
1369
- ${(0,L.setVariable)(et.fontSize,U.fontSize)};
1370
- ${(0,L.setVariable)(et.lineHeight,U.fontSize)};
1370
+ ${(0,P.setVariable)(tt.fontSize,U.fontSize)};
1371
+ ${(0,P.setVariable)(tt.lineHeight,U.fontSize)};
1371
1372
  }
1372
1373
 
1373
1374
  .ft-text-field--input-panel ft-ripple {
1374
- ${(0,L.setVariable)(M.opacityContentOnSurfaceHover,"0.08")};
1375
- ${(0,L.setVariable)(M.opacityContentOnSurfacePressed,"0.04")};
1375
+ ${(0,P.setVariable)($.opacityContentOnSurfaceHover,"0.08")};
1376
+ ${(0,P.setVariable)($.opacityContentOnSurfacePressed,"0.04")};
1376
1377
  }
1377
1378
 
1378
1379
  .ft-text-field--filled.ft-text-field--with-label .ft-text-field--input-panel {
@@ -1421,8 +1422,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1421
1422
  }
1422
1423
 
1423
1424
  .ft-text-field:not(.ft-text-field--disabled):focus-within ft-input-label {
1424
- ${(0,L.setVariable)(P.borderColor,U.colorPrimary)};
1425
- ${(0,L.setVariable)(P.textColor,U.colorPrimary)};
1425
+ ${(0,P.setVariable)(k.borderColor,U.colorPrimary)};
1426
+ ${(0,P.setVariable)(k.textColor,U.colorPrimary)};
1426
1427
  }
1427
1428
 
1428
1429
  .ft-text-field--filled .ft-text-field--input-panel {
@@ -1477,14 +1478,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1477
1478
  }
1478
1479
 
1479
1480
  .ft-text-field--with-icon {
1480
- ${(0,L.setVariable)(P.labelMaxWidth,`calc(100% - ${ve.size} - ${P.horizontalSpacing})`)};
1481
+ ${(0,P.setVariable)(k.labelMaxWidth,`calc(100% - ${ve.size} - ${k.horizontalSpacing})`)};
1481
1482
  }
1482
1483
 
1483
1484
  .ft-text-field--with-password ft-icon:hover {
1484
1485
  cursor: pointer;
1485
1486
  }
1486
- `;var J=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},F=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=cr.EYE_SLASH,this.passwordRevealedIcon=cr.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(){var e;let r={"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`
1487
- <div class="${(0,Fc.classMap)(r)}">
1487
+ `;var Q=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},W=class extends(0,Kr.toFtFormComponent)(Kr.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=hr.EYE_SLASH,this.passwordRevealedIcon=hr.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(){var e;let r={"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 st.html`
1488
+ <div class="${(0,Kc.classMap)(r)}">
1488
1489
  <div class="ft-text-field--main-panel"
1489
1490
  @keydown=${this.handleKeyboardNavigation}
1490
1491
  @focusout=${this.onMainPanelBlur}>
@@ -1494,17 +1495,17 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1494
1495
  ?raised=${this.focused||this.value!=""}
1495
1496
  ?error=${this.error}></ft-input-label>
1496
1497
  <div class="ft-text-field--input-panel">
1497
- ${this.outlined?at.nothing:at.html`
1498
+ ${this.outlined?st.nothing:st.html`
1498
1499
  <ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
1499
1500
  `}
1500
- ${this.prefix?at.html`
1501
+ ${this.prefix?st.html`
1501
1502
  <ft-typography class="ft-text-field--prefix" variant="body1">
1502
1503
  ${this.prefix}
1503
1504
  </ft-typography>
1504
- `:at.nothing}
1505
+ `:st.nothing}
1505
1506
  <input type=${(e=this.type)!==null&&e!==void 0?e:this.password&&this.hidePassword?"password":"text"}
1506
- name=${Kn(this.name)}
1507
- maxlength=${Kn(this.maxLength||void 0)}
1507
+ name=${Qn(this.name)}
1508
+ maxlength=${Qn(this.maxLength||void 0)}
1508
1509
  aria-label="${this.label}"
1509
1510
  class="ft-typography--body1 ft-text-field--input"
1510
1511
  part="input"
@@ -1520,23 +1521,23 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1520
1521
  <slot @slotchange=${()=>this.filterSuggestionsIfNeeded()}></slot>
1521
1522
  </div>
1522
1523
  </div>
1523
- ${this.helper?at.html`
1524
+ ${this.helper?st.html`
1524
1525
  <ft-typography class="ft-text-field--helper-text" variant="caption">
1525
1526
  ${this.helper}
1526
1527
  </ft-typography>
1527
- `:at.nothing}
1528
+ `:st.nothing}
1528
1529
  </div>
1529
- `}renderPasswordIcon(){return at.html`
1530
+ `}renderPasswordIcon(){return st.html`
1530
1531
  <ft-icon class="ft-text-field--icon"
1531
1532
  .variant=${this.iconVariant}
1532
1533
  .value=${this.hidePassword?this.passwordHiddenIcon:this.passwordRevealedIcon}
1533
1534
  @click=${()=>this.togglePasswordVisibility()}></ft-icon>
1534
- `}renderIcon(){return this.password?this.renderPasswordIcon():this.icon?at.html`
1535
+ `}renderIcon(){return this.password?this.renderPasswordIcon():this.icon?st.html`
1535
1536
  <ft-icon class="ft-text-field--icon"
1536
1537
  .variant=${this.iconVariant}
1537
1538
  .value=${this.icon}
1538
1539
  @click=${()=>{var e;return(e=this.input)===null||e===void 0?void 0:e.focus()}}></ft-icon>
1539
- `: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",Do(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}};F.elementDefinitions={"ft-input-label":Be,"ft-ripple":H,"ft-typography":ce,"ft-icon":ge};F.styles=[Cr,Wr.noTextInputDefaultClearButton,Uc];J([(0,V.property)()],F.prototype,"label",void 0);J([(0,V.property)({noAccessor:!0})],F.prototype,"value",null);J([(0,V.state)()],F.prototype,"dispatchedValue",void 0);J([(0,V.property)()],F.prototype,"helper",void 0);J([(0,V.property)({type:Boolean})],F.prototype,"outlined",void 0);J([(0,V.property)({type:Boolean})],F.prototype,"disabled",void 0);J([(0,V.property)({type:Boolean})],F.prototype,"error",void 0);J([(0,V.property)({type:Boolean})],F.prototype,"fixedMenuPosition",void 0);J([(0,V.property)()],F.prototype,"prefix",void 0);J([(0,V.property)()],F.prototype,"icon",void 0);J([(0,V.property)()],F.prototype,"name",void 0);J([(0,V.property)()],F.prototype,"type",void 0);J([(0,V.property)()],F.prototype,"passwordHiddenIcon",void 0);J([(0,V.property)()],F.prototype,"passwordRevealedIcon",void 0);J([(0,V.property)()],F.prototype,"iconVariant",void 0);J([(0,V.property)({type:Boolean})],F.prototype,"filterSuggestions",void 0);J([(0,V.property)({type:Number})],F.prototype,"maxLength",void 0);J([(0,V.property)({type:Boolean})],F.prototype,"password",void 0);J([(0,V.state)()],F.prototype,"focused",void 0);J([(0,V.state)()],F.prototype,"hidePassword",void 0);J([(0,V.state)()],F.prototype,"hideSuggestions",void 0);J([(0,V.state)()],F.prototype,"visibleSuggestions",void 0);J([(0,V.query)(".ft-text-field--main-panel")],F.prototype,"mainPanel",void 0);J([(0,V.query)(".ft-text-field--input")],F.prototype,"input",void 0);J([(0,V.query)(".ft-text-field--suggestions")],F.prototype,"suggestionsContainer",void 0);J([(0,V.queryAssignedElements)({selector:"ft-text-field-suggestion"})],F.prototype,"suggestions",void 0);var Hc=m(E()),Vc=m($()),Hr=m(G());var zc=m($()),Wc=zc.css`
1540
+ `:st.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",Uo(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}};W.elementDefinitions={"ft-input-label":Fe,"ft-ripple":j,"ft-typography":de,"ft-icon":ye};W.styles=[Tr,Kr.noTextInputDefaultClearButton,Gc];Q([(0,G.property)()],W.prototype,"label",void 0);Q([(0,G.property)({noAccessor:!0})],W.prototype,"value",null);Q([(0,G.state)()],W.prototype,"dispatchedValue",void 0);Q([(0,G.property)()],W.prototype,"helper",void 0);Q([(0,G.property)({type:Boolean})],W.prototype,"outlined",void 0);Q([(0,G.property)({type:Boolean})],W.prototype,"disabled",void 0);Q([(0,G.property)({type:Boolean})],W.prototype,"error",void 0);Q([(0,G.property)({type:Boolean})],W.prototype,"fixedMenuPosition",void 0);Q([(0,G.property)()],W.prototype,"prefix",void 0);Q([(0,G.property)()],W.prototype,"icon",void 0);Q([(0,G.property)()],W.prototype,"name",void 0);Q([(0,G.property)()],W.prototype,"type",void 0);Q([(0,G.property)()],W.prototype,"passwordHiddenIcon",void 0);Q([(0,G.property)()],W.prototype,"passwordRevealedIcon",void 0);Q([(0,G.property)()],W.prototype,"iconVariant",void 0);Q([(0,G.property)({type:Boolean})],W.prototype,"filterSuggestions",void 0);Q([(0,G.property)({type:Number})],W.prototype,"maxLength",void 0);Q([(0,G.property)({type:Boolean})],W.prototype,"password",void 0);Q([(0,G.state)()],W.prototype,"focused",void 0);Q([(0,G.state)()],W.prototype,"hidePassword",void 0);Q([(0,G.state)()],W.prototype,"hideSuggestions",void 0);Q([(0,G.state)()],W.prototype,"visibleSuggestions",void 0);Q([(0,G.query)(".ft-text-field--main-panel")],W.prototype,"mainPanel",void 0);Q([(0,G.query)(".ft-text-field--input")],W.prototype,"input",void 0);Q([(0,G.query)(".ft-text-field--suggestions")],W.prototype,"suggestionsContainer",void 0);Q([(0,G.queryAssignedElements)({selector:"ft-text-field-suggestion"})],W.prototype,"suggestions",void 0);var Yc=g(E()),Xc=g(D()),Zr=g(Z());var Zc=g(D()),qc=Zc.css`
1540
1541
  .ft-text-field-suggestion {
1541
1542
  position: relative;
1542
1543
  padding: 8px 16px;
@@ -1561,7 +1562,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1561
1562
  slot {
1562
1563
  pointer-events: none;
1563
1564
  }
1564
- `;var qn=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})}},kt=class extends Hc.FtLitElement{render(){return Vc.html`
1565
+ `;var ta=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},ea=class extends CustomEvent{constructor(e){super("suggestion-selected",{detail:e,bubbles:!0,composed:!0})}},Dt=class extends Yc.FtLitElement{render(){return Xc.html`
1565
1566
  <div class="ft-text-field-suggestion"
1566
1567
  tabindex="-1"
1567
1568
  @keydown=${this.onKeyDown}
@@ -1573,17 +1574,17 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1573
1574
  <slot></slot>
1574
1575
  </ft-typography>
1575
1576
  </div>
1576
- `}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())}};kt.elementDefinitions={"ft-ripple":H,"ft-typography":ce,"ft-icon":ge};kt.styles=Wc;qn([(0,Hr.property)()],kt.prototype,"value",void 0);qn([(0,Hr.query)(".ft-text-field-suggestion")],kt.prototype,"container",void 0);qn([(0,Hr.queryAssignedNodes)()],kt.prototype,"assignedNodes",void 0);(0,Yn.customElement)("ft-text-field")(F);(0,Yn.customElement)("ft-text-field-suggestion")(kt);var md=m(E());var xo=m($()),tr=m(G()),je=m(E());var ht=m(E());var jc=m(E()),Gc=t=>jc.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 Xn=class{constructor(e,r){this.mapId=e,this.paginatedToc=r,this.nodeByTocId={},this.nodeByUrl={},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,nodeByUrl:this.nodeByUrl,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.nodeByUrl[e.prettyUrl]==null?this.nodeByUrl[e.prettyUrl]=e:this.duplicatedPrettyUrls.add(e.prettyUrl)),this.nodeByUrl[`${this.mapId}/${e.tocId}`]=e,this.nodeByTocId[e.tocId]=e}},gi=class{convertPaginatedToc(e,r){return new Xn(e,r).build()}};var OS=m(Zc(),1);var qc;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(qc||(qc={}));var Yc;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Yc||(Yc={}));var Xc;(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"})(Xc||(Xc={}));var Jc;(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"})(Jc||(Jc={}));var Qc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Qc||(Qc={}));var ed;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(ed||(ed={}));var td;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(td||(td={}));var Pt;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Pt||(Pt={}));var rd;(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"})(rd||(rd={}));var od;(function(t){t.ASC="ASC",t.DESC="DESC"})(od||(od={}));var id;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(id||(id={}));var nd;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(nd||(nd={}));var ad;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"})(ad||(ad={}));var sd;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(sd||(sd={}));var ld;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"})(ld||(ld={}));var cd;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"})(cd||(cd={}));var dd;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS"})(dd||(dd={}));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 pd;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(pd||(pd={}));var Hp={[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 fd(t,e){return t===e||(Hp[t]??[]).some(r=>fd(r,e))}function yr(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=>fd(i,e))}var yi=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(e,r)))),this.cache.register("ratingSummary",()=>{var e,r;return yr((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]}getTocNodeNowByUrl(e){var r,i;let n=this.getMapNow();return n?.prettyUrl==e||`${n?.id}/root`===e?(r=this.enrichedToc)===null||r===void 0?void 0:r.toc[0]:(i=this.enrichedToc)===null||i===void 0?void 0:i.nodeByUrl[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 yr(r??[],ie.FEEDBACK_USER);case Qe.RATING:return yr(r??[],ie.RATING_USER)&&i!=null&&i!==Pt.NO_RATING;case Qe.PRINT:return yr(r??[],ie.PRINT_USER);case Qe.BOOKMARK:return!!r?.sessionAuthenticated;case Qe.COLLECTIONS:return yr(r??[],ie.COLLECTION_USER);case Qe.PERSONAL_BOOKS:return yr(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 bi=class t extends yi{static async build(e){return new t(new gi,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 vi=class t{static build(e,r){return new t(Gc(e.trim()||"context"),r??bi.build)}loaded(){return(0,ht.waitUntil)(()=>this._loaded)}constructor(e,r,i){this.store=e,this.clusteringHelperProvider=i,this.metadataForSwitchToRelatives=new Set,this._loaded=!1,this.loadDebouncer=new ht.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,ht.waitFor)(()=>this.service)}async navigateToTopic(e,r,i){await this.loaded();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){await this.loaded();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._loaded=!1,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))]),this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives(),this._loaded=!0}catch(s){this.errorHandler&&!(s instanceof ht.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 ht.ClusteringHelper(i,n,this.metadataForSwitchToRelatives,a)}}async navigateToRelativeTopicIfFound(e){var r,i,n;await this.loaded();let a=await(0,ht.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 ud=m($());var hd=ud.css`
1577
- `;var xi=class extends CustomEvent{constructor(e,r){super("ft-reader-map-loaded",{detail:{map:e,toc:r}})}},Si=class extends CustomEvent{constructor(e,r){super("ft-reader-visible-topics-change",{detail:{visibleTopics:r}})}},Oi=class extends CustomEvent{constructor(e){super("ft-reader-navigation-done",{detail:e})}},wi=class extends CustomEvent{constructor(e){super("ft-reader-load-error",{detail:e})}},Ci=class extends Event{constructor(){super("ft-reader-map-not-found")}},Ei=class extends Event{constructor(){super("ft-reader-map-unauthorized")}},Ai=class extends Event{constructor(){super("ft-reader-map-forbidden")}},Ri=class extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}};var Ge=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},Vp=t=>e=>+(e??"NaN")>0?+e:t,Oe=class extends je.FtLitElementRedux{constructor(){super(),this.visibleTopics=[],this.scrollToTargetDebouncer=new je.Debouncer(5),this.navigationDebouncer=new je.Debouncer(10),this.mapLoadedEventDebouncer=new je.Debouncer(50),this.addStore(N)}render(){return xo.html`
1577
+ `}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 ea(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())}};Dt.elementDefinitions={"ft-ripple":j,"ft-typography":de,"ft-icon":ye};Dt.styles=qc;ta([(0,Zr.property)()],Dt.prototype,"value",void 0);ta([(0,Zr.query)(".ft-text-field-suggestion")],Dt.prototype,"container",void 0);ta([(0,Zr.queryAssignedNodes)()],Dt.prototype,"assignedNodes",void 0);(0,ra.customElement)("ft-text-field")(W);(0,ra.customElement)("ft-text-field-suggestion")(Dt);var Od=g(E());var Co=g(D()),nr=g(Z()),Ke=g(E());var mt=g(E());var Jc=g(E()),Qc=t=>Jc.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 oa=class{constructor(e,r){this.mapId=e,this.paginatedToc=r,this.nodeByTocId={},this.nodeByUrl={},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,nodeByUrl:this.nodeByUrl,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 h=this.convertSectionNodes((l=n.pageToc)!==null&&l!==void 0?l:[],r+1,n.tocId),m=this.convertNodes(n.children,r+1,p.tocId);return p.children=[...h,...m],[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]):[]},h=(y,v)=>(v?p.topics:p.hiddenTopics).push(y),m=(l=(s=e.pageConfiguration)===null||s===void 0?void 0:s.parentsVisibility)!==null&&l!==void 0?l:[];return p.breadcrumb.forEach((y,v)=>{h(y,m[v])}),e.tocId&&h(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.nodeByUrl[e.prettyUrl]==null?this.nodeByUrl[e.prettyUrl]=e:this.duplicatedPrettyUrls.add(e.prettyUrl)),this.nodeByUrl[`${this.mapId}/${e.tocId}`]=e,this.nodeByTocId[e.tocId]=e}},xi=class{convertPaginatedToc(e,r){return new oa(e,r).build()}};var Xp=g(td(),1);var rd;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(rd||(rd={}));var od;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(od||(od={}));var id;(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"})(id||(id={}));var nd;(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"})(nd||(nd={}));var ad;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(ad||(ad={}));var sd;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(sd||(sd={}));var ld;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(ld||(ld={}));var $t;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})($t||($t={}));var cd;(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"})(cd||(cd={}));var dd;(function(t){t.ASC="ASC",t.DESC="DESC"})(dd||(dd={}));var pd;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(pd||(pd={}));var fd;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(fd||(fd={}));var ud;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"})(ud||(ud={}));var hd;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(hd||(hd={}));var md;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"})(md||(md={}));var gd;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"})(gd||(gd={}));var yd;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS"})(yd||(yd={}));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 bd;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(bd||(bd={}));var Yp={[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 vd(t,e){return t===e||(Yp[t]??[]).some(r=>vd(r,e))}function Or(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=>vd(i,e))}var wi=class extends Ot{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(e,r)))),this.cache.register("ratingSummary",()=>{var e,r;return Or((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]}getTocNodeNowByUrl(e){var r,i;let n=this.getMapNow();return n?.prettyUrl==e||`${n?.id}/root`===e?(r=this.enrichedToc)===null||r===void 0?void 0:r.toc[0]:(i=this.enrichedToc)===null||i===void 0?void 0:i.nodeByUrl[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 et.FEEDBACK:return Or(r??[],ie.FEEDBACK_USER);case et.RATING:return Or(r??[],ie.RATING_USER)&&i!=null&&i!==$t.NO_RATING;case et.PRINT:return Or(r??[],ie.PRINT_USER);case et.BOOKMARK:return!!r?.sessionAuthenticated;case et.COLLECTIONS:return Or(r??[],ie.COLLECTION_USER);case et.PERSONAL_BOOKS:return Or(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 Ci=class t extends wi{static async build(e){return new t(new xi,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 Ei=class t{static build(e,r){return new t(Qc(e.trim()||"context"),r??Ci.build)}loaded(){return(0,mt.waitUntil)(()=>this._loaded)}constructor(e,r,i){this.store=e,this.clusteringHelperProvider=i,this.metadataForSwitchToRelatives=new Set,this._loaded=!1,this.loadDebouncer=new mt.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,mt.waitFor)(()=>this.service)}async navigateToTopic(e,r,i){await this.loaded();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){await this.loaded();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._loaded=!1,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))]),this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives(),this._loaded=!0}catch(s){this.errorHandler&&!(s instanceof mt.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 mt.ClusteringHelper(i,n,this.metadataForSwitchToRelatives,a)}}async navigateToRelativeTopicIfFound(e){var r,i,n;await this.loaded();let a=await(0,mt.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 xd=g(D());var Sd=xd.css`
1578
+ `;var Ai=class extends CustomEvent{constructor(e,r){super("ft-reader-map-loaded",{detail:{map:e,toc:r}})}},Ri=class extends CustomEvent{constructor(e,r){super("ft-reader-visible-topics-change",{detail:{visibleTopics:r}})}},Ni=class extends CustomEvent{constructor(e){super("ft-reader-navigation-done",{detail:e})}},Ti=class extends CustomEvent{constructor(e){super("ft-reader-load-error",{detail:e})}},Ii=class extends Event{constructor(){super("ft-reader-map-not-found")}},_i=class extends Event{constructor(){super("ft-reader-map-unauthorized")}},ki=class extends Event{constructor(){super("ft-reader-map-forbidden")}},Pi=class extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}};var 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},Jp=t=>e=>+(e??"NaN")>0?+e:t,Oe=class extends Ke.FtLitElementRedux{constructor(){super(),this.visibleTopics=[],this.scrollToTargetDebouncer=new Ke.Debouncer(5),this.navigationDebouncer=new Ke.Debouncer(10),this.mapLoadedEventDebouncer=new Ke.Debouncer(50),this.addStore(N)}render(){return Co.html`
1578
1579
  ${this.importStyleIfNeeded()}
1579
1580
  <slot @register-ft-reader-component=${this.registerComponent}></slot>
1580
- `}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:"")?xo.nothing:xo.html`
1581
+ `}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:"")?Co.nothing:Co.html`
1581
1582
  <style>
1582
1583
  @import "${i}"
1583
1584
  </style>
1584
- `}get stateManager(){return this._stateManager==null&&(this._stateManager=vi.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(),e.has("session")&&this.reload()}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 Oi(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 Si(this.map,n))})}clear(){this.stateManager.clear()}async reload(){await this.stateManager.reload()}async navigateToTarget(){await this.navigationDebouncer.run(async()=>{this.topicPivot!=null?!await this.stateManager.navigateToRelativeTopicIfFound(this.topicPivot)&&this.lastNotifiedNotFoundRelative!==this.mapId+this.topicPivot?(this.dispatchEvent(new Ri),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 Ei):r.status===403?this.dispatchEvent(new Ai):r.status===404?this.dispatchEvent(new Ci):this.dispatchEvent(new wi(e))}reloadBookmarks(){Tc.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 xi(this.map,this.toc))})}};Oe.styles=hd;Ge([(0,je.redux)({store:N.name})],Oe.prototype,"baseUrl",void 0);Ge([(0,je.redux)({store:N.name})],Oe.prototype,"session",void 0);Ge([(0,tr.property)()],Oe.prototype,"mapId",void 0);Ge([(0,tr.property)()],Oe.prototype,"tocId",void 0);Ge([(0,tr.property)()],Oe.prototype,"section",void 0);Ge([(0,tr.property)()],Oe.prototype,"topicPivot",void 0);Ge([(0,tr.property)()],Oe.prototype,"searchInDocumentQuery",void 0);Ge([(0,tr.property)({type:Number,converter:{fromAttribute:Vp()}})],Oe.prototype,"page",void 0);Ge([(0,je.redux)({store:"reader"})],Oe.prototype,"map",void 0);Ge([(0,je.redux)({store:"reader"})],Oe.prototype,"toc",void 0);Ge([(0,je.redux)({store:"reader"})],Oe.prototype,"visibleTopics",void 0);Ge([(0,je.redux)({store:"reader"})],Oe.prototype,"currentPage",void 0);Ge([(0,je.redux)({store:"reader"})],Oe.prototype,"scrollTarget",void 0);Ge([(0,tr.property)({attribute:!1})],Oe.prototype,"readerServiceProvider",void 0);(0,md.customElement)("ft-reader-context")(Oe);var Ni=class extends CustomEvent{constructor(e){super("send-feedback",{detail:e})}},Ii=class extends CustomEvent{constructor(e){super("ft-reader-topic-feedback",{composed:!0,bubbles:!0,detail:e})}},Ti=class extends CustomEvent{constructor(e){super("ft-reader-feedback",{composed:!0,bubbles:!0,detail:e})}},_i=class extends CustomEvent{constructor(e){super("ft-reader-mailer-topic-feedback",{composed:!0,bubbles:!0,detail:{topic:e}})}},ki=class extends CustomEvent{constructor(){super("ft-reader-mailer-map-feedback",{composed:!0,bubbles:!0})}};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},Y=class extends Qt(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(W,Mc)}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,Pi.parseDate)(i):i}render(){return!this.canAccessFeedback&&!this.canAccessRating?fe.nothing:fe.html`
1585
+ `}get stateManager(){return this._stateManager==null&&(this._stateManager=Ei.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(),e.has("session")&&this.reload()}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 Ni(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 Ri(this.map,n))})}clear(){this.stateManager.clear()}async reload(){await this.stateManager.reload()}async navigateToTarget(){await this.navigationDebouncer.run(async()=>{this.topicPivot!=null?!await this.stateManager.navigateToRelativeTopicIfFound(this.topicPivot)&&this.lastNotifiedNotFoundRelative!==this.mapId+this.topicPivot?(this.dispatchEvent(new Pi),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 _i):r.status===403?this.dispatchEvent(new ki):r.status===404?this.dispatchEvent(new Ii):this.dispatchEvent(new Ti(e))}reloadBookmarks(){Mc.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 Ai(this.map,this.toc))})}};Oe.styles=Sd;Ze([(0,Ke.redux)({store:N.name})],Oe.prototype,"baseUrl",void 0);Ze([(0,Ke.redux)({store:N.name})],Oe.prototype,"session",void 0);Ze([(0,nr.property)()],Oe.prototype,"mapId",void 0);Ze([(0,nr.property)()],Oe.prototype,"tocId",void 0);Ze([(0,nr.property)()],Oe.prototype,"section",void 0);Ze([(0,nr.property)()],Oe.prototype,"topicPivot",void 0);Ze([(0,nr.property)()],Oe.prototype,"searchInDocumentQuery",void 0);Ze([(0,nr.property)({type:Number,converter:{fromAttribute:Jp()}})],Oe.prototype,"page",void 0);Ze([(0,Ke.redux)({store:"reader"})],Oe.prototype,"map",void 0);Ze([(0,Ke.redux)({store:"reader"})],Oe.prototype,"toc",void 0);Ze([(0,Ke.redux)({store:"reader"})],Oe.prototype,"visibleTopics",void 0);Ze([(0,Ke.redux)({store:"reader"})],Oe.prototype,"currentPage",void 0);Ze([(0,Ke.redux)({store:"reader"})],Oe.prototype,"scrollTarget",void 0);Ze([(0,nr.property)({attribute:!1})],Oe.prototype,"readerServiceProvider",void 0);(0,Od.customElement)("ft-reader-context")(Oe);var Li=class extends CustomEvent{constructor(e){super("send-feedback",{detail:e})}},Di=class extends CustomEvent{constructor(e){super("ft-reader-topic-feedback",{composed:!0,bubbles:!0,detail:e})}},$i=class extends CustomEvent{constructor(e){super("ft-reader-feedback",{composed:!0,bubbles:!0,detail:e})}},Mi=class extends CustomEvent{constructor(e){super("ft-reader-mailer-topic-feedback",{composed:!0,bubbles:!0,detail:{topic:e}})}},Bi=class extends CustomEvent{constructor(){super("ft-reader-mailer-map-feedback",{composed:!0,bubbles:!0})}};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},X=class extends rr(Mt){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(V,Vc)}get canAccessFeedback(){var e;return(e=this.service)===null||e===void 0?void 0:e.isFeatureAccessible(et.FEEDBACK,{session:this.session})}get canAccessRating(){var e,r;return(e=this.service)===null||e===void 0?void 0:e.isFeatureAccessible(et.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,Ui.parseDate)(i):i}render(){return!this.canAccessFeedback&&!this.canAccessRating?ue.nothing:ue.html`
1585
1586
  <div class="ft-reader-feedback">
1586
- ${this.hideTitle?fe.nothing:fe.html`
1587
+ ${this.hideTitle?ue.nothing:ue.html`
1587
1588
  <ft-typography variant="title" part="main-title">
1588
1589
  ${this.i18n(this.i18nProperties.feedbackMainTitle)}
1589
1590
  </ft-typography>
@@ -1591,7 +1592,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1591
1592
  ${this.renderRatingSection()}
1592
1593
  ${this.renderFeedbackSection()}
1593
1594
  </div>
1594
- `}renderRatingSection(){return this.canAccessRating?fe.html`
1595
+ `}renderRatingSection(){return this.canAccessRating?ue.html`
1595
1596
  <div class="ft-reader-feedback--rating" part="rating-container">
1596
1597
  <ft-typography variant="title-dense" part="section-title" class="ft-reader-feedback--section-title">
1597
1598
  ${this.i18n(this.ratingSummary.type==="DICHOTOMOUS"?this.i18nProperties.dichotomousRatingSectionTitle:this.i18nProperties.ratingSectionTitle)}
@@ -1601,11 +1602,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1601
1602
  ${this.renderRatingDate()}
1602
1603
  </ft-typography>
1603
1604
  </div>
1604
- `:fe.nothing}renderRatingDate(){let e=this.ratingDate;if(e==null)return W.messages.notRated();if(e.getTime()>new Date().getTime()-6e4)return W.messages.ratedNow();let r=new Date().toLocaleDateString(),i=e.toLocaleDateString();return r===i?W.messages.ratedToday():W.messages.ratedOn(e)}renderRating(){switch(this.configuredRatingType){case"STARS":return fe.html`
1605
+ `:ue.nothing}renderRatingDate(){let e=this.ratingDate;if(e==null)return V.messages.notRated();if(e.getTime()>new Date().getTime()-6e4)return V.messages.ratedNow();let r=new Date().toLocaleDateString(),i=e.toLocaleDateString();return r===i?V.messages.ratedToday():V.messages.ratedOn(e)}renderRating(){switch(this.configuredRatingType){case"STARS":return ue.html`
1605
1606
  <div class="ft-reader-feedback--stars" part="rating rating-stars">
1606
- ${(0,gd.repeat)(new Array(5),(a,s)=>s,(a,s)=>{let l=this.ratingType==="STARS"&&this.ratingValue>s,d=s+1;return fe.html`
1607
+ ${(0,wd.repeat)(new Array(5),(a,s)=>s,(a,s)=>{let l=this.ratingType==="STARS"&&this.ratingValue>s,d=s+1;return ue.html`
1607
1608
  <ft-button round part="rating-stars-${d}"
1608
- label="${W.messages.starsRating(d)}"
1609
+ label="${V.messages.starsRating(d)}"
1609
1610
  tooltipPosition="top"
1610
1611
  .iconVariant=${this.iconVariant}
1611
1612
  icon="${l?this.filledStarIcon:this.emptyStarIcon}"
@@ -1614,7 +1615,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1614
1615
  ></ft-button>
1615
1616
  `})}
1616
1617
  </div>
1617
- `;case"LIKE":let e=this.ratingType==="LIKE"&&this.ratingValue===0,r=this.ratingType==="LIKE"&&this.ratingValue===1;return fe.html`
1618
+ `;case"LIKE":let e=this.ratingType==="LIKE"&&this.ratingValue===0,r=this.ratingType==="LIKE"&&this.ratingValue===1;return ue.html`
1618
1619
  <ft-switch unselectable
1619
1620
  @change=${a=>this.rate(a.detail)}
1620
1621
  part="rating rating-like">
@@ -1622,66 +1623,66 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1622
1623
  ?selected=${r}
1623
1624
  .iconVariant=${this.iconVariant}
1624
1625
  icon="${r?this.filledLikeIcon:this.emptyLikeIcon}">
1625
- ${W.messages.like()}
1626
+ ${V.messages.like()}
1626
1627
  </ft-switch-option>
1627
1628
  <ft-switch-option .value=${0}
1628
1629
  ?selected=${e}
1629
1630
  .iconVariant=${this.iconVariant}
1630
1631
  icon="${e?this.filledDislikeIcon:this.emptyDislikeIcon}">
1631
- ${W.messages.dislike()}
1632
+ ${V.messages.dislike()}
1632
1633
  </ft-switch-option>
1633
1634
  </ft-switch>
1634
- `;case"DICHOTOMOUS":let i=this.ratingType==="DICHOTOMOUS"&&this.ratingValue===0,n=this.ratingType==="DICHOTOMOUS"&&this.ratingValue===1;return fe.html`
1635
+ `;case"DICHOTOMOUS":let i=this.ratingType==="DICHOTOMOUS"&&this.ratingValue===0,n=this.ratingType==="DICHOTOMOUS"&&this.ratingValue===1;return ue.html`
1635
1636
  <ft-switch unselectable
1636
1637
  @change=${a=>this.rate(a.detail)}
1637
1638
  part="rating rating-dichotomous">
1638
1639
  <ft-switch-option .value=${1}
1639
1640
  ?selected=${n}>
1640
- ${W.messages.dichotomousYes()}
1641
+ ${V.messages.dichotomousYes()}
1641
1642
  </ft-switch-option>
1642
1643
  <ft-switch-option .value=${0}
1643
1644
  ?selected=${i}>
1644
- ${W.messages.dichotomousNo()}
1645
+ ${V.messages.dichotomousNo()}
1645
1646
  </ft-switch-option>
1646
1647
  </ft-switch>
1647
- `}return fe.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=fe.html`
1648
+ `}return ue.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=ue.html`
1648
1649
  <ft-button primary
1649
1650
  type="submit" name="submit"
1650
1651
  class="ft-reader-feedback--send-feedback"
1651
1652
  ?disabled=${!this.feedbackMessage||!this.validFromEmail()}
1652
1653
  part="send-feedback">
1653
- ${W.messages.okButton()}
1654
+ ${V.messages.okButton()}
1654
1655
  </ft-button>
1655
- `;s&&(l=fe.html`
1656
+ `;s&&(l=ue.html`
1656
1657
  <a class="ft-reader-feedback--feedback-link" href="${s}">
1657
1658
  ${l}
1658
1659
  </a>
1659
- `);let d=this.withMoreOptionsButton&&(!((e=this.configuration)===null||e===void 0)&&e.mailsSentByFluidTopics||!((r=this.configuration)===null||r===void 0)&&r.mailsSentByFluidTopicsForUnauthenticatedUsers)?fe.html`
1660
+ `);let d=this.withMoreOptionsButton&&(!((e=this.configuration)===null||e===void 0)&&e.mailsSentByFluidTopics||!((r=this.configuration)===null||r===void 0)&&r.mailsSentByFluidTopicsForUnauthenticatedUsers)?ue.html`
1660
1661
  <ft-button outlined
1661
1662
  type="button" name="more-options"
1662
1663
  class="ft-reader-feedback--more-options"
1663
1664
  @click="${this.onOpenMoreDetails}"
1664
1665
  part="more-options">
1665
- ${W.messages.moreOptionsButton()}
1666
+ ${V.messages.moreOptionsButton()}
1666
1667
  </ft-button>
1667
- `:fe.nothing;return fe.html`
1668
+ `:ue.nothing;return ue.html`
1668
1669
  <form class="ft-reader-feedback--feedback" part="feedback-container" autocomplete="on"
1669
1670
  @submit="${p=>this.onFormSubmitEvent(p,!!s)}">
1670
1671
  <ft-typography variant="title-dense" part="section-title" class="ft-reader-feedback--section-title">
1671
1672
  ${this.i18n(this.i18nProperties.feedbackSectionTitle)}
1672
1673
  </ft-typography>
1673
- ${((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)?fe.html`
1674
+ ${((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)?ue.html`
1674
1675
  <ft-text-field outlined name="email" type="email" autocomplete="email"
1675
1676
  class="ft-reader-feedback--from-input"
1676
- label=${W.messages.feedbackfromEmail()}
1677
+ label=${V.messages.feedbackfromEmail()}
1677
1678
  @change=${p=>this.from=p.detail.trim()}
1678
1679
  ?error=${this.from&&!this.validFromEmail()}
1679
- helper=${this.from&&!this.validFromEmail()?W.messages.feedbackfromEmailInvalid():""}
1680
+ helper=${this.from&&!this.validFromEmail()?V.messages.feedbackfromEmailInvalid():""}
1680
1681
  />
1681
- `:fe.nothing}
1682
+ `:ue.nothing}
1682
1683
  <ft-text-area outlined
1683
1684
  class="ft-reader-feedback--feedback-input" part="feedback-input"
1684
- label="${W.messages.feedbackInputLabel()}"
1685
+ label="${V.messages.feedbackInputLabel()}"
1685
1686
  @live-change=${p=>this.feedbackMessage=p.detail.trim()}
1686
1687
  ></ft-text-area>
1687
1688
  <div part="buttons-container">
@@ -1689,7 +1690,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1689
1690
  ${l}
1690
1691
  </div>
1691
1692
  </form>
1692
- `}return fe.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 Ni({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":Ye,"ft-switch-option":ye,"ft-text-area":Ae,"ft-text-field":F};Y.styles=ss;we([(0,ue.property)({type:Boolean})],Y.prototype,"editorMode",void 0);we([(0,ue.property)({type:Boolean})],Y.prototype,"hideTitle",void 0);we([(0,ue.property)({type:Boolean})],Y.prototype,"withMoreOptionsButton",void 0);we([(0,ue.property)({type:Boolean})],Y.prototype,"ratingAllowed",void 0);we([(0,ue.property)({attribute:!1})],Y.prototype,"i18nProperties",void 0);we([(0,ue.property)({attribute:!1})],Y.prototype,"ratingSummary",void 0);we([(0,ue.property)({attribute:!1})],Y.prototype,"session",void 0);we([(0,ue.query)(".ft-reader-feedback--feedback-input")],Y.prototype,"feedbackInput",void 0);we([(0,ue.state)()],Y.prototype,"from",void 0);we([(0,ue.state)()],Y.prototype,"feedbackMessage",void 0);we([(0,ue.property)()],Y.prototype,"iconVariant",void 0);we([(0,ue.property)()],Y.prototype,"emptyStarIcon",void 0);we([(0,ue.property)()],Y.prototype,"filledStarIcon",void 0);we([(0,ue.property)()],Y.prototype,"emptyLikeIcon",void 0);we([(0,ue.property)()],Y.prototype,"filledLikeIcon",void 0);we([(0,ue.property)()],Y.prototype,"emptyDislikeIcon",void 0);we([(0,ue.property)()],Y.prototype,"filledDislikeIcon",void 0);we([(0,Pi.redux)({store:"reader",selector:t=>{var e;return(e=t.configuration)===null||e===void 0?void 0:e.feedback}})],Y.prototype,"configuration",void 0);we([(0,ue.property)()],Y.prototype,"feedbackMailLinkBuilder",void 0);var Vr=er.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(`
1693
+ `}return ue.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 Li({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)}};X.elementDefinitions={"ft-button":pt,"ft-typography":de,"ft-switch":Je,"ft-switch-option":be,"ft-text-area":Re,"ft-text-field":W};X.styles=hs;we([(0,he.property)({type:Boolean})],X.prototype,"editorMode",void 0);we([(0,he.property)({type:Boolean})],X.prototype,"hideTitle",void 0);we([(0,he.property)({type:Boolean})],X.prototype,"withMoreOptionsButton",void 0);we([(0,he.property)({type:Boolean})],X.prototype,"ratingAllowed",void 0);we([(0,he.property)({attribute:!1})],X.prototype,"i18nProperties",void 0);we([(0,he.property)({attribute:!1})],X.prototype,"ratingSummary",void 0);we([(0,he.property)({attribute:!1})],X.prototype,"session",void 0);we([(0,he.query)(".ft-reader-feedback--feedback-input")],X.prototype,"feedbackInput",void 0);we([(0,he.state)()],X.prototype,"from",void 0);we([(0,he.state)()],X.prototype,"feedbackMessage",void 0);we([(0,he.property)()],X.prototype,"iconVariant",void 0);we([(0,he.property)()],X.prototype,"emptyStarIcon",void 0);we([(0,he.property)()],X.prototype,"filledStarIcon",void 0);we([(0,he.property)()],X.prototype,"emptyLikeIcon",void 0);we([(0,he.property)()],X.prototype,"filledLikeIcon",void 0);we([(0,he.property)()],X.prototype,"emptyDislikeIcon",void 0);we([(0,he.property)()],X.prototype,"filledDislikeIcon",void 0);we([(0,Ui.redux)({store:"reader",selector:t=>{var e;return(e=t.configuration)===null||e===void 0?void 0:e.feedback}})],X.prototype,"configuration",void 0);we([(0,he.property)()],X.prototype,"feedbackMailLinkBuilder",void 0);var Yr=or.fromGwt("server");var Xr=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(`
1693
1694
  ${this.bodyMetadata}
1694
1695
  ${this.url}
1695
1696
  _________________________________________________________________
@@ -1697,7 +1698,7 @@ _________________________________________________________________
1697
1698
  ${e??""}
1698
1699
 
1699
1700
  _________________________________________________________________
1700
- ${Vr.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configuration)===null||r===void 0?void 0:r.recipients.join(",")}?subject=${i}&body=${n}`}};var rr=er.build("inDesignerFeedbackComponent"),Li={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 Qt(Lt){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=Ie.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:W.properties.mapFeedbackMainTitle(),ratingSectionTitle:W.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:W.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:W.properties.mapFeedbackSectionTitle()},this.updateDebouncer=new Pe.Debouncer(100),this.sendRatingDebouncer=new Pe.Debouncer(500),this.addStore(N)}render(){return yd.html`
1701
+ ${Yr.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configuration)===null||r===void 0?void 0:r.recipients.join(",")}?subject=${i}&body=${n}`}};var ar=or.build("inDesignerFeedbackComponent"),Fi={feedbackAndRatingDisabledInEditor:"Feedback and ratings performed here are not taken into account."};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 rr(Mt){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=Ie.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 Xr,this.i18nProperties={feedbackMainTitle:V.properties.mapFeedbackMainTitle(),ratingSectionTitle:V.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:V.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:V.properties.mapFeedbackSectionTitle()},this.updateDebouncer=new Le.Debouncer(100),this.sendRatingDebouncer=new Le.Debouncer(500),this.addStore(N)}render(){return Cd.html`
1701
1702
  <ft-reader-feedback
1702
1703
  ratingAllowed
1703
1704
  .i18nProperties=${this.i18nProperties}
@@ -1719,7 +1720,7 @@ ${Vr.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
1719
1720
  @mailer-feedback=${this.onMailerFeedbackSent}
1720
1721
  @open-more-options=${this.openMoreOptions}
1721
1722
  ></ft-reader-feedback>
1722
- `}update(e){var r,i,n,a;super.update(e),e.has("map")&&this.map&&this.updateData(),e.has("editorMode")&&this.editorMode&&this.addI18nContext(rr,Li),["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 Pe.FtNotificationEvent({type:"error",message:W.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new Pe.FtNotificationEvent({type:"info",message:rr.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(e){var r;try{this.editorMode?this.dispatchEvent(new Pe.FtNotificationEvent({type:"info",message:rr.messages.feedbackAndRatingDisabledInEditor()})):(await((r=this.service)===null||r===void 0?void 0:r.sendMapFeedback(e.detail.message,e.detail.from)),this.dispatchEvent(new Pe.FtNotificationEvent({type:"info",message:W.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new Pe.FtNotificationEvent({type:"error",message:W.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new ki)}openMoreOptions(){var e,r,i;this.dispatchEvent(new Ti({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)||Pt.NO_RATING,ratingValue:(i=this.ratingSummary)===null||i===void 0?void 0:i.rating}))}};ae.elementDefinitions={"ft-reader-feedback":Y};Re([(0,Pe.redux)({store:N.name})],ae.prototype,"session",void 0);Re([(0,Pe.redux)({store:"reader"})],ae.prototype,"map",void 0);Re([(0,Pe.redux)({store:N.name})],ae.prototype,"editorMode",void 0);Re([(0,Pe.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,Ke.state)()],ae.prototype,"ratingSummary",void 0);Re([(0,Ke.property)({type:Boolean})],ae.prototype,"hideTitle",void 0);Re([(0,Ke.property)({type:Boolean})],ae.prototype,"withMoreOptionsButton",void 0);Re([(0,Ke.property)()],ae.prototype,"iconVariant",void 0);Re([(0,Ke.property)()],ae.prototype,"emptyStarIcon",void 0);Re([(0,Ke.property)()],ae.prototype,"filledStarIcon",void 0);Re([(0,Ke.property)()],ae.prototype,"emptyLikeIcon",void 0);Re([(0,Ke.property)()],ae.prototype,"filledLikeIcon",void 0);Re([(0,Ke.property)()],ae.prototype,"emptyDislikeIcon",void 0);Re([(0,Ke.property)()],ae.prototype,"filledDislikeIcon",void 0);Re([(0,Ke.query)("ft-reader-feedback")],ae.prototype,"readerFeedback",void 0);Re([mi(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,Pe.reduxEventListener)({eventName:"rating-changed"})],ae.prototype,"fetchRatingSummary",null);var vd=m($()),Ze=m(G()),Le=m(E());var Qn=m(G());var bd=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},ea=class extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}},Jn=Symbol("registerInterval");function jp(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 ea)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return e=Jn,bd([(0,Qn.state)()],r.prototype,"tocNode",void 0),bd([(0,Qn.state)()],r.prototype,"disableContextInteractions",void 0),r}var Di=class extends jp(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 Qt(Di){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=Ie.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:W.properties.topicFeedbackMainTitle(),ratingSectionTitle:W.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:W.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:W.properties.topicFeedbackSectionTitle()},this.updateDebouncer=new Le.Debouncer(100),this.sendRatingDebouncer=new Le.Debouncer(500),this.addStore(N)}render(){var e;return vd.html`
1723
+ `}update(e){var r,i,n,a;super.update(e),e.has("map")&&this.map&&this.updateData(),e.has("editorMode")&&this.editorMode&&this.addI18nContext(ar,Fi),["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 Le.FtNotificationEvent({type:"error",message:V.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new Le.FtNotificationEvent({type:"info",message:ar.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(e){var r;try{this.editorMode?this.dispatchEvent(new Le.FtNotificationEvent({type:"info",message:ar.messages.feedbackAndRatingDisabledInEditor()})):(await((r=this.service)===null||r===void 0?void 0:r.sendMapFeedback(e.detail.message,e.detail.from)),this.dispatchEvent(new Le.FtNotificationEvent({type:"info",message:V.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new Le.FtNotificationEvent({type:"error",message:V.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new Bi)}openMoreOptions(){var e,r,i;this.dispatchEvent(new $i({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)||$t.NO_RATING,ratingValue:(i=this.ratingSummary)===null||i===void 0?void 0:i.rating}))}};se.elementDefinitions={"ft-reader-feedback":X};Ne([(0,Le.redux)({store:N.name})],se.prototype,"session",void 0);Ne([(0,Le.redux)({store:"reader"})],se.prototype,"map",void 0);Ne([(0,Le.redux)({store:N.name})],se.prototype,"editorMode",void 0);Ne([(0,Le.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,qe.state)()],se.prototype,"ratingSummary",void 0);Ne([(0,qe.property)({type:Boolean})],se.prototype,"hideTitle",void 0);Ne([(0,qe.property)({type:Boolean})],se.prototype,"withMoreOptionsButton",void 0);Ne([(0,qe.property)()],se.prototype,"iconVariant",void 0);Ne([(0,qe.property)()],se.prototype,"emptyStarIcon",void 0);Ne([(0,qe.property)()],se.prototype,"filledStarIcon",void 0);Ne([(0,qe.property)()],se.prototype,"emptyLikeIcon",void 0);Ne([(0,qe.property)()],se.prototype,"filledLikeIcon",void 0);Ne([(0,qe.property)()],se.prototype,"emptyDislikeIcon",void 0);Ne([(0,qe.property)()],se.prototype,"filledDislikeIcon",void 0);Ne([(0,qe.query)("ft-reader-feedback")],se.prototype,"readerFeedback",void 0);Ne([vi(Yr.properties["mail.map_feedback.subject"](t=>{var e;return[(e=t.map)===null||e===void 0?void 0:e.title]}))],se.prototype,"mailSubject",void 0);Ne([(0,Le.reduxEventListener)({eventName:"rating-changed"})],se.prototype,"fetchRatingSummary",null);var Ad=g(D()),Ye=g(Z()),De=g(E());var na=g(Z());var Ed=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},aa=class extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}},ia=Symbol("registerInterval");function Qp(t){var e;class r extends t{constructor(){super(...arguments),this.disableContextInteractions=!1,this[e]=0}connectedCallback(){super.connectedCallback(),this[ia]=window.setInterval(()=>this.tryToRegisterToTopicContext(),50)}tryToRegisterToTopicContext(){this.tocNode!=null?window.clearInterval(this[ia]):this.dispatchEvent(new aa)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return e=ia,Ed([(0,na.state)()],r.prototype,"tocNode",void 0),Ed([(0,na.state)()],r.prototype,"disableContextInteractions",void 0),r}var zi=class extends Qp(Mt){};var Te=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},le=class extends rr(zi){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=Ie.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 Xr,this.i18nProperties={feedbackMainTitle:V.properties.topicFeedbackMainTitle(),ratingSectionTitle:V.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:V.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:V.properties.topicFeedbackSectionTitle()},this.updateDebouncer=new De.Debouncer(100),this.sendRatingDebouncer=new De.Debouncer(500),this.addStore(N)}render(){var e;return Ad.html`
1723
1724
  <ft-reader-feedback
1724
1725
  .i18nProperties=${this.i18nProperties}
1725
1726
  ?ratingAllowed=${(e=this.tocNode)===null||e===void 0?void 0:e.hasRating}
@@ -1741,7 +1742,7 @@ ${Vr.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
1741
1742
  @mailer-feedback=${this.onMailerFeedbackSent}
1742
1743
  @open-more-options=${this.openMoreOptions}
1743
1744
  ></ft-reader-feedback>
1744
- `}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(rr,Li),["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 Le.FtNotificationEvent({type:"error",message:W.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new Le.FtNotificationEvent({type:"info",message:rr.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 Le.FtNotificationEvent({type:"info",message:W.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new Le.FtNotificationEvent({type:"info",message:rr.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new Le.FtNotificationEvent({type:"error",message:W.messages.feedbackFailure()}))}}onMailerFeedbackSent(){let e=this.tocNode;this.dispatchEvent(new _i(e))}openMoreOptions(){var e,r,i,n,a,s,l,d;this.dispatchEvent(new Ii({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:Pt.NO_RATING)||Pt.NO_RATING,ratingValue:(d=this.ratingSummary)===null||d===void 0?void 0:d.rating}))}};se.elementDefinitions={"ft-reader-feedback":Y};Ne([(0,Le.redux)({store:N.name})],se.prototype,"session",void 0);Ne([(0,Le.redux)({store:"reader"})],se.prototype,"map",void 0);Ne([(0,Le.redux)({store:N.name})],se.prototype,"editorMode",void 0);Ne([(0,Le.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,Ze.state)()],se.prototype,"ratingSummary",void 0);Ne([(0,Ze.property)({type:Boolean})],se.prototype,"hideTitle",void 0);Ne([(0,Ze.property)({type:Boolean})],se.prototype,"withMoreOptionsButton",void 0);Ne([(0,Ze.property)()],se.prototype,"iconVariant",void 0);Ne([(0,Ze.property)()],se.prototype,"emptyStarIcon",void 0);Ne([(0,Ze.property)()],se.prototype,"filledStarIcon",void 0);Ne([(0,Ze.property)()],se.prototype,"emptyLikeIcon",void 0);Ne([(0,Ze.property)()],se.prototype,"filledLikeIcon",void 0);Ne([(0,Ze.property)()],se.prototype,"emptyDislikeIcon",void 0);Ne([(0,Ze.property)()],se.prototype,"filledDislikeIcon",void 0);Ne([(0,Ze.query)("ft-reader-feedback")],se.prototype,"readerFeedback",void 0);Ne([mi(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,Le.reduxEventListener)({eventName:"rating-changed"})],se.prototype,"fetchRatingSummary",null);(0,ta.customElement)("ft-reader-map-feedback")(ae);(0,ta.customElement)("ft-reader-topic-feedback")(se);})();
1745
+ `}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(ar,Fi),["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 De.FtNotificationEvent({type:"error",message:V.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new De.FtNotificationEvent({type:"info",message:ar.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 De.FtNotificationEvent({type:"info",message:V.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new De.FtNotificationEvent({type:"info",message:ar.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new De.FtNotificationEvent({type:"error",message:V.messages.feedbackFailure()}))}}onMailerFeedbackSent(){let e=this.tocNode;this.dispatchEvent(new Mi(e))}openMoreOptions(){var e,r,i,n,a,s,l,d;this.dispatchEvent(new Di({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:$t.NO_RATING)||$t.NO_RATING,ratingValue:(d=this.ratingSummary)===null||d===void 0?void 0:d.rating}))}};le.elementDefinitions={"ft-reader-feedback":X};Te([(0,De.redux)({store:N.name})],le.prototype,"session",void 0);Te([(0,De.redux)({store:"reader"})],le.prototype,"map",void 0);Te([(0,De.redux)({store:N.name})],le.prototype,"editorMode",void 0);Te([(0,De.redux)({store:"reader",selector:t=>{var e;return(e=t.configuration)===null||e===void 0?void 0:e.feedback}})],le.prototype,"configuration",void 0);Te([(0,Ye.state)()],le.prototype,"ratingSummary",void 0);Te([(0,Ye.property)({type:Boolean})],le.prototype,"hideTitle",void 0);Te([(0,Ye.property)({type:Boolean})],le.prototype,"withMoreOptionsButton",void 0);Te([(0,Ye.property)()],le.prototype,"iconVariant",void 0);Te([(0,Ye.property)()],le.prototype,"emptyStarIcon",void 0);Te([(0,Ye.property)()],le.prototype,"filledStarIcon",void 0);Te([(0,Ye.property)()],le.prototype,"emptyLikeIcon",void 0);Te([(0,Ye.property)()],le.prototype,"filledLikeIcon",void 0);Te([(0,Ye.property)()],le.prototype,"emptyDislikeIcon",void 0);Te([(0,Ye.property)()],le.prototype,"filledDislikeIcon",void 0);Te([(0,Ye.query)("ft-reader-feedback")],le.prototype,"readerFeedback",void 0);Te([vi(Yr.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]}))],le.prototype,"mailSubject",void 0);Te([(0,De.reduxEventListener)({eventName:"rating-changed"})],le.prototype,"fetchRatingSummary",null);(0,sa.customElement)("ft-reader-map-feedback")(se);(0,sa.customElement)("ft-reader-topic-feedback")(le);})();
1745
1746
  /*! Bundled license information:
1746
1747
 
1747
1748
  lit-html/lit-html.js: