@fluid-topics/ft-reader-feedback 1.2.55 → 1.2.56

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,5 +1,5 @@
1
- "use strict";(()=>{var qd=Object.create;var ba=Object.defineProperty;var Yd=Object.getOwnPropertyDescriptor;var Xd=Object.getOwnPropertyNames;var Qd=Object.getPrototypeOf,Jd=Object.prototype.hasOwnProperty;var dr=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var tp=(e,t,o,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Xd(t))!Jd.call(e,n)&&n!==o&&ba(e,n,{get:()=>t[n],enumerable:!(i=Yd(t,n))||i.enumerable});return e};var m=(e,t,o)=>(o=e!=null?qd(Qd(e)):{},tp(t||!e||!e.__esModule?ba(o,"default",{value:e,enumerable:!0}):o,e));var R=dr((Tu,xa)=>{xa.exports=ftGlobals.wcUtils});var M=dr((_u,va)=>{va.exports=ftGlobals.lit});var q=dr((Iu,Sa)=>{Sa.exports=ftGlobals.litDecorators});var Es=dr((je,ws)=>{var $o=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,Bo=function(){function e(){this.fetch=!1,this.DOMException=$o.DOMException}return e.prototype=$o,new e}();(function(e){var t=function(o){var i=typeof e<"u"&&e||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(g){return g&&DataView.prototype.isPrototypeOf(g)}if(n.arrayBuffer)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(g){return g&&s.indexOf(Object.prototype.toString.call(g))>-1};function u(g){if(typeof g!="string"&&(g=String(g)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(g)||g==="")throw new TypeError('Invalid character in header field name: "'+g+'"');return g.toLowerCase()}function p(g){return typeof g!="string"&&(g=String(g)),g}function h(g){var v={next:function(){var P=g.shift();return{done:P===void 0,value:P}}};return n.iterable&&(v[Symbol.iterator]=function(){return v}),v}function y(g){this.map={},g instanceof y?g.forEach(function(v,P){this.append(P,v)},this):Array.isArray(g)?g.forEach(function(v){if(v.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+v.length);this.append(v[0],v[1])},this):g&&Object.getOwnPropertyNames(g).forEach(function(v){this.append(v,g[v])},this)}y.prototype.append=function(g,v){g=u(g),v=p(v);var P=this.map[g];this.map[g]=P?P+", "+v:v},y.prototype.delete=function(g){delete this.map[u(g)]},y.prototype.get=function(g){return g=u(g),this.has(g)?this.map[g]:null},y.prototype.has=function(g){return this.map.hasOwnProperty(u(g))},y.prototype.set=function(g,v){this.map[u(g)]=p(v)},y.prototype.forEach=function(g,v){for(var P in this.map)this.map.hasOwnProperty(P)&&g.call(v,this.map[P],P,this)},y.prototype.keys=function(){var g=[];return this.forEach(function(v,P){g.push(P)}),h(g)},y.prototype.values=function(){var g=[];return this.forEach(function(v){g.push(v)}),h(g)},y.prototype.entries=function(){var g=[];return this.forEach(function(v,P){g.push([P,v])}),h(g)},n.iterable&&(y.prototype[Symbol.iterator]=y.prototype.entries);function b(g){if(!g._noBody){if(g.bodyUsed)return Promise.reject(new TypeError("Already read"));g.bodyUsed=!0}}function x(g){return new Promise(function(v,P){g.onload=function(){v(g.result)},g.onerror=function(){P(g.error)}})}function S(g){var v=new FileReader,P=x(v);return v.readAsArrayBuffer(g),P}function O(g){var v=new FileReader,P=x(v),Y=/charset=([A-Za-z0-9_-]+)/.exec(g.type),at=Y?Y[1]:"utf-8";return v.readAsText(g,at),P}function N(g){for(var v=new Uint8Array(g),P=new Array(v.length),Y=0;Y<v.length;Y++)P[Y]=String.fromCharCode(v[Y]);return P.join("")}function _(g){if(g.slice)return g.slice(0);var v=new Uint8Array(g.byteLength);return v.set(new Uint8Array(g)),v.buffer}function I(){return this.bodyUsed=!1,this._initBody=function(g){this.bodyUsed=this.bodyUsed,this._bodyInit=g,g?typeof g=="string"?this._bodyText=g:n.blob&&Blob.prototype.isPrototypeOf(g)?this._bodyBlob=g:n.formData&&FormData.prototype.isPrototypeOf(g)?this._bodyFormData=g:n.searchParams&&URLSearchParams.prototype.isPrototypeOf(g)?this._bodyText=g.toString():n.arrayBuffer&&n.blob&&a(g)?(this._bodyArrayBuffer=_(g.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):n.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(g)||c(g))?this._bodyArrayBuffer=_(g):this._bodyText=g=Object.prototype.toString.call(g):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof g=="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(g)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n.blob&&(this.blob=function(){var g=b(this);if(g)return g;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 g=b(this);return g||(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(S);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var g=b(this);if(g)return g;if(this._bodyBlob)return O(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(N(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(jt)}),this.json=function(){return this.text().then(JSON.parse)},this}var $=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function z(g){var v=g.toUpperCase();return $.indexOf(v)>-1?v:g}function H(g,v){if(!(this instanceof H))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');v=v||{};var P=v.body;if(g instanceof H){if(g.bodyUsed)throw new TypeError("Already read");this.url=g.url,this.credentials=g.credentials,v.headers||(this.headers=new y(g.headers)),this.method=g.method,this.mode=g.mode,this.signal=g.signal,!P&&g._bodyInit!=null&&(P=g._bodyInit,g.bodyUsed=!0)}else this.url=String(g);if(this.credentials=v.credentials||this.credentials||"same-origin",(v.headers||!this.headers)&&(this.headers=new y(v.headers)),this.method=z(v.method||this.method||"GET"),this.mode=v.mode||this.mode||null,this.signal=v.signal||this.signal||function(){if("AbortController"in i){var V=new AbortController;return V.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&P)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(P),(this.method==="GET"||this.method==="HEAD")&&(v.cache==="no-store"||v.cache==="no-cache")){var Y=/([?&])_=[^&]*/;if(Y.test(this.url))this.url=this.url.replace(Y,"$1_="+new Date().getTime());else{var at=/\?/;this.url+=(at.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}H.prototype.clone=function(){return new H(this,{body:this._bodyInit})};function jt(g){var v=new FormData;return g.trim().split("&").forEach(function(P){if(P){var Y=P.split("="),at=Y.shift().replace(/\+/g," "),V=Y.join("=").replace(/\+/g," ");v.append(decodeURIComponent(at),decodeURIComponent(V))}}),v}function ve(g){var v=new y,P=g.replace(/\r?\n[\t ]+/g," ");return P.split("\r").map(function(Y){return Y.indexOf(`
2
- `)===0?Y.substr(1,Y.length):Y}).forEach(function(Y){var at=Y.split(":"),V=at.shift().trim();if(V){var No=at.join(":").trim();try{v.append(V,No)}catch(Xi){console.warn("Response "+Xi.message)}}}),v}I.call(H.prototype);function Wt(g,v){if(!(this instanceof Wt))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(v||(v={}),this.type="default",this.status=v.status===void 0?200:v.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=v.statusText===void 0?"":""+v.statusText,this.headers=new y(v.headers),this.url=v.url||"",this._initBody(g)}I.call(Wt.prototype),Wt.prototype.clone=function(){return new Wt(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new y(this.headers),url:this.url})},Wt.error=function(){var g=new Wt(null,{status:200,statusText:""});return g.ok=!1,g.status=0,g.type="error",g};var Se=[301,302,303,307,308];Wt.redirect=function(g,v){if(Se.indexOf(v)===-1)throw new RangeError("Invalid status code");return new Wt(null,{status:v,headers:{location:g}})},o.DOMException=i.DOMException;try{new o.DOMException}catch{o.DOMException=function(v,P){this.message=v,this.name=P;var Y=Error(v);this.stack=Y.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function Tt(g,v){return new Promise(function(P,Y){var at=new H(g,v);if(at.signal&&at.signal.aborted)return Y(new o.DOMException("Aborted","AbortError"));var V=new XMLHttpRequest;function No(){V.abort()}V.onload=function(){var _t={statusText:V.statusText,headers:ve(V.getAllResponseHeaders()||"")};at.url.indexOf("file://")===0&&(V.status<200||V.status>599)?_t.status=200:_t.status=V.status,_t.url="responseURL"in V?V.responseURL:_t.headers.get("X-Request-URL");var cr="response"in V?V.response:V.responseText;setTimeout(function(){P(new Wt(cr,_t))},0)},V.onerror=function(){setTimeout(function(){Y(new TypeError("Network request failed"))},0)},V.ontimeout=function(){setTimeout(function(){Y(new TypeError("Network request timed out"))},0)},V.onabort=function(){setTimeout(function(){Y(new o.DOMException("Aborted","AbortError"))},0)};function Xi(_t){try{return _t===""&&i.location.href?i.location.href:_t}catch{return _t}}if(V.open(at.method,Xi(at.url),!0),at.credentials==="include"?V.withCredentials=!0:at.credentials==="omit"&&(V.withCredentials=!1),"responseType"in V&&(n.blob?V.responseType="blob":n.arrayBuffer&&(V.responseType="arraybuffer")),v&&typeof v.headers=="object"&&!(v.headers instanceof y||i.Headers&&v.headers instanceof i.Headers)){var ma=[];Object.getOwnPropertyNames(v.headers).forEach(function(_t){ma.push(u(_t)),V.setRequestHeader(_t,p(v.headers[_t]))}),at.headers.forEach(function(_t,cr){ma.indexOf(cr)===-1&&V.setRequestHeader(cr,_t)})}else at.headers.forEach(function(_t,cr){V.setRequestHeader(cr,_t)});at.signal&&(at.signal.addEventListener("abort",No),V.onreadystatechange=function(){V.readyState===4&&at.signal.removeEventListener("abort",No)}),V.send(typeof at._bodyInit>"u"?null:at._bodyInit)})}return Tt.polyfill=!0,i.fetch||(i.fetch=Tt,i.Headers=y,i.Request=H,i.Response=Wt),o.Headers=y,o.Request=H,o.Response=Wt,o.fetch=Tt,o}({})})(Bo);Bo.fetch.ponyfill=!0;delete Bo.fetch.polyfill;var Lr=$o.fetch?$o:Bo;je=Lr.fetch;je.default=Lr.fetch;je.fetch=Lr.fetch;je.Headers=Lr.Headers;je.Request=Lr.Request;je.Response=Lr.Response;ws.exports=je});var Ne=dr((Dm,hl)=>{hl.exports=ftGlobals.litClassMap});var Zl=dr((Ob,Kl)=>{Kl.exports=ftGlobals.litUnsafeHTML});var Nn=dr((Wx,yc)=>{yc.exports=ftGlobals.litRepeat});var ga=m(R());var jd=m(M()),ce=m(q()),Ut=m(R());var Oa=m(R()),Ca=m(q());var Jr;(function(e){e.clusteringHelperCreated="clustering-helper-created",e.mapAttachmentsUpdate="map-attachments-update"})(Jr||(Jr={}));var re;(function(e){e.FEEDBACK="FEEDBACK",e.RATING="RATING",e.PRINT="PRINT",e.BOOKMARK="BOOKMARK",e.COLLECTIONS="COLLECTIONS",e.PERSONAL_BOOKS="PERSONAL_BOOKS"})(re||(re={}));var ep=function(e,t,o,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,o,i);else for(var c=e.length-1;c>=0;c--)(s=e[c])&&(a=(n<3?s(a):n>3?s(t,o,a):s(t,o))||a);return n>3&&a&&Object.defineProperty(t,o,a),a},Ji=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},Qi=Symbol("registerInterval");function rp(e){var t;class o extends e{constructor(){super(...arguments),this[t]=0}setReaderStateManager(n){this.clearStateManager(),this.stateManager=n,this.addStore(n.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var n;return(n=this.stateManager)===null||n===void 0?void 0:n.service}connectedCallback(){super.connectedCallback(),this[Qi]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[Qi]):this.dispatchEvent(new Ji)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return t=Qi,ep([(0,Ca.state)()],o.prototype,"stateManager",void 0),o}var ze=class extends rp(Oa.FtLitElementRedux){};var gt=m(M()),mt=m(q()),Zi=m(R());var Os=m(M()),J=m(R());var vs=m(M()),U=m(R());var _a=m(M()),bt=m(R()),wa=bt.FtCssVariableFactory.extend("--ft-ripple-color","",bt.designSystemVariables.colorContent),w={color:wa,backgroundColor:bt.FtCssVariableFactory.extend("--ft-ripple-background-color","",wa),opacityContentOnSurfacePressed:bt.FtCssVariableFactory.external(bt.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:bt.FtCssVariableFactory.external(bt.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:bt.FtCssVariableFactory.external(bt.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:bt.FtCssVariableFactory.external(bt.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:bt.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},Ea=bt.FtCssVariableFactory.extend("--ft-ripple-color","",bt.designSystemVariables.colorPrimary),Aa={color:Ea,backgroundColor:bt.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ea)},Ra=bt.FtCssVariableFactory.extend("--ft-ripple-color","",bt.designSystemVariables.colorSecondary),Ta={color:Ra,backgroundColor:bt.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ra)},Ia=_a.css`
1
+ "use strict";(()=>{var Yd=Object.create;var ba=Object.defineProperty;var Xd=Object.getOwnPropertyDescriptor;var Qd=Object.getOwnPropertyNames;var Jd=Object.getPrototypeOf,tp=Object.prototype.hasOwnProperty;var pr=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var ep=(e,t,o,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Qd(t))!tp.call(e,n)&&n!==o&&ba(e,n,{get:()=>t[n],enumerable:!(i=Xd(t,n))||i.enumerable});return e};var m=(e,t,o)=>(o=e!=null?Yd(Jd(e)):{},ep(t||!e||!e.__esModule?ba(o,"default",{value:e,enumerable:!0}):o,e));var R=pr((_u,xa)=>{xa.exports=ftGlobals.wcUtils});var M=pr((Iu,va)=>{va.exports=ftGlobals.lit});var q=pr((Nu,Sa)=>{Sa.exports=ftGlobals.litDecorators});var Es=pr((Ke,ws)=>{var $o=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,Bo=function(){function e(){this.fetch=!1,this.DOMException=$o.DOMException}return e.prototype=$o,new e}();(function(e){var t=function(o){var i=typeof e<"u"&&e||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(g){return g&&DataView.prototype.isPrototypeOf(g)}if(n.arrayBuffer)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(g){return g&&s.indexOf(Object.prototype.toString.call(g))>-1};function u(g){if(typeof g!="string"&&(g=String(g)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(g)||g==="")throw new TypeError('Invalid character in header field name: "'+g+'"');return g.toLowerCase()}function p(g){return typeof g!="string"&&(g=String(g)),g}function h(g){var v={next:function(){var k=g.shift();return{done:k===void 0,value:k}}};return n.iterable&&(v[Symbol.iterator]=function(){return v}),v}function y(g){this.map={},g instanceof y?g.forEach(function(v,k){this.append(k,v)},this):Array.isArray(g)?g.forEach(function(v){if(v.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+v.length);this.append(v[0],v[1])},this):g&&Object.getOwnPropertyNames(g).forEach(function(v){this.append(v,g[v])},this)}y.prototype.append=function(g,v){g=u(g),v=p(v);var k=this.map[g];this.map[g]=k?k+", "+v:v},y.prototype.delete=function(g){delete this.map[u(g)]},y.prototype.get=function(g){return g=u(g),this.has(g)?this.map[g]:null},y.prototype.has=function(g){return this.map.hasOwnProperty(u(g))},y.prototype.set=function(g,v){this.map[u(g)]=p(v)},y.prototype.forEach=function(g,v){for(var k in this.map)this.map.hasOwnProperty(k)&&g.call(v,this.map[k],k,this)},y.prototype.keys=function(){var g=[];return this.forEach(function(v,k){g.push(k)}),h(g)},y.prototype.values=function(){var g=[];return this.forEach(function(v){g.push(v)}),h(g)},y.prototype.entries=function(){var g=[];return this.forEach(function(v,k){g.push([k,v])}),h(g)},n.iterable&&(y.prototype[Symbol.iterator]=y.prototype.entries);function b(g){if(!g._noBody){if(g.bodyUsed)return Promise.reject(new TypeError("Already read"));g.bodyUsed=!0}}function x(g){return new Promise(function(v,k){g.onload=function(){v(g.result)},g.onerror=function(){k(g.error)}})}function S(g){var v=new FileReader,k=x(v);return v.readAsArrayBuffer(g),k}function O(g){var v=new FileReader,k=x(v),Y=/charset=([A-Za-z0-9_-]+)/.exec(g.type),st=Y?Y[1]:"utf-8";return v.readAsText(g,st),k}function N(g){for(var v=new Uint8Array(g),k=new Array(v.length),Y=0;Y<v.length;Y++)k[Y]=String.fromCharCode(v[Y]);return k.join("")}function _(g){if(g.slice)return g.slice(0);var v=new Uint8Array(g.byteLength);return v.set(new Uint8Array(g)),v.buffer}function I(){return this.bodyUsed=!1,this._initBody=function(g){this.bodyUsed=this.bodyUsed,this._bodyInit=g,g?typeof g=="string"?this._bodyText=g:n.blob&&Blob.prototype.isPrototypeOf(g)?this._bodyBlob=g:n.formData&&FormData.prototype.isPrototypeOf(g)?this._bodyFormData=g:n.searchParams&&URLSearchParams.prototype.isPrototypeOf(g)?this._bodyText=g.toString():n.arrayBuffer&&n.blob&&a(g)?(this._bodyArrayBuffer=_(g.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):n.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(g)||c(g))?this._bodyArrayBuffer=_(g):this._bodyText=g=Object.prototype.toString.call(g):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof g=="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(g)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n.blob&&(this.blob=function(){var g=b(this);if(g)return g;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 g=b(this);return g||(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(S);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var g=b(this);if(g)return g;if(this._bodyBlob)return O(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(N(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(jt)}),this.json=function(){return this.text().then(JSON.parse)},this}var $=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function z(g){var v=g.toUpperCase();return $.indexOf(v)>-1?v:g}function H(g,v){if(!(this instanceof H))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');v=v||{};var k=v.body;if(g instanceof H){if(g.bodyUsed)throw new TypeError("Already read");this.url=g.url,this.credentials=g.credentials,v.headers||(this.headers=new y(g.headers)),this.method=g.method,this.mode=g.mode,this.signal=g.signal,!k&&g._bodyInit!=null&&(k=g._bodyInit,g.bodyUsed=!0)}else this.url=String(g);if(this.credentials=v.credentials||this.credentials||"same-origin",(v.headers||!this.headers)&&(this.headers=new y(v.headers)),this.method=z(v.method||this.method||"GET"),this.mode=v.mode||this.mode||null,this.signal=v.signal||this.signal||function(){if("AbortController"in i){var V=new AbortController;return V.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&k)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(k),(this.method==="GET"||this.method==="HEAD")&&(v.cache==="no-store"||v.cache==="no-cache")){var Y=/([?&])_=[^&]*/;if(Y.test(this.url))this.url=this.url.replace(Y,"$1_="+new Date().getTime());else{var st=/\?/;this.url+=(st.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}H.prototype.clone=function(){return new H(this,{body:this._bodyInit})};function jt(g){var v=new FormData;return g.trim().split("&").forEach(function(k){if(k){var Y=k.split("="),st=Y.shift().replace(/\+/g," "),V=Y.join("=").replace(/\+/g," ");v.append(decodeURIComponent(st),decodeURIComponent(V))}}),v}function ve(g){var v=new y,k=g.replace(/\r?\n[\t ]+/g," ");return k.split("\r").map(function(Y){return Y.indexOf(`
2
+ `)===0?Y.substr(1,Y.length):Y}).forEach(function(Y){var st=Y.split(":"),V=st.shift().trim();if(V){var No=st.join(":").trim();try{v.append(V,No)}catch(Xi){console.warn("Response "+Xi.message)}}}),v}I.call(H.prototype);function Wt(g,v){if(!(this instanceof Wt))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(v||(v={}),this.type="default",this.status=v.status===void 0?200:v.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=v.statusText===void 0?"":""+v.statusText,this.headers=new y(v.headers),this.url=v.url||"",this._initBody(g)}I.call(Wt.prototype),Wt.prototype.clone=function(){return new Wt(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new y(this.headers),url:this.url})},Wt.error=function(){var g=new Wt(null,{status:200,statusText:""});return g.ok=!1,g.status=0,g.type="error",g};var Se=[301,302,303,307,308];Wt.redirect=function(g,v){if(Se.indexOf(v)===-1)throw new RangeError("Invalid status code");return new Wt(null,{status:v,headers:{location:g}})},o.DOMException=i.DOMException;try{new o.DOMException}catch{o.DOMException=function(v,k){this.message=v,this.name=k;var Y=Error(v);this.stack=Y.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function Tt(g,v){return new Promise(function(k,Y){var st=new H(g,v);if(st.signal&&st.signal.aborted)return Y(new o.DOMException("Aborted","AbortError"));var V=new XMLHttpRequest;function No(){V.abort()}V.onload=function(){var _t={statusText:V.statusText,headers:ve(V.getAllResponseHeaders()||"")};st.url.indexOf("file://")===0&&(V.status<200||V.status>599)?_t.status=200:_t.status=V.status,_t.url="responseURL"in V?V.responseURL:_t.headers.get("X-Request-URL");var dr="response"in V?V.response:V.responseText;setTimeout(function(){k(new Wt(dr,_t))},0)},V.onerror=function(){setTimeout(function(){Y(new TypeError("Network request failed"))},0)},V.ontimeout=function(){setTimeout(function(){Y(new TypeError("Network request timed out"))},0)},V.onabort=function(){setTimeout(function(){Y(new o.DOMException("Aborted","AbortError"))},0)};function Xi(_t){try{return _t===""&&i.location.href?i.location.href:_t}catch{return _t}}if(V.open(st.method,Xi(st.url),!0),st.credentials==="include"?V.withCredentials=!0:st.credentials==="omit"&&(V.withCredentials=!1),"responseType"in V&&(n.blob?V.responseType="blob":n.arrayBuffer&&(V.responseType="arraybuffer")),v&&typeof v.headers=="object"&&!(v.headers instanceof y||i.Headers&&v.headers instanceof i.Headers)){var ma=[];Object.getOwnPropertyNames(v.headers).forEach(function(_t){ma.push(u(_t)),V.setRequestHeader(_t,p(v.headers[_t]))}),st.headers.forEach(function(_t,dr){ma.indexOf(dr)===-1&&V.setRequestHeader(dr,_t)})}else st.headers.forEach(function(_t,dr){V.setRequestHeader(dr,_t)});st.signal&&(st.signal.addEventListener("abort",No),V.onreadystatechange=function(){V.readyState===4&&st.signal.removeEventListener("abort",No)}),V.send(typeof st._bodyInit>"u"?null:st._bodyInit)})}return Tt.polyfill=!0,i.fetch||(i.fetch=Tt,i.Headers=y,i.Request=H,i.Response=Wt),o.Headers=y,o.Request=H,o.Response=Wt,o.fetch=Tt,o}({})})(Bo);Bo.fetch.ponyfill=!0;delete Bo.fetch.polyfill;var Lr=$o.fetch?$o:Bo;Ke=Lr.fetch;Ke.default=Lr.fetch;Ke.fetch=Lr.fetch;Ke.Headers=Lr.Headers;Ke.Request=Lr.Request;Ke.Response=Lr.Response;ws.exports=Ke});var Le=pr((Bm,yl)=>{yl.exports=ftGlobals.litClassMap});var ql=pr((wb,Zl)=>{Zl.exports=ftGlobals.litUnsafeHTML});var Nn=pr((Hx,gc)=>{gc.exports=ftGlobals.litRepeat});var ga=m(R());var Kd=m(M()),ce=m(q()),Ut=m(R());var Oa=m(R()),Ca=m(q());var Jr;(function(e){e.clusteringHelperCreated="clustering-helper-created",e.mapAttachmentsUpdate="map-attachments-update"})(Jr||(Jr={}));var re;(function(e){e.FEEDBACK="FEEDBACK",e.RATING="RATING",e.PRINT="PRINT",e.BOOKMARK="BOOKMARK",e.COLLECTIONS="COLLECTIONS",e.PERSONAL_BOOKS="PERSONAL_BOOKS"})(re||(re={}));var rp=function(e,t,o,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,o,i);else for(var c=e.length-1;c>=0;c--)(s=e[c])&&(a=(n<3?s(a):n>3?s(t,o,a):s(t,o))||a);return n>3&&a&&Object.defineProperty(t,o,a),a},Ji=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},Qi=Symbol("registerInterval");function op(e){var t;class o extends e{constructor(){super(...arguments),this[t]=0}setReaderStateManager(n){this.clearStateManager(),this.stateManager=n,this.addStore(n.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var n;return(n=this.stateManager)===null||n===void 0?void 0:n.service}connectedCallback(){super.connectedCallback(),this[Qi]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[Qi]):this.dispatchEvent(new Ji)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return t=Qi,rp([(0,Ca.state)()],o.prototype,"stateManager",void 0),o}var He=class extends op(Oa.FtLitElementRedux){};var gt=m(M()),mt=m(q()),Zi=m(R());var Os=m(M()),J=m(R());var vs=m(M()),U=m(R());var _a=m(M()),bt=m(R()),wa=bt.FtCssVariableFactory.extend("--ft-ripple-color","",bt.designSystemVariables.colorContent),w={color:wa,backgroundColor:bt.FtCssVariableFactory.extend("--ft-ripple-background-color","",wa),opacityContentOnSurfacePressed:bt.FtCssVariableFactory.external(bt.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:bt.FtCssVariableFactory.external(bt.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:bt.FtCssVariableFactory.external(bt.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:bt.FtCssVariableFactory.external(bt.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:bt.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},Ea=bt.FtCssVariableFactory.extend("--ft-ripple-color","",bt.designSystemVariables.colorPrimary),Aa={color:Ea,backgroundColor:bt.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ea)},Ra=bt.FtCssVariableFactory.extend("--ft-ripple-color","",bt.designSystemVariables.colorSecondary),Ta={color:Ra,backgroundColor:bt.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ra)},Ia=_a.css`
3
3
  :host {
4
4
  display: contents;
5
5
  }
@@ -111,9 +111,9 @@
111
111
  opacity: ${w.opacityContentOnSurfacePressed};
112
112
  transform: translate(-50%, -50%) scale(1);
113
113
  }
114
- `;var ie=m(M()),A=m(R());var _e=m(M(),1),He=e=>typeof e=="string"?(0,_e.unsafeCSS)(e):e,r=class{static create(t,o,i,n){let a=c=>He(c??n),s=_e.css`var(${He(t)}, ${a(n)})`;return s.name=t,s.description=o,s.category=i,s.defaultValue=n,s.defaultCssValue=a,s.get=c=>_e.css`var(${He(t)}, ${a(c)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>n,s}static extend(t,o,i,n){let a=c=>i.get(c??n),s=_e.css`var(${He(t)}, ${a(n)})`;return s.name=t,s.description=o,s.category=i.category,s.fallbackVariable=i,s.defaultValue=n,s.defaultCssValue=a,s.get=c=>_e.css`var(${He(t)}, ${a(c)})`,s.breadcrumb=()=>[i.name,...i.breadcrumb()],s.lastResortDefaultValue=()=>n??i.lastResortDefaultValue(),s}static external(t,o){let i=a=>t.fallbackVariable?t.fallbackVariable.get(a??t.defaultValue):He(a??t.lastResortDefaultValue()),n=_e.css`var(${He(t.name)}, ${i(t.defaultValue)})`;return n.name=t.name,n.category=t.category,n.fallbackVariable=t.fallbackVariable,n.defaultValue=t.defaultValue,n.context=o,n.defaultCssValue=i,n.get=a=>_e.css`var(${He(t.name)}, ${i(a)})`,n.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],n.lastResortDefaultValue=()=>t.lastResortDefaultValue(),n}};var l={colorWhite:r.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:r.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:r.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:r.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:r.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:r.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:r.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:r.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:r.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:r.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:r.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:r.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:r.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:r.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:r.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:r.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:r.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:r.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:r.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:r.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:r.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:r.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:r.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:r.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:r.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:r.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:r.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:r.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:r.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:r.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:r.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:r.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:r.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:r.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:r.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:r.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:r.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:r.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:r.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:r.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:r.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:r.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:r.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:r.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:r.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:r.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:r.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:r.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:r.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:r.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:r.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:r.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:r.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:r.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:r.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:r.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:r.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:r.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:r.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:r.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:r.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:r.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:r.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:r.create("--ft-color-orange-0","","COLOR","#F2700D"),colorOrange10:r.create("--ft-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:r.create("--ft-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:r.create("--ft-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:r.create("--ft-color-orange-40","","COLOR","#FECB90"),colorOrange50:r.create("--ft-color-orange-50","","COLOR","#FCB76E"),colorOrange60:r.create("--ft-color-orange-60","","COLOR","#F9A34D"),colorOrange70:r.create("--ft-color-orange-70","","COLOR","#F68B2C"),colorOrange100:r.create("--ft-color-orange-100","","COLOR","#D35909"),colorOrange200:r.create("--ft-color-orange-200","","COLOR","#B74706"),colorOrange300:r.create("--ft-color-orange-300","","COLOR","#913503"),colorOrange400:r.create("--ft-color-orange-400","","COLOR","#6F2601"),colorOrange500:r.create("--ft-color-orange-500","","COLOR","#4D1800"),colorOrange600:r.create("--ft-color-orange-600","","COLOR","#330F00"),colorOrange700:r.create("--ft-color-orange-700","","COLOR","#140600"),colorRed0:r.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:r.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:r.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:r.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:r.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:r.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:r.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:r.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:r.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:r.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:r.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:r.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:r.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:r.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:r.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:r.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:r.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:r.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:r.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:r.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:r.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:r.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:r.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:r.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:r.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:r.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:r.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:r.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:r.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:r.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:r.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:r.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:r.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:r.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:r.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:r.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:r.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:r.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:r.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:r.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:r.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:r.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:r.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:r.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:r.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:r.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:r.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:r.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:r.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:r.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:r.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:r.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:r.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:r.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:r.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:r.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:r.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:r.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:r.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:r.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:r.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:r.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:r.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:r.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:r.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:r.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:r.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:r.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:r.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:r.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:r.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:r.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:r.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:r.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:r.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:r.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:r.create("--ft-spacing-2","","SIZE","calc(0.25rem*2)"),spacing3:r.create("--ft-spacing-3","","SIZE","calc(0.25rem*3)"),spacing4:r.create("--ft-spacing-4","","SIZE","calc(0.25rem*4)"),spacing5:r.create("--ft-spacing-5","","SIZE","calc(0.25rem*5)"),spacing6:r.create("--ft-spacing-6","","SIZE","calc(0.25rem*6)"),spacing8:r.create("--ft-spacing-8","","SIZE","calc(0.25rem*8)"),spacing10:r.create("--ft-spacing-10","","SIZE","calc(0.25rem*10)"),spacing12:r.create("--ft-spacing-12","","SIZE","calc(0.25rem*12)"),spacing16:r.create("--ft-spacing-16","","SIZE","calc(0.25rem*16)"),spacing20:r.create("--ft-spacing-20","","SIZE","calc(0.25rem*20)"),spacing24:r.create("--ft-spacing-24","","SIZE","calc(0.25rem*24)"),spacing28:r.create("--ft-spacing-28","","SIZE","calc(0.25rem*28)"),spacing32:r.create("--ft-spacing-32","","SIZE","calc(0.25rem*32)"),spacing05:r.create("--ft-spacing-0-5","","SIZE","calc(0.25rem*0.5)"),borderRadiusS:r.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:r.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:r.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:r.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:r.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:r.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:r.create("--ft-icon-size-1","","SIZE","0.75rem"),iconSize2:r.create("--ft-icon-size-2","","SIZE","1rem"),iconSize3:r.create("--ft-icon-size-3","","SIZE","1.25rem"),iconSize4:r.create("--ft-icon-size-4","","SIZE","1.5rem"),iconSize5:r.create("--ft-icon-size-5","","SIZE","2rem"),iconSize6:r.create("--ft-icon-size-6","","SIZE","3rem"),opacity0:r.create("--ft-opacity-0","","NUMBER","0"),opacity8:r.create("--ft-opacity-8","","NUMBER","0.08"),opacity12:r.create("--ft-opacity-12","","NUMBER","0.12"),opacity16:r.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:r.create("--ft-opacity-24","","NUMBER","0.24"),opacity32:r.create("--ft-opacity-32","","NUMBER","0.32"),opacity40:r.create("--ft-opacity-40","","NUMBER","0.4"),opacity48:r.create("--ft-opacity-48","","NUMBER","0.48"),opacity80:r.create("--ft-opacity-80","","NUMBER","0.8"),shadowElevation01:r.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:r.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:r.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:r.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:r.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:r.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:r.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:r.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:r.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)")},Na={fontFamily:r.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:r.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:r.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:r.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-display-textCase","","UNKNOWN","none")},La={fontFamily:r.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:r.create("--ft-typography-title-1-fontSize","","SIZE","1.5rem"),letterSpacing:r.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:r.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},Pa={fontFamily:r.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-title-2-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:r.create("--ft-typography-title-2-fontSize","","SIZE","1.25rem"),letterSpacing:r.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:r.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},ka={fontFamily:r.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-title-3-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:r.create("--ft-typography-title-3-fontSize","","SIZE","1.125rem"),letterSpacing:r.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:r.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},Da={fontFamily:r.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:r.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:r.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:r.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:r.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},$a={fontFamily:r.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:r.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:r.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:r.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},Ba={fontFamily:r.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:r.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:r.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:r.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},Ma={fontFamily:r.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:r.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:r.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:r.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:r.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},Ua={fontFamily:r.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:r.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:r.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:r.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},op={fontFamily:r.create("--ft-typography-body-2-medium-underline-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-body-2-medium-underline-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-body-2-medium-underline-lineHeight","","SIZE","135%"),fontSize:r.create("--ft-typography-body-2-medium-underline-fontSize","","SIZE","0.875rem"),letterSpacing:r.create("--ft-typography-body-2-medium-underline-letterSpacing","","SIZE","normal"),paragraphSpacing:r.create("--ft-typography-body-2-medium-underline-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-body-2-medium-underline-paragraphIndent","","UNKNOWN","0"),textCase:r.create("--ft-typography-body-2-medium-underline-textCase","","UNKNOWN","none"),textDecoration:r.create("--ft-typography-body-2-medium-underline-textDecoration","","UNKNOWN","underline")},Fa={fontFamily:r.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:r.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:r.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:r.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},Wa={fontFamily:r.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:r.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:r.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:r.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:r.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},za={fontFamily:r.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:r.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:r.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:r.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:r.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},Ha={fontFamily:r.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:r.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:r.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:r.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:r.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:r.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},Va={fontFamily:r.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:r.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:r.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:r.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:r.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},Ga={fontFamily:r.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:r.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:r.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:r.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:r.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},ja={fontFamily:r.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:r.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:r.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:r.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:r.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:r.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},Ka={fontFamily:r.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:r.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:r.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},Za={fontFamily:r.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:r.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:r.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},qa={fontFamily:r.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:r.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:r.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:r.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},Ya={fontFamily:r.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:r.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:r.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},Xa={fontFamily:r.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:r.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:r.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},Qa={fontFamily:r.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:r.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:r.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:r.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")},Ja={fontFamily:r.create("--ft-typography-caption-3-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-3-medium-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-caption-3-medium-lineHeight","","SIZE","130%"),fontSize:r.create("--ft-typography-caption-3-medium-fontSize","","SIZE","0.625rem"),letterSpacing:r.create("--ft-typography-caption-3-medium-letterSpacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-3-medium-textCase","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-3-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-3-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-3-medium-textDecoration","","UNKNOWN","none")},ts={fontFamily:r.create("--ft-typography-caption-3-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-3-semibold-fontWeight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-caption-3-semibold-lineHeight","","SIZE","130%"),fontSize:r.create("--ft-typography-caption-3-semibold-fontSize","","SIZE","0.625rem"),letterSpacing:r.create("--ft-typography-caption-3-semibold-letterSpacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-3-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-3-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-3-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-3-semibold-textDecoration","","UNKNOWN","none")},es={fontFamily:r.create("--ft-typography-caption-3-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-3-bold-fontWeight","","UNKNOWN","700"),lineHeight:r.create("--ft-typography-caption-3-bold-lineHeight","","SIZE","130%"),fontSize:r.create("--ft-typography-caption-3-bold-fontSize","","SIZE","0.625rem"),letterSpacing:r.create("--ft-typography-caption-3-bold-letterSpacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-3-bold-textCase","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-3-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-3-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-3-bold-textDecoration","","UNKNOWN","none")},Lo={display:Na,"title-1":La,"title-2":Pa,"title-3":ka,"body-1-regular":Da,"body-1-medium":$a,"body-1-semibold":Ba,"body-2-regular":Ma,"body-2-medium":Ua,"body-2-medium-underline":op,"body-2-semibold":Fa,"label-1-medium":Wa,"label-1-semibold":za,"label-1-bold":Ha,"label-2-medium":Va,"label-2-semibold":Ga,"label-2-bold":ja,"caption-1-medium":Ka,"caption-1-semibold":Za,"caption-1-bold":qa,"caption-2-medium":Ya,"caption-2-semibold":Xa,"caption-2-bold":Qa,"caption-3-medium":Ja,"caption-3-semibold":ts,"caption-3-bold":es};var d={backgroundActionPrimary:r.extend("--ft-background-action-primary","Used as backgorund of primary action components.",l.colorBrand0),backgroundErrorSubtle:r.extend("--ft-background-error-subtle","Used as background of subtle error components.",l.colorRed10),backgroundInfoSubtle:r.extend("--ft-background-info-subtle","Used as background of subtle information components.",l.colorCyan10),backgroundWarningSubtle:r.extend("--ft-background-warning-subtle","Used as background of subtle information components.",l.colorOrange10),backgroundSuccessSubtle:r.extend("--ft-background-success-subtle","Used as background of subtle success components.",l.colorGreen10),backgroundGlobalSurface:r.extend("--ft-background-global-surface","Used as app background.",l.colorWhite),backgroundGlobalOnSurface:r.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",l.colorGray10),backgroundGlobalOnSurfaceDark:r.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",l.colorGray30),contentActionPrimary:r.extend("--ft-content-action-primary","Used on label of primary action on light surface.",l.colorBrand0),contentWarningPrimary:r.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",l.colorOrange200),contentWarningIconOnly:r.extend("--ft-content-warning-icon-only","Used on warning status icons alone",l.colorOrange0),contentErrorPrimary:r.extend("--ft-content-error-primary","Used on label of error messages on light surface.",l.colorRed0),contentErrorIconOnly:r.extend("--ft-content-error-icon-only","Used on error status icons alone",l.colorRed70),contentInfoPrimary:r.extend("--ft-content-info-primary","Used on label of information messages on light surface.",l.colorCyan200),contentInfoIconOnly:r.extend("--ft-content-info-icon-only","Used on info status icons alone",l.colorCyan0),contentSuccessPrimary:r.extend("--ft-content-success-primary","Used on label of success messages on light surface.",l.colorGreen200),contentSuccessIconOnly:r.extend("--ft-content-success-icon-only","Used on success status icons alone",l.colorGreen0),contentGlobalPrimary:r.extend("--ft-content-global-primary","Used for main content on the page.",l.colorGray500),contentGlobalSecondary:r.extend("--ft-content-global-secondary",`Used for secondary content, often paired with primary content.
115
- Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",l.colorGray0),contentGlobalOnColor:r.extend("--ft-content-global-on-color","Used for content on a dominant color.",l.colorWhite),borderActionPrimary:r.extend("--ft-border-action-primary","Used as border for primary action components.",l.colorBrand0),borderActionFocusRing:r.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",l.colorCyan0),borderWarningPrimary:r.extend("--ft-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",l.colorOrange200),borderWarningSubtle:r.extend("--ft-border-warning-subtle","Used as border for warning components.",l.colorOrange30),borderSuccessPrimary:r.extend("--ft-border-success-primary","Used as border for success buttons.",l.colorGreen200),borderSuccessSubtle:r.extend("--ft-border-success-subtle","Used as border for success components.",l.colorGreen30),borderErrorPrimary:r.extend("--ft-border-error-primary","Used as border for text fields in error states.",l.colorRed0),borderErrorSubtle:r.extend("--ft-border-error-subtle","Used as border for error components.",l.colorRed30),borderInfoPrimary:r.extend("--ft-border-info-primary","Used as border for buttons in info color.",l.colorCyan200),borderInfoSubtle:r.extend("--ft-border-info-subtle","Used as border for information components.",l.colorCyan30),borderGlobalPrimary:r.extend("--ft-border-global-primary","Used as border for element like input.",l.colorGray50),borderGlobalSubtle:r.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",l.colorGray30),borderInputPrimary:r.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",l.colorGray80),borderNeutralPrimary:r.extend("--ft-border-neutral-primary","Used as border for neutral secondary buttons",l.colorGray200)};var f={largeHeight:r.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:r.extend("--ft-button-large-horizontal-padding","",l.spacing4),largeGap:r.extend("--ft-button-large-gap","",l.spacing2),largeBorderRadius:r.extend("--ft-button-large-border-radius","",l.borderRadiusS),largeIconSize:r.extend("--ft-button-large-icon-size","",l.iconSize3),largeBorderWidth:r.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:r.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:r.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:r.create("--ft-button-large-icon-only-width","","SIZE","40px"),mediumHeight:r.create("--ft-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:r.extend("--ft-button-medium-horizontal-padding","",l.spacing3),mediumGap:r.extend("--ft-button-medium-gap","",l.spacing2),mediumBorderRadius:r.extend("--ft-button-medium-border-radius","",l.borderRadiusS),mediumIconSize:r.extend("--ft-button-medium-icon-size","",l.iconSize2),mediumBorderWidth:r.create("--ft-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:r.create("--ft-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:r.create("--ft-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:r.create("--ft-button-medium-icon-only-width","","SIZE","30px"),smallHeight:r.create("--ft-button-small-height","","SIZE","20px"),smallHorizontalPadding:r.extend("--ft-button-small-horizontal-padding","",l.spacing2),smallGap:r.extend("--ft-button-small-gap","",l.spacing1),smallBorderRadius:r.extend("--ft-button-small-border-radius","",l.borderRadiusS),smallIconSize:r.extend("--ft-button-small-icon-size","",l.iconSize1),smallBorderWidth:r.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:r.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:r.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:r.create("--ft-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:r.create("--ft-button-x-small-height","","SIZE","16px"),xSmallIconSize:r.extend("--ft-button-x-small-icon-size","",l.iconSize1),xSmallFocusOutlineOffset:r.create("--ft-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:r.create("--ft-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:r.create("--ft-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:r.extend("--ft-button-round-border-radius","",l.borderRadiusPill),primaryBrandBackgroundColor:r.extend("--ft-button-primary-brand-background-color","",d.backgroundActionPrimary),primaryBrandColor:r.extend("--ft-button-primary-brand-color","",d.contentGlobalOnColor),primaryBrandIconColor:r.extend("--ft-button-primary-brand-icon-color","",d.contentGlobalOnColor),primaryBrandStateLayerColor:r.extend("--ft-button-primary-brand-state-layer-color","",d.contentGlobalOnColor),primaryBrandHoverStateLayerOpacity:r.extend("--ft-button-primary-brand-hover-state-layer-opacity","",l.opacity16),primaryBrandFocusStateLayerOpacity:r.extend("--ft-button-primary-brand-focus-state-layer-opacity","",l.opacity16),primaryBrandActiveStateLayerOpacity:r.extend("--ft-button-primary-brand-active-state-layer-opacity","",l.opacity24),primaryBrandDisabledComponentOpacity:r.extend("--ft-button-primary-brand-disabled-component-opacity","",l.opacity40),focusFocusRingColor:r.extend("--ft-button-focus-focus-ring-color","",d.borderActionFocusRing),tertiaryBrandBackgroundColor:r.create("--ft-button-tertiary-brand-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryBrandColor:r.extend("--ft-button-tertiary-brand-color","",d.contentActionPrimary),tertiaryBrandIconColor:r.extend("--ft-button-tertiary-brand-icon-color","",d.contentActionPrimary),tertiaryBrandStateLayerColor:r.extend("--ft-button-tertiary-brand-state-layer-color","",d.contentActionPrimary),tertiaryBrandHoverStateLayerOpacity:r.extend("--ft-button-tertiary-brand-hover-state-layer-opacity","",l.opacity8),tertiaryBrandFocusStateLayerOpacity:r.extend("--ft-button-tertiary-brand-focus-state-layer-opacity","",l.opacity8),tertiaryBrandActiveStateLayerOpacity:r.extend("--ft-button-tertiary-brand-active-state-layer-opacity","",l.opacity16),tertiaryBrandDisabledComponentOpacity:r.extend("--ft-button-tertiary-brand-disabled-component-opacity","",l.opacity40),tertiaryInfoBackgroundColor:r.create("--ft-button-tertiary-info-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryInfoColor:r.extend("--ft-button-tertiary-info-color","",d.contentInfoPrimary),tertiaryInfoIconColor:r.extend("--ft-button-tertiary-info-icon-color","",d.contentInfoPrimary),tertiaryInfoStateLayerColor:r.extend("--ft-button-tertiary-info-state-layer-color","",d.contentInfoPrimary),tertiaryInfoFocusStateLayerOpacity:r.extend("--ft-button-tertiary-info-focus-state-layer-opacity","",l.opacity8),tertiaryInfoHoverStateLayerOpacity:r.extend("--ft-button-tertiary-info-hover-state-layer-opacity","",l.opacity8),tertiaryInfoActiveStateLayerOpacity:r.extend("--ft-button-tertiary-info-active-state-layer-opacity","",l.opacity16),tertiaryInfoDisabledComponentOpacity:r.extend("--ft-button-tertiary-info-disabled-component-opacity","",l.opacity40),tertiarySuccessBackgroundColor:r.create("--ft-button-tertiary-success-background-color","","COLOR","rgba(0,0,0,0)"),tertiarySuccessColor:r.extend("--ft-button-tertiary-success-color","",d.contentSuccessPrimary),tertiarySuccessIconColor:r.extend("--ft-button-tertiary-success-icon-color","",d.contentSuccessPrimary),tertiarySuccessStateLayerColor:r.extend("--ft-button-tertiary-success-state-layer-color","",d.contentSuccessPrimary),tertiarySuccessHoverStateLayerOpacity:r.extend("--ft-button-tertiary-success-hover-state-layer-opacity","",l.opacity8),tertiarySuccessFocusStateLayerOpacity:r.extend("--ft-button-tertiary-success-focus-state-layer-opacity","",l.opacity8),tertiarySuccessActiveStateLayerOpacity:r.extend("--ft-button-tertiary-success-active-state-layer-opacity","",l.opacity16),tertiarySuccessDisabledComponentOpacity:r.extend("--ft-button-tertiary-success-disabled-component-opacity","",l.opacity40),tertiaryWarningBackgroundColor:r.create("--ft-button-tertiary-warning-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryWarningColor:r.extend("--ft-button-tertiary-warning-color","",d.contentWarningPrimary),tertiaryWarningIconColor:r.extend("--ft-button-tertiary-warning-icon-color","",d.contentWarningPrimary),tertiaryWarningStateLayerColor:r.extend("--ft-button-tertiary-warning-state-layer-color","",d.contentWarningPrimary),tertiaryWarningHoverStateLayerOpacity:r.extend("--ft-button-tertiary-warning-hover-state-layer-opacity","",l.opacity8),tertiaryWarningFocusStateLayerOpacity:r.extend("--ft-button-tertiary-warning-focus-state-layer-opacity","",l.opacity8),tertiaryWarningActiveStateLayerOpacity:r.extend("--ft-button-tertiary-warning-active-state-layer-opacity","",l.opacity16),tertiaryWarningDisabledComponentOpacity:r.extend("--ft-button-tertiary-warning-disabled-component-opacity","",l.opacity40),tertiaryErrorBackgroundColor:r.create("--ft-button-tertiary-error-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryErrorColor:r.extend("--ft-button-tertiary-error-color","",d.contentErrorPrimary),tertiaryErrorIconColor:r.extend("--ft-button-tertiary-error-icon-color","",d.contentErrorPrimary),tertiaryErrorStateLayerColor:r.extend("--ft-button-tertiary-error-state-layer-color","",d.contentErrorPrimary),tertiaryErrorHoverStateLayerOpacity:r.extend("--ft-button-tertiary-error-hover-state-layer-opacity","",l.opacity8),tertiaryErrorFocusStateLayerOpacity:r.extend("--ft-button-tertiary-error-focus-state-layer-opacity","",l.opacity8),tertiaryErrorActiveStateLayerOpacity:r.extend("--ft-button-tertiary-error-active-state-layer-opacity","",l.opacity16),tertiaryErrorDisabledComponentOpacity:r.extend("--ft-button-tertiary-error-disabled-component-opacity","",l.opacity40),tertiaryNeutralBackgroundColor:r.create("--ft-button-tertiary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryNeutralIconColor:r.extend("--ft-button-tertiary-neutral-icon-color","",d.contentGlobalSecondary),tertiaryNeutralColor:r.extend("--ft-button-tertiary-neutral-color","",d.contentGlobalSecondary),tertiaryNeutralStateLayerColor:r.extend("--ft-button-tertiary-neutral-state-layer-color","",d.contentGlobalSecondary),tertiaryNeutralHoverStateLayerOpacity:r.extend("--ft-button-tertiary-neutral-hover-state-layer-opacity","",l.opacity8),tertiaryNeutralFocusStateLayerOpacity:r.extend("--ft-button-tertiary-neutral-focus-state-layer-opacity","",l.opacity8),tertiaryNeutralActiveStateLayerOpacity:r.extend("--ft-button-tertiary-neutral-active-state-layer-opacity","",l.opacity16),tertiaryNeutralDisabledComponentOpacity:r.extend("--ft-button-tertiary-neutral-disabled-component-opacity","",l.opacity40),secondaryBrandBackgroundColor:r.create("--ft-button-secondary-brand-background-color","","COLOR","rgba(0,0,0,0)"),secondaryBrandColor:r.extend("--ft-button-secondary-brand-color","",d.contentActionPrimary),secondaryBrandIconColor:r.extend("--ft-button-secondary-brand-icon-color","",d.contentActionPrimary),secondaryBrandStateLayerColor:r.extend("--ft-button-secondary-brand-state-layer-color","",d.contentActionPrimary),secondaryBrandHoverStateLayerOpacity:r.extend("--ft-button-secondary-brand-hover-state-layer-opacity","",l.opacity8),secondaryBrandFocusStateLayerOpacity:r.extend("--ft-button-secondary-brand-focus-state-layer-opacity","",l.opacity8),secondaryBrandActiveStateLayerOpacity:r.extend("--ft-button-secondary-brand-active-state-layer-opacity","",l.opacity16),secondaryBrandDisabledComponentOpacity:r.extend("--ft-button-secondary-brand-disabled-component-opacity","",l.opacity40),secondaryBrandBorderColor:r.extend("--ft-button-secondary-brand-border-color","",d.borderActionPrimary),secondaryNeutralHoverStateLayerOpacity:r.extend("--ft-button-secondary-neutral-hover-state-layer-opacity","",l.opacity8),secondaryNeutralFocusStateLayerOpacity:r.extend("--ft-button-secondary-neutral-focus-state-layer-opacity","",l.opacity8),secondaryNeutralActiveStateLayerOpacity:r.extend("--ft-button-secondary-neutral-active-state-layer-opacity","",l.opacity16),secondaryNeutralDisabledComponentOpacity:r.extend("--ft-button-secondary-neutral-disabled-component-opacity","",l.opacity40),secondaryNeutralBackgroundColor:r.create("--ft-button-secondary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),secondaryNeutralColor:r.extend("--ft-button-secondary-neutral-color","",d.contentGlobalSecondary),secondaryNeutralIconColor:r.extend("--ft-button-secondary-neutral-icon-color","",d.contentGlobalSecondary),secondaryNeutralStateLayerColor:r.extend("--ft-button-secondary-neutral-state-layer-color","",d.contentGlobalSecondary),secondaryNeutralBorderColor:r.extend("--ft-button-secondary-neutral-border-color","",d.borderNeutralPrimary),secondaryInfoHoverStateLayerOpacity:r.extend("--ft-button-secondary-info-hover-state-layer-opacity","",l.opacity8),secondaryInfoFocusStateLayerOpacity:r.extend("--ft-button-secondary-info-focus-state-layer-opacity","",l.opacity8),secondaryInfoActiveStateLayerOpacity:r.extend("--ft-button-secondary-info-active-state-layer-opacity","",l.opacity16),secondaryInfoDisabledComponentOpacity:r.extend("--ft-button-secondary-info-disabled-component-opacity","",l.opacity40),secondaryInfoBackgroundColor:r.create("--ft-button-secondary-info-background-color","","COLOR","rgba(0,0,0,0)"),secondaryInfoBorderColor:r.extend("--ft-button-secondary-info-border-color","",d.borderInfoPrimary),secondaryInfoColor:r.extend("--ft-button-secondary-info-color","",d.contentInfoPrimary),secondaryInfoIconColor:r.extend("--ft-button-secondary-info-icon-color","",d.contentInfoPrimary),secondaryInfoStateLayerColor:r.extend("--ft-button-secondary-info-state-layer-color","",d.contentInfoPrimary),secondarySuccessHoverStateLayerOpacity:r.extend("--ft-button-secondary-success-hover-state-layer-opacity","",l.opacity8),secondarySuccessFocusStateLayerOpacity:r.extend("--ft-button-secondary-success-focus-state-layer-opacity","",l.opacity8),secondarySuccessActiveStateLayerOpacity:r.extend("--ft-button-secondary-success-active-state-layer-opacity","",l.opacity16),secondarySuccessDisabledComponentOpacity:r.extend("--ft-button-secondary-success-disabled-component-opacity","",l.opacity40),secondarySuccessBackgroundColor:r.create("--ft-button-secondary-success-background-color","","COLOR","rgba(0,0,0,0)"),secondarySuccessBorderColor:r.extend("--ft-button-secondary-success-border-color","",d.borderSuccessPrimary),secondarySuccessColor:r.extend("--ft-button-secondary-success-color","",d.contentSuccessPrimary),secondarySuccessIconColor:r.extend("--ft-button-secondary-success-icon-color","",d.contentSuccessPrimary),secondarySuccessStateLayerColor:r.extend("--ft-button-secondary-success-state-layer-color","",d.contentSuccessPrimary),secondaryWarningHoverStateLayerOpacity:r.extend("--ft-button-secondary-warning-hover-state-layer-opacity","",l.opacity8),secondaryWarningFocusStateLayerOpacity:r.extend("--ft-button-secondary-warning-focus-state-layer-opacity","",l.opacity8),secondaryWarningActiveStateLayerOpacity:r.extend("--ft-button-secondary-warning-active-state-layer-opacity","",l.opacity16),secondaryWarningDisabledComponentOpacity:r.extend("--ft-button-secondary-warning-disabled-component-opacity","",l.opacity40),secondaryWarningBackgroundColor:r.create("--ft-button-secondary-warning-background-color","","COLOR","rgba(0,0,0,0)"),secondaryWarningBorderColor:r.extend("--ft-button-secondary-warning-border-color","",d.borderWarningPrimary),secondaryWarningColor:r.extend("--ft-button-secondary-warning-color","",d.contentWarningPrimary),secondaryWarningIconColor:r.extend("--ft-button-secondary-warning-icon-color","",d.contentWarningPrimary),secondaryWarningStateLayerColor:r.extend("--ft-button-secondary-warning-state-layer-color","",d.contentWarningPrimary),secondaryErrorHoverStateLayerOpacity:r.extend("--ft-button-secondary-error-hover-state-layer-opacity","",l.opacity8),secondaryErrorFocusStateLayerOpacity:r.extend("--ft-button-secondary-error-focus-state-layer-opacity","",l.opacity8),secondaryErrorActiveStateLayerOpacity:r.extend("--ft-button-secondary-error-active-state-layer-opacity","",l.opacity16),secondaryErrorDisabledComponentOpacity:r.extend("--ft-button-secondary-error-disabled-component-opacity","",l.opacity40),secondaryErrorBackgroundColor:r.create("--ft-button-secondary-error-background-color","","COLOR","rgba(0,0,0,0)"),secondaryErrorBorderColor:r.extend("--ft-button-secondary-error-border-color","",d.contentErrorPrimary),secondaryErrorColor:r.extend("--ft-button-secondary-error-color","",d.contentErrorPrimary),secondaryErrorIconColor:r.extend("--ft-button-secondary-error-icon-color","",d.contentErrorPrimary),secondaryErrorStateLayerColor:r.extend("--ft-button-secondary-error-state-layer-color","",d.contentErrorPrimary)};var Zu={iconSize:r.extend("--ft-checkbox-icon-size","",l.iconSize2),boxSize:r.create("--ft-checkbox-box-size","","SIZE","18px"),colorLegendSize:r.create("--ft-checkbox-color-legend-size","","SIZE","16px"),borderRadius:r.create("--ft-checkbox-border-radius","","SIZE","1px"),color:r.extend("--ft-checkbox-color","",d.contentGlobalPrimary),checkedBackgroundColor:r.extend("--ft-checkbox-checked-background-color","",d.contentActionPrimary),checkedStateLayerColor:r.extend("--ft-checkbox-checked-state-layer-color","",d.contentActionPrimary),checkedIconColor:r.extend("--ft-checkbox-checked-icon-color","",d.contentGlobalOnColor),checkedHoverStateLayerOpacity:r.extend("--ft-checkbox-checked-hover-state-layer-opacity","",l.opacity16),checkedFocusStateLayerOpacity:r.extend("--ft-checkbox-checked-focus-state-layer-opacity","",l.opacity16),checkedActiveStateLayerOpacity:r.extend("--ft-checkbox-checked-active-state-layer-opacity","",l.opacity24),checkedDisabledComponentOpacity:r.extend("--ft-checkbox-checked-disabled-component-opacity","",l.opacity40),uncheckedBorderColor:r.extend("--ft-checkbox-unchecked-border-color","",l.colorGray80),uncheckedStateLayerColor:r.extend("--ft-checkbox-unchecked-state-layer-color","",l.colorGray80),uncheckedHoverStateLayerOpacity:r.extend("--ft-checkbox-unchecked-hover-state-layer-opacity","",l.opacity16),uncheckedFocusStateLayerOpacity:r.extend("--ft-checkbox-unchecked-focus-state-layer-opacity","",l.opacity16),uncheckedActiveStateLayerOpacity:r.extend("--ft-checkbox-unchecked-active-state-layer-opacity","",l.opacity24),uncheckedDisabledComponentOpacity:r.extend("--ft-checkbox-unchecked-disabled-component-opacity","",l.opacity40),focusFocusRingColor:r.extend("--ft-checkbox-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineOffset:r.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:r.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),borderWidth:r.create("--ft-checkbox-border-width","","SIZE","2px"),horizontalGap:r.extend("--ft-checkbox-horizontal-gap","",l.spacing3),leftPadding:r.extend("--ft-checkbox-left-padding","",l.spacing2)};var Ju={headerRowBorderWidth:r.create("--ft-table-header-row-border-width","","SIZE","1px"),headerRowBackgroundColor:r.extend("--ft-table-header-row-background-color","",d.backgroundGlobalOnSurfaceDark),headerRowBorderColor:r.extend("--ft-table-header-row-border-color","",d.borderGlobalPrimary),headerRowColor:r.extend("--ft-table-header-row-color","",d.contentGlobalPrimary),dataRowBorderWidth:r.create("--ft-table-data-row-border-width","","SIZE","1px"),dataRowBackgroundColor:r.extend("--ft-table-data-row-background-color","",d.backgroundGlobalOnSurface),dataRowBorderColor:r.extend("--ft-table-data-row-border-color","",d.borderGlobalSubtle),dataRowColor:r.extend("--ft-table-data-row-color","",d.contentGlobalSecondary),dataRowDefaultHoverBackgroundColor:r.extend("--ft-table-data-row-default-hover-background-color","",l.colorGray20),dataRowSelectableUnselectedHoverBackgroundColor:r.extend("--ft-table-data-row-selectable-unselected-hover-background-color","",l.colorGray20),dataRowSelectableSelectedDefaultBackgroundColor:r.extend("--ft-table-data-row-selectable-selected-default-background-color","",l.colorBrand10),dataRowSelectableSelectedDefaultBorderColor:r.extend("--ft-table-data-row-selectable-selected-default-border-color","",l.colorBrand20),dataRowSelectableSelectedHoverBackgroundColor:r.extend("--ft-table-data-row-selectable-selected-hover-background-color","",l.colorBrand20),dataRowSelectableSelectedHoverBorderColor:r.extend("--ft-table-data-row-selectable-selected-hover-border-color","",l.colorBrand30),dataRowSelectableSelectedColor:r.extend("--ft-table-data-row-selectable-selected-color","",d.contentActionPrimary),dataRowClickableHoverBackgroundColor:r.extend("--ft-table-data-row-clickable-hover-background-color","",l.colorGray30),dataRowClickableFocusBorderColor:r.extend("--ft-table-data-row-clickable-focus-border-color","",d.borderActionFocusRing),dataRowClickableFocusBackgroundColor:r.extend("--ft-table-data-row-clickable-focus-background-color","",l.colorGray30),dataRowClickableActiveBackgroundColor:r.extend("--ft-table-data-row-clickable-active-background-color","",l.colorGray40),headerCellHorizontalGap:r.extend("--ft-table-header-cell-horizontal-gap","",l.spacing1),headerCellVerticalPadding:r.extend("--ft-table-header-cell-vertical-padding","",l.spacing2),headerCellHorizontalPadding:r.extend("--ft-table-header-cell-horizontal-padding","",l.spacing3),dataCellVerticalPadding:r.extend("--ft-table-data-cell-vertical-padding","",l.spacing2),dataCellHorizontalPadding:r.extend("--ft-table-data-cell-horizontal-padding","",l.spacing3),dataCellVerticalGap:r.extend("--ft-table-data-cell-vertical-gap","",l.spacing1)};var nf={neutralOffHoverStateLayerOpacity:r.extend("--ft-chip-choice-neutral-off-hover-state-layer-opacity","",l.opacity8),neutralOffFocusStateLayerOpacity:r.extend("--ft-chip-choice-neutral-off-focus-state-layer-opacity","",l.opacity8),neutralOffFocusFocusRingColor:r.extend("--ft-chip-choice-neutral-off-focus-focus-ring-color","",d.borderActionFocusRing),neutralOffActiveStateLayerOpacity:r.extend("--ft-chip-choice-neutral-off-active-state-layer-opacity","",l.opacity16),neutralOffBackgroundColor:r.extend("--ft-chip-choice-neutral-off-background-color","",d.backgroundGlobalOnSurface),neutralOffBorderColor:r.extend("--ft-chip-choice-neutral-off-border-color","",d.borderGlobalPrimary),neutralOffColor:r.extend("--ft-chip-choice-neutral-off-color","",d.contentGlobalSecondary),neutralOffStateLayerColor:r.extend("--ft-chip-choice-neutral-off-state-layer-color","",d.contentGlobalSecondary),neutralOnDefaultStateLayerOpacity:r.extend("--ft-chip-choice-neutral-on-default-state-layer-opacity","",l.opacity16),neutralOnHoverStateLayerOpacity:r.extend("--ft-chip-choice-neutral-on-hover-state-layer-opacity","",l.opacity24),neutralOnFocusStateLayerOpacity:r.extend("--ft-chip-choice-neutral-on-focus-state-layer-opacity","",l.opacity24),neutralOnFocusFocusRingColor:r.extend("--ft-chip-choice-neutral-on-focus-focus-ring-color","",d.borderActionFocusRing),neutralOnActiveStateLayerOpacity:r.extend("--ft-chip-choice-neutral-on-active-state-layer-opacity","",l.opacity32),neutralOnBackgroundColor:r.extend("--ft-chip-choice-neutral-on-background-color","",d.backgroundGlobalOnSurface),neutralOnBorderColor:r.extend("--ft-chip-choice-neutral-on-border-color","",d.borderGlobalPrimary),neutralOnColor:r.extend("--ft-chip-choice-neutral-on-color","",d.contentGlobalPrimary),neutralOnIconColor:r.extend("--ft-chip-choice-neutral-on-icon-color","",d.contentGlobalPrimary),neutralOnStateLayerColor:r.extend("--ft-chip-choice-neutral-on-state-layer-color","",d.contentGlobalPrimary),largeMinHeight:r.create("--ft-chip-choice-large-min-height","","SIZE","36px"),largeHorizontalPadding:r.extend("--ft-chip-choice-large-horizontal-padding","",l.spacing3),largeGap:r.extend("--ft-chip-choice-large-gap","",l.spacing1),largeBorderRadius:r.create("--ft-chip-choice-large-border-radius","","SIZE","18px"),largeBorderWidth:r.create("--ft-chip-choice-large-border-width","","SIZE","1px"),largeIconSize:r.extend("--ft-chip-choice-large-icon-size","",l.iconSize3),mediumMinHeight:r.create("--ft-chip-choice-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:r.extend("--ft-chip-choice-medium-horizontal-padding","",l.spacing2),mediumGap:r.extend("--ft-chip-choice-medium-gap","",l.spacing1),mediumBorderRadius:r.create("--ft-chip-choice-medium-border-radius","","SIZE","12px"),mediumBorderWidth:r.create("--ft-chip-choice-medium-border-width","","SIZE","1px"),mediumIconSize:r.extend("--ft-chip-choice-medium-icon-size","",l.iconSize2)};var df={largeMinHeight:r.create("--ft-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:r.extend("--ft-chip-large-horizontal-padding","",l.spacing3),largeButtonRightPadding:r.extend("--ft-chip-large-button-right-padding","",l.spacing1),largeGap:r.extend("--ft-chip-large-gap","",l.spacing1),largeFocusOutlineOffset:r.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:r.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:r.create("--ft-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:r.create("--ft-chip-large-border-width","","SIZE","1px"),largeIconSize:r.extend("--ft-chip-large-icon-size","",l.iconSize3),mediumMinHeight:r.create("--ft-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:r.extend("--ft-chip-medium-horizontal-padding","",l.spacing2),mediumButtonRightPadding:r.extend("--ft-chip-medium-button-right-padding","",l.spacing05),mediumGap:r.extend("--ft-chip-medium-gap","",l.spacing1),mediumFocusOutlineOffset:r.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:r.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:r.create("--ft-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:r.create("--ft-chip-medium-border-width","","SIZE","1px"),mediumIconSize:r.extend("--ft-chip-medium-icon-size","",l.iconSize2),smallMinHeight:r.create("--ft-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:r.extend("--ft-chip-small-horizontal-padding","",l.spacing1),smallButtonRightPadding:r.extend("--ft-chip-small-button-right-padding","",l.spacing05),smallGap:r.extend("--ft-chip-small-gap","",l.spacing1),smallFocusOutlineOffset:r.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:r.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:r.create("--ft-chip-small-border-radius","","SIZE","10px"),smallBorderWidth:r.create("--ft-chip-small-border-width","","SIZE","1px"),smallIconSize:r.extend("--ft-chip-small-icon-size","",l.iconSize1),neutralBackgroundColor:r.extend("--ft-chip-neutral-background-color","",d.backgroundGlobalOnSurface),neutralColor:r.extend("--ft-chip-neutral-color","",d.contentGlobalSecondary),neutralIconColor:r.extend("--ft-chip-neutral-icon-color","",d.contentGlobalSecondary),neutralBorderColor:r.extend("--ft-chip-neutral-border-color","",d.borderGlobalSubtle),infoBackgroundColor:r.extend("--ft-chip-info-background-color","",d.backgroundInfoSubtle),infoColor:r.extend("--ft-chip-info-color","",d.contentInfoPrimary),infoIconColor:r.extend("--ft-chip-info-icon-color","",d.contentInfoIconOnly),infoBorderColor:r.extend("--ft-chip-info-border-color","",d.borderInfoSubtle),successBackgroundColor:r.extend("--ft-chip-success-background-color","",d.backgroundSuccessSubtle),successColor:r.extend("--ft-chip-success-color","",d.contentSuccessPrimary),successIconColor:r.extend("--ft-chip-success-icon-color","",d.contentSuccessIconOnly),successBorderColor:r.extend("--ft-chip-success-border-color","",d.borderSuccessSubtle),warningBackgroundColor:r.extend("--ft-chip-warning-background-color","",d.backgroundWarningSubtle),warningColor:r.extend("--ft-chip-warning-color","",d.contentWarningPrimary),warningIconColor:r.extend("--ft-chip-warning-icon-color","",d.contentWarningIconOnly),warningBorderColor:r.extend("--ft-chip-warning-border-color","",d.borderWarningSubtle),errorBackgroundColor:r.extend("--ft-chip-error-background-color","",d.backgroundErrorSubtle),errorColor:r.extend("--ft-chip-error-color","",d.contentErrorPrimary),errorIconColor:r.extend("--ft-chip-error-icon-color","",d.contentErrorIconOnly),errorBorderColor:r.extend("--ft-chip-error-border-color","",d.borderErrorSubtle)};var yf={brandHoverOpacity:r.extend("--ft-link-brand-hover-opacity","",l.opacity80),brandHoverColor:r.extend("--ft-link-brand-hover-color","",d.contentActionPrimary),brandFocusFocusRingColor:r.extend("--ft-link-brand-focus-focus-ring-color","",d.borderActionFocusRing),brandFocusColor:r.extend("--ft-link-brand-focus-color","",d.contentActionPrimary),brandDefaultColor:r.extend("--ft-link-brand-default-color","",d.contentActionPrimary),brandActiveColor:r.extend("--ft-link-brand-active-color","",d.contentActionPrimary),infoHoverOpacity:r.extend("--ft-link-info-hover-opacity","",l.opacity80),infoHoverColor:r.extend("--ft-link-info-hover-color","",d.contentInfoPrimary),infoFocusFocusRingColor:r.extend("--ft-link-info-focus-focus-ring-color","",d.borderActionFocusRing),infoFocusColor:r.extend("--ft-link-info-focus-color","",d.contentInfoPrimary),infoDefaultColor:r.extend("--ft-link-info-default-color","",d.contentInfoPrimary),infoActiveColor:r.extend("--ft-link-info-active-color","",d.contentInfoPrimary),neutralFocusFocusRingColor:r.extend("--ft-link-neutral-focus-focus-ring-color","",d.borderActionFocusRing),neutralFocusColor:r.extend("--ft-link-neutral-focus-color","",d.contentActionPrimary),neutralDefaultColor:r.extend("--ft-link-neutral-default-color","",d.contentGlobalPrimary),neutralHoverColor:r.extend("--ft-link-neutral-hover-color","",d.contentActionPrimary),neutralActiveColor:r.extend("--ft-link-neutral-active-color","",d.contentActionPrimary),neutralVisitedColor:r.extend("--ft-link-neutral-visited-color","",l.colorBrand100)};var vf={iconSize:r.extend("--ft-banner-icon-size","",l.iconSize5),borderWidth:r.create("--ft-banner-border-width","","SIZE","1px"),leftPadding:r.extend("--ft-banner-left-padding","",l.spacing6),rightPadding:r.extend("--ft-banner-right-padding","",l.spacing6),verticalPadding:r.extend("--ft-banner-vertical-padding","",l.spacing6),horizontalSideGap:r.extend("--ft-banner-horizontal-side-gap","",l.spacing6),horizontalMobileGap:r.extend("--ft-banner-horizontal-mobile-gap","",l.spacing4),verticalMobileGap:r.extend("--ft-banner-vertical-mobile-gap","",l.spacing6),horizontalMiddleGap:r.extend("--ft-banner-horizontal-middle-gap","",l.spacing20),infoBackgroundColor:r.extend("--ft-banner-info-background-color","",d.backgroundInfoSubtle),infoColor:r.extend("--ft-banner-info-color","",d.contentInfoPrimary),infoIconColor:r.extend("--ft-banner-info-icon-color","",d.contentInfoIconOnly),infoBorderColor:r.extend("--ft-banner-info-border-color","",d.borderInfoSubtle)};var Ef={horizontalPadding:r.extend("--ft-badge-horizontal-padding","",l.spacing1),verticalPadding:r.extend("--ft-badge-vertical-padding","",l.spacing1),borderRadius:r.extend("--ft-badge-border-radius","",l.borderRadiusPill),color:r.extend("--ft-badge-color","",d.contentGlobalOnColor),backgroundColor:r.extend("--ft-badge-background-color","",d.contentActionPrimary)};var If={horizontalGap:r.extend("--ft-title-breadcrumb-horizontal-gap","",l.spacing1),currentColor:r.extend("--ft-title-breadcrumb-current-color","",d.contentGlobalPrimary),previousNonClickableColor:r.extend("--ft-title-breadcrumb-previous-non-clickable-color","",d.contentGlobalSecondary),iconColor:r.extend("--ft-title-breadcrumb-icon-color","",d.contentGlobalSubtle)};var Df={parentHorizontalPadding:r.extend("--ft-page-header-parent-horizontal-padding","",l.spacing6),parentTopPadding:r.extend("--ft-page-header-parent-top-padding","",l.spacing4),parentBottomPadding:r.extend("--ft-page-header-parent-bottom-padding","",l.spacing6),parentHelpLeftMargin:r.extend("--ft-page-header-parent-help-left-margin","",l.spacing1),parentTitleColor:r.extend("--ft-page-header-parent-title-color","",d.contentGlobalPrimary),parentSubtitleColor:r.extend("--ft-page-header-parent-subtitle-color","",d.contentGlobalSecondary),parentChipLeftMargin:r.extend("--ft-page-header-parent-chip-left-margin","",l.spacing4),parentVerticalGap:r.extend("--ft-page-header-parent-vertical-gap","",l.spacing2),parentButtonsGroupHorizontalGap:r.extend("--ft-page-header-parent-buttons-group-horizontal-gap","",l.spacing4),parentButtonsGroupVerticalGap:r.extend("--ft-page-header-parent-buttons-group-vertical-gap","",l.spacing4),parentChipsGroupHorizontalGap:r.extend("--ft-page-header-parent-chips-group-horizontal-gap","",l.spacing2),parentChipsGroupVerticalGap:r.extend("--ft-page-header-parent-chips-group-vertical-gap","",l.spacing2),childHorizontalPadding:r.extend("--ft-page-header-child-horizontal-padding","",l.spacing6),childTopPadding:r.extend("--ft-page-header-child-top-padding","",l.spacing2),childBottomPadding:r.extend("--ft-page-header-child-bottom-padding","",l.spacing2),childHelpLeftMargin:r.extend("--ft-page-header-child-help-left-margin","",l.spacing1),childChipLeftMargin:r.extend("--ft-page-header-child-chip-left-margin","",l.spacing4),childVerticalGap:r.extend("--ft-page-header-child-vertical-gap","",l.spacing2),childMinHeight:r.create("--ft-page-header-child-min-height","","SIZE","40px"),childButtonsGroupHorizontalGap:r.extend("--ft-page-header-child-buttons-group-horizontal-gap","",l.spacing4),childButtonsGroupVerticalGap:r.extend("--ft-page-header-child-buttons-group-vertical-gap","",l.spacing4),childChipsGroupHorizontalGap:r.extend("--ft-page-header-child-chips-group-horizontal-gap","",l.spacing2),childChipsGroupVerticalGap:r.extend("--ft-page-header-child-chips-group-vertical-gap","",l.spacing2),backgroundColor:r.extend("--ft-page-header-background-color","",l.colorWhite),bottomBorderColor:r.extend("--ft-page-header-bottom-border-color","",d.borderGlobalSubtle),bottomBorderWidth:r.create("--ft-page-header-bottom-border-width","","SIZE","1px")};var Ff={horizontalPadding:r.extend("--ft-page-footer-horizontal-padding","",l.spacing6),verticalPadding:r.extend("--ft-page-footer-vertical-padding","",l.spacing2),verticalGap:r.extend("--ft-page-footer-vertical-gap","",l.spacing2),minHeight:r.create("--ft-page-footer-min-height","","SIZE","40px"),backgroundColor:r.extend("--ft-page-footer-background-color","",l.colorWhite),topBorderColor:r.extend("--ft-page-footer-top-border-color","",d.borderGlobalSubtle),topBorderWidth:r.create("--ft-page-footer-top-border-width","","SIZE","1px"),buttonsGroupGap:r.extend("--ft-page-footer-buttons-group-gap","",l.spacing4)};var Vf={contentHorizontalPadding:r.extend("--ft-page-layout-content-horizontal-padding","",l.spacing6),contentVerticalPadding:r.extend("--ft-page-layout-content-vertical-padding","",l.spacing6)};var qf={smallContainerTargetWidth:r.create("--ft-modal-small-container-target-width","","SIZE","560px"),smallContainerMargin:r.extend("--ft-modal-small-container-margin","",l.spacing6),mediumContainerTargetWidth:r.create("--ft-modal-medium-container-target-width","","SIZE","800px"),mediumContainerMargin:r.extend("--ft-modal-medium-container-margin","",l.spacing6),largeContainerTargetWidth:r.create("--ft-modal-large-container-target-width","","SIZE","1040px"),largeContainerMargin:r.extend("--ft-modal-large-container-margin","",l.spacing6),overlayBackgroundColor:r.extend("--ft-modal-overlay-background-color","",l.colorGray700),overlayOpacity:r.extend("--ft-modal-overlay-opacity","",l.opacity40),shadow:r.extend("--ft-modal-shadow","",l.shadowElevation03),bodyBackgroundColor:r.extend("--ft-modal-body-background-color","",l.colorWhite),bodyColor:r.extend("--ft-modal-body-color","",d.contentGlobalPrimary),bodyHorizontalPadding:r.extend("--ft-modal-body-horizontal-padding","",l.spacing6),bodyVerticalPadding:r.extend("--ft-modal-body-vertical-padding","",l.spacing6),bodyVerticalGap:r.extend("--ft-modal-body-vertical-gap","",l.spacing6),headerBackgroundColor:r.extend("--ft-modal-header-background-color","",d.backgroundGlobalOnSurface),headerBorderColor:r.extend("--ft-modal-header-border-color","",d.borderGlobalSubtle),headerColor:r.extend("--ft-modal-header-color","",d.contentGlobalPrimary),headerLeadingIconColor:r.extend("--ft-modal-header-leading-icon-color","",d.contentGlobalPrimary),headerVerticalPadding:r.extend("--ft-modal-header-vertical-padding","",l.spacing1),headerRightPadding:r.extend("--ft-modal-header-right-padding","",l.spacing1),headerLeftPadding:r.extend("--ft-modal-header-left-padding","",l.spacing6),headerGap:r.extend("--ft-modal-header-gap","",l.spacing2),headerBorderBottomWidth:r.create("--ft-modal-header-border-bottom-width","","SIZE","1px"),borderRadius:r.extend("--ft-modal-border-radius","",l.borderRadiusM)};var th={overlayOpacity:r.extend("--ft-drawer-overlay-opacity","",l.opacity40),shadow:r.extend("--ft-drawer-shadow","",l.shadowElevation03),bodyColor:r.extend("--ft-drawer-body-color","",d.contentGlobalPrimary),bodyHorizontalPadding:r.extend("--ft-drawer-body-horizontal-padding","",l.spacing6),bodyVerticalPadding:r.extend("--ft-drawer-body-vertical-padding","",l.spacing6),bodyGap:r.extend("--ft-drawer-body-gap","",l.spacing6),bodyBackgroundColor:r.extend("--ft-drawer-body-background-color","",l.colorWhite),headerBackgroundColor:r.extend("--ft-drawer-header-background-color","",d.backgroundGlobalOnSurface),headerBorderColor:r.extend("--ft-drawer-header-border-color","",d.borderGlobalSubtle),headerColor:r.extend("--ft-drawer-header-color","",d.contentGlobalPrimary),headerTrailingIconColor:r.extend("--ft-drawer-header-trailing-icon-color","",d.contentGlobalSecondary),headerHeight:r.create("--ft-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:r.extend("--ft-drawer-header-horizontal-padding","",l.spacing2),headerBorderWidth:r.create("--ft-drawer-header-border-width","","SIZE","1px"),headerGap:r.extend("--ft-drawer-header-gap","",l.spacing3),buttonsBarBackgroundColor:r.extend("--ft-drawer-buttons-bar-background-color","",d.backgroundGlobalOnSurface),buttonsBarBorderColor:r.extend("--ft-drawer-buttons-bar-border-color","",d.borderGlobalSubtle),buttonsBarColor:r.extend("--ft-drawer-buttons-bar-color","",d.contentGlobalPrimary),buttonsBarHorizontalPadding:r.extend("--ft-drawer-buttons-bar-horizontal-padding","",l.spacing6),buttonsBarVerticalPadding:r.extend("--ft-drawer-buttons-bar-vertical-padding","",l.spacing4),buttonsBarGap:r.extend("--ft-drawer-buttons-bar-gap","",l.spacing3),buttonsBarBorderWidth:r.create("--ft-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:r.create("--ft-drawer-container-width","","SIZE","66%"),containerMinWidth:r.create("--ft-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:r.create("--ft-drawer-container-max-width","","SIZE","1000px"),containerHeight:r.create("--ft-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:r.extend("--ft-drawer-overlay-background-color","",l.colorGray700)};var nh={offBorderBottomWidth:r.create("--ft-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:r.extend("--ft-tabs-off-hover-state-layer-opacity","",l.opacity8),offDefaultStateLayerOpacity:r.extend("--ft-tabs-off-default-state-layer-opacity","",l.opacity0),offFocusStateLayerOpacity:r.extend("--ft-tabs-off-focus-state-layer-opacity","",l.opacity8),offDisabledComponentOpacity:r.extend("--ft-tabs-off-disabled-component-opacity","",l.opacity40),offColor:r.extend("--ft-tabs-off-color","",d.contentGlobalSubtle),offStateLayerColor:r.extend("--ft-tabs-off-state-layer-color","",d.contentGlobalSubtle),offBorderBottomColor:r.extend("--ft-tabs-off-border-bottom-color","",d.borderGlobalSubtle),activeTabIndicatorHeight:r.create("--ft-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:r.extend("--ft-tabs-top-left-border-radius","",l.borderRadiusS),topRightBorderRadius:r.extend("--ft-tabs-top-right-border-radius","",l.borderRadiusS),withLabelHorizontalPadding:r.extend("--ft-tabs-with-label-horizontal-padding","",l.spacing4),withLabelVerticalPadding:r.extend("--ft-tabs-with-label-vertical-padding","",l.spacing3),horizontalGap:r.extend("--ft-tabs-horizontal-gap","",l.spacing1),verticalGap:r.extend("--ft-tabs-vertical-gap","",l.spacing1),onHoverStateLayerOpacity:r.extend("--ft-tabs-on-hover-state-layer-opacity","",l.opacity16),onDefaultStateLayerOpacity:r.extend("--ft-tabs-on-default-state-layer-opacity","",l.opacity8),onFocusStateLayerOpacity:r.extend("--ft-tabs-on-focus-state-layer-opacity","",l.opacity16),onActiveStateLayerOpacity:r.extend("--ft-tabs-on-active-state-layer-opacity","",l.opacity24),onColor:r.extend("--ft-tabs-on-color","",d.contentActionPrimary),onStateLayerColor:r.extend("--ft-tabs-on-state-layer-color","",d.contentActionPrimary),onActiveTabIndicatorColor:r.extend("--ft-tabs-on-active-tab-indicator-color","",d.contentActionPrimary),iconOnlyHorizontalPadding:r.extend("--ft-tabs-icon-only-horizontal-padding","",l.spacing4),iconOnlyVerticalPadding:r.extend("--ft-tabs-icon-only-vertical-padding","",l.spacing4),alertTopPadding:r.extend("--ft-tabs-alert-top-padding","",l.spacing1),alertRightPadding:r.extend("--ft-tabs-alert-right-padding","",l.spacing05),focusOutlineWidth:r.create("--ft-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:r.extend("--ft-tabs-focus-focus-ring-color","",d.borderActionFocusRing)};var dh={fieldHorizontalPadding:r.extend("--ft-text-input-field-horizontal-padding","",l.spacing4),fieldHorizontalGap:r.extend("--ft-text-input-field-horizontal-gap","",l.spacing3),fieldVerticalGap:r.extend("--ft-text-input-field-vertical-gap","",l.spacing05),fieldIconSize:r.extend("--ft-text-input-field-icon-size","",l.iconSize3),fieldHeight:r.create("--ft-text-input-field-height","","SIZE","50px"),helperHorizontalPadding:r.extend("--ft-text-input-helper-horizontal-padding","",l.spacing4),helperHorizontalGap:r.extend("--ft-text-input-helper-horizontal-gap","",l.spacing1),helperIconSize:r.extend("--ft-text-input-helper-icon-size","",l.iconSize2),borderRadius:r.extend("--ft-text-input-border-radius","",l.borderRadiusM),backgroundColor:r.extend("--ft-text-input-background-color","",l.colorWhite),contentValueColor:r.extend("--ft-text-input-content-value-color","",d.contentGlobalPrimary),trailingIconColor:r.extend("--ft-text-input-trailing-icon-color","",d.contentGlobalSubtle),labelColor:r.extend("--ft-text-input-label-color","",d.contentGlobalSubtle),defaultBorderColor:r.extend("--ft-text-input-default-border-color","",d.borderInputPrimary),defaultHelperTextColor:r.extend("--ft-text-input-default-helper-text-color","",d.contentGlobalSubtle),defaultBorderWidth:r.create("--ft-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:r.create("--ft-text-input-error-border-width","","SIZE","2px"),errorBorderColor:r.extend("--ft-text-input-error-border-color","",d.borderErrorPrimary),errorHelperTextColor:r.extend("--ft-text-input-error-helper-text-color","",d.contentErrorPrimary),errorHelperIconColor:r.extend("--ft-text-input-error-helper-icon-color","",d.contentErrorIconOnly),warningBorderWidth:r.create("--ft-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:r.create("--ft-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:r.extend("--ft-text-input-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineOffset:r.create("--ft-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:r.extend("--ft-text-input-disabled-component-opacity","",l.opacity40)};var yh={backgroundColor:r.extend("--ft-text-area-background-color","",l.colorWhite),contentValueColor:r.extend("--ft-text-area-content-value-color","",d.contentGlobalPrimary),labelColor:r.extend("--ft-text-area-label-color","",d.contentGlobalSubtle),defaultBorderColor:r.extend("--ft-text-area-default-border-color","",d.borderInputPrimary),defaultHelperTextColor:r.extend("--ft-text-area-default-helper-text-color","",d.contentGlobalSubtle),defaultBorderWidth:r.create("--ft-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:r.create("--ft-text-area-error-border-width","","SIZE","2px"),errorBorderColor:r.extend("--ft-text-area-error-border-color","",d.borderErrorPrimary),errorHelperTextColor:r.extend("--ft-text-area-error-helper-text-color","",d.contentErrorPrimary),errorHelperIconColor:r.extend("--ft-text-area-error-helper-icon-color","",d.contentErrorIconOnly),focusFocusRingColor:r.extend("--ft-text-area-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineWidth:r.create("--ft-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:r.create("--ft-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:r.extend("--ft-text-area-disabled-component-opacity","",l.opacity40),fieldHorizontalLeftPadding:r.extend("--ft-text-area-field-horizontal-left-padding","",l.spacing4),fieldHorizontalGap:r.extend("--ft-text-area-field-horizontal-gap","",l.spacing3),fieldVerticalGap:r.extend("--ft-text-area-field-vertical-gap","",l.spacing05),fieldMinHeight:r.create("--ft-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:r.extend("--ft-text-area-helper-horizontal-padding","",l.spacing4),helperHorizontalGap:r.extend("--ft-text-area-helper-horizontal-gap","",l.spacing1),helperIconSize:r.extend("--ft-text-area-helper-icon-size","",l.iconSize2),borderRadius:r.extend("--ft-text-area-border-radius","",l.borderRadiusM)};var vh={height:r.create("--ft-floating-menu-height","","SIZE","50px"),horizontalPadding:r.extend("--ft-floating-menu-horizontal-padding","",l.spacing4),offIconColor:r.extend("--ft-floating-menu-off-icon-color","",d.contentGlobalPrimary),offColor:r.extend("--ft-floating-menu-off-color","",d.contentGlobalPrimary),onColor:r.extend("--ft-floating-menu-on-color","",d.contentActionPrimary),onStateLayerColor:r.extend("--ft-floating-menu-on-state-layer-color","",d.contentActionPrimary),gap:r.extend("--ft-floating-menu-gap","",l.spacing3),focusFocusRingColor:r.extend("--ft-floating-menu-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineWidth:r.create("--ft-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:r.extend("--ft-floating-menu-focus-state-layer-opacity","",l.opacity8),hoverStateLayerOpacity:r.extend("--ft-floating-menu-hover-state-layer-opacity","",l.opacity8),activeStateLayerOpacity:r.extend("--ft-floating-menu-active-state-layer-opacity","",l.opacity16),disabledComponentOpacity:r.extend("--ft-floating-menu-disabled-component-opacity","",l.opacity40),iconSize:r.extend("--ft-floating-menu-icon-size","",l.iconSize3),backgroundColor:r.extend("--ft-floating-menu-background-color","",d.backgroundGlobalOnSurface),shadow:r.extend("--ft-floating-menu-shadow","",l.shadowElevation02)};var Eh={fieldHorizontalPadding:r.extend("--ft-combobox-single-select-field-horizontal-padding","",l.spacing4),fieldHorizontalGap:r.extend("--ft-combobox-single-select-field-horizontal-gap","",l.spacing3),fieldVerticalGap:r.extend("--ft-combobox-single-select-field-vertical-gap","",l.spacing05),fieldIconSize:r.extend("--ft-combobox-single-select-field-icon-size","",l.iconSize3),fieldHeight:r.create("--ft-combobox-single-select-field-height","","SIZE","50px"),helperHorizontalPadding:r.extend("--ft-combobox-single-select-helper-horizontal-padding","",l.spacing4),helperHorizontalGap:r.extend("--ft-combobox-single-select-helper-horizontal-gap","",l.spacing1),helperVerticalGap:r.extend("--ft-combobox-single-select-helper-vertical-gap","",l.spacing1),helperIconSize:r.extend("--ft-combobox-single-select-helper-icon-size","",l.iconSize2),menuVerticalGap:r.extend("--ft-combobox-single-select-menu-vertical-gap","",l.spacing2),borderRadius:r.extend("--ft-combobox-single-select-border-radius","",l.borderRadiusM),backgroundColor:r.extend("--ft-combobox-single-select-background-color","",l.colorWhite),labelColor:r.extend("--ft-combobox-single-select-label-color","",d.contentGlobalSubtle),contentValueColor:r.extend("--ft-combobox-single-select-content-value-color","",d.contentGlobalPrimary),trailingIconColor:r.extend("--ft-combobox-single-select-trailing-icon-color","",d.contentGlobalSubtle),defaultBorderColor:r.extend("--ft-combobox-single-select-default-border-color","",d.borderInputPrimary),defaultHelperTextColor:r.extend("--ft-combobox-single-select-default-helper-text-color","",d.contentGlobalSubtle),defaultBorderWidth:r.create("--ft-combobox-single-select-default-border-width","","SIZE","1px"),errorBorderWidth:r.create("--ft-combobox-single-select-error-border-width","","SIZE","2px"),errorBorderColor:r.extend("--ft-combobox-single-select-error-border-color","",d.borderErrorPrimary),errorHelperTextColor:r.extend("--ft-combobox-single-select-error-helper-text-color","",d.contentErrorPrimary),warningBorderWidth:r.create("--ft-combobox-single-select-warning-border-width","","SIZE","2px"),warningBorderColor:r.extend("--ft-combobox-single-select-warning-border-color","",d.borderWarningPrimary),warningHelperTextColor:r.extend("--ft-combobox-single-select-warning-helper-text-color","",d.contentWarningPrimary),warningHelperIconColor:r.extend("--ft-combobox-single-select-warning-helper-icon-color","",d.contentWarningIconOnly),focusOutlineWidth:r.create("--ft-combobox-single-select-focus-outline-width","","SIZE","2px"),focusFocusRingColor:r.extend("--ft-combobox-single-select-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineOffset:r.create("--ft-combobox-single-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:r.extend("--ft-combobox-single-select-disabled-component-opacity","",l.opacity40)};var Ih={backgroundColor:r.extend("--ft-combobox-multi-select-background-color","",l.colorWhite),labelColor:r.extend("--ft-combobox-multi-select-label-color","",d.contentGlobalSubtle),trailingIconColor:r.extend("--ft-combobox-multi-select-trailing-icon-color","",d.contentGlobalSubtle),defaultBorderColor:r.extend("--ft-combobox-multi-select-default-border-color","",d.borderInputPrimary),defaultHelperTextColor:r.extend("--ft-combobox-multi-select-default-helper-text-color","",d.contentGlobalSubtle),defaultBorderWidth:r.create("--ft-combobox-multi-select-default-border-width","","SIZE","1px"),errorBorderColor:r.extend("--ft-combobox-multi-select-error-border-color","",d.borderErrorPrimary),errorHelperTextColor:r.extend("--ft-combobox-multi-select-error-helper-text-color","",d.contentErrorPrimary),errorHelperIcon:r.extend("--ft-combobox-multi-select-error-helper-icon","",d.contentErrorIconOnly),errorBorderWidth:r.create("--ft-combobox-multi-select-error-border-width","","SIZE","2px"),warningBorderColor:r.extend("--ft-combobox-multi-select-warning-border-color","",d.borderWarningPrimary),warningHelperTextColor:r.extend("--ft-combobox-multi-select-warning-helper-text-color","",d.contentWarningPrimary),warningHelperIconColor:r.extend("--ft-combobox-multi-select-warning-helper-icon-color","",d.contentWarningIconOnly),warningBorderWidth:r.create("--ft-combobox-multi-select-warning-border-width","","SIZE","2px"),focusFocusRingColor:r.extend("--ft-combobox-multi-select-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineWidth:r.create("--ft-combobox-multi-select-focus-outline-width","","SIZE","2px"),focusOutlineOffset:r.create("--ft-combobox-multi-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:r.extend("--ft-combobox-multi-select-disabled-component-opacity","",l.opacity40),helperHorizontalPadding:r.extend("--ft-combobox-multi-select-helper-horizontal-padding","",l.spacing4),helperHorizontalGap:r.extend("--ft-combobox-multi-select-helper-horizontal-gap","",l.spacing1),helperVerticalGap:r.extend("--ft-combobox-multi-select-helper-vertical-gap","",l.spacing1),helperIconSize:r.extend("--ft-combobox-multi-select-helper-icon-size","",l.iconSize2),fieldHorizontalPadding:r.extend("--ft-combobox-multi-select-field-horizontal-padding","",l.spacing4),fieldHorizontalGap:r.extend("--ft-combobox-multi-select-field-horizontal-gap","",l.spacing3),fieldVerticalGap:r.extend("--ft-combobox-multi-select-field-vertical-gap","",l.spacing05),fieldIconSize:r.extend("--ft-combobox-multi-select-field-icon-size","",l.iconSize3),fieldMaxHeight:r.create("--ft-combobox-multi-select-field-max-height","","SIZE","112px"),contentValuesHorizontalGap:r.extend("--ft-combobox-multi-select-content-values-horizontal-gap","",l.spacing1),contentValuesVerticalGap:r.extend("--ft-combobox-multi-select-content-values-vertical-gap","",l.spacing1),borderRadius:r.extend("--ft-combobox-multi-select-border-radius","",l.borderRadiusM)};var Dh={backgroundColor:r.extend("--ft-popover-background-color","",d.backgroundGlobalOnSurface),horizontalPadding:r.extend("--ft-popover-horizontal-padding","",l.spacing6),verticalPadding:r.extend("--ft-popover-vertical-padding","",l.spacing6),titleColor:r.extend("--ft-popover-title-color","",d.contentGlobalPrimary),bodyColor:r.extend("--ft-popover-body-color","",d.contentGlobalSecondary),linkColor:r.extend("--ft-popover-link-color","",d.contentActionPrimary),gap:r.extend("--ft-popover-gap","",l.spacing3),borderRadius:r.extend("--ft-popover-border-radius","",l.borderRadiusM),shadow:r.extend("--ft-popover-shadow","",l.shadowElevation02),maxWidth:r.create("--ft-popover-max-width","","SIZE","440px")};var Fh={hoverStateLayerOpacity:r.extend("--ft-collapsible-hover-state-layer-opacity","",l.opacity8),focusStateLayerOpacity:r.extend("--ft-collapsible-focus-state-layer-opacity","",l.opacity8),focusOutlineWidth:r.create("--ft-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:r.extend("--ft-collapsible-focus-focus-ring-color","",d.borderActionFocusRing),activeStateLayerOpacity:r.extend("--ft-collapsible-active-state-layer-opacity","",l.opacity16),disabledComponentOpacity:r.extend("--ft-collapsible-disabled-component-opacity","",l.opacity40),horizontalPadding:r.extend("--ft-collapsible-horizontal-padding","",l.spacing4),verticalPadding:r.extend("--ft-collapsible-vertical-padding","",l.spacing3),color:r.extend("--ft-collapsible-color","",d.contentGlobalPrimary),stateLayerColor:r.extend("--ft-collapsible-state-layer-color","",d.contentGlobalPrimary),backgroundColor:r.extend("--ft-collapsible-background-color","",d.backgroundGlobalOnSurface),borderColor:r.extend("--ft-collapsible-border-color","",d.borderGlobalSubtle),iconSize:r.extend("--ft-collapsible-icon-size","",l.iconSize3)};var Gh={groupHorizontalPadding:r.extend("--ft-switch-group-horizontal-padding","",l.spacing1),groupVerticalPadding:r.extend("--ft-switch-group-vertical-padding","",l.spacing1),groupGap:r.extend("--ft-switch-group-gap","",l.spacing1),groupBackgroundColor:r.extend("--ft-switch-group-background-color","",d.backgroundGlobalSurface),groupBorderColor:r.extend("--ft-switch-group-border-color","",d.borderGlobalSubtle),groupBorderRadius:r.create("--ft-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:r.extend("--ft-switch-label-horizontal-padding","",l.spacing2),labelVerticalPadding:r.extend("--ft-switch-label-vertical-padding","",l.spacing1),offHoverStateLayerOpacity:r.extend("--ft-switch-off-hover-state-layer-opacity","",l.opacity8),offFocusStateLayerOpacity:r.extend("--ft-switch-off-focus-state-layer-opacity","",l.opacity8),offActiveStateLayerOpacity:r.extend("--ft-switch-off-active-state-layer-opacity","",l.opacity16),offDisabledComponentOpacity:r.extend("--ft-switch-off-disabled-component-opacity","",l.opacity40),offColor:r.extend("--ft-switch-off-color","",d.contentGlobalSubtle),offStateLayerColor:r.extend("--ft-switch-off-state-layer-color","",d.contentGlobalSubtle),onHoverStateLayerOpacity:r.extend("--ft-switch-on-hover-state-layer-opacity","",l.opacity8),onFocusStateLayerOpacity:r.extend("--ft-switch-on-focus-state-layer-opacity","",l.opacity8),onActiveStateLayerOpacity:r.extend("--ft-switch-on-active-state-layer-opacity","",l.opacity16),onDisabledComponentOpacity:r.extend("--ft-switch-on-disabled-component-opacity","",l.opacity40),onColor:r.extend("--ft-switch-on-color","",d.contentActionPrimary),onStateLayerColor:r.extend("--ft-switch-on-state-layer-color","",d.contentActionPrimary),iconHorizontalPadding:r.extend("--ft-switch-icon-horizontal-padding","",l.spacing1),iconVerticalPadding:r.extend("--ft-switch-icon-vertical-padding","",l.spacing1),focusOutlineWidth:r.create("--ft-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:r.extend("--ft-switch-focus-focus-ring-color","",d.borderActionFocusRing),optionBorderRadius:r.extend("--ft-switch-option-border-radius","",l.borderRadiusS)};var qh={color1Light:r.extend("--ft-chart-1-light","for area color charts",l.colorBrand40),color1Base:r.extend("--ft-chart-1-base","for line charts",l.colorBrand0),color2Light:r.extend("--ft-chart-2-light","for area color charts",l.colorYellow60),color2Base:r.extend("--ft-chart-2-base","for line charts",l.colorYellow100),color3Light:r.extend("--ft-chart-3-light","",l.colorUltramarine40),color3Base:r.extend("--ft-chart-3-base","",l.colorUltramarine70),color4Light:r.extend("--ft-chart-4-light","",l.colorCyan50),color4Base:r.extend("--ft-chart-4-base","",l.colorCyan100),color5Light:r.extend("--ft-chart-5-light","",l.colorRed40),color5Base:r.extend("--ft-chart-5-base","",l.colorRed60),color6Light:r.extend("--ft-chart-6-light","",l.colorGreen40),color6Base:r.extend("--ft-chart-6-base","",l.colorGreen70),color7Light:r.extend("--ft-chart-7-light","",l.colorOrange70),color7Base:r.extend("--ft-chart-7-base","",l.colorOrange100),color8Light:r.extend("--ft-chart-8-light","",l.colorAvocado70),color8Base:r.extend("--ft-chart-8-base","",l.colorAvocado200),color9Light:r.extend("--ft-chart-9-light","",l.colorBrown50),color9Base:r.extend("--ft-chart-9-base","",l.colorBrown200),color10Light:r.extend("--ft-chart-10-light","",l.colorGray50),color10Base:r.extend("--ft-chart-10-base","",l.colorGray80),monochrome10:r.extend("--ft-chart-monochrome-10","",l.colorBrand10),monochrome20:r.extend("--ft-chart-monochrome-20","",l.colorBrand20),monochrome30:r.extend("--ft-chart-monochrome-30","",l.colorBrand40),monochrome40:r.extend("--ft-chart-monochrome-40","",l.colorBrand60),monochrome50:r.extend("--ft-chart-monochrome-50","",l.colorBrand0),monochrome60:r.extend("--ft-chart-monochrome-60","",l.colorBrand200),scatterplotQuadrantPopularOldBackgroundColor:r.extend("--ft-chart-scatterplot-quadrant-popular-old-background-color","",l.colorYellow10),scatterplotQuadrantPopularNewBackgroundColor:r.extend("--ft-chart-scatterplot-quadrant-popular-new-background-color","",l.colorAvocado10),scatterplotQuadrantUnpopularOldBackgroundColor:r.extend("--ft-chart-scatterplot-quadrant-unpopular-old-background-color","",l.colorRed10),scatterplotQuadrantUnpopularNewBackgroundColor:r.extend("--ft-chart-scatterplot-quadrant-unpopular-new-background-color","",l.colorCyan10),scatterplotDatapointInitialDefaultBackgroundColor:r.extend("--ft-chart-scatterplot-datapoint-initial-default-background-color","",l.colorBrand70),scatterplotDatapointInitialDefaultBackgroundOpacity:r.extend("--ft-chart-scatterplot-datapoint-initial-default-background-opacity","",l.opacity48),scatterplotDatapointInitialHoverBackgroundColor:r.extend("--ft-chart-scatterplot-datapoint-initial-hover-background-color","",l.colorBrand0),scatterplotDatapointSelectedDefaultBackgroundColor:r.extend("--ft-chart-scatterplot-datapoint-selected-default-background-color","",l.colorBrand100),scatterplotDatapointSelectedHoverBackgroundColor:r.extend("--ft-chart-scatterplot-datapoint-selected-hover-background-color","",l.colorBrand200),scatterplotDatapointUnselectedDefaultBackgroundColor:r.extend("--ft-chart-scatterplot-datapoint-unselected-default-background-color","",l.colorGray60),scatterplotDatapointUnselectedDefaultBackgroundOpacity:r.extend("--ft-chart-scatterplot-datapoint-unselected-default-background-opacity","",l.opacity48),scatterplotDatapointUnselectedHoverBackgroundColor:r.extend("--ft-chart-scatterplot-datapoint-unselected-hover-background-color","",l.colorGray70),scatterplotDatapointHoverHoverRingColor:r.extend("--ft-chart-scatterplot-datapoint-hover-hover-ring-color","",l.colorCyan200)};var Jh={color1IconColor:r.extend("--ft-page-designer-1-icon-color","for area color charts",l.colorCyan0),color1ToolbarColor:r.extend("--ft-page-designer-1-toolbar-color","for area color charts",l.colorCyan0),color2IconColor:r.extend("--ft-page-designer-2-icon-color","for area color charts",l.colorBrand0),color2ToolbarColor:r.extend("--ft-page-designer-2-toolbar-color","for area color charts",l.colorBrand0),color3IconColor:r.extend("--ft-page-designer-3-icon-color","for area color charts",l.colorYellow200),color3ToolbarColor:r.extend("--ft-page-designer-3-toolbar-color","for area color charts",l.colorYellow200),color4IconColor:r.extend("--ft-page-designer-4-icon-color","for area color charts",l.colorUltramarine50),color4ToolbarColor:r.extend("--ft-page-designer-4-toolbar-color","for area color charts",l.colorUltramarine50),color5IconColor:r.extend("--ft-page-designer-5-icon-color","for area color charts",l.colorGreen0),color5ToolbarColor:r.extend("--ft-page-designer-5-toolbar-color","for area color charts",l.colorGreen0),color6IconColor:r.extend("--ft-page-designer-6-icon-color","for area color charts",l.colorOrange0),color6ToolbarColor:r.extend("--ft-page-designer-6-toolbar-color","for area color charts",l.colorOrange0),color7IconColor:r.extend("--ft-page-designer-7-icon-color","for area color charts",l.colorAvocado200),color7ToolbarColor:r.extend("--ft-page-designer-7-toolbar-color","for area color charts",l.colorAvocado200),color8IconColor:r.extend("--ft-page-designer-8-icon-color","for area color charts",l.colorBrown0),color8ToolbarColor:r.extend("--ft-page-designer-8-toolbar-color","for area color charts",l.colorBrown0)};var iy={borderWidth:r.create("--ft-notice-border-width","","SIZE","1px"),horizontalPadding:r.extend("--ft-notice-horizontal-padding","",l.spacing3),verticalPadding:r.extend("--ft-notice-vertical-padding","",l.spacing2),borderRadius:r.extend("--ft-notice-border-radius","",l.borderRadiusS),gap:r.extend("--ft-notice-gap","",l.spacing2),iconSize:r.extend("--ft-notice-icon-size","",l.iconSize3),infoBackgroundColor:r.extend("--ft-notice-info-background-color","",d.backgroundInfoSubtle),infoBorderColor:r.extend("--ft-notice-info-border-color","",d.borderInfoSubtle),infoColor:r.extend("--ft-notice-info-color","",d.contentInfoPrimary),infoIconColor:r.extend("--ft-notice-info-icon-color","",d.contentInfoIconOnly),warningBackgroundColor:r.extend("--ft-notice-warning-background-color","",d.backgroundWarningSubtle),warningBorderColor:r.extend("--ft-notice-warning-border-color","",d.borderWarningSubtle),warningColor:r.extend("--ft-notice-warning-color","",d.contentWarningPrimary),warningIconColor:r.extend("--ft-notice-warning-icon-color","",d.contentWarningIconOnly),errorBackgroundColor:r.extend("--ft-notice-error-background-color","",d.backgroundErrorSubtle),errorBorderColor:r.extend("--ft-notice-error-border-color","",d.borderErrorSubtle),errorColor:r.extend("--ft-notice-error-color","",d.contentErrorPrimary),errorIconColor:r.extend("--ft-notice-error-icon-color","",d.contentErrorIconOnly),successBackgroundColor:r.extend("--ft-notice-success-background-color","",d.backgroundSuccessSubtle),successBorderColor:r.extend("--ft-notice-success-border-color","",d.borderSuccessSubtle),successColor:r.extend("--ft-notice-success-color","",d.contentSuccessPrimary),successIconColor:r.extend("--ft-notice-success-icon-color","",d.contentSuccessIconOnly),denseHorizontalPadding:r.create("--ft-notice-dense-horizontal-padding","","SIZE","0px"),denseVerticalPadding:r.create("--ft-notice-dense-vertical-padding","","SIZE","0px"),denseGap:r.extend("--ft-notice-dense-gap","",l.spacing1),denseIconSize:r.extend("--ft-notice-dense-icon-size","",l.iconSize2),denseBorderWidth:r.create("--ft-notice-dense-border-width","","SIZE","0")};var cy={offHoverStateLayerOpacity:r.extend("--ft-toggle-off-hover-state-layer-opacity","",l.opacity16),offFocusStateLayerOpacity:r.extend("--ft-toggle-off-focus-state-layer-opacity","",l.opacity16),offActiveStateLayerOpacity:r.extend("--ft-toggle-off-active-state-layer-opacity","",l.opacity24),offDisabledComponentOpacity:r.extend("--ft-toggle-off-disabled-component-opacity","",l.opacity40),offBackgroundColor:r.extend("--ft-toggle-off-background-color","",d.contentGlobalSubtle),offIconColor:r.extend("--ft-toggle-off-icon-color","",d.contentGlobalSubtle),offStateLayerColor:r.extend("--ft-toggle-off-state-layer-color","",d.contentGlobalSubtle),onHoverStateLayerOpacity:r.extend("--ft-toggle-on-hover-state-layer-opacity","",l.opacity16),onFocusStateLayerOpacity:r.extend("--ft-toggle-on-focus-state-layer-opacity","",l.opacity16),onActiveStateLayerOpacity:r.extend("--ft-toggle-on-active-state-layer-opacity","",l.opacity24),onDisabledComponentOpacity:r.extend("--ft-toggle-on-disabled-component-opacity","",l.opacity40),onBackgroundColor:r.extend("--ft-toggle-on-background-color","",d.contentActionPrimary),onStateLayerColor:r.extend("--ft-toggle-on-state-layer-color","",d.contentActionPrimary),onIconColor:r.extend("--ft-toggle-on-icon-color","",d.contentActionPrimary),color:r.extend("--ft-toggle-color","",d.contentGlobalPrimary),focusFocusRingColor:r.extend("--ft-toggle-focus-focus-ring-color","",d.borderActionFocusRing),gap:r.extend("--ft-toggle-gap","",l.spacing3)};var hy={color:r.extend("--ft-radio-color","",d.contentGlobalPrimary),selectedRadioColor:r.extend("--ft-radio-selected-radio-color","",d.contentActionPrimary),selectedStateLayerColor:r.extend("--ft-radio-selected-state-layer-color","",d.contentActionPrimary),selectedHoverStateLayerOpacity:r.extend("--ft-radio-selected-hover-state-layer-opacity","",l.opacity16),selectedFocusStateLayerOpacity:r.extend("--ft-radio-selected-focus-state-layer-opacity","",l.opacity16),selectedActiveStateLayerOpacity:r.extend("--ft-radio-selected-active-state-layer-opacity","",l.opacity24),selectedDisabledComponentOpacity:r.extend("--ft-radio-selected-disabled-component-opacity","",l.opacity40),unselectedStateLayerColor:r.extend("--ft-radio-unselected-state-layer-color","",d.borderInputPrimary),unselectedBorderColor:r.extend("--ft-radio-unselected-border-color","",d.borderInputPrimary),unselectedHoverStateLayerOpacity:r.extend("--ft-radio-unselected-hover-state-layer-opacity","",l.opacity16),unselectedFocusStateLayerOpacity:r.extend("--ft-radio-unselected-focus-state-layer-opacity","",l.opacity16),unselectedActiveStateLayerOpacity:r.extend("--ft-radio-unselected-active-state-layer-opacity","",l.opacity24),unselectedDisabledComponentOpacity:r.extend("--ft-radio-unselected-disabled-component-opacity","",l.opacity40),focusFocusRingColor:r.extend("--ft-radio-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineOffset:r.create("--ft-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:r.create("--ft-radio-focus-outline-width","","SIZE","2px"),gap:r.extend("--ft-radio-gap","",l.spacing3)};var xy={iconSize:r.extend("--ft-notification-icon-size","",l.iconSize4),leftPadding:r.extend("--ft-notification-left-padding","",l.spacing5),rightPadding:r.extend("--ft-notification-right-padding","",l.spacing4),verticalPadding:r.extend("--ft-notification-vertical-padding","",l.spacing3),infoBackgroundColor:r.extend("--ft-notification-info-background-color","",d.backgroundInfoSubtle),infoColor:r.extend("--ft-notification-info-color","",d.contentInfoPrimary),infoIconColor:r.extend("--ft-notification-info-icon-color","",d.contentInfoIconOnly),infoBorderColor:r.extend("--ft-notification-info-border-color","",d.borderInfoSubtle),successBackgroundColor:r.extend("--ft-notification-success-background-color","",d.backgroundSuccessSubtle),successColor:r.extend("--ft-notification-success-color","",d.contentSuccessPrimary),successIconColor:r.extend("--ft-notification-success-icon-color","",d.contentSuccessIconOnly),successBorderColor:r.extend("--ft-notification-success-border-color","",d.borderSuccessSubtle),warningBackgroundColor:r.extend("--ft-notification-warning-background-color","",d.backgroundWarningSubtle),warningColor:r.extend("--ft-notification-warning-color","",d.contentWarningPrimary),warningIconColor:r.extend("--ft-notification-warning-icon-color","",d.contentWarningIconOnly),warningBorderColor:r.extend("--ft-notification-warning-border-color","",d.borderWarningSubtle),errorBackgroundColor:r.extend("--ft-notification-error-background-color","",d.backgroundErrorSubtle),errorColor:r.extend("--ft-notification-error-color","",d.contentErrorPrimary),errorIconColor:r.extend("--ft-notification-error-icon-color","",d.contentErrorIconOnly),errorBorderColor:r.extend("--ft-notification-error-border-color","",d.borderErrorSubtle),borderRadius:r.extend("--ft-notification-border-radius","",l.borderRadiusPill),borderWidth:r.create("--ft-notification-border-width","","SIZE","1px"),leadingGap:r.extend("--ft-notification-leading-gap","",l.spacing2),trailingGap:r.extend("--ft-notification-trailing-gap","",l.spacing8)};var wy={horizontalPadding:r.extend("--ft-tooltip-horizontal-padding","",l.spacing2),verticalPadding:r.extend("--ft-tooltip-vertical-padding","",l.spacing2),borderRadius:r.extend("--ft-tooltip-border-radius","",l.borderRadiusS),color:r.extend("--ft-tooltip-color","",d.contentGlobalOnColor),backgroundColor:r.extend("--ft-tooltip-background-color","",d.contentGlobalPrimary),backgroundOpacity:r.extend("--ft-tooltip-background-opacity","",l.opacity80),shadow:r.extend("--ft-tooltip-shadow","",l.shadowElevation02),maxWidth:r.create("--ft-tooltip-max-width","","SIZE","256px"),gap:r.extend("--ft-tooltip-gap","",l.spacing05)};var _y={verticalPadding:r.extend("--ft-reorderable-list-vertical-padding","",l.spacing4),gap:r.extend("--ft-reorderable-list-gap","",l.spacing1),borderRadius:r.extend("--ft-reorderable-list-border-radius","",l.borderRadiusM),reorderableItemTitleMarginRight:r.extend("--ft-reorderable-list-reorderable-item-title-margin-right","",l.spacing6),reorderableItemTitleColor:r.extend("--ft-reorderable-list-reorderable-item-title-color","",d.contentGlobalPrimary),reorderableItemLeftButtonsGroupMarginRight:r.extend("--ft-reorderable-list-reorderable-item-left-buttons-group-margin-right","",l.spacing6),reorderableItemLeftButtonsGroupHorizontalGap:r.extend("--ft-reorderable-list-reorderable-item-left-buttons-group-horizontal-gap","",l.spacing2),reorderableItemRightButtonsGroupHorizontalGap:r.extend("--ft-reorderable-list-reorderable-item-right-buttons-group-horizontal-gap","",l.spacing2),reorderableItemUsersCountColor:r.extend("--ft-reorderable-list-reorderable-item-users-count-color","",d.contentGlobalPrimary),reorderableItemUsersCountMarginRight:r.extend("--ft-reorderable-list-reorderable-item-users-count-margin-right","",l.spacing6),reorderableItemBackgroundColor:r.extend("--ft-reorderable-list-reorderable-item-background-color","",d.backgroundGlobalOnSurface),reorderableItemWarningMessageGap:r.extend("--ft-reorderable-list-reorderable-item-warning-message-gap","",l.spacing1),reorderableItemWarningMessageColor:r.extend("--ft-reorderable-list-reorderable-item-warning-message-color","",d.contentWarningPrimary),reorderableItemWarningMessageIconColor:r.extend("--ft-reorderable-list-reorderable-item-warning-message-icon-color","",d.contentWarningIconOnly),reorderableItemGripColor:r.extend("--ft-reorderable-list-reorderable-item-grip-color","",d.contentGlobalSecondary),reorderableItemGripOpacity:r.extend("--ft-reorderable-list-reorderable-item-grip-opacity","",l.opacity48),boxShadow:r.extend("--ft-reorderable-list-box-shadow","",l.shadowElevation01),borderWidth:r.create("--ft-reorderable-list-border-width","","SIZE","1px"),reorderableItemsGap:r.extend("--ft-reorderable-list-reorderable-items-gap","",l.spacing2),leftPadding:r.extend("--ft-reorderable-list-left-padding","",l.spacing2),rightPadding:r.extend("--ft-reorderable-list-right-padding","",l.spacing6),borderColor:r.extend("--ft-reorderable-list-border-color","",d.borderGlobalPrimary),backgroundColor:r.extend("--ft-reorderable-list-background-color","",d.backgroundGlobalOnSurfaceDark)};var Po;(function(e){e.brand="brand",e.neutral="neutral",e.info="info",e.success="success",e.warning="warning",e.error="error"})(Po||(Po={}));var Er;(function(e){e.large="large",e.medium="medium",e.small="small"})(Er||(Er={}));var ko=m(M());function rs(e){let t=Lo[e];return ko.css`
116
- .ft-typography--${(0,ko.unsafeCSS)(e)} {
114
+ `;var ie=m(M()),A=m(R());var _e=m(M(),1),Ve=e=>typeof e=="string"?(0,_e.unsafeCSS)(e):e,r=class{static create(t,o,i,n){let a=c=>Ve(c??n),s=_e.css`var(${Ve(t)}, ${a(n)})`;return s.name=t,s.description=o,s.category=i,s.defaultValue=n,s.defaultCssValue=a,s.get=c=>_e.css`var(${Ve(t)}, ${a(c)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>n,s}static extend(t,o,i,n){let a=c=>i.get(c??n),s=_e.css`var(${Ve(t)}, ${a(n)})`;return s.name=t,s.description=o,s.category=i.category,s.fallbackVariable=i,s.defaultValue=n,s.defaultCssValue=a,s.get=c=>_e.css`var(${Ve(t)}, ${a(c)})`,s.breadcrumb=()=>[i.name,...i.breadcrumb()],s.lastResortDefaultValue=()=>n??i.lastResortDefaultValue(),s}static external(t,o){let i=a=>t.fallbackVariable?t.fallbackVariable.get(a??t.defaultValue):Ve(a??t.lastResortDefaultValue()),n=_e.css`var(${Ve(t.name)}, ${i(t.defaultValue)})`;return n.name=t.name,n.category=t.category,n.fallbackVariable=t.fallbackVariable,n.defaultValue=t.defaultValue,n.context=o,n.defaultCssValue=i,n.get=a=>_e.css`var(${Ve(t.name)}, ${i(a)})`,n.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],n.lastResortDefaultValue=()=>t.lastResortDefaultValue(),n}};var l={colorWhite:r.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:r.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:r.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:r.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:r.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:r.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:r.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:r.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:r.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:r.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:r.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:r.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:r.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:r.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:r.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:r.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:r.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:r.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:r.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:r.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:r.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:r.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:r.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:r.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:r.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:r.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:r.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:r.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:r.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:r.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:r.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:r.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:r.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:r.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:r.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:r.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:r.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:r.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:r.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:r.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:r.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:r.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:r.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:r.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:r.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:r.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:r.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:r.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:r.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:r.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:r.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:r.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:r.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:r.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:r.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:r.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:r.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:r.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:r.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:r.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:r.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:r.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:r.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:r.create("--ft-color-orange-0","","COLOR","#F2700D"),colorOrange10:r.create("--ft-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:r.create("--ft-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:r.create("--ft-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:r.create("--ft-color-orange-40","","COLOR","#FECB90"),colorOrange50:r.create("--ft-color-orange-50","","COLOR","#FCB76E"),colorOrange60:r.create("--ft-color-orange-60","","COLOR","#F9A34D"),colorOrange70:r.create("--ft-color-orange-70","","COLOR","#F68B2C"),colorOrange100:r.create("--ft-color-orange-100","","COLOR","#D35909"),colorOrange200:r.create("--ft-color-orange-200","","COLOR","#B74706"),colorOrange300:r.create("--ft-color-orange-300","","COLOR","#913503"),colorOrange400:r.create("--ft-color-orange-400","","COLOR","#6F2601"),colorOrange500:r.create("--ft-color-orange-500","","COLOR","#4D1800"),colorOrange600:r.create("--ft-color-orange-600","","COLOR","#330F00"),colorOrange700:r.create("--ft-color-orange-700","","COLOR","#140600"),colorRed0:r.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:r.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:r.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:r.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:r.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:r.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:r.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:r.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:r.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:r.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:r.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:r.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:r.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:r.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:r.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:r.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:r.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:r.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:r.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:r.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:r.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:r.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:r.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:r.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:r.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:r.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:r.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:r.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:r.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:r.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:r.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:r.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:r.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:r.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:r.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:r.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:r.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:r.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:r.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:r.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:r.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:r.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:r.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:r.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:r.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:r.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:r.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:r.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:r.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:r.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:r.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:r.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:r.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:r.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:r.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:r.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:r.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:r.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:r.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:r.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:r.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:r.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:r.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:r.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:r.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:r.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:r.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:r.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:r.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:r.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:r.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:r.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:r.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:r.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:r.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:r.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:r.create("--ft-spacing-2","","SIZE","calc(0.25rem*2)"),spacing3:r.create("--ft-spacing-3","","SIZE","calc(0.25rem*3)"),spacing4:r.create("--ft-spacing-4","","SIZE","calc(0.25rem*4)"),spacing5:r.create("--ft-spacing-5","","SIZE","calc(0.25rem*5)"),spacing6:r.create("--ft-spacing-6","","SIZE","calc(0.25rem*6)"),spacing8:r.create("--ft-spacing-8","","SIZE","calc(0.25rem*8)"),spacing10:r.create("--ft-spacing-10","","SIZE","calc(0.25rem*10)"),spacing12:r.create("--ft-spacing-12","","SIZE","calc(0.25rem*12)"),spacing16:r.create("--ft-spacing-16","","SIZE","calc(0.25rem*16)"),spacing20:r.create("--ft-spacing-20","","SIZE","calc(0.25rem*20)"),spacing24:r.create("--ft-spacing-24","","SIZE","calc(0.25rem*24)"),spacing28:r.create("--ft-spacing-28","","SIZE","calc(0.25rem*28)"),spacing32:r.create("--ft-spacing-32","","SIZE","calc(0.25rem*32)"),spacing05:r.create("--ft-spacing-0-5","","SIZE","calc(0.25rem*0.5)"),borderRadiusS:r.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:r.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:r.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:r.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:r.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:r.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:r.create("--ft-icon-size-1","","SIZE","0.75rem"),iconSize2:r.create("--ft-icon-size-2","","SIZE","1rem"),iconSize3:r.create("--ft-icon-size-3","","SIZE","1.25rem"),iconSize4:r.create("--ft-icon-size-4","","SIZE","1.5rem"),iconSize5:r.create("--ft-icon-size-5","","SIZE","2rem"),iconSize6:r.create("--ft-icon-size-6","","SIZE","3rem"),opacity0:r.create("--ft-opacity-0","","NUMBER","0"),opacity8:r.create("--ft-opacity-8","","NUMBER","0.08"),opacity12:r.create("--ft-opacity-12","","NUMBER","0.12"),opacity16:r.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:r.create("--ft-opacity-24","","NUMBER","0.24"),opacity32:r.create("--ft-opacity-32","","NUMBER","0.32"),opacity40:r.create("--ft-opacity-40","","NUMBER","0.4"),opacity48:r.create("--ft-opacity-48","","NUMBER","0.48"),opacity80:r.create("--ft-opacity-80","","NUMBER","0.8"),shadowElevation01:r.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:r.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:r.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:r.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:r.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:r.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:r.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:r.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:r.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)")},Na={fontFamily:r.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:r.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:r.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:r.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-display-textCase","","UNKNOWN","none")},La={fontFamily:r.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:r.create("--ft-typography-title-1-fontSize","","SIZE","1.5rem"),letterSpacing:r.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:r.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},ka={fontFamily:r.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-title-2-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:r.create("--ft-typography-title-2-fontSize","","SIZE","1.25rem"),letterSpacing:r.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:r.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},Pa={fontFamily:r.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-title-3-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:r.create("--ft-typography-title-3-fontSize","","SIZE","1.125rem"),letterSpacing:r.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:r.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},Da={fontFamily:r.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:r.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:r.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:r.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:r.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},$a={fontFamily:r.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:r.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:r.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:r.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},Ba={fontFamily:r.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:r.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:r.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:r.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},Ma={fontFamily:r.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:r.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:r.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:r.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:r.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},Ua={fontFamily:r.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:r.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:r.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:r.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},ip={fontFamily:r.create("--ft-typography-body-2-medium-underline-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-body-2-medium-underline-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-body-2-medium-underline-lineHeight","","SIZE","135%"),fontSize:r.create("--ft-typography-body-2-medium-underline-fontSize","","SIZE","0.875rem"),letterSpacing:r.create("--ft-typography-body-2-medium-underline-letterSpacing","","SIZE","normal"),paragraphSpacing:r.create("--ft-typography-body-2-medium-underline-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-body-2-medium-underline-paragraphIndent","","UNKNOWN","0"),textCase:r.create("--ft-typography-body-2-medium-underline-textCase","","UNKNOWN","none"),textDecoration:r.create("--ft-typography-body-2-medium-underline-textDecoration","","UNKNOWN","underline")},Fa={fontFamily:r.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:r.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:r.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:r.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},Wa={fontFamily:r.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:r.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:r.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:r.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:r.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},za={fontFamily:r.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:r.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:r.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:r.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:r.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},Ha={fontFamily:r.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:r.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:r.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:r.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:r.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:r.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},Va={fontFamily:r.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:r.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:r.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:r.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:r.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},Ga={fontFamily:r.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:r.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:r.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:r.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:r.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},ja={fontFamily:r.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:r.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:r.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:r.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:r.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:r.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},Ka={fontFamily:r.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:r.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:r.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},Za={fontFamily:r.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:r.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:r.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},qa={fontFamily:r.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:r.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:r.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:r.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},Ya={fontFamily:r.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:r.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:r.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},Xa={fontFamily:r.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:r.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:r.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},Qa={fontFamily:r.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:r.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:r.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:r.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")},Ja={fontFamily:r.create("--ft-typography-caption-3-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-3-medium-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-caption-3-medium-lineHeight","","SIZE","130%"),fontSize:r.create("--ft-typography-caption-3-medium-fontSize","","SIZE","0.625rem"),letterSpacing:r.create("--ft-typography-caption-3-medium-letterSpacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-3-medium-textCase","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-3-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-3-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-3-medium-textDecoration","","UNKNOWN","none")},ts={fontFamily:r.create("--ft-typography-caption-3-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-3-semibold-fontWeight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-caption-3-semibold-lineHeight","","SIZE","130%"),fontSize:r.create("--ft-typography-caption-3-semibold-fontSize","","SIZE","0.625rem"),letterSpacing:r.create("--ft-typography-caption-3-semibold-letterSpacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-3-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-3-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-3-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-3-semibold-textDecoration","","UNKNOWN","none")},es={fontFamily:r.create("--ft-typography-caption-3-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-3-bold-fontWeight","","UNKNOWN","700"),lineHeight:r.create("--ft-typography-caption-3-bold-lineHeight","","SIZE","130%"),fontSize:r.create("--ft-typography-caption-3-bold-fontSize","","SIZE","0.625rem"),letterSpacing:r.create("--ft-typography-caption-3-bold-letterSpacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-3-bold-textCase","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-3-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-3-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-3-bold-textDecoration","","UNKNOWN","none")},Lo={display:Na,"title-1":La,"title-2":ka,"title-3":Pa,"body-1-regular":Da,"body-1-medium":$a,"body-1-semibold":Ba,"body-2-regular":Ma,"body-2-medium":Ua,"body-2-medium-underline":ip,"body-2-semibold":Fa,"label-1-medium":Wa,"label-1-semibold":za,"label-1-bold":Ha,"label-2-medium":Va,"label-2-semibold":Ga,"label-2-bold":ja,"caption-1-medium":Ka,"caption-1-semibold":Za,"caption-1-bold":qa,"caption-2-medium":Ya,"caption-2-semibold":Xa,"caption-2-bold":Qa,"caption-3-medium":Ja,"caption-3-semibold":ts,"caption-3-bold":es};var d={backgroundActionPrimary:r.extend("--ft-background-action-primary","Used as backgorund of primary action components.",l.colorBrand0),backgroundErrorSubtle:r.extend("--ft-background-error-subtle","Used as background of subtle error components.",l.colorRed10),backgroundInfoSubtle:r.extend("--ft-background-info-subtle","Used as background of subtle information components.",l.colorCyan10),backgroundWarningSubtle:r.extend("--ft-background-warning-subtle","Used as background of subtle information components.",l.colorOrange10),backgroundSuccessSubtle:r.extend("--ft-background-success-subtle","Used as background of subtle success components.",l.colorGreen10),backgroundGlobalSurface:r.extend("--ft-background-global-surface","Used as app background.",l.colorWhite),backgroundGlobalOnSurface:r.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",l.colorGray10),backgroundGlobalOnSurfaceDark:r.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",l.colorGray30),contentActionPrimary:r.extend("--ft-content-action-primary","Used on label of primary action on light surface.",l.colorBrand0),contentWarningPrimary:r.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",l.colorOrange200),contentWarningIconOnly:r.extend("--ft-content-warning-icon-only","Used on warning status icons alone",l.colorOrange0),contentErrorPrimary:r.extend("--ft-content-error-primary","Used on label of error messages on light surface.",l.colorRed0),contentErrorIconOnly:r.extend("--ft-content-error-icon-only","Used on error status icons alone",l.colorRed70),contentInfoPrimary:r.extend("--ft-content-info-primary","Used on label of information messages on light surface.",l.colorCyan200),contentInfoIconOnly:r.extend("--ft-content-info-icon-only","Used on info status icons alone",l.colorCyan0),contentSuccessPrimary:r.extend("--ft-content-success-primary","Used on label of success messages on light surface.",l.colorGreen200),contentSuccessIconOnly:r.extend("--ft-content-success-icon-only","Used on success status icons alone",l.colorGreen0),contentGlobalPrimary:r.extend("--ft-content-global-primary","Used for main content on the page.",l.colorGray500),contentGlobalSecondary:r.extend("--ft-content-global-secondary",`Used for secondary content, often paired with primary content.
115
+ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",l.colorGray0),contentGlobalOnColor:r.extend("--ft-content-global-on-color","Used for content on a dominant color.",l.colorWhite),borderActionPrimary:r.extend("--ft-border-action-primary","Used as border for primary action components.",l.colorBrand0),borderActionFocusRing:r.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",l.colorCyan0),borderWarningPrimary:r.extend("--ft-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",l.colorOrange200),borderWarningSubtle:r.extend("--ft-border-warning-subtle","Used as border for warning components.",l.colorOrange30),borderSuccessPrimary:r.extend("--ft-border-success-primary","Used as border for success buttons.",l.colorGreen200),borderSuccessSubtle:r.extend("--ft-border-success-subtle","Used as border for success components.",l.colorGreen30),borderErrorPrimary:r.extend("--ft-border-error-primary","Used as border for text fields in error states.",l.colorRed0),borderErrorSubtle:r.extend("--ft-border-error-subtle","Used as border for error components.",l.colorRed30),borderInfoPrimary:r.extend("--ft-border-info-primary","Used as border for buttons in info color.",l.colorCyan200),borderInfoSubtle:r.extend("--ft-border-info-subtle","Used as border for information components.",l.colorCyan30),borderGlobalPrimary:r.extend("--ft-border-global-primary","Used as border for element like input.",l.colorGray50),borderGlobalSubtle:r.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",l.colorGray30),borderInputPrimary:r.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",l.colorGray80),borderNeutralPrimary:r.extend("--ft-border-neutral-primary","Used as border for neutral secondary buttons",l.colorGray200)};var f={largeHeight:r.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:r.extend("--ft-button-large-horizontal-padding","",l.spacing4),largeGap:r.extend("--ft-button-large-gap","",l.spacing2),largeBorderRadius:r.extend("--ft-button-large-border-radius","",l.borderRadiusS),largeIconSize:r.extend("--ft-button-large-icon-size","",l.iconSize3),largeBorderWidth:r.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:r.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:r.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:r.create("--ft-button-large-icon-only-width","","SIZE","40px"),mediumHeight:r.create("--ft-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:r.extend("--ft-button-medium-horizontal-padding","",l.spacing3),mediumGap:r.extend("--ft-button-medium-gap","",l.spacing2),mediumBorderRadius:r.extend("--ft-button-medium-border-radius","",l.borderRadiusS),mediumIconSize:r.extend("--ft-button-medium-icon-size","",l.iconSize2),mediumBorderWidth:r.create("--ft-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:r.create("--ft-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:r.create("--ft-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:r.create("--ft-button-medium-icon-only-width","","SIZE","30px"),smallHeight:r.create("--ft-button-small-height","","SIZE","20px"),smallHorizontalPadding:r.extend("--ft-button-small-horizontal-padding","",l.spacing2),smallGap:r.extend("--ft-button-small-gap","",l.spacing1),smallBorderRadius:r.extend("--ft-button-small-border-radius","",l.borderRadiusS),smallIconSize:r.extend("--ft-button-small-icon-size","",l.iconSize1),smallBorderWidth:r.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:r.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:r.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:r.create("--ft-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:r.create("--ft-button-x-small-height","","SIZE","16px"),xSmallIconSize:r.extend("--ft-button-x-small-icon-size","",l.iconSize1),xSmallFocusOutlineOffset:r.create("--ft-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:r.create("--ft-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:r.create("--ft-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:r.extend("--ft-button-round-border-radius","",l.borderRadiusPill),primaryBrandBackgroundColor:r.extend("--ft-button-primary-brand-background-color","",d.backgroundActionPrimary),primaryBrandColor:r.extend("--ft-button-primary-brand-color","",d.contentGlobalOnColor),primaryBrandIconColor:r.extend("--ft-button-primary-brand-icon-color","",d.contentGlobalOnColor),primaryBrandStateLayerColor:r.extend("--ft-button-primary-brand-state-layer-color","",d.contentGlobalOnColor),primaryBrandHoverStateLayerOpacity:r.extend("--ft-button-primary-brand-hover-state-layer-opacity","",l.opacity16),primaryBrandFocusStateLayerOpacity:r.extend("--ft-button-primary-brand-focus-state-layer-opacity","",l.opacity16),primaryBrandActiveStateLayerOpacity:r.extend("--ft-button-primary-brand-active-state-layer-opacity","",l.opacity24),primaryBrandDisabledComponentOpacity:r.extend("--ft-button-primary-brand-disabled-component-opacity","",l.opacity40),focusFocusRingColor:r.extend("--ft-button-focus-focus-ring-color","",d.borderActionFocusRing),tertiaryBrandBackgroundColor:r.create("--ft-button-tertiary-brand-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryBrandColor:r.extend("--ft-button-tertiary-brand-color","",d.contentActionPrimary),tertiaryBrandIconColor:r.extend("--ft-button-tertiary-brand-icon-color","",d.contentActionPrimary),tertiaryBrandStateLayerColor:r.extend("--ft-button-tertiary-brand-state-layer-color","",d.contentActionPrimary),tertiaryBrandHoverStateLayerOpacity:r.extend("--ft-button-tertiary-brand-hover-state-layer-opacity","",l.opacity8),tertiaryBrandFocusStateLayerOpacity:r.extend("--ft-button-tertiary-brand-focus-state-layer-opacity","",l.opacity8),tertiaryBrandActiveStateLayerOpacity:r.extend("--ft-button-tertiary-brand-active-state-layer-opacity","",l.opacity16),tertiaryBrandDisabledComponentOpacity:r.extend("--ft-button-tertiary-brand-disabled-component-opacity","",l.opacity40),tertiaryInfoBackgroundColor:r.create("--ft-button-tertiary-info-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryInfoColor:r.extend("--ft-button-tertiary-info-color","",d.contentInfoPrimary),tertiaryInfoIconColor:r.extend("--ft-button-tertiary-info-icon-color","",d.contentInfoPrimary),tertiaryInfoStateLayerColor:r.extend("--ft-button-tertiary-info-state-layer-color","",d.contentInfoPrimary),tertiaryInfoFocusStateLayerOpacity:r.extend("--ft-button-tertiary-info-focus-state-layer-opacity","",l.opacity8),tertiaryInfoHoverStateLayerOpacity:r.extend("--ft-button-tertiary-info-hover-state-layer-opacity","",l.opacity8),tertiaryInfoActiveStateLayerOpacity:r.extend("--ft-button-tertiary-info-active-state-layer-opacity","",l.opacity16),tertiaryInfoDisabledComponentOpacity:r.extend("--ft-button-tertiary-info-disabled-component-opacity","",l.opacity40),tertiarySuccessBackgroundColor:r.create("--ft-button-tertiary-success-background-color","","COLOR","rgba(0,0,0,0)"),tertiarySuccessColor:r.extend("--ft-button-tertiary-success-color","",d.contentSuccessPrimary),tertiarySuccessIconColor:r.extend("--ft-button-tertiary-success-icon-color","",d.contentSuccessPrimary),tertiarySuccessStateLayerColor:r.extend("--ft-button-tertiary-success-state-layer-color","",d.contentSuccessPrimary),tertiarySuccessHoverStateLayerOpacity:r.extend("--ft-button-tertiary-success-hover-state-layer-opacity","",l.opacity8),tertiarySuccessFocusStateLayerOpacity:r.extend("--ft-button-tertiary-success-focus-state-layer-opacity","",l.opacity8),tertiarySuccessActiveStateLayerOpacity:r.extend("--ft-button-tertiary-success-active-state-layer-opacity","",l.opacity16),tertiarySuccessDisabledComponentOpacity:r.extend("--ft-button-tertiary-success-disabled-component-opacity","",l.opacity40),tertiaryWarningBackgroundColor:r.create("--ft-button-tertiary-warning-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryWarningColor:r.extend("--ft-button-tertiary-warning-color","",d.contentWarningPrimary),tertiaryWarningIconColor:r.extend("--ft-button-tertiary-warning-icon-color","",d.contentWarningPrimary),tertiaryWarningStateLayerColor:r.extend("--ft-button-tertiary-warning-state-layer-color","",d.contentWarningPrimary),tertiaryWarningHoverStateLayerOpacity:r.extend("--ft-button-tertiary-warning-hover-state-layer-opacity","",l.opacity8),tertiaryWarningFocusStateLayerOpacity:r.extend("--ft-button-tertiary-warning-focus-state-layer-opacity","",l.opacity8),tertiaryWarningActiveStateLayerOpacity:r.extend("--ft-button-tertiary-warning-active-state-layer-opacity","",l.opacity16),tertiaryWarningDisabledComponentOpacity:r.extend("--ft-button-tertiary-warning-disabled-component-opacity","",l.opacity40),tertiaryErrorBackgroundColor:r.create("--ft-button-tertiary-error-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryErrorColor:r.extend("--ft-button-tertiary-error-color","",d.contentErrorPrimary),tertiaryErrorIconColor:r.extend("--ft-button-tertiary-error-icon-color","",d.contentErrorPrimary),tertiaryErrorStateLayerColor:r.extend("--ft-button-tertiary-error-state-layer-color","",d.contentErrorPrimary),tertiaryErrorHoverStateLayerOpacity:r.extend("--ft-button-tertiary-error-hover-state-layer-opacity","",l.opacity8),tertiaryErrorFocusStateLayerOpacity:r.extend("--ft-button-tertiary-error-focus-state-layer-opacity","",l.opacity8),tertiaryErrorActiveStateLayerOpacity:r.extend("--ft-button-tertiary-error-active-state-layer-opacity","",l.opacity16),tertiaryErrorDisabledComponentOpacity:r.extend("--ft-button-tertiary-error-disabled-component-opacity","",l.opacity40),tertiaryNeutralBackgroundColor:r.create("--ft-button-tertiary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryNeutralIconColor:r.extend("--ft-button-tertiary-neutral-icon-color","",d.contentGlobalSecondary),tertiaryNeutralColor:r.extend("--ft-button-tertiary-neutral-color","",d.contentGlobalSecondary),tertiaryNeutralStateLayerColor:r.extend("--ft-button-tertiary-neutral-state-layer-color","",d.contentGlobalSecondary),tertiaryNeutralHoverStateLayerOpacity:r.extend("--ft-button-tertiary-neutral-hover-state-layer-opacity","",l.opacity8),tertiaryNeutralFocusStateLayerOpacity:r.extend("--ft-button-tertiary-neutral-focus-state-layer-opacity","",l.opacity8),tertiaryNeutralActiveStateLayerOpacity:r.extend("--ft-button-tertiary-neutral-active-state-layer-opacity","",l.opacity16),tertiaryNeutralDisabledComponentOpacity:r.extend("--ft-button-tertiary-neutral-disabled-component-opacity","",l.opacity40),secondaryBrandBackgroundColor:r.create("--ft-button-secondary-brand-background-color","","COLOR","rgba(0,0,0,0)"),secondaryBrandColor:r.extend("--ft-button-secondary-brand-color","",d.contentActionPrimary),secondaryBrandIconColor:r.extend("--ft-button-secondary-brand-icon-color","",d.contentActionPrimary),secondaryBrandStateLayerColor:r.extend("--ft-button-secondary-brand-state-layer-color","",d.contentActionPrimary),secondaryBrandHoverStateLayerOpacity:r.extend("--ft-button-secondary-brand-hover-state-layer-opacity","",l.opacity8),secondaryBrandFocusStateLayerOpacity:r.extend("--ft-button-secondary-brand-focus-state-layer-opacity","",l.opacity8),secondaryBrandActiveStateLayerOpacity:r.extend("--ft-button-secondary-brand-active-state-layer-opacity","",l.opacity16),secondaryBrandDisabledComponentOpacity:r.extend("--ft-button-secondary-brand-disabled-component-opacity","",l.opacity40),secondaryBrandBorderColor:r.extend("--ft-button-secondary-brand-border-color","",d.borderActionPrimary),secondaryNeutralHoverStateLayerOpacity:r.extend("--ft-button-secondary-neutral-hover-state-layer-opacity","",l.opacity8),secondaryNeutralFocusStateLayerOpacity:r.extend("--ft-button-secondary-neutral-focus-state-layer-opacity","",l.opacity8),secondaryNeutralActiveStateLayerOpacity:r.extend("--ft-button-secondary-neutral-active-state-layer-opacity","",l.opacity16),secondaryNeutralDisabledComponentOpacity:r.extend("--ft-button-secondary-neutral-disabled-component-opacity","",l.opacity40),secondaryNeutralBackgroundColor:r.create("--ft-button-secondary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),secondaryNeutralColor:r.extend("--ft-button-secondary-neutral-color","",d.contentGlobalSecondary),secondaryNeutralIconColor:r.extend("--ft-button-secondary-neutral-icon-color","",d.contentGlobalSecondary),secondaryNeutralStateLayerColor:r.extend("--ft-button-secondary-neutral-state-layer-color","",d.contentGlobalSecondary),secondaryNeutralBorderColor:r.extend("--ft-button-secondary-neutral-border-color","",d.borderNeutralPrimary),secondaryInfoHoverStateLayerOpacity:r.extend("--ft-button-secondary-info-hover-state-layer-opacity","",l.opacity8),secondaryInfoFocusStateLayerOpacity:r.extend("--ft-button-secondary-info-focus-state-layer-opacity","",l.opacity8),secondaryInfoActiveStateLayerOpacity:r.extend("--ft-button-secondary-info-active-state-layer-opacity","",l.opacity16),secondaryInfoDisabledComponentOpacity:r.extend("--ft-button-secondary-info-disabled-component-opacity","",l.opacity40),secondaryInfoBackgroundColor:r.create("--ft-button-secondary-info-background-color","","COLOR","rgba(0,0,0,0)"),secondaryInfoBorderColor:r.extend("--ft-button-secondary-info-border-color","",d.borderInfoPrimary),secondaryInfoColor:r.extend("--ft-button-secondary-info-color","",d.contentInfoPrimary),secondaryInfoIconColor:r.extend("--ft-button-secondary-info-icon-color","",d.contentInfoPrimary),secondaryInfoStateLayerColor:r.extend("--ft-button-secondary-info-state-layer-color","",d.contentInfoPrimary),secondarySuccessHoverStateLayerOpacity:r.extend("--ft-button-secondary-success-hover-state-layer-opacity","",l.opacity8),secondarySuccessFocusStateLayerOpacity:r.extend("--ft-button-secondary-success-focus-state-layer-opacity","",l.opacity8),secondarySuccessActiveStateLayerOpacity:r.extend("--ft-button-secondary-success-active-state-layer-opacity","",l.opacity16),secondarySuccessDisabledComponentOpacity:r.extend("--ft-button-secondary-success-disabled-component-opacity","",l.opacity40),secondarySuccessBackgroundColor:r.create("--ft-button-secondary-success-background-color","","COLOR","rgba(0,0,0,0)"),secondarySuccessBorderColor:r.extend("--ft-button-secondary-success-border-color","",d.borderSuccessPrimary),secondarySuccessColor:r.extend("--ft-button-secondary-success-color","",d.contentSuccessPrimary),secondarySuccessIconColor:r.extend("--ft-button-secondary-success-icon-color","",d.contentSuccessPrimary),secondarySuccessStateLayerColor:r.extend("--ft-button-secondary-success-state-layer-color","",d.contentSuccessPrimary),secondaryWarningHoverStateLayerOpacity:r.extend("--ft-button-secondary-warning-hover-state-layer-opacity","",l.opacity8),secondaryWarningFocusStateLayerOpacity:r.extend("--ft-button-secondary-warning-focus-state-layer-opacity","",l.opacity8),secondaryWarningActiveStateLayerOpacity:r.extend("--ft-button-secondary-warning-active-state-layer-opacity","",l.opacity16),secondaryWarningDisabledComponentOpacity:r.extend("--ft-button-secondary-warning-disabled-component-opacity","",l.opacity40),secondaryWarningBackgroundColor:r.create("--ft-button-secondary-warning-background-color","","COLOR","rgba(0,0,0,0)"),secondaryWarningBorderColor:r.extend("--ft-button-secondary-warning-border-color","",d.borderWarningPrimary),secondaryWarningColor:r.extend("--ft-button-secondary-warning-color","",d.contentWarningPrimary),secondaryWarningIconColor:r.extend("--ft-button-secondary-warning-icon-color","",d.contentWarningPrimary),secondaryWarningStateLayerColor:r.extend("--ft-button-secondary-warning-state-layer-color","",d.contentWarningPrimary),secondaryErrorHoverStateLayerOpacity:r.extend("--ft-button-secondary-error-hover-state-layer-opacity","",l.opacity8),secondaryErrorFocusStateLayerOpacity:r.extend("--ft-button-secondary-error-focus-state-layer-opacity","",l.opacity8),secondaryErrorActiveStateLayerOpacity:r.extend("--ft-button-secondary-error-active-state-layer-opacity","",l.opacity16),secondaryErrorDisabledComponentOpacity:r.extend("--ft-button-secondary-error-disabled-component-opacity","",l.opacity40),secondaryErrorBackgroundColor:r.create("--ft-button-secondary-error-background-color","","COLOR","rgba(0,0,0,0)"),secondaryErrorBorderColor:r.extend("--ft-button-secondary-error-border-color","",d.contentErrorPrimary),secondaryErrorColor:r.extend("--ft-button-secondary-error-color","",d.contentErrorPrimary),secondaryErrorIconColor:r.extend("--ft-button-secondary-error-icon-color","",d.contentErrorPrimary),secondaryErrorStateLayerColor:r.extend("--ft-button-secondary-error-state-layer-color","",d.contentErrorPrimary)};var qu={iconSize:r.extend("--ft-checkbox-icon-size","",l.iconSize2),boxSize:r.create("--ft-checkbox-box-size","","SIZE","18px"),colorLegendSize:r.create("--ft-checkbox-color-legend-size","","SIZE","16px"),borderRadius:r.create("--ft-checkbox-border-radius","","SIZE","1px"),color:r.extend("--ft-checkbox-color","",d.contentGlobalPrimary),checkedBackgroundColor:r.extend("--ft-checkbox-checked-background-color","",d.contentActionPrimary),checkedStateLayerColor:r.extend("--ft-checkbox-checked-state-layer-color","",d.contentActionPrimary),checkedIconColor:r.extend("--ft-checkbox-checked-icon-color","",d.contentGlobalOnColor),checkedHoverStateLayerOpacity:r.extend("--ft-checkbox-checked-hover-state-layer-opacity","",l.opacity16),checkedFocusStateLayerOpacity:r.extend("--ft-checkbox-checked-focus-state-layer-opacity","",l.opacity16),checkedActiveStateLayerOpacity:r.extend("--ft-checkbox-checked-active-state-layer-opacity","",l.opacity24),checkedDisabledComponentOpacity:r.extend("--ft-checkbox-checked-disabled-component-opacity","",l.opacity40),uncheckedBorderColor:r.extend("--ft-checkbox-unchecked-border-color","",l.colorGray80),uncheckedStateLayerColor:r.extend("--ft-checkbox-unchecked-state-layer-color","",l.colorGray80),uncheckedHoverStateLayerOpacity:r.extend("--ft-checkbox-unchecked-hover-state-layer-opacity","",l.opacity16),uncheckedFocusStateLayerOpacity:r.extend("--ft-checkbox-unchecked-focus-state-layer-opacity","",l.opacity16),uncheckedActiveStateLayerOpacity:r.extend("--ft-checkbox-unchecked-active-state-layer-opacity","",l.opacity24),uncheckedDisabledComponentOpacity:r.extend("--ft-checkbox-unchecked-disabled-component-opacity","",l.opacity40),focusFocusRingColor:r.extend("--ft-checkbox-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineOffset:r.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:r.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),borderWidth:r.create("--ft-checkbox-border-width","","SIZE","2px"),horizontalGap:r.extend("--ft-checkbox-horizontal-gap","",l.spacing3),leftPadding:r.extend("--ft-checkbox-left-padding","",l.spacing2)};var tf={headerRowBorderWidth:r.create("--ft-table-header-row-border-width","","SIZE","1px"),headerRowBackgroundColor:r.extend("--ft-table-header-row-background-color","",d.backgroundGlobalOnSurfaceDark),headerRowBorderColor:r.extend("--ft-table-header-row-border-color","",d.borderGlobalPrimary),headerRowColor:r.extend("--ft-table-header-row-color","",d.contentGlobalPrimary),dataRowBorderWidth:r.create("--ft-table-data-row-border-width","","SIZE","1px"),dataRowBackgroundColor:r.extend("--ft-table-data-row-background-color","",d.backgroundGlobalOnSurface),dataRowBorderColor:r.extend("--ft-table-data-row-border-color","",d.borderGlobalSubtle),dataRowColor:r.extend("--ft-table-data-row-color","",d.contentGlobalSecondary),dataRowDefaultHoverBackgroundColor:r.extend("--ft-table-data-row-default-hover-background-color","",l.colorGray20),dataRowSelectableUnselectedHoverBackgroundColor:r.extend("--ft-table-data-row-selectable-unselected-hover-background-color","",l.colorGray20),dataRowSelectableSelectedDefaultBackgroundColor:r.extend("--ft-table-data-row-selectable-selected-default-background-color","",l.colorBrand10),dataRowSelectableSelectedDefaultBorderColor:r.extend("--ft-table-data-row-selectable-selected-default-border-color","",l.colorBrand20),dataRowSelectableSelectedHoverBackgroundColor:r.extend("--ft-table-data-row-selectable-selected-hover-background-color","",l.colorBrand20),dataRowSelectableSelectedHoverBorderColor:r.extend("--ft-table-data-row-selectable-selected-hover-border-color","",l.colorBrand30),dataRowSelectableSelectedColor:r.extend("--ft-table-data-row-selectable-selected-color","",d.contentActionPrimary),dataRowClickableHoverBackgroundColor:r.extend("--ft-table-data-row-clickable-hover-background-color","",l.colorGray30),dataRowClickableFocusBorderColor:r.extend("--ft-table-data-row-clickable-focus-border-color","",d.borderActionFocusRing),dataRowClickableFocusBackgroundColor:r.extend("--ft-table-data-row-clickable-focus-background-color","",l.colorGray30),dataRowClickableActiveBackgroundColor:r.extend("--ft-table-data-row-clickable-active-background-color","",l.colorGray40),headerCellHorizontalGap:r.extend("--ft-table-header-cell-horizontal-gap","",l.spacing1),headerCellVerticalPadding:r.extend("--ft-table-header-cell-vertical-padding","",l.spacing2),headerCellHorizontalPadding:r.extend("--ft-table-header-cell-horizontal-padding","",l.spacing3),dataCellVerticalPadding:r.extend("--ft-table-data-cell-vertical-padding","",l.spacing2),dataCellHorizontalPadding:r.extend("--ft-table-data-cell-horizontal-padding","",l.spacing3),dataCellVerticalGap:r.extend("--ft-table-data-cell-vertical-gap","",l.spacing1)};var af={neutralOffHoverStateLayerOpacity:r.extend("--ft-chip-choice-neutral-off-hover-state-layer-opacity","",l.opacity8),neutralOffFocusStateLayerOpacity:r.extend("--ft-chip-choice-neutral-off-focus-state-layer-opacity","",l.opacity8),neutralOffFocusFocusRingColor:r.extend("--ft-chip-choice-neutral-off-focus-focus-ring-color","",d.borderActionFocusRing),neutralOffActiveStateLayerOpacity:r.extend("--ft-chip-choice-neutral-off-active-state-layer-opacity","",l.opacity16),neutralOffBackgroundColor:r.extend("--ft-chip-choice-neutral-off-background-color","",d.backgroundGlobalOnSurface),neutralOffBorderColor:r.extend("--ft-chip-choice-neutral-off-border-color","",d.borderGlobalPrimary),neutralOffColor:r.extend("--ft-chip-choice-neutral-off-color","",d.contentGlobalSecondary),neutralOffStateLayerColor:r.extend("--ft-chip-choice-neutral-off-state-layer-color","",d.contentGlobalSecondary),neutralOnDefaultStateLayerOpacity:r.extend("--ft-chip-choice-neutral-on-default-state-layer-opacity","",l.opacity16),neutralOnHoverStateLayerOpacity:r.extend("--ft-chip-choice-neutral-on-hover-state-layer-opacity","",l.opacity24),neutralOnFocusStateLayerOpacity:r.extend("--ft-chip-choice-neutral-on-focus-state-layer-opacity","",l.opacity24),neutralOnFocusFocusRingColor:r.extend("--ft-chip-choice-neutral-on-focus-focus-ring-color","",d.borderActionFocusRing),neutralOnActiveStateLayerOpacity:r.extend("--ft-chip-choice-neutral-on-active-state-layer-opacity","",l.opacity32),neutralOnBackgroundColor:r.extend("--ft-chip-choice-neutral-on-background-color","",d.backgroundGlobalOnSurface),neutralOnBorderColor:r.extend("--ft-chip-choice-neutral-on-border-color","",d.borderGlobalPrimary),neutralOnColor:r.extend("--ft-chip-choice-neutral-on-color","",d.contentGlobalPrimary),neutralOnIconColor:r.extend("--ft-chip-choice-neutral-on-icon-color","",d.contentGlobalPrimary),neutralOnStateLayerColor:r.extend("--ft-chip-choice-neutral-on-state-layer-color","",d.contentGlobalPrimary),largeMinHeight:r.create("--ft-chip-choice-large-min-height","","SIZE","36px"),largeHorizontalPadding:r.extend("--ft-chip-choice-large-horizontal-padding","",l.spacing3),largeGap:r.extend("--ft-chip-choice-large-gap","",l.spacing1),largeBorderRadius:r.create("--ft-chip-choice-large-border-radius","","SIZE","18px"),largeBorderWidth:r.create("--ft-chip-choice-large-border-width","","SIZE","1px"),largeIconSize:r.extend("--ft-chip-choice-large-icon-size","",l.iconSize3),mediumMinHeight:r.create("--ft-chip-choice-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:r.extend("--ft-chip-choice-medium-horizontal-padding","",l.spacing2),mediumGap:r.extend("--ft-chip-choice-medium-gap","",l.spacing1),mediumBorderRadius:r.create("--ft-chip-choice-medium-border-radius","","SIZE","12px"),mediumBorderWidth:r.create("--ft-chip-choice-medium-border-width","","SIZE","1px"),mediumIconSize:r.extend("--ft-chip-choice-medium-icon-size","",l.iconSize2)};var pf={largeMinHeight:r.create("--ft-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:r.extend("--ft-chip-large-horizontal-padding","",l.spacing3),largeButtonRightPadding:r.extend("--ft-chip-large-button-right-padding","",l.spacing1),largeGap:r.extend("--ft-chip-large-gap","",l.spacing1),largeFocusOutlineOffset:r.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:r.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:r.create("--ft-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:r.create("--ft-chip-large-border-width","","SIZE","1px"),largeIconSize:r.extend("--ft-chip-large-icon-size","",l.iconSize3),mediumMinHeight:r.create("--ft-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:r.extend("--ft-chip-medium-horizontal-padding","",l.spacing2),mediumButtonRightPadding:r.extend("--ft-chip-medium-button-right-padding","",l.spacing05),mediumGap:r.extend("--ft-chip-medium-gap","",l.spacing1),mediumFocusOutlineOffset:r.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:r.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:r.create("--ft-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:r.create("--ft-chip-medium-border-width","","SIZE","1px"),mediumIconSize:r.extend("--ft-chip-medium-icon-size","",l.iconSize2),smallMinHeight:r.create("--ft-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:r.extend("--ft-chip-small-horizontal-padding","",l.spacing1),smallButtonRightPadding:r.extend("--ft-chip-small-button-right-padding","",l.spacing05),smallGap:r.extend("--ft-chip-small-gap","",l.spacing1),smallFocusOutlineOffset:r.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:r.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:r.create("--ft-chip-small-border-radius","","SIZE","10px"),smallBorderWidth:r.create("--ft-chip-small-border-width","","SIZE","1px"),smallIconSize:r.extend("--ft-chip-small-icon-size","",l.iconSize1),neutralBackgroundColor:r.extend("--ft-chip-neutral-background-color","",d.backgroundGlobalOnSurface),neutralColor:r.extend("--ft-chip-neutral-color","",d.contentGlobalSecondary),neutralIconColor:r.extend("--ft-chip-neutral-icon-color","",d.contentGlobalSecondary),neutralBorderColor:r.extend("--ft-chip-neutral-border-color","",d.borderGlobalSubtle),infoBackgroundColor:r.extend("--ft-chip-info-background-color","",d.backgroundInfoSubtle),infoColor:r.extend("--ft-chip-info-color","",d.contentInfoPrimary),infoIconColor:r.extend("--ft-chip-info-icon-color","",d.contentInfoIconOnly),infoBorderColor:r.extend("--ft-chip-info-border-color","",d.borderInfoSubtle),successBackgroundColor:r.extend("--ft-chip-success-background-color","",d.backgroundSuccessSubtle),successColor:r.extend("--ft-chip-success-color","",d.contentSuccessPrimary),successIconColor:r.extend("--ft-chip-success-icon-color","",d.contentSuccessIconOnly),successBorderColor:r.extend("--ft-chip-success-border-color","",d.borderSuccessSubtle),warningBackgroundColor:r.extend("--ft-chip-warning-background-color","",d.backgroundWarningSubtle),warningColor:r.extend("--ft-chip-warning-color","",d.contentWarningPrimary),warningIconColor:r.extend("--ft-chip-warning-icon-color","",d.contentWarningIconOnly),warningBorderColor:r.extend("--ft-chip-warning-border-color","",d.borderWarningSubtle),errorBackgroundColor:r.extend("--ft-chip-error-background-color","",d.backgroundErrorSubtle),errorColor:r.extend("--ft-chip-error-color","",d.contentErrorPrimary),errorIconColor:r.extend("--ft-chip-error-icon-color","",d.contentErrorIconOnly),errorBorderColor:r.extend("--ft-chip-error-border-color","",d.borderErrorSubtle)};var gf={brandHoverOpacity:r.extend("--ft-link-brand-hover-opacity","",l.opacity80),brandHoverColor:r.extend("--ft-link-brand-hover-color","",d.contentActionPrimary),brandFocusFocusRingColor:r.extend("--ft-link-brand-focus-focus-ring-color","",d.borderActionFocusRing),brandFocusColor:r.extend("--ft-link-brand-focus-color","",d.contentActionPrimary),brandDefaultColor:r.extend("--ft-link-brand-default-color","",d.contentActionPrimary),brandActiveColor:r.extend("--ft-link-brand-active-color","",d.contentActionPrimary),infoHoverOpacity:r.extend("--ft-link-info-hover-opacity","",l.opacity80),infoHoverColor:r.extend("--ft-link-info-hover-color","",d.contentInfoPrimary),infoFocusFocusRingColor:r.extend("--ft-link-info-focus-focus-ring-color","",d.borderActionFocusRing),infoFocusColor:r.extend("--ft-link-info-focus-color","",d.contentInfoPrimary),infoDefaultColor:r.extend("--ft-link-info-default-color","",d.contentInfoPrimary),infoActiveColor:r.extend("--ft-link-info-active-color","",d.contentInfoPrimary),neutralFocusFocusRingColor:r.extend("--ft-link-neutral-focus-focus-ring-color","",d.borderActionFocusRing),neutralFocusColor:r.extend("--ft-link-neutral-focus-color","",d.contentActionPrimary),neutralDefaultColor:r.extend("--ft-link-neutral-default-color","",d.contentGlobalPrimary),neutralHoverColor:r.extend("--ft-link-neutral-hover-color","",d.contentActionPrimary),neutralActiveColor:r.extend("--ft-link-neutral-active-color","",d.contentActionPrimary),neutralVisitedColor:r.extend("--ft-link-neutral-visited-color","",l.colorBrand100)};var Sf={iconSize:r.extend("--ft-banner-icon-size","",l.iconSize5),borderWidth:r.create("--ft-banner-border-width","","SIZE","1px"),leftPadding:r.extend("--ft-banner-left-padding","",l.spacing6),rightPadding:r.extend("--ft-banner-right-padding","",l.spacing6),verticalPadding:r.extend("--ft-banner-vertical-padding","",l.spacing6),horizontalSideGap:r.extend("--ft-banner-horizontal-side-gap","",l.spacing6),horizontalMobileGap:r.extend("--ft-banner-horizontal-mobile-gap","",l.spacing4),verticalMobileGap:r.extend("--ft-banner-vertical-mobile-gap","",l.spacing6),horizontalMiddleGap:r.extend("--ft-banner-horizontal-middle-gap","",l.spacing20),infoBackgroundColor:r.extend("--ft-banner-info-background-color","",d.backgroundInfoSubtle),infoColor:r.extend("--ft-banner-info-color","",d.contentInfoPrimary),infoIconColor:r.extend("--ft-banner-info-icon-color","",d.contentInfoIconOnly),infoBorderColor:r.extend("--ft-banner-info-border-color","",d.borderInfoSubtle)};var Af={horizontalPadding:r.extend("--ft-badge-horizontal-padding","",l.spacing1),verticalPadding:r.extend("--ft-badge-vertical-padding","",l.spacing1),borderRadius:r.extend("--ft-badge-border-radius","",l.borderRadiusPill),color:r.extend("--ft-badge-color","",d.contentGlobalOnColor),backgroundColor:r.extend("--ft-badge-background-color","",d.contentActionPrimary)};var Nf={horizontalGap:r.extend("--ft-title-breadcrumb-horizontal-gap","",l.spacing1),currentColor:r.extend("--ft-title-breadcrumb-current-color","",d.contentGlobalPrimary),previousNonClickableColor:r.extend("--ft-title-breadcrumb-previous-non-clickable-color","",d.contentGlobalSecondary),iconColor:r.extend("--ft-title-breadcrumb-icon-color","",d.contentGlobalSubtle)};var $f={parentHorizontalPadding:r.extend("--ft-page-header-parent-horizontal-padding","",l.spacing6),parentTopPadding:r.extend("--ft-page-header-parent-top-padding","",l.spacing4),parentBottomPadding:r.extend("--ft-page-header-parent-bottom-padding","",l.spacing6),parentHelpLeftMargin:r.extend("--ft-page-header-parent-help-left-margin","",l.spacing1),parentTitleColor:r.extend("--ft-page-header-parent-title-color","",d.contentGlobalPrimary),parentSubtitleColor:r.extend("--ft-page-header-parent-subtitle-color","",d.contentGlobalSecondary),parentChipLeftMargin:r.extend("--ft-page-header-parent-chip-left-margin","",l.spacing4),parentVerticalGap:r.extend("--ft-page-header-parent-vertical-gap","",l.spacing2),parentButtonsGroupHorizontalGap:r.extend("--ft-page-header-parent-buttons-group-horizontal-gap","",l.spacing4),parentButtonsGroupVerticalGap:r.extend("--ft-page-header-parent-buttons-group-vertical-gap","",l.spacing4),parentChipsGroupHorizontalGap:r.extend("--ft-page-header-parent-chips-group-horizontal-gap","",l.spacing2),parentChipsGroupVerticalGap:r.extend("--ft-page-header-parent-chips-group-vertical-gap","",l.spacing2),childHorizontalPadding:r.extend("--ft-page-header-child-horizontal-padding","",l.spacing6),childTopPadding:r.extend("--ft-page-header-child-top-padding","",l.spacing2),childBottomPadding:r.extend("--ft-page-header-child-bottom-padding","",l.spacing2),childHelpLeftMargin:r.extend("--ft-page-header-child-help-left-margin","",l.spacing1),childChipLeftMargin:r.extend("--ft-page-header-child-chip-left-margin","",l.spacing4),childVerticalGap:r.extend("--ft-page-header-child-vertical-gap","",l.spacing2),childMinHeight:r.create("--ft-page-header-child-min-height","","SIZE","40px"),childButtonsGroupHorizontalGap:r.extend("--ft-page-header-child-buttons-group-horizontal-gap","",l.spacing4),childButtonsGroupVerticalGap:r.extend("--ft-page-header-child-buttons-group-vertical-gap","",l.spacing4),childChipsGroupHorizontalGap:r.extend("--ft-page-header-child-chips-group-horizontal-gap","",l.spacing2),childChipsGroupVerticalGap:r.extend("--ft-page-header-child-chips-group-vertical-gap","",l.spacing2),backgroundColor:r.extend("--ft-page-header-background-color","",l.colorWhite),bottomBorderColor:r.extend("--ft-page-header-bottom-border-color","",d.borderGlobalSubtle),bottomBorderWidth:r.create("--ft-page-header-bottom-border-width","","SIZE","1px")};var Wf={horizontalPadding:r.extend("--ft-page-footer-horizontal-padding","",l.spacing6),verticalPadding:r.extend("--ft-page-footer-vertical-padding","",l.spacing2),verticalGap:r.extend("--ft-page-footer-vertical-gap","",l.spacing2),minHeight:r.create("--ft-page-footer-min-height","","SIZE","40px"),backgroundColor:r.extend("--ft-page-footer-background-color","",l.colorWhite),topBorderColor:r.extend("--ft-page-footer-top-border-color","",d.borderGlobalSubtle),topBorderWidth:r.create("--ft-page-footer-top-border-width","","SIZE","1px"),buttonsGroupGap:r.extend("--ft-page-footer-buttons-group-gap","",l.spacing4)};var Gf={contentHorizontalPadding:r.extend("--ft-page-layout-content-horizontal-padding","",l.spacing6),contentVerticalPadding:r.extend("--ft-page-layout-content-vertical-padding","",l.spacing6)};var Yf={smallContainerTargetWidth:r.create("--ft-modal-small-container-target-width","","SIZE","560px"),smallContainerMargin:r.extend("--ft-modal-small-container-margin","",l.spacing6),mediumContainerTargetWidth:r.create("--ft-modal-medium-container-target-width","","SIZE","800px"),mediumContainerMargin:r.extend("--ft-modal-medium-container-margin","",l.spacing6),largeContainerTargetWidth:r.create("--ft-modal-large-container-target-width","","SIZE","1040px"),largeContainerMargin:r.extend("--ft-modal-large-container-margin","",l.spacing6),overlayBackgroundColor:r.extend("--ft-modal-overlay-background-color","",l.colorGray700),overlayOpacity:r.extend("--ft-modal-overlay-opacity","",l.opacity40),shadow:r.extend("--ft-modal-shadow","",l.shadowElevation03),bodyBackgroundColor:r.extend("--ft-modal-body-background-color","",l.colorWhite),bodyColor:r.extend("--ft-modal-body-color","",d.contentGlobalPrimary),bodyHorizontalPadding:r.extend("--ft-modal-body-horizontal-padding","",l.spacing6),bodyVerticalPadding:r.extend("--ft-modal-body-vertical-padding","",l.spacing6),bodyVerticalGap:r.extend("--ft-modal-body-vertical-gap","",l.spacing6),headerBackgroundColor:r.extend("--ft-modal-header-background-color","",d.backgroundGlobalOnSurface),headerBorderColor:r.extend("--ft-modal-header-border-color","",d.borderGlobalSubtle),headerColor:r.extend("--ft-modal-header-color","",d.contentGlobalPrimary),headerLeadingIconColor:r.extend("--ft-modal-header-leading-icon-color","",d.contentGlobalPrimary),headerVerticalPadding:r.extend("--ft-modal-header-vertical-padding","",l.spacing1),headerRightPadding:r.extend("--ft-modal-header-right-padding","",l.spacing1),headerLeftPadding:r.extend("--ft-modal-header-left-padding","",l.spacing6),headerGap:r.extend("--ft-modal-header-gap","",l.spacing2),headerBorderBottomWidth:r.create("--ft-modal-header-border-bottom-width","","SIZE","1px"),borderRadius:r.extend("--ft-modal-border-radius","",l.borderRadiusM)};var eh={overlayOpacity:r.extend("--ft-drawer-overlay-opacity","",l.opacity40),shadow:r.extend("--ft-drawer-shadow","",l.shadowElevation03),bodyColor:r.extend("--ft-drawer-body-color","",d.contentGlobalPrimary),bodyHorizontalPadding:r.extend("--ft-drawer-body-horizontal-padding","",l.spacing6),bodyVerticalPadding:r.extend("--ft-drawer-body-vertical-padding","",l.spacing6),bodyGap:r.extend("--ft-drawer-body-gap","",l.spacing6),bodyBackgroundColor:r.extend("--ft-drawer-body-background-color","",l.colorWhite),headerBackgroundColor:r.extend("--ft-drawer-header-background-color","",d.backgroundGlobalOnSurface),headerBorderColor:r.extend("--ft-drawer-header-border-color","",d.borderGlobalSubtle),headerColor:r.extend("--ft-drawer-header-color","",d.contentGlobalPrimary),headerTrailingIconColor:r.extend("--ft-drawer-header-trailing-icon-color","",d.contentGlobalSecondary),headerHeight:r.create("--ft-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:r.extend("--ft-drawer-header-horizontal-padding","",l.spacing2),headerBorderWidth:r.create("--ft-drawer-header-border-width","","SIZE","1px"),headerGap:r.extend("--ft-drawer-header-gap","",l.spacing3),buttonsBarBackgroundColor:r.extend("--ft-drawer-buttons-bar-background-color","",d.backgroundGlobalOnSurface),buttonsBarBorderColor:r.extend("--ft-drawer-buttons-bar-border-color","",d.borderGlobalSubtle),buttonsBarColor:r.extend("--ft-drawer-buttons-bar-color","",d.contentGlobalPrimary),buttonsBarHorizontalPadding:r.extend("--ft-drawer-buttons-bar-horizontal-padding","",l.spacing6),buttonsBarVerticalPadding:r.extend("--ft-drawer-buttons-bar-vertical-padding","",l.spacing4),buttonsBarGap:r.extend("--ft-drawer-buttons-bar-gap","",l.spacing3),buttonsBarBorderWidth:r.create("--ft-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:r.create("--ft-drawer-container-width","","SIZE","66%"),containerMinWidth:r.create("--ft-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:r.create("--ft-drawer-container-max-width","","SIZE","1000px"),containerHeight:r.create("--ft-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:r.extend("--ft-drawer-overlay-background-color","",l.colorGray700)};var ah={offBorderBottomWidth:r.create("--ft-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:r.extend("--ft-tabs-off-hover-state-layer-opacity","",l.opacity8),offDefaultStateLayerOpacity:r.extend("--ft-tabs-off-default-state-layer-opacity","",l.opacity0),offFocusStateLayerOpacity:r.extend("--ft-tabs-off-focus-state-layer-opacity","",l.opacity8),offDisabledComponentOpacity:r.extend("--ft-tabs-off-disabled-component-opacity","",l.opacity40),offColor:r.extend("--ft-tabs-off-color","",d.contentGlobalSubtle),offStateLayerColor:r.extend("--ft-tabs-off-state-layer-color","",d.contentGlobalSubtle),offBorderBottomColor:r.extend("--ft-tabs-off-border-bottom-color","",d.borderGlobalSubtle),activeTabIndicatorHeight:r.create("--ft-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:r.extend("--ft-tabs-top-left-border-radius","",l.borderRadiusS),topRightBorderRadius:r.extend("--ft-tabs-top-right-border-radius","",l.borderRadiusS),withLabelHorizontalPadding:r.extend("--ft-tabs-with-label-horizontal-padding","",l.spacing4),withLabelVerticalPadding:r.extend("--ft-tabs-with-label-vertical-padding","",l.spacing3),horizontalGap:r.extend("--ft-tabs-horizontal-gap","",l.spacing1),verticalGap:r.extend("--ft-tabs-vertical-gap","",l.spacing1),onHoverStateLayerOpacity:r.extend("--ft-tabs-on-hover-state-layer-opacity","",l.opacity16),onDefaultStateLayerOpacity:r.extend("--ft-tabs-on-default-state-layer-opacity","",l.opacity8),onFocusStateLayerOpacity:r.extend("--ft-tabs-on-focus-state-layer-opacity","",l.opacity16),onActiveStateLayerOpacity:r.extend("--ft-tabs-on-active-state-layer-opacity","",l.opacity24),onColor:r.extend("--ft-tabs-on-color","",d.contentActionPrimary),onStateLayerColor:r.extend("--ft-tabs-on-state-layer-color","",d.contentActionPrimary),onActiveTabIndicatorColor:r.extend("--ft-tabs-on-active-tab-indicator-color","",d.contentActionPrimary),iconOnlyHorizontalPadding:r.extend("--ft-tabs-icon-only-horizontal-padding","",l.spacing4),iconOnlyVerticalPadding:r.extend("--ft-tabs-icon-only-vertical-padding","",l.spacing4),alertTopPadding:r.extend("--ft-tabs-alert-top-padding","",l.spacing1),alertRightPadding:r.extend("--ft-tabs-alert-right-padding","",l.spacing05),focusOutlineWidth:r.create("--ft-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:r.extend("--ft-tabs-focus-focus-ring-color","",d.borderActionFocusRing)};var ph={fieldHorizontalPadding:r.extend("--ft-text-input-field-horizontal-padding","",l.spacing4),fieldHorizontalGap:r.extend("--ft-text-input-field-horizontal-gap","",l.spacing3),fieldVerticalGap:r.extend("--ft-text-input-field-vertical-gap","",l.spacing05),fieldIconSize:r.extend("--ft-text-input-field-icon-size","",l.iconSize3),fieldHeight:r.create("--ft-text-input-field-height","","SIZE","50px"),helperHorizontalPadding:r.extend("--ft-text-input-helper-horizontal-padding","",l.spacing4),helperHorizontalGap:r.extend("--ft-text-input-helper-horizontal-gap","",l.spacing1),helperIconSize:r.extend("--ft-text-input-helper-icon-size","",l.iconSize2),borderRadius:r.extend("--ft-text-input-border-radius","",l.borderRadiusM),backgroundColor:r.extend("--ft-text-input-background-color","",l.colorWhite),contentValueColor:r.extend("--ft-text-input-content-value-color","",d.contentGlobalPrimary),trailingIconColor:r.extend("--ft-text-input-trailing-icon-color","",d.contentGlobalSubtle),labelColor:r.extend("--ft-text-input-label-color","",d.contentGlobalSubtle),defaultBorderColor:r.extend("--ft-text-input-default-border-color","",d.borderInputPrimary),defaultHelperTextColor:r.extend("--ft-text-input-default-helper-text-color","",d.contentGlobalSubtle),defaultBorderWidth:r.create("--ft-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:r.create("--ft-text-input-error-border-width","","SIZE","2px"),errorBorderColor:r.extend("--ft-text-input-error-border-color","",d.borderErrorPrimary),errorHelperTextColor:r.extend("--ft-text-input-error-helper-text-color","",d.contentErrorPrimary),errorHelperIconColor:r.extend("--ft-text-input-error-helper-icon-color","",d.contentErrorIconOnly),warningBorderWidth:r.create("--ft-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:r.create("--ft-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:r.extend("--ft-text-input-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineOffset:r.create("--ft-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:r.extend("--ft-text-input-disabled-component-opacity","",l.opacity40)};var gh={backgroundColor:r.extend("--ft-text-area-background-color","",l.colorWhite),contentValueColor:r.extend("--ft-text-area-content-value-color","",d.contentGlobalPrimary),labelColor:r.extend("--ft-text-area-label-color","",d.contentGlobalSubtle),defaultBorderColor:r.extend("--ft-text-area-default-border-color","",d.borderInputPrimary),defaultHelperTextColor:r.extend("--ft-text-area-default-helper-text-color","",d.contentGlobalSubtle),defaultBorderWidth:r.create("--ft-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:r.create("--ft-text-area-error-border-width","","SIZE","2px"),errorBorderColor:r.extend("--ft-text-area-error-border-color","",d.borderErrorPrimary),errorHelperTextColor:r.extend("--ft-text-area-error-helper-text-color","",d.contentErrorPrimary),errorHelperIconColor:r.extend("--ft-text-area-error-helper-icon-color","",d.contentErrorIconOnly),focusFocusRingColor:r.extend("--ft-text-area-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineWidth:r.create("--ft-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:r.create("--ft-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:r.extend("--ft-text-area-disabled-component-opacity","",l.opacity40),fieldHorizontalLeftPadding:r.extend("--ft-text-area-field-horizontal-left-padding","",l.spacing4),fieldHorizontalGap:r.extend("--ft-text-area-field-horizontal-gap","",l.spacing3),fieldVerticalGap:r.extend("--ft-text-area-field-vertical-gap","",l.spacing05),fieldMinHeight:r.create("--ft-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:r.extend("--ft-text-area-helper-horizontal-padding","",l.spacing4),helperHorizontalGap:r.extend("--ft-text-area-helper-horizontal-gap","",l.spacing1),helperIconSize:r.extend("--ft-text-area-helper-icon-size","",l.iconSize2),borderRadius:r.extend("--ft-text-area-border-radius","",l.borderRadiusM)};var Sh={height:r.create("--ft-floating-menu-height","","SIZE","50px"),horizontalPadding:r.extend("--ft-floating-menu-horizontal-padding","",l.spacing4),offIconColor:r.extend("--ft-floating-menu-off-icon-color","",d.contentGlobalPrimary),offColor:r.extend("--ft-floating-menu-off-color","",d.contentGlobalPrimary),onColor:r.extend("--ft-floating-menu-on-color","",d.contentActionPrimary),onStateLayerColor:r.extend("--ft-floating-menu-on-state-layer-color","",d.contentActionPrimary),gap:r.extend("--ft-floating-menu-gap","",l.spacing3),focusFocusRingColor:r.extend("--ft-floating-menu-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineWidth:r.create("--ft-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:r.extend("--ft-floating-menu-focus-state-layer-opacity","",l.opacity8),hoverStateLayerOpacity:r.extend("--ft-floating-menu-hover-state-layer-opacity","",l.opacity8),activeStateLayerOpacity:r.extend("--ft-floating-menu-active-state-layer-opacity","",l.opacity16),disabledComponentOpacity:r.extend("--ft-floating-menu-disabled-component-opacity","",l.opacity40),iconSize:r.extend("--ft-floating-menu-icon-size","",l.iconSize3),backgroundColor:r.extend("--ft-floating-menu-background-color","",d.backgroundGlobalOnSurface),shadow:r.extend("--ft-floating-menu-shadow","",l.shadowElevation02)};var Ah={fieldHorizontalPadding:r.extend("--ft-combobox-single-select-field-horizontal-padding","",l.spacing4),fieldHorizontalGap:r.extend("--ft-combobox-single-select-field-horizontal-gap","",l.spacing3),fieldVerticalGap:r.extend("--ft-combobox-single-select-field-vertical-gap","",l.spacing05),fieldIconSize:r.extend("--ft-combobox-single-select-field-icon-size","",l.iconSize3),fieldHeight:r.create("--ft-combobox-single-select-field-height","","SIZE","50px"),helperHorizontalPadding:r.extend("--ft-combobox-single-select-helper-horizontal-padding","",l.spacing4),helperHorizontalGap:r.extend("--ft-combobox-single-select-helper-horizontal-gap","",l.spacing1),helperVerticalGap:r.extend("--ft-combobox-single-select-helper-vertical-gap","",l.spacing1),helperIconSize:r.extend("--ft-combobox-single-select-helper-icon-size","",l.iconSize2),menuVerticalGap:r.extend("--ft-combobox-single-select-menu-vertical-gap","",l.spacing2),borderRadius:r.extend("--ft-combobox-single-select-border-radius","",l.borderRadiusM),backgroundColor:r.extend("--ft-combobox-single-select-background-color","",l.colorWhite),labelColor:r.extend("--ft-combobox-single-select-label-color","",d.contentGlobalSubtle),contentValueColor:r.extend("--ft-combobox-single-select-content-value-color","",d.contentGlobalPrimary),trailingIconColor:r.extend("--ft-combobox-single-select-trailing-icon-color","",d.contentGlobalSubtle),defaultBorderColor:r.extend("--ft-combobox-single-select-default-border-color","",d.borderInputPrimary),defaultHelperTextColor:r.extend("--ft-combobox-single-select-default-helper-text-color","",d.contentGlobalSubtle),defaultBorderWidth:r.create("--ft-combobox-single-select-default-border-width","","SIZE","1px"),errorBorderWidth:r.create("--ft-combobox-single-select-error-border-width","","SIZE","2px"),errorBorderColor:r.extend("--ft-combobox-single-select-error-border-color","",d.borderErrorPrimary),errorHelperTextColor:r.extend("--ft-combobox-single-select-error-helper-text-color","",d.contentErrorPrimary),warningBorderWidth:r.create("--ft-combobox-single-select-warning-border-width","","SIZE","2px"),warningBorderColor:r.extend("--ft-combobox-single-select-warning-border-color","",d.borderWarningPrimary),warningHelperTextColor:r.extend("--ft-combobox-single-select-warning-helper-text-color","",d.contentWarningPrimary),warningHelperIconColor:r.extend("--ft-combobox-single-select-warning-helper-icon-color","",d.contentWarningIconOnly),focusOutlineWidth:r.create("--ft-combobox-single-select-focus-outline-width","","SIZE","2px"),focusFocusRingColor:r.extend("--ft-combobox-single-select-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineOffset:r.create("--ft-combobox-single-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:r.extend("--ft-combobox-single-select-disabled-component-opacity","",l.opacity40)};var Nh={backgroundColor:r.extend("--ft-combobox-multi-select-background-color","",l.colorWhite),labelColor:r.extend("--ft-combobox-multi-select-label-color","",d.contentGlobalSubtle),trailingIconColor:r.extend("--ft-combobox-multi-select-trailing-icon-color","",d.contentGlobalSubtle),defaultBorderColor:r.extend("--ft-combobox-multi-select-default-border-color","",d.borderInputPrimary),defaultHelperTextColor:r.extend("--ft-combobox-multi-select-default-helper-text-color","",d.contentGlobalSubtle),defaultBorderWidth:r.create("--ft-combobox-multi-select-default-border-width","","SIZE","1px"),errorBorderColor:r.extend("--ft-combobox-multi-select-error-border-color","",d.borderErrorPrimary),errorHelperTextColor:r.extend("--ft-combobox-multi-select-error-helper-text-color","",d.contentErrorPrimary),errorHelperIcon:r.extend("--ft-combobox-multi-select-error-helper-icon","",d.contentErrorIconOnly),errorBorderWidth:r.create("--ft-combobox-multi-select-error-border-width","","SIZE","2px"),warningBorderColor:r.extend("--ft-combobox-multi-select-warning-border-color","",d.borderWarningPrimary),warningHelperTextColor:r.extend("--ft-combobox-multi-select-warning-helper-text-color","",d.contentWarningPrimary),warningHelperIconColor:r.extend("--ft-combobox-multi-select-warning-helper-icon-color","",d.contentWarningIconOnly),warningBorderWidth:r.create("--ft-combobox-multi-select-warning-border-width","","SIZE","2px"),focusFocusRingColor:r.extend("--ft-combobox-multi-select-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineWidth:r.create("--ft-combobox-multi-select-focus-outline-width","","SIZE","2px"),focusOutlineOffset:r.create("--ft-combobox-multi-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:r.extend("--ft-combobox-multi-select-disabled-component-opacity","",l.opacity40),helperHorizontalPadding:r.extend("--ft-combobox-multi-select-helper-horizontal-padding","",l.spacing4),helperHorizontalGap:r.extend("--ft-combobox-multi-select-helper-horizontal-gap","",l.spacing1),helperVerticalGap:r.extend("--ft-combobox-multi-select-helper-vertical-gap","",l.spacing1),helperIconSize:r.extend("--ft-combobox-multi-select-helper-icon-size","",l.iconSize2),fieldHorizontalPadding:r.extend("--ft-combobox-multi-select-field-horizontal-padding","",l.spacing4),fieldHorizontalGap:r.extend("--ft-combobox-multi-select-field-horizontal-gap","",l.spacing3),fieldVerticalGap:r.extend("--ft-combobox-multi-select-field-vertical-gap","",l.spacing05),fieldIconSize:r.extend("--ft-combobox-multi-select-field-icon-size","",l.iconSize3),fieldMaxHeight:r.create("--ft-combobox-multi-select-field-max-height","","SIZE","112px"),contentValuesHorizontalGap:r.extend("--ft-combobox-multi-select-content-values-horizontal-gap","",l.spacing1),contentValuesVerticalGap:r.extend("--ft-combobox-multi-select-content-values-vertical-gap","",l.spacing1),borderRadius:r.extend("--ft-combobox-multi-select-border-radius","",l.borderRadiusM)};var $h={backgroundColor:r.extend("--ft-popover-background-color","",d.backgroundGlobalOnSurface),horizontalPadding:r.extend("--ft-popover-horizontal-padding","",l.spacing6),verticalPadding:r.extend("--ft-popover-vertical-padding","",l.spacing6),titleColor:r.extend("--ft-popover-title-color","",d.contentGlobalPrimary),bodyColor:r.extend("--ft-popover-body-color","",d.contentGlobalSecondary),linkColor:r.extend("--ft-popover-link-color","",d.contentActionPrimary),gap:r.extend("--ft-popover-gap","",l.spacing3),borderRadius:r.extend("--ft-popover-border-radius","",l.borderRadiusM),shadow:r.extend("--ft-popover-shadow","",l.shadowElevation02),maxWidth:r.create("--ft-popover-max-width","","SIZE","440px")};var Wh={hoverStateLayerOpacity:r.extend("--ft-collapsible-hover-state-layer-opacity","",l.opacity8),focusStateLayerOpacity:r.extend("--ft-collapsible-focus-state-layer-opacity","",l.opacity8),focusOutlineWidth:r.create("--ft-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:r.extend("--ft-collapsible-focus-focus-ring-color","",d.borderActionFocusRing),activeStateLayerOpacity:r.extend("--ft-collapsible-active-state-layer-opacity","",l.opacity16),disabledComponentOpacity:r.extend("--ft-collapsible-disabled-component-opacity","",l.opacity40),horizontalPadding:r.extend("--ft-collapsible-horizontal-padding","",l.spacing4),verticalPadding:r.extend("--ft-collapsible-vertical-padding","",l.spacing3),color:r.extend("--ft-collapsible-color","",d.contentGlobalPrimary),stateLayerColor:r.extend("--ft-collapsible-state-layer-color","",d.contentGlobalPrimary),backgroundColor:r.extend("--ft-collapsible-background-color","",d.backgroundGlobalOnSurface),borderColor:r.extend("--ft-collapsible-border-color","",d.borderGlobalSubtle),iconSize:r.extend("--ft-collapsible-icon-size","",l.iconSize3)};var jh={groupHorizontalPadding:r.extend("--ft-switch-group-horizontal-padding","",l.spacing1),groupVerticalPadding:r.extend("--ft-switch-group-vertical-padding","",l.spacing1),groupGap:r.extend("--ft-switch-group-gap","",l.spacing1),groupBackgroundColor:r.extend("--ft-switch-group-background-color","",d.backgroundGlobalSurface),groupBorderColor:r.extend("--ft-switch-group-border-color","",d.borderGlobalSubtle),groupBorderRadius:r.create("--ft-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:r.extend("--ft-switch-label-horizontal-padding","",l.spacing2),labelVerticalPadding:r.extend("--ft-switch-label-vertical-padding","",l.spacing1),offHoverStateLayerOpacity:r.extend("--ft-switch-off-hover-state-layer-opacity","",l.opacity8),offFocusStateLayerOpacity:r.extend("--ft-switch-off-focus-state-layer-opacity","",l.opacity8),offActiveStateLayerOpacity:r.extend("--ft-switch-off-active-state-layer-opacity","",l.opacity16),offDisabledComponentOpacity:r.extend("--ft-switch-off-disabled-component-opacity","",l.opacity40),offColor:r.extend("--ft-switch-off-color","",d.contentGlobalSubtle),offStateLayerColor:r.extend("--ft-switch-off-state-layer-color","",d.contentGlobalSubtle),onHoverStateLayerOpacity:r.extend("--ft-switch-on-hover-state-layer-opacity","",l.opacity8),onFocusStateLayerOpacity:r.extend("--ft-switch-on-focus-state-layer-opacity","",l.opacity8),onActiveStateLayerOpacity:r.extend("--ft-switch-on-active-state-layer-opacity","",l.opacity16),onDisabledComponentOpacity:r.extend("--ft-switch-on-disabled-component-opacity","",l.opacity40),onColor:r.extend("--ft-switch-on-color","",d.contentActionPrimary),onStateLayerColor:r.extend("--ft-switch-on-state-layer-color","",d.contentActionPrimary),iconHorizontalPadding:r.extend("--ft-switch-icon-horizontal-padding","",l.spacing1),iconVerticalPadding:r.extend("--ft-switch-icon-vertical-padding","",l.spacing1),focusOutlineWidth:r.create("--ft-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:r.extend("--ft-switch-focus-focus-ring-color","",d.borderActionFocusRing),optionBorderRadius:r.extend("--ft-switch-option-border-radius","",l.borderRadiusS)};var Yh={color1Light:r.extend("--ft-chart-1-light","for area color charts",l.colorBrand40),color1Base:r.extend("--ft-chart-1-base","for line charts",l.colorBrand0),color2Light:r.extend("--ft-chart-2-light","for area color charts",l.colorYellow60),color2Base:r.extend("--ft-chart-2-base","for line charts",l.colorYellow100),color3Light:r.extend("--ft-chart-3-light","",l.colorUltramarine40),color3Base:r.extend("--ft-chart-3-base","",l.colorUltramarine70),color4Light:r.extend("--ft-chart-4-light","",l.colorCyan50),color4Base:r.extend("--ft-chart-4-base","",l.colorCyan100),color5Light:r.extend("--ft-chart-5-light","",l.colorRed40),color5Base:r.extend("--ft-chart-5-base","",l.colorRed60),color6Light:r.extend("--ft-chart-6-light","",l.colorGreen40),color6Base:r.extend("--ft-chart-6-base","",l.colorGreen70),color7Light:r.extend("--ft-chart-7-light","",l.colorOrange70),color7Base:r.extend("--ft-chart-7-base","",l.colorOrange100),color8Light:r.extend("--ft-chart-8-light","",l.colorAvocado70),color8Base:r.extend("--ft-chart-8-base","",l.colorAvocado200),color9Light:r.extend("--ft-chart-9-light","",l.colorBrown50),color9Base:r.extend("--ft-chart-9-base","",l.colorBrown200),color10Light:r.extend("--ft-chart-10-light","",l.colorGray50),color10Base:r.extend("--ft-chart-10-base","",l.colorGray80),monochrome10:r.extend("--ft-chart-monochrome-10","",l.colorBrand10),monochrome20:r.extend("--ft-chart-monochrome-20","",l.colorBrand20),monochrome30:r.extend("--ft-chart-monochrome-30","",l.colorBrand40),monochrome40:r.extend("--ft-chart-monochrome-40","",l.colorBrand60),monochrome50:r.extend("--ft-chart-monochrome-50","",l.colorBrand0),monochrome60:r.extend("--ft-chart-monochrome-60","",l.colorBrand200),scatterplotQuadrantPopularOldBackgroundColor:r.extend("--ft-chart-scatterplot-quadrant-popular-old-background-color","",l.colorYellow10),scatterplotQuadrantPopularNewBackgroundColor:r.extend("--ft-chart-scatterplot-quadrant-popular-new-background-color","",l.colorAvocado10),scatterplotQuadrantUnpopularOldBackgroundColor:r.extend("--ft-chart-scatterplot-quadrant-unpopular-old-background-color","",l.colorRed10),scatterplotQuadrantUnpopularNewBackgroundColor:r.extend("--ft-chart-scatterplot-quadrant-unpopular-new-background-color","",l.colorCyan10),scatterplotDatapointInitialDefaultBackgroundColor:r.extend("--ft-chart-scatterplot-datapoint-initial-default-background-color","",l.colorBrand70),scatterplotDatapointInitialDefaultBackgroundOpacity:r.extend("--ft-chart-scatterplot-datapoint-initial-default-background-opacity","",l.opacity48),scatterplotDatapointInitialHoverBackgroundColor:r.extend("--ft-chart-scatterplot-datapoint-initial-hover-background-color","",l.colorBrand0),scatterplotDatapointSelectedDefaultBackgroundColor:r.extend("--ft-chart-scatterplot-datapoint-selected-default-background-color","",l.colorBrand100),scatterplotDatapointSelectedHoverBackgroundColor:r.extend("--ft-chart-scatterplot-datapoint-selected-hover-background-color","",l.colorBrand200),scatterplotDatapointUnselectedDefaultBackgroundColor:r.extend("--ft-chart-scatterplot-datapoint-unselected-default-background-color","",l.colorGray60),scatterplotDatapointUnselectedDefaultBackgroundOpacity:r.extend("--ft-chart-scatterplot-datapoint-unselected-default-background-opacity","",l.opacity48),scatterplotDatapointUnselectedHoverBackgroundColor:r.extend("--ft-chart-scatterplot-datapoint-unselected-hover-background-color","",l.colorGray70),scatterplotDatapointHoverHoverRingColor:r.extend("--ft-chart-scatterplot-datapoint-hover-hover-ring-color","",l.colorCyan200)};var ty={color1IconColor:r.extend("--ft-page-designer-1-icon-color","for area color charts",l.colorCyan0),color1ToolbarColor:r.extend("--ft-page-designer-1-toolbar-color","for area color charts",l.colorCyan0),color2IconColor:r.extend("--ft-page-designer-2-icon-color","for area color charts",l.colorBrand0),color2ToolbarColor:r.extend("--ft-page-designer-2-toolbar-color","for area color charts",l.colorBrand0),color3IconColor:r.extend("--ft-page-designer-3-icon-color","for area color charts",l.colorYellow200),color3ToolbarColor:r.extend("--ft-page-designer-3-toolbar-color","for area color charts",l.colorYellow200),color4IconColor:r.extend("--ft-page-designer-4-icon-color","for area color charts",l.colorUltramarine50),color4ToolbarColor:r.extend("--ft-page-designer-4-toolbar-color","for area color charts",l.colorUltramarine50),color5IconColor:r.extend("--ft-page-designer-5-icon-color","for area color charts",l.colorGreen0),color5ToolbarColor:r.extend("--ft-page-designer-5-toolbar-color","for area color charts",l.colorGreen0),color6IconColor:r.extend("--ft-page-designer-6-icon-color","for area color charts",l.colorOrange0),color6ToolbarColor:r.extend("--ft-page-designer-6-toolbar-color","for area color charts",l.colorOrange0),color7IconColor:r.extend("--ft-page-designer-7-icon-color","for area color charts",l.colorAvocado200),color7ToolbarColor:r.extend("--ft-page-designer-7-toolbar-color","for area color charts",l.colorAvocado200),color8IconColor:r.extend("--ft-page-designer-8-icon-color","for area color charts",l.colorBrown0),color8ToolbarColor:r.extend("--ft-page-designer-8-toolbar-color","for area color charts",l.colorBrown0)};var ny={borderWidth:r.create("--ft-notice-border-width","","SIZE","1px"),horizontalPadding:r.extend("--ft-notice-horizontal-padding","",l.spacing3),verticalPadding:r.extend("--ft-notice-vertical-padding","",l.spacing2),borderRadius:r.extend("--ft-notice-border-radius","",l.borderRadiusS),gap:r.extend("--ft-notice-gap","",l.spacing2),iconSize:r.extend("--ft-notice-icon-size","",l.iconSize3),infoBackgroundColor:r.extend("--ft-notice-info-background-color","",d.backgroundInfoSubtle),infoBorderColor:r.extend("--ft-notice-info-border-color","",d.borderInfoSubtle),infoColor:r.extend("--ft-notice-info-color","",d.contentInfoPrimary),infoIconColor:r.extend("--ft-notice-info-icon-color","",d.contentInfoIconOnly),warningBackgroundColor:r.extend("--ft-notice-warning-background-color","",d.backgroundWarningSubtle),warningBorderColor:r.extend("--ft-notice-warning-border-color","",d.borderWarningSubtle),warningColor:r.extend("--ft-notice-warning-color","",d.contentWarningPrimary),warningIconColor:r.extend("--ft-notice-warning-icon-color","",d.contentWarningIconOnly),errorBackgroundColor:r.extend("--ft-notice-error-background-color","",d.backgroundErrorSubtle),errorBorderColor:r.extend("--ft-notice-error-border-color","",d.borderErrorSubtle),errorColor:r.extend("--ft-notice-error-color","",d.contentErrorPrimary),errorIconColor:r.extend("--ft-notice-error-icon-color","",d.contentErrorIconOnly),successBackgroundColor:r.extend("--ft-notice-success-background-color","",d.backgroundSuccessSubtle),successBorderColor:r.extend("--ft-notice-success-border-color","",d.borderSuccessSubtle),successColor:r.extend("--ft-notice-success-color","",d.contentSuccessPrimary),successIconColor:r.extend("--ft-notice-success-icon-color","",d.contentSuccessIconOnly),denseHorizontalPadding:r.create("--ft-notice-dense-horizontal-padding","","SIZE","0px"),denseVerticalPadding:r.create("--ft-notice-dense-vertical-padding","","SIZE","0px"),denseGap:r.extend("--ft-notice-dense-gap","",l.spacing1),denseIconSize:r.extend("--ft-notice-dense-icon-size","",l.iconSize2),denseBorderWidth:r.create("--ft-notice-dense-border-width","","SIZE","0")};var dy={offHoverStateLayerOpacity:r.extend("--ft-toggle-off-hover-state-layer-opacity","",l.opacity16),offFocusStateLayerOpacity:r.extend("--ft-toggle-off-focus-state-layer-opacity","",l.opacity16),offActiveStateLayerOpacity:r.extend("--ft-toggle-off-active-state-layer-opacity","",l.opacity24),offDisabledComponentOpacity:r.extend("--ft-toggle-off-disabled-component-opacity","",l.opacity40),offBackgroundColor:r.extend("--ft-toggle-off-background-color","",d.contentGlobalSubtle),offIconColor:r.extend("--ft-toggle-off-icon-color","",d.contentGlobalSubtle),offStateLayerColor:r.extend("--ft-toggle-off-state-layer-color","",d.contentGlobalSubtle),onHoverStateLayerOpacity:r.extend("--ft-toggle-on-hover-state-layer-opacity","",l.opacity16),onFocusStateLayerOpacity:r.extend("--ft-toggle-on-focus-state-layer-opacity","",l.opacity16),onActiveStateLayerOpacity:r.extend("--ft-toggle-on-active-state-layer-opacity","",l.opacity24),onDisabledComponentOpacity:r.extend("--ft-toggle-on-disabled-component-opacity","",l.opacity40),onBackgroundColor:r.extend("--ft-toggle-on-background-color","",d.contentActionPrimary),onStateLayerColor:r.extend("--ft-toggle-on-state-layer-color","",d.contentActionPrimary),onIconColor:r.extend("--ft-toggle-on-icon-color","",d.contentActionPrimary),color:r.extend("--ft-toggle-color","",d.contentGlobalPrimary),focusFocusRingColor:r.extend("--ft-toggle-focus-focus-ring-color","",d.borderActionFocusRing),gap:r.extend("--ft-toggle-gap","",l.spacing3)};var yy={color:r.extend("--ft-radio-color","",d.contentGlobalPrimary),selectedRadioColor:r.extend("--ft-radio-selected-radio-color","",d.contentActionPrimary),selectedStateLayerColor:r.extend("--ft-radio-selected-state-layer-color","",d.contentActionPrimary),selectedHoverStateLayerOpacity:r.extend("--ft-radio-selected-hover-state-layer-opacity","",l.opacity16),selectedFocusStateLayerOpacity:r.extend("--ft-radio-selected-focus-state-layer-opacity","",l.opacity16),selectedActiveStateLayerOpacity:r.extend("--ft-radio-selected-active-state-layer-opacity","",l.opacity24),selectedDisabledComponentOpacity:r.extend("--ft-radio-selected-disabled-component-opacity","",l.opacity40),unselectedStateLayerColor:r.extend("--ft-radio-unselected-state-layer-color","",d.borderInputPrimary),unselectedBorderColor:r.extend("--ft-radio-unselected-border-color","",d.borderInputPrimary),unselectedHoverStateLayerOpacity:r.extend("--ft-radio-unselected-hover-state-layer-opacity","",l.opacity16),unselectedFocusStateLayerOpacity:r.extend("--ft-radio-unselected-focus-state-layer-opacity","",l.opacity16),unselectedActiveStateLayerOpacity:r.extend("--ft-radio-unselected-active-state-layer-opacity","",l.opacity24),unselectedDisabledComponentOpacity:r.extend("--ft-radio-unselected-disabled-component-opacity","",l.opacity40),focusFocusRingColor:r.extend("--ft-radio-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineOffset:r.create("--ft-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:r.create("--ft-radio-focus-outline-width","","SIZE","2px"),gap:r.extend("--ft-radio-gap","",l.spacing3)};var vy={iconSize:r.extend("--ft-notification-icon-size","",l.iconSize4),leftPadding:r.extend("--ft-notification-left-padding","",l.spacing5),rightPadding:r.extend("--ft-notification-right-padding","",l.spacing4),verticalPadding:r.extend("--ft-notification-vertical-padding","",l.spacing3),infoBackgroundColor:r.extend("--ft-notification-info-background-color","",d.backgroundInfoSubtle),infoColor:r.extend("--ft-notification-info-color","",d.contentInfoPrimary),infoIconColor:r.extend("--ft-notification-info-icon-color","",d.contentInfoIconOnly),infoBorderColor:r.extend("--ft-notification-info-border-color","",d.borderInfoSubtle),successBackgroundColor:r.extend("--ft-notification-success-background-color","",d.backgroundSuccessSubtle),successColor:r.extend("--ft-notification-success-color","",d.contentSuccessPrimary),successIconColor:r.extend("--ft-notification-success-icon-color","",d.contentSuccessIconOnly),successBorderColor:r.extend("--ft-notification-success-border-color","",d.borderSuccessSubtle),warningBackgroundColor:r.extend("--ft-notification-warning-background-color","",d.backgroundWarningSubtle),warningColor:r.extend("--ft-notification-warning-color","",d.contentWarningPrimary),warningIconColor:r.extend("--ft-notification-warning-icon-color","",d.contentWarningIconOnly),warningBorderColor:r.extend("--ft-notification-warning-border-color","",d.borderWarningSubtle),errorBackgroundColor:r.extend("--ft-notification-error-background-color","",d.backgroundErrorSubtle),errorColor:r.extend("--ft-notification-error-color","",d.contentErrorPrimary),errorIconColor:r.extend("--ft-notification-error-icon-color","",d.contentErrorIconOnly),errorBorderColor:r.extend("--ft-notification-error-border-color","",d.borderErrorSubtle),borderRadius:r.extend("--ft-notification-border-radius","",l.borderRadiusPill),borderWidth:r.create("--ft-notification-border-width","","SIZE","1px"),leadingGap:r.extend("--ft-notification-leading-gap","",l.spacing2),trailingGap:r.extend("--ft-notification-trailing-gap","",l.spacing8)};var Ey={horizontalPadding:r.extend("--ft-tooltip-horizontal-padding","",l.spacing2),verticalPadding:r.extend("--ft-tooltip-vertical-padding","",l.spacing2),borderRadius:r.extend("--ft-tooltip-border-radius","",l.borderRadiusS),color:r.extend("--ft-tooltip-color","",d.contentGlobalOnColor),backgroundColor:r.extend("--ft-tooltip-background-color","",d.contentGlobalPrimary),backgroundOpacity:r.extend("--ft-tooltip-background-opacity","",l.opacity80),shadow:r.extend("--ft-tooltip-shadow","",l.shadowElevation02),maxWidth:r.create("--ft-tooltip-max-width","","SIZE","256px"),gap:r.extend("--ft-tooltip-gap","",l.spacing05)};var Iy={verticalPadding:r.extend("--ft-reorderable-list-vertical-padding","",l.spacing4),gap:r.extend("--ft-reorderable-list-gap","",l.spacing1),borderRadius:r.extend("--ft-reorderable-list-border-radius","",l.borderRadiusM),reorderableItemTitleMarginRight:r.extend("--ft-reorderable-list-reorderable-item-title-margin-right","",l.spacing6),reorderableItemTitleColor:r.extend("--ft-reorderable-list-reorderable-item-title-color","",d.contentGlobalPrimary),reorderableItemLeftButtonsGroupMarginRight:r.extend("--ft-reorderable-list-reorderable-item-left-buttons-group-margin-right","",l.spacing6),reorderableItemLeftButtonsGroupHorizontalGap:r.extend("--ft-reorderable-list-reorderable-item-left-buttons-group-horizontal-gap","",l.spacing2),reorderableItemRightButtonsGroupHorizontalGap:r.extend("--ft-reorderable-list-reorderable-item-right-buttons-group-horizontal-gap","",l.spacing2),reorderableItemUsersCountColor:r.extend("--ft-reorderable-list-reorderable-item-users-count-color","",d.contentGlobalPrimary),reorderableItemUsersCountMarginRight:r.extend("--ft-reorderable-list-reorderable-item-users-count-margin-right","",l.spacing6),reorderableItemBackgroundColor:r.extend("--ft-reorderable-list-reorderable-item-background-color","",d.backgroundGlobalOnSurface),reorderableItemWarningMessageGap:r.extend("--ft-reorderable-list-reorderable-item-warning-message-gap","",l.spacing1),reorderableItemWarningMessageColor:r.extend("--ft-reorderable-list-reorderable-item-warning-message-color","",d.contentWarningPrimary),reorderableItemWarningMessageIconColor:r.extend("--ft-reorderable-list-reorderable-item-warning-message-icon-color","",d.contentWarningIconOnly),reorderableItemGripColor:r.extend("--ft-reorderable-list-reorderable-item-grip-color","",d.contentGlobalSecondary),reorderableItemGripOpacity:r.extend("--ft-reorderable-list-reorderable-item-grip-opacity","",l.opacity48),boxShadow:r.extend("--ft-reorderable-list-box-shadow","",l.shadowElevation01),borderWidth:r.create("--ft-reorderable-list-border-width","","SIZE","1px"),reorderableItemsGap:r.extend("--ft-reorderable-list-reorderable-items-gap","",l.spacing2),leftPadding:r.extend("--ft-reorderable-list-left-padding","",l.spacing2),rightPadding:r.extend("--ft-reorderable-list-right-padding","",l.spacing6),borderColor:r.extend("--ft-reorderable-list-border-color","",d.borderGlobalPrimary),backgroundColor:r.extend("--ft-reorderable-list-background-color","",d.backgroundGlobalOnSurfaceDark)};var ko;(function(e){e.brand="brand",e.neutral="neutral",e.info="info",e.success="success",e.warning="warning",e.error="error"})(ko||(ko={}));var Er;(function(e){e.large="large",e.medium="medium",e.small="small"})(Er||(Er={}));var Po=m(M());function rs(e){let t=Lo[e];return Po.css`
116
+ .ft-typography--${(0,Po.unsafeCSS)(e)} {
117
117
  font-family: ${t.fontFamily};
118
118
  font-size: ${t.fontSize};
119
119
  font-weight: ${t.fontWeight};
@@ -121,17 +121,8 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
121
121
  line-height: ${t.lineHeight};
122
122
  text-transform: ${t.textCase};
123
123
  }
124
- `}var os=A.FtCssVariableFactory.extend("--ft-typography-font-family","",A.designSystemVariables.titleFont),Ie=A.FtCssVariableFactory.extend("--ft-typography-font-family","",A.designSystemVariables.contentFont),L={fontFamily:Ie,fontSize:A.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:A.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:A.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:A.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:A.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Ve={fontFamily:A.FtCssVariableFactory.extend("--ft-typography-title-font-family","",os),fontSize:A.FtCssVariableFactory.extend("--ft-typography-title-font-size","",L.fontSize,"20px"),fontWeight:A.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",L.fontWeight,"normal"),letterSpacing:A.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",L.letterSpacing,"0.15px"),lineHeight:A.FtCssVariableFactory.extend("--ft-typography-title-line-height","",L.lineHeight,"1.2"),textTransform:A.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",L.textTransform,"inherit")},Ge={fontFamily:A.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",os),fontSize:A.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",L.fontSize,"14px"),fontWeight:A.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",L.fontWeight,"normal"),letterSpacing:A.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",L.letterSpacing,"0.105px"),lineHeight:A.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",L.lineHeight,"1.7"),textTransform:A.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",L.textTransform,"inherit")},Ar={fontFamily:A.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Ie),fontSize:A.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",L.fontSize,"16px"),fontWeight:A.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",L.fontWeight,"600"),letterSpacing:A.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",L.letterSpacing,"0.144px"),lineHeight:A.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",L.lineHeight,"1.5"),textTransform:A.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",L.textTransform,"inherit")},Rr={fontFamily:A.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Ie),fontSize:A.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",L.fontSize,"14px"),fontWeight:A.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",L.fontWeight,"normal"),letterSpacing:A.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",L.letterSpacing,"0.098px"),lineHeight:A.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",L.lineHeight,"1.7"),textTransform:A.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",L.textTransform,"inherit")},oe={fontFamily:A.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Ie),fontSize:A.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",L.fontSize,"16px"),fontWeight:A.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",L.fontWeight,"normal"),letterSpacing:A.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",L.letterSpacing,"0.496px"),lineHeight:A.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",L.lineHeight,"1.5"),textTransform:A.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",L.textTransform,"inherit")},Tr={fontFamily:A.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Ie),fontSize:A.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",L.fontSize,"14px"),fontWeight:A.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",L.fontWeight,"normal"),letterSpacing:A.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",L.letterSpacing,"0.252px"),lineHeight:A.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",L.lineHeight,"1.4"),textTransform:A.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",L.textTransform,"inherit")},pe={fontFamily:A.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Ie),fontSize:A.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",L.fontSize,"12px"),fontWeight:A.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",L.fontWeight,"normal"),letterSpacing:A.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",L.letterSpacing,"0.396px"),lineHeight:A.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",L.lineHeight,"1.33"),textTransform:A.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",L.textTransform,"inherit")},_r={fontFamily:A.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Ie),fontSize:A.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",L.fontSize,"10px"),fontWeight:A.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",L.fontWeight,"normal"),letterSpacing:A.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",L.letterSpacing,"0.33px"),lineHeight:A.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",L.lineHeight,"1.6"),textTransform:A.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",L.textTransform,"inherit")},Ir={fontFamily:A.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Ie),fontSize:A.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",L.fontSize,"10px"),fontWeight:A.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",L.fontWeight,"normal"),letterSpacing:A.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",L.letterSpacing,"1.5px"),lineHeight:A.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",L.lineHeight,"1.6"),textTransform:A.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",L.textTransform,"uppercase")},zt={fontFamily:A.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Ie),fontSize:A.FtCssVariableFactory.extend("--ft-typography-button-font-size","",L.fontSize,"14px"),fontWeight:A.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",L.fontWeight,"600"),letterSpacing:A.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",L.letterSpacing,"1.246px"),lineHeight:A.FtCssVariableFactory.extend("--ft-typography-button-line-height","",L.lineHeight,"1.15"),textTransform:A.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",L.textTransform,"uppercase")},is=ie.css`
124
+ `}var os=A.FtCssVariableFactory.extend("--ft-typography-font-family","",A.designSystemVariables.titleFont),Ie=A.FtCssVariableFactory.extend("--ft-typography-font-family","",A.designSystemVariables.contentFont),L={fontFamily:Ie,fontSize:A.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:A.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:A.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:A.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:A.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Ge={fontFamily:A.FtCssVariableFactory.extend("--ft-typography-title-font-family","",os),fontSize:A.FtCssVariableFactory.extend("--ft-typography-title-font-size","",L.fontSize,"20px"),fontWeight:A.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",L.fontWeight,"normal"),letterSpacing:A.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",L.letterSpacing,"0.15px"),lineHeight:A.FtCssVariableFactory.extend("--ft-typography-title-line-height","",L.lineHeight,"1.2"),textTransform:A.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",L.textTransform,"inherit")},je={fontFamily:A.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",os),fontSize:A.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",L.fontSize,"14px"),fontWeight:A.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",L.fontWeight,"normal"),letterSpacing:A.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",L.letterSpacing,"0.105px"),lineHeight:A.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",L.lineHeight,"1.7"),textTransform:A.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",L.textTransform,"inherit")},Ar={fontFamily:A.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Ie),fontSize:A.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",L.fontSize,"16px"),fontWeight:A.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",L.fontWeight,"600"),letterSpacing:A.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",L.letterSpacing,"0.144px"),lineHeight:A.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",L.lineHeight,"1.5"),textTransform:A.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",L.textTransform,"inherit")},Rr={fontFamily:A.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Ie),fontSize:A.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",L.fontSize,"14px"),fontWeight:A.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",L.fontWeight,"normal"),letterSpacing:A.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",L.letterSpacing,"0.098px"),lineHeight:A.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",L.lineHeight,"1.7"),textTransform:A.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",L.textTransform,"inherit")},oe={fontFamily:A.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Ie),fontSize:A.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",L.fontSize,"16px"),fontWeight:A.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",L.fontWeight,"normal"),letterSpacing:A.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",L.letterSpacing,"0.496px"),lineHeight:A.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",L.lineHeight,"1.5"),textTransform:A.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",L.textTransform,"inherit")},Tr={fontFamily:A.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Ie),fontSize:A.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",L.fontSize,"14px"),fontWeight:A.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",L.fontWeight,"normal"),letterSpacing:A.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",L.letterSpacing,"0.252px"),lineHeight:A.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",L.lineHeight,"1.4"),textTransform:A.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",L.textTransform,"inherit")},pe={fontFamily:A.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Ie),fontSize:A.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",L.fontSize,"12px"),fontWeight:A.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",L.fontWeight,"normal"),letterSpacing:A.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",L.letterSpacing,"0.396px"),lineHeight:A.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",L.lineHeight,"1.33"),textTransform:A.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",L.textTransform,"inherit")},_r={fontFamily:A.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Ie),fontSize:A.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",L.fontSize,"10px"),fontWeight:A.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",L.fontWeight,"normal"),letterSpacing:A.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",L.letterSpacing,"0.33px"),lineHeight:A.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",L.lineHeight,"1.6"),textTransform:A.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",L.textTransform,"inherit")},Ir={fontFamily:A.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Ie),fontSize:A.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",L.fontSize,"10px"),fontWeight:A.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",L.fontWeight,"normal"),letterSpacing:A.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",L.letterSpacing,"1.5px"),lineHeight:A.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",L.lineHeight,"1.6"),textTransform:A.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",L.textTransform,"uppercase")},zt={fontFamily:A.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Ie),fontSize:A.FtCssVariableFactory.extend("--ft-typography-button-font-size","",L.fontSize,"14px"),fontWeight:A.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",L.fontWeight,"600"),letterSpacing:A.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",L.letterSpacing,"1.246px"),lineHeight:A.FtCssVariableFactory.extend("--ft-typography-button-line-height","",L.lineHeight,"1.15"),textTransform:A.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",L.textTransform,"uppercase")},is=ie.css`
125
125
  .ft-typography--title {
126
- font-family: ${Ve.fontFamily};
127
- font-size: ${Ve.fontSize};
128
- font-weight: ${Ve.fontWeight};
129
- letter-spacing: ${Ve.letterSpacing};
130
- line-height: ${Ve.lineHeight};
131
- text-transform: ${Ve.textTransform};
132
- }
133
- `,ns=ie.css`
134
- .ft-typography--title-dense {
135
126
  font-family: ${Ge.fontFamily};
136
127
  font-size: ${Ge.fontSize};
137
128
  font-weight: ${Ge.fontWeight};
@@ -139,6 +130,15 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
139
130
  line-height: ${Ge.lineHeight};
140
131
  text-transform: ${Ge.textTransform};
141
132
  }
133
+ `,ns=ie.css`
134
+ .ft-typography--title-dense {
135
+ font-family: ${je.fontFamily};
136
+ font-size: ${je.fontSize};
137
+ font-weight: ${je.fontWeight};
138
+ letter-spacing: ${je.letterSpacing};
139
+ line-height: ${je.lineHeight};
140
+ text-transform: ${je.textTransform};
141
+ }
142
142
  `,as=ie.css`
143
143
  .ft-typography--subtitle1 {
144
144
  font-family: ${Ar.fontFamily};
@@ -216,7 +216,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
216
216
  .ft-typography {
217
217
  vertical-align: inherit;
218
218
  }
219
- `,fs=[Object.keys(Lo).map(e=>rs(e))];var hs=m(M()),to=m(R()),rt={color:to.FtCssVariableFactory.extend("--ft-loader-color","",to.designSystemVariables.colorPrimary),size:to.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},ys=hs.css`
219
+ `,fs=[Object.keys(Lo).map(e=>rs(e))];var hs=m(M()),to=m(R()),ot={color:to.FtCssVariableFactory.extend("--ft-loader-color","",to.designSystemVariables.colorPrimary),size:to.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},ys=hs.css`
220
220
  :host {
221
221
  line-height: 0;
222
222
  }
@@ -225,8 +225,8 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
225
225
  display: inline-block;
226
226
  position: relative;
227
227
 
228
- width: ${rt.size};
229
- height: ${rt.size};
228
+ width: ${ot.size};
229
+ height: ${ot.size};
230
230
  }
231
231
 
232
232
  .ft-loader div {
@@ -235,7 +235,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
235
235
  width: 25%;
236
236
  height: 25%;
237
237
  border-radius: 50%;
238
- background: ${rt.color};
238
+ background: ${ot.color};
239
239
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
240
240
  }
241
241
 
@@ -282,7 +282,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
282
282
  transform: translate(0, 0);
283
283
  }
284
284
  100% {
285
- transform: translate(calc(0.35 * ${rt.size}), 0);
285
+ transform: translate(calc(0.35 * ${ot.size}), 0);
286
286
  }
287
287
  }
288
288
  `;var gs=m(M()),ue=m(R()),St={size:ue.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:ue.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",ue.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:ue.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",ue.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:ue.FtCssVariableFactory.extend("--ft-icon-material-font-family","",ue.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:ue.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},ms=[gs.css`
@@ -467,10 +467,10 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
467
467
  }
468
468
 
469
469
  ft-loader {
470
- ${(0,U.setVariable)(rt.size,tt.iconSize)};
471
- ${(0,U.setVariable)(rt.color,"var(--ft-button-internal-color)")};
470
+ ${(0,U.setVariable)(ot.size,tt.iconSize)};
471
+ ${(0,U.setVariable)(ot.color,"var(--ft-button-internal-color)")};
472
472
  }
473
- `,U.noTextSelect];var lt=m(R());var ct={textColor:lt.FtCssVariableFactory.extend("--ft-switch-text-color","",lt.designSystemVariables.colorOnSurfaceHigh),backgroundColor:lt.FtCssVariableFactory.extend("--ft-switch-background-color","",lt.designSystemVariables.colorSurface),selectedTextColor:lt.FtCssVariableFactory.extend("--ft-switch-selected-text-color","",lt.designSystemVariables.colorPrimary),selectedBackgroundColor:lt.FtCssVariableFactory.extend("--ft-switch-selected-background-color","",lt.designSystemVariables.colorPrimary),borderColor:lt.FtCssVariableFactory.extend("--ft-switch-border-color","",lt.designSystemVariables.colorOutline),borderRadius:lt.FtCssVariableFactory.extend("--ft-switch-border-radius","",lt.designSystemVariables.borderRadiusL),fontSize:lt.FtCssVariableFactory.extend("--ft-switch-font-size","",zt.fontSize),iconSize:lt.FtCssVariableFactory.create("--ft-switch-icon-size","","SIZE","24px"),iconColor:lt.FtCssVariableFactory.extend("--ft-switch-text-color","",lt.designSystemVariables.colorOnSurfaceMedium),rippleColor:lt.FtCssVariableFactory.extend("--ft-switch-ripple-color","",lt.designSystemVariables.colorPrimary),outlineColor:lt.FtCssVariableFactory.extend("--ft-switch-outline-color","",lt.designSystemVariables.colorPrimary)};var Ce={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(Ve.fontSize,"Typography"),sectionTitleFontSize:J.FtCssVariableFactory.external(Ge.fontSize,"Typography"),starsBackgroundColor:J.FtCssVariableFactory.create("--ft-reader-feedback-stars-background-color","","COLOR",J.designSystemVariables.colorSurface)},Cs=Os.css`
473
+ `,U.noTextSelect];var lt=m(R());var ct={textColor:lt.FtCssVariableFactory.extend("--ft-switch-text-color","",lt.designSystemVariables.colorOnSurfaceHigh),backgroundColor:lt.FtCssVariableFactory.extend("--ft-switch-background-color","",lt.designSystemVariables.colorSurface),selectedTextColor:lt.FtCssVariableFactory.extend("--ft-switch-selected-text-color","",lt.designSystemVariables.colorPrimary),selectedBackgroundColor:lt.FtCssVariableFactory.extend("--ft-switch-selected-background-color","",lt.designSystemVariables.colorPrimary),borderColor:lt.FtCssVariableFactory.extend("--ft-switch-border-color","",lt.designSystemVariables.colorOutline),borderRadius:lt.FtCssVariableFactory.extend("--ft-switch-border-radius","",lt.designSystemVariables.borderRadiusL),fontSize:lt.FtCssVariableFactory.extend("--ft-switch-font-size","",zt.fontSize),iconSize:lt.FtCssVariableFactory.create("--ft-switch-icon-size","","SIZE","24px"),iconColor:lt.FtCssVariableFactory.extend("--ft-switch-text-color","",lt.designSystemVariables.colorOnSurfaceMedium),rippleColor:lt.FtCssVariableFactory.extend("--ft-switch-ripple-color","",lt.designSystemVariables.colorPrimary),outlineColor:lt.FtCssVariableFactory.extend("--ft-switch-outline-color","",lt.designSystemVariables.colorPrimary)};var Ce={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(Ge.fontSize,"Typography"),sectionTitleFontSize:J.FtCssVariableFactory.external(je.fontSize,"Typography"),starsBackgroundColor:J.FtCssVariableFactory.create("--ft-reader-feedback-stars-background-color","","COLOR",J.designSystemVariables.colorSurface)},Cs=Os.css`
474
474
  .ft-reader-feedback {
475
475
  box-sizing: border-box;
476
476
  display: flex;
@@ -526,9 +526,9 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
526
526
  [part="buttons-container"] {
527
527
  align-self: flex-end;
528
528
  }
529
- `;var np=m(Es(),1);var As;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(As||(As={}));var Rs;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(Rs||(Rs={}));var Ts;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.MAP_ATTACHMENT="MAP_ATTACHMENT",e.RESOURCE="RESOURCE"})(Ts||(Ts={}));var _s;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(_s||(_s={}));var Is;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(Is||(Is={}));var Ns;(function(e){e.BOOKMARK__CREATE="BOOKMARK__CREATE",e.BOOKMARK__DELETE="BOOKMARK__DELETE",e.CASE_DEFLECTION__START="CASE_DEFLECTION__START",e.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",e.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",e.COLLECTION__CREATE="COLLECTION__CREATE",e.COLLECTION__UPDATE="COLLECTION__UPDATE",e.COLLECTION__DELETE="COLLECTION__DELETE",e.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",e.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",e.DOCUMENT__PRINT="DOCUMENT__PRINT",e.DOCUMENT__PROCESS="DOCUMENT__PROCESS",e.DOCUMENT__RATE="DOCUMENT__RATE",e.DOCUMENT__SEARCH="DOCUMENT__SEARCH",e.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",e.DOCUMENT__UNRATE="DOCUMENT__UNRATE",e.FEEDBACK__SEND="FEEDBACK__SEND",e.GEN_AI__COMPLETED_QUERY="GEN_AI__COMPLETED_QUERY",e.GEN_AI__RATE="GEN_AI__RATE",e.GENAI_CASE_DEFLECTION__START="GENAI_CASE_DEFLECTION__START",e.GENAI_CASE_DEFLECTION__OPEN_TICKET="GENAI_CASE_DEFLECTION__OPEN_TICKET",e.KHUB__PROCESS="KHUB__PROCESS",e.KHUB__SEARCH="KHUB__SEARCH",e.LABELS__DOWNLOAD="LABELS__DOWNLOAD",e.LINK__SHARE="LINK__SHARE",e.PAGE__DISPLAY="PAGE__DISPLAY",e.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",e.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",e.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",e.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",e.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",e.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",e.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",e.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",e.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",e.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",e.TOPIC__DISPLAY="TOPIC__DISPLAY",e.TOPIC__RATE="TOPIC__RATE",e.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",e.TOPIC__UNRATE="TOPIC__UNRATE",e.USER__LOGIN="USER__LOGIN",e.USER__LOGOUT="USER__LOGOUT",e.HEARTBEAT="HEARTBEAT"})(Ns||(Ns={}));var Ls;(function(e){e.THIRD_PARTY="THIRD_PARTY",e.OFF_THE_GRID="OFF_THE_GRID",e.CONTENT_PACKAGER="CONTENT_PACKAGER",e.PAGES="PAGES",e.DESIGNED_READER="DESIGNED_READER"})(Ls||(Ls={}));var Ps;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT"})(Ps||(Ps={}));var ks;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(ks||(ks={}));var Ds;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(Ds||(Ds={}));var $s;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})($s||($s={}));var xt;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(xt||(xt={}));var Bs;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR",e.CUSTOM="CUSTOM"})(Bs||(Bs={}));var Ms;(function(e){e.ASC="ASC",e.DESC="DESC"})(Ms||(Ms={}));var Us;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(Us||(Us={}));var Fs;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(Fs||(Fs={}));var Ws;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK"})(Ws||(Ws={}));var zs;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(zs||(zs={}));var Hs;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK"})(Hs||(Hs={}));var Vs;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Vs||(Vs={}));var Gs;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC"})(Gs||(Gs={}));var js;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(js||(js={}));var st;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN"})(st||(st={}));var Ks;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(Ks||(Ks={}));var Zs;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(Zs||(Zs={}));var ip={[st.PERSONAL_BOOK_SHARE_USER]:[st.PERSONAL_BOOK_USER],[st.HTML_EXPORT_USER]:[st.PERSONAL_BOOK_USER],[st.PDF_EXPORT_USER]:[st.PERSONAL_BOOK_USER],[st.KHUB_ADMIN]:[st.CONTENT_PUBLISHER],[st.ADMIN]:[st.KHUB_ADMIN,st.USERS_ADMIN,st.PORTAL_ADMIN],[st.GENERATIVE_AI_EXPORT_USER]:[st.GENERATIVE_AI_USER]};function qs(e,t){return e===t||(ip[e]??[]).some(o=>qs(o,t))}function pr(e,t){return e==null?!1:(Array.isArray(e)?e:Array.isArray(e.roles)?e.roles:Array.isArray(e.profile?.roles)?e.profile.roles:[]).some(i=>qs(i,t))}var fl=m(R());var ln=globalThis,Mo=ln.trustedTypes,Ys=Mo?Mo.createPolicy("lit-html",{createHTML:e=>e}):void 0,rl="$lit$",Ke=`lit$${Math.random().toFixed(9).slice(2)}$`,ol="?"+Ke,ap=`<${ol}>`,hr=document,Uo=()=>hr.createComment(""),ro=e=>e===null||typeof e!="object"&&typeof e!="function",cn=Array.isArray,sp=e=>cn(e)||typeof e?.[Symbol.iterator]=="function",en=`[
530
- \f\r]`,eo=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Xs=/-->/g,Qs=/>/g,ur=RegExp(`>|${en}(?:([^\\s"'>=/]+)(${en}*=${en}*(?:[^
531
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Js=/'/g,tl=/"/g,il=/^(?:script|style|textarea|title)$/i,dn=e=>(t,...o)=>({_$litType$:e,strings:t,values:o}),nl=dn(1),al=dn(2),sl=dn(3),oo=Symbol.for("lit-noChange"),vt=Symbol.for("lit-nothing"),el=new WeakMap,fr=hr.createTreeWalker(hr,129);function ll(e,t){if(!cn(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ys!==void 0?Ys.createHTML(t):t}var lp=(e,t)=>{let o=e.length-1,i=[],n,a=t===2?"<svg>":t===3?"<math>":"",s=eo;for(let c=0;c<o;c++){let u=e[c],p,h,y=-1,b=0;for(;b<u.length&&(s.lastIndex=b,h=s.exec(u),h!==null);)b=s.lastIndex,s===eo?h[1]==="!--"?s=Xs:h[1]!==void 0?s=Qs:h[2]!==void 0?(il.test(h[2])&&(n=RegExp("</"+h[2],"g")),s=ur):h[3]!==void 0&&(s=ur):s===ur?h[0]===">"?(s=n??eo,y=-1):h[1]===void 0?y=-2:(y=s.lastIndex-h[2].length,p=h[1],s=h[3]===void 0?ur:h[3]==='"'?tl:Js):s===tl||s===Js?s=ur:s===Xs||s===Qs?s=eo:(s=ur,n=void 0);let x=s===ur&&e[c+1].startsWith("/>")?" ":"";a+=s===eo?u+ap:y>=0?(i.push(p),u.slice(0,y)+rl+u.slice(y)+Ke+x):u+Ke+(y===-2?c:x)}return[ll(e,a+(e[o]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),i]},io=class e{constructor({strings:t,_$litType$:o},i){let n;this.parts=[];let a=0,s=0,c=t.length-1,u=this.parts,[p,h]=lp(t,o);if(this.el=e.createElement(p,i),fr.currentNode=this.el.content,o===2||o===3){let y=this.el.content.firstChild;y.replaceWith(...y.childNodes)}for(;(n=fr.nextNode())!==null&&u.length<c;){if(n.nodeType===1){if(n.hasAttributes())for(let y of n.getAttributeNames())if(y.endsWith(rl)){let b=h[s++],x=n.getAttribute(y).split(Ke),S=/([.?@])?(.*)/.exec(b);u.push({type:1,index:a,name:S[2],strings:x,ctor:S[1]==="."?on:S[1]==="?"?nn:S[1]==="@"?an:kr}),n.removeAttribute(y)}else y.startsWith(Ke)&&(u.push({type:6,index:a}),n.removeAttribute(y));if(il.test(n.tagName)){let y=n.textContent.split(Ke),b=y.length-1;if(b>0){n.textContent=Mo?Mo.emptyScript:"";for(let x=0;x<b;x++)n.append(y[x],Uo()),fr.nextNode(),u.push({type:2,index:++a});n.append(y[b],Uo())}}}else if(n.nodeType===8)if(n.data===ol)u.push({type:2,index:a});else{let y=-1;for(;(y=n.data.indexOf(Ke,y+1))!==-1;)u.push({type:7,index:a}),y+=Ke.length-1}a++}}static createElement(t,o){let i=hr.createElement("template");return i.innerHTML=t,i}};function Pr(e,t,o=e,i){if(t===oo)return t;let n=i!==void 0?o._$Co?.[i]:o._$Cl,a=ro(t)?void 0:t._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(e),n._$AT(e,o,i)),i!==void 0?(o._$Co??=[])[i]=n:o._$Cl=n),n!==void 0&&(t=Pr(e,n._$AS(e,t.values),n,i)),t}var rn=class{constructor(t,o){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:o},parts:i}=this._$AD,n=(t?.creationScope??hr).importNode(o,!0);fr.currentNode=n;let a=fr.nextNode(),s=0,c=0,u=i[0];for(;u!==void 0;){if(s===u.index){let p;u.type===2?p=new Fo(a,a.nextSibling,this,t):u.type===1?p=new u.ctor(a,u.name,u.strings,this,t):u.type===6&&(p=new sn(a,this,t)),this._$AV.push(p),u=i[++c]}s!==u?.index&&(a=fr.nextNode(),s++)}return fr.currentNode=hr,n}p(t){let o=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,o),o+=i.strings.length-2):i._$AI(t[o])),o++}},Fo=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,o,i,n){this.type=2,this._$AH=vt,this._$AN=void 0,this._$AA=t,this._$AB=o,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,o=this._$AM;return o!==void 0&&t?.nodeType===11&&(t=o.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,o=this){t=Pr(this,t,o),ro(t)?t===vt||t==null||t===""?(this._$AH!==vt&&this._$AR(),this._$AH=vt):t!==this._$AH&&t!==oo&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):sp(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==vt&&ro(this._$AH)?this._$AA.nextSibling.data=t:this.T(hr.createTextNode(t)),this._$AH=t}$(t){let{values:o,_$litType$:i}=t,n=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=io.createElement(ll(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(o);else{let a=new rn(n,this),s=a.u(this.options);a.p(o),this.T(s),this._$AH=a}}_$AC(t){let o=el.get(t.strings);return o===void 0&&el.set(t.strings,o=new io(t)),o}k(t){cn(this._$AH)||(this._$AH=[],this._$AR());let o=this._$AH,i,n=0;for(let a of t)n===o.length?o.push(i=new e(this.O(Uo()),this.O(Uo()),this,this.options)):i=o[n],i._$AI(a),n++;n<o.length&&(this._$AR(i&&i._$AB.nextSibling,n),o.length=n)}_$AR(t=this._$AA.nextSibling,o){for(this._$AP?.(!1,!0,o);t&&t!==this._$AB;){let i=t.nextSibling;t.remove(),t=i}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},kr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,o,i,n,a){this.type=1,this._$AH=vt,this._$AN=void 0,this.element=t,this.name=o,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=vt}_$AI(t,o=this,i,n){let a=this.strings,s=!1;if(a===void 0)t=Pr(this,t,o,0),s=!ro(t)||t!==this._$AH&&t!==oo,s&&(this._$AH=t);else{let c=t,u,p;for(t=a[0],u=0;u<a.length-1;u++)p=Pr(this,c[i+u],o,u),p===oo&&(p=this._$AH[u]),s||=!ro(p)||p!==this._$AH[u],p===vt?t=vt:t!==vt&&(t+=(p??"")+a[u+1]),this._$AH[u]=p}s&&!n&&this.j(t)}j(t){t===vt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},on=class extends kr{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===vt?void 0:t}},nn=class extends kr{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==vt)}},an=class extends kr{constructor(t,o,i,n,a){super(t,o,i,n,a),this.type=5}_$AI(t,o=this){if((t=Pr(this,t,o,0)??vt)===oo)return;let i=this._$AH,n=t===vt&&i!==vt||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,a=t!==vt&&(i===vt||n);n&&this.element.removeEventListener(this.name,this,i),a&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},sn=class{constructor(t,o,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=o,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){Pr(this,t)}};var cp=ln.litHtmlPolyfillSupport;cp?.(io,Fo),(ln.litHtmlVersions??=[]).push("3.3.0");var dl=Symbol.for(""),dp=e=>{if(e?.r===dl)return e?._$litStatic$},pn=e=>({_$litStatic$:e,r:dl});var cl=new Map,un=e=>(t,...o)=>{let i=o.length,n,a,s=[],c=[],u,p=0,h=!1;for(;p<i;){for(u=t[p];p<i&&(a=o[p],(n=dp(a))!==void 0);)u+=n+t[++p],h=!0;p!==i&&c.push(a),s.push(u),p++}if(p===i&&s.push(t[i]),h){let y=s.join("$$lit$$");(t=cl.get(y))===void 0&&(s.raw=s,cl.set(y,t=s)),o=c}return e(t,...o)},fn=un(nl),vm=un(al),Sm=un(sl);var hn=m(q()),ul=m(R());var Ze;(function(e){e.title="title",e.title_dense="title-dense",e.subtitle1="subtitle1",e.subtitle2="subtitle2",e.body1="body1",e.body2="body2",e.caption="caption",e.breadcrumb="breadcrumb",e.overline="overline",e.button="button",e.display="display",e.title1="title-1",e.title2="title-2",e.title3="title-3",e.body1regular="body-1-regular",e.body1medium="body-1-medium",e.body1semibold="body-1-semibold",e.body2regular="body-2-regular",e.body2medium="body-2-medium",e.body2semibold="body-2-semibold",e.label1medium="label-1-medium",e.label1semibold="label-1-semibold",e.label1bold="label-1-bold",e.label2medium="label-2-medium",e.label2semibold="label-2-semibold",e.label2bold="label-2-bold",e.caption1medium="caption-1-medium",e.caption1semibold="caption-1-semibold",e.caption1bold="caption-1-bold",e.caption2medium="caption-2-medium",e.caption2semibold="caption-2-semibold",e.caption2bold="caption-2-bold"})(Ze||(Ze={}));var pl=function(e,t,o,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,o,i);else for(var c=e.length-1;c>=0;c--)(s=e[c])&&(a=(n<3?s(a):n>3?s(t,o,a):s(t,o))||a);return n>3&&a&&Object.defineProperty(t,o,a),a},ft=class extends ul.FtLitElement{constructor(){super(...arguments),this.variant=Ze.body1}render(){return this.element?fn`
529
+ `;var ap=m(Es(),1);var As;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(As||(As={}));var Rs;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(Rs||(Rs={}));var Ts;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.MAP_ATTACHMENT="MAP_ATTACHMENT",e.RESOURCE="RESOURCE"})(Ts||(Ts={}));var _s;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(_s||(_s={}));var Is;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(Is||(Is={}));var Ns;(function(e){e.BOOKMARK__CREATE="BOOKMARK__CREATE",e.BOOKMARK__DELETE="BOOKMARK__DELETE",e.CASE_DEFLECTION__START="CASE_DEFLECTION__START",e.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",e.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",e.COLLECTION__CREATE="COLLECTION__CREATE",e.COLLECTION__UPDATE="COLLECTION__UPDATE",e.COLLECTION__DELETE="COLLECTION__DELETE",e.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",e.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",e.DOCUMENT__PRINT="DOCUMENT__PRINT",e.DOCUMENT__PROCESS="DOCUMENT__PROCESS",e.DOCUMENT__RATE="DOCUMENT__RATE",e.DOCUMENT__SEARCH="DOCUMENT__SEARCH",e.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",e.DOCUMENT__UNRATE="DOCUMENT__UNRATE",e.FEEDBACK__SEND="FEEDBACK__SEND",e.GEN_AI__COMPLETED_QUERY="GEN_AI__COMPLETED_QUERY",e.GEN_AI__RATE="GEN_AI__RATE",e.GENAI_CASE_DEFLECTION__START="GENAI_CASE_DEFLECTION__START",e.GENAI_CASE_DEFLECTION__OPEN_TICKET="GENAI_CASE_DEFLECTION__OPEN_TICKET",e.KHUB__PROCESS="KHUB__PROCESS",e.KHUB__SEARCH="KHUB__SEARCH",e.LABELS__DOWNLOAD="LABELS__DOWNLOAD",e.LINK__SHARE="LINK__SHARE",e.PAGE__DISPLAY="PAGE__DISPLAY",e.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",e.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",e.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",e.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",e.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",e.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",e.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",e.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",e.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",e.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",e.TOPIC__DISPLAY="TOPIC__DISPLAY",e.TOPIC__RATE="TOPIC__RATE",e.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",e.TOPIC__UNRATE="TOPIC__UNRATE",e.USER__LOGIN="USER__LOGIN",e.USER__LOGOUT="USER__LOGOUT",e.HEARTBEAT="HEARTBEAT"})(Ns||(Ns={}));var Ls;(function(e){e.THIRD_PARTY="THIRD_PARTY",e.OFF_THE_GRID="OFF_THE_GRID",e.CONTENT_PACKAGER="CONTENT_PACKAGER",e.PAGES="PAGES",e.DESIGNED_READER="DESIGNED_READER"})(Ls||(Ls={}));var ks;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT"})(ks||(ks={}));var Ps;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(Ps||(Ps={}));var Ds;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(Ds||(Ds={}));var $s;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})($s||($s={}));var xt;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(xt||(xt={}));var Bs;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR",e.CUSTOM="CUSTOM"})(Bs||(Bs={}));var Ms;(function(e){e.ASC="ASC",e.DESC="DESC"})(Ms||(Ms={}));var Us;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(Us||(Us={}));var Fs;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(Fs||(Fs={}));var Ws;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK"})(Ws||(Ws={}));var zs;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(zs||(zs={}));var Hs;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK"})(Hs||(Hs={}));var Vs;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Vs||(Vs={}));var Gs;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC"})(Gs||(Gs={}));var js;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(js||(js={}));var et;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN"})(et||(et={}));var Ks;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(Ks||(Ks={}));var Zs;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(Zs||(Zs={}));var qs;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(qs||(qs={}));var np={[et.PERSONAL_BOOK_SHARE_USER]:[et.PERSONAL_BOOK_USER],[et.HTML_EXPORT_USER]:[et.PERSONAL_BOOK_USER],[et.PDF_EXPORT_USER]:[et.PERSONAL_BOOK_USER],[et.KHUB_ADMIN]:[et.CONTENT_PUBLISHER],[et.ADMIN]:[et.KHUB_ADMIN,et.USERS_ADMIN,et.PORTAL_ADMIN],[et.GENERATIVE_AI_EXPORT_USER]:[et.GENERATIVE_AI_USER]};function Ys(e,t){return e===t||(np[e]??[]).some(o=>Ys(o,t))}function Ne(e,t){return e==null?!1:(Array.isArray(e)?e:Array.isArray(e.roles)?e.roles:Array.isArray(e.profile?.roles)?e.profile.roles:[]).some(i=>Ys(i,t))}var hl=m(R());var ln=globalThis,Mo=ln.trustedTypes,Xs=Mo?Mo.createPolicy("lit-html",{createHTML:e=>e}):void 0,ol="$lit$",Ze=`lit$${Math.random().toFixed(9).slice(2)}$`,il="?"+Ze,sp=`<${il}>`,hr=document,Uo=()=>hr.createComment(""),ro=e=>e===null||typeof e!="object"&&typeof e!="function",cn=Array.isArray,lp=e=>cn(e)||typeof e?.[Symbol.iterator]=="function",en=`[
530
+ \f\r]`,eo=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Qs=/-->/g,Js=/>/g,ur=RegExp(`>|${en}(?:([^\\s"'>=/]+)(${en}*=${en}*(?:[^
531
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),tl=/'/g,el=/"/g,nl=/^(?:script|style|textarea|title)$/i,dn=e=>(t,...o)=>({_$litType$:e,strings:t,values:o}),al=dn(1),sl=dn(2),ll=dn(3),oo=Symbol.for("lit-noChange"),vt=Symbol.for("lit-nothing"),rl=new WeakMap,fr=hr.createTreeWalker(hr,129);function cl(e,t){if(!cn(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Xs!==void 0?Xs.createHTML(t):t}var cp=(e,t)=>{let o=e.length-1,i=[],n,a=t===2?"<svg>":t===3?"<math>":"",s=eo;for(let c=0;c<o;c++){let u=e[c],p,h,y=-1,b=0;for(;b<u.length&&(s.lastIndex=b,h=s.exec(u),h!==null);)b=s.lastIndex,s===eo?h[1]==="!--"?s=Qs:h[1]!==void 0?s=Js:h[2]!==void 0?(nl.test(h[2])&&(n=RegExp("</"+h[2],"g")),s=ur):h[3]!==void 0&&(s=ur):s===ur?h[0]===">"?(s=n??eo,y=-1):h[1]===void 0?y=-2:(y=s.lastIndex-h[2].length,p=h[1],s=h[3]===void 0?ur:h[3]==='"'?el:tl):s===el||s===tl?s=ur:s===Qs||s===Js?s=eo:(s=ur,n=void 0);let x=s===ur&&e[c+1].startsWith("/>")?" ":"";a+=s===eo?u+sp:y>=0?(i.push(p),u.slice(0,y)+ol+u.slice(y)+Ze+x):u+Ze+(y===-2?c:x)}return[cl(e,a+(e[o]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),i]},io=class e{constructor({strings:t,_$litType$:o},i){let n;this.parts=[];let a=0,s=0,c=t.length-1,u=this.parts,[p,h]=cp(t,o);if(this.el=e.createElement(p,i),fr.currentNode=this.el.content,o===2||o===3){let y=this.el.content.firstChild;y.replaceWith(...y.childNodes)}for(;(n=fr.nextNode())!==null&&u.length<c;){if(n.nodeType===1){if(n.hasAttributes())for(let y of n.getAttributeNames())if(y.endsWith(ol)){let b=h[s++],x=n.getAttribute(y).split(Ze),S=/([.?@])?(.*)/.exec(b);u.push({type:1,index:a,name:S[2],strings:x,ctor:S[1]==="."?on:S[1]==="?"?nn:S[1]==="@"?an:Pr}),n.removeAttribute(y)}else y.startsWith(Ze)&&(u.push({type:6,index:a}),n.removeAttribute(y));if(nl.test(n.tagName)){let y=n.textContent.split(Ze),b=y.length-1;if(b>0){n.textContent=Mo?Mo.emptyScript:"";for(let x=0;x<b;x++)n.append(y[x],Uo()),fr.nextNode(),u.push({type:2,index:++a});n.append(y[b],Uo())}}}else if(n.nodeType===8)if(n.data===il)u.push({type:2,index:a});else{let y=-1;for(;(y=n.data.indexOf(Ze,y+1))!==-1;)u.push({type:7,index:a}),y+=Ze.length-1}a++}}static createElement(t,o){let i=hr.createElement("template");return i.innerHTML=t,i}};function kr(e,t,o=e,i){if(t===oo)return t;let n=i!==void 0?o._$Co?.[i]:o._$Cl,a=ro(t)?void 0:t._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(e),n._$AT(e,o,i)),i!==void 0?(o._$Co??=[])[i]=n:o._$Cl=n),n!==void 0&&(t=kr(e,n._$AS(e,t.values),n,i)),t}var rn=class{constructor(t,o){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:o},parts:i}=this._$AD,n=(t?.creationScope??hr).importNode(o,!0);fr.currentNode=n;let a=fr.nextNode(),s=0,c=0,u=i[0];for(;u!==void 0;){if(s===u.index){let p;u.type===2?p=new Fo(a,a.nextSibling,this,t):u.type===1?p=new u.ctor(a,u.name,u.strings,this,t):u.type===6&&(p=new sn(a,this,t)),this._$AV.push(p),u=i[++c]}s!==u?.index&&(a=fr.nextNode(),s++)}return fr.currentNode=hr,n}p(t){let o=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,o),o+=i.strings.length-2):i._$AI(t[o])),o++}},Fo=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,o,i,n){this.type=2,this._$AH=vt,this._$AN=void 0,this._$AA=t,this._$AB=o,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,o=this._$AM;return o!==void 0&&t?.nodeType===11&&(t=o.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,o=this){t=kr(this,t,o),ro(t)?t===vt||t==null||t===""?(this._$AH!==vt&&this._$AR(),this._$AH=vt):t!==this._$AH&&t!==oo&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):lp(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==vt&&ro(this._$AH)?this._$AA.nextSibling.data=t:this.T(hr.createTextNode(t)),this._$AH=t}$(t){let{values:o,_$litType$:i}=t,n=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=io.createElement(cl(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(o);else{let a=new rn(n,this),s=a.u(this.options);a.p(o),this.T(s),this._$AH=a}}_$AC(t){let o=rl.get(t.strings);return o===void 0&&rl.set(t.strings,o=new io(t)),o}k(t){cn(this._$AH)||(this._$AH=[],this._$AR());let o=this._$AH,i,n=0;for(let a of t)n===o.length?o.push(i=new e(this.O(Uo()),this.O(Uo()),this,this.options)):i=o[n],i._$AI(a),n++;n<o.length&&(this._$AR(i&&i._$AB.nextSibling,n),o.length=n)}_$AR(t=this._$AA.nextSibling,o){for(this._$AP?.(!1,!0,o);t&&t!==this._$AB;){let i=t.nextSibling;t.remove(),t=i}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},Pr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,o,i,n,a){this.type=1,this._$AH=vt,this._$AN=void 0,this.element=t,this.name=o,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=vt}_$AI(t,o=this,i,n){let a=this.strings,s=!1;if(a===void 0)t=kr(this,t,o,0),s=!ro(t)||t!==this._$AH&&t!==oo,s&&(this._$AH=t);else{let c=t,u,p;for(t=a[0],u=0;u<a.length-1;u++)p=kr(this,c[i+u],o,u),p===oo&&(p=this._$AH[u]),s||=!ro(p)||p!==this._$AH[u],p===vt?t=vt:t!==vt&&(t+=(p??"")+a[u+1]),this._$AH[u]=p}s&&!n&&this.j(t)}j(t){t===vt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},on=class extends Pr{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===vt?void 0:t}},nn=class extends Pr{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==vt)}},an=class extends Pr{constructor(t,o,i,n,a){super(t,o,i,n,a),this.type=5}_$AI(t,o=this){if((t=kr(this,t,o,0)??vt)===oo)return;let i=this._$AH,n=t===vt&&i!==vt||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,a=t!==vt&&(i===vt||n);n&&this.element.removeEventListener(this.name,this,i),a&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},sn=class{constructor(t,o,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=o,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){kr(this,t)}};var dp=ln.litHtmlPolyfillSupport;dp?.(io,Fo),(ln.litHtmlVersions??=[]).push("3.3.0");var pl=Symbol.for(""),pp=e=>{if(e?.r===pl)return e?._$litStatic$},pn=e=>({_$litStatic$:e,r:pl});var dl=new Map,un=e=>(t,...o)=>{let i=o.length,n,a,s=[],c=[],u,p=0,h=!1;for(;p<i;){for(u=t[p];p<i&&(a=o[p],(n=pp(a))!==void 0);)u+=n+t[++p],h=!0;p!==i&&c.push(a),s.push(u),p++}if(p===i&&s.push(t[i]),h){let y=s.join("$$lit$$");(t=dl.get(y))===void 0&&(s.raw=s,dl.set(y,t=s)),o=c}return e(t,...o)},fn=un(al),Om=un(sl),Cm=un(ll);var hn=m(q()),fl=m(R());var qe;(function(e){e.title="title",e.title_dense="title-dense",e.subtitle1="subtitle1",e.subtitle2="subtitle2",e.body1="body1",e.body2="body2",e.caption="caption",e.breadcrumb="breadcrumb",e.overline="overline",e.button="button",e.display="display",e.title1="title-1",e.title2="title-2",e.title3="title-3",e.body1regular="body-1-regular",e.body1medium="body-1-medium",e.body1semibold="body-1-semibold",e.body2regular="body-2-regular",e.body2medium="body-2-medium",e.body2semibold="body-2-semibold",e.label1medium="label-1-medium",e.label1semibold="label-1-semibold",e.label1bold="label-1-bold",e.label2medium="label-2-medium",e.label2semibold="label-2-semibold",e.label2bold="label-2-bold",e.caption1medium="caption-1-medium",e.caption1semibold="caption-1-semibold",e.caption1bold="caption-1-bold",e.caption2medium="caption-2-medium",e.caption2semibold="caption-2-semibold",e.caption2bold="caption-2-bold"})(qe||(qe={}));var ul=function(e,t,o,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,o,i);else for(var c=e.length-1;c>=0;c--)(s=e[c])&&(a=(n<3?s(a):n>3?s(t,o,a):s(t,o))||a);return n>3&&a&&Object.defineProperty(t,o,a),a},ft=class extends fl.FtLitElement{constructor(){super(...arguments),this.variant=qe.body1}render(){return this.element?fn`
532
532
  <${pn(this.element)}
533
533
  part="text"
534
534
  class="ft-typography ft-typography--${this.variant}">
@@ -536,18 +536,18 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
536
536
  </${pn(this.element)}>
537
537
  `:fn`
538
538
  <slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
539
- `}};ft.styles=[is,ns,as,ss,Nr,ls,Do,cs,ds,ps,us,...fs];pl([(0,hn.property)()],ft.prototype,"element",void 0);pl([(0,hn.property)()],ft.prototype,"variant",void 0);(0,fl.customElement)("ft-typography")(ft);var _n=m(R());var Ko=m(M()),Ee=m(q()),ec=m(Ne()),$e=m(R());var Fr=m(M()),Yt=m(q()),Wr=m(R());var ml=m(R());var yl=m(M()),It=m(q()),gl=m(Ne()),no=m(R());var Kt=function(e,t,o,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,o,i);else for(var c=e.length-1;c>=0;c--)(s=e[c])&&(a=(n<3?s(a):n>3?s(t,o,a):s(t,o))||a);return n>3&&a&&Object.defineProperty(t,o,a),a},K=class extends no.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 no.Debouncer(1e3),this.onTransitionStart=t=>{t.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=t=>{t.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new no.Debouncer(10),this.moveRipple=t=>{var o,i;let{x:n,y:a}=this.getCoordinates(t),s=(i=(o=this.ripple)===null||o===void 0?void 0:o.getBoundingClientRect())!==null&&i!==void 0?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(n!=null?n-s.x:s.width/2),this.originY=Math.round(a!=null?a-s.y:s.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(t?.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return yl.html`
539
+ `}};ft.styles=[is,ns,as,ss,Nr,ls,Do,cs,ds,ps,us,...fs];ul([(0,hn.property)()],ft.prototype,"element",void 0);ul([(0,hn.property)()],ft.prototype,"variant",void 0);(0,hl.customElement)("ft-typography")(ft);var _n=m(R());var Ko=m(M()),Ee=m(q()),rc=m(Le()),Be=m(R());var Fr=m(M()),Yt=m(q()),Wr=m(R());var bl=m(R());var gl=m(M()),It=m(q()),ml=m(Le()),no=m(R());var Kt=function(e,t,o,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,o,i);else for(var c=e.length-1;c>=0;c--)(s=e[c])&&(a=(n<3?s(a):n>3?s(t,o,a):s(t,o))||a);return n>3&&a&&Object.defineProperty(t,o,a),a},K=class extends no.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 no.Debouncer(1e3),this.onTransitionStart=t=>{t.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=t=>{t.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new no.Debouncer(10),this.moveRipple=t=>{var o,i;let{x:n,y:a}=this.getCoordinates(t),s=(i=(o=this.ripple)===null||o===void 0?void 0:o.getBoundingClientRect())!==null&&i!==void 0?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(n!=null?n-s.x:s.width/2),this.originY=Math.round(a!=null?a-s.y:s.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(t?.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return gl.html`
540
540
  <style>
541
541
  .ft-ripple .ft-ripple--effect {
542
542
  left: ${this.originX}px;
543
543
  top: ${this.originY}px;
544
544
  }
545
545
  </style>
546
- <div class="${(0,gl.classMap)(t)}">
546
+ <div class="${(0,ml.classMap)(t)}">
547
547
  <div class="ft-ripple--background"></div>
548
548
  <div class="ft-ripple--effect"></div>
549
549
  </div>
550
- `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var o,i;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),(o=this.target)===null||o===void 0||o.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var t,o;let i=(t=this.shadowRoot)===null||t===void 0?void 0:t.host.parentElement;i&&this.setupFor((o=this.target)!==null&&o!==void 0?o:i)}forceFocusUpdate(){var t;!((t=this.target)===null||t===void 0)&&t.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");let o=(...c)=>u=>{c.forEach(p=>window.addEventListener(p,this.endPress,{once:!0})),this.startPress(u)},i=o("mouseup","contextmenu"),n=o("touchend","touchcancel"),a=c=>{["Enter"," "].includes(c.key)&&o("keyup")(c)},s={passive:!0};t.addEventListener("mouseover",this.startHover,s),t.addEventListener("mousemove",this.moveRipple,s),t.addEventListener("mouseleave",this.endHover,s),t.addEventListener("mousedown",i,s),t.addEventListener("touchstart",n,s),t.addEventListener("touchmove",this.moveRipple,s),t.addEventListener("keydown",a,s),t.addEventListener("focus",this.startFocus,s),t.addEventListener("blur",this.endFocus,s),t.addEventListener("focusin",this.startFocus,s),t.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,s),t.removeEventListener("mousemove",this.moveRipple,s),t.removeEventListener("mouseleave",this.endHover,s),t.removeEventListener("mousedown",i,s),t.removeEventListener("touchstart",n,s),t.removeEventListener("touchmove",this.moveRipple,s),t.removeEventListener("keydown",a,s),t.removeEventListener("focus",this.startFocus,s),t.removeEventListener("blur",this.endFocus,s),t.removeEventListener("focusin",this.startFocus,s),t.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){let o=t,i=t,n,a;return o.x!=null?{x:n,y:a}=o:i.touches!=null&&(n=i.touches[0].clientX,a=i.touches[0].clientY),{x:n,y:a}}isFocusVisible(t){return t instanceof HTMLElement?t.matches(":focus-visible"):!0}isIgnored(t){if(this.disabled)return!0;if(t!=null)for(let o of t.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};K.elementDefinitions={};K.styles=Ia;Kt([(0,It.property)({type:Boolean})],K.prototype,"primary",void 0);Kt([(0,It.property)({type:Boolean})],K.prototype,"secondary",void 0);Kt([(0,It.property)({type:Boolean})],K.prototype,"unbounded",void 0);Kt([(0,It.property)({type:Boolean})],K.prototype,"activated",void 0);Kt([(0,It.property)({type:Boolean})],K.prototype,"selected",void 0);Kt([(0,It.property)({type:Boolean})],K.prototype,"disabled",void 0);Kt([(0,It.state)()],K.prototype,"hovered",void 0);Kt([(0,It.state)()],K.prototype,"focused",void 0);Kt([(0,It.state)()],K.prototype,"pressed",void 0);Kt([(0,It.state)()],K.prototype,"rippling",void 0);Kt([(0,It.state)()],K.prototype,"originX",void 0);Kt([(0,It.state)()],K.prototype,"originY",void 0);Kt([(0,It.query)(".ft-ripple")],K.prototype,"ripple",void 0);Kt([(0,It.query)(".ft-ripple--effect")],K.prototype,"rippleEffect",void 0);(0,ml.customElement)("ft-ripple")(K);var tc=m(Ne());var jl=m(R());var Gl=m(M()),Ot=m(q()),po=m(R());var bl=m(M()),Le=m(R()),Dr={distance:Le.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:Le.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:Le.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:Le.FtCssVariableFactory.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:Le.FtCssVariableFactory.external(Le.designSystemVariables.borderRadiusS,"Design system"),maxWidth:Le.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},xl=bl.css`
550
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var o,i;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),(o=this.target)===null||o===void 0||o.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var t,o;let i=(t=this.shadowRoot)===null||t===void 0?void 0:t.host.parentElement;i&&this.setupFor((o=this.target)!==null&&o!==void 0?o:i)}forceFocusUpdate(){var t;!((t=this.target)===null||t===void 0)&&t.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");let o=(...c)=>u=>{c.forEach(p=>window.addEventListener(p,this.endPress,{once:!0})),this.startPress(u)},i=o("mouseup","contextmenu"),n=o("touchend","touchcancel"),a=c=>{["Enter"," "].includes(c.key)&&o("keyup")(c)},s={passive:!0};t.addEventListener("mouseover",this.startHover,s),t.addEventListener("mousemove",this.moveRipple,s),t.addEventListener("mouseleave",this.endHover,s),t.addEventListener("mousedown",i,s),t.addEventListener("touchstart",n,s),t.addEventListener("touchmove",this.moveRipple,s),t.addEventListener("keydown",a,s),t.addEventListener("focus",this.startFocus,s),t.addEventListener("blur",this.endFocus,s),t.addEventListener("focusin",this.startFocus,s),t.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,s),t.removeEventListener("mousemove",this.moveRipple,s),t.removeEventListener("mouseleave",this.endHover,s),t.removeEventListener("mousedown",i,s),t.removeEventListener("touchstart",n,s),t.removeEventListener("touchmove",this.moveRipple,s),t.removeEventListener("keydown",a,s),t.removeEventListener("focus",this.startFocus,s),t.removeEventListener("blur",this.endFocus,s),t.removeEventListener("focusin",this.startFocus,s),t.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){let o=t,i=t,n,a;return o.x!=null?{x:n,y:a}=o:i.touches!=null&&(n=i.touches[0].clientX,a=i.touches[0].clientY),{x:n,y:a}}isFocusVisible(t){return t instanceof HTMLElement?t.matches(":focus-visible"):!0}isIgnored(t){if(this.disabled)return!0;if(t!=null)for(let o of t.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};K.elementDefinitions={};K.styles=Ia;Kt([(0,It.property)({type:Boolean})],K.prototype,"primary",void 0);Kt([(0,It.property)({type:Boolean})],K.prototype,"secondary",void 0);Kt([(0,It.property)({type:Boolean})],K.prototype,"unbounded",void 0);Kt([(0,It.property)({type:Boolean})],K.prototype,"activated",void 0);Kt([(0,It.property)({type:Boolean})],K.prototype,"selected",void 0);Kt([(0,It.property)({type:Boolean})],K.prototype,"disabled",void 0);Kt([(0,It.state)()],K.prototype,"hovered",void 0);Kt([(0,It.state)()],K.prototype,"focused",void 0);Kt([(0,It.state)()],K.prototype,"pressed",void 0);Kt([(0,It.state)()],K.prototype,"rippling",void 0);Kt([(0,It.state)()],K.prototype,"originX",void 0);Kt([(0,It.state)()],K.prototype,"originY",void 0);Kt([(0,It.query)(".ft-ripple")],K.prototype,"ripple",void 0);Kt([(0,It.query)(".ft-ripple--effect")],K.prototype,"rippleEffect",void 0);(0,bl.customElement)("ft-ripple")(K);var ec=m(Le());var Kl=m(R());var jl=m(M()),Ot=m(q()),po=m(R());var xl=m(M()),ke=m(R()),Dr={distance:ke.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:ke.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:ke.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:ke.FtCssVariableFactory.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:ke.FtCssVariableFactory.external(ke.designSystemVariables.borderRadiusS,"Design system"),maxWidth:ke.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},vl=xl.css`
551
551
  .ft-tooltip--container {
552
552
  display: block;
553
553
  }
@@ -576,7 +576,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
576
576
  position: relative;
577
577
  word-break: break-word;
578
578
  }
579
- `;var Sl=["top","right","bottom","left"],vl=["start","end"],gn=Sl.reduce((e,t)=>e.concat(t,t+"-"+vl[0],t+"-"+vl[1]),[]),Ol=Math.min,Cl=Math.max;var pp={left:"right",right:"left",bottom:"top",top:"bottom"},up={start:"end",end:"start"};function mn(e,t,o){return Cl(e,Ol(t,o))}function Wo(e,t){return typeof e=="function"?e(t):e}function $r(e){return e.split("-")[0]}function qe(e){return e.split("-")[1]}function bn(e){return e==="x"?"y":"x"}function xn(e){return e==="y"?"height":"width"}function zo(e){return["top","bottom"].includes($r(e))?"y":"x"}function vn(e){return bn(zo(e))}function wl(e,t,o){o===void 0&&(o=!1);let i=qe(e),n=vn(e),a=xn(n),s=n==="x"?i===(o?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=yn(s)),[s,yn(s)]}function El(e){return e.replace(/start|end/g,t=>up[t])}function yn(e){return e.replace(/left|right|bottom|top/g,t=>pp[t])}function fp(e){return{top:0,right:0,bottom:0,left:0,...e}}function Al(e){return typeof e!="number"?fp(e):{top:e,right:e,bottom:e,left:e}}function yr(e){let{x:t,y:o,width:i,height:n}=e;return{width:i,height:n,top:o,left:t,right:t+i,bottom:o+n,x:t,y:o}}function Rl(e,t,o){let{reference:i,floating:n}=e,a=zo(t),s=vn(t),c=xn(s),u=$r(t),p=a==="y",h=i.x+i.width/2-n.width/2,y=i.y+i.height/2-n.height/2,b=i[c]/2-n[c]/2,x;switch(u){case"top":x={x:h,y:i.y-n.height};break;case"bottom":x={x:h,y:i.y+i.height};break;case"right":x={x:i.x+i.width,y};break;case"left":x={x:i.x-n.width,y};break;default:x={x:i.x,y:i.y}}switch(qe(t)){case"start":x[s]-=b*(o&&p?-1:1);break;case"end":x[s]+=b*(o&&p?-1:1);break}return x}var Tl=async(e,t,o)=>{let{placement:i="bottom",strategy:n="absolute",middleware:a=[],platform:s}=o,c=a.filter(Boolean),u=await(s.isRTL==null?void 0:s.isRTL(t)),p=await s.getElementRects({reference:e,floating:t,strategy:n}),{x:h,y}=Rl(p,i,u),b=i,x={},S=0;for(let O=0;O<c.length;O++){let{name:N,fn:_}=c[O],{x:I,y:$,data:z,reset:H}=await _({x:h,y,initialPlacement:i,placement:b,strategy:n,middlewareData:x,rects:p,platform:s,elements:{reference:e,floating:t}});h=I??h,y=$??y,x={...x,[N]:{...x[N],...z}},H&&S<=50&&(S++,typeof H=="object"&&(H.placement&&(b=H.placement),H.rects&&(p=H.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:n}):H.rects),{x:h,y}=Rl(p,b,u)),O=-1)}return{x:h,y,placement:b,strategy:n,middlewareData:x}};async function Sn(e,t){var o;t===void 0&&(t={});let{x:i,y:n,platform:a,rects:s,elements:c,strategy:u}=e,{boundary:p="clippingAncestors",rootBoundary:h="viewport",elementContext:y="floating",altBoundary:b=!1,padding:x=0}=Wo(t,e),S=Al(x),N=c[b?y==="floating"?"reference":"floating":y],_=yr(await a.getClippingRect({element:(o=await(a.isElement==null?void 0:a.isElement(N)))==null||o?N:N.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(c.floating)),boundary:p,rootBoundary:h,strategy:u})),I=y==="floating"?{x:i,y:n,width:s.floating.width,height:s.floating.height}:s.reference,$=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c.floating)),z=await(a.isElement==null?void 0:a.isElement($))?await(a.getScale==null?void 0:a.getScale($))||{x:1,y:1}:{x:1,y:1},H=yr(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:I,offsetParent:$,strategy:u}):I);return{top:(_.top-H.top+S.top)/z.y,bottom:(H.bottom-_.bottom+S.bottom)/z.y,left:(_.left-H.left+S.left)/z.x,right:(H.right-_.right+S.right)/z.x}}function hp(e,t,o){return(e?[...o.filter(n=>qe(n)===e),...o.filter(n=>qe(n)!==e)]:o.filter(n=>$r(n)===n)).filter(n=>e?qe(n)===e||(t?El(n)!==n:!1):!0)}var On=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var o,i,n;let{rects:a,middlewareData:s,placement:c,platform:u,elements:p}=t,{crossAxis:h=!1,alignment:y,allowedPlacements:b=gn,autoAlignment:x=!0,...S}=Wo(e,t),O=y!==void 0||b===gn?hp(y||null,x,b):b,N=await Sn(t,S),_=((o=s.autoPlacement)==null?void 0:o.index)||0,I=O[_];if(I==null)return{};let $=wl(I,a,await(u.isRTL==null?void 0:u.isRTL(p.floating)));if(c!==I)return{reset:{placement:O[0]}};let z=[N[$r(I)],N[$[0]],N[$[1]]],H=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:I,overflows:z}],jt=O[_+1];if(jt)return{data:{index:_+1,overflows:H},reset:{placement:jt}};let ve=H.map(Tt=>{let g=qe(Tt.placement);return[Tt.placement,g&&h?Tt.overflows.slice(0,2).reduce((v,P)=>v+P,0):Tt.overflows[0],Tt.overflows]}).sort((Tt,g)=>Tt[1]-g[1]),Se=((n=ve.filter(Tt=>Tt[2].slice(0,qe(Tt[0])?2:3).every(g=>g<=0))[0])==null?void 0:n[0])||ve[0][0];return Se!==c?{data:{index:_+1,overflows:H},reset:{placement:Se}}:{}}}};var Cn=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:o,y:i,placement:n}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:c={fn:N=>{let{x:_,y:I}=N;return{x:_,y:I}}},...u}=Wo(e,t),p={x:o,y:i},h=await Sn(t,u),y=zo($r(n)),b=bn(y),x=p[b],S=p[y];if(a){let N=b==="y"?"top":"left",_=b==="y"?"bottom":"right",I=x+h[N],$=x-h[_];x=mn(I,x,$)}if(s){let N=y==="y"?"top":"left",_=y==="y"?"bottom":"right",I=S+h[N],$=S-h[_];S=mn(I,S,$)}let O=c.fn({...t,[b]:x,[y]:S});return{...O,data:{x:O.x-o,y:O.y-i,enabled:{[b]:a,[y]:s}}}}}};var wn=Math.min,Br=Math.max,ao=Math.round;var Pe=e=>({x:e,y:e});function ke(e){return Il(e)?(e.nodeName||"").toLowerCase():"#document"}function Zt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function De(e){var t;return(t=(Il(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Il(e){return e instanceof Node||e instanceof Zt(e).Node}function we(e){return e instanceof Element||e instanceof Zt(e).Element}function fe(e){return e instanceof HTMLElement||e instanceof Zt(e).HTMLElement}function _l(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Zt(e).ShadowRoot}function Mr(e){let{overflow:t,overflowX:o,overflowY:i,display:n}=te(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+o)&&!["inline","contents"].includes(n)}function Nl(e){return["table","td","th"].includes(ke(e))}function Vo(e){let t=Go(),o=te(e);return o.transform!=="none"||o.perspective!=="none"||(o.containerType?o.containerType!=="normal":!1)||!t&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!t&&(o.filter?o.filter!=="none":!1)||["transform","perspective","filter"].some(i=>(o.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(o.contain||"").includes(i))}function Ll(e){let t=gr(e);for(;fe(t)&&!so(t);){if(Vo(t))return t;t=gr(t)}return null}function Go(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function so(e){return["html","body","#document"].includes(ke(e))}function te(e){return Zt(e).getComputedStyle(e)}function lo(e){return we(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function gr(e){if(ke(e)==="html")return e;let t=e.assignedSlot||e.parentNode||_l(e)&&e.host||De(e);return _l(t)?t.host:t}function Pl(e){let t=gr(e);return so(t)?e.ownerDocument?e.ownerDocument.body:e.body:fe(t)&&Mr(t)?t:Pl(t)}function Ho(e,t,o){var i;t===void 0&&(t=[]),o===void 0&&(o=!0);let n=Pl(e),a=n===((i=e.ownerDocument)==null?void 0:i.body),s=Zt(n);return a?t.concat(s,s.visualViewport||[],Mr(n)?n:[],s.frameElement&&o?Ho(s.frameElement):[]):t.concat(n,Ho(n,[],o))}function $l(e){let t=te(e),o=parseFloat(t.width)||0,i=parseFloat(t.height)||0,n=fe(e),a=n?e.offsetWidth:o,s=n?e.offsetHeight:i,c=ao(o)!==a||ao(i)!==s;return c&&(o=a,i=s),{width:o,height:i,$:c}}function Bl(e){return we(e)?e:e.contextElement}function Ur(e){let t=Bl(e);if(!fe(t))return Pe(1);let o=t.getBoundingClientRect(),{width:i,height:n,$:a}=$l(t),s=(a?ao(o.width):o.width)/i,c=(a?ao(o.height):o.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}var mp=Pe(0);function Ml(e){let t=Zt(e);return!Go()||!t.visualViewport?mp:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function bp(e,t,o){return t===void 0&&(t=!1),!o||t&&o!==Zt(e)?!1:t}function co(e,t,o,i){t===void 0&&(t=!1),o===void 0&&(o=!1);let n=e.getBoundingClientRect(),a=Bl(e),s=Pe(1);t&&(i?we(i)&&(s=Ur(i)):s=Ur(e));let c=bp(a,o,i)?Ml(a):Pe(0),u=(n.left+c.x)/s.x,p=(n.top+c.y)/s.y,h=n.width/s.x,y=n.height/s.y;if(a){let b=Zt(a),x=i&&we(i)?Zt(i):i,S=b.frameElement;for(;S&&i&&x!==b;){let O=Ur(S),N=S.getBoundingClientRect(),_=te(S),I=N.left+(S.clientLeft+parseFloat(_.paddingLeft))*O.x,$=N.top+(S.clientTop+parseFloat(_.paddingTop))*O.y;u*=O.x,p*=O.y,h*=O.x,y*=O.y,u+=I,p+=$,S=Zt(S).frameElement}}return yr({width:h,height:y,x:u,y:p})}function xp(e){let{rect:t,offsetParent:o,strategy:i}=e,n=fe(o),a=De(o);if(o===a)return t;let s={scrollLeft:0,scrollTop:0},c=Pe(1),u=Pe(0);if((n||!n&&i!=="fixed")&&((ke(o)!=="body"||Mr(a))&&(s=lo(o)),fe(o))){let p=co(o);c=Ur(o),u.x=p.x+o.clientLeft,u.y=p.y+o.clientTop}return{width:t.width*c.x,height:t.height*c.y,x:t.x*c.x-s.scrollLeft*c.x+u.x,y:t.y*c.y-s.scrollTop*c.y+u.y}}function vp(e){return Array.from(e.getClientRects())}function Ul(e){return co(De(e)).left+lo(e).scrollLeft}function Sp(e){let t=De(e),o=lo(e),i=e.ownerDocument.body,n=Br(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),a=Br(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight),s=-o.scrollLeft+Ul(e),c=-o.scrollTop;return te(i).direction==="rtl"&&(s+=Br(t.clientWidth,i.clientWidth)-n),{width:n,height:a,x:s,y:c}}function Op(e,t){let o=Zt(e),i=De(e),n=o.visualViewport,a=i.clientWidth,s=i.clientHeight,c=0,u=0;if(n){a=n.width,s=n.height;let p=Go();(!p||p&&t==="fixed")&&(c=n.offsetLeft,u=n.offsetTop)}return{width:a,height:s,x:c,y:u}}function Cp(e,t){let o=co(e,!0,t==="fixed"),i=o.top+e.clientTop,n=o.left+e.clientLeft,a=fe(e)?Ur(e):Pe(1),s=e.clientWidth*a.x,c=e.clientHeight*a.y,u=n*a.x,p=i*a.y;return{width:s,height:c,x:u,y:p}}function kl(e,t,o){let i;if(t==="viewport")i=Op(e,o);else if(t==="document")i=Sp(De(e));else if(we(t))i=Cp(t,o);else{let n=Ml(e);i={...t,x:t.x-n.x,y:t.y-n.y}}return yr(i)}function Fl(e,t){let o=gr(e);return o===t||!we(o)||so(o)?!1:te(o).position==="fixed"||Fl(o,t)}function wp(e,t){let o=t.get(e);if(o)return o;let i=Ho(e,[],!1).filter(c=>we(c)&&ke(c)!=="body"),n=null,a=te(e).position==="fixed",s=a?gr(e):e;for(;we(s)&&!so(s);){let c=te(s),u=Vo(s);!u&&c.position==="fixed"&&(n=null),(a?!u&&!n:!u&&c.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||Mr(s)&&!u&&Fl(e,s))?i=i.filter(h=>h!==s):n=c,s=gr(s)}return t.set(e,i),i}function Ep(e){let{element:t,boundary:o,rootBoundary:i,strategy:n}=e,s=[...o==="clippingAncestors"?wp(t,this._c):[].concat(o),i],c=s[0],u=s.reduce((p,h)=>{let y=kl(t,h,n);return p.top=Br(y.top,p.top),p.right=wn(y.right,p.right),p.bottom=wn(y.bottom,p.bottom),p.left=Br(y.left,p.left),p},kl(t,c,n));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function Ap(e){return $l(e)}function Rp(e,t,o){let i=fe(t),n=De(t),a=o==="fixed",s=co(e,!0,a,t),c={scrollLeft:0,scrollTop:0},u=Pe(0);if(i||!i&&!a)if((ke(t)!=="body"||Mr(n))&&(c=lo(t)),i){let p=co(t,!0,a,t);u.x=p.x+t.clientLeft,u.y=p.y+t.clientTop}else n&&(u.x=Ul(n));return{x:s.left+c.scrollLeft-u.x,y:s.top+c.scrollTop-u.y,width:s.width,height:s.height}}function Dl(e,t){return!fe(e)||te(e).position==="fixed"?null:t?t(e):e.offsetParent}function Wl(e,t){let o=Zt(e);if(!fe(e))return o;let i=Dl(e,t);for(;i&&Nl(i)&&te(i).position==="static";)i=Dl(i,t);return i&&(ke(i)==="html"||ke(i)==="body"&&te(i).position==="static"&&!Vo(i))?o:i||Ll(e)||o}var Tp=async function(e){let{reference:t,floating:o,strategy:i}=e,n=this.getOffsetParent||Wl,a=this.getDimensions;return{reference:Rp(t,await n(o),i),floating:{x:0,y:0,...await a(o)}}};function _p(e){return te(e).direction==="rtl"}var jo={convertOffsetParentRelativeRectToViewportRelativeRect:xp,getDocumentElement:De,getClippingRect:Ep,getOffsetParent:Wl,getElementRects:Tp,getClientRects:vp,getDimensions:Ap,getScale:Ur,isElement:we,isRTL:_p};var zl=(e,t,o)=>{let i=new Map,n={platform:jo,...o},a={...n.platform,_c:i};return Tl(e,t,{...n,platform:a})};function Hl(e){return Ip(e)}function En(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function Ip(e){for(let t=e;t;t=En(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=En(e);t;t=En(t)){if(!(t instanceof Element))continue;let o=getComputedStyle(t);if(o.display!=="contents"&&(o.position!=="static"||o.filter!=="none"||t.tagName==="BODY"))return t}return null}async function Vl(e,t,o){return zl(e,t,{platform:{...jo,getOffsetParent:i=>jo.getOffsetParent(i,Hl)},middleware:[Cn({crossAxis:!0}),On({allowedPlacements:[o]})]})}var qt=function(e,t,o,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,o,i);else for(var c=e.length-1;c>=0;c--)(s=e[c])&&(a=(n<3?s(a):n>3?s(t,o,a):s(t,o))||a);return n>3&&a&&Object.defineProperty(t,o,a),a},ot=class extends po.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 po.Debouncer,this.revealDebouncer=new po.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return Gl.html`
579
+ `;var Ol=["top","right","bottom","left"],Sl=["start","end"],gn=Ol.reduce((e,t)=>e.concat(t,t+"-"+Sl[0],t+"-"+Sl[1]),[]),Cl=Math.min,wl=Math.max;var up={left:"right",right:"left",bottom:"top",top:"bottom"},fp={start:"end",end:"start"};function mn(e,t,o){return wl(e,Cl(t,o))}function Wo(e,t){return typeof e=="function"?e(t):e}function $r(e){return e.split("-")[0]}function Ye(e){return e.split("-")[1]}function bn(e){return e==="x"?"y":"x"}function xn(e){return e==="y"?"height":"width"}function zo(e){return["top","bottom"].includes($r(e))?"y":"x"}function vn(e){return bn(zo(e))}function El(e,t,o){o===void 0&&(o=!1);let i=Ye(e),n=vn(e),a=xn(n),s=n==="x"?i===(o?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=yn(s)),[s,yn(s)]}function Al(e){return e.replace(/start|end/g,t=>fp[t])}function yn(e){return e.replace(/left|right|bottom|top/g,t=>up[t])}function hp(e){return{top:0,right:0,bottom:0,left:0,...e}}function Rl(e){return typeof e!="number"?hp(e):{top:e,right:e,bottom:e,left:e}}function yr(e){let{x:t,y:o,width:i,height:n}=e;return{width:i,height:n,top:o,left:t,right:t+i,bottom:o+n,x:t,y:o}}function Tl(e,t,o){let{reference:i,floating:n}=e,a=zo(t),s=vn(t),c=xn(s),u=$r(t),p=a==="y",h=i.x+i.width/2-n.width/2,y=i.y+i.height/2-n.height/2,b=i[c]/2-n[c]/2,x;switch(u){case"top":x={x:h,y:i.y-n.height};break;case"bottom":x={x:h,y:i.y+i.height};break;case"right":x={x:i.x+i.width,y};break;case"left":x={x:i.x-n.width,y};break;default:x={x:i.x,y:i.y}}switch(Ye(t)){case"start":x[s]-=b*(o&&p?-1:1);break;case"end":x[s]+=b*(o&&p?-1:1);break}return x}var _l=async(e,t,o)=>{let{placement:i="bottom",strategy:n="absolute",middleware:a=[],platform:s}=o,c=a.filter(Boolean),u=await(s.isRTL==null?void 0:s.isRTL(t)),p=await s.getElementRects({reference:e,floating:t,strategy:n}),{x:h,y}=Tl(p,i,u),b=i,x={},S=0;for(let O=0;O<c.length;O++){let{name:N,fn:_}=c[O],{x:I,y:$,data:z,reset:H}=await _({x:h,y,initialPlacement:i,placement:b,strategy:n,middlewareData:x,rects:p,platform:s,elements:{reference:e,floating:t}});h=I??h,y=$??y,x={...x,[N]:{...x[N],...z}},H&&S<=50&&(S++,typeof H=="object"&&(H.placement&&(b=H.placement),H.rects&&(p=H.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:n}):H.rects),{x:h,y}=Tl(p,b,u)),O=-1)}return{x:h,y,placement:b,strategy:n,middlewareData:x}};async function Sn(e,t){var o;t===void 0&&(t={});let{x:i,y:n,platform:a,rects:s,elements:c,strategy:u}=e,{boundary:p="clippingAncestors",rootBoundary:h="viewport",elementContext:y="floating",altBoundary:b=!1,padding:x=0}=Wo(t,e),S=Rl(x),N=c[b?y==="floating"?"reference":"floating":y],_=yr(await a.getClippingRect({element:(o=await(a.isElement==null?void 0:a.isElement(N)))==null||o?N:N.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(c.floating)),boundary:p,rootBoundary:h,strategy:u})),I=y==="floating"?{x:i,y:n,width:s.floating.width,height:s.floating.height}:s.reference,$=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c.floating)),z=await(a.isElement==null?void 0:a.isElement($))?await(a.getScale==null?void 0:a.getScale($))||{x:1,y:1}:{x:1,y:1},H=yr(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:I,offsetParent:$,strategy:u}):I);return{top:(_.top-H.top+S.top)/z.y,bottom:(H.bottom-_.bottom+S.bottom)/z.y,left:(_.left-H.left+S.left)/z.x,right:(H.right-_.right+S.right)/z.x}}function yp(e,t,o){return(e?[...o.filter(n=>Ye(n)===e),...o.filter(n=>Ye(n)!==e)]:o.filter(n=>$r(n)===n)).filter(n=>e?Ye(n)===e||(t?Al(n)!==n:!1):!0)}var On=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var o,i,n;let{rects:a,middlewareData:s,placement:c,platform:u,elements:p}=t,{crossAxis:h=!1,alignment:y,allowedPlacements:b=gn,autoAlignment:x=!0,...S}=Wo(e,t),O=y!==void 0||b===gn?yp(y||null,x,b):b,N=await Sn(t,S),_=((o=s.autoPlacement)==null?void 0:o.index)||0,I=O[_];if(I==null)return{};let $=El(I,a,await(u.isRTL==null?void 0:u.isRTL(p.floating)));if(c!==I)return{reset:{placement:O[0]}};let z=[N[$r(I)],N[$[0]],N[$[1]]],H=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:I,overflows:z}],jt=O[_+1];if(jt)return{data:{index:_+1,overflows:H},reset:{placement:jt}};let ve=H.map(Tt=>{let g=Ye(Tt.placement);return[Tt.placement,g&&h?Tt.overflows.slice(0,2).reduce((v,k)=>v+k,0):Tt.overflows[0],Tt.overflows]}).sort((Tt,g)=>Tt[1]-g[1]),Se=((n=ve.filter(Tt=>Tt[2].slice(0,Ye(Tt[0])?2:3).every(g=>g<=0))[0])==null?void 0:n[0])||ve[0][0];return Se!==c?{data:{index:_+1,overflows:H},reset:{placement:Se}}:{}}}};var Cn=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:o,y:i,placement:n}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:c={fn:N=>{let{x:_,y:I}=N;return{x:_,y:I}}},...u}=Wo(e,t),p={x:o,y:i},h=await Sn(t,u),y=zo($r(n)),b=bn(y),x=p[b],S=p[y];if(a){let N=b==="y"?"top":"left",_=b==="y"?"bottom":"right",I=x+h[N],$=x-h[_];x=mn(I,x,$)}if(s){let N=y==="y"?"top":"left",_=y==="y"?"bottom":"right",I=S+h[N],$=S-h[_];S=mn(I,S,$)}let O=c.fn({...t,[b]:x,[y]:S});return{...O,data:{x:O.x-o,y:O.y-i,enabled:{[b]:a,[y]:s}}}}}};var wn=Math.min,Br=Math.max,ao=Math.round;var Pe=e=>({x:e,y:e});function De(e){return Nl(e)?(e.nodeName||"").toLowerCase():"#document"}function Zt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function $e(e){var t;return(t=(Nl(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Nl(e){return e instanceof Node||e instanceof Zt(e).Node}function we(e){return e instanceof Element||e instanceof Zt(e).Element}function fe(e){return e instanceof HTMLElement||e instanceof Zt(e).HTMLElement}function Il(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Zt(e).ShadowRoot}function Mr(e){let{overflow:t,overflowX:o,overflowY:i,display:n}=te(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+o)&&!["inline","contents"].includes(n)}function Ll(e){return["table","td","th"].includes(De(e))}function Vo(e){let t=Go(),o=te(e);return o.transform!=="none"||o.perspective!=="none"||(o.containerType?o.containerType!=="normal":!1)||!t&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!t&&(o.filter?o.filter!=="none":!1)||["transform","perspective","filter"].some(i=>(o.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(o.contain||"").includes(i))}function kl(e){let t=gr(e);for(;fe(t)&&!so(t);){if(Vo(t))return t;t=gr(t)}return null}function Go(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function so(e){return["html","body","#document"].includes(De(e))}function te(e){return Zt(e).getComputedStyle(e)}function lo(e){return we(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function gr(e){if(De(e)==="html")return e;let t=e.assignedSlot||e.parentNode||Il(e)&&e.host||$e(e);return Il(t)?t.host:t}function Pl(e){let t=gr(e);return so(t)?e.ownerDocument?e.ownerDocument.body:e.body:fe(t)&&Mr(t)?t:Pl(t)}function Ho(e,t,o){var i;t===void 0&&(t=[]),o===void 0&&(o=!0);let n=Pl(e),a=n===((i=e.ownerDocument)==null?void 0:i.body),s=Zt(n);return a?t.concat(s,s.visualViewport||[],Mr(n)?n:[],s.frameElement&&o?Ho(s.frameElement):[]):t.concat(n,Ho(n,[],o))}function Bl(e){let t=te(e),o=parseFloat(t.width)||0,i=parseFloat(t.height)||0,n=fe(e),a=n?e.offsetWidth:o,s=n?e.offsetHeight:i,c=ao(o)!==a||ao(i)!==s;return c&&(o=a,i=s),{width:o,height:i,$:c}}function Ml(e){return we(e)?e:e.contextElement}function Ur(e){let t=Ml(e);if(!fe(t))return Pe(1);let o=t.getBoundingClientRect(),{width:i,height:n,$:a}=Bl(t),s=(a?ao(o.width):o.width)/i,c=(a?ao(o.height):o.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}var bp=Pe(0);function Ul(e){let t=Zt(e);return!Go()||!t.visualViewport?bp:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function xp(e,t,o){return t===void 0&&(t=!1),!o||t&&o!==Zt(e)?!1:t}function co(e,t,o,i){t===void 0&&(t=!1),o===void 0&&(o=!1);let n=e.getBoundingClientRect(),a=Ml(e),s=Pe(1);t&&(i?we(i)&&(s=Ur(i)):s=Ur(e));let c=xp(a,o,i)?Ul(a):Pe(0),u=(n.left+c.x)/s.x,p=(n.top+c.y)/s.y,h=n.width/s.x,y=n.height/s.y;if(a){let b=Zt(a),x=i&&we(i)?Zt(i):i,S=b.frameElement;for(;S&&i&&x!==b;){let O=Ur(S),N=S.getBoundingClientRect(),_=te(S),I=N.left+(S.clientLeft+parseFloat(_.paddingLeft))*O.x,$=N.top+(S.clientTop+parseFloat(_.paddingTop))*O.y;u*=O.x,p*=O.y,h*=O.x,y*=O.y,u+=I,p+=$,S=Zt(S).frameElement}}return yr({width:h,height:y,x:u,y:p})}function vp(e){let{rect:t,offsetParent:o,strategy:i}=e,n=fe(o),a=$e(o);if(o===a)return t;let s={scrollLeft:0,scrollTop:0},c=Pe(1),u=Pe(0);if((n||!n&&i!=="fixed")&&((De(o)!=="body"||Mr(a))&&(s=lo(o)),fe(o))){let p=co(o);c=Ur(o),u.x=p.x+o.clientLeft,u.y=p.y+o.clientTop}return{width:t.width*c.x,height:t.height*c.y,x:t.x*c.x-s.scrollLeft*c.x+u.x,y:t.y*c.y-s.scrollTop*c.y+u.y}}function Sp(e){return Array.from(e.getClientRects())}function Fl(e){return co($e(e)).left+lo(e).scrollLeft}function Op(e){let t=$e(e),o=lo(e),i=e.ownerDocument.body,n=Br(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),a=Br(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight),s=-o.scrollLeft+Fl(e),c=-o.scrollTop;return te(i).direction==="rtl"&&(s+=Br(t.clientWidth,i.clientWidth)-n),{width:n,height:a,x:s,y:c}}function Cp(e,t){let o=Zt(e),i=$e(e),n=o.visualViewport,a=i.clientWidth,s=i.clientHeight,c=0,u=0;if(n){a=n.width,s=n.height;let p=Go();(!p||p&&t==="fixed")&&(c=n.offsetLeft,u=n.offsetTop)}return{width:a,height:s,x:c,y:u}}function wp(e,t){let o=co(e,!0,t==="fixed"),i=o.top+e.clientTop,n=o.left+e.clientLeft,a=fe(e)?Ur(e):Pe(1),s=e.clientWidth*a.x,c=e.clientHeight*a.y,u=n*a.x,p=i*a.y;return{width:s,height:c,x:u,y:p}}function Dl(e,t,o){let i;if(t==="viewport")i=Cp(e,o);else if(t==="document")i=Op($e(e));else if(we(t))i=wp(t,o);else{let n=Ul(e);i={...t,x:t.x-n.x,y:t.y-n.y}}return yr(i)}function Wl(e,t){let o=gr(e);return o===t||!we(o)||so(o)?!1:te(o).position==="fixed"||Wl(o,t)}function Ep(e,t){let o=t.get(e);if(o)return o;let i=Ho(e,[],!1).filter(c=>we(c)&&De(c)!=="body"),n=null,a=te(e).position==="fixed",s=a?gr(e):e;for(;we(s)&&!so(s);){let c=te(s),u=Vo(s);!u&&c.position==="fixed"&&(n=null),(a?!u&&!n:!u&&c.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||Mr(s)&&!u&&Wl(e,s))?i=i.filter(h=>h!==s):n=c,s=gr(s)}return t.set(e,i),i}function Ap(e){let{element:t,boundary:o,rootBoundary:i,strategy:n}=e,s=[...o==="clippingAncestors"?Ep(t,this._c):[].concat(o),i],c=s[0],u=s.reduce((p,h)=>{let y=Dl(t,h,n);return p.top=Br(y.top,p.top),p.right=wn(y.right,p.right),p.bottom=wn(y.bottom,p.bottom),p.left=Br(y.left,p.left),p},Dl(t,c,n));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function Rp(e){return Bl(e)}function Tp(e,t,o){let i=fe(t),n=$e(t),a=o==="fixed",s=co(e,!0,a,t),c={scrollLeft:0,scrollTop:0},u=Pe(0);if(i||!i&&!a)if((De(t)!=="body"||Mr(n))&&(c=lo(t)),i){let p=co(t,!0,a,t);u.x=p.x+t.clientLeft,u.y=p.y+t.clientTop}else n&&(u.x=Fl(n));return{x:s.left+c.scrollLeft-u.x,y:s.top+c.scrollTop-u.y,width:s.width,height:s.height}}function $l(e,t){return!fe(e)||te(e).position==="fixed"?null:t?t(e):e.offsetParent}function zl(e,t){let o=Zt(e);if(!fe(e))return o;let i=$l(e,t);for(;i&&Ll(i)&&te(i).position==="static";)i=$l(i,t);return i&&(De(i)==="html"||De(i)==="body"&&te(i).position==="static"&&!Vo(i))?o:i||kl(e)||o}var _p=async function(e){let{reference:t,floating:o,strategy:i}=e,n=this.getOffsetParent||zl,a=this.getDimensions;return{reference:Tp(t,await n(o),i),floating:{x:0,y:0,...await a(o)}}};function Ip(e){return te(e).direction==="rtl"}var jo={convertOffsetParentRelativeRectToViewportRelativeRect:vp,getDocumentElement:$e,getClippingRect:Ap,getOffsetParent:zl,getElementRects:_p,getClientRects:Sp,getDimensions:Rp,getScale:Ur,isElement:we,isRTL:Ip};var Hl=(e,t,o)=>{let i=new Map,n={platform:jo,...o},a={...n.platform,_c:i};return _l(e,t,{...n,platform:a})};function Vl(e){return Np(e)}function En(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function Np(e){for(let t=e;t;t=En(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=En(e);t;t=En(t)){if(!(t instanceof Element))continue;let o=getComputedStyle(t);if(o.display!=="contents"&&(o.position!=="static"||o.filter!=="none"||t.tagName==="BODY"))return t}return null}async function Gl(e,t,o){return Hl(e,t,{platform:{...jo,getOffsetParent:i=>jo.getOffsetParent(i,Vl)},middleware:[Cn({crossAxis:!0}),On({allowedPlacements:[o]})]})}var qt=function(e,t,o,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,o,i);else for(var c=e.length-1;c>=0;c--)(s=e[c])&&(a=(n<3?s(a):n>3?s(t,o,a):s(t,o))||a);return n>3&&a&&Object.defineProperty(t,o,a),a},it=class extends po.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 po.Debouncer,this.revealDebouncer=new po.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return jl.html`
580
580
  <div part="container"
581
581
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
582
582
  @mouseenter=${this.onHover}
@@ -594,12 +594,12 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
594
594
  </div>
595
595
  </div>
596
596
  </div>
597
- `}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some(o=>t.has(o))&&this.visible&&this.positionTooltip()}async show(t){this.visible=!0,t!=null&&await this.hideDebounce.run(()=>{this.hide()},t)}async showTemporaryText(t,o){let i=this.manual;this.manual=!0;let n=this.text;this.text=t,await this.show(o),this.text=n,this.manual=i}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return((t=this.slotNodes)!==null&&t!==void 0?t:[]).filter(o=>o.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",Vl(this.slottedElement,this.tooltip,this.position).then(({x:t,y:o})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${o}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout(()=>window.addEventListener("touchstart",t=>{t.composedPath().includes(this.container)||this.onOut()},{once:!0}),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,o){return Math.max(t,Math.min(0,-o))}};ot.elementDefinitions={"ft-typography":ft};ot.styles=xl;qt([(0,Ot.property)()],ot.prototype,"text",void 0);qt([(0,Ot.property)({type:Boolean})],ot.prototype,"manual",void 0);qt([(0,Ot.property)({type:Boolean})],ot.prototype,"inline",void 0);qt([(0,Ot.property)({type:Number})],ot.prototype,"delay",void 0);qt([(0,Ot.property)()],ot.prototype,"position",void 0);qt([(0,Ot.queryAssignedNodes)()],ot.prototype,"slotNodes",void 0);qt([(0,Ot.query)(".ft-tooltip--container")],ot.prototype,"container",void 0);qt([(0,Ot.query)(".ft-tooltip")],ot.prototype,"tooltip",void 0);qt([(0,Ot.query)(".ft-tooltip--content")],ot.prototype,"tooltipContent",void 0);qt([(0,Ot.state)()],ot.prototype,"visible",void 0);qt([(0,Ot.eventOptions)({passive:!0})],ot.prototype,"onTouch",null);qt([(0,Ot.eventOptions)({passive:!0})],ot.prototype,"onHover",null);qt([(0,Ot.eventOptions)({passive:!0})],ot.prototype,"onOut",null);qt([(0,Ot.eventOptions)({passive:!0})],ot.prototype,"onClick",null);(0,jl.customElement)("ft-tooltip")(ot);var Xl=m(R());var uo=m(M()),Ye=m(q()),ql=m(R()),Yl=m(Zl());var mr;(function(e){e.ADD_TO_PBK="&#xe800;",e.ALERT="&#xe801;",e.ADD_ALERT="&#xe802;",e.BACK_TO_SEARCH="&#xe803;",e.ADD_BOOKMARK="&#xe804;",e.BOOKMARK="&#xe805;",e.BOOKS="&#xe806;",e.MENU="&#xe807;",e.DOWNLOAD="&#xe808;",e.EDIT="&#xe809;",e.FEEDBACK="&#xe80a;",e.HOME="&#xe80b;",e.MODIFY_PBK="&#xe80c;",e.SCHEDULED="&#xe80d;",e.SEARCH="&#xe80e;",e.EXPORT="&#xe80f;",e.TOC="&#xe810;",e.WRITE_UGC="&#xe811;",e.TRASH="&#xe812;",e.USER="&#xe813;",e.EXTLINK="&#xe814;",e.CALENDAR="&#xe815;",e.OFFLINE="&#xe816;",e.BOOK="&#xe817;",e.DOWNLOAD_PLAIN="&#xe818;",e.CHECK="&#xe819;",e.STAR_PLAIN="&#xe900;",e.TOPICS="&#xe901;",e.DISC="&#xe902;",e.CIRCLE="&#xe903;",e.SHARED="&#xe904;",e.SORT_UNSORTED="&#xe905;",e.SORT_UP="&#xe906;",e.SORT_DOWN="&#xe907;",e.WORKING="&#xe908;",e.CLOSE="&#xe909;",e.ZOOM_OUT="&#xe90a;",e.ZOOM_IN="&#xe90b;",e.ZOOM_REALSIZE="&#xe90c;",e.ZOOM_FULLSCREEN="&#xe90d;",e.ADMIN_RESTRICTED="&#xe90e;",e.ADMIN="&#xe90f;",e.ADMIN_KHUB="&#xe910;",e.ADMIN_THEME="&#xe911;",e.ADMIN_USERS="&#xe912;",e.WARNING="&#xe913;",e.CONTEXT="&#xe914;",e.SEARCH_HOME="&#xe915;",e.STEPS="&#xe916;",e.ICON_EXPAND="&#xe917;",e.ICON_COLLAPSE="&#xe918;",e.INFO="&#xe919;",e.MINUS_PLAIN="&#xe91a;",e.PLUS_PLAIN="&#xe91b;",e.FACET_HAS_DESCENDANT="&#xe91c;",e.TRIANGLE_BOTTOM="&#xe91d;",e.TRIANGLE_LEFT="&#xe91e;",e.TRIANGLE_RIGHT="&#xe91f;",e.TRIANGLE_TOP="&#xe920;",e.THIN_ARROW="&#xe921;",e.SIGN_IN="&#xe922;",e.LOGOUT="&#xe923;",e.TRANSLATE="&#xe924;",e.CLOSE_PLAIN="&#xe925;",e.CHECK_PLAIN="&#xe926;",e.ARTICLE="&#xe927;",e.COLUMNS="&#xe928;",e.ANALYTICS="&#xe929;",e.COLLECTIONS="&#xe92a;",e.ARROW_DOWN="&#xe92b;",e.ARROW_LEFT="&#xe92c;",e.ARROW_RIGHT="&#xe92d;",e.ARROW_UP="&#xe92e;",e.SEARCH_IN_PUBLICATION="&#xe92f;",e.COPY_TO_CLIPBOARD="&#xe930;",e.SHARED_PBK="&#xe931;",e.ATTACHMENTS="&#xe932;",e.STRIPE_ARROW_LEFT="&#xe933;",e.STRIPE_ARROW_RIGHT="&#xe934;",e.FILTERS="&#xe935;",e.DOT="&#xe936;",e.MINUS="&#xe937;",e.PLUS="&#xe938;",e.MAILS_AND_NOTIFICATIONS="&#xe939;",e.SAVE="&#xe93a;",e.LOCKER="&#xe93b;",e.ADMIN_INTEGRATION="&#xe93c;",e.SYNC="&#xe93d;",e.TAG="&#xe93e;",e.BOOK_PLAIN="&#xe93f;",e.UPLOAD="&#xe940;",e.ONLINE="&#xe941;",e.TAG_PLAIN="&#xe942;",e.ACCOUNT_SETTINGS="&#xe943;",e.PRINT="&#xe944;",e.DEFAULT_ROLES="&#xe945;",e.SHORTCUT_MENU="&#xe946;",e.RELATIVES_PLAIN="&#xe947;",e.RELATIVES="&#xe948;",e.PAUSE="&#xe949;",e.PLAY="&#xe94a;",e.ADMIN_PORTAL="&#xe94b;",e.STAR="&#xe94c;",e.THUMBS_DOWN="&#xe94d;",e.THUMBS_DOWN_PLAIN="&#xe94e;",e.THUMBS_UP="&#xe94f;",e.THUMBS_UP_PLAIN="&#xe950;",e.FEEDBACK_PLAIN="&#xe951;",e.RATE_PLAIN="&#xe952;",e.RATE="&#xe953;",e.OFFLINE_SETTINGS="&#xe954;",e.MY_COLLECTIONS="&#xe955;",e.THIN_ARROW_LEFT="&#xe956;",e.THIN_ARROW_RIGHT="&#xe957;",e.RESET="&#xe958;",e.MY_LIBRARY="&#xe959;",e.UNSTRUCTURED_DOC="&#xe95a;",e.CONTEXTUAL="&#xe95b;",e.THIN_ARROW_UP="&#xe95c;",e.ARROW_RIGHT_TO_LINE="&#xe95d;",e.DESKTOP="&#xe95e;",e.TABLET_LANDSCAPE="&#xe95f;",e.TABLET_PORTRAIT="&#xe960;",e.MOBILE_LANDSCAPE="&#xe961;",e.MOBILE_PORTRAIT="&#xe962;",e.DIAGRAM_SUNBURST="&#xe963;",e.DIAGRAM_SANKEY="&#xe964;",e.COMMENT_QUESTION="&#xe965;",e.COMMENT_QUESTION_PLAIN="&#xe966;",e.MESSAGE_BOT="&#xe967;",e.CHART_SIMPLE="&#xe968;",e.BARS_PROGRESS="&#xe969;",e.BOOK_OPEN_GEAR="&#xe96a;",e.BOOK_OPEN_GEAR_SLASH="&#xe96b;",e.LINE_CHART="&#xe96c;",e.STACKED_CHART="&#xe96d;",e.CHART_BAR_STACKED="&#xe96e;",e.CHART_BAR_GROUPED="&#xe96f;",e.EYE_SLASH="&#xe970;",e.X_MARK="&#xe971;",e.EXPAND_WIDE="&#xe972;",e.PIP="&#xe973;",e.PIP_WIDE="&#xe974;",e.LIFE_RING="&#xe975;",e.GLOBE="&#xe976;",e.PIGGY_BANK="&#xe977;",e.EXTLINK_LIGHT="&#xe978;",e.CLONE="&#xe979;",e.CLONE_LINK_SIMPLE="&#xe97a;",e.CHART_BAR_NORMALIZED="&#xe97b;",e.CONSUMER="&#xe97c;",e.OCTAGON_XMARK="&#xe97d;",e.HOURGLASS_HALF="&#xe97e;",e.CLOCK="&#xe97f;",e.CLOCK_THREE="&#xe97f;",e.CALENDAR_DAY="&#xe980;",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",e.WAND_MAGIC_SPARKLES="&#xe982;",e.PAPER_PLANE="&#xe983;",e.CIRCLE_STOP="&#xe984;",e.ARROW_ROTATE_RIGHT="&#xe985;",e.ARROWS_ROTATE="&#xe986;",e.ALIGN_RIGHT="&#xe987;",e.FORMAT_CLEAR="&#xe988;",e.ALIGN_CENTER="&#xe989;",e.ALIGN_LEFT="&#xe98a;",e.PALETTE="&#xe98b;",e.BOLD="&#xe98c;",e.ITALIC="&#xe98d;",e.UNDERLINE="&#xe98e;",e.STRIKETHROUGH="&#xe98f;",e.LINK_SIMPLE_SLASH="&#xe990;",e.LINK_SIMPLE="&#xe991;",e.ROUTE="&#xe992;",e.CIRCLE_USER_SLASH="&#xe993;",e.CIRCLE_USER_CHECK="&#xe994;",e.LIST_MAGNIFYING_GLASS="&#xe995;",e.MEDAL="&#xe996;",e.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",e.ARROW_TURN_DOWN_RIGHT="&#xe998;",e.FLASK="&#xe999;",e.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",e.HOURGLASS_END="&#xe99b;",e.CIRCLE_QUESTION="&#xe99c;",e.GRIP_LINES_SOLID="&#xe99d;",e.TRANSLATE_SPARKLE_SOLID="&#xe99e;",e.CODE="&#xe99f;",e.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",e.PAPER_PLANE_SLASH="&#xe9a1;",e.COMPRESS="&#xe9a2;",e.EXPAND="&#xe9a3;",e.ARROW_ROTATE_LEFT="&#xe9a4;",e.EYE="&#xf06e;",e.SHARE="&#xe80f1;",e.MOBILE_SMALL="&#xe9a5;",e.SPARKLES="&#xe9a6;",e.HAND_SOLID="&#xe9a7;"})(mr||(mr={}));var E;(function(e){e.UNKNOWN="&#xe90a;",e.ABW="&#xe900;",e.AUDIO="&#xe901;",e.AVI="&#xe902;",e.CHM="&#xe904;",e.CODE="&#xe905;",e.CSV="&#xe903;",e.DITA="&#xe906;",e.EPUB="&#xe907;",e.EXCEL="&#xe908;",e.FLAC="&#xe909;",e.GIF="&#xe90b;",e.GZIP="&#xe90c;",e.HTML="&#xe90d;",e.IMAGE="&#xe90e;",e.JPEG="&#xe90f;",e.JSON="&#xe910;",e.M4A="&#xe911;",e.MOV="&#xe912;",e.MP3="&#xe913;",e.MP4="&#xe914;",e.OGG="&#xe915;",e.PDF="&#xe916;",e.PNG="&#xe917;",e.POWERPOINT="&#xe918;",e.RAR="&#xe91a;",e.STP="&#xe91b;",e.TEXT="&#xe91c;",e.VIDEO="&#xe91e;",e.WAV="&#xe91f;",e.WMA="&#xe920;",e.WORD="&#xe921;",e.XML="&#xe922;",e.YAML="&#xe919;",e.ZIP="&#xe923;"})(E||(E={}));var Cb=new Map([...["abw"].map(e=>[e,E.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(e=>[e,E.AUDIO]),...["avi"].map(e=>[e,E.AVI]),...["chm","xhs"].map(e=>[e,E.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(e=>[e,E.CODE]),...["csv"].map(e=>[e,E.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,E.DITA]),...["epub"].map(e=>[e,E.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,E.EXCEL]),...["flac"].map(e=>[e,E.FLAC]),...["gif"].map(e=>[e,E.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,E.GZIP]),...["html","htm","xhtml"].map(e=>[e,E.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(e=>[e,E.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,E.JPEG]),...["json"].map(e=>[e,E.JSON]),...["m4a","m4p"].map(e=>[e,E.M4A]),...["mov","qt"].map(e=>[e,E.MOV]),...["mp3"].map(e=>[e,E.MP3]),...["mp4","m4v"].map(e=>[e,E.MP4]),...["ogg","oga"].map(e=>[e,E.OGG]),...["pdf","ps"].map(e=>[e,E.PDF]),...["png"].map(e=>[e,E.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,E.POWERPOINT]),...["rar"].map(e=>[e,E.RAR]),...["stp"].map(e=>[e,E.STP]),...["txt","rtf","md","mdown"].map(e=>[e,E.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(e=>[e,E.VIDEO]),...["wav"].map(e=>[e,E.WAV]),...["wma"].map(e=>[e,E.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,E.WORD]),...["xml","xsl","rdf"].map(e=>[e,E.XML]),...["yaml","yml","x-yaml"].map(e=>[e,E.YAML]),...["zip"].map(e=>[e,E.ZIP])]);var wb={[E.ABW]:"#91ABC6",[E.AUDIO]:"#1795E3",[E.AVI]:"#E63324",[E.CHM]:"#71C3EB",[E.CODE]:"#71C3EB",[E.CSV]:"#1F7345",[E.DITA]:"#71C3EB",[E.EPUB]:"#85B926",[E.EXCEL]:"#1F7345",[E.FLAC]:"#1795E3",[E.GIF]:"#59B031",[E.GZIP]:"#F8AB36",[E.HTML]:"#71C3EB",[E.IMAGE]:"#59B031",[E.JPEG]:"#59B031",[E.JSON]:"#71C3EB",[E.M4A]:"#1795E3",[E.MOV]:"#E63324",[E.MP3]:"#1795E3",[E.MP4]:"#E63324",[E.OGG]:"#1795E3",[E.PDF]:"#E44948",[E.PNG]:"#59B031",[E.POWERPOINT]:"#B54A2B",[E.RAR]:"#F8AB36",[E.STP]:"#3764B1",[E.TEXT]:"#3162AB",[E.UNKNOWN]:"#999999",[E.VIDEO]:"#E63324",[E.WAV]:"#1795E3",[E.WMA]:"#1795E3",[E.WORD]:"#3162AB",[E.XML]:"#71C3EB",[E.YAML]:"#71C3EB",[E.ZIP]:"#F8AB36"};var $t;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})($t||($t={}));var fo=function(e,t,o,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,o,i);else for(var c=e.length-1;c>=0;c--)(s=e[c])&&(a=(n<3?s(a):n>3?s(t,o,a):s(t,o))||a);return n>3&&a&&Object.defineProperty(t,o,a),a},ht=class extends ql.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=uo.nothing}render(){let t=this.variant&&Object.values($t).includes(this.variant)?this.variant:$t.fluid_topics,o=t!==$t.material||!!this.value;return uo.html`
597
+ `}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some(o=>t.has(o))&&this.visible&&this.positionTooltip()}async show(t){this.visible=!0,t!=null&&await this.hideDebounce.run(()=>{this.hide()},t)}async showTemporaryText(t,o){let i=this.manual;this.manual=!0;let n=this.text;this.text=t,await this.show(o),this.text=n,this.manual=i}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return((t=this.slotNodes)!==null&&t!==void 0?t:[]).filter(o=>o.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",Gl(this.slottedElement,this.tooltip,this.position).then(({x:t,y:o})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${o}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout(()=>window.addEventListener("touchstart",t=>{t.composedPath().includes(this.container)||this.onOut()},{once:!0}),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,o){return Math.max(t,Math.min(0,-o))}};it.elementDefinitions={"ft-typography":ft};it.styles=vl;qt([(0,Ot.property)()],it.prototype,"text",void 0);qt([(0,Ot.property)({type:Boolean})],it.prototype,"manual",void 0);qt([(0,Ot.property)({type:Boolean})],it.prototype,"inline",void 0);qt([(0,Ot.property)({type:Number})],it.prototype,"delay",void 0);qt([(0,Ot.property)()],it.prototype,"position",void 0);qt([(0,Ot.queryAssignedNodes)()],it.prototype,"slotNodes",void 0);qt([(0,Ot.query)(".ft-tooltip--container")],it.prototype,"container",void 0);qt([(0,Ot.query)(".ft-tooltip")],it.prototype,"tooltip",void 0);qt([(0,Ot.query)(".ft-tooltip--content")],it.prototype,"tooltipContent",void 0);qt([(0,Ot.state)()],it.prototype,"visible",void 0);qt([(0,Ot.eventOptions)({passive:!0})],it.prototype,"onTouch",null);qt([(0,Ot.eventOptions)({passive:!0})],it.prototype,"onHover",null);qt([(0,Ot.eventOptions)({passive:!0})],it.prototype,"onOut",null);qt([(0,Ot.eventOptions)({passive:!0})],it.prototype,"onClick",null);(0,Kl.customElement)("ft-tooltip")(it);var Ql=m(R());var uo=m(M()),Xe=m(q()),Yl=m(R()),Xl=m(ql());var mr;(function(e){e.ADD_TO_PBK="&#xe800;",e.ALERT="&#xe801;",e.ADD_ALERT="&#xe802;",e.BACK_TO_SEARCH="&#xe803;",e.ADD_BOOKMARK="&#xe804;",e.BOOKMARK="&#xe805;",e.BOOKS="&#xe806;",e.MENU="&#xe807;",e.DOWNLOAD="&#xe808;",e.EDIT="&#xe809;",e.FEEDBACK="&#xe80a;",e.HOME="&#xe80b;",e.MODIFY_PBK="&#xe80c;",e.SCHEDULED="&#xe80d;",e.SEARCH="&#xe80e;",e.EXPORT="&#xe80f;",e.TOC="&#xe810;",e.WRITE_UGC="&#xe811;",e.TRASH="&#xe812;",e.USER="&#xe813;",e.EXTLINK="&#xe814;",e.CALENDAR="&#xe815;",e.OFFLINE="&#xe816;",e.BOOK="&#xe817;",e.DOWNLOAD_PLAIN="&#xe818;",e.CHECK="&#xe819;",e.STAR_PLAIN="&#xe900;",e.TOPICS="&#xe901;",e.DISC="&#xe902;",e.CIRCLE="&#xe903;",e.SHARED="&#xe904;",e.SORT_UNSORTED="&#xe905;",e.SORT_UP="&#xe906;",e.SORT_DOWN="&#xe907;",e.WORKING="&#xe908;",e.CLOSE="&#xe909;",e.ZOOM_OUT="&#xe90a;",e.ZOOM_IN="&#xe90b;",e.ZOOM_REALSIZE="&#xe90c;",e.ZOOM_FULLSCREEN="&#xe90d;",e.ADMIN_RESTRICTED="&#xe90e;",e.ADMIN="&#xe90f;",e.ADMIN_KHUB="&#xe910;",e.ADMIN_THEME="&#xe911;",e.ADMIN_USERS="&#xe912;",e.WARNING="&#xe913;",e.CONTEXT="&#xe914;",e.SEARCH_HOME="&#xe915;",e.STEPS="&#xe916;",e.ICON_EXPAND="&#xe917;",e.ICON_COLLAPSE="&#xe918;",e.INFO="&#xe919;",e.MINUS_PLAIN="&#xe91a;",e.PLUS_PLAIN="&#xe91b;",e.FACET_HAS_DESCENDANT="&#xe91c;",e.TRIANGLE_BOTTOM="&#xe91d;",e.TRIANGLE_LEFT="&#xe91e;",e.TRIANGLE_RIGHT="&#xe91f;",e.TRIANGLE_TOP="&#xe920;",e.THIN_ARROW="&#xe921;",e.SIGN_IN="&#xe922;",e.LOGOUT="&#xe923;",e.TRANSLATE="&#xe924;",e.CLOSE_PLAIN="&#xe925;",e.CHECK_PLAIN="&#xe926;",e.ARTICLE="&#xe927;",e.COLUMNS="&#xe928;",e.ANALYTICS="&#xe929;",e.COLLECTIONS="&#xe92a;",e.ARROW_DOWN="&#xe92b;",e.ARROW_LEFT="&#xe92c;",e.ARROW_RIGHT="&#xe92d;",e.ARROW_UP="&#xe92e;",e.SEARCH_IN_PUBLICATION="&#xe92f;",e.COPY_TO_CLIPBOARD="&#xe930;",e.SHARED_PBK="&#xe931;",e.ATTACHMENTS="&#xe932;",e.STRIPE_ARROW_LEFT="&#xe933;",e.STRIPE_ARROW_RIGHT="&#xe934;",e.FILTERS="&#xe935;",e.DOT="&#xe936;",e.MINUS="&#xe937;",e.PLUS="&#xe938;",e.MAILS_AND_NOTIFICATIONS="&#xe939;",e.SAVE="&#xe93a;",e.LOCKER="&#xe93b;",e.ADMIN_INTEGRATION="&#xe93c;",e.SYNC="&#xe93d;",e.TAG="&#xe93e;",e.BOOK_PLAIN="&#xe93f;",e.UPLOAD="&#xe940;",e.ONLINE="&#xe941;",e.TAG_PLAIN="&#xe942;",e.ACCOUNT_SETTINGS="&#xe943;",e.PRINT="&#xe944;",e.DEFAULT_ROLES="&#xe945;",e.SHORTCUT_MENU="&#xe946;",e.RELATIVES_PLAIN="&#xe947;",e.RELATIVES="&#xe948;",e.PAUSE="&#xe949;",e.PLAY="&#xe94a;",e.ADMIN_PORTAL="&#xe94b;",e.STAR="&#xe94c;",e.THUMBS_DOWN="&#xe94d;",e.THUMBS_DOWN_PLAIN="&#xe94e;",e.THUMBS_UP="&#xe94f;",e.THUMBS_UP_PLAIN="&#xe950;",e.FEEDBACK_PLAIN="&#xe951;",e.RATE_PLAIN="&#xe952;",e.RATE="&#xe953;",e.OFFLINE_SETTINGS="&#xe954;",e.MY_COLLECTIONS="&#xe955;",e.THIN_ARROW_LEFT="&#xe956;",e.THIN_ARROW_RIGHT="&#xe957;",e.RESET="&#xe958;",e.MY_LIBRARY="&#xe959;",e.UNSTRUCTURED_DOC="&#xe95a;",e.CONTEXTUAL="&#xe95b;",e.THIN_ARROW_UP="&#xe95c;",e.ARROW_RIGHT_TO_LINE="&#xe95d;",e.DESKTOP="&#xe95e;",e.TABLET_LANDSCAPE="&#xe95f;",e.TABLET_PORTRAIT="&#xe960;",e.MOBILE_LANDSCAPE="&#xe961;",e.MOBILE_PORTRAIT="&#xe962;",e.DIAGRAM_SUNBURST="&#xe963;",e.DIAGRAM_SANKEY="&#xe964;",e.COMMENT_QUESTION="&#xe965;",e.COMMENT_QUESTION_PLAIN="&#xe966;",e.MESSAGE_BOT="&#xe967;",e.CHART_SIMPLE="&#xe968;",e.BARS_PROGRESS="&#xe969;",e.BOOK_OPEN_GEAR="&#xe96a;",e.BOOK_OPEN_GEAR_SLASH="&#xe96b;",e.LINE_CHART="&#xe96c;",e.STACKED_CHART="&#xe96d;",e.CHART_BAR_STACKED="&#xe96e;",e.CHART_BAR_GROUPED="&#xe96f;",e.EYE_SLASH="&#xe970;",e.X_MARK="&#xe971;",e.EXPAND_WIDE="&#xe972;",e.PIP="&#xe973;",e.PIP_WIDE="&#xe974;",e.LIFE_RING="&#xe975;",e.GLOBE="&#xe976;",e.PIGGY_BANK="&#xe977;",e.EXTLINK_LIGHT="&#xe978;",e.CLONE="&#xe979;",e.CLONE_LINK_SIMPLE="&#xe97a;",e.CHART_BAR_NORMALIZED="&#xe97b;",e.CONSUMER="&#xe97c;",e.OCTAGON_XMARK="&#xe97d;",e.HOURGLASS_HALF="&#xe97e;",e.CLOCK="&#xe97f;",e.CLOCK_THREE="&#xe97f;",e.CALENDAR_DAY="&#xe980;",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",e.WAND_MAGIC_SPARKLES="&#xe982;",e.PAPER_PLANE="&#xe983;",e.CIRCLE_STOP="&#xe984;",e.ARROW_ROTATE_RIGHT="&#xe985;",e.ARROWS_ROTATE="&#xe986;",e.ALIGN_RIGHT="&#xe987;",e.FORMAT_CLEAR="&#xe988;",e.ALIGN_CENTER="&#xe989;",e.ALIGN_LEFT="&#xe98a;",e.PALETTE="&#xe98b;",e.BOLD="&#xe98c;",e.ITALIC="&#xe98d;",e.UNDERLINE="&#xe98e;",e.STRIKETHROUGH="&#xe98f;",e.LINK_SIMPLE_SLASH="&#xe990;",e.LINK_SIMPLE="&#xe991;",e.ROUTE="&#xe992;",e.CIRCLE_USER_SLASH="&#xe993;",e.CIRCLE_USER_CHECK="&#xe994;",e.LIST_MAGNIFYING_GLASS="&#xe995;",e.MEDAL="&#xe996;",e.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",e.ARROW_TURN_DOWN_RIGHT="&#xe998;",e.FLASK="&#xe999;",e.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",e.HOURGLASS_END="&#xe99b;",e.CIRCLE_QUESTION="&#xe99c;",e.GRIP_LINES_SOLID="&#xe99d;",e.TRANSLATE_SPARKLE_SOLID="&#xe99e;",e.CODE="&#xe99f;",e.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",e.PAPER_PLANE_SLASH="&#xe9a1;",e.COMPRESS="&#xe9a2;",e.EXPAND="&#xe9a3;",e.ARROW_ROTATE_LEFT="&#xe9a4;",e.EYE="&#xf06e;",e.SHARE="&#xe80f1;",e.MOBILE_SMALL="&#xe9a5;",e.SPARKLES="&#xe9a6;",e.HAND_SOLID="&#xe9a7;"})(mr||(mr={}));var E;(function(e){e.UNKNOWN="&#xe90a;",e.ABW="&#xe900;",e.AUDIO="&#xe901;",e.AVI="&#xe902;",e.CHM="&#xe904;",e.CODE="&#xe905;",e.CSV="&#xe903;",e.DITA="&#xe906;",e.EPUB="&#xe907;",e.EXCEL="&#xe908;",e.FLAC="&#xe909;",e.GIF="&#xe90b;",e.GZIP="&#xe90c;",e.HTML="&#xe90d;",e.IMAGE="&#xe90e;",e.JPEG="&#xe90f;",e.JSON="&#xe910;",e.M4A="&#xe911;",e.MOV="&#xe912;",e.MP3="&#xe913;",e.MP4="&#xe914;",e.OGG="&#xe915;",e.PDF="&#xe916;",e.PNG="&#xe917;",e.POWERPOINT="&#xe918;",e.RAR="&#xe91a;",e.STP="&#xe91b;",e.TEXT="&#xe91c;",e.VIDEO="&#xe91e;",e.WAV="&#xe91f;",e.WMA="&#xe920;",e.WORD="&#xe921;",e.XML="&#xe922;",e.YAML="&#xe919;",e.ZIP="&#xe923;"})(E||(E={}));var Eb=new Map([...["abw"].map(e=>[e,E.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(e=>[e,E.AUDIO]),...["avi"].map(e=>[e,E.AVI]),...["chm","xhs"].map(e=>[e,E.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(e=>[e,E.CODE]),...["csv"].map(e=>[e,E.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,E.DITA]),...["epub"].map(e=>[e,E.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,E.EXCEL]),...["flac"].map(e=>[e,E.FLAC]),...["gif"].map(e=>[e,E.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,E.GZIP]),...["html","htm","xhtml"].map(e=>[e,E.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(e=>[e,E.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,E.JPEG]),...["json"].map(e=>[e,E.JSON]),...["m4a","m4p"].map(e=>[e,E.M4A]),...["mov","qt"].map(e=>[e,E.MOV]),...["mp3"].map(e=>[e,E.MP3]),...["mp4","m4v"].map(e=>[e,E.MP4]),...["ogg","oga"].map(e=>[e,E.OGG]),...["pdf","ps"].map(e=>[e,E.PDF]),...["png"].map(e=>[e,E.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,E.POWERPOINT]),...["rar"].map(e=>[e,E.RAR]),...["stp"].map(e=>[e,E.STP]),...["txt","rtf","md","mdown"].map(e=>[e,E.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(e=>[e,E.VIDEO]),...["wav"].map(e=>[e,E.WAV]),...["wma"].map(e=>[e,E.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,E.WORD]),...["xml","xsl","rdf"].map(e=>[e,E.XML]),...["yaml","yml","x-yaml"].map(e=>[e,E.YAML]),...["zip"].map(e=>[e,E.ZIP])]);var Ab={[E.ABW]:"#91ABC6",[E.AUDIO]:"#1795E3",[E.AVI]:"#E63324",[E.CHM]:"#71C3EB",[E.CODE]:"#71C3EB",[E.CSV]:"#1F7345",[E.DITA]:"#71C3EB",[E.EPUB]:"#85B926",[E.EXCEL]:"#1F7345",[E.FLAC]:"#1795E3",[E.GIF]:"#59B031",[E.GZIP]:"#F8AB36",[E.HTML]:"#71C3EB",[E.IMAGE]:"#59B031",[E.JPEG]:"#59B031",[E.JSON]:"#71C3EB",[E.M4A]:"#1795E3",[E.MOV]:"#E63324",[E.MP3]:"#1795E3",[E.MP4]:"#E63324",[E.OGG]:"#1795E3",[E.PDF]:"#E44948",[E.PNG]:"#59B031",[E.POWERPOINT]:"#B54A2B",[E.RAR]:"#F8AB36",[E.STP]:"#3764B1",[E.TEXT]:"#3162AB",[E.UNKNOWN]:"#999999",[E.VIDEO]:"#E63324",[E.WAV]:"#1795E3",[E.WMA]:"#1795E3",[E.WORD]:"#3162AB",[E.XML]:"#71C3EB",[E.YAML]:"#71C3EB",[E.ZIP]:"#F8AB36"};var $t;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})($t||($t={}));var fo=function(e,t,o,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,o,i);else for(var c=e.length-1;c>=0;c--)(s=e[c])&&(a=(n<3?s(a):n>3?s(t,o,a):s(t,o))||a);return n>3&&a&&Object.defineProperty(t,o,a),a},ht=class extends Yl.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=uo.nothing}render(){let t=this.variant&&Object.values($t).includes(this.variant)?this.variant:$t.fluid_topics,o=t!==$t.material||!!this.value;return uo.html`
598
598
  <i class="ft-icon ft-icon--${t} ft-no-text-select" part="icon icon-${t}">
599
- ${(0,Yl.unsafeHTML)(this.resolvedIcon)}
599
+ ${(0,Xl.unsafeHTML)(this.resolvedIcon)}
600
600
  <slot ?hidden=${o}></slot>
601
601
  </i>
602
- `}get textContent(){var t,o;return(o=(t=this.slottedContent)===null||t===void 0?void 0:t.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&o!==void 0?o:""}update(t){super.update(t),["value","variant"].some(o=>t.has(o))&&this.resolveIcon()}resolveIcon(){var t,o;let i=this.value||this.textContent;switch(this.variant){case $t.file_format:this.resolvedIcon=(t=E[i.replace("-","_").toUpperCase()])!==null&&t!==void 0?t:i;break;case $t.material:this.resolvedIcon=this.value||uo.nothing;break;default:this.resolvedIcon=(o=mr[i.replace("-","_").toUpperCase()])!==null&&o!==void 0?o:i;break}}firstUpdated(t){super.firstUpdated(t),setTimeout(()=>this.resolveIcon())}};ht.elementDefinitions={};ht.styles=ms;fo([(0,Ye.property)()],ht.prototype,"variant",void 0);fo([(0,Ye.property)()],ht.prototype,"value",void 0);fo([(0,Ye.property)({reflect:!0,attribute:"aria-hidden"})],ht.prototype,"ariaHidden",void 0);fo([(0,Ye.state)()],ht.prototype,"resolvedIcon",void 0);fo([(0,Ye.query)("slot")],ht.prototype,"slottedContent",void 0);(0,Xl.customElement)("ft-icon")(ht);var Ql=m(M()),Ht=m(R());var Ct={borderRadiusLeft:Ht.FtCssVariableFactory.extend("--ft-switch-option-border-radius-left","",Ht.designSystemVariables.borderRadiusL),borderRadiusRight:Ht.FtCssVariableFactory.extend("--ft-switch-option-border-radius-right","",Ht.designSystemVariables.borderRadiusL),borderWidthLeft:Ht.FtCssVariableFactory.create("--ft-switch-option-border-width-left","","SIZE","1px"),borderWidthRight:Ht.FtCssVariableFactory.create("--ft-switch-option-border-width-right","","SIZE","1px"),borderWidthVertical:Ht.FtCssVariableFactory.create("--ft-switch-option-border-width-vertical","","SIZE","1px")},Jl=Ql.css`
602
+ `}get textContent(){var t,o;return(o=(t=this.slottedContent)===null||t===void 0?void 0:t.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&o!==void 0?o:""}update(t){super.update(t),["value","variant"].some(o=>t.has(o))&&this.resolveIcon()}resolveIcon(){var t,o;let i=this.value||this.textContent;switch(this.variant){case $t.file_format:this.resolvedIcon=(t=E[i.replace("-","_").toUpperCase()])!==null&&t!==void 0?t:i;break;case $t.material:this.resolvedIcon=this.value||uo.nothing;break;default:this.resolvedIcon=(o=mr[i.replace("-","_").toUpperCase()])!==null&&o!==void 0?o:i;break}}firstUpdated(t){super.firstUpdated(t),setTimeout(()=>this.resolveIcon())}};ht.elementDefinitions={};ht.styles=ms;fo([(0,Xe.property)()],ht.prototype,"variant",void 0);fo([(0,Xe.property)()],ht.prototype,"value",void 0);fo([(0,Xe.property)({reflect:!0,attribute:"aria-hidden"})],ht.prototype,"ariaHidden",void 0);fo([(0,Xe.state)()],ht.prototype,"resolvedIcon",void 0);fo([(0,Xe.query)("slot")],ht.prototype,"slottedContent",void 0);(0,Ql.customElement)("ft-icon")(ht);var Jl=m(M()),Ht=m(R());var Ct={borderRadiusLeft:Ht.FtCssVariableFactory.extend("--ft-switch-option-border-radius-left","",Ht.designSystemVariables.borderRadiusL),borderRadiusRight:Ht.FtCssVariableFactory.extend("--ft-switch-option-border-radius-right","",Ht.designSystemVariables.borderRadiusL),borderWidthLeft:Ht.FtCssVariableFactory.create("--ft-switch-option-border-width-left","","SIZE","1px"),borderWidthRight:Ht.FtCssVariableFactory.create("--ft-switch-option-border-width-right","","SIZE","1px"),borderWidthVertical:Ht.FtCssVariableFactory.create("--ft-switch-option-border-width-vertical","","SIZE","1px")},tc=Jl.css`
603
603
  .ft-switch-option {
604
604
  position: relative;
605
605
  display: inline-block;
@@ -688,7 +688,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
688
688
  color: ${ct.selectedTextColor};
689
689
  }
690
690
  `;var he=function(e,t,o,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,o,i);else for(var c=e.length-1;c>=0;c--)(s=e[c])&&(a=(n<3?s(a):n>3?s(t,o,a):s(t,o))||a);return n>3&&a&&Object.defineProperty(t,o,a),a},An=class extends CustomEvent{constructor(t){super("option-change-by-user",{detail:t,bubbles:!0,composed:!0})}},Rn=class extends CustomEvent{constructor(t){super("option-change",{detail:t,bubbles:!0,composed:!0})}},yt=class extends Wr.FtLitElement{constructor(){super(...arguments),this.value="",this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1,this.unselectable=!1,this.isFocused=!1}focus(){this.input.focus()}update(t){super.update(t),t.has("selected")&&this.dispatchEvent(new Rn(this.selected))}render(){let t={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon,"ft-switch-option--selected":this.selected,"ft-switch-option--focused":this.isFocused};return this.addTooltip(Fr.html`
691
- <label part="label" for="input" class=${(0,tc.classMap)(t)}
691
+ <label part="label" for="input" class=${(0,ec.classMap)(t)}
692
692
  @click=${this.onChange}>
693
693
  <div class="ft-switch-option--content">
694
694
  <ft-ripple part="ripple" class="ft-switch-option--ripple"></ft-ripple>
@@ -711,8 +711,8 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
711
711
  </ft-tooltip>
712
712
  `}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",this.onFocusout)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusout",this.onFocusout)}onFocusout(t){this.isFocused=!1}onChange(){this.selected=this.unselectable?!this.selected:!0,this.dispatchEvent(new An(this.selected))}getLabel(){return this.label||this.textContent}resolveIcon(){return this.icon?Fr.html`
713
713
  <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
714
- `:Fr.nothing}get textContent(){var t,o;return(o=(t=this.slottedContent)===null||t===void 0?void 0:t.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&o!==void 0?o:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}};yt.elementDefinitions={"ft-ripple":K,"ft-typography":ft,"ft-tooltip":ot,"ft-icon":ht};yt.styles=[Wr.safariEllipsisFix,Jl];he([(0,Yt.property)()],yt.prototype,"value",void 0);he([(0,Yt.property)()],yt.prototype,"icon",void 0);he([(0,Yt.property)()],yt.prototype,"iconVariant",void 0);he([(0,Yt.property)()],yt.prototype,"label",void 0);he([(0,Yt.property)()],yt.prototype,"tooltipPosition",void 0);he([(0,Yt.property)({type:Boolean,reflect:!0})],yt.prototype,"selected",void 0);he([(0,Yt.property)({type:Boolean})],yt.prototype,"trailingIcon",void 0);he([(0,Yt.property)({type:Boolean})],yt.prototype,"unselectable",void 0);he([(0,Yt.query)(".ft-switch-option--content slot")],yt.prototype,"slottedContent",void 0);he([(0,Yt.query)(".ft-switch-option--input")],yt.prototype,"input",void 0);he([(0,Yt.state)()],yt.prototype,"isFocused",void 0);var br=function(e,t,o,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,o,i);else for(var c=e.length-1;c>=0;c--)(s=e[c])&&(a=(n<3?s(a):n>3?s(t,o,a):s(t,o))||a);return n>3&&a&&Object.defineProperty(t,o,a),a},Tn=class extends CustomEvent{constructor(t){super("change",{detail:t})}},Vt=class extends $e.FtLitElement{constructor(){super(...arguments),this.dense=!1,this.unselectable=!1,this.displayFocusWhenUsingKeyboard=!1,this.options=[]}get value(){var t;return(t=this.selectedOption)===null||t===void 0?void 0:t.value}update(t){super.update(t),t.has("selectedOption")&&this.updateOptions(),t.has("unselectable")&&this.options.forEach(o=>o.unselectable=this.unselectable)}render(){let t={"ft-switch":!0,"ft-switch--dense":this.dense};return Ko.html`
715
- <div @keydown=${this.onKeyDown} tabindex="-1" class="${(0,ec.classMap)(t)}" role="radiogroup" aria-label=${this.label}>
714
+ `:Fr.nothing}get textContent(){var t,o;return(o=(t=this.slottedContent)===null||t===void 0?void 0:t.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&o!==void 0?o:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}};yt.elementDefinitions={"ft-ripple":K,"ft-typography":ft,"ft-tooltip":it,"ft-icon":ht};yt.styles=[Wr.safariEllipsisFix,tc];he([(0,Yt.property)()],yt.prototype,"value",void 0);he([(0,Yt.property)()],yt.prototype,"icon",void 0);he([(0,Yt.property)()],yt.prototype,"iconVariant",void 0);he([(0,Yt.property)()],yt.prototype,"label",void 0);he([(0,Yt.property)()],yt.prototype,"tooltipPosition",void 0);he([(0,Yt.property)({type:Boolean,reflect:!0})],yt.prototype,"selected",void 0);he([(0,Yt.property)({type:Boolean})],yt.prototype,"trailingIcon",void 0);he([(0,Yt.property)({type:Boolean})],yt.prototype,"unselectable",void 0);he([(0,Yt.query)(".ft-switch-option--content slot")],yt.prototype,"slottedContent",void 0);he([(0,Yt.query)(".ft-switch-option--input")],yt.prototype,"input",void 0);he([(0,Yt.state)()],yt.prototype,"isFocused",void 0);var br=function(e,t,o,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,o,i);else for(var c=e.length-1;c>=0;c--)(s=e[c])&&(a=(n<3?s(a):n>3?s(t,o,a):s(t,o))||a);return n>3&&a&&Object.defineProperty(t,o,a),a},Tn=class extends CustomEvent{constructor(t){super("change",{detail:t})}},Vt=class extends Be.FtLitElement{constructor(){super(...arguments),this.dense=!1,this.unselectable=!1,this.displayFocusWhenUsingKeyboard=!1,this.options=[]}get value(){var t;return(t=this.selectedOption)===null||t===void 0?void 0:t.value}update(t){super.update(t),t.has("selectedOption")&&this.updateOptions(),t.has("unselectable")&&this.options.forEach(o=>o.unselectable=this.unselectable)}render(){let t={"ft-switch":!0,"ft-switch--dense":this.dense};return Ko.html`
715
+ <div @keydown=${this.onKeyDown} tabindex="-1" class="${(0,rc.classMap)(t)}" role="radiogroup" aria-label=${this.label}>
716
716
  <slot @slotchange=${this.onSlotchange}
717
717
  @option-change=${this.onOptionChangeByScript}
718
718
  @option-change-by-user=${this.onOptionChangeByUser}
@@ -734,25 +734,25 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
734
734
  }
735
735
 
736
736
  .ft-switch slot::slotted(ft-switch-option) {
737
- ${(0,$e.setVariable)(Ct.borderRadiusLeft,"0")};
738
- ${(0,$e.setVariable)(Ct.borderRadiusRight,"0")};
739
- ${(0,$e.setVariable)(Ct.borderWidthLeft,"0")};
737
+ ${(0,Be.setVariable)(Ct.borderRadiusLeft,"0")};
738
+ ${(0,Be.setVariable)(Ct.borderRadiusRight,"0")};
739
+ ${(0,Be.setVariable)(Ct.borderWidthLeft,"0")};
740
740
  }
741
741
 
742
742
  .ft-switch slot::slotted(ft-switch-option:first-child) {
743
- ${(0,$e.setVariable)(Ct.borderRadiusLeft,ct.borderRadius)};
744
- ${(0,$e.setVariable)(Ct.borderWidthLeft,"1px")};
743
+ ${(0,Be.setVariable)(Ct.borderRadiusLeft,ct.borderRadius)};
744
+ ${(0,Be.setVariable)(Ct.borderWidthLeft,"1px")};
745
745
  }
746
746
 
747
747
  .ft-switch slot::slotted(ft-switch-option:last-child) {
748
- ${(0,$e.setVariable)(Ct.borderRadiusRight,ct.borderRadius)};
748
+ ${(0,Be.setVariable)(Ct.borderRadiusRight,ct.borderRadius)};
749
749
  }
750
750
 
751
751
  .ft-switch--dense slot::slotted(ft-switch-option) {
752
752
  --ft-switch-internal-vertical-padding: 2px;
753
753
  --ft-switch-internal-horizontal-padding: 4px;
754
754
  }
755
- `;br([(0,Ee.property)({type:Boolean})],Vt.prototype,"dense",void 0);br([(0,Ee.property)({type:Boolean})],Vt.prototype,"unselectable",void 0);br([(0,Ee.property)()],Vt.prototype,"label",void 0);br([(0,Ee.query)(".ft-switch slot")],Vt.prototype,"slottedContent",void 0);br([(0,Ee.state)()],Vt.prototype,"selectedOption",void 0);br([(0,Ee.state)()],Vt.prototype,"displayFocusWhenUsingKeyboard",void 0);br([(0,Ee.query)(".ft-switch")],Vt.prototype,"ftSwitchDiv",void 0);(0,_n.customElement)("ft-switch")(Vt);(0,_n.customElement)("ft-switch-option")(yt);var hc=m(R());var Xo=m(M()),ae=m(q()),fc=m(Ne()),Qo=m(R());var nc=m(R());var qo=m(M()),ne=m(q()),Yo=m(R());var oc=m(M()),zr=m(R()),rc={colorOutline:zr.FtCssVariableFactory.external(zr.designSystemVariables.colorOutline,"Design system"),colorOnSurfaceMedium:zr.FtCssVariableFactory.external(zr.designSystemVariables.colorOnSurfaceMedium,"Design system")},ic=oc.css`
755
+ `;br([(0,Ee.property)({type:Boolean})],Vt.prototype,"dense",void 0);br([(0,Ee.property)({type:Boolean})],Vt.prototype,"unselectable",void 0);br([(0,Ee.property)()],Vt.prototype,"label",void 0);br([(0,Ee.query)(".ft-switch slot")],Vt.prototype,"slottedContent",void 0);br([(0,Ee.state)()],Vt.prototype,"selectedOption",void 0);br([(0,Ee.state)()],Vt.prototype,"displayFocusWhenUsingKeyboard",void 0);br([(0,Ee.query)(".ft-switch")],Vt.prototype,"ftSwitchDiv",void 0);(0,_n.customElement)("ft-switch")(Vt);(0,_n.customElement)("ft-switch-option")(yt);var yc=m(R());var Xo=m(M()),ae=m(q()),hc=m(Le()),Qo=m(R());var ac=m(R());var qo=m(M()),ne=m(q()),Yo=m(R());var ic=m(M()),zr=m(R()),oc={colorOutline:zr.FtCssVariableFactory.external(zr.designSystemVariables.colorOutline,"Design system"),colorOnSurfaceMedium:zr.FtCssVariableFactory.external(zr.designSystemVariables.colorOnSurfaceMedium,"Design system")},nc=ic.css`
756
756
  :host {
757
757
  display: block;
758
758
  }
@@ -763,15 +763,15 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
763
763
 
764
764
  ft-icon {
765
765
  transform: rotate(-45deg);
766
- color: ${rc.colorOutline};
766
+ color: ${oc.colorOutline};
767
767
  }
768
768
 
769
769
  .ft-resizer--dragging ft-icon,
770
770
  .ft-resizer:hover ft-icon,
771
771
  [role="button"][aria-pressed="true"] ft-icon{
772
- color: ${rc.colorOnSurfaceMedium};
772
+ color: ${oc.colorOnSurfaceMedium};
773
773
  }
774
- `;var Be=function(e,t,o,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,o,i);else for(var c=e.length-1;c>=0;c--)(s=e[c])&&(a=(n<3?s(a):n>3?s(t,o,a):s(t,o))||a);return n>3&&a&&Object.defineProperty(t,o,a),a},Zo=class extends CustomEvent{constructor(t,o){super("resize",{detail:{width:t,height:o}})}},Nt=class extends Yo.FtLitElement{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=$t.material,this.cursor="nwse-resize",this.dragging=!1,this.isAriaPressed=!1,this.fixedWidth=0,this.fixedHeight=0,this.startX=0,this.startY=0,this.doDragFromMouse=t=>this.doDrag(t.clientX,t.clientY),this.doDragFromTouch=t=>this.doDrag(t.touches[0].clientX,t.touches[0].clientY),this.stopDrag=()=>{this.dragging=!1,document.removeEventListener("mousemove",this.doDragFromMouse,!1),document.removeEventListener("mouseup",this.stopDrag,!1),document.removeEventListener("touchmove",this.doDragFromTouch,!1),document.removeEventListener("touchend",this.stopDrag,!1),document.removeEventListener("touchcancel",this.stopDrag,!1)}}render(){return qo.html`
774
+ `;var Me=function(e,t,o,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,o,i);else for(var c=e.length-1;c>=0;c--)(s=e[c])&&(a=(n<3?s(a):n>3?s(t,o,a):s(t,o))||a);return n>3&&a&&Object.defineProperty(t,o,a),a},Zo=class extends CustomEvent{constructor(t,o){super("resize",{detail:{width:t,height:o}})}},Nt=class extends Yo.FtLitElement{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=$t.material,this.cursor="nwse-resize",this.dragging=!1,this.isAriaPressed=!1,this.fixedWidth=0,this.fixedHeight=0,this.startX=0,this.startY=0,this.doDragFromMouse=t=>this.doDrag(t.clientX,t.clientY),this.doDragFromTouch=t=>this.doDrag(t.touches[0].clientX,t.touches[0].clientY),this.stopDrag=()=>{this.dragging=!1,document.removeEventListener("mousemove",this.doDragFromMouse,!1),document.removeEventListener("mouseup",this.stopDrag,!1),document.removeEventListener("touchmove",this.doDragFromTouch,!1),document.removeEventListener("touchend",this.stopDrag,!1),document.removeEventListener("touchcancel",this.stopDrag,!1)}}render(){return qo.html`
775
775
  <style>
776
776
  .ft-resizer {
777
777
  cursor: ${(0,qo.unsafeCSS)(this.cursor)}
@@ -785,25 +785,25 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
785
785
  @keydown="${this.initKeydownPress}">
786
786
  <ft-icon .variant="${this.iconVariant}" .value="${this.icon}" focusable="false" aria-hidden="true"></ft-icon>
787
787
  </div>
788
- `}initDragFromMouse(t){this.initDrag(t.clientX,t.clientY)}initDragFromTouch(t){t.preventDefault(),t.stopPropagation(),this.initDrag(t.touches[0].clientX,t.touches[0].clientY)}initKeydownPress(t){let o=t.key;if(["Enter","Space","Escape","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(o)&&(t.preventDefault(),t.stopPropagation()),this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,o==="Enter"||o==="Space"){let n=t.currentTarget;this.isAriaPressed=!this.isAriaPressed,n.setAttribute("aria-pressed",this.isAriaPressed.toString())}else o==="Escape"&&(this.isAriaPressed=!1);this.isAriaPressed&&(o==="ArrowLeft"?this.fixedWidth-=10:o==="ArrowRight"?this.fixedWidth+=10:o==="ArrowUp"?this.fixedHeight-=10:o==="ArrowDown"&&(this.fixedHeight+=10)),this.dispatchEvent(new Zo(this.fixedWidth,this.fixedHeight))}initDrag(t,o){this.dragging=!0,this.startX=t,this.startY=o,this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,this.installDocumentEventListeners()}installDocumentEventListeners(){document.addEventListener("mousemove",this.doDragFromMouse,!1),document.addEventListener("mouseup",this.stopDrag,!1),document.addEventListener("touchmove",this.doDragFromTouch,!1),document.addEventListener("touchend",this.stopDrag,!1),document.addEventListener("touchcancel",this.stopDrag,!1)}doDrag(t,o){let i=this.fixedWidth+t-this.startX,n=this.fixedHeight+o-this.startY;this.dispatchEvent(new Zo(i,n))}};Nt.elementDefinitions={"ft-icon":ht};Nt.styles=[Yo.noTextSelect,ic];Be([(0,ne.property)({type:Number})],Nt.prototype,"initialWidth",void 0);Be([(0,ne.property)({type:Number})],Nt.prototype,"initialHeight",void 0);Be([(0,ne.property)()],Nt.prototype,"icon",void 0);Be([(0,ne.property)()],Nt.prototype,"iconVariant",void 0);Be([(0,ne.property)()],Nt.prototype,"cursor",void 0);Be([(0,ne.state)()],Nt.prototype,"dragging",void 0);Be([(0,ne.state)()],Nt.prototype,"isAriaPressed",void 0);Be([(0,ne.eventOptions)({passive:!0})],Nt.prototype,"initDragFromMouse",null);Be([(0,ne.eventOptions)({passive:!0})],Nt.prototype,"initDragFromTouch",null);(0,nc.customElement)("ft-resizer")(Nt);var dc=m(R());var In=m(M()),Hr=m(q()),lc=m(Ne()),cc=m(R());var ac=m(M()),et=m(R());var k={fontSize:et.FtCssVariableFactory.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:et.FtCssVariableFactory.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:et.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:et.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:et.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:et.FtCssVariableFactory.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:et.FtCssVariableFactory.extend("--ft-input-label-border-color","",et.designSystemVariables.colorOutline),textColor:et.FtCssVariableFactory.extend("--ft-input-label-text-color","",et.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:et.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color","",et.designSystemVariables.colorOnSurfaceDisabled),backgroundColor:et.FtCssVariableFactory.extend("--ft-input-label-background-color","",et.designSystemVariables.colorSurface),borderRadius:et.FtCssVariableFactory.extend("--ft-input-label-border-radius","",et.designSystemVariables.borderRadiusS),colorError:et.FtCssVariableFactory.external(et.designSystemVariables.colorError,"Design system")},sc=ac.css`
788
+ `}initDragFromMouse(t){this.initDrag(t.clientX,t.clientY)}initDragFromTouch(t){t.preventDefault(),t.stopPropagation(),this.initDrag(t.touches[0].clientX,t.touches[0].clientY)}initKeydownPress(t){let o=t.key;if(["Enter","Space","Escape","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(o)&&(t.preventDefault(),t.stopPropagation()),this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,o==="Enter"||o==="Space"){let n=t.currentTarget;this.isAriaPressed=!this.isAriaPressed,n.setAttribute("aria-pressed",this.isAriaPressed.toString())}else o==="Escape"&&(this.isAriaPressed=!1);this.isAriaPressed&&(o==="ArrowLeft"?this.fixedWidth-=10:o==="ArrowRight"?this.fixedWidth+=10:o==="ArrowUp"?this.fixedHeight-=10:o==="ArrowDown"&&(this.fixedHeight+=10)),this.dispatchEvent(new Zo(this.fixedWidth,this.fixedHeight))}initDrag(t,o){this.dragging=!0,this.startX=t,this.startY=o,this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,this.installDocumentEventListeners()}installDocumentEventListeners(){document.addEventListener("mousemove",this.doDragFromMouse,!1),document.addEventListener("mouseup",this.stopDrag,!1),document.addEventListener("touchmove",this.doDragFromTouch,!1),document.addEventListener("touchend",this.stopDrag,!1),document.addEventListener("touchcancel",this.stopDrag,!1)}doDrag(t,o){let i=this.fixedWidth+t-this.startX,n=this.fixedHeight+o-this.startY;this.dispatchEvent(new Zo(i,n))}};Nt.elementDefinitions={"ft-icon":ht};Nt.styles=[Yo.noTextSelect,nc];Me([(0,ne.property)({type:Number})],Nt.prototype,"initialWidth",void 0);Me([(0,ne.property)({type:Number})],Nt.prototype,"initialHeight",void 0);Me([(0,ne.property)()],Nt.prototype,"icon",void 0);Me([(0,ne.property)()],Nt.prototype,"iconVariant",void 0);Me([(0,ne.property)()],Nt.prototype,"cursor",void 0);Me([(0,ne.state)()],Nt.prototype,"dragging",void 0);Me([(0,ne.state)()],Nt.prototype,"isAriaPressed",void 0);Me([(0,ne.eventOptions)({passive:!0})],Nt.prototype,"initDragFromMouse",null);Me([(0,ne.eventOptions)({passive:!0})],Nt.prototype,"initDragFromTouch",null);(0,ac.customElement)("ft-resizer")(Nt);var pc=m(R());var In=m(M()),Hr=m(q()),cc=m(Le()),dc=m(R());var sc=m(M()),rt=m(R());var P={fontSize:rt.FtCssVariableFactory.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:rt.FtCssVariableFactory.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:rt.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:rt.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:rt.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:rt.FtCssVariableFactory.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:rt.FtCssVariableFactory.extend("--ft-input-label-border-color","",rt.designSystemVariables.colorOutline),textColor:rt.FtCssVariableFactory.extend("--ft-input-label-text-color","",rt.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:rt.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color","",rt.designSystemVariables.colorOnSurfaceDisabled),backgroundColor:rt.FtCssVariableFactory.extend("--ft-input-label-background-color","",rt.designSystemVariables.colorSurface),borderRadius:rt.FtCssVariableFactory.extend("--ft-input-label-border-radius","",rt.designSystemVariables.borderRadiusS),colorError:rt.FtCssVariableFactory.external(rt.designSystemVariables.colorError,"Design system")},lc=sc.css`
789
789
  .ft-input-label {
790
790
  position: absolute;
791
791
  inset: 0;
792
792
  display: flex;
793
- background-color: ${k.backgroundColor};
794
- border-radius: ${k.borderRadius} ${k.borderRadius} 0 0;
793
+ background-color: ${P.backgroundColor};
794
+ border-radius: ${P.borderRadius} ${P.borderRadius} 0 0;
795
795
  }
796
796
 
797
797
  .ft-input-label--outlined {
798
- border-radius: ${k.borderRadius};
798
+ border-radius: ${P.borderRadius};
799
799
  }
800
800
 
801
801
  .ft-input-label {
802
- border-color: ${k.borderColor};
802
+ border-color: ${P.borderColor};
803
803
  }
804
804
 
805
805
  .ft-input-label.ft-input-label--in-error {
806
- border-color: ${k.colorError}
806
+ border-color: ${P.colorError}
807
807
  }
808
808
 
809
809
  .ft-input-label:before,
@@ -816,7 +816,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
816
816
  }
817
817
 
818
818
  .ft-input-label:before {
819
- width: calc(${k.horizontalSpacing} - 4px);
819
+ width: calc(${P.horizontalSpacing} - 4px);
820
820
  flex-shrink: 0;
821
821
  }
822
822
 
@@ -832,20 +832,20 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
832
832
  border-bottom-width: 1px;
833
833
  border-bottom-style: solid;
834
834
  border-color: inherit;
835
- color: ${k.textColor};
835
+ color: ${P.textColor};
836
836
  transition: font-size 250ms, line-height 250ms, color 250ms;
837
- max-width: calc(${k.labelMaxWidth} - 2 * (${k.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
837
+ max-width: calc(${P.labelMaxWidth} - 2 * (${P.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
838
838
  text-overflow: ellipsis;
839
- ${(0,et.setVariable)(pe.fontSize,k.fontSize)};
840
- ${(0,et.setVariable)(pe.lineHeight,k.fontSize)};
839
+ ${(0,rt.setVariable)(pe.fontSize,P.fontSize)};
840
+ ${(0,rt.setVariable)(pe.lineHeight,P.fontSize)};
841
841
  }
842
842
 
843
843
  .ft-input-label--in-error .ft-input-label--text {
844
- color: ${k.colorError}
844
+ color: ${P.colorError}
845
845
  }
846
846
 
847
847
  .ft-input-label--disabled .ft-input-label--text {
848
- color: ${k.disabledTextColor};
848
+ color: ${P.disabledTextColor};
849
849
  }
850
850
 
851
851
  .ft-input-label--hidden-text {
@@ -862,19 +862,19 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
862
862
  overflow: hidden;
863
863
  white-space: nowrap;
864
864
  text-overflow: ellipsis;
865
- padding: ${k.verticalSpacing} 4px;
866
- margin: calc(${k.verticalSpacing} * -1) 0;
865
+ padding: ${P.verticalSpacing} 4px;
866
+ margin: calc(${P.verticalSpacing} * -1) 0;
867
867
  max-width: 100%;
868
868
  box-sizing: border-box;
869
869
  }
870
870
 
871
871
  .ft-input-label--raised .ft-input-label--text {
872
- ${(0,et.setVariable)(pe.fontSize,k.raisedFontSize)};
873
- ${(0,et.setVariable)(pe.lineHeight,k.raisedFontSize)};
872
+ ${(0,rt.setVariable)(pe.fontSize,P.raisedFontSize)};
873
+ ${(0,rt.setVariable)(pe.lineHeight,P.raisedFontSize)};
874
874
  }
875
875
 
876
876
  .ft-input-label--raised .ft-input-label--floating-text {
877
- top: ${k.verticalSpacing};
877
+ top: ${P.verticalSpacing};
878
878
  }
879
879
 
880
880
  .ft-input-label--outlined .ft-input-label--text,
@@ -887,28 +887,28 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
887
887
  .ft-input-label--outlined:before {
888
888
  border-left-width: 1px;
889
889
  border-left-style: solid;
890
- border-radius: ${k.borderRadius} 0 0 ${k.borderRadius};
890
+ border-radius: ${P.borderRadius} 0 0 ${P.borderRadius};
891
891
  }
892
892
 
893
893
  .ft-input-label--outlined:after {
894
894
  border-right-width: 1px;
895
895
  border-right-style: solid;
896
- border-radius: 0 ${k.borderRadius} ${k.borderRadius} 0;
896
+ border-radius: 0 ${P.borderRadius} ${P.borderRadius} 0;
897
897
  }
898
898
 
899
899
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
900
900
  padding: 2px 4px;
901
- z-index: ${k.raisedZIndex};
902
- background-color: ${k.backgroundColor};
903
- border-radius: ${k.borderRadius};
901
+ z-index: ${P.raisedZIndex};
902
+ background-color: ${P.backgroundColor};
903
+ border-radius: ${P.borderRadius};
904
904
  top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
905
905
  }
906
906
 
907
907
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
908
908
  border-top: none;
909
909
  }
910
- `;var ho=function(e,t,o,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,o,i);else for(var c=e.length-1;c>=0;c--)(s=e[c])&&(a=(n<3?s(a):n>3?s(t,o,a):s(t,o))||a);return n>3&&a&&Object.defineProperty(t,o,a),a},Gt=class extends cc.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1,this.error=!1}render(){let t={"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error};return In.html`
911
- <div class="${(0,lc.classMap)(t)}">
910
+ `;var ho=function(e,t,o,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,o,i);else for(var c=e.length-1;c>=0;c--)(s=e[c])&&(a=(n<3?s(a):n>3?s(t,o,a):s(t,o))||a);return n>3&&a&&Object.defineProperty(t,o,a),a},Gt=class extends dc.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1,this.error=!1}render(){let t={"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error};return In.html`
911
+ <div class="${(0,cc.classMap)(t)}">
912
912
  ${this.text?In.html`
913
913
  <div class="ft-input-label--text ft-typography--caption">
914
914
  <span class="ft-input-label--floating-text">${this.text}</span>
@@ -916,7 +916,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
916
916
  </div>
917
917
  `:null}
918
918
  </div>
919
- `}};Gt.elementDefinitions={};Gt.styles=[Do,sc];ho([(0,Hr.property)({type:String})],Gt.prototype,"text",void 0);ho([(0,Hr.property)({type:Boolean})],Gt.prototype,"raised",void 0);ho([(0,Hr.property)({type:Boolean})],Gt.prototype,"outlined",void 0);ho([(0,Hr.property)({type:Boolean})],Gt.prototype,"disabled",void 0);ho([(0,Hr.property)({type:Boolean})],Gt.prototype,"error",void 0);(0,dc.customElement)("ft-input-label")(Gt);var pc=m(M()),Z=m(R());var X={fontSize:Z.FtCssVariableFactory.create("--ft-text-area-font-size","","SIZE","14px"),labelSize:Z.FtCssVariableFactory.create("--ft-text-area-label-size","","SIZE","11px"),verticalSpacing:Z.FtCssVariableFactory.create("--ft-text-area-vertical-spacing","","SIZE","4px"),horizontalSpacing:Z.FtCssVariableFactory.create("--ft-text-area-horizontal-spacing","","SIZE","16px"),helperColor:Z.FtCssVariableFactory.extend("--ft-text-area-helper-color","",Z.designSystemVariables.colorOnSurfaceMedium),colorPrimary:Z.FtCssVariableFactory.external(Z.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:Z.FtCssVariableFactory.external(Z.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:Z.FtCssVariableFactory.external(Z.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:Z.FtCssVariableFactory.external(Z.designSystemVariables.borderRadiusS,"Design system"),colorError:Z.FtCssVariableFactory.external(Z.designSystemVariables.colorError,"Design system")},uc=pc.css`
919
+ `}};Gt.elementDefinitions={};Gt.styles=[Do,lc];ho([(0,Hr.property)({type:String})],Gt.prototype,"text",void 0);ho([(0,Hr.property)({type:Boolean})],Gt.prototype,"raised",void 0);ho([(0,Hr.property)({type:Boolean})],Gt.prototype,"outlined",void 0);ho([(0,Hr.property)({type:Boolean})],Gt.prototype,"disabled",void 0);ho([(0,Hr.property)({type:Boolean})],Gt.prototype,"error",void 0);(0,pc.customElement)("ft-input-label")(Gt);var uc=m(M()),Z=m(R());var X={fontSize:Z.FtCssVariableFactory.create("--ft-text-area-font-size","","SIZE","14px"),labelSize:Z.FtCssVariableFactory.create("--ft-text-area-label-size","","SIZE","11px"),verticalSpacing:Z.FtCssVariableFactory.create("--ft-text-area-vertical-spacing","","SIZE","4px"),horizontalSpacing:Z.FtCssVariableFactory.create("--ft-text-area-horizontal-spacing","","SIZE","16px"),helperColor:Z.FtCssVariableFactory.extend("--ft-text-area-helper-color","",Z.designSystemVariables.colorOnSurfaceMedium),colorPrimary:Z.FtCssVariableFactory.external(Z.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:Z.FtCssVariableFactory.external(Z.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:Z.FtCssVariableFactory.external(Z.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:Z.FtCssVariableFactory.external(Z.designSystemVariables.borderRadiusS,"Design system"),colorError:Z.FtCssVariableFactory.external(Z.designSystemVariables.colorError,"Design system")},fc=uc.css`
920
920
  *:focus {
921
921
  outline: none;
922
922
  }
@@ -928,10 +928,10 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
928
928
  }
929
929
 
930
930
  ft-input-label {
931
- ${(0,Z.setVariable)(k.fontSize,X.fontSize)};
932
- ${(0,Z.setVariable)(k.raisedFontSize,X.labelSize)};
933
- ${(0,Z.setVariable)(k.verticalSpacing,X.verticalSpacing)};
934
- ${(0,Z.setVariable)(k.horizontalSpacing,X.horizontalSpacing)};
931
+ ${(0,Z.setVariable)(P.fontSize,X.fontSize)};
932
+ ${(0,Z.setVariable)(P.raisedFontSize,X.labelSize)};
933
+ ${(0,Z.setVariable)(P.verticalSpacing,X.verticalSpacing)};
934
+ ${(0,Z.setVariable)(P.horizontalSpacing,X.horizontalSpacing)};
935
935
  }
936
936
 
937
937
  .ft-text-area--main-panel {
@@ -984,8 +984,8 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
984
984
  }
985
985
 
986
986
  .ft-text-area:not(.ft-text-area--disabled):focus-within ft-input-label {
987
- ${(0,Z.setVariable)(k.borderColor,X.colorPrimary)};
988
- ${(0,Z.setVariable)(k.textColor,X.colorPrimary)};
987
+ ${(0,Z.setVariable)(P.borderColor,X.colorPrimary)};
988
+ ${(0,Z.setVariable)(P.textColor,X.colorPrimary)};
989
989
  }
990
990
 
991
991
  .ft-text-area--filled .ft-text-area--input-panel {
@@ -1016,7 +1016,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1016
1016
  position: absolute;
1017
1017
  bottom: 0;
1018
1018
  }
1019
- `;var Me=function(e,t,o,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,o,i);else for(var c=e.length-1;c>=0;c--)(s=e[c])&&(a=(n<3?s(a):n>3?s(t,o,a):s(t,o))||a);return n>3&&a&&Object.defineProperty(t,o,a),a},Lt=class extends(0,Qo.toFtFormComponent)(Qo.FtLitElement,"textbox"){constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.height=50,this.focused=!1}render(){let t={"ft-text-area":!0,"ft-text-area--filled":!this.outlined,"ft-text-area--outlined":this.outlined,"ft-text-area--disabled":this.disabled,"ft-text-area--has-value":!!this.value,"ft-text-area--no-label":!this.label,"ft-text-area--in-error":this.error};return Xo.html`
1019
+ `;var Ue=function(e,t,o,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,o,i);else for(var c=e.length-1;c>=0;c--)(s=e[c])&&(a=(n<3?s(a):n>3?s(t,o,a):s(t,o))||a);return n>3&&a&&Object.defineProperty(t,o,a),a},Lt=class extends(0,Qo.toFtFormComponent)(Qo.FtLitElement,"textbox"){constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.height=50,this.focused=!1}render(){let t={"ft-text-area":!0,"ft-text-area--filled":!this.outlined,"ft-text-area--outlined":this.outlined,"ft-text-area--disabled":this.disabled,"ft-text-area--has-value":!!this.value,"ft-text-area--no-label":!this.label,"ft-text-area--in-error":this.error};return Xo.html`
1020
1020
  <style>
1021
1021
  .ft-text-area--main-panel {
1022
1022
  height: calc(4 * ${X.verticalSpacing} + ${X.labelSize} + ${X.fontSize} + ${this.height}px);
@@ -1026,7 +1026,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1026
1026
  right: ${this.textarea!=null?this.textarea.offsetWidth-this.textarea.clientWidth:0}px;
1027
1027
  }
1028
1028
  </style>
1029
- <div class="${(0,fc.classMap)(t)}">
1029
+ <div class="${(0,hc.classMap)(t)}">
1030
1030
  <div class="ft-text-area--main-panel">
1031
1031
  <ft-input-label text="${this.label}"
1032
1032
  ?disabled=${this.disabled}
@@ -1058,24 +1058,24 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1058
1058
  ${this.helper}
1059
1059
  </ft-typography>`:void 0}
1060
1060
  </div>
1061
- `}setValue(t,o=!1){this.value=t,this.setFormValue(t),o&&(this.dispatchEvent(new CustomEvent("live-change",{detail:this.value})),this.dispatchEvent(new CustomEvent("change",{detail:this.value})))}onKeyDown(t){(t.key==="Enter"||t.key===" ")&&t.stopPropagation()}updateValueFromInputField(){this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=((t=this.textarea)===null||t===void 0?void 0:t.value)||"",this.setFormValue(this.value),this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onResize(t){t.detail.height>=50&&(this.height=t.detail.height)}};Lt.elementDefinitions={"ft-input-label":Gt,"ft-resizer":Nt,"ft-ripple":K,"ft-typography":ft};Lt.styles=[Nr,uc];Me([(0,ae.property)({type:String})],Lt.prototype,"label",void 0);Me([(0,ae.property)({reflect:!0})],Lt.prototype,"value",void 0);Me([(0,ae.property)({type:String})],Lt.prototype,"helper",void 0);Me([(0,ae.property)({type:Boolean})],Lt.prototype,"outlined",void 0);Me([(0,ae.property)({type:Boolean})],Lt.prototype,"disabled",void 0);Me([(0,ae.property)({type:Boolean})],Lt.prototype,"error",void 0);Me([(0,ae.property)({type:Number,reflect:!0})],Lt.prototype,"height",void 0);Me([(0,ae.query)("textarea")],Lt.prototype,"textarea",void 0);Me([(0,ae.state)()],Lt.prototype,"focused",void 0);(0,hc.customElement)("ft-text-area")(Lt);var Gd=m(Nn());var Pn=m(R());var yo=m(q()),xc=m(R());var Qe=m(R());var bc=m(R());var gc=m(M()),mc=m(R());var xr=class extends mc.FtLitElement{render(){return gc.html`
1061
+ `}setValue(t,o=!1){this.value=t,this.setFormValue(t),o&&(this.dispatchEvent(new CustomEvent("live-change",{detail:this.value})),this.dispatchEvent(new CustomEvent("change",{detail:this.value})))}onKeyDown(t){(t.key==="Enter"||t.key===" ")&&t.stopPropagation()}updateValueFromInputField(){this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=((t=this.textarea)===null||t===void 0?void 0:t.value)||"",this.setFormValue(this.value),this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onResize(t){t.detail.height>=50&&(this.height=t.detail.height)}};Lt.elementDefinitions={"ft-input-label":Gt,"ft-resizer":Nt,"ft-ripple":K,"ft-typography":ft};Lt.styles=[Nr,fc];Ue([(0,ae.property)({type:String})],Lt.prototype,"label",void 0);Ue([(0,ae.property)({reflect:!0})],Lt.prototype,"value",void 0);Ue([(0,ae.property)({type:String})],Lt.prototype,"helper",void 0);Ue([(0,ae.property)({type:Boolean})],Lt.prototype,"outlined",void 0);Ue([(0,ae.property)({type:Boolean})],Lt.prototype,"disabled",void 0);Ue([(0,ae.property)({type:Boolean})],Lt.prototype,"error",void 0);Ue([(0,ae.property)({type:Number,reflect:!0})],Lt.prototype,"height",void 0);Ue([(0,ae.query)("textarea")],Lt.prototype,"textarea",void 0);Ue([(0,ae.state)()],Lt.prototype,"focused",void 0);(0,yc.customElement)("ft-text-area")(Lt);var jd=m(Nn());var kn=m(R());var yo=m(q()),vc=m(R());var Je=m(R());var xc=m(R());var mc=m(M()),bc=m(R());var xr=class extends bc.FtLitElement{render(){return mc.html`
1062
1062
  <div class="ft-loader">
1063
1063
  <div></div>
1064
1064
  <div></div>
1065
1065
  <div></div>
1066
1066
  <div></div>
1067
1067
  </div>
1068
- `}};xr.styles=ys;(0,bc.customElement)("ft-loader")(xr);var Xe=m(M()),Ln=m(Ne()),wt=m(q()),Pt=function(e,t,o,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,o,i);else for(var c=e.length-1;c>=0;c--)(s=e[c])&&(a=(n<3?s(a):n>3?s(t,o,a):s(t,o))||a);return n>3&&a&&Object.defineProperty(t,o,a),a},it=class extends(0,Qe.toFtFormComponent)(Qe.FtLitElement,"button"){get buttonClasses(){return{}}get typographyVariant(){return""}constructor(){super(),this.href=void 0,this.target=void 0,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",t=>{var o;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):this.type=="submit"&&((o=this.form)===null||o===void 0||o.requestSubmit())})}render(){var t,o,i;let n=Xe.html`
1068
+ `}};xr.styles=ys;(0,xc.customElement)("ft-loader")(xr);var Qe=m(M()),Ln=m(Le()),wt=m(q()),kt=function(e,t,o,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,o,i);else for(var c=e.length-1;c>=0;c--)(s=e[c])&&(a=(n<3?s(a):n>3?s(t,o,a):s(t,o))||a);return n>3&&a&&Object.defineProperty(t,o,a),a},nt=class extends(0,Je.toFtFormComponent)(Je.FtLitElement,"button"){get buttonClasses(){return{}}get typographyVariant(){return""}constructor(){super(),this.href=void 0,this.target=void 0,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",t=>{var o;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):this.type=="submit"&&((o=this.form)===null||o===void 0||o.requestSubmit())})}render(){var t,o,i;let n=Qe.html`
1069
1069
  <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
1070
1070
  <ft-typography part="label"
1071
1071
  variant=${this.typographyVariant}
1072
1072
  element="span"
1073
- class="ft-button--label ${Qe.isSafari?"ft-safari-ellipsis-fix":""}"
1073
+ class="ft-button--label ${Je.isSafari?"ft-safari-ellipsis-fix":""}"
1074
1074
  ?hidden=${!this.hasTextContent()}>
1075
1075
  <slot @slotchange=${this.onSlotchange}></slot>
1076
1076
  </ft-typography>
1077
1077
  ${this.resolveIcon()}
1078
- `,a=this.href!=null&&this.href.trim().length>0?this.href:void 0;return this.addTooltipIfNeeded(a?Xe.html`
1078
+ `,a=this.href!=null&&this.href.trim().length>0?this.href:void 0;return this.addTooltipIfNeeded(a?Qe.html`
1079
1079
  <a href="${a}"
1080
1080
  target="${(t=this.target)!==null&&t!==void 0?t:"_self"}"
1081
1081
  part="button"
@@ -1084,25 +1084,25 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1084
1084
  ?disabled=${this.isDisabled()}>
1085
1085
  ${n}
1086
1086
  </a>
1087
- `:Xe.html`
1087
+ `:Qe.html`
1088
1088
  <button part="button"
1089
1089
  class="${(0,Ln.classMap)(this.buttonClasses)}"
1090
1090
  aria-label="${(i=this.ariaLabel)!==null&&i!==void 0?i:this.getLabel()}"
1091
1091
  ?disabled=${this.isDisabled()}>
1092
1092
  ${n}
1093
1093
  </button>
1094
- `)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?Xe.html`
1094
+ `)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?Qe.html`
1095
1095
  <ft-tooltip part="tooltip"
1096
1096
  text="${this.getLabel()}"
1097
1097
  position="${this.tooltipPosition}">
1098
1098
  ${t}
1099
1099
  </ft-tooltip>
1100
- `:t}resolveIcon(){return this.loading?Xe.html`
1101
- <ft-loader part="loader icon"></ft-loader> `:this.icon?Xe.html`
1100
+ `:t}resolveIcon(){return this.loading?Qe.html`
1101
+ <ft-loader part="loader icon"></ft-loader> `:this.icon?Qe.html`
1102
1102
  <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
1103
- `:Xe.html`
1103
+ `:Qe.html`
1104
1104
  <slot part="icon" name="icon"></slot>
1105
- `}focus(){var t;(t=this.button)===null||t===void 0||t.focus()}focusWithoutTooltip(){var t;this.setTooltipManual(!0),(t=this.button)===null||t===void 0||t.focus(),this.setTooltipManual(!1)}showTemporaryTooltip(t,o){var i;return(i=this.tooltip)===null||i===void 0?void 0:i.showTemporaryText(t,o)}setTooltipManual(t){this.tooltip&&(this.tooltip.manual=t)}click(){var t;(t=this.button)===null||t===void 0||t.click()}getLabel(){return this.label||this.textContent}get textContent(){return(0,Qe.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};it.elementDefinitions={"ft-ripple":K,"ft-tooltip":ot,"ft-typography":ft,"ft-icon":ht,"ft-loader":xr};Pt([(0,wt.property)()],it.prototype,"href",void 0);Pt([(0,wt.property)()],it.prototype,"target",void 0);Pt([(0,wt.property)({type:String,reflect:!0})],it.prototype,"role",void 0);Pt([(0,wt.property)()],it.prototype,"type",void 0);Pt([(0,wt.property)({type:Boolean})],it.prototype,"disabled",void 0);Pt([(0,wt.property)()],it.prototype,"label",void 0);Pt([(0,wt.property)()],it.prototype,"icon",void 0);Pt([(0,wt.property)()],it.prototype,"iconVariant",void 0);Pt([(0,wt.property)({type:Boolean})],it.prototype,"trailingIcon",void 0);Pt([(0,wt.property)({type:Boolean})],it.prototype,"loading",void 0);Pt([(0,wt.property)({attribute:"aria-label"})],it.prototype,"ariaLabel",void 0);Pt([(0,wt.property)()],it.prototype,"tooltipPosition",void 0);Pt([(0,wt.property)({type:Boolean})],it.prototype,"hideTooltip",void 0);Pt([(0,wt.property)({type:Boolean})],it.prototype,"forceTooltip",void 0);Pt([(0,wt.query)(".ft-button")],it.prototype,"button",void 0);Pt([(0,wt.query)(".ft-button--label slot")],it.prototype,"slottedContent",void 0);Pt([(0,wt.query)("[part=tooltip]")],it.prototype,"tooltip",void 0);var Jo=function(e,t,o,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,o,i);else for(var c=e.length-1;c>=0;c--)(s=e[c])&&(a=(n<3?s(a):n>3?s(t,o,a):s(t,o))||a);return n>3&&a&&Object.defineProperty(t,o,a),a},ye=class extends it{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"}};ye.styles=[xc.safariEllipsisFix,Ss];Jo([(0,yo.property)({type:Boolean})],ye.prototype,"primary",void 0);Jo([(0,yo.property)({type:Boolean})],ye.prototype,"outlined",void 0);Jo([(0,yo.property)({type:Boolean})],ye.prototype,"dense",void 0);Jo([(0,yo.property)({type:Boolean})],ye.prototype,"round",void 0);var go=m(q());var ei=m(R());var vc=m(M()),C=m(R());var Sc=[vc.css`
1105
+ `}focus(){var t;(t=this.button)===null||t===void 0||t.focus()}focusWithoutTooltip(){var t;this.setTooltipManual(!0),(t=this.button)===null||t===void 0||t.focus(),this.setTooltipManual(!1)}showTemporaryTooltip(t,o){var i;return(i=this.tooltip)===null||i===void 0?void 0:i.showTemporaryText(t,o)}setTooltipManual(t){this.tooltip&&(this.tooltip.manual=t)}click(){var t;(t=this.button)===null||t===void 0||t.click()}getLabel(){return this.label||this.textContent}get textContent(){return(0,Je.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};nt.elementDefinitions={"ft-ripple":K,"ft-tooltip":it,"ft-typography":ft,"ft-icon":ht,"ft-loader":xr};kt([(0,wt.property)()],nt.prototype,"href",void 0);kt([(0,wt.property)()],nt.prototype,"target",void 0);kt([(0,wt.property)({type:String,reflect:!0})],nt.prototype,"role",void 0);kt([(0,wt.property)()],nt.prototype,"type",void 0);kt([(0,wt.property)({type:Boolean})],nt.prototype,"disabled",void 0);kt([(0,wt.property)()],nt.prototype,"label",void 0);kt([(0,wt.property)()],nt.prototype,"icon",void 0);kt([(0,wt.property)()],nt.prototype,"iconVariant",void 0);kt([(0,wt.property)({type:Boolean})],nt.prototype,"trailingIcon",void 0);kt([(0,wt.property)({type:Boolean})],nt.prototype,"loading",void 0);kt([(0,wt.property)({attribute:"aria-label"})],nt.prototype,"ariaLabel",void 0);kt([(0,wt.property)()],nt.prototype,"tooltipPosition",void 0);kt([(0,wt.property)({type:Boolean})],nt.prototype,"hideTooltip",void 0);kt([(0,wt.property)({type:Boolean})],nt.prototype,"forceTooltip",void 0);kt([(0,wt.query)(".ft-button")],nt.prototype,"button",void 0);kt([(0,wt.query)(".ft-button--label slot")],nt.prototype,"slottedContent",void 0);kt([(0,wt.query)("[part=tooltip]")],nt.prototype,"tooltip",void 0);var Jo=function(e,t,o,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,o,i);else for(var c=e.length-1;c>=0;c--)(s=e[c])&&(a=(n<3?s(a):n>3?s(t,o,a):s(t,o))||a);return n>3&&a&&Object.defineProperty(t,o,a),a},ye=class extends nt{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"}};ye.styles=[vc.safariEllipsisFix,Ss];Jo([(0,yo.property)({type:Boolean})],ye.prototype,"primary",void 0);Jo([(0,yo.property)({type:Boolean})],ye.prototype,"outlined",void 0);Jo([(0,yo.property)({type:Boolean})],ye.prototype,"dense",void 0);Jo([(0,yo.property)({type:Boolean})],ye.prototype,"round",void 0);var go=m(q());var ei=m(R());var Sc=m(M()),C=m(R());var Oc=[Sc.css`
1106
1106
  :host {
1107
1107
  display: inline-block;
1108
1108
  max-width: 100%;
@@ -1187,7 +1187,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1187
1187
  /** Brand Primary styles **/
1188
1188
 
1189
1189
  .ftds--family-brand.ft-button--primary {
1190
- ${(0,C.setVariable)(rt.color,f.primaryBrandIconColor)};
1190
+ ${(0,C.setVariable)(ot.color,f.primaryBrandIconColor)};
1191
1191
 
1192
1192
  ${(0,C.setVariable)(w.color,f.primaryBrandStateLayerColor)};
1193
1193
  ${(0,C.setVariable)(w.opacityContentOnSurfaceHover,f.primaryBrandHoverStateLayerOpacity)};
@@ -1211,7 +1211,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1211
1211
  /** Brand Secondary styles **/
1212
1212
 
1213
1213
  .ftds--family-brand.ft-button--secondary {
1214
- ${(0,C.setVariable)(rt.color,f.secondaryBrandIconColor)};
1214
+ ${(0,C.setVariable)(ot.color,f.secondaryBrandIconColor)};
1215
1215
 
1216
1216
  ${(0,C.setVariable)(w.color,f.secondaryBrandStateLayerColor)};
1217
1217
  ${(0,C.setVariable)(w.opacityContentOnSurfaceHover,f.secondaryBrandHoverStateLayerOpacity)};
@@ -1236,7 +1236,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1236
1236
  /** Brand Tertiary styles **/
1237
1237
 
1238
1238
  .ftds--family-brand.ft-button--tertiary {
1239
- ${(0,C.setVariable)(rt.color,f.tertiaryBrandIconColor)};
1239
+ ${(0,C.setVariable)(ot.color,f.tertiaryBrandIconColor)};
1240
1240
 
1241
1241
  ${(0,C.setVariable)(w.color,f.tertiaryBrandStateLayerColor)};
1242
1242
  ${(0,C.setVariable)(w.opacityContentOnSurfaceHover,f.tertiaryBrandHoverStateLayerOpacity)};
@@ -1260,7 +1260,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1260
1260
  /** Neutral Secondary styles **/
1261
1261
 
1262
1262
  .ftds--family-neutral.ft-button--secondary {
1263
- ${(0,C.setVariable)(rt.color,f.secondaryNeutralIconColor)};
1263
+ ${(0,C.setVariable)(ot.color,f.secondaryNeutralIconColor)};
1264
1264
 
1265
1265
  ${(0,C.setVariable)(w.backgroundColor,f.secondaryNeutralStateLayerColor)};
1266
1266
  ${(0,C.setVariable)(w.opacityContentOnSurfaceHover,f.secondaryNeutralHoverStateLayerOpacity)};
@@ -1285,7 +1285,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1285
1285
  /** Neutral Tertiary styles **/
1286
1286
 
1287
1287
  .ftds--family-neutral.ft-button--tertiary {
1288
- ${(0,C.setVariable)(rt.color,f.tertiaryNeutralIconColor)};
1288
+ ${(0,C.setVariable)(ot.color,f.tertiaryNeutralIconColor)};
1289
1289
 
1290
1290
  ${(0,C.setVariable)(w.backgroundColor,f.tertiaryNeutralStateLayerColor)};
1291
1291
  ${(0,C.setVariable)(w.opacityContentOnSurfaceHover,f.tertiaryNeutralHoverStateLayerOpacity)};
@@ -1309,7 +1309,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1309
1309
  /** Info Secondary styles **/
1310
1310
 
1311
1311
  .ftds--family-info.ft-button--secondary {
1312
- ${(0,C.setVariable)(rt.color,f.secondaryInfoIconColor)};
1312
+ ${(0,C.setVariable)(ot.color,f.secondaryInfoIconColor)};
1313
1313
 
1314
1314
  ${(0,C.setVariable)(w.backgroundColor,f.secondaryInfoStateLayerColor)};
1315
1315
  ${(0,C.setVariable)(w.opacityContentOnSurfaceHover,f.secondaryInfoHoverStateLayerOpacity)};
@@ -1334,7 +1334,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1334
1334
  /** Info Tertiary styles **/
1335
1335
 
1336
1336
  .ftds--family-info.ft-button--tertiary {
1337
- ${(0,C.setVariable)(rt.color,f.tertiaryInfoIconColor)};
1337
+ ${(0,C.setVariable)(ot.color,f.tertiaryInfoIconColor)};
1338
1338
 
1339
1339
  ${(0,C.setVariable)(w.backgroundColor,f.tertiaryInfoStateLayerColor)};
1340
1340
  ${(0,C.setVariable)(w.opacityContentOnSurfaceHover,f.tertiaryInfoHoverStateLayerOpacity)};
@@ -1358,7 +1358,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1358
1358
  /** Success Secondary styles **/
1359
1359
 
1360
1360
  .ftds--family-success.ft-button--secondary {
1361
- ${(0,C.setVariable)(rt.color,f.secondarySuccessIconColor)};
1361
+ ${(0,C.setVariable)(ot.color,f.secondarySuccessIconColor)};
1362
1362
 
1363
1363
  ${(0,C.setVariable)(w.backgroundColor,f.secondarySuccessStateLayerColor)};
1364
1364
  ${(0,C.setVariable)(w.opacityContentOnSurfaceHover,f.secondarySuccessHoverStateLayerOpacity)};
@@ -1383,7 +1383,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1383
1383
  /** Success Tertiary styles **/
1384
1384
 
1385
1385
  .ftds--family-success.ft-button--tertiary {
1386
- ${(0,C.setVariable)(rt.color,f.tertiarySuccessIconColor)};
1386
+ ${(0,C.setVariable)(ot.color,f.tertiarySuccessIconColor)};
1387
1387
 
1388
1388
  ${(0,C.setVariable)(w.backgroundColor,f.tertiarySuccessStateLayerColor)};
1389
1389
  ${(0,C.setVariable)(w.opacityContentOnSurfaceHover,f.tertiarySuccessHoverStateLayerOpacity)};
@@ -1407,7 +1407,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1407
1407
  /** Warning Secondary styles **/
1408
1408
 
1409
1409
  .ftds--family-warning.ft-button--secondary {
1410
- ${(0,C.setVariable)(rt.color,f.secondaryWarningIconColor)};
1410
+ ${(0,C.setVariable)(ot.color,f.secondaryWarningIconColor)};
1411
1411
 
1412
1412
  ${(0,C.setVariable)(w.backgroundColor,f.secondaryWarningStateLayerColor)};
1413
1413
  ${(0,C.setVariable)(w.opacityContentOnSurfaceHover,f.secondaryWarningHoverStateLayerOpacity)};
@@ -1432,7 +1432,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1432
1432
  /** Warning Tertiary styles **/
1433
1433
 
1434
1434
  .ftds--family-warning.ft-button--tertiary {
1435
- ${(0,C.setVariable)(rt.color,f.tertiaryWarningIconColor)};
1435
+ ${(0,C.setVariable)(ot.color,f.tertiaryWarningIconColor)};
1436
1436
 
1437
1437
  ${(0,C.setVariable)(w.backgroundColor,f.tertiaryWarningStateLayerColor)};
1438
1438
  ${(0,C.setVariable)(w.opacityContentOnSurfaceHover,f.tertiaryWarningHoverStateLayerOpacity)};
@@ -1456,7 +1456,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1456
1456
  /** Error Secondary styles **/
1457
1457
 
1458
1458
  .ftds--family-error.ft-button--secondary {
1459
- ${(0,C.setVariable)(rt.color,f.secondaryErrorIconColor)};
1459
+ ${(0,C.setVariable)(ot.color,f.secondaryErrorIconColor)};
1460
1460
 
1461
1461
  ${(0,C.setVariable)(w.backgroundColor,f.secondaryErrorStateLayerColor)};
1462
1462
  ${(0,C.setVariable)(w.opacityContentOnSurfaceHover,f.secondaryErrorHoverStateLayerOpacity)};
@@ -1481,7 +1481,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1481
1481
  /** Error Tertiary styles **/
1482
1482
 
1483
1483
  .ftds--family-error.ft-button--tertiary {
1484
- ${(0,C.setVariable)(rt.color,f.tertiaryErrorIconColor)};
1484
+ ${(0,C.setVariable)(ot.color,f.tertiaryErrorIconColor)};
1485
1485
 
1486
1486
  ${(0,C.setVariable)(w.backgroundColor,f.tertiaryErrorStateLayerColor)};
1487
1487
  ${(0,C.setVariable)(w.opacityContentOnSurfaceHover,f.tertiaryErrorHoverStateLayerOpacity)};
@@ -1506,7 +1506,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1506
1506
 
1507
1507
  .ftds--size-large {
1508
1508
  ${(0,C.setVariable)(St.size,f.largeIconSize)};
1509
- ${(0,C.setVariable)(rt.size,f.largeIconSize)};
1509
+ ${(0,C.setVariable)(ot.size,f.largeIconSize)};
1510
1510
 
1511
1511
  height: ${f.largeHeight};
1512
1512
  padding: 0 ${f.largeHorizontalPadding};
@@ -1528,7 +1528,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1528
1528
 
1529
1529
  .ftds--size-medium {
1530
1530
  ${(0,C.setVariable)(St.size,f.mediumIconSize)};
1531
- ${(0,C.setVariable)(rt.size,f.mediumIconSize)};
1531
+ ${(0,C.setVariable)(ot.size,f.mediumIconSize)};
1532
1532
 
1533
1533
  height: ${f.mediumHeight};
1534
1534
  padding: 0 ${f.mediumHorizontalPadding};
@@ -1551,7 +1551,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1551
1551
 
1552
1552
  .ftds--size-small {
1553
1553
  ${(0,C.setVariable)(St.size,f.smallIconSize)};
1554
- ${(0,C.setVariable)(rt.size,f.smallIconSize)};
1554
+ ${(0,C.setVariable)(ot.size,f.smallIconSize)};
1555
1555
 
1556
1556
  height: ${f.smallHeight};
1557
1557
  padding: 0 ${f.smallHorizontalPadding};
@@ -1568,15 +1568,15 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1568
1568
  .ftds--size-small.ft-button--icon-only {
1569
1569
  width: ${f.smallIconOnlyWidth};
1570
1570
  }
1571
- `,C.noTextSelect];var ti=function(e,t,o,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,o,i);else for(var c=e.length-1;c>=0;c--)(s=e[c])&&(a=(n<3?s(a):n>3?s(t,o,a):s(t,o))||a);return n>3&&a&&Object.defineProperty(t,o,a),a},Ue=class extends(0,ei.toFtdsBase)(it){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=Po.brand,this.iconVariant=$t.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 Er.large:return Ze.body2medium;case Er.medium:return Ze.caption1medium;case Er.small:return Ze.caption2medium}}};Ue.styles=[ei.safariEllipsisFix,Sc];ti([(0,go.property)({type:Boolean})],Ue.prototype,"primary",void 0);ti([(0,go.property)({type:Boolean})],Ue.prototype,"secondary",void 0);ti([(0,go.property)({type:Boolean})],Ue.prototype,"tertiary",void 0);ti([(0,go.property)({type:Boolean})],Ue.prototype,"round",void 0);(0,Pn.customElement)("ft-button")(ye);(0,Pn.customElement)("ftds-button")(Ue);var Id=m(R());var wi=m(M()),Ei=m(q()),Ai=m(R());var Oc=m(M());var Cc=Oc.css`
1572
- `;var Ci=m(R());var wd=m(R());var Rc=m(M()),Xt=m(q()),ge=m(R());var wc=m(M());var Ec=wc.css`
1573
- `;var ri=m(R()),Np="ft-app-info",kn=class extends CustomEvent{constructor(t){super("authentication-change",{detail:t})}},Lp={session:(e,t)=>{(0,ri.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>T.dispatchEvent(new kn(t.payload)),0))}},T=ri.FtReduxStore.get({name:Np,reducers:Lp,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1}});var Re=m(R());var Dn=m(R());var vr=class e{static get(t){let{baseUrl:o,apiIntegrationIdentifier:i}=T.getState(),n=t??i;if(o&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,n,!0)}static await(t){return new Promise(o=>{let i=e.get(t);if(i)o(i);else{let n=T.subscribe(()=>{i=e.get(t),i&&(n(),o(i))})}})}};var mo=class{constructor(t){this.overrideApi=t}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:vr.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):vr.await()}};var Ae=class extends mo{constructor(t=!0,o){var i;super(o);let n=this.constructor;n.commonCache=(i=n.commonCache)!==null&&i!==void 0?i:new Dn.CacheRegistry,this.cache=t?n.commonCache:new Dn.CacheRegistry}clearCache(){this.cache.clearAll()}};var Ac,Pp=Symbol("clearAfterUnitTest"),oi=class extends Ae{constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Ac]=()=>{this.defaultMessages={},this.cache=new Re.CacheRegistry,this.listeners={}},this.currentUiLocale=T.getState().uiLocale,T.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=T.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let o=t.name.toLowerCase();this.cache.setFinal(o,t),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,o){var i;if(t=t.toLowerCase(),o&&Object.keys(o).length>0){let n={...(i=this.defaultMessages[t])!==null&&i!==void 0?i:{},...o};(0,Re.deepEqual)(this.defaultMessages[t],n)||(this.defaultMessages[t]=n,await this.notify(t))}return this.fetchContext(t)}resolveContext(t){var o,i;return this.fetchContext(t),(i=(o=this.cache.getNow(t))===null||o===void 0?void 0:o.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(t,o){let i=t.toLowerCase();return this.resolveContext(i)[o]}resolveMessage(t,o,...i){var n;let a=t.toLowerCase(),s=this.resolveContext(a);return new Re.ParametrizedLabelResolver((n=this.defaultMessages[a])!==null&&n!==void 0?n:{},s).resolve(o,...i)}async fetchContext(t){let o=!this.cache.has(t),i;try{i=await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t))}catch(n){!(n instanceof Re.CanceledPromiseError)&&o&&console.error(n)}return o&&await this.notify(t),i}subscribe(t,o){var i;return t=t.toLowerCase(),this.listeners[t]=(i=this.listeners[t])!==null&&i!==void 0?i:new Set,this.listeners[t].add(o),()=>{var n;return(n=this.listeners[t])===null||n===void 0?void 0:n.delete(o)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map(t=>this.notify(t)))}async notify(t){this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(o=>(0,Re.delay)(0).then(()=>o()).catch(()=>null)))}};Ac=Pp;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends oi{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends oi{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var Vr=window.FluidTopicsI18nService,ii=window.FluidTopicsCustomI18nService;var Bt=function(e,t,o,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,o,i);else for(var c=e.length-1;c>=0;c--)(s=e[c])&&(a=(n<3?s(a):n>3?s(t,o,a):s(t,o))||a);return n>3&&a&&Object.defineProperty(t,o,a),a},dt=class extends ge.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=()=>vr.get(),this.messageContexts=[],this.cache=new ge.CacheRegistry,this.cleanSessionDebouncer=new ge.Debouncer}render(){return Rc.html`
1571
+ `,C.noTextSelect];var ti=function(e,t,o,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,o,i);else for(var c=e.length-1;c>=0;c--)(s=e[c])&&(a=(n<3?s(a):n>3?s(t,o,a):s(t,o))||a);return n>3&&a&&Object.defineProperty(t,o,a),a},Fe=class extends(0,ei.toFtdsBase)(nt){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=ko.brand,this.iconVariant=$t.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 Er.large:return qe.body2medium;case Er.medium:return qe.caption1medium;case Er.small:return qe.caption2medium}}};Fe.styles=[ei.safariEllipsisFix,Oc];ti([(0,go.property)({type:Boolean})],Fe.prototype,"primary",void 0);ti([(0,go.property)({type:Boolean})],Fe.prototype,"secondary",void 0);ti([(0,go.property)({type:Boolean})],Fe.prototype,"tertiary",void 0);ti([(0,go.property)({type:Boolean})],Fe.prototype,"round",void 0);(0,kn.customElement)("ft-button")(ye);(0,kn.customElement)("ftds-button")(Fe);var Nd=m(R());var wi=m(M()),Ei=m(q()),Ai=m(R());var Cc=m(M());var wc=Cc.css`
1572
+ `;var Ci=m(R());var Ed=m(R());var Tc=m(M()),Xt=m(q()),ge=m(R());var Ec=m(M());var Ac=Ec.css`
1573
+ `;var ri=m(R()),Lp="ft-app-info",Pn=class extends CustomEvent{constructor(t){super("authentication-change",{detail:t})}},kp={session:(e,t)=>{(0,ri.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>T.dispatchEvent(new Pn(t.payload)),0))}},T=ri.FtReduxStore.get({name:Lp,reducers:kp,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1}});var Re=m(R());var Dn=m(R());var vr=class e{static get(t){let{baseUrl:o,apiIntegrationIdentifier:i}=T.getState(),n=t??i;if(o&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,n,!0)}static await(t){return new Promise(o=>{let i=e.get(t);if(i)o(i);else{let n=T.subscribe(()=>{i=e.get(t),i&&(n(),o(i))})}})}};var mo=class{constructor(t){this.overrideApi=t}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:vr.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):vr.await()}};var Ae=class extends mo{constructor(t=!0,o){var i;super(o);let n=this.constructor;n.commonCache=(i=n.commonCache)!==null&&i!==void 0?i:new Dn.CacheRegistry,this.cache=t?n.commonCache:new Dn.CacheRegistry}clearCache(){this.cache.clearAll()}};var Rc,Pp=Symbol("clearAfterUnitTest"),oi=class extends Ae{constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Rc]=()=>{this.defaultMessages={},this.cache=new Re.CacheRegistry,this.listeners={}},this.currentUiLocale=T.getState().uiLocale,T.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=T.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let o=t.name.toLowerCase();this.cache.setFinal(o,t),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,o){var i;if(t=t.toLowerCase(),o&&Object.keys(o).length>0){let n={...(i=this.defaultMessages[t])!==null&&i!==void 0?i:{},...o};(0,Re.deepEqual)(this.defaultMessages[t],n)||(this.defaultMessages[t]=n,await this.notify(t))}return this.fetchContext(t)}resolveContext(t){var o,i;return this.fetchContext(t),(i=(o=this.cache.getNow(t))===null||o===void 0?void 0:o.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(t,o){let i=t.toLowerCase();return this.resolveContext(i)[o]}resolveMessage(t,o,...i){var n;let a=t.toLowerCase(),s=this.resolveContext(a);return new Re.ParametrizedLabelResolver((n=this.defaultMessages[a])!==null&&n!==void 0?n:{},s).resolve(o,...i)}async fetchContext(t){let o=!this.cache.has(t),i;try{i=await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t))}catch(n){!(n instanceof Re.CanceledPromiseError)&&o&&console.error(n)}return o&&await this.notify(t),i}subscribe(t,o){var i;return t=t.toLowerCase(),this.listeners[t]=(i=this.listeners[t])!==null&&i!==void 0?i:new Set,this.listeners[t].add(o),()=>{var n;return(n=this.listeners[t])===null||n===void 0?void 0:n.delete(o)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map(t=>this.notify(t)))}async notify(t){this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(o=>(0,Re.delay)(0).then(()=>o()).catch(()=>null)))}};Rc=Pp;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends oi{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends oi{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var Vr=window.FluidTopicsI18nService,ii=window.FluidTopicsCustomI18nService;var Bt=function(e,t,o,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,o,i);else for(var c=e.length-1;c>=0;c--)(s=e[c])&&(a=(n<3?s(a):n>3?s(t,o,a):s(t,o))||a);return n>3&&a&&Object.defineProperty(t,o,a),a},dt=class extends ge.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=()=>vr.get(),this.messageContexts=[],this.cache=new ge.CacheRegistry,this.cleanSessionDebouncer=new ge.Debouncer}render(){return Tc.html`
1574
1574
  <slot></slot>
1575
- `}update(t){var o,i,n,a,s;super.update(t),t.has("baseUrl")&&(T.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&T.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&T.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&T.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&T.actions.noCustom(this.noCustom),t.has("editorMode")&&T.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&T.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&T.actions.session(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(c=>Vr.addContext(c)),t.has("openExternalDocumentInNewTab")&&T.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&T.actions.navigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&T.actions.forcedOffline(this.forcedOffline),t.has("localesConfiguration")&&(T.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),T.actions.availableUiLocales((n=(i=this.localesConfiguration)===null||i===void 0?void 0:i.availableUiLocales)!==null&&n!==void 0?n:[]),T.actions.searchInAllLanguagesAllowed((s=(a=this.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},t.idleTimeoutInMillis),t})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}};dt.elementDefinitions={};dt.styles=Ec;Bt([(0,Xt.property)()],dt.prototype,"baseUrl",void 0);Bt([(0,Xt.property)()],dt.prototype,"apiIntegrationIdentifier",void 0);Bt([(0,Xt.property)()],dt.prototype,"uiLocale",void 0);Bt([(0,ge.jsonProperty)(null)],dt.prototype,"availableUiLocales",void 0);Bt([(0,ge.jsonProperty)(null)],dt.prototype,"metadataConfiguration",void 0);Bt([(0,Xt.property)({type:Boolean})],dt.prototype,"editorMode",void 0);Bt([(0,Xt.property)({type:Boolean})],dt.prototype,"noCustom",void 0);Bt([(0,Xt.property)({type:Boolean})],dt.prototype,"openExternalDocumentInNewTab",void 0);Bt([(0,Xt.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],dt.prototype,"noCustomComponent",void 0);Bt([(0,Xt.property)({type:Boolean})],dt.prototype,"withManualResources",void 0);Bt([(0,Xt.property)({type:Boolean})],dt.prototype,"navigatorOnline",void 0);Bt([(0,Xt.property)({type:Boolean})],dt.prototype,"forcedOffline",void 0);Bt([(0,Xt.property)({type:Object})],dt.prototype,"apiProvider",void 0);Bt([(0,ge.jsonProperty)([])],dt.prototype,"messageContexts",void 0);Bt([(0,ge.jsonProperty)(void 0)],dt.prototype,"session",void 0);Bt([(0,Xt.state)()],dt.prototype,"localesConfiguration",void 0);var vu=m(q());function kp(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var o,i,n;if(Array.isArray(e)){if(o=e.length,o!=t.length)return!1;for(i=o;i--!==0;)if(!ni(e[i],t[i]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i of e.entries())if(!t.has(i[0]))return!1;for(i of e.entries())if(!ni(i[1],t.get(i[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i of e.entries())if(!t.has(i[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();let a=s=>Object.keys(s).filter(c=>s[c]!=null);if(n=a(e),o=n.length,o!==a(t).length)return!1;for(i=o;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[i]))return!1;for(i=o;i--!==0;){let s=n[i];if(!ni(e[s],t[s]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function ni(e,t){try{return kp(e,t)}catch{return!1}}function ai(e,t){return!ni(e,t)}var Dp=m(q(),1);var si=class{constructor(){this.queue=[]}add(t,o=!1){o&&this.clear(t.type),this.queue.push(t)}consume(t){let o=this.queue.find(i=>i.type===t);return o&&(this.queue=this.queue.filter(i=>i!==o)),o}clear(t){typeof t=="string"?this.queue=this.queue.filter(o=>o.type!==t):this.queue=this.queue.filter(o=>!t.test(o.type))}};var Gr=m(q(),1);var Tc=m(q(),1);function _c(e,t){let o=()=>JSON.parse(JSON.stringify(e));return(0,Tc.property)({type:Object,converter:{fromAttribute:i=>{if(i==null)return o();try{return JSON.parse(i)}catch{return o()}},toAttribute:i=>JSON.stringify(i)},hasChanged:ai,...t??{}})}var li=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,o){return this.callbacks=[t],this.debounce(o)}queue(t,o){return this.callbacks.push(t),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((o,i)=>{this.resolvePromise=o,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,o;let i=[...this.callbacks];this.callbacks=[];let n=(t=this.rejectPromise)!==null&&t!==void 0?t:()=>null,a=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let s of i)try{await s()}catch(c){n(c);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 Nc=m(M(),1);var ci=globalThis,$p=ci.ShadowRoot&&(ci.ShadyCSS===void 0||ci.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Xv=Symbol();var Ic=(e,t)=>{if($p)e.adoptedStyleSheets=t.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(let o of t){let i=document.createElement("style"),n=ci.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=o.cssText,e.appendChild(i)}};var di=class extends Nc.LitElement{createRenderRoot(){let t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach(([n,a])=>t.registry.define(n,a)));let o={...t.shadowRootOptions,customElements:t.registry},i=this.renderOptions.creationScope=this.attachShadow(o);return Ic(i,t.elementStyles),i}};function Lc(e,t,...o){var i;let n=e.querySelector(t);for(let a of o)n=(i=n?.shadowRoot)===null||i===void 0?void 0:i.querySelector(a);return n}var bo=function(e,t,o,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,o,i);else for(var c=e.length-1;c>=0;c--)(s=e[c])&&(a=(n<3?s(a):n>3?s(t,o,a):s(t,o))||a);return n>3&&a&&Object.defineProperty(t,o,a),a},$c,Pc=Symbol("constructorPrototype"),kc=Symbol("constructorName"),Bc=Symbol("exportpartsDebouncer"),Dc=Symbol("dynamicDependenciesLoaded"),Fe=class extends di{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[$c]=new li(5),this[kc]=this.constructor.name,this[Pc]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[kc]&&Object.setPrototypeOf(this,this[Pc])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(o){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",o)}let t=this.constructor;t[Dc]||(t[Dc]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate()})}contentAvailableCallback(t){if(t.has("elementToFocus")&&this.elementToFocus!=null){let{element:o,selector:i,shadowPath:n}=this.elementToFocus;if(i!=null){let a=[...n??[],i];o=Lc(this.shadowRoot,...a)}o?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||o?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){var o,i,n;if(((i=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(t.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 t,o,i;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(i=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&i!==void 0&&i)&&this[Bc].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(t){var o,i,n,a,s,c;let u=b=>b!=null&&b.trim().length>0,p=t.filter(u).map(b=>b.trim());if(p.length===0){this.removeAttribute("exportparts");return}let h=new Set;for(let b of(i=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let x=(a=(n=b.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&a!==void 0?a:[],S=(c=(s=b.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(O=>O.split(":")[1]))!==null&&c!==void 0?c:[];new Array(...x,...S).filter(u).map(O=>O.trim()).forEach(O=>h.add(O))}if(h.size===0){this.removeAttribute("exportparts");return}let y=[...h.values()].flatMap(b=>p.map(x=>`${b}:${x}--${b}`));this.setAttribute("exportparts",[...this.part,...y].join(", "))}};$c=Bc;bo([(0,Gr.property)()],Fe.prototype,"exportpartsPrefix",void 0);bo([_c([])],Fe.prototype,"exportpartsPrefixes",void 0);bo([(0,Gr.property)()],Fe.prototype,"customStylesheet",void 0);bo([(0,Gr.property)()],Fe.prototype,"elementToFocus",void 0);bo([(0,Gr.state)()],Fe.prototype,"useAdoptedStyleSheets",void 0);function xo(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var Mc,Uc,Fc,vo=Symbol("internalReduxEventsUnsubscribers"),Je=Symbol("internalStoresUnsubscribers"),Sr=Symbol("internalStores"),So=class extends Fe{constructor(){super(...arguments),this[Mc]=new Map,this[Uc]=new Map,this[Fc]=new Map}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some(o=>t.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[Sr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Sr].values()][0]}getStore(t){return t==null?this.getUnnamedStore():this[Sr].get(t)}addStore(t,o){var i;o=(i=o??(xo(t)?t.name:void 0))!==null&&i!==void 0?i:"default-store",this.unsubscribeFromStore(o),this[Sr].set(o,t),this.subscribeToStore(o,t),this.updateFromStores()}removeStore(t){let o=typeof t=="string"?t:t.name;this.unsubscribeFromStore(o),this[Sr].delete(o)}setupStores(){this.unsubscribeFromStores(),this[Sr].forEach((t,o)=>this.subscribeToStore(o,t)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((t,o)=>{let i=this.constructor.getPropertyOptions(o);if(!i?.attribute||!this.hasAttribute(typeof i?.attribute=="string"?i.attribute:o)){let n=this.getStore(t.store);n&&(t.store?this[Je].has(t.store):this[Je].size>0)&&(this[o]=t.selector(n.getState(),this))}})}subscribeToStore(t,o){var i;this[Je].set(t,o.subscribe(()=>this.updateFromStores())),this[vo].set(t,[]),xo(o)&&o.eventBus&&((i=this.reduxConstructor.reduxEventListeners)===null||i===void 0||i.forEach((n,a)=>{if(typeof this[a]=="function"&&(!n.store||o.name===n.store)){let s=c=>this[a](c);o.addEventListener(n.eventName,s),this[vo].get(t).push(()=>o.removeEventListener(n.eventName,s))}})),this.onStoreAvailable(t)}unsubscribeFromStores(){this[Je].forEach((t,o)=>this.unsubscribeFromStore(o))}unsubscribeFromStore(t){var o;this[Je].has(t)&&this[Je].get(t)(),this[Je].delete(t),(o=this[vo].get(t))===null||o===void 0||o.forEach(i=>i()),this[vo].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Mc=Je,Uc=Sr,Fc=vo;So.reduxProperties=new Map;So.reduxReactiveProperties=new Set;So.reduxEventListeners=new Map;function se(e){for(var t=arguments.length,o=Array(t>1?t-1:0),i=1;i<t;i++)o[i-1]=arguments[i];if(0)var n,a;throw Error("[Immer] minified error nr: "+e+(o.length?" "+o.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function We(e){return!!e&&!!e[nt]}function me(e){var t;return!!e&&(function(o){if(!o||typeof o!="object")return!1;var i=Object.getPrototypeOf(o);if(i===null)return!0;var n=Object.hasOwnProperty.call(i,"constructor")&&i.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===Vp}(e)||Array.isArray(e)||!!e[Kc]||!!(!((t=e.constructor)===null||t===void 0)&&t[Kc])||Vn(e)||Gn(e))}function Or(e,t,o){o===void 0&&(o=!1),Zr(e)===0?(o?Object.keys:Kr)(e).forEach(function(i){o&&typeof i=="symbol"||t(i,e[i],e)}):e.forEach(function(i,n){return t(n,i,e)})}function Zr(e){var t=e[nt];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Vn(e)?2:Gn(e)?3:0}function jr(e,t){return Zr(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Bp(e,t){return Zr(e)===2?e.get(t):e[t]}function Zc(e,t,o){var i=Zr(e);i===2?e.set(t,o):i===3?e.add(o):e[t]=o}function qc(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Vn(e){return zp&&e instanceof Map}function Gn(e){return Hp&&e instanceof Set}function tr(e){return e.o||e.t}function jn(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Qc(e);delete t[nt];for(var o=Kr(t),i=0;i<o.length;i++){var n=o[i],a=t[n];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[n]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[n]})}return Object.create(Object.getPrototypeOf(e),t)}function Kn(e,t){return t===void 0&&(t=!1),Zn(e)||We(e)||!me(e)||(Zr(e)>1&&(e.set=e.add=e.clear=e.delete=Mp),Object.freeze(e),t&&Or(e,function(o,i){return Kn(i,!0)},!0)),e}function Mp(){se(2)}function Zn(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Te(e){var t=Hn[e];return t||se(18,e),t}function Up(e,t){Hn[e]||(Hn[e]=t)}function Fn(){return Co}function $n(e,t){t&&(Te("Patches"),e.u=[],e.s=[],e.v=t)}function pi(e){Wn(e),e.p.forEach(Fp),e.p=null}function Wn(e){e===Co&&(Co=e.l)}function Wc(e){return Co={p:[],l:Co,h:e,m:!0,_:0}}function Fp(e){var t=e[nt];t.i===0||t.i===1?t.j():t.g=!0}function Bn(e,t){t._=t.p.length;var o=t.p[0],i=e!==void 0&&e!==o;return t.h.O||Te("ES5").S(t,e,i),i?(o[nt].P&&(pi(t),se(4)),me(e)&&(e=ui(t,e),t.l||fi(t,e)),t.u&&Te("Patches").M(o[nt].t,e,t.u,t.s)):e=ui(t,o,[]),pi(t),t.u&&t.v(t.u,t.s),e!==Xc?e:void 0}function ui(e,t,o){if(Zn(t))return t;var i=t[nt];if(!i)return Or(t,function(c,u){return zc(e,i,t,c,u,o)},!0),t;if(i.A!==e)return t;if(!i.P)return fi(e,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var n=i.i===4||i.i===5?i.o=jn(i.k):i.o,a=n,s=!1;i.i===3&&(a=new Set(n),n.clear(),s=!0),Or(a,function(c,u){return zc(e,i,n,c,u,o,s)}),fi(e,n,!1),o&&e.u&&Te("Patches").N(i,o,e.u,e.s)}return i.o}function zc(e,t,o,i,n,a,s){if(We(n)){var c=ui(e,n,a&&t&&t.i!==3&&!jr(t.R,i)?a.concat(i):void 0);if(Zc(o,i,c),!We(c))return;e.m=!1}else s&&o.add(n);if(me(n)&&!Zn(n)){if(!e.h.D&&e._<1)return;ui(e,n),t&&t.A.l||fi(e,n)}}function fi(e,t,o){o===void 0&&(o=!1),!e.l&&e.h.D&&e.m&&Kn(t,o)}function Mn(e,t){var o=e[nt];return(o?tr(o):e)[t]}function Hc(e,t){if(t in e)for(var o=Object.getPrototypeOf(e);o;){var i=Object.getOwnPropertyDescriptor(o,t);if(i)return i;o=Object.getPrototypeOf(o)}}function er(e){e.P||(e.P=!0,e.l&&er(e.l))}function Un(e){e.o||(e.o=jn(e.t))}function zn(e,t,o){var i=Vn(t)?Te("MapSet").F(t,o):Gn(t)?Te("MapSet").T(t,o):e.O?function(n,a){var s=Array.isArray(n),c={i:s?1:0,A:a?a.A:Fn(),P:!1,I:!1,R:{},l:a,t:n,k:null,o:null,j:null,C:!1},u=c,p=wo;s&&(u=[c],p=Oo);var h=Proxy.revocable(u,p),y=h.revoke,b=h.proxy;return c.k=b,c.j=y,b}(t,o):Te("ES5").J(t,o);return(o?o.A:Fn()).p.push(i),i}function Wp(e){return We(e)||se(22,e),function t(o){if(!me(o))return o;var i,n=o[nt],a=Zr(o);if(n){if(!n.P&&(n.i<4||!Te("ES5").K(n)))return n.t;n.I=!0,i=Vc(o,a),n.I=!1}else i=Vc(o,a);return Or(i,function(s,c){n&&Bp(n.t,s)===c||Zc(i,s,t(c))}),a===3?new Set(i):i}(e)}function Vc(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return jn(e)}function Yc(){function e(s,c){var u=a[s];return u?u.enumerable=c:a[s]=u={configurable:!0,enumerable:c,get:function(){var p=this[nt];return wo.get(p,s)},set:function(p){var h=this[nt];wo.set(h,s,p)}},u}function t(s){for(var c=s.length-1;c>=0;c--){var u=s[c][nt];if(!u.P)switch(u.i){case 5:i(u)&&er(u);break;case 4:o(u)&&er(u)}}}function o(s){for(var c=s.t,u=s.k,p=Kr(u),h=p.length-1;h>=0;h--){var y=p[h];if(y!==nt){var b=c[y];if(b===void 0&&!jr(c,y))return!0;var x=u[y],S=x&&x[nt];if(S?S.t!==b:!qc(x,b))return!0}}var O=!!c[nt];return p.length!==Kr(c).length+(O?0:1)}function i(s){var c=s.k;if(c.length!==s.t.length)return!0;var u=Object.getOwnPropertyDescriptor(c,c.length-1);if(u&&!u.get)return!0;for(var p=0;p<c.length;p++)if(!c.hasOwnProperty(p))return!0;return!1}function n(s){s.g&&se(3,JSON.stringify(tr(s)))}var a={};Up("ES5",{J:function(s,c){var u=Array.isArray(s),p=function(y,b){if(y){for(var x=Array(b.length),S=0;S<b.length;S++)Object.defineProperty(x,""+S,e(S,!0));return x}var O=Qc(b);delete O[nt];for(var N=Kr(O),_=0;_<N.length;_++){var I=N[_];O[I]=e(I,y||!!O[I].enumerable)}return Object.create(Object.getPrototypeOf(b),O)}(u,s),h={i:u?5:4,A:c?c.A:Fn(),P:!1,I:!1,R:{},l:c,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,nt,{value:h,writable:!0}),p},S:function(s,c,u){u?We(c)&&c[nt].A===s&&t(s.p):(s.u&&function p(h){if(h&&typeof h=="object"){var y=h[nt];if(y){var b=y.t,x=y.k,S=y.R,O=y.i;if(O===4)Or(x,function(z){z!==nt&&(b[z]!==void 0||jr(b,z)?S[z]||p(x[z]):(S[z]=!0,er(y)))}),Or(b,function(z){x[z]!==void 0||jr(x,z)||(S[z]=!1,er(y))});else if(O===5){if(i(y)&&(er(y),S.length=!0),x.length<b.length)for(var N=x.length;N<b.length;N++)S[N]=!1;else for(var _=b.length;_<x.length;_++)S[_]=!0;for(var I=Math.min(x.length,b.length),$=0;$<I;$++)x.hasOwnProperty($)||(S[$]=!0),S[$]===void 0&&p(x[$])}}}}(s.p[0]),t(s.p))},K:function(s){return s.i===4?o(s):i(s)}})}var Gc,Co,qn=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",zp=typeof Map<"u",Hp=typeof Set<"u",jc=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Xc=qn?Symbol.for("immer-nothing"):((Gc={})["immer-nothing"]=!0,Gc),Kc=qn?Symbol.for("immer-draftable"):"__$immer_draftable",nt=qn?Symbol.for("immer-state"):"__$immer_state";var Vp=""+Object.prototype.constructor,Kr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Qc=Object.getOwnPropertyDescriptors||function(e){var t={};return Kr(e).forEach(function(o){t[o]=Object.getOwnPropertyDescriptor(e,o)}),t},Hn={},wo={get:function(e,t){if(t===nt)return e;var o=tr(e);if(!jr(o,t))return function(n,a,s){var c,u=Hc(a,s);return u?"value"in u?u.value:(c=u.get)===null||c===void 0?void 0:c.call(n.k):void 0}(e,o,t);var i=o[t];return e.I||!me(i)?i:i===Mn(e.t,t)?(Un(e),e.o[t]=zn(e.A.h,i,e)):i},has:function(e,t){return t in tr(e)},ownKeys:function(e){return Reflect.ownKeys(tr(e))},set:function(e,t,o){var i=Hc(tr(e),t);if(i?.set)return i.set.call(e.k,o),!0;if(!e.P){var n=Mn(tr(e),t),a=n?.[nt];if(a&&a.t===o)return e.o[t]=o,e.R[t]=!1,!0;if(qc(o,n)&&(o!==void 0||jr(e.t,t)))return!0;Un(e),er(e)}return e.o[t]===o&&(o!==void 0||t in e.o)||Number.isNaN(o)&&Number.isNaN(e.o[t])||(e.o[t]=o,e.R[t]=!0),!0},deleteProperty:function(e,t){return Mn(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,Un(e),er(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var o=tr(e),i=Reflect.getOwnPropertyDescriptor(o,t);return i&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:i.enumerable,value:o[t]}},defineProperty:function(){se(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){se(12)}},Oo={};Or(wo,function(e,t){Oo[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Oo.deleteProperty=function(e,t){return Oo.set.call(this,e,t,void 0)},Oo.set=function(e,t,o){return wo.set.call(this,e[0],t,o,e[0])};var Gp=function(){function e(o){var i=this;this.O=jc,this.D=!0,this.produce=function(n,a,s){if(typeof n=="function"&&typeof a!="function"){var c=a;a=n;var u=i;return function(O){var N=this;O===void 0&&(O=c);for(var _=arguments.length,I=Array(_>1?_-1:0),$=1;$<_;$++)I[$-1]=arguments[$];return u.produce(O,function(z){var H;return(H=a).call.apply(H,[N,z].concat(I))})}}var p;if(typeof a!="function"&&se(6),s!==void 0&&typeof s!="function"&&se(7),me(n)){var h=Wc(i),y=zn(i,n,void 0),b=!0;try{p=a(y),b=!1}finally{b?pi(h):Wn(h)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(O){return $n(h,s),Bn(O,h)},function(O){throw pi(h),O}):($n(h,s),Bn(p,h))}if(!n||typeof n!="object"){if((p=a(n))===void 0&&(p=n),p===Xc&&(p=void 0),i.D&&Kn(p,!0),s){var x=[],S=[];Te("Patches").M(n,p,x,S),s(x,S)}return p}se(21,n)},this.produceWithPatches=function(n,a){if(typeof n=="function")return function(p){for(var h=arguments.length,y=Array(h>1?h-1:0),b=1;b<h;b++)y[b-1]=arguments[b];return i.produceWithPatches(p,function(x){return n.apply(void 0,[x].concat(y))})};var s,c,u=i.produce(n,a,function(p,h){s=p,c=h});return typeof Promise<"u"&&u instanceof Promise?u.then(function(p){return[p,s,c]}):[u,s,c]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var t=e.prototype;return t.createDraft=function(o){me(o)||se(8),We(o)&&(o=Wp(o));var i=Wc(this),n=zn(this,o,void 0);return n[nt].C=!0,Wn(i),n},t.finishDraft=function(o,i){var n=o&&o[nt],a=n.A;return $n(a,i),Bn(void 0,a)},t.setAutoFreeze=function(o){this.D=o},t.setUseProxies=function(o){o&&!jc&&se(20),this.O=o},t.applyPatches=function(o,i){var n;for(n=i.length-1;n>=0;n--){var a=i[n];if(a.path.length===0&&a.op==="replace"){o=a.value;break}}n>-1&&(i=i.slice(n+1));var s=Te("Patches").$;return We(o)?s(o,i):this.produce(o,function(c){return s(c,i)})},e}(),ee=new Gp,jp=ee.produce,p0=ee.produceWithPatches.bind(ee),u0=ee.setAutoFreeze.bind(ee),f0=ee.setUseProxies.bind(ee),h0=ee.applyPatches.bind(ee),y0=ee.createDraft.bind(ee),g0=ee.finishDraft.bind(ee),hi=jp;function Cr(e){"@babel/helpers - typeof";return Cr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cr(e)}function Jc(e,t){if(Cr(e)!="object"||!e)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var i=o.call(e,t||"default");if(Cr(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function td(e){var t=Jc(e,"string");return Cr(t)=="symbol"?t:t+""}function ed(e,t,o){return(t=td(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function rd(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),o.push.apply(o,i)}return o}function Yn(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?rd(Object(o),!0).forEach(function(i){ed(e,i,o[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):rd(Object(o)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(o,i))})}return e}function Mt(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var od=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Xn=function(){return Math.random().toString(36).substring(7).split("").join(".")},yi={INIT:"@@redux/INIT"+Xn(),REPLACE:"@@redux/REPLACE"+Xn(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Xn()}};function Kp(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Qn(e,t,o){var i;if(typeof t=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(Mt(0));if(typeof t=="function"&&typeof o>"u"&&(o=t,t=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(Mt(1));return o(Qn)(e,t)}if(typeof e!="function")throw new Error(Mt(2));var n=e,a=t,s=[],c=s,u=!1;function p(){c===s&&(c=s.slice())}function h(){if(u)throw new Error(Mt(3));return a}function y(O){if(typeof O!="function")throw new Error(Mt(4));if(u)throw new Error(Mt(5));var N=!0;return p(),c.push(O),function(){if(N){if(u)throw new Error(Mt(6));N=!1,p();var I=c.indexOf(O);c.splice(I,1),s=null}}}function b(O){if(!Kp(O))throw new Error(Mt(7));if(typeof O.type>"u")throw new Error(Mt(8));if(u)throw new Error(Mt(9));try{u=!0,a=n(a,O)}finally{u=!1}for(var N=s=c,_=0;_<N.length;_++){var I=N[_];I()}return O}function x(O){if(typeof O!="function")throw new Error(Mt(10));n=O,b({type:yi.REPLACE})}function S(){var O,N=y;return O={subscribe:function(I){if(typeof I!="object"||I===null)throw new Error(Mt(11));function $(){I.next&&I.next(h())}$();var z=N($);return{unsubscribe:z}}},O[od]=function(){return this},O}return b({type:yi.INIT}),i={dispatch:b,subscribe:y,getState:h,replaceReducer:x},i[od]=S,i}function Zp(e){Object.keys(e).forEach(function(t){var o=e[t],i=o(void 0,{type:yi.INIT});if(typeof i>"u")throw new Error(Mt(12));if(typeof o(void 0,{type:yi.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Mt(13))})}function id(e){for(var t=Object.keys(e),o={},i=0;i<t.length;i++){var n=t[i];typeof e[n]=="function"&&(o[n]=e[n])}var a=Object.keys(o),s,c;try{Zp(o)}catch(u){c=u}return function(p,h){if(p===void 0&&(p={}),c)throw c;if(0)var y;for(var b=!1,x={},S=0;S<a.length;S++){var O=a[S],N=o[O],_=p[O],I=N(_,h);if(typeof I>"u"){var $=h&&h.type;throw new Error(Mt(14))}x[O]=I,b=b||I!==_}return b=b||a.length!==Object.keys(p).length,b?x:p}}function qr(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return t.length===0?function(i){return i}:t.length===1?t[0]:t.reduce(function(i,n){return function(){return i(n.apply(void 0,arguments))}})}function nd(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return function(i){return function(){var n=i.apply(void 0,arguments),a=function(){throw new Error(Mt(15))},s={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},c=t.map(function(u){return u(s)});return a=qr.apply(void 0,c)(n.dispatch),Yn(Yn({},n),{},{dispatch:a})}}}function ad(e){var t=function(i){var n=i.dispatch,a=i.getState;return function(s){return function(c){return typeof c=="function"?c(n,a,e):s(c)}}};return t}var sd=ad();sd.withExtraArgument=ad;var Jn=sd;var ud=function(){var e=function(t,o){return e=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])},e(t,o)};return function(t,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");e(t,o);function i(){this.constructor=t}t.prototype=o===null?Object.create(o):(i.prototype=o.prototype,new i)}}(),qp=function(e,t){var o={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,n,a,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(p){return function(h){return u([p,h])}}function u(p){if(i)throw new TypeError("Generator is already executing.");for(;o;)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 o.label++,{value:p[1],done:!1};case 5:o.label++,n=p[1],p=[0];continue;case 7:p=o.ops.pop(),o.trys.pop();continue;default:if(a=o.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){o=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){o.label=p[1];break}if(p[0]===6&&o.label<a[1]){o.label=a[1],a=p;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(p);break}a[2]&&o.ops.pop(),o.trys.pop();continue}p=t.call(e,o)}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}}},Yr=function(e,t){for(var o=0,i=t.length,n=e.length;o<i;o++,n++)e[n]=t[o];return e},Yp=Object.defineProperty,Xp=Object.defineProperties,Qp=Object.getOwnPropertyDescriptors,ld=Object.getOwnPropertySymbols,Jp=Object.prototype.hasOwnProperty,tu=Object.prototype.propertyIsEnumerable,cd=function(e,t,o){return t in e?Yp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o},rr=function(e,t){for(var o in t||(t={}))Jp.call(t,o)&&cd(e,o,t[o]);if(ld)for(var i=0,n=ld(t);i<n.length;i++){var o=n[i];tu.call(t,o)&&cd(e,o,t[o])}return e},ta=function(e,t){return Xp(e,Qp(t))},eu=function(e,t,o){return new Promise(function(i,n){var a=function(u){try{c(o.next(u))}catch(p){n(p)}},s=function(u){try{c(o.throw(u))}catch(p){n(p)}},c=function(u){return u.done?i(u.value):Promise.resolve(u.value).then(a,s)};c((o=o.apply(e,t)).next())})};var ru=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?qr:qr.apply(null,arguments)},k0=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function ou(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var o=t;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return t===o}var iu=function(e){ud(t,e);function t(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var n=e.apply(this,o)||this;return Object.setPrototypeOf(n,t.prototype),n}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return e.prototype.concat.apply(this,o)},t.prototype.prepend=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return o.length===1&&Array.isArray(o[0])?new(t.bind.apply(t,Yr([void 0],o[0].concat(this)))):new(t.bind.apply(t,Yr([void 0],o.concat(this))))},t}(Array),nu=function(e){ud(t,e);function t(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var n=e.apply(this,o)||this;return Object.setPrototypeOf(n,t.prototype),n}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return e.prototype.concat.apply(this,o)},t.prototype.prepend=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return o.length===1&&Array.isArray(o[0])?new(t.bind.apply(t,Yr([void 0],o[0].concat(this)))):new(t.bind.apply(t,Yr([void 0],o.concat(this))))},t}(Array);function oa(e){return me(e)?hi(e,function(){}):e}function au(e){return typeof e=="boolean"}function su(){return function(t){return lu(t)}}function lu(e){e===void 0&&(e={});var t=e.thunk,o=t===void 0?!0:t,i=e.immutableCheck,n=i===void 0?!0:i,a=e.serializableCheck,s=a===void 0?!0:a,c=new iu;if(o&&(au(o)?c.push(Jn):c.push(Jn.withExtraArgument(o.extraArgument))),0){if(n)var u;if(s)var p}return c}var ea=!0;function fd(e){var t=su(),o=e||{},i=o.reducer,n=i===void 0?void 0:i,a=o.middleware,s=a===void 0?t():a,c=o.devTools,u=c===void 0?!0:c,p=o.preloadedState,h=p===void 0?void 0:p,y=o.enhancers,b=y===void 0?void 0:y,x;if(typeof n=="function")x=n;else if(ou(n))x=id(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 S=s;if(typeof S=="function"&&(S=S(t),!ea&&!Array.isArray(S)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!ea&&S.some(function(z){return typeof z!="function"}))throw new Error("each middleware provided to configureStore must be a function");var O=nd.apply(void 0,S),N=qr;u&&(N=ru(rr({trace:!ea},typeof u=="object"&&u)));var _=new nu(O),I=_;Array.isArray(b)?I=Yr([O],b):typeof b=="function"&&(I=b(_));var $=N.apply(void 0,I);return Qn(x,h,$)}function or(e,t){function o(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(t){var a=t.apply(void 0,i);if(!a)throw new Error("prepareAction did not return an object");return rr(rr({type:e,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:e,payload:i[0]}}return o.toString=function(){return""+e},o.type=e,o.match=function(i){return i.type===e},o}function hd(e){var t={},o=[],i,n={addCase:function(a,s){var c=typeof a=="string"?a:a.type;if(c in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[c]=s,n},addMatcher:function(a,s){return o.push({matcher:a,reducer:s}),n},addDefaultCase:function(a){return i=a,n}};return e(n),[t,o,i]}function cu(e){return typeof e=="function"}function du(e,t,o,i){o===void 0&&(o=[]);var n=typeof t=="function"?hd(t):[t,o,i],a=n[0],s=n[1],c=n[2],u;if(cu(e))u=function(){return oa(e())};else{var p=oa(e);u=function(){return p}}function h(y,b){y===void 0&&(y=u());var x=Yr([a[b.type]],s.filter(function(S){var O=S.matcher;return O(b)}).map(function(S){var O=S.reducer;return O}));return x.filter(function(S){return!!S}).length===0&&(x=[c]),x.reduce(function(S,O){if(O)if(We(S)){var N=S,_=O(N,b);return _===void 0?S:_}else{if(me(S))return hi(S,function(I){return O(I,b)});var _=O(S,b);if(_===void 0){if(S===null)return S;throw Error("A case reducer on a non-draftable value must not return undefined")}return _}return S},y)}return h.getInitialState=u,h}function pu(e,t){return e+"/"+t}function yd(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof e.initialState=="function"?e.initialState:oa(e.initialState),i=e.reducers||{},n=Object.keys(i),a={},s={},c={};n.forEach(function(h){var y=i[h],b=pu(t,h),x,S;"reducer"in y?(x=y.reducer,S=y.prepare):x=y,a[h]=x,s[b]=x,c[h]=S?or(b,S):or(b)});function u(){var h=typeof e.extraReducers=="function"?hd(e.extraReducers):[e.extraReducers],y=h[0],b=y===void 0?{}:y,x=h[1],S=x===void 0?[]:x,O=h[2],N=O===void 0?void 0:O,_=rr(rr({},b),s);return du(o,function(I){for(var $ in _)I.addCase($,_[$]);for(var z=0,H=S;z<H.length;z++){var jt=H[z];I.addMatcher(jt.matcher,jt.reducer)}N&&I.addDefaultCase(N)})}var p;return{name:t,reducer:function(h,y){return p||(p=u()),p(h,y)},actions:c,caseReducers:a,getInitialState:function(){return p||(p=u()),p.getInitialState()}}}var uu="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",fu=function(e){e===void 0&&(e=21);for(var t="",o=e;o--;)t+=uu[Math.random()*64|0];return t},hu=["name","message","stack","code"],ra=function(){function e(t,o){this.payload=t,this.meta=o}return e}(),dd=function(){function e(t,o){this.payload=t,this.meta=o}return e}(),yu=function(e){if(typeof e=="object"&&e!==null){for(var t={},o=0,i=hu;o<i.length;o++){var n=i[o];typeof e[n]=="string"&&(t[n]=e[n])}return t}return{message:String(e)}},M0=function(){function e(t,o,i){var n=or(t+"/fulfilled",function(h,y,b,x){return{payload:h,meta:ta(rr({},x||{}),{arg:b,requestId:y,requestStatus:"fulfilled"})}}),a=or(t+"/pending",function(h,y,b){return{payload:void 0,meta:ta(rr({},b||{}),{arg:y,requestId:h,requestStatus:"pending"})}}),s=or(t+"/rejected",function(h,y,b,x,S){return{payload:x,error:(i&&i.serializeError||yu)(h||"Rejected"),meta:ta(rr({},S||{}),{arg:b,requestId:y,rejectedWithValue:!!x,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),c=!1,u=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(y,b,x){var S=i?.idGenerator?i.idGenerator(h):fu(),O=new u,N,_=!1;function I(z){N=z,O.abort()}var $=function(){return eu(this,null,function(){var z,H,jt,ve,Wt,Se,Tt;return qp(this,function(g){switch(g.label){case 0:return g.trys.push([0,4,,5]),ve=(z=i?.condition)==null?void 0:z.call(i,h,{getState:b,extra:x}),mu(ve)?[4,ve]:[3,2];case 1:ve=g.sent(),g.label=2;case 2:if(ve===!1||O.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return _=!0,Wt=new Promise(function(v,P){return O.signal.addEventListener("abort",function(){return P({name:"AbortError",message:N||"Aborted"})})}),y(a(S,h,(H=i?.getPendingMeta)==null?void 0:H.call(i,{requestId:S,arg:h},{getState:b,extra:x}))),[4,Promise.race([Wt,Promise.resolve(o(h,{dispatch:y,getState:b,extra:x,requestId:S,signal:O.signal,abort:I,rejectWithValue:function(v,P){return new ra(v,P)},fulfillWithValue:function(v,P){return new dd(v,P)}})).then(function(v){if(v instanceof ra)throw v;return v instanceof dd?n(v.payload,S,h,v.meta):n(v,S,h)})])];case 3:return jt=g.sent(),[3,5];case 4:return Se=g.sent(),jt=Se instanceof ra?s(null,S,h,Se.payload,Se.meta):s(Se,S,h),[3,5];case 5:return Tt=i&&!i.dispatchConditionRejection&&s.match(jt)&&jt.meta.condition,Tt||y(jt),[2,jt]}})})}();return Object.assign($,{abort:I,requestId:S,arg:h,unwrap:function(){return $.then(gu)}})}}return Object.assign(p,{pending:a,rejected:s,fulfilled:n,typePrefix:t})}return e.withTypes=function(){return e},e}();function gu(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function mu(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var gd="listener",md="completed",bd="cancelled",U0="task-"+bd,F0="task-"+md,W0=gd+"-"+bd,z0=gd+"-"+md;var ia="listenerMiddleware";var H0=or(ia+"/add"),V0=or(ia+"/removeAll"),G0=or(ia+"/remove");var pd,j0=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(pd||(pd=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},bu=function(e){return function(t){setTimeout(t,e)}},K0=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:bu(10);Yc();function xu(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(o,i,n){this.eventBus.addEventListener(o,i,n)}dispatchEvent(o){return this.eventBus.dispatchEvent(o)}removeEventListener(o,i,n){this.eventBus.removeEventListener(o,i,n)}}}var gi=class extends xu(Object){};window.ftReduxStores||(window.ftReduxStores={});var xd=class e extends gi{static get(t){var o;let i=typeof t=="string"?t:t.name,n=typeof t=="string"?void 0:t,a=window.ftReduxStores[i];if(xo(a))return a;if(n==null)return;let s=yd({...n,reducers:(o=n.reducers)!==null&&o!==void 0?o:{}}),c=fd({reducer:(u,p)=>p.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...u,...p.overwrites}:s.reducer(u,p)});return window.ftReduxStores[n.name]=new e(s,c,n.eventBus)}constructor(t,o,i){super(),this.reduxSlice=t,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new si;let n=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,s,c)=>{let u=s,p=a[u];return p?(...h)=>{let y=p(...h.map(n));return this.reduxStore.dispatch(y),y}:h=>{this.setState({[u]:n(h)})}}}),this.eventBus=i??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}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(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var vi=m(R());var mi=class extends Ae{async listMySearches(){let t=T.getState().session;return t?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),5*60*1e3):[]}};var bi=class extends Ae{async listMyBookmarks(){let t=T.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),5*60*1e3):[]}};var Su="ft-user-assets",xi=vi.FtReduxStore.get({name:Su,initialState:{savedSearches:void 0,bookmarks:void 0}}),na=class{constructor(){this.currentSession=T.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new bi,this.savedSearchesService=new mi,T.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:o}=T.getState();(0,vi.deepEqual)((t=this.currentSession)===null||t===void 0?void 0:t.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),xi.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),xi.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();xi.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let o=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;xi.actions.bookmarks(o)}}},vd=new na;var aa=class{addCommand(t,o=!1){T.commands.add(t,o)}consumeCommand(t){return T.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new aa;var Sd=m(R()),sa=class{highlightHtml(t,o,i){(0,Sd.highlightHtml)(t,o,i)}};window.FluidTopicsHighlightHtmlService=new sa;var Od=m(R());var la=class{isDate(t){var o,i,n,a;return(a=(n=((i=(o=T.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&i!==void 0?i:[]).find(c=>c.key===t))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1}format(t,o){var i,n,a;return Od.DateFormatter.format(t,(i=o?.locale)!==null&&i!==void 0?i:T.getState().uiLocale,(n=o?.longFormat)!==null&&n!==void 0?n:!1,(a=o?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new la;var Cd=m(R());var Eo=class{static get(t,o){var i,n,a,s;let c=T.getState(),{lang:u,region:p}=(n=(i=c.defaultLocales)===null||i===void 0?void 0:i.defaultContentLocale)!==null&&n!==void 0?n:{lang:"en",region:"US"};return new Cd.SearchPlaceConverter(c.baseUrl,(s=(a=window.FluidTopicsClientConfiguration)===null||a===void 0?void 0:a.predefinedSorts)!==null&&s!==void 0?s:{},t??20,c.searchInAllLanguagesAllowed,o??`${u}-${p}`)}};var ca=class{urlToSearchRequest(t){return Eo.get().parse(t)}searchRequestToUrl(t){return Eo.get().serialize(t)}};window.FluidTopicsUrlService=new ca;(0,wd.customElement)("ft-app-context")(dt);var _d=m(q());var Ou=m(R());function Ed(e){return e.match(/^[\w-]+\.[\w-]+$/)}var Cu=function(e,t,o,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,o,i);else for(var c=e.length-1;c>=0;c--)(s=e[c])&&(a=(n<3?s(a):n>3?s(t,o,a):s(t,o))||a);return n>3&&a&&Object.defineProperty(t,o,a),a},Ad=Symbol("i18nAttributes"),Rd=Symbol("i18nListAttributes"),Ro=Symbol("i18nProperties"),Si=Symbol("i18nContexts"),Ao=Symbol("i18nUnsubs");function ir(e){var t,o;class i extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[t]=new Map,this[o]=new Map}getI18nService(a){return a??this.useCustomMessageContexts?ii:Vr}i18n(a){var s;this.hasI18nContext(a.context)||this.addI18nContext(a.context,void 0,a.custom);let c=(s=a.args)!==null&&s!==void 0?s:a.argsProvider?a.argsProvider(this):[];return this.getI18nService(a.custom).resolveMessage(a.context,a.key,...c)}customI18n(a,s){if(Ed(a)){let[c,u]=a.split(".");return this.i18n({custom:!0,context:c,key:u,...s})||a}return a}firstUpdated(a){super.firstUpdated(a),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(a){super.update(a),this.updateI18nAttributes((s,c,u)=>a.has(c)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(a){this.updateI18nAttributes((s,c,u)=>{var p;return((p=u?.context)===null||p===void 0?void 0:p.toLowerCase())===a}),this.updateI18nProperties(s=>s.context.toLowerCase()===a),this.requestUpdate()}updateI18nAttributes(a){var s,c;let u=this,p=(h,y,b)=>b?.context&&b.key&&a(h,y,b)?{...b,message:this.i18n({context:b.context,key:b.key,...h})}:b;(s=this[Ad])===null||s===void 0||s.forEach((h,y)=>u[y]=p(h,y,u[y])),(c=this[Rd])===null||c===void 0||c.forEach((h,y)=>{var b;return u[y]=(b=u[y])===null||b===void 0?void 0:b.map(x=>p(h,y,x))})}updateI18nProperties(a){var s;(s=this[Ro])===null||s===void 0||s.forEach((c,u)=>{a(c,u)&&(this[u]=this.i18n(c))})}addI18nMessages(a,s,c){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(a,s,c)}addI18nContext(a,s,c){let u=(typeof a=="string"?a:a.name).toLowerCase();c=typeof a=="string"?c:a.custom,this[Si].set(u,{isCustomContext:c}),this[Ao].has(u)||this[Ao].set(u,this.getI18nService(c).subscribe(u,()=>this.onI18nUpdate(u))),this.getI18nService(c).prepareContext(u,s)}hasI18nContext(a){return this[Si].has(a.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Si].forEach((a,s)=>this.addI18nContext(s,void 0,a.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Ao].forEach(a=>a()),this[Ao].clear()}}return t=Si,o=Ao,Cu([(0,_d.property)({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}var Td=class extends ir(Ci.FtLitElement){},Oi=class extends ir(Ci.FtLitElementRedux){};var To=function(e,t,o,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,o,i);else for(var c=e.length-1;c>=0;c--)(s=e[c])&&(a=(n<3?s(a):n>3?s(t,o,a):s(t,o))||a);return n>3&&a&&Object.defineProperty(t,o,a),a},be=class extends Oi{constructor(){super(),this.editorMode=!1,this.addStore(T)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":wi.nothing:wi.html`
1575
+ `}update(t){var o,i,n,a,s;super.update(t),t.has("baseUrl")&&(T.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&T.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&T.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&T.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&T.actions.noCustom(this.noCustom),t.has("editorMode")&&T.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&T.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&T.actions.session(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(c=>Vr.addContext(c)),t.has("openExternalDocumentInNewTab")&&T.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&T.actions.navigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&T.actions.forcedOffline(this.forcedOffline),t.has("localesConfiguration")&&(T.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),T.actions.availableUiLocales((n=(i=this.localesConfiguration)===null||i===void 0?void 0:i.availableUiLocales)!==null&&n!==void 0?n:[]),T.actions.searchInAllLanguagesAllowed((s=(a=this.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},t.idleTimeoutInMillis),t})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}};dt.elementDefinitions={};dt.styles=Ac;Bt([(0,Xt.property)()],dt.prototype,"baseUrl",void 0);Bt([(0,Xt.property)()],dt.prototype,"apiIntegrationIdentifier",void 0);Bt([(0,Xt.property)()],dt.prototype,"uiLocale",void 0);Bt([(0,ge.jsonProperty)(null)],dt.prototype,"availableUiLocales",void 0);Bt([(0,ge.jsonProperty)(null)],dt.prototype,"metadataConfiguration",void 0);Bt([(0,Xt.property)({type:Boolean})],dt.prototype,"editorMode",void 0);Bt([(0,Xt.property)({type:Boolean})],dt.prototype,"noCustom",void 0);Bt([(0,Xt.property)({type:Boolean})],dt.prototype,"openExternalDocumentInNewTab",void 0);Bt([(0,Xt.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],dt.prototype,"noCustomComponent",void 0);Bt([(0,Xt.property)({type:Boolean})],dt.prototype,"withManualResources",void 0);Bt([(0,Xt.property)({type:Boolean})],dt.prototype,"navigatorOnline",void 0);Bt([(0,Xt.property)({type:Boolean})],dt.prototype,"forcedOffline",void 0);Bt([(0,Xt.property)({type:Object})],dt.prototype,"apiProvider",void 0);Bt([(0,ge.jsonProperty)([])],dt.prototype,"messageContexts",void 0);Bt([(0,ge.jsonProperty)(void 0)],dt.prototype,"session",void 0);Bt([(0,Xt.state)()],dt.prototype,"localesConfiguration",void 0);var Su=m(q());function Dp(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var o,i,n;if(Array.isArray(e)){if(o=e.length,o!=t.length)return!1;for(i=o;i--!==0;)if(!ni(e[i],t[i]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i of e.entries())if(!t.has(i[0]))return!1;for(i of e.entries())if(!ni(i[1],t.get(i[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i of e.entries())if(!t.has(i[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();let a=s=>Object.keys(s).filter(c=>s[c]!=null);if(n=a(e),o=n.length,o!==a(t).length)return!1;for(i=o;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[i]))return!1;for(i=o;i--!==0;){let s=n[i];if(!ni(e[s],t[s]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function ni(e,t){try{return Dp(e,t)}catch{return!1}}function ai(e,t){return!ni(e,t)}var $p=m(q(),1);var si=class{constructor(){this.queue=[]}add(t,o=!1){o&&this.clear(t.type),this.queue.push(t)}consume(t){let o=this.queue.find(i=>i.type===t);return o&&(this.queue=this.queue.filter(i=>i!==o)),o}clear(t){typeof t=="string"?this.queue=this.queue.filter(o=>o.type!==t):this.queue=this.queue.filter(o=>!t.test(o.type))}};var Gr=m(q(),1);var _c=m(q(),1);function Ic(e,t){let o=()=>JSON.parse(JSON.stringify(e));return(0,_c.property)({type:Object,converter:{fromAttribute:i=>{if(i==null)return o();try{return JSON.parse(i)}catch{return o()}},toAttribute:i=>JSON.stringify(i)},hasChanged:ai,...t??{}})}var li=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,o){return this.callbacks=[t],this.debounce(o)}queue(t,o){return this.callbacks.push(t),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((o,i)=>{this.resolvePromise=o,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,o;let i=[...this.callbacks];this.callbacks=[];let n=(t=this.rejectPromise)!==null&&t!==void 0?t:()=>null,a=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let s of i)try{await s()}catch(c){n(c);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 Lc=m(M(),1);var ci=globalThis,Bp=ci.ShadowRoot&&(ci.ShadyCSS===void 0||ci.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Jv=Symbol();var Nc=(e,t)=>{if(Bp)e.adoptedStyleSheets=t.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(let o of t){let i=document.createElement("style"),n=ci.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=o.cssText,e.appendChild(i)}};var di=class extends Lc.LitElement{createRenderRoot(){let t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach(([n,a])=>t.registry.define(n,a)));let o={...t.shadowRootOptions,customElements:t.registry},i=this.renderOptions.creationScope=this.attachShadow(o);return Nc(i,t.elementStyles),i}};function kc(e,t,...o){var i;let n=e.querySelector(t);for(let a of o)n=(i=n?.shadowRoot)===null||i===void 0?void 0:i.querySelector(a);return n}var bo=function(e,t,o,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,o,i);else for(var c=e.length-1;c>=0;c--)(s=e[c])&&(a=(n<3?s(a):n>3?s(t,o,a):s(t,o))||a);return n>3&&a&&Object.defineProperty(t,o,a),a},Bc,Pc=Symbol("constructorPrototype"),Dc=Symbol("constructorName"),Mc=Symbol("exportpartsDebouncer"),$c=Symbol("dynamicDependenciesLoaded"),We=class extends di{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Bc]=new li(5),this[Dc]=this.constructor.name,this[Pc]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Dc]&&Object.setPrototypeOf(this,this[Pc])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(o){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",o)}let t=this.constructor;t[$c]||(t[$c]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate()})}contentAvailableCallback(t){if(t.has("elementToFocus")&&this.elementToFocus!=null){let{element:o,selector:i,shadowPath:n}=this.elementToFocus;if(i!=null){let a=[...n??[],i];o=kc(this.shadowRoot,...a)}o?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||o?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){var o,i,n;if(((i=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(t.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 t,o,i;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(i=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&i!==void 0&&i)&&this[Mc].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(t){var o,i,n,a,s,c;let u=b=>b!=null&&b.trim().length>0,p=t.filter(u).map(b=>b.trim());if(p.length===0){this.removeAttribute("exportparts");return}let h=new Set;for(let b of(i=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let x=(a=(n=b.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&a!==void 0?a:[],S=(c=(s=b.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(O=>O.split(":")[1]))!==null&&c!==void 0?c:[];new Array(...x,...S).filter(u).map(O=>O.trim()).forEach(O=>h.add(O))}if(h.size===0){this.removeAttribute("exportparts");return}let y=[...h.values()].flatMap(b=>p.map(x=>`${b}:${x}--${b}`));this.setAttribute("exportparts",[...this.part,...y].join(", "))}};Bc=Mc;bo([(0,Gr.property)()],We.prototype,"exportpartsPrefix",void 0);bo([Ic([])],We.prototype,"exportpartsPrefixes",void 0);bo([(0,Gr.property)()],We.prototype,"customStylesheet",void 0);bo([(0,Gr.property)()],We.prototype,"elementToFocus",void 0);bo([(0,Gr.state)()],We.prototype,"useAdoptedStyleSheets",void 0);function xo(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var Uc,Fc,Wc,vo=Symbol("internalReduxEventsUnsubscribers"),tr=Symbol("internalStoresUnsubscribers"),Sr=Symbol("internalStores"),So=class extends We{constructor(){super(...arguments),this[Uc]=new Map,this[Fc]=new Map,this[Wc]=new Map}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some(o=>t.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[Sr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Sr].values()][0]}getStore(t){return t==null?this.getUnnamedStore():this[Sr].get(t)}addStore(t,o){var i;o=(i=o??(xo(t)?t.name:void 0))!==null&&i!==void 0?i:"default-store",this.unsubscribeFromStore(o),this[Sr].set(o,t),this.subscribeToStore(o,t),this.updateFromStores()}removeStore(t){let o=typeof t=="string"?t:t.name;this.unsubscribeFromStore(o),this[Sr].delete(o)}setupStores(){this.unsubscribeFromStores(),this[Sr].forEach((t,o)=>this.subscribeToStore(o,t)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((t,o)=>{let i=this.constructor.getPropertyOptions(o);if(!i?.attribute||!this.hasAttribute(typeof i?.attribute=="string"?i.attribute:o)){let n=this.getStore(t.store);n&&(t.store?this[tr].has(t.store):this[tr].size>0)&&(this[o]=t.selector(n.getState(),this))}})}subscribeToStore(t,o){var i;this[tr].set(t,o.subscribe(()=>this.updateFromStores())),this[vo].set(t,[]),xo(o)&&o.eventBus&&((i=this.reduxConstructor.reduxEventListeners)===null||i===void 0||i.forEach((n,a)=>{if(typeof this[a]=="function"&&(!n.store||o.name===n.store)){let s=c=>this[a](c);o.addEventListener(n.eventName,s),this[vo].get(t).push(()=>o.removeEventListener(n.eventName,s))}})),this.onStoreAvailable(t)}unsubscribeFromStores(){this[tr].forEach((t,o)=>this.unsubscribeFromStore(o))}unsubscribeFromStore(t){var o;this[tr].has(t)&&this[tr].get(t)(),this[tr].delete(t),(o=this[vo].get(t))===null||o===void 0||o.forEach(i=>i()),this[vo].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Uc=tr,Fc=Sr,Wc=vo;So.reduxProperties=new Map;So.reduxReactiveProperties=new Set;So.reduxEventListeners=new Map;function se(e){for(var t=arguments.length,o=Array(t>1?t-1:0),i=1;i<t;i++)o[i-1]=arguments[i];if(0)var n,a;throw Error("[Immer] minified error nr: "+e+(o.length?" "+o.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function ze(e){return!!e&&!!e[at]}function me(e){var t;return!!e&&(function(o){if(!o||typeof o!="object")return!1;var i=Object.getPrototypeOf(o);if(i===null)return!0;var n=Object.hasOwnProperty.call(i,"constructor")&&i.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===Gp}(e)||Array.isArray(e)||!!e[Zc]||!!(!((t=e.constructor)===null||t===void 0)&&t[Zc])||Vn(e)||Gn(e))}function Or(e,t,o){o===void 0&&(o=!1),Zr(e)===0?(o?Object.keys:Kr)(e).forEach(function(i){o&&typeof i=="symbol"||t(i,e[i],e)}):e.forEach(function(i,n){return t(n,i,e)})}function Zr(e){var t=e[at];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Vn(e)?2:Gn(e)?3:0}function jr(e,t){return Zr(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Mp(e,t){return Zr(e)===2?e.get(t):e[t]}function qc(e,t,o){var i=Zr(e);i===2?e.set(t,o):i===3?e.add(o):e[t]=o}function Yc(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Vn(e){return Hp&&e instanceof Map}function Gn(e){return Vp&&e instanceof Set}function er(e){return e.o||e.t}function jn(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Jc(e);delete t[at];for(var o=Kr(t),i=0;i<o.length;i++){var n=o[i],a=t[n];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[n]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[n]})}return Object.create(Object.getPrototypeOf(e),t)}function Kn(e,t){return t===void 0&&(t=!1),Zn(e)||ze(e)||!me(e)||(Zr(e)>1&&(e.set=e.add=e.clear=e.delete=Up),Object.freeze(e),t&&Or(e,function(o,i){return Kn(i,!0)},!0)),e}function Up(){se(2)}function Zn(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Te(e){var t=Hn[e];return t||se(18,e),t}function Fp(e,t){Hn[e]||(Hn[e]=t)}function Fn(){return Co}function $n(e,t){t&&(Te("Patches"),e.u=[],e.s=[],e.v=t)}function pi(e){Wn(e),e.p.forEach(Wp),e.p=null}function Wn(e){e===Co&&(Co=e.l)}function zc(e){return Co={p:[],l:Co,h:e,m:!0,_:0}}function Wp(e){var t=e[at];t.i===0||t.i===1?t.j():t.g=!0}function Bn(e,t){t._=t.p.length;var o=t.p[0],i=e!==void 0&&e!==o;return t.h.O||Te("ES5").S(t,e,i),i?(o[at].P&&(pi(t),se(4)),me(e)&&(e=ui(t,e),t.l||fi(t,e)),t.u&&Te("Patches").M(o[at].t,e,t.u,t.s)):e=ui(t,o,[]),pi(t),t.u&&t.v(t.u,t.s),e!==Qc?e:void 0}function ui(e,t,o){if(Zn(t))return t;var i=t[at];if(!i)return Or(t,function(c,u){return Hc(e,i,t,c,u,o)},!0),t;if(i.A!==e)return t;if(!i.P)return fi(e,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var n=i.i===4||i.i===5?i.o=jn(i.k):i.o,a=n,s=!1;i.i===3&&(a=new Set(n),n.clear(),s=!0),Or(a,function(c,u){return Hc(e,i,n,c,u,o,s)}),fi(e,n,!1),o&&e.u&&Te("Patches").N(i,o,e.u,e.s)}return i.o}function Hc(e,t,o,i,n,a,s){if(ze(n)){var c=ui(e,n,a&&t&&t.i!==3&&!jr(t.R,i)?a.concat(i):void 0);if(qc(o,i,c),!ze(c))return;e.m=!1}else s&&o.add(n);if(me(n)&&!Zn(n)){if(!e.h.D&&e._<1)return;ui(e,n),t&&t.A.l||fi(e,n)}}function fi(e,t,o){o===void 0&&(o=!1),!e.l&&e.h.D&&e.m&&Kn(t,o)}function Mn(e,t){var o=e[at];return(o?er(o):e)[t]}function Vc(e,t){if(t in e)for(var o=Object.getPrototypeOf(e);o;){var i=Object.getOwnPropertyDescriptor(o,t);if(i)return i;o=Object.getPrototypeOf(o)}}function rr(e){e.P||(e.P=!0,e.l&&rr(e.l))}function Un(e){e.o||(e.o=jn(e.t))}function zn(e,t,o){var i=Vn(t)?Te("MapSet").F(t,o):Gn(t)?Te("MapSet").T(t,o):e.O?function(n,a){var s=Array.isArray(n),c={i:s?1:0,A:a?a.A:Fn(),P:!1,I:!1,R:{},l:a,t:n,k:null,o:null,j:null,C:!1},u=c,p=wo;s&&(u=[c],p=Oo);var h=Proxy.revocable(u,p),y=h.revoke,b=h.proxy;return c.k=b,c.j=y,b}(t,o):Te("ES5").J(t,o);return(o?o.A:Fn()).p.push(i),i}function zp(e){return ze(e)||se(22,e),function t(o){if(!me(o))return o;var i,n=o[at],a=Zr(o);if(n){if(!n.P&&(n.i<4||!Te("ES5").K(n)))return n.t;n.I=!0,i=Gc(o,a),n.I=!1}else i=Gc(o,a);return Or(i,function(s,c){n&&Mp(n.t,s)===c||qc(i,s,t(c))}),a===3?new Set(i):i}(e)}function Gc(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return jn(e)}function Xc(){function e(s,c){var u=a[s];return u?u.enumerable=c:a[s]=u={configurable:!0,enumerable:c,get:function(){var p=this[at];return wo.get(p,s)},set:function(p){var h=this[at];wo.set(h,s,p)}},u}function t(s){for(var c=s.length-1;c>=0;c--){var u=s[c][at];if(!u.P)switch(u.i){case 5:i(u)&&rr(u);break;case 4:o(u)&&rr(u)}}}function o(s){for(var c=s.t,u=s.k,p=Kr(u),h=p.length-1;h>=0;h--){var y=p[h];if(y!==at){var b=c[y];if(b===void 0&&!jr(c,y))return!0;var x=u[y],S=x&&x[at];if(S?S.t!==b:!Yc(x,b))return!0}}var O=!!c[at];return p.length!==Kr(c).length+(O?0:1)}function i(s){var c=s.k;if(c.length!==s.t.length)return!0;var u=Object.getOwnPropertyDescriptor(c,c.length-1);if(u&&!u.get)return!0;for(var p=0;p<c.length;p++)if(!c.hasOwnProperty(p))return!0;return!1}function n(s){s.g&&se(3,JSON.stringify(er(s)))}var a={};Fp("ES5",{J:function(s,c){var u=Array.isArray(s),p=function(y,b){if(y){for(var x=Array(b.length),S=0;S<b.length;S++)Object.defineProperty(x,""+S,e(S,!0));return x}var O=Jc(b);delete O[at];for(var N=Kr(O),_=0;_<N.length;_++){var I=N[_];O[I]=e(I,y||!!O[I].enumerable)}return Object.create(Object.getPrototypeOf(b),O)}(u,s),h={i:u?5:4,A:c?c.A:Fn(),P:!1,I:!1,R:{},l:c,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,at,{value:h,writable:!0}),p},S:function(s,c,u){u?ze(c)&&c[at].A===s&&t(s.p):(s.u&&function p(h){if(h&&typeof h=="object"){var y=h[at];if(y){var b=y.t,x=y.k,S=y.R,O=y.i;if(O===4)Or(x,function(z){z!==at&&(b[z]!==void 0||jr(b,z)?S[z]||p(x[z]):(S[z]=!0,rr(y)))}),Or(b,function(z){x[z]!==void 0||jr(x,z)||(S[z]=!1,rr(y))});else if(O===5){if(i(y)&&(rr(y),S.length=!0),x.length<b.length)for(var N=x.length;N<b.length;N++)S[N]=!1;else for(var _=b.length;_<x.length;_++)S[_]=!0;for(var I=Math.min(x.length,b.length),$=0;$<I;$++)x.hasOwnProperty($)||(S[$]=!0),S[$]===void 0&&p(x[$])}}}}(s.p[0]),t(s.p))},K:function(s){return s.i===4?o(s):i(s)}})}var jc,Co,qn=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Hp=typeof Map<"u",Vp=typeof Set<"u",Kc=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Qc=qn?Symbol.for("immer-nothing"):((jc={})["immer-nothing"]=!0,jc),Zc=qn?Symbol.for("immer-draftable"):"__$immer_draftable",at=qn?Symbol.for("immer-state"):"__$immer_state";var Gp=""+Object.prototype.constructor,Kr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Jc=Object.getOwnPropertyDescriptors||function(e){var t={};return Kr(e).forEach(function(o){t[o]=Object.getOwnPropertyDescriptor(e,o)}),t},Hn={},wo={get:function(e,t){if(t===at)return e;var o=er(e);if(!jr(o,t))return function(n,a,s){var c,u=Vc(a,s);return u?"value"in u?u.value:(c=u.get)===null||c===void 0?void 0:c.call(n.k):void 0}(e,o,t);var i=o[t];return e.I||!me(i)?i:i===Mn(e.t,t)?(Un(e),e.o[t]=zn(e.A.h,i,e)):i},has:function(e,t){return t in er(e)},ownKeys:function(e){return Reflect.ownKeys(er(e))},set:function(e,t,o){var i=Vc(er(e),t);if(i?.set)return i.set.call(e.k,o),!0;if(!e.P){var n=Mn(er(e),t),a=n?.[at];if(a&&a.t===o)return e.o[t]=o,e.R[t]=!1,!0;if(Yc(o,n)&&(o!==void 0||jr(e.t,t)))return!0;Un(e),rr(e)}return e.o[t]===o&&(o!==void 0||t in e.o)||Number.isNaN(o)&&Number.isNaN(e.o[t])||(e.o[t]=o,e.R[t]=!0),!0},deleteProperty:function(e,t){return Mn(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,Un(e),rr(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var o=er(e),i=Reflect.getOwnPropertyDescriptor(o,t);return i&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:i.enumerable,value:o[t]}},defineProperty:function(){se(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){se(12)}},Oo={};Or(wo,function(e,t){Oo[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Oo.deleteProperty=function(e,t){return Oo.set.call(this,e,t,void 0)},Oo.set=function(e,t,o){return wo.set.call(this,e[0],t,o,e[0])};var jp=function(){function e(o){var i=this;this.O=Kc,this.D=!0,this.produce=function(n,a,s){if(typeof n=="function"&&typeof a!="function"){var c=a;a=n;var u=i;return function(O){var N=this;O===void 0&&(O=c);for(var _=arguments.length,I=Array(_>1?_-1:0),$=1;$<_;$++)I[$-1]=arguments[$];return u.produce(O,function(z){var H;return(H=a).call.apply(H,[N,z].concat(I))})}}var p;if(typeof a!="function"&&se(6),s!==void 0&&typeof s!="function"&&se(7),me(n)){var h=zc(i),y=zn(i,n,void 0),b=!0;try{p=a(y),b=!1}finally{b?pi(h):Wn(h)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(O){return $n(h,s),Bn(O,h)},function(O){throw pi(h),O}):($n(h,s),Bn(p,h))}if(!n||typeof n!="object"){if((p=a(n))===void 0&&(p=n),p===Qc&&(p=void 0),i.D&&Kn(p,!0),s){var x=[],S=[];Te("Patches").M(n,p,x,S),s(x,S)}return p}se(21,n)},this.produceWithPatches=function(n,a){if(typeof n=="function")return function(p){for(var h=arguments.length,y=Array(h>1?h-1:0),b=1;b<h;b++)y[b-1]=arguments[b];return i.produceWithPatches(p,function(x){return n.apply(void 0,[x].concat(y))})};var s,c,u=i.produce(n,a,function(p,h){s=p,c=h});return typeof Promise<"u"&&u instanceof Promise?u.then(function(p){return[p,s,c]}):[u,s,c]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var t=e.prototype;return t.createDraft=function(o){me(o)||se(8),ze(o)&&(o=zp(o));var i=zc(this),n=zn(this,o,void 0);return n[at].C=!0,Wn(i),n},t.finishDraft=function(o,i){var n=o&&o[at],a=n.A;return $n(a,i),Bn(void 0,a)},t.setAutoFreeze=function(o){this.D=o},t.setUseProxies=function(o){o&&!Kc&&se(20),this.O=o},t.applyPatches=function(o,i){var n;for(n=i.length-1;n>=0;n--){var a=i[n];if(a.path.length===0&&a.op==="replace"){o=a.value;break}}n>-1&&(i=i.slice(n+1));var s=Te("Patches").$;return ze(o)?s(o,i):this.produce(o,function(c){return s(c,i)})},e}(),ee=new jp,Kp=ee.produce,f0=ee.produceWithPatches.bind(ee),h0=ee.setAutoFreeze.bind(ee),y0=ee.setUseProxies.bind(ee),g0=ee.applyPatches.bind(ee),m0=ee.createDraft.bind(ee),b0=ee.finishDraft.bind(ee),hi=Kp;function Cr(e){"@babel/helpers - typeof";return Cr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cr(e)}function td(e,t){if(Cr(e)!="object"||!e)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var i=o.call(e,t||"default");if(Cr(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ed(e){var t=td(e,"string");return Cr(t)=="symbol"?t:t+""}function rd(e,t,o){return(t=ed(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function od(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),o.push.apply(o,i)}return o}function Yn(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?od(Object(o),!0).forEach(function(i){rd(e,i,o[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):od(Object(o)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(o,i))})}return e}function Mt(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var id=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Xn=function(){return Math.random().toString(36).substring(7).split("").join(".")},yi={INIT:"@@redux/INIT"+Xn(),REPLACE:"@@redux/REPLACE"+Xn(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Xn()}};function Zp(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Qn(e,t,o){var i;if(typeof t=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(Mt(0));if(typeof t=="function"&&typeof o>"u"&&(o=t,t=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(Mt(1));return o(Qn)(e,t)}if(typeof e!="function")throw new Error(Mt(2));var n=e,a=t,s=[],c=s,u=!1;function p(){c===s&&(c=s.slice())}function h(){if(u)throw new Error(Mt(3));return a}function y(O){if(typeof O!="function")throw new Error(Mt(4));if(u)throw new Error(Mt(5));var N=!0;return p(),c.push(O),function(){if(N){if(u)throw new Error(Mt(6));N=!1,p();var I=c.indexOf(O);c.splice(I,1),s=null}}}function b(O){if(!Zp(O))throw new Error(Mt(7));if(typeof O.type>"u")throw new Error(Mt(8));if(u)throw new Error(Mt(9));try{u=!0,a=n(a,O)}finally{u=!1}for(var N=s=c,_=0;_<N.length;_++){var I=N[_];I()}return O}function x(O){if(typeof O!="function")throw new Error(Mt(10));n=O,b({type:yi.REPLACE})}function S(){var O,N=y;return O={subscribe:function(I){if(typeof I!="object"||I===null)throw new Error(Mt(11));function $(){I.next&&I.next(h())}$();var z=N($);return{unsubscribe:z}}},O[id]=function(){return this},O}return b({type:yi.INIT}),i={dispatch:b,subscribe:y,getState:h,replaceReducer:x},i[id]=S,i}function qp(e){Object.keys(e).forEach(function(t){var o=e[t],i=o(void 0,{type:yi.INIT});if(typeof i>"u")throw new Error(Mt(12));if(typeof o(void 0,{type:yi.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Mt(13))})}function nd(e){for(var t=Object.keys(e),o={},i=0;i<t.length;i++){var n=t[i];typeof e[n]=="function"&&(o[n]=e[n])}var a=Object.keys(o),s,c;try{qp(o)}catch(u){c=u}return function(p,h){if(p===void 0&&(p={}),c)throw c;if(0)var y;for(var b=!1,x={},S=0;S<a.length;S++){var O=a[S],N=o[O],_=p[O],I=N(_,h);if(typeof I>"u"){var $=h&&h.type;throw new Error(Mt(14))}x[O]=I,b=b||I!==_}return b=b||a.length!==Object.keys(p).length,b?x:p}}function qr(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return t.length===0?function(i){return i}:t.length===1?t[0]:t.reduce(function(i,n){return function(){return i(n.apply(void 0,arguments))}})}function ad(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return function(i){return function(){var n=i.apply(void 0,arguments),a=function(){throw new Error(Mt(15))},s={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},c=t.map(function(u){return u(s)});return a=qr.apply(void 0,c)(n.dispatch),Yn(Yn({},n),{},{dispatch:a})}}}function sd(e){var t=function(i){var n=i.dispatch,a=i.getState;return function(s){return function(c){return typeof c=="function"?c(n,a,e):s(c)}}};return t}var ld=sd();ld.withExtraArgument=sd;var Jn=ld;var fd=function(){var e=function(t,o){return e=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])},e(t,o)};return function(t,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");e(t,o);function i(){this.constructor=t}t.prototype=o===null?Object.create(o):(i.prototype=o.prototype,new i)}}(),Yp=function(e,t){var o={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,n,a,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(p){return function(h){return u([p,h])}}function u(p){if(i)throw new TypeError("Generator is already executing.");for(;o;)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 o.label++,{value:p[1],done:!1};case 5:o.label++,n=p[1],p=[0];continue;case 7:p=o.ops.pop(),o.trys.pop();continue;default:if(a=o.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){o=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){o.label=p[1];break}if(p[0]===6&&o.label<a[1]){o.label=a[1],a=p;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(p);break}a[2]&&o.ops.pop(),o.trys.pop();continue}p=t.call(e,o)}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}}},Yr=function(e,t){for(var o=0,i=t.length,n=e.length;o<i;o++,n++)e[n]=t[o];return e},Xp=Object.defineProperty,Qp=Object.defineProperties,Jp=Object.getOwnPropertyDescriptors,cd=Object.getOwnPropertySymbols,tu=Object.prototype.hasOwnProperty,eu=Object.prototype.propertyIsEnumerable,dd=function(e,t,o){return t in e?Xp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o},or=function(e,t){for(var o in t||(t={}))tu.call(t,o)&&dd(e,o,t[o]);if(cd)for(var i=0,n=cd(t);i<n.length;i++){var o=n[i];eu.call(t,o)&&dd(e,o,t[o])}return e},ta=function(e,t){return Qp(e,Jp(t))},ru=function(e,t,o){return new Promise(function(i,n){var a=function(u){try{c(o.next(u))}catch(p){n(p)}},s=function(u){try{c(o.throw(u))}catch(p){n(p)}},c=function(u){return u.done?i(u.value):Promise.resolve(u.value).then(a,s)};c((o=o.apply(e,t)).next())})};var ou=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?qr:qr.apply(null,arguments)},$0=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function iu(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var o=t;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return t===o}var nu=function(e){fd(t,e);function t(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var n=e.apply(this,o)||this;return Object.setPrototypeOf(n,t.prototype),n}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return e.prototype.concat.apply(this,o)},t.prototype.prepend=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return o.length===1&&Array.isArray(o[0])?new(t.bind.apply(t,Yr([void 0],o[0].concat(this)))):new(t.bind.apply(t,Yr([void 0],o.concat(this))))},t}(Array),au=function(e){fd(t,e);function t(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var n=e.apply(this,o)||this;return Object.setPrototypeOf(n,t.prototype),n}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return e.prototype.concat.apply(this,o)},t.prototype.prepend=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return o.length===1&&Array.isArray(o[0])?new(t.bind.apply(t,Yr([void 0],o[0].concat(this)))):new(t.bind.apply(t,Yr([void 0],o.concat(this))))},t}(Array);function oa(e){return me(e)?hi(e,function(){}):e}function su(e){return typeof e=="boolean"}function lu(){return function(t){return cu(t)}}function cu(e){e===void 0&&(e={});var t=e.thunk,o=t===void 0?!0:t,i=e.immutableCheck,n=i===void 0?!0:i,a=e.serializableCheck,s=a===void 0?!0:a,c=new nu;if(o&&(su(o)?c.push(Jn):c.push(Jn.withExtraArgument(o.extraArgument))),0){if(n)var u;if(s)var p}return c}var ea=!0;function hd(e){var t=lu(),o=e||{},i=o.reducer,n=i===void 0?void 0:i,a=o.middleware,s=a===void 0?t():a,c=o.devTools,u=c===void 0?!0:c,p=o.preloadedState,h=p===void 0?void 0:p,y=o.enhancers,b=y===void 0?void 0:y,x;if(typeof n=="function")x=n;else if(iu(n))x=nd(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 S=s;if(typeof S=="function"&&(S=S(t),!ea&&!Array.isArray(S)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!ea&&S.some(function(z){return typeof z!="function"}))throw new Error("each middleware provided to configureStore must be a function");var O=ad.apply(void 0,S),N=qr;u&&(N=ou(or({trace:!ea},typeof u=="object"&&u)));var _=new au(O),I=_;Array.isArray(b)?I=Yr([O],b):typeof b=="function"&&(I=b(_));var $=N.apply(void 0,I);return Qn(x,h,$)}function ir(e,t){function o(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(t){var a=t.apply(void 0,i);if(!a)throw new Error("prepareAction did not return an object");return or(or({type:e,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:e,payload:i[0]}}return o.toString=function(){return""+e},o.type=e,o.match=function(i){return i.type===e},o}function yd(e){var t={},o=[],i,n={addCase:function(a,s){var c=typeof a=="string"?a:a.type;if(c in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[c]=s,n},addMatcher:function(a,s){return o.push({matcher:a,reducer:s}),n},addDefaultCase:function(a){return i=a,n}};return e(n),[t,o,i]}function du(e){return typeof e=="function"}function pu(e,t,o,i){o===void 0&&(o=[]);var n=typeof t=="function"?yd(t):[t,o,i],a=n[0],s=n[1],c=n[2],u;if(du(e))u=function(){return oa(e())};else{var p=oa(e);u=function(){return p}}function h(y,b){y===void 0&&(y=u());var x=Yr([a[b.type]],s.filter(function(S){var O=S.matcher;return O(b)}).map(function(S){var O=S.reducer;return O}));return x.filter(function(S){return!!S}).length===0&&(x=[c]),x.reduce(function(S,O){if(O)if(ze(S)){var N=S,_=O(N,b);return _===void 0?S:_}else{if(me(S))return hi(S,function(I){return O(I,b)});var _=O(S,b);if(_===void 0){if(S===null)return S;throw Error("A case reducer on a non-draftable value must not return undefined")}return _}return S},y)}return h.getInitialState=u,h}function uu(e,t){return e+"/"+t}function gd(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof e.initialState=="function"?e.initialState:oa(e.initialState),i=e.reducers||{},n=Object.keys(i),a={},s={},c={};n.forEach(function(h){var y=i[h],b=uu(t,h),x,S;"reducer"in y?(x=y.reducer,S=y.prepare):x=y,a[h]=x,s[b]=x,c[h]=S?ir(b,S):ir(b)});function u(){var h=typeof e.extraReducers=="function"?yd(e.extraReducers):[e.extraReducers],y=h[0],b=y===void 0?{}:y,x=h[1],S=x===void 0?[]:x,O=h[2],N=O===void 0?void 0:O,_=or(or({},b),s);return pu(o,function(I){for(var $ in _)I.addCase($,_[$]);for(var z=0,H=S;z<H.length;z++){var jt=H[z];I.addMatcher(jt.matcher,jt.reducer)}N&&I.addDefaultCase(N)})}var p;return{name:t,reducer:function(h,y){return p||(p=u()),p(h,y)},actions:c,caseReducers:a,getInitialState:function(){return p||(p=u()),p.getInitialState()}}}var fu="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",hu=function(e){e===void 0&&(e=21);for(var t="",o=e;o--;)t+=fu[Math.random()*64|0];return t},yu=["name","message","stack","code"],ra=function(){function e(t,o){this.payload=t,this.meta=o}return e}(),pd=function(){function e(t,o){this.payload=t,this.meta=o}return e}(),gu=function(e){if(typeof e=="object"&&e!==null){for(var t={},o=0,i=yu;o<i.length;o++){var n=i[o];typeof e[n]=="string"&&(t[n]=e[n])}return t}return{message:String(e)}},F0=function(){function e(t,o,i){var n=ir(t+"/fulfilled",function(h,y,b,x){return{payload:h,meta:ta(or({},x||{}),{arg:b,requestId:y,requestStatus:"fulfilled"})}}),a=ir(t+"/pending",function(h,y,b){return{payload:void 0,meta:ta(or({},b||{}),{arg:y,requestId:h,requestStatus:"pending"})}}),s=ir(t+"/rejected",function(h,y,b,x,S){return{payload:x,error:(i&&i.serializeError||gu)(h||"Rejected"),meta:ta(or({},S||{}),{arg:b,requestId:y,rejectedWithValue:!!x,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),c=!1,u=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(y,b,x){var S=i?.idGenerator?i.idGenerator(h):hu(),O=new u,N,_=!1;function I(z){N=z,O.abort()}var $=function(){return ru(this,null,function(){var z,H,jt,ve,Wt,Se,Tt;return Yp(this,function(g){switch(g.label){case 0:return g.trys.push([0,4,,5]),ve=(z=i?.condition)==null?void 0:z.call(i,h,{getState:b,extra:x}),bu(ve)?[4,ve]:[3,2];case 1:ve=g.sent(),g.label=2;case 2:if(ve===!1||O.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return _=!0,Wt=new Promise(function(v,k){return O.signal.addEventListener("abort",function(){return k({name:"AbortError",message:N||"Aborted"})})}),y(a(S,h,(H=i?.getPendingMeta)==null?void 0:H.call(i,{requestId:S,arg:h},{getState:b,extra:x}))),[4,Promise.race([Wt,Promise.resolve(o(h,{dispatch:y,getState:b,extra:x,requestId:S,signal:O.signal,abort:I,rejectWithValue:function(v,k){return new ra(v,k)},fulfillWithValue:function(v,k){return new pd(v,k)}})).then(function(v){if(v instanceof ra)throw v;return v instanceof pd?n(v.payload,S,h,v.meta):n(v,S,h)})])];case 3:return jt=g.sent(),[3,5];case 4:return Se=g.sent(),jt=Se instanceof ra?s(null,S,h,Se.payload,Se.meta):s(Se,S,h),[3,5];case 5:return Tt=i&&!i.dispatchConditionRejection&&s.match(jt)&&jt.meta.condition,Tt||y(jt),[2,jt]}})})}();return Object.assign($,{abort:I,requestId:S,arg:h,unwrap:function(){return $.then(mu)}})}}return Object.assign(p,{pending:a,rejected:s,fulfilled:n,typePrefix:t})}return e.withTypes=function(){return e},e}();function mu(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function bu(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var md="listener",bd="completed",xd="cancelled",W0="task-"+xd,z0="task-"+bd,H0=md+"-"+xd,V0=md+"-"+bd;var ia="listenerMiddleware";var G0=ir(ia+"/add"),j0=ir(ia+"/removeAll"),K0=ir(ia+"/remove");var ud,Z0=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(ud||(ud=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},xu=function(e){return function(t){setTimeout(t,e)}},q0=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:xu(10);Xc();function vu(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(o,i,n){this.eventBus.addEventListener(o,i,n)}dispatchEvent(o){return this.eventBus.dispatchEvent(o)}removeEventListener(o,i,n){this.eventBus.removeEventListener(o,i,n)}}}var gi=class extends vu(Object){};window.ftReduxStores||(window.ftReduxStores={});var vd=class e extends gi{static get(t){var o;let i=typeof t=="string"?t:t.name,n=typeof t=="string"?void 0:t,a=window.ftReduxStores[i];if(xo(a))return a;if(n==null)return;let s=gd({...n,reducers:(o=n.reducers)!==null&&o!==void 0?o:{}}),c=hd({reducer:(u,p)=>p.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...u,...p.overwrites}:s.reducer(u,p)});return window.ftReduxStores[n.name]=new e(s,c,n.eventBus)}constructor(t,o,i){super(),this.reduxSlice=t,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new si;let n=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,s,c)=>{let u=s,p=a[u];return p?(...h)=>{let y=p(...h.map(n));return this.reduxStore.dispatch(y),y}:h=>{this.setState({[u]:n(h)})}}}),this.eventBus=i??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}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(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var vi=m(R());var mi=class extends Ae{async listMySearches(){let{session:t}=T.getState();return Ne(t,et.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),5*60*1e3):[]}};var bi=class extends Ae{async listMyBookmarks(){let t=T.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),5*60*1e3):[]}};var Ou="ft-user-assets",xi=vi.FtReduxStore.get({name:Ou,initialState:{savedSearches:void 0,bookmarks:void 0}}),na=class{constructor(){this.currentSession=T.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new bi,this.savedSearchesService=new mi,T.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:o}=T.getState();(0,vi.deepEqual)((t=this.currentSession)===null||t===void 0?void 0:t.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),xi.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),xi.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();xi.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let o=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;xi.actions.bookmarks(o)}}},Sd=new na;var aa=class{addCommand(t,o=!1){T.commands.add(t,o)}consumeCommand(t){return T.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new aa;var Od=m(R()),sa=class{highlightHtml(t,o,i){(0,Od.highlightHtml)(t,o,i)}};window.FluidTopicsHighlightHtmlService=new sa;var Cd=m(R());var la=class{isDate(t){var o,i,n,a;return(a=(n=((i=(o=T.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&i!==void 0?i:[]).find(c=>c.key===t))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1}format(t,o){var i,n,a;return Cd.DateFormatter.format(t,(i=o?.locale)!==null&&i!==void 0?i:T.getState().uiLocale,(n=o?.longFormat)!==null&&n!==void 0?n:!1,(a=o?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new la;var wd=m(R());var Eo=class{static get(t,o){var i,n,a,s;let c=T.getState(),{lang:u,region:p}=(n=(i=c.defaultLocales)===null||i===void 0?void 0:i.defaultContentLocale)!==null&&n!==void 0?n:{lang:"en",region:"US"};return new wd.SearchPlaceConverter(c.baseUrl,(s=(a=window.FluidTopicsClientConfiguration)===null||a===void 0?void 0:a.predefinedSorts)!==null&&s!==void 0?s:{},t??20,c.searchInAllLanguagesAllowed,o??`${u}-${p}`)}};var ca=class{urlToSearchRequest(t){return Eo.get().parse(t)}searchRequestToUrl(t){return Eo.get().serialize(t)}};window.FluidTopicsUrlService=new ca;(0,Ed.customElement)("ft-app-context")(dt);var Id=m(q());var Cu=m(R());function Ad(e){return e.match(/^[\w-]+\.[\w-]+$/)}var wu=function(e,t,o,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,o,i);else for(var c=e.length-1;c>=0;c--)(s=e[c])&&(a=(n<3?s(a):n>3?s(t,o,a):s(t,o))||a);return n>3&&a&&Object.defineProperty(t,o,a),a},Rd=Symbol("i18nAttributes"),Td=Symbol("i18nListAttributes"),Ro=Symbol("i18nProperties"),Si=Symbol("i18nContexts"),Ao=Symbol("i18nUnsubs");function nr(e){var t,o;class i extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[t]=new Map,this[o]=new Map}getI18nService(a){return a??this.useCustomMessageContexts?ii:Vr}i18n(a){var s;this.hasI18nContext(a.context)||this.addI18nContext(a.context,void 0,a.custom);let c=(s=a.args)!==null&&s!==void 0?s:a.argsProvider?a.argsProvider(this):[];return this.getI18nService(a.custom).resolveMessage(a.context,a.key,...c)}customI18n(a,s){if(Ad(a)){let[c,u]=a.split(".");return this.i18n({custom:!0,context:c,key:u,...s})||a}return a}firstUpdated(a){super.firstUpdated(a),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(a){super.update(a),this.updateI18nAttributes((s,c,u)=>a.has(c)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(a){this.updateI18nAttributes((s,c,u)=>{var p;return((p=u?.context)===null||p===void 0?void 0:p.toLowerCase())===a}),this.updateI18nProperties(s=>s.context.toLowerCase()===a),this.requestUpdate()}updateI18nAttributes(a){var s,c;let u=this,p=(h,y,b)=>b?.context&&b.key&&a(h,y,b)?{...b,message:this.i18n({context:b.context,key:b.key,...h})}:b;(s=this[Rd])===null||s===void 0||s.forEach((h,y)=>u[y]=p(h,y,u[y])),(c=this[Td])===null||c===void 0||c.forEach((h,y)=>{var b;return u[y]=(b=u[y])===null||b===void 0?void 0:b.map(x=>p(h,y,x))})}updateI18nProperties(a){var s;(s=this[Ro])===null||s===void 0||s.forEach((c,u)=>{a(c,u)&&(this[u]=this.i18n(c))})}addI18nMessages(a,s,c){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(a,s,c)}addI18nContext(a,s,c){let u=(typeof a=="string"?a:a.name).toLowerCase();c=typeof a=="string"?c:a.custom,this[Si].set(u,{isCustomContext:c}),this[Ao].has(u)||this[Ao].set(u,this.getI18nService(c).subscribe(u,()=>this.onI18nUpdate(u))),this.getI18nService(c).prepareContext(u,s)}hasI18nContext(a){return this[Si].has(a.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Si].forEach((a,s)=>this.addI18nContext(s,void 0,a.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Ao].forEach(a=>a()),this[Ao].clear()}}return t=Si,o=Ao,wu([(0,Id.property)({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}var _d=class extends nr(Ci.FtLitElement){},Oi=class extends nr(Ci.FtLitElementRedux){};var To=function(e,t,o,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,o,i);else for(var c=e.length-1;c>=0;c--)(s=e[c])&&(a=(n<3?s(a):n>3?s(t,o,a):s(t,o))||a);return n>3&&a&&Object.defineProperty(t,o,a),a},be=class extends Oi{constructor(){super(),this.editorMode=!1,this.addStore(T)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":wi.nothing:wi.html`
1576
1576
  <span class="ft-i18n">
1577
1577
  ${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
1578
1578
  </span>
1579
- `}update(t){var o;super.update(t),["context","key","defaultMessage"].some(i=>t.has(i))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(o=this.defaultMessage)!==null&&o!==void 0?o:""})}};be.elementDefinitions={};be.styles=Cc;To([(0,Ai.redux)()],be.prototype,"editorMode",void 0);To([(0,Ei.property)()],be.prototype,"context",void 0);To([(0,Ei.property)()],be.prototype,"key",void 0);To([(0,Ai.jsonProperty)([])],be.prototype,"args",void 0);To([(0,Ei.property)()],be.prototype,"defaultMessage",void 0);var nr=class e{static build(t){return new e(t)}static buildCustom(t){return new e(t,!0)}static fromGwt(t){return new e(t)}get service(){return this.custom?ii:Vr}constructor(t,o=!1){this.name=t,this.custom=o,this.properties=new Proxy({},{get:(i,n)=>{let a=n;return s=>({context:this.name,key:a,custom:this.custom,args:typeof s=="function"?void 0:s,argsProvider:typeof s=="function"?s:void 0})}}),this.messages=new Proxy({},{get:(i,n)=>(...a)=>this.service.resolveMessage(this.name,n,...a)}),this.rawMessages=new Proxy({},{get:(i,n)=>this.service.resolveRawMessage(this.name,n)})}};var Ri=(e,t)=>(o,i)=>{var n,a;o.constructor.createProperty(i,t??{attribute:!1,type:String});let s={...e,key:(n=e.key)!==null&&n!==void 0?n:i};o[Ro]=(a=o[Ro])!==null&&a!==void 0?a:new Map,o[Ro].set(i,s)};(0,Id.customElement)("ft-i18n")(be);var G=nr.build("integratedFeedbackComponent"),Nd={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 pa=m(R());var Et=m(M()),W=m(q()),Md=m(Nn()),Ud=m(Ne());var Ti=e=>e??vt;var ar=m(R());var Ld=m(M()),D=m(R());var F={fontSize:D.FtCssVariableFactory.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:D.FtCssVariableFactory.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:D.FtCssVariableFactory.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:D.FtCssVariableFactory.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:D.FtCssVariableFactory.extend("--ft-text-field-helper-color","",D.designSystemVariables.colorOnSurfaceMedium),colorPrimary:D.FtCssVariableFactory.external(D.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:D.FtCssVariableFactory.external(D.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:D.FtCssVariableFactory.external(D.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:D.FtCssVariableFactory.external(D.designSystemVariables.borderRadiusS,"Design system"),colorError:D.FtCssVariableFactory.external(D.designSystemVariables.colorError,"Design system"),prefixColor:D.FtCssVariableFactory.extend("--ft-text-field-prefix-color","",D.designSystemVariables.colorOnSurfaceMedium),iconColor:D.FtCssVariableFactory.extend("--ft-text-field-icon-color","",D.designSystemVariables.colorOnSurfaceMedium),floatingZIndex:D.FtCssVariableFactory.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),backgroundColor:D.FtCssVariableFactory.extend("--ft-text-field-background-color","",D.designSystemVariables.colorSurface),colorOutline:D.FtCssVariableFactory.external(D.designSystemVariables.colorOutline,"Design system"),elevation02:D.FtCssVariableFactory.external(D.designSystemVariables.elevation02,"Design system"),suggestSize:D.FtCssVariableFactory.create("--ft-text-field-suggest-size","","SIZE","300px")},Pd=Ld.css`
1579
+ `}update(t){var o;super.update(t),["context","key","defaultMessage"].some(i=>t.has(i))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(o=this.defaultMessage)!==null&&o!==void 0?o:""})}};be.elementDefinitions={};be.styles=wc;To([(0,Ai.redux)()],be.prototype,"editorMode",void 0);To([(0,Ei.property)()],be.prototype,"context",void 0);To([(0,Ei.property)()],be.prototype,"key",void 0);To([(0,Ai.jsonProperty)([])],be.prototype,"args",void 0);To([(0,Ei.property)()],be.prototype,"defaultMessage",void 0);var ar=class e{static build(t){return new e(t)}static buildCustom(t){return new e(t,!0)}static fromGwt(t){return new e(t)}get service(){return this.custom?ii:Vr}constructor(t,o=!1){this.name=t,this.custom=o,this.properties=new Proxy({},{get:(i,n)=>{let a=n;return s=>({context:this.name,key:a,custom:this.custom,args:typeof s=="function"?void 0:s,argsProvider:typeof s=="function"?s:void 0})}}),this.messages=new Proxy({},{get:(i,n)=>(...a)=>this.service.resolveMessage(this.name,n,...a)}),this.rawMessages=new Proxy({},{get:(i,n)=>this.service.resolveRawMessage(this.name,n)})}};var Ri=(e,t)=>(o,i)=>{var n,a;o.constructor.createProperty(i,t??{attribute:!1,type:String});let s={...e,key:(n=e.key)!==null&&n!==void 0?n:i};o[Ro]=(a=o[Ro])!==null&&a!==void 0?a:new Map,o[Ro].set(i,s)};(0,Nd.customElement)("ft-i18n")(be);var G=ar.build("integratedFeedbackComponent"),Ld={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 pa=m(R());var Et=m(M()),W=m(q()),Ud=m(Nn()),Fd=m(Le());var Ti=e=>e??vt;var sr=m(R());var kd=m(M()),D=m(R());var F={fontSize:D.FtCssVariableFactory.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:D.FtCssVariableFactory.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:D.FtCssVariableFactory.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:D.FtCssVariableFactory.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:D.FtCssVariableFactory.extend("--ft-text-field-helper-color","",D.designSystemVariables.colorOnSurfaceMedium),colorPrimary:D.FtCssVariableFactory.external(D.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:D.FtCssVariableFactory.external(D.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:D.FtCssVariableFactory.external(D.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:D.FtCssVariableFactory.external(D.designSystemVariables.borderRadiusS,"Design system"),colorError:D.FtCssVariableFactory.external(D.designSystemVariables.colorError,"Design system"),prefixColor:D.FtCssVariableFactory.extend("--ft-text-field-prefix-color","",D.designSystemVariables.colorOnSurfaceMedium),iconColor:D.FtCssVariableFactory.extend("--ft-text-field-icon-color","",D.designSystemVariables.colorOnSurfaceMedium),floatingZIndex:D.FtCssVariableFactory.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),backgroundColor:D.FtCssVariableFactory.extend("--ft-text-field-background-color","",D.designSystemVariables.colorSurface),colorOutline:D.FtCssVariableFactory.external(D.designSystemVariables.colorOutline,"Design system"),elevation02:D.FtCssVariableFactory.external(D.designSystemVariables.elevation02,"Design system"),suggestSize:D.FtCssVariableFactory.create("--ft-text-field-suggest-size","","SIZE","300px")},Pd=kd.css`
1580
1580
  *:focus {
1581
1581
  outline: none;
1582
1582
  }
@@ -1590,11 +1590,11 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1590
1590
  }
1591
1591
 
1592
1592
  ft-input-label {
1593
- ${(0,D.setVariable)(k.fontSize,F.fontSize)};
1594
- ${(0,D.setVariable)(k.raisedFontSize,F.labelSize)};
1595
- ${(0,D.setVariable)(k.verticalSpacing,F.verticalSpacing)};
1596
- ${(0,D.setVariable)(k.horizontalSpacing,F.horizontalSpacing)};
1597
- ${(0,D.setVariable)(k.backgroundColor,F.backgroundColor)};
1593
+ ${(0,D.setVariable)(P.fontSize,F.fontSize)};
1594
+ ${(0,D.setVariable)(P.raisedFontSize,F.labelSize)};
1595
+ ${(0,D.setVariable)(P.verticalSpacing,F.verticalSpacing)};
1596
+ ${(0,D.setVariable)(P.horizontalSpacing,F.horizontalSpacing)};
1597
+ ${(0,D.setVariable)(P.backgroundColor,F.backgroundColor)};
1598
1598
  }
1599
1599
 
1600
1600
  .ft-text-field--main-panel {
@@ -1673,8 +1673,8 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1673
1673
  }
1674
1674
 
1675
1675
  .ft-text-field:not(.ft-text-field--disabled):focus-within ft-input-label {
1676
- ${(0,D.setVariable)(k.borderColor,F.colorPrimary)};
1677
- ${(0,D.setVariable)(k.textColor,F.colorPrimary)};
1676
+ ${(0,D.setVariable)(P.borderColor,F.colorPrimary)};
1677
+ ${(0,D.setVariable)(P.textColor,F.colorPrimary)};
1678
1678
  }
1679
1679
 
1680
1680
  .ft-text-field--filled .ft-text-field--input-panel {
@@ -1729,13 +1729,13 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1729
1729
  }
1730
1730
 
1731
1731
  .ft-text-field--with-icon {
1732
- ${(0,D.setVariable)(k.labelMaxWidth,`calc(100% - ${St.size} - ${k.horizontalSpacing})`)};
1732
+ ${(0,D.setVariable)(P.labelMaxWidth,`calc(100% - ${St.size} - ${P.horizontalSpacing})`)};
1733
1733
  }
1734
1734
 
1735
1735
  .ft-text-field--with-password ft-icon:hover {
1736
1736
  cursor: pointer;
1737
1737
  }
1738
- `;var $d=m(R()),_o=m(M()),wr=m(q());var kd=m(M());var Dd=kd.css`
1738
+ `;var Bd=m(R()),_o=m(M()),wr=m(q());var Dd=m(M());var $d=Dd.css`
1739
1739
  .ft-text-field-suggestion {
1740
1740
  position: relative;
1741
1741
  padding: 8px 16px;
@@ -1771,8 +1771,8 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1771
1771
  slot {
1772
1772
  pointer-events: none;
1773
1773
  }
1774
- `;var Bd=m(Ne()),_i=function(e,t,o,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,o,i);else for(var c=e.length-1;c>=0;c--)(s=e[c])&&(a=(n<3?s(a):n>3?s(t,o,a):s(t,o))||a);return n>3&&a&&Object.defineProperty(t,o,a),a},da=class extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t,bubbles:!0,composed:!0})}},le=class extends $d.FtLitElement{render(){let t={"ft-text-field-suggestion":!0,"ft-text-field-suggestion--with-helper":!!this.helper};return _o.html`
1775
- <div class=${(0,Bd.classMap)(t)}
1774
+ `;var Md=m(Le()),_i=function(e,t,o,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,o,i);else for(var c=e.length-1;c>=0;c--)(s=e[c])&&(a=(n<3?s(a):n>3?s(t,o,a):s(t,o))||a);return n>3&&a&&Object.defineProperty(t,o,a),a},da=class extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t,bubbles:!0,composed:!0})}},le=class extends Bd.FtLitElement{render(){let t={"ft-text-field-suggestion":!0,"ft-text-field-suggestion--with-helper":!!this.helper};return _o.html`
1775
+ <div class=${(0,Md.classMap)(t)}
1776
1776
  tabindex="-1"
1777
1777
  @keydown=${this.onKeyDown}
1778
1778
  @click=${this.confirmSuggestion}>
@@ -1787,8 +1787,8 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1787
1787
  <slot></slot>
1788
1788
  </ft-typography>
1789
1789
  </div>
1790
- `}focus(t){var o;(o=this.container)===null||o===void 0||o.focus(t)}click(){var t;(t=this.container)===null||t===void 0||t.click()}confirmSuggestion(){this.dispatchEvent(new da(this.getValue()))}getValue(){return this.value||this.textContent}get textContent(){return this.assignedNodes.map(t=>t.textContent).join("").trim()}onKeyDown(t){["Enter"," "].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),this.confirmSuggestion())}};le.elementDefinitions={"ft-ripple":K,"ft-typography":ft,"ft-icon":ht};le.styles=Dd;_i([(0,wr.property)()],le.prototype,"value",void 0);_i([(0,wr.property)()],le.prototype,"helper",void 0);_i([(0,wr.query)(".ft-text-field-suggestion")],le.prototype,"container",void 0);_i([(0,wr.queryAssignedNodes)()],le.prototype,"assignedNodes",void 0);var j=function(e,t,o,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,o,i);else for(var c=e.length-1;c>=0;c--)(s=e[c])&&(a=(n<3?s(a):n>3?s(t,o,a):s(t,o))||a);return n>3&&a&&Object.defineProperty(t,o,a),a},B=class extends(0,ar.toFtFormComponent)(ar.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=mr.EYE_SLASH,this.passwordRevealedIcon=mr.EYE,this.filterSuggestions=!1,this.password=!1,this.focused=!1,this.hidePassword=!0,this.hideSuggestions=!1,this.visibleSuggestions=[],this.providedSuggestions=[]}get value(){return this._value||""}set value(t){this.setInternalValue(t||""),this.dispatchedValue=t||""}setInternalValue(t){let o=this._value;this._value=t||"",this.setFormValue(this._value),this.requestUpdate("value",o)}focus(){var t;(t=this.input)===null||t===void 0||t.focus()}blur(){var t;(t=this.input)===null||t===void 0||t.blur()}render(){let t={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--with-label":!!this.label,"ft-text-field--in-error":this.error,"ft-text-field--fixed":this.fixedMenuPosition,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--hide-suggestions":!this.suggestionsShouldBeDisplayed(),"ft-text-field--raised-label":this.focused||this.value!="","ft-text-field--with-icon":!!this.icon,"ft-text-field--with-password":this.isPasswordField()},o=this.suggestionsProvider&&this.value&&this.value!=""&&!this.providedSuggestions.map(a=>a.label).includes(this.value),n=!this.suggestionsProvider&&this.filterSuggestions&&this.value&&this.value!=""||o;return Et.html`
1791
- <div class="${(0,Ud.classMap)(t)}">
1790
+ `}focus(t){var o;(o=this.container)===null||o===void 0||o.focus(t)}click(){var t;(t=this.container)===null||t===void 0||t.click()}confirmSuggestion(){this.dispatchEvent(new da(this.getValue()))}getValue(){return this.value||this.textContent}get textContent(){return this.assignedNodes.map(t=>t.textContent).join("").trim()}onKeyDown(t){["Enter"," "].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),this.confirmSuggestion())}};le.elementDefinitions={"ft-ripple":K,"ft-typography":ft,"ft-icon":ht};le.styles=$d;_i([(0,wr.property)()],le.prototype,"value",void 0);_i([(0,wr.property)()],le.prototype,"helper",void 0);_i([(0,wr.query)(".ft-text-field-suggestion")],le.prototype,"container",void 0);_i([(0,wr.queryAssignedNodes)()],le.prototype,"assignedNodes",void 0);var j=function(e,t,o,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,o,i);else for(var c=e.length-1;c>=0;c--)(s=e[c])&&(a=(n<3?s(a):n>3?s(t,o,a):s(t,o))||a);return n>3&&a&&Object.defineProperty(t,o,a),a},B=class extends(0,sr.toFtFormComponent)(sr.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=mr.EYE_SLASH,this.passwordRevealedIcon=mr.EYE,this.filterSuggestions=!1,this.password=!1,this.focused=!1,this.hidePassword=!0,this.hideSuggestions=!1,this.visibleSuggestions=[],this.providedSuggestions=[]}get value(){return this._value||""}set value(t){this.setInternalValue(t||""),this.dispatchedValue=t||""}setInternalValue(t){let o=this._value;this._value=t||"",this.setFormValue(this._value),this.requestUpdate("value",o)}focus(){var t;(t=this.input)===null||t===void 0||t.focus()}blur(){var t;(t=this.input)===null||t===void 0||t.blur()}render(){let t={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--with-label":!!this.label,"ft-text-field--in-error":this.error,"ft-text-field--fixed":this.fixedMenuPosition,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--hide-suggestions":!this.suggestionsShouldBeDisplayed(),"ft-text-field--raised-label":this.focused||this.value!="","ft-text-field--with-icon":!!this.icon,"ft-text-field--with-password":this.isPasswordField()},o=this.suggestionsProvider&&this.value&&this.value!=""&&!this.providedSuggestions.map(a=>a.label).includes(this.value),n=!this.suggestionsProvider&&this.filterSuggestions&&this.value&&this.value!=""||o;return Et.html`
1791
+ <div class="${(0,Fd.classMap)(t)}">
1792
1792
  <div class="ft-text-field--main-panel"
1793
1793
  @keydown=${this.handleKeyboardNavigation}
1794
1794
  @focusout=${this.onMainPanelBlur}>
@@ -1837,7 +1837,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1837
1837
  `:Et.nothing}
1838
1838
  </div>
1839
1839
  `}resolveInputType(){var t;return this.isPasswordField()?this.hidePassword?"password":"text":(t=this.type)!==null&&t!==void 0?t:"text"}renderSuggestions(){return this.suggestionsProvider?Et.html`
1840
- ${(0,Md.repeat)(this.providedSuggestions,t=>Et.html`
1840
+ ${(0,Ud.repeat)(this.providedSuggestions,t=>Et.html`
1841
1841
  <ft-text-field-suggestion value=${t.value} @click=${o=>this.onSuggestionClick(o,t.clickHandler)}>
1842
1842
  ${t.icon?Et.html`
1843
1843
  <ft-icon .value=${t.icon}></ft-icon>
@@ -1856,15 +1856,15 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1856
1856
  .variant=${this.iconVariant}
1857
1857
  .value=${this.icon}
1858
1858
  @click=${()=>{var t;return(t=this.input)===null||t===void 0?void 0:t.focus()}}></ft-icon>
1859
- `:Et.nothing}update(t){super.update(t),(t.has("value")||t.has("filterSuggestions")||t.has("suggestionsProvider"))&&this.updateSuggestions(),t.has("value")&&t.get("value")!=null&&(this.hideSuggestions=!1),t.has("dispatchedValue")&&t.get("dispatchedValue")!=null&&(this.hideSuggestions=!0)}async updateSuggestions(){this.suggestionsProvider?this.providedSuggestions=await this.suggestionsProvider(this.value):this.filterSuggestionsIfNeeded()}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.slottedSuggestions.forEach(t=>t.hidden=!t.getValue().toLowerCase().includes(this.value.toLowerCase())),this.visibleSuggestions=this.slottedSuggestions.filter(t=>!t.hidden)):this.visibleSuggestions=this.slottedSuggestions,this.newValueSuggestion&&(this.visibleSuggestions=[...this.visibleSuggestions,this.newValueSuggestion]),this.hideSuggestions=this.visibleSuggestions.length<=0}contentAvailableCallback(t){super.contentAvailableCallback(t),t.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0&&this.setSuggestionPosition(),t.has("value")&&this.suggestionsProvider&&(this.visibleSuggestions=[...this.providedSuggestionsInDom]),t.has("autocomplete")&&this.setupWatchAutofill(),this.suggestionsShouldBeDisplayed()&&this.setSuggestionPosition()}setupWatchAutofill(){var t;this.clearWatchAutofill(),((t=this.autocomplete)!==null&&t!==void 0?t:"off")!=="off"&&(this.watchAutofillInterval=setInterval(()=>{var o,i,n;!((o=this.input)===null||o===void 0)&&o.matches(":autofill")&&this.dispatchedValue!==((i=this.input)===null||i===void 0?void 0:i.value)&&this.setValue((n=this.input)===null||n===void 0?void 0:n.value,!0)},200))}clearWatchAutofill(){this.watchAutofillInterval&&clearInterval(this.watchAutofillInterval)}connectedCallback(){super.connectedCallback(),this.setupWatchAutofill()}disconnectedCallback(){super.disconnectedCallback(),this.clearWatchAutofill()}setValue(t,o=!1){this.value!==t&&(this.setInternalValue(t),this.dispatchEvent(new CustomEvent("live-change",{detail:t}))),o&&this.dispatchedValue!==t&&(this.dispatchedValue=t,this.dispatchEvent(new CustomEvent("change",{detail:t})))}handleInput(t){var o;let i=((o=this.input)===null||o===void 0?void 0:o.value)||"";this.setValue(i,t.key=="Escape"||t.key=="Enter")}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(t){var o;if(t.key==="ArrowDown"||t.key==="ArrowUp"){t.preventDefault(),t.stopPropagation(),this.hideSuggestions=!1;let i=this.visibleSuggestions.findIndex(a=>a.matches(":focus-within")),n;t.key==="ArrowDown"?n=i<this.visibleSuggestions.length-1?i+1:0:n=i>0?i-1:this.visibleSuggestions.length-1,(o=this.visibleSuggestions[n])===null||o===void 0||o.focus()}(t.key=="Escape"||t.key=="Enter")&&(this.hideSuggestions=!0)}onSuggestionSelected(t){var o;this.setValue(t.detail,!0),(o=this.input)===null||o===void 0||o.focus(),setTimeout(()=>this.hideSuggestions=!0,0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var t,o;!((t=this.mainPanel)===null||t===void 0)&&t.matches(":focus-within")||(this.focused=!1,this.setValue(((o=this.input)===null||o===void 0?void 0:o.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}isPasswordField(){return this.password||this.type==="password"}setSuggestionPosition(){this.suggestionsContainer.style.width=this.mainPanel.getBoundingClientRect().width+"px";let t=["bottom","top"];(0,ar.computeOffsetAutoPosition)(this.mainPanel,this.suggestionsContainer,"bottom",t,"fixed","--ft-text-field-internal-suggest-size",0).then(({x:o,y:i})=>{this.suggestionsContainer.style.left=`${o}px`,this.suggestionsContainer.style.top=`${i}px`})}suggestionsShouldBeDisplayed(){return!this.hideSuggestions&&(this.visibleSuggestions.length||this.providedSuggestions.length)}};B.elementDefinitions={"ft-input-label":Gt,"ft-ripple":K,"ft-typography":ft,"ft-icon":ht,"ft-text-field-suggestion":le};B.styles=[Nr,ar.noTextInputDefaultClearButton,Pd];j([(0,W.property)()],B.prototype,"label",void 0);j([(0,W.property)({noAccessor:!0})],B.prototype,"value",null);j([(0,W.state)()],B.prototype,"dispatchedValue",void 0);j([(0,W.property)()],B.prototype,"helper",void 0);j([(0,W.property)()],B.prototype,"suggestionsHelper",void 0);j([(0,W.property)({type:Boolean})],B.prototype,"outlined",void 0);j([(0,W.property)({type:Boolean})],B.prototype,"disabled",void 0);j([(0,W.property)({type:Boolean})],B.prototype,"error",void 0);j([(0,W.property)({type:Boolean})],B.prototype,"fixedMenuPosition",void 0);j([(0,W.property)()],B.prototype,"prefix",void 0);j([(0,W.property)()],B.prototype,"icon",void 0);j([(0,W.property)()],B.prototype,"name",void 0);j([(0,W.property)()],B.prototype,"type",void 0);j([(0,W.property)()],B.prototype,"passwordHiddenIcon",void 0);j([(0,W.property)()],B.prototype,"passwordRevealedIcon",void 0);j([(0,W.property)()],B.prototype,"iconVariant",void 0);j([(0,W.property)({type:Boolean})],B.prototype,"filterSuggestions",void 0);j([(0,W.property)({type:Number})],B.prototype,"maxLength",void 0);j([(0,W.property)({type:Boolean})],B.prototype,"password",void 0);j([(0,W.property)({type:String})],B.prototype,"autocomplete",void 0);j([(0,W.property)({attribute:!1})],B.prototype,"suggestionsProvider",void 0);j([(0,W.state)()],B.prototype,"focused",void 0);j([(0,W.state)()],B.prototype,"hidePassword",void 0);j([(0,W.state)()],B.prototype,"hideSuggestions",void 0);j([(0,W.state)()],B.prototype,"visibleSuggestions",void 0);j([(0,W.state)()],B.prototype,"providedSuggestions",void 0);j([(0,W.query)(".ft-text-field--main-panel")],B.prototype,"mainPanel",void 0);j([(0,W.query)(".ft-text-field--input")],B.prototype,"input",void 0);j([(0,W.query)(".ft-text-field-suggestion--new-value")],B.prototype,"newValueSuggestion",void 0);j([(0,W.query)(".ft-text-field--suggestions")],B.prototype,"suggestionsContainer",void 0);j([(0,W.queryAll)("ft-text-field-suggestion")],B.prototype,"providedSuggestionsInDom",void 0);j([(0,W.queryAssignedElements)({selector:"ft-text-field-suggestion"})],B.prototype,"slottedSuggestions",void 0);(0,pa.customElement)("ft-text-field")(B);(0,pa.customElement)("ft-text-field-suggestion")(le);var Vd=m(R());var Io=m(M()),sr=m(q()),Qt=m(R());var xe=m(R());var Fd=m(R()),wu={setTranslationDestinationLanguage:(e,t)=>{e.translation.destinationLanguage=t.payload},setTranslationSourceLanguage:(e,t)=>{e.translation.sourceLanguage=t.payload},setTranslationProfileId:(e,t)=>{e.translation.profileId=t.payload},setTranslationLoading:(e,t)=>{e.translation.isLoading=t.payload},setTranslationError:(e,t)=>{e.translation.isError=t.payload},setTopicsRating:(e,t)=>{for(let o in t.payload)e.topicsRating[o]=t.payload[o]}},Wd=e=>Fd.FtReduxStore.get({name:"ft-reader-"+e,initialState:{mapId:void 0,renderedTopics:[],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,mapRating:void 0,topicsRating:{},translation:{sourceLanguage:void 0,destinationLanguage:void 0,profileId:void 0,isLoading:!1,isError:!1}},reducers:wu});var ua=class{constructor(t,o){this.mapId=t,this.paginatedToc=o,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,translationError:this.paginatedToc.translationError}}extractPagesToc(t,o,i){return t.flatMap(n=>{var a;return n.pageConfiguration&&this.registerPage(this.buildPage(n,i)),n.tocId==null?this.extractPagesToc(n.children,o,i):[{tocId:n.tocId,title:(a=n.title)!==null&&a!==void 0?a:"",untranslatedTitle:n.untranslatedTitle,depth:o,children:this.extractPagesToc(n.children,o+1,n.tocId)}]})}convertNodes(t,o,i){return t.flatMap(n=>{var a,s,c;if(n.tocId==null)return[...this.convertSectionNodes((a=n.pageToc)!==null&&a!==void 0?a:[],o,n.tocId),...this.convertNodes(n.children,o,n.tocId)];let u=(s=n.prettyUrl)===null||s===void 0?void 0:s.replace(/^\//,""),p={tocId:n.tocId,contentId:n.contentId,title:n.title,untranslatedTitle:n.untranslatedTitle,hasRating:n.hasRating,origin:n.origin,prettyUrl:u,depth:o,parentTocId:i,children:[]};this.register(p);let h=this.convertSectionNodes((c=n.pageToc)!==null&&c!==void 0?c:[],o+1,n.tocId),y=this.convertNodes(n.children,o+1,p.tocId);return p.children=[...h,...y],[p]})}convertSectionNodes(t,o,i){return t.flatMap(n=>{var a;let s=(a=n.prettyUrl)===null||a===void 0?void 0:a.replace(/^\//,""),c={...n,prettyUrl:s,depth:o,parentTocId:i,children:[]};return this.register(c),c.children=this.convertSectionNodes(n.children,o+1,n.tocId),[c]})}buildPage(t,o){var i,n,a,s,c,u;let p={number:this.pages.length+1,title:(i=t.title)!==null&&i!==void 0?i:"",untranslatedTitle:t.untranslatedTitle,rootTocId:(n=t.tocId)!==null&&n!==void 0?n:"root",toc:((a=t.pageToc)!==null&&a!==void 0?a:[]).map(b=>this.nodeByTocId[b.tocId]),topics:[],hiddenTopics:[],breadcrumb:o?this.buildBreadcrumb(this.nodeByTocId[o]):[]},h=(b,x)=>(x?p.topics:p.hiddenTopics).push(b),y=(c=(s=t.pageConfiguration)===null||s===void 0?void 0:s.parentsVisibility)!==null&&c!==void 0?c:[];return p.breadcrumb.forEach((b,x)=>{h(b,y[x])}),t.tocId&&h(t.tocId,t.pageConfiguration.isVisible),p.topics.push(...this.tocIds((u=t.pageToc)!==null&&u!==void 0?u:[])),p}registerPage(t){for(let o of[...t.topics,...t.hiddenTopics])this.pageByTocId[o]||(this.pageByTocId[o]=t);this.pages.push(t)}tocIds(t){return t.flatMap(o=>[o.tocId,...this.tocIds(o.children)])}buildBreadcrumb(t){let o=[t.tocId];for(;t?.parentTocId;)o.unshift(t.parentTocId),t=this.nodeByTocId[t.parentTocId];return o}register(t){t.prettyUrl&&(this.nodeByUrl[t.prettyUrl]==null?this.nodeByUrl[t.prettyUrl]=t:this.duplicatedPrettyUrls.add(t.prettyUrl)),this.nodeByUrl[`${this.mapId}/${t.tocId}`]=t,this.nodeByTocId[t.tocId]=t}},Ii=class{convertPaginatedToc(t,o){return new ua(t,o).build()}};var Ni=class extends Ae{get mapId(){return this._mapId}set mapId(t){t!==this._mapId&&this.clear(),this._mapId=t}constructor(t,o,i){super(!1,o),this.converter=t,this._mapId=i,this.initCache()}async withMapId(t){return this._mapId?t(this._mapId):void 0}initCache(){this.cache.registerFinal("configuration",()=>this.api.getReaderConfiguration()),this.cache.register("map",()=>this.withMapId(t=>this.fetchMap(t))),this.cache.register("enrichedToc",()=>this.withMapId(t=>this.fetchPages(t).then(o=>this.converter.convertPaginatedToc(t,o)))),this.cache.register("ratingSummary",()=>{var t,o;return pr((o=(t=T.getState().session)===null||t===void 0?void 0:t.profile.roles)!==null&&o!==void 0?o:[],"RATING_USER")?this.withMapId(n=>this.fetchMapRating(n)):Promise.resolve()})}clear(){this.cache.clearAll()}makeCacheKey(t,o){return t+(o?"-destinationLanguage-"+o?.destinationLanguage:"")}getMap(t){return this.cache.get(this.makeCacheKey("map",t),()=>this.fetchMap(this.mapId,t))}getMapNow(t){return this.cache.getNow(this.makeCacheKey("map",t))}getConfiguration(){return this.cache.get("configuration")}getEnrichedToc(t){return this.cache.get(this.makeCacheKey("enrichedToc",t),()=>this.fetchPages(this.mapId,t).then(o=>this.converter.convertPaginatedToc(this.mapId,o)))}getEnrichedTocNow(t){return this.cache.getNow(this.makeCacheKey("enrichedToc",t))}async getPaginationConfiguration(){return(await this.getEnrichedToc()).paginationConfiguration}async getToc(t){return(await this.getEnrichedToc(t)).toc}async getPagesToc(t){return(await this.getEnrichedToc(t)).pagesToc}async getTranslationError(t){return(await this.getEnrichedToc(t)).translationError}async getTocNode(t,o){return(await this.getEnrichedToc(o)).nodeByTocId[t]}getTocNodeNow(t,o){var i;return(i=this.getEnrichedTocNow(o))===null||i===void 0?void 0:i.nodeByTocId[t]}getTocNodeNowByUrl(t,o){var i,n;let a=this.getMapNow(o);return a?.prettyUrl==t||`${a?.id}/root`===t?(i=this.getEnrichedTocNow(o))===null||i===void 0?void 0:i.toc[0]:(n=this.getEnrichedTocNow(o))===null||n===void 0?void 0:n.nodeByUrl[t]}async getPage(t,o){let i=await this.getEnrichedToc(o);return i.pages[t-1]||i.pages[0]}async getPageByTocId(t,o){let i=await this.getEnrichedToc(o);return i.pageByTocId[t]||i.pages[0]}getTopicInfo(t){return this.cache.get("topic-"+t.tocId,()=>this.fetchTopicMetadata(t))}getTopicContent(t){return this.cache.get("topic-content-"+t.tocId,()=>this.fetchTopicHTMLContent(t))}getTranslatedTopicContent(t,o){return this.cache.get(this.makeCacheKey("translated-topic-content-"+t.tocId,o),()=>this.fetchTranslatedTopicHTMLContent(t,o))}getAttachments(){return this.cache.get("map-attachments",()=>this.fetchAttachments())}clearMapAttachments(){this.cache.clear("map-attachments")}getRelativesForDocument(t,o){return this.cache.get("document-relatives-"+t+"-"+o.join("-"),()=>this.fetchRelativesForDocument(t,o))}getRelativesForTopicInMap(t,o,i){return this.cache.get("topic-relatives-"+[t,o,...i].join("-"),()=>this.fetchRelativesForTopicInMap(t,o,i))}getAttachmentDownloadLink(t){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(t).content}?download=true&locationValue=reader`)}getLink(t,o,i){let n=this.getNavigationData(t,o,i),a=this.getReaderLinkPrefix()+(n.prettyUrl?n.prettyUrl:`${n.mapId}/${n.tocId}`),s=new URL(a,this.api.tenantBaseUrl);return n.page!=null&&s.searchParams.set("page",`${n.page}`),n.prettyUrlDuplicated&&s.searchParams.set("tocId",n.tocId),n.section!=null&&s.searchParams.set("section",n.section),s.href}getNavigationData(t,o,i,n){var a,s;t=t||"root";let c=this.getEnrichedTocNow(n),u=c?.pageByTocId[t],p=c?.nodeByTocId[t],h=p?.prettyUrl;return{mapId:this.mapId,tocId:t,topicTitle:(a=p?.title)!==null&&a!==void 0?a:"",untranslatedTopicTitle:p?.untranslatedTitle,page:o&&u&&u.number!==o?o:void 0,prettyUrl:h?.replace(/^r\//,""),prettyUrlDuplicated:(s=c?.duplicatedPrettyUrls.has(h??""))!==null&&s!==void 0?s:!1,section:i}}async getAccurateNavigationData(t,o,i,n){return await this.getEnrichedToc(n),this.getNavigationData(t,o,i,n)}getRatingSummary(){return this.cache.get("ratingSummary")}reloadRating(){return this.cache.clear("ratingSummary"),this.getRatingSummary()}getMapRating(){return this.getRatingSummary().then(t=>t?.publication)}getTopicRating(t){return this.getRatingSummary().then(o=>{var i;return o?{type:o.topics.type,rating:(i=o.topics)===null||i===void 0?void 0:i.ratings.find(n=>n.tocId===t)}:void 0})}rateMap(t,o){return this.makeRateMapRequest(t,o).then(()=>this.clearRatingIfNecessary())}unrateMap(){return this.makeUnrateMapRequest().then(()=>this.clearRatingIfNecessary())}sendMapFeedback(t,o){return this.makeMapFeedbackRequest(t,o)}rateTopic(t,o,i){return this.makeRateTopicRequest(t,o,i).then(()=>this.clearRatingIfNecessary())}unrateTopic(t){return this.makeUnrateTopicRequest(t).then(()=>this.clearRatingIfNecessary())}async clearRatingIfNecessary(){let t=T.getState().session;t?.sessionAuthenticated&&this.cache.clear("ratingSummary")}sendTopicFeedback(t,o,i){return this.makeTopicFeedbackRequest(t,o,i)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(t,o){let i=this.getTocNodeNow(t,o),n=[{tocId:i.tocId,title:i.title,untranslatedTitle:i.untranslatedTitle}],a=this.getTocNodeNow(i.parentTocId,o);for(;a;)n.unshift({tocId:a.tocId,title:a.title,untranslatedTitle:a.untranslatedTitle}),a=this.getTocNodeNow(a.parentTocId,o);return n}isFeatureAccessible(t,{session:o}){var i;if(!this.isFeatureAvailable(t))return!1;switch(t){case re.FEEDBACK:return pr(o??[],st.FEEDBACK_USER);case re.RATING:return pr(o??[],st.RATING_USER);case re.PRINT:return pr(o??[],st.PRINT_USER);case re.BOOKMARK:return!!o?.sessionAuthenticated;case re.COLLECTIONS:return pr(o??[],st.COLLECTION_USER);case re.PERSONAL_BOOKS:return pr(o??[],st.PERSONAL_BOOK_USER)&&!(!((i=this.getMapNow())===null||i===void 0)&&i.pbkConfidential);default:return!1}}makeAbsolute(t){return this.api.makeAbsolute(t)}};var Li=class e extends Ni{static async build(t){return new e(new Ii,void 0,t)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(t,o){let i=await this.api.getMap(t,o);return this.fingerprint=i.fingerprint,i}fetchMapRating(t){return this.api.getMapRating(t)}async fetchPages(t,o){return await this.getMap(o),this.api.getPages(t,this.fingerprint,o)}fetchTopicHTMLContent(t){return this.api.getTopicHTMLContent(this.mapId,t.contentId,"DESIGNED_READER",this.fingerprint)}fetchTranslatedTopicHTMLContent(t,o){return this.api.getTranslatedTopicHTMLContent(this.mapId,t.contentId,"DESIGNED_READER",this.fingerprint,o)}fetchTopicMetadata(t){return this.api.getTopic(this.mapId,t.contentId,this.fingerprint)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch(()=>[])}fetchRelativesForDocument(t,o){let i={query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",metadataFilters:[{key:t,valueFilter:{negative:!1,values:o}}],sort:[],facets:[]};return this.api.search(i)}fetchRelativesForTopicInMap(t,o,i){let n={query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",metadataFilters:[{key:o,valueFilter:{negative:!1,values:i}},{key:"ft:publicationId",valueFilter:{negative:!1,values:[t]}}],sort:[],facets:[]};return this.api.search(n)}makeMapFeedbackRequest(t,o){return this.api.sendMapFeedback(this.mapId,t,o)}makeRateMapRequest(t,o){return this.api.rateMap(this.mapId,t,o)}makeRateTopicRequest(t,o,i){return this.api.rateTopic(this.mapId,t,o,i)}makeTopicFeedbackRequest(t,o,i){return this.api.sendTopicFeedback(this.mapId,t,o,i)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(t){return this.api.unrateTopic(this.mapId,t)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(t){return!0}};var Pi=class e{static build(t,o){return new e(Wd(t.trim()||"context"),o??Li.build)}loaded(){return(0,xe.waitUntil)(()=>this._loaded)}constructor(t,o,i){this.store=t,this.clusteringHelperProvider=i,this.metadataForSwitchToRelatives=new Set,this._loaded=!1,this.loadDebouncer=new xe.Debouncer(10),this.initService(o)}async initService(t){return this.service=await t(),this.service.mapId=this.store.getState().mapId,this.reload()}async setMapId(t){t!==this.store.getState().mapId&&(this.store.actions.mapId(t),this.service&&(this.service.mapId=t),await this.reload())}setRenderedTopics(t){this.store.actions.renderedTopics(t)}setVisibleTopics(t){this.store.actions.visibleTopics(t)}async awaitService(){return(0,xe.waitFor)(()=>this.service)}async navigateToTopic(t,o,i){await this.loaded();let n=await this.awaitService(),a=await(i!=null?n.getPage(i,this.getTranslationSettings()):n.getPageByTocId(t??"root",this.getTranslationSettings()));this.store.actions.currentPage(a);let s=this.resolveValidNonRootTocId(t,a);this.store.actions.scrollTarget({tocId:s,section:o}),this.store.getState().visibleTopics[0]!==s&&this.store.actions.visibleTopics([])}resolveValidNonRootTocId(t,o){var i,n,a;let s=(i=t==="root"?void 0:t)!==null&&i!==void 0?i:o.rootTocId;return o.topics.includes(s)?s:(a=(n=o.topics[0])!==null&&n!==void 0?n:o.hiddenTopics[0])!==null&&a!==void 0?a:"root"}async navigateToPage(t){await this.loaded();let i=await(await this.awaitService()).getPage(t,this.getTranslationSettings());this.store.actions.currentPage(i)}scrollDone(){this.store.actions.scrollTarget({})}async load(){var t;!((t=this.service)===null||t===void 0)&&t.mapId&&this.store.getState().map==null&&await this.loadDebouncer.run(()=>this.fetchData(this.getTranslationSettings()))}clear(){var t;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),this.store.actions.renderedTopics([]),this.store.actions.visibleTopics([]),this.store.actions.translation({sourceLanguage:void 0,destinationLanguage:void 0,profileId:void 0,isLoading:!1,isError:!1}),this.store.actions.mapRating(void 0),(t=this.service)===null||t===void 0||t.clear(),this.clusteringHelper=void 0}reload(){return this.clear(),this.load()}async fetchData(t){var o,i,n,a,s,c;try{t&&this.setTranslationLoading(!0);let u=p=>{throw t&&this.setTranslationError(!0),p};await Promise.all([(o=this.service)===null||o===void 0?void 0:o.getConfiguration().then(p=>this.store.actions.configuration(p)),(i=this.service)===null||i===void 0?void 0:i.getMap(t).then(p=>this.store.actions.map(p)).catch(u),(n=this.service)===null||n===void 0?void 0:n.getToc(t).then(p=>this.store.actions.toc(p)).catch(u),(a=this.service)===null||a===void 0?void 0:a.getPagesToc(t).then(p=>this.store.actions.pagesToc(p)).catch(u),(s=this.service)===null||s===void 0?void 0:s.getPaginationConfiguration().then(p=>this.store.actions.paginationConfiguration(p)).catch(u),(c=this.service)===null||c===void 0?void 0:c.getTranslationError(t).then(p=>this.setTranslationError(p))]),this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives(),this._loaded=!0,t&&this.setTranslationLoading(!1)}catch(u){this.errorHandler&&!(u instanceof xe.CanceledPromiseError)&&this.errorHandler(u)}}fetchRelatives(){var t,o,i;let n=(t=this.store.getState().map)===null||t===void 0?void 0:t.metadata.filter(a=>{var s;return a.key==((s=this.store.getState().configuration)===null||s===void 0?void 0:s.relativePivotMetadata)}).flatMap(a=>a.values);n!==void 0&&n.length>0?(o=this.service)===null||o===void 0||o.getRelativesForDocument((i=this.store.getState().configuration)===null||i===void 0?void 0:i.relativePivotMetadata,n).then(a=>{let s=a.results.flatMap(c=>c.entries);this.store.actions.relatives(s),this.updateClusteringHelper()}):this.updateClusteringHelper()}updateClusteringHelper(){this.clusteringHelper=this.createClusteringHelper(),this.clusteringHelper&&this.store.dispatchEvent(new Event(Jr.clusteringHelperCreated))}createClusteringHelper(){var t,o;if(this.clusteringHelperProvider)return this.clusteringHelperProvider();let i=this.store.getState().relatives;if(i){let n=i.find(s=>{var c;return((c=s.map)===null||c===void 0?void 0:c.mapId)==this.store.getState().mapId}),a=(o=(t=T.getState().metadataConfiguration)===null||t===void 0?void 0:t.descriptors)!==null&&o!==void 0?o:[];return new xe.ClusteringHelper(i,n,this.metadataForSwitchToRelatives,a)}}async navigateToRelativeTopicIfFound(t){var o,i,n;await this.loaded();let a=await(0,xe.waitFor)(()=>{var p;return(p=this.store.getState().configuration)===null||p===void 0?void 0:p.relativeTopicPivotMetadata}),s=this.store.getState().mapId,u=await(await this.awaitService()).getRelativesForTopicInMap(s,a,[t]);if(!((n=(i=(o=u?.results)===null||o===void 0?void 0:o[0])===null||i===void 0?void 0:i.entries)===null||n===void 0)&&n[0]){let p=u.results[0].entries[0].topic.tocId;return await this.navigateToTopic(p),!0}else return await this.navigateToTopic("root"),!1}setSearchInDocumentQuery(t){this.store.actions.searchInDocumentQuery(t)}async setTranslationDestinationLanguage(t){this.store.actions.setTranslationDestinationLanguage(t),await this.loadDebouncer.run(()=>this.fetchData(this.getTranslationSettings()))}async setTranslationSourceLanguage(t){this.store.actions.setTranslationSourceLanguage(t),await this.loadDebouncer.run(()=>this.fetchData(this.getTranslationSettings()))}async setTranslationProfileId(t){this.store.actions.setTranslationProfileId(t)}async setTranslationLoading(t){this.store.actions.setTranslationLoading(t)}async setTranslationError(t){this.store.actions.setTranslationError(t)}getTranslationSettings(){var t;let o=this.store.getState();return o.translation.profileId&&o.translation.destinationLanguage?{profileId:o.translation.profileId,destinationLanguage:o.translation.destinationLanguage.code,sourceLanguage:(t=o.map)===null||t===void 0?void 0:t.lang}:void 0}async fetchMapRating(){var t;this.store.actions.mapRating(await((t=this.service)===null||t===void 0?void 0:t.getMapRating()))}async fetchTopicRating(t){var o;let i=await((o=this.service)===null||o===void 0?void 0:o.getTopicRating(t));i&&this.store.actions.setTopicsRating({[t]:i})}registerMetadataForSwitchToRelatives(t){this.metadataForSwitchToRelatives.add(t),this.store.getState().relatives==null?this.fetchRelatives():this.updateClusteringHelper()}unregisterMetadataForSwitchToRelatives(t){this.metadataForSwitchToRelatives.delete(t),this.updateClusteringHelper()}getAccurateNavigationData(t,o,i){return this.service.getAccurateNavigationData(t,o?.number,i?.section,this.getTranslationSettings())}buildBreadcrumb(t){var o;return(o=this.service)===null||o===void 0?void 0:o.buildBreadcrumb(t,this.getTranslationSettings())}fetchTopicContent(t){var o,i,n=this.getTranslationSettings();return n?(o=this.service)===null||o===void 0?void 0:o.getTranslatedTopicContent(t,n).then(a=>(a.isTranslationError&&this.setTranslationError(!0),a.content)):(i=this.service)===null||i===void 0?void 0:i.getTopicContent(t)}getTocNode(t){var o;return(o=this.service)===null||o===void 0?void 0:o.getTocNode(t,this.getTranslationSettings())}getPage(t){var o;return(o=this.service)===null||o===void 0?void 0:o.getPage(t,this.getTranslationSettings())}onMapAttachmentsUpdate(){var t;(t=this.service)===null||t===void 0||t.clearMapAttachments(),this.store.dispatchEvent(new Event(Jr.mapAttachmentsUpdate))}};var zd=m(M());var Hd=zd.css`
1860
- `;var ki=class extends CustomEvent{constructor(t,o){super("ft-reader-map-loaded",{detail:{map:t,toc:o}})}},Di=class extends CustomEvent{constructor(t,o){super("ft-reader-visible-topics-change",{detail:{visibleTopics:o}})}},$i=class extends CustomEvent{constructor(t){super("ft-reader-navigation-done",{detail:t})}},Bi=class extends CustomEvent{constructor(t){super("ft-reader-load-error",{detail:t})}},Mi=class extends Event{constructor(){super("ft-reader-map-not-found")}},Ui=class extends Event{constructor(){super("ft-reader-map-unauthorized")}},Fi=class extends Event{constructor(){super("ft-reader-map-forbidden")}},Wi=class extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}};var zi=class{constructor(t){this.stateManager=t}searchInDocument(t){this.stateManager.setSearchInDocumentQuery(t??"")}};var Jt=function(e,t,o,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,o,i);else for(var c=e.length-1;c>=0;c--)(s=e[c])&&(a=(n<3?s(a):n>3?s(t,o,a):s(t,o))||a);return n>3&&a&&Object.defineProperty(t,o,a),a},Eu=e=>t=>+(t??"NaN")>0?+t:e,At=class extends Qt.FtLitElementRedux{constructor(){super(),this.visibleTopics=[],this.scrollToTargetDebouncer=new Qt.Debouncer(5),this.navigationDebouncer=new Qt.Debouncer(10),this.mapLoadedEventDebouncer=new Qt.Debouncer(50),this.addStore(T)}render(){return Io.html`
1859
+ `:Et.nothing}update(t){super.update(t),(t.has("value")||t.has("filterSuggestions")||t.has("suggestionsProvider"))&&this.updateSuggestions(),t.has("value")&&t.get("value")!=null&&(this.hideSuggestions=!1),t.has("dispatchedValue")&&t.get("dispatchedValue")!=null&&(this.hideSuggestions=!0)}async updateSuggestions(){this.suggestionsProvider?this.providedSuggestions=await this.suggestionsProvider(this.value):this.filterSuggestionsIfNeeded()}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.slottedSuggestions.forEach(t=>t.hidden=!t.getValue().toLowerCase().includes(this.value.toLowerCase())),this.visibleSuggestions=this.slottedSuggestions.filter(t=>!t.hidden)):this.visibleSuggestions=this.slottedSuggestions,this.newValueSuggestion&&(this.visibleSuggestions=[...this.visibleSuggestions,this.newValueSuggestion]),this.hideSuggestions=this.visibleSuggestions.length<=0}contentAvailableCallback(t){super.contentAvailableCallback(t),t.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0&&this.setSuggestionPosition(),t.has("value")&&this.suggestionsProvider&&(this.visibleSuggestions=[...this.providedSuggestionsInDom]),t.has("autocomplete")&&this.setupWatchAutofill(),this.suggestionsShouldBeDisplayed()&&this.setSuggestionPosition()}setupWatchAutofill(){var t;this.clearWatchAutofill(),((t=this.autocomplete)!==null&&t!==void 0?t:"off")!=="off"&&(this.watchAutofillInterval=setInterval(()=>{var o,i,n;!((o=this.input)===null||o===void 0)&&o.matches(":autofill")&&this.dispatchedValue!==((i=this.input)===null||i===void 0?void 0:i.value)&&this.setValue((n=this.input)===null||n===void 0?void 0:n.value,!0)},200))}clearWatchAutofill(){this.watchAutofillInterval&&clearInterval(this.watchAutofillInterval)}connectedCallback(){super.connectedCallback(),this.setupWatchAutofill()}disconnectedCallback(){super.disconnectedCallback(),this.clearWatchAutofill()}setValue(t,o=!1){this.value!==t&&(this.setInternalValue(t),this.dispatchEvent(new CustomEvent("live-change",{detail:t}))),o&&this.dispatchedValue!==t&&(this.dispatchedValue=t,this.dispatchEvent(new CustomEvent("change",{detail:t})))}handleInput(t){var o;let i=((o=this.input)===null||o===void 0?void 0:o.value)||"";this.setValue(i,t.key=="Escape"||t.key=="Enter")}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(t){var o;if(t.key==="ArrowDown"||t.key==="ArrowUp"){t.preventDefault(),t.stopPropagation(),this.hideSuggestions=!1;let i=this.visibleSuggestions.findIndex(a=>a.matches(":focus-within")),n;t.key==="ArrowDown"?n=i<this.visibleSuggestions.length-1?i+1:0:n=i>0?i-1:this.visibleSuggestions.length-1,(o=this.visibleSuggestions[n])===null||o===void 0||o.focus()}(t.key=="Escape"||t.key=="Enter")&&(this.hideSuggestions=!0)}onSuggestionSelected(t){var o;this.setValue(t.detail,!0),(o=this.input)===null||o===void 0||o.focus(),setTimeout(()=>this.hideSuggestions=!0,0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var t,o;!((t=this.mainPanel)===null||t===void 0)&&t.matches(":focus-within")||(this.focused=!1,this.setValue(((o=this.input)===null||o===void 0?void 0:o.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}isPasswordField(){return this.password||this.type==="password"}setSuggestionPosition(){this.suggestionsContainer.style.width=this.mainPanel.getBoundingClientRect().width+"px";let t=["bottom","top"];(0,sr.computeOffsetAutoPosition)(this.mainPanel,this.suggestionsContainer,"bottom",t,"fixed","--ft-text-field-internal-suggest-size",0).then(({x:o,y:i})=>{this.suggestionsContainer.style.left=`${o}px`,this.suggestionsContainer.style.top=`${i}px`})}suggestionsShouldBeDisplayed(){return!this.hideSuggestions&&(this.visibleSuggestions.length||this.providedSuggestions.length)}};B.elementDefinitions={"ft-input-label":Gt,"ft-ripple":K,"ft-typography":ft,"ft-icon":ht,"ft-text-field-suggestion":le};B.styles=[Nr,sr.noTextInputDefaultClearButton,Pd];j([(0,W.property)()],B.prototype,"label",void 0);j([(0,W.property)({noAccessor:!0})],B.prototype,"value",null);j([(0,W.state)()],B.prototype,"dispatchedValue",void 0);j([(0,W.property)()],B.prototype,"helper",void 0);j([(0,W.property)()],B.prototype,"suggestionsHelper",void 0);j([(0,W.property)({type:Boolean})],B.prototype,"outlined",void 0);j([(0,W.property)({type:Boolean})],B.prototype,"disabled",void 0);j([(0,W.property)({type:Boolean})],B.prototype,"error",void 0);j([(0,W.property)({type:Boolean})],B.prototype,"fixedMenuPosition",void 0);j([(0,W.property)()],B.prototype,"prefix",void 0);j([(0,W.property)()],B.prototype,"icon",void 0);j([(0,W.property)()],B.prototype,"name",void 0);j([(0,W.property)()],B.prototype,"type",void 0);j([(0,W.property)()],B.prototype,"passwordHiddenIcon",void 0);j([(0,W.property)()],B.prototype,"passwordRevealedIcon",void 0);j([(0,W.property)()],B.prototype,"iconVariant",void 0);j([(0,W.property)({type:Boolean})],B.prototype,"filterSuggestions",void 0);j([(0,W.property)({type:Number})],B.prototype,"maxLength",void 0);j([(0,W.property)({type:Boolean})],B.prototype,"password",void 0);j([(0,W.property)({type:String})],B.prototype,"autocomplete",void 0);j([(0,W.property)({attribute:!1})],B.prototype,"suggestionsProvider",void 0);j([(0,W.state)()],B.prototype,"focused",void 0);j([(0,W.state)()],B.prototype,"hidePassword",void 0);j([(0,W.state)()],B.prototype,"hideSuggestions",void 0);j([(0,W.state)()],B.prototype,"visibleSuggestions",void 0);j([(0,W.state)()],B.prototype,"providedSuggestions",void 0);j([(0,W.query)(".ft-text-field--main-panel")],B.prototype,"mainPanel",void 0);j([(0,W.query)(".ft-text-field--input")],B.prototype,"input",void 0);j([(0,W.query)(".ft-text-field-suggestion--new-value")],B.prototype,"newValueSuggestion",void 0);j([(0,W.query)(".ft-text-field--suggestions")],B.prototype,"suggestionsContainer",void 0);j([(0,W.queryAll)("ft-text-field-suggestion")],B.prototype,"providedSuggestionsInDom",void 0);j([(0,W.queryAssignedElements)({selector:"ft-text-field-suggestion"})],B.prototype,"slottedSuggestions",void 0);(0,pa.customElement)("ft-text-field")(B);(0,pa.customElement)("ft-text-field-suggestion")(le);var Gd=m(R());var Io=m(M()),lr=m(q()),Qt=m(R());var xe=m(R());var Wd=m(R()),Eu={setTranslationDestinationLanguage:(e,t)=>{e.translation.destinationLanguage=t.payload},setTranslationSourceLanguage:(e,t)=>{e.translation.sourceLanguage=t.payload},setTranslationProfileId:(e,t)=>{e.translation.profileId=t.payload},setTranslationLoading:(e,t)=>{e.translation.isLoading=t.payload},setTranslationError:(e,t)=>{e.translation.isError=t.payload},setTopicsRating:(e,t)=>{for(let o in t.payload)e.topicsRating[o]=t.payload[o]}},zd=e=>Wd.FtReduxStore.get({name:"ft-reader-"+e,initialState:{mapId:void 0,renderedTopics:[],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,mapRating:void 0,topicsRating:{},translation:{sourceLanguage:void 0,destinationLanguage:void 0,profileId:void 0,isLoading:!1,isError:!1}},reducers:Eu});var ua=class{constructor(t,o){this.mapId=t,this.paginatedToc=o,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,translationError:this.paginatedToc.translationError}}extractPagesToc(t,o,i){return t.flatMap(n=>{var a;return n.pageConfiguration&&this.registerPage(this.buildPage(n,i)),n.tocId==null?this.extractPagesToc(n.children,o,i):[{tocId:n.tocId,title:(a=n.title)!==null&&a!==void 0?a:"",untranslatedTitle:n.untranslatedTitle,depth:o,children:this.extractPagesToc(n.children,o+1,n.tocId)}]})}convertNodes(t,o,i){return t.flatMap(n=>{var a,s,c;if(n.tocId==null)return[...this.convertSectionNodes((a=n.pageToc)!==null&&a!==void 0?a:[],o,n.tocId),...this.convertNodes(n.children,o,n.tocId)];let u=(s=n.prettyUrl)===null||s===void 0?void 0:s.replace(/^\//,""),p={tocId:n.tocId,contentId:n.contentId,title:n.title,untranslatedTitle:n.untranslatedTitle,hasRating:n.hasRating,origin:n.origin,prettyUrl:u,depth:o,parentTocId:i,children:[]};this.register(p);let h=this.convertSectionNodes((c=n.pageToc)!==null&&c!==void 0?c:[],o+1,n.tocId),y=this.convertNodes(n.children,o+1,p.tocId);return p.children=[...h,...y],[p]})}convertSectionNodes(t,o,i){return t.flatMap(n=>{var a;let s=(a=n.prettyUrl)===null||a===void 0?void 0:a.replace(/^\//,""),c={...n,prettyUrl:s,depth:o,parentTocId:i,children:[]};return this.register(c),c.children=this.convertSectionNodes(n.children,o+1,n.tocId),[c]})}buildPage(t,o){var i,n,a,s,c,u;let p={number:this.pages.length+1,title:(i=t.title)!==null&&i!==void 0?i:"",untranslatedTitle:t.untranslatedTitle,rootTocId:(n=t.tocId)!==null&&n!==void 0?n:"root",toc:((a=t.pageToc)!==null&&a!==void 0?a:[]).map(b=>this.nodeByTocId[b.tocId]),topics:[],hiddenTopics:[],breadcrumb:o?this.buildBreadcrumb(this.nodeByTocId[o]):[]},h=(b,x)=>(x?p.topics:p.hiddenTopics).push(b),y=(c=(s=t.pageConfiguration)===null||s===void 0?void 0:s.parentsVisibility)!==null&&c!==void 0?c:[];return p.breadcrumb.forEach((b,x)=>{h(b,y[x])}),t.tocId&&h(t.tocId,t.pageConfiguration.isVisible),p.topics.push(...this.tocIds((u=t.pageToc)!==null&&u!==void 0?u:[])),p}registerPage(t){for(let o of[...t.topics,...t.hiddenTopics])this.pageByTocId[o]||(this.pageByTocId[o]=t);this.pages.push(t)}tocIds(t){return t.flatMap(o=>[o.tocId,...this.tocIds(o.children)])}buildBreadcrumb(t){let o=[t.tocId];for(;t?.parentTocId;)o.unshift(t.parentTocId),t=this.nodeByTocId[t.parentTocId];return o}register(t){t.prettyUrl&&(this.nodeByUrl[t.prettyUrl]==null?this.nodeByUrl[t.prettyUrl]=t:this.duplicatedPrettyUrls.add(t.prettyUrl)),this.nodeByUrl[`${this.mapId}/${t.tocId}`]=t,this.nodeByTocId[t.tocId]=t}},Ii=class{convertPaginatedToc(t,o){return new ua(t,o).build()}};var Ni=class extends Ae{get mapId(){return this._mapId}set mapId(t){t!==this._mapId&&this.clear(),this._mapId=t}constructor(t,o,i){super(!1,o),this.converter=t,this._mapId=i,this.initCache()}async withMapId(t){return this._mapId?t(this._mapId):void 0}initCache(){this.cache.registerFinal("configuration",()=>this.api.getReaderConfiguration()),this.cache.register("map",()=>this.withMapId(t=>this.fetchMap(t))),this.cache.register("enrichedToc",()=>this.withMapId(t=>this.fetchPages(t).then(o=>this.converter.convertPaginatedToc(t,o)))),this.cache.register("ratingSummary",()=>{var t,o;return Ne((o=(t=T.getState().session)===null||t===void 0?void 0:t.profile.roles)!==null&&o!==void 0?o:[],"RATING_USER")?this.withMapId(n=>this.fetchMapRating(n)):Promise.resolve()})}clear(){this.cache.clearAll()}makeCacheKey(t,o){return t+(o?"-destinationLanguage-"+o?.destinationLanguage:"")}getMap(t){return this.cache.get(this.makeCacheKey("map",t),()=>this.fetchMap(this.mapId,t))}getMapNow(t){return this.cache.getNow(this.makeCacheKey("map",t))}getConfiguration(){return this.cache.get("configuration")}getEnrichedToc(t){return this.cache.get(this.makeCacheKey("enrichedToc",t),()=>this.fetchPages(this.mapId,t).then(o=>this.converter.convertPaginatedToc(this.mapId,o)))}getEnrichedTocNow(t){return this.cache.getNow(this.makeCacheKey("enrichedToc",t))}async getPaginationConfiguration(){return(await this.getEnrichedToc()).paginationConfiguration}async getToc(t){return(await this.getEnrichedToc(t)).toc}async getPagesToc(t){return(await this.getEnrichedToc(t)).pagesToc}async getTranslationError(t){return(await this.getEnrichedToc(t)).translationError}async getTocNode(t,o){return(await this.getEnrichedToc(o)).nodeByTocId[t]}getTocNodeNow(t,o){var i;return(i=this.getEnrichedTocNow(o))===null||i===void 0?void 0:i.nodeByTocId[t]}getTocNodeNowByUrl(t,o){var i,n;let a=this.getMapNow(o);return a?.prettyUrl==t||`${a?.id}/root`===t?(i=this.getEnrichedTocNow(o))===null||i===void 0?void 0:i.toc[0]:(n=this.getEnrichedTocNow(o))===null||n===void 0?void 0:n.nodeByUrl[t]}async getPage(t,o){let i=await this.getEnrichedToc(o);return i.pages[t-1]||i.pages[0]}async getPageByTocId(t,o){let i=await this.getEnrichedToc(o);return i.pageByTocId[t]||i.pages[0]}getTopicInfo(t){return this.cache.get("topic-"+t.tocId,()=>this.fetchTopicMetadata(t))}getTopicContent(t){return this.cache.get("topic-content-"+t.tocId,()=>this.fetchTopicHTMLContent(t))}getTranslatedTopicContent(t,o){return this.cache.get(this.makeCacheKey("translated-topic-content-"+t.tocId,o),()=>this.fetchTranslatedTopicHTMLContent(t,o))}getAttachments(){return this.cache.get("map-attachments",()=>this.fetchAttachments())}clearMapAttachments(){this.cache.clear("map-attachments")}getRelativesForDocument(t,o){return this.cache.get("document-relatives-"+t+"-"+o.join("-"),()=>this.fetchRelativesForDocument(t,o))}getRelativesForTopicInMap(t,o,i){return this.cache.get("topic-relatives-"+[t,o,...i].join("-"),()=>this.fetchRelativesForTopicInMap(t,o,i))}getAttachmentDownloadLink(t){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(t).content}?download=true&locationValue=reader`)}getLink(t,o,i){let n=this.getNavigationData(t,o,i),a=this.getReaderLinkPrefix()+(n.prettyUrl?n.prettyUrl:`${n.mapId}/${n.tocId}`),s=new URL(a,this.api.tenantBaseUrl);return n.page!=null&&s.searchParams.set("page",`${n.page}`),n.prettyUrlDuplicated&&s.searchParams.set("tocId",n.tocId),n.section!=null&&s.searchParams.set("section",n.section),s.href}getNavigationData(t,o,i,n){var a,s;t=t||"root";let c=this.getEnrichedTocNow(n),u=c?.pageByTocId[t],p=c?.nodeByTocId[t],h=p?.prettyUrl;return{mapId:this.mapId,tocId:t,topicTitle:(a=p?.title)!==null&&a!==void 0?a:"",untranslatedTopicTitle:p?.untranslatedTitle,page:o&&u&&u.number!==o?o:void 0,prettyUrl:h?.replace(/^r\//,""),prettyUrlDuplicated:(s=c?.duplicatedPrettyUrls.has(h??""))!==null&&s!==void 0?s:!1,section:i}}async getAccurateNavigationData(t,o,i,n){return await this.getEnrichedToc(n),this.getNavigationData(t,o,i,n)}getRatingSummary(){return this.cache.get("ratingSummary")}reloadRating(){return this.cache.clear("ratingSummary"),this.getRatingSummary()}getMapRating(){return this.getRatingSummary().then(t=>t?.publication)}getTopicRating(t){return this.getRatingSummary().then(o=>{var i;return o?{type:o.topics.type,rating:(i=o.topics)===null||i===void 0?void 0:i.ratings.find(n=>n.tocId===t)}:void 0})}rateMap(t,o){return this.makeRateMapRequest(t,o).then(()=>this.clearRatingIfNecessary())}unrateMap(){return this.makeUnrateMapRequest().then(()=>this.clearRatingIfNecessary())}sendMapFeedback(t,o){return this.makeMapFeedbackRequest(t,o)}rateTopic(t,o,i){return this.makeRateTopicRequest(t,o,i).then(()=>this.clearRatingIfNecessary())}unrateTopic(t){return this.makeUnrateTopicRequest(t).then(()=>this.clearRatingIfNecessary())}async clearRatingIfNecessary(){let t=T.getState().session;t?.sessionAuthenticated&&this.cache.clear("ratingSummary")}sendTopicFeedback(t,o,i){return this.makeTopicFeedbackRequest(t,o,i)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(t,o){let i=this.getTocNodeNow(t,o),n=[{tocId:i.tocId,title:i.title,untranslatedTitle:i.untranslatedTitle}],a=this.getTocNodeNow(i.parentTocId,o);for(;a;)n.unshift({tocId:a.tocId,title:a.title,untranslatedTitle:a.untranslatedTitle}),a=this.getTocNodeNow(a.parentTocId,o);return n}isFeatureAccessible(t,{session:o}){var i;if(!this.isFeatureAvailable(t))return!1;switch(t){case re.FEEDBACK:return Ne(o??[],et.FEEDBACK_USER);case re.RATING:return Ne(o??[],et.RATING_USER);case re.PRINT:return Ne(o??[],et.PRINT_USER);case re.BOOKMARK:return!!o?.sessionAuthenticated;case re.COLLECTIONS:return Ne(o??[],et.COLLECTION_USER);case re.PERSONAL_BOOKS:return Ne(o??[],et.PERSONAL_BOOK_USER)&&!(!((i=this.getMapNow())===null||i===void 0)&&i.pbkConfidential);default:return!1}}makeAbsolute(t){return this.api.makeAbsolute(t)}};var Li=class e extends Ni{static async build(t){return new e(new Ii,void 0,t)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(t,o){let i=await this.api.getMap(t,o);return this.fingerprint=i.fingerprint,i}fetchMapRating(t){return this.api.getMapRating(t)}async fetchPages(t,o){return await this.getMap(o),this.api.getPages(t,this.fingerprint,o)}fetchTopicHTMLContent(t){return this.api.getTopicHTMLContent(this.mapId,t.contentId,"DESIGNED_READER",this.fingerprint)}fetchTranslatedTopicHTMLContent(t,o){return this.api.getTranslatedTopicHTMLContent(this.mapId,t.contentId,"DESIGNED_READER",this.fingerprint,o)}fetchTopicMetadata(t){return this.api.getTopic(this.mapId,t.contentId,this.fingerprint)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch(()=>[])}fetchRelativesForDocument(t,o){let i={query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",metadataFilters:[{key:t,valueFilter:{negative:!1,values:o}}],sort:[],facets:[]};return this.api.search(i)}fetchRelativesForTopicInMap(t,o,i){let n={query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",metadataFilters:[{key:o,valueFilter:{negative:!1,values:i}},{key:"ft:publicationId",valueFilter:{negative:!1,values:[t]}}],sort:[],facets:[]};return this.api.search(n)}makeMapFeedbackRequest(t,o){return this.api.sendMapFeedback(this.mapId,t,o)}makeRateMapRequest(t,o){return this.api.rateMap(this.mapId,t,o)}makeRateTopicRequest(t,o,i){return this.api.rateTopic(this.mapId,t,o,i)}makeTopicFeedbackRequest(t,o,i){return this.api.sendTopicFeedback(this.mapId,t,o,i)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(t){return this.api.unrateTopic(this.mapId,t)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(t){return!0}};var ki=class e{static build(t,o){return new e(zd(t.trim()||"context"),o??Li.build)}loaded(){return(0,xe.waitUntil)(()=>this._loaded)}constructor(t,o,i){this.store=t,this.clusteringHelperProvider=i,this.metadataForSwitchToRelatives=new Set,this._loaded=!1,this.loadDebouncer=new xe.Debouncer(10),this.initService(o)}async initService(t){return this.service=await t(),this.service.mapId=this.store.getState().mapId,this.reload()}async setMapId(t){t!==this.store.getState().mapId&&(this.store.actions.mapId(t),this.service&&(this.service.mapId=t),await this.reload())}setRenderedTopics(t){this.store.actions.renderedTopics(t)}setVisibleTopics(t){this.store.actions.visibleTopics(t)}async awaitService(){return(0,xe.waitFor)(()=>this.service)}async navigateToTopic(t,o,i){await this.loaded();let n=await this.awaitService(),a=await(i!=null?n.getPage(i,this.getTranslationSettings()):n.getPageByTocId(t??"root",this.getTranslationSettings()));this.store.actions.currentPage(a);let s=this.resolveValidNonRootTocId(t,a);this.store.actions.scrollTarget({tocId:s,section:o}),this.store.getState().visibleTopics[0]!==s&&this.store.actions.visibleTopics([])}resolveValidNonRootTocId(t,o){var i,n,a;let s=(i=t==="root"?void 0:t)!==null&&i!==void 0?i:o.rootTocId;return o.topics.includes(s)?s:(a=(n=o.topics[0])!==null&&n!==void 0?n:o.hiddenTopics[0])!==null&&a!==void 0?a:"root"}async navigateToPage(t){await this.loaded();let i=await(await this.awaitService()).getPage(t,this.getTranslationSettings());this.store.actions.currentPage(i)}scrollDone(){this.store.actions.scrollTarget({})}async load(){var t;!((t=this.service)===null||t===void 0)&&t.mapId&&this.store.getState().map==null&&await this.loadDebouncer.run(()=>this.fetchData(this.getTranslationSettings()))}clear(){var t;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),this.store.actions.renderedTopics([]),this.store.actions.visibleTopics([]),this.store.actions.translation({sourceLanguage:void 0,destinationLanguage:void 0,profileId:void 0,isLoading:!1,isError:!1}),this.store.actions.mapRating(void 0),(t=this.service)===null||t===void 0||t.clear(),this.clusteringHelper=void 0}reload(){return this.clear(),this.load()}async fetchData(t){var o,i,n,a,s,c;try{t&&this.setTranslationLoading(!0);let u=p=>{throw t&&this.setTranslationError(!0),p};await Promise.all([(o=this.service)===null||o===void 0?void 0:o.getConfiguration().then(p=>this.store.actions.configuration(p)),(i=this.service)===null||i===void 0?void 0:i.getMap(t).then(p=>this.store.actions.map(p)).catch(u),(n=this.service)===null||n===void 0?void 0:n.getToc(t).then(p=>this.store.actions.toc(p)).catch(u),(a=this.service)===null||a===void 0?void 0:a.getPagesToc(t).then(p=>this.store.actions.pagesToc(p)).catch(u),(s=this.service)===null||s===void 0?void 0:s.getPaginationConfiguration().then(p=>this.store.actions.paginationConfiguration(p)).catch(u),(c=this.service)===null||c===void 0?void 0:c.getTranslationError(t).then(p=>this.setTranslationError(p))]),this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives(),this._loaded=!0,t&&this.setTranslationLoading(!1)}catch(u){this.errorHandler&&!(u instanceof xe.CanceledPromiseError)&&this.errorHandler(u)}}fetchRelatives(){var t,o,i;let n=(t=this.store.getState().map)===null||t===void 0?void 0:t.metadata.filter(a=>{var s;return a.key==((s=this.store.getState().configuration)===null||s===void 0?void 0:s.relativePivotMetadata)}).flatMap(a=>a.values);n!==void 0&&n.length>0?(o=this.service)===null||o===void 0||o.getRelativesForDocument((i=this.store.getState().configuration)===null||i===void 0?void 0:i.relativePivotMetadata,n).then(a=>{let s=a.results.flatMap(c=>c.entries);this.store.actions.relatives(s),this.updateClusteringHelper()}):this.updateClusteringHelper()}updateClusteringHelper(){this.clusteringHelper=this.createClusteringHelper(),this.clusteringHelper&&this.store.dispatchEvent(new Event(Jr.clusteringHelperCreated))}createClusteringHelper(){var t,o;if(this.clusteringHelperProvider)return this.clusteringHelperProvider();let i=this.store.getState().relatives;if(i){let n=i.find(s=>{var c;return((c=s.map)===null||c===void 0?void 0:c.mapId)==this.store.getState().mapId}),a=(o=(t=T.getState().metadataConfiguration)===null||t===void 0?void 0:t.descriptors)!==null&&o!==void 0?o:[];return new xe.ClusteringHelper(i,n,this.metadataForSwitchToRelatives,a)}}async navigateToRelativeTopicIfFound(t){var o,i,n;await this.loaded();let a=await(0,xe.waitFor)(()=>{var p;return(p=this.store.getState().configuration)===null||p===void 0?void 0:p.relativeTopicPivotMetadata}),s=this.store.getState().mapId,u=await(await this.awaitService()).getRelativesForTopicInMap(s,a,[t]);if(!((n=(i=(o=u?.results)===null||o===void 0?void 0:o[0])===null||i===void 0?void 0:i.entries)===null||n===void 0)&&n[0]){let p=u.results[0].entries[0].topic.tocId;return await this.navigateToTopic(p),!0}else return await this.navigateToTopic("root"),!1}setSearchInDocumentQuery(t){this.store.actions.searchInDocumentQuery(t)}async setTranslationDestinationLanguage(t){this.store.actions.setTranslationDestinationLanguage(t),await this.loadDebouncer.run(()=>this.fetchData(this.getTranslationSettings()))}async setTranslationSourceLanguage(t){this.store.actions.setTranslationSourceLanguage(t),await this.loadDebouncer.run(()=>this.fetchData(this.getTranslationSettings()))}async setTranslationProfileId(t){this.store.actions.setTranslationProfileId(t)}async setTranslationLoading(t){this.store.actions.setTranslationLoading(t)}async setTranslationError(t){this.store.actions.setTranslationError(t)}getTranslationSettings(){var t;let o=this.store.getState();return o.translation.profileId&&o.translation.destinationLanguage?{profileId:o.translation.profileId,destinationLanguage:o.translation.destinationLanguage.code,sourceLanguage:(t=o.map)===null||t===void 0?void 0:t.lang}:void 0}async fetchMapRating(){var t;this.store.actions.mapRating(await((t=this.service)===null||t===void 0?void 0:t.getMapRating()))}async fetchTopicRating(t){var o;let i=await((o=this.service)===null||o===void 0?void 0:o.getTopicRating(t));i&&this.store.actions.setTopicsRating({[t]:i})}registerMetadataForSwitchToRelatives(t){this.metadataForSwitchToRelatives.add(t),this.store.getState().relatives==null?this.fetchRelatives():this.updateClusteringHelper()}unregisterMetadataForSwitchToRelatives(t){this.metadataForSwitchToRelatives.delete(t),this.updateClusteringHelper()}getAccurateNavigationData(t,o,i){return this.service.getAccurateNavigationData(t,o?.number,i?.section,this.getTranslationSettings())}buildBreadcrumb(t){var o;return(o=this.service)===null||o===void 0?void 0:o.buildBreadcrumb(t,this.getTranslationSettings())}fetchTopicContent(t){var o,i,n=this.getTranslationSettings();return n?(o=this.service)===null||o===void 0?void 0:o.getTranslatedTopicContent(t,n).then(a=>(a.isTranslationError&&this.setTranslationError(!0),a.content)):(i=this.service)===null||i===void 0?void 0:i.getTopicContent(t)}getTocNode(t){var o;return(o=this.service)===null||o===void 0?void 0:o.getTocNode(t,this.getTranslationSettings())}getPage(t){var o;return(o=this.service)===null||o===void 0?void 0:o.getPage(t,this.getTranslationSettings())}onMapAttachmentsUpdate(){var t;(t=this.service)===null||t===void 0||t.clearMapAttachments(),this.store.dispatchEvent(new Event(Jr.mapAttachmentsUpdate))}};var Hd=m(M());var Vd=Hd.css`
1860
+ `;var Pi=class extends CustomEvent{constructor(t,o){super("ft-reader-map-loaded",{detail:{map:t,toc:o}})}},Di=class extends CustomEvent{constructor(t,o){super("ft-reader-visible-topics-change",{detail:{visibleTopics:o}})}},$i=class extends CustomEvent{constructor(t){super("ft-reader-navigation-done",{detail:t})}},Bi=class extends CustomEvent{constructor(t){super("ft-reader-load-error",{detail:t})}},Mi=class extends Event{constructor(){super("ft-reader-map-not-found")}},Ui=class extends Event{constructor(){super("ft-reader-map-unauthorized")}},Fi=class extends Event{constructor(){super("ft-reader-map-forbidden")}},Wi=class extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}};var zi=class{constructor(t){this.stateManager=t}searchInDocument(t){this.stateManager.setSearchInDocumentQuery(t??"")}};var Jt=function(e,t,o,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,o,i);else for(var c=e.length-1;c>=0;c--)(s=e[c])&&(a=(n<3?s(a):n>3?s(t,o,a):s(t,o))||a);return n>3&&a&&Object.defineProperty(t,o,a),a},Au=e=>t=>+(t??"NaN")>0?+t:e,At=class extends Qt.FtLitElementRedux{constructor(){super(),this.visibleTopics=[],this.scrollToTargetDebouncer=new Qt.Debouncer(5),this.navigationDebouncer=new Qt.Debouncer(10),this.mapLoadedEventDebouncer=new Qt.Debouncer(50),this.addStore(T)}render(){return Io.html`
1861
1861
  ${this.importStyleIfNeeded()}
1862
1862
  <slot @register-ft-reader-component=${this.registerComponent}></slot>
1863
1863
  `}importStyleIfNeeded(){var t,o;let i=(t=this.stateManager.service)===null||t===void 0?void 0:t.themeStylesheet();return!i||window.location.href.startsWith((o=this.baseUrl)!==null&&o!==void 0?o:"")?Io.nothing:Io.html`
1864
1864
  <style>
1865
1865
  @import "${i}"
1866
1866
  </style>
1867
- `}get stateManager(){return this._stateManager==null&&(this._stateManager=Pi.build(this.id||(""+Math.round(Math.random()*999e3)).padStart(6,"0"),this.readerServiceProvider),this._stateManager.errorHandler=t=>this.handleLoadError(t),this.addStore(this.stateManager.store,"reader")),this._stateManager}connectedCallback(){super.connectedCallback(),this.stateManager.setMapId(this.mapId),this.stateManager.awaitService().then(t=>{let o=t.fontsStylesheet();if(o&&!window.location.href.startsWith(this.baseUrl)&&!document.querySelector(`head link[href="${o}"]`)){let i=document.createElement("link");i.setAttribute("rel","stylesheet"),i.setAttribute("href",o),document.head.append(i)}window.FluidTopicsReaderService=new zi(this.stateManager)})}update(t){super.update(t),t.has("readerServiceProvider")&&this.readerServiceProvider&&this.stateManager.initService(this.readerServiceProvider),t.has("mapId")&&this.mapId&&(this.stateManager.setMapId(this.mapId),this.lastNotifiedNotFoundRelative=void 0),t.has("searchInDocumentQuery")&&this.searchInDocumentQuery!=null&&this.stateManager.setSearchInDocumentQuery(this.searchInDocumentQuery),["tocId","section","page","mapId","topicPivot"].some(o=>t.has(o))&&this.mapId&&this.navigateToTarget(),t.has("session")&&this.reload()}contentAvailableCallback(t){var o,i;if(super.contentAvailableCallback(t),(t.has("map")||t.has("toc"))&&this.sendLoadedEventIfLoaded(),t.has("scrollTarget")&&((o=this.scrollTarget)===null||o===void 0?void 0:o.tocId)==null){let n=t.get("scrollTarget");n?.tocId!=null&&this.scrollToTargetDebouncer.run(()=>this.stateManager.getAccurateNavigationData(n.tocId,this.currentPage,n).then(a=>this.dispatchEvent(new $i(a))))}(t.has("visibleTopics")||t.has("scrollTarget"))&&((i=this.scrollTarget)===null||i===void 0?void 0:i.tocId)==null&&Promise.all(this.visibleTopics.map(n=>this.stateManager.getAccurateNavigationData(n,this.currentPage))).then(n=>{let a=n.filter(s=>s!=null&&s.topicTitle!=="").map(s=>({tocId:s.tocId,title:s.topicTitle,page:s.page,prettyUrl:s.prettyUrl,prettyUrlDuplicated:s.prettyUrlDuplicated,breadcrumb:this.stateManager.buildBreadcrumb(s.tocId)}));this.dispatchEvent(new Di(this.map,a))})}clear(){this.stateManager.clear()}async reload(){await this.stateManager.reload()}async navigateToTarget(){await this.stateManager.loaded(),await this.navigationDebouncer.run(async()=>{this.topicPivot!=null?!await this.stateManager.navigateToRelativeTopicIfFound(this.topicPivot)&&this.lastNotifiedNotFoundRelative!==this.mapId+this.topicPivot?(this.dispatchEvent(new Wi),this.lastNotifiedNotFoundRelative=this.mapId+this.topicPivot):this.lastNotifiedNotFoundRelative=void 0:this.tocId!=null?await this.stateManager.navigateToTopic(this.tocId,this.section,this.page):this.page!=null&&await this.stateManager.navigateToPage(this.page)})}registerComponent(t){t.stopPropagation();let o=t.composedPath()[0];this.register(o)}register(t){t.setReaderStateManager(this.stateManager)}handleLoadError(t){let o=t;o.status===401?this.dispatchEvent(new Ui):o.status===403?this.dispatchEvent(new Fi):o.status===404?this.dispatchEvent(new Mi):this.dispatchEvent(new Bi(t))}reloadBookmarks(){vd.reloadBookmarks()}async reloadRating(){var t,o;await((t=this.stateManager.service)===null||t===void 0?void 0:t.reloadRating()),(o=this.stateManager.store)===null||o===void 0||o.dispatchEvent(new CustomEvent("rating-changed"))}sendLoadedEventIfLoaded(){this.mapLoadedEventDebouncer.run(()=>{this.map&&this.toc&&this.dispatchEvent(new ki(this.map,this.toc))})}};At.styles=Hd;Jt([(0,Qt.redux)({store:T.name})],At.prototype,"baseUrl",void 0);Jt([(0,Qt.redux)({store:T.name})],At.prototype,"session",void 0);Jt([(0,sr.property)()],At.prototype,"mapId",void 0);Jt([(0,sr.property)()],At.prototype,"tocId",void 0);Jt([(0,sr.property)()],At.prototype,"section",void 0);Jt([(0,sr.property)()],At.prototype,"topicPivot",void 0);Jt([(0,sr.property)()],At.prototype,"searchInDocumentQuery",void 0);Jt([(0,sr.property)({type:Number,converter:{fromAttribute:Eu()}})],At.prototype,"page",void 0);Jt([(0,Qt.redux)({store:"reader"})],At.prototype,"map",void 0);Jt([(0,Qt.redux)({store:"reader"})],At.prototype,"toc",void 0);Jt([(0,Qt.redux)({store:"reader"})],At.prototype,"visibleTopics",void 0);Jt([(0,Qt.redux)({store:"reader"})],At.prototype,"currentPage",void 0);Jt([(0,Qt.redux)({store:"reader"})],At.prototype,"scrollTarget",void 0);Jt([(0,sr.property)({attribute:!1})],At.prototype,"readerServiceProvider",void 0);(0,Vd.customElement)("ft-reader-context")(At);var Hi=class extends CustomEvent{constructor(t){super("send-feedback",{detail:t})}},Vi=class extends CustomEvent{constructor(t){super("ft-reader-topic-feedback",{composed:!0,bubbles:!0,detail:t})}},Gi=class extends CustomEvent{constructor(t){super("ft-reader-feedback",{composed:!0,bubbles:!0,detail:t})}},ji=class extends CustomEvent{constructor(t){super("ft-reader-mailer-topic-feedback",{composed:!0,bubbles:!0,detail:{topic:t}})}},Ki=class extends CustomEvent{constructor(){super("ft-reader-mailer-map-feedback",{composed:!0,bubbles:!0})}};var Rt=function(e,t,o,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,o,i);else for(var c=e.length-1;c>=0;c--)(s=e[c])&&(a=(n<3?s(a):n>3?s(t,o,a):s(t,o))||a);return n>3&&a&&Object.defineProperty(t,o,a),a},Q=class extends ir(ze){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(G,Nd)}get canAccessFeedback(){var t;return(t=this.service)===null||t===void 0?void 0:t.isFeatureAccessible(re.FEEDBACK,{session:this.session})}get canRateThisContent(){var t;return((t=this.service)===null||t===void 0?void 0:t.isFeatureAccessible(re.RATING,{session:this.session}))&&this.ratingAllowed&&this.configuredRatingType!=xt.NO_RATING}get configuredRatingType(){var t,o;return(o=(t=this.ratingSummary)===null||t===void 0?void 0:t.type)!==null&&o!==void 0?o:xt.NO_RATING}get ratingTypeOfDoneRatingOfThisContent(){var t,o,i;return(i=(o=(t=this.ratingSummary)===null||t===void 0?void 0:t.rating)===null||o===void 0?void 0:o.type)!==null&&i!==void 0?i:xt.NO_RATING}get ratingValue(){var t,o,i;return(i=(o=(t=this.ratingSummary)===null||t===void 0?void 0:t.rating)===null||o===void 0?void 0:o.value)!==null&&i!==void 0?i:-1}get ratingDate(){var t,o;let i=(o=(t=this.ratingSummary)===null||t===void 0?void 0:t.rating)===null||o===void 0?void 0:o.date;return typeof i=="string"?(0,Zi.parseDate)(i):i}render(){return!this.canAccessFeedback&&!this.canRateThisContent?gt.nothing:gt.html`
1867
+ `}get stateManager(){return this._stateManager==null&&(this._stateManager=ki.build(this.id||(""+Math.round(Math.random()*999e3)).padStart(6,"0"),this.readerServiceProvider),this._stateManager.errorHandler=t=>this.handleLoadError(t),this.addStore(this.stateManager.store,"reader")),this._stateManager}connectedCallback(){super.connectedCallback(),this.stateManager.setMapId(this.mapId),this.stateManager.awaitService().then(t=>{let o=t.fontsStylesheet();if(o&&!window.location.href.startsWith(this.baseUrl)&&!document.querySelector(`head link[href="${o}"]`)){let i=document.createElement("link");i.setAttribute("rel","stylesheet"),i.setAttribute("href",o),document.head.append(i)}window.FluidTopicsReaderService=new zi(this.stateManager)})}update(t){super.update(t),t.has("readerServiceProvider")&&this.readerServiceProvider&&this.stateManager.initService(this.readerServiceProvider),t.has("mapId")&&this.mapId&&(this.stateManager.setMapId(this.mapId),this.lastNotifiedNotFoundRelative=void 0),t.has("searchInDocumentQuery")&&this.searchInDocumentQuery!=null&&this.stateManager.setSearchInDocumentQuery(this.searchInDocumentQuery),["tocId","section","page","mapId","topicPivot"].some(o=>t.has(o))&&this.mapId&&this.navigateToTarget(),t.has("session")&&this.reload()}contentAvailableCallback(t){var o,i;if(super.contentAvailableCallback(t),(t.has("map")||t.has("toc"))&&this.sendLoadedEventIfLoaded(),t.has("scrollTarget")&&((o=this.scrollTarget)===null||o===void 0?void 0:o.tocId)==null){let n=t.get("scrollTarget");n?.tocId!=null&&this.scrollToTargetDebouncer.run(()=>this.stateManager.getAccurateNavigationData(n.tocId,this.currentPage,n).then(a=>this.dispatchEvent(new $i(a))))}(t.has("visibleTopics")||t.has("scrollTarget"))&&((i=this.scrollTarget)===null||i===void 0?void 0:i.tocId)==null&&Promise.all(this.visibleTopics.map(n=>this.stateManager.getAccurateNavigationData(n,this.currentPage))).then(n=>{let a=n.filter(s=>s!=null&&s.topicTitle!=="").map(s=>({tocId:s.tocId,title:s.topicTitle,page:s.page,prettyUrl:s.prettyUrl,prettyUrlDuplicated:s.prettyUrlDuplicated,breadcrumb:this.stateManager.buildBreadcrumb(s.tocId)}));this.dispatchEvent(new Di(this.map,a))})}clear(){this.stateManager.clear()}async reload(){await this.stateManager.reload()}async navigateToTarget(){await this.stateManager.loaded(),await this.navigationDebouncer.run(async()=>{this.topicPivot!=null?!await this.stateManager.navigateToRelativeTopicIfFound(this.topicPivot)&&this.lastNotifiedNotFoundRelative!==this.mapId+this.topicPivot?(this.dispatchEvent(new Wi),this.lastNotifiedNotFoundRelative=this.mapId+this.topicPivot):this.lastNotifiedNotFoundRelative=void 0:this.tocId!=null?await this.stateManager.navigateToTopic(this.tocId,this.section,this.page):this.page!=null&&await this.stateManager.navigateToPage(this.page)})}registerComponent(t){t.stopPropagation();let o=t.composedPath()[0];this.register(o)}register(t){t.setReaderStateManager(this.stateManager)}handleLoadError(t){let o=t;o.status===401?this.dispatchEvent(new Ui):o.status===403?this.dispatchEvent(new Fi):o.status===404?this.dispatchEvent(new Mi):this.dispatchEvent(new Bi(t))}reloadBookmarks(){Sd.reloadBookmarks()}async reloadRating(){var t,o;await((t=this.stateManager.service)===null||t===void 0?void 0:t.reloadRating()),(o=this.stateManager.store)===null||o===void 0||o.dispatchEvent(new CustomEvent("rating-changed"))}sendLoadedEventIfLoaded(){this.mapLoadedEventDebouncer.run(()=>{this.map&&this.toc&&this.dispatchEvent(new Pi(this.map,this.toc))})}};At.styles=Vd;Jt([(0,Qt.redux)({store:T.name})],At.prototype,"baseUrl",void 0);Jt([(0,Qt.redux)({store:T.name})],At.prototype,"session",void 0);Jt([(0,lr.property)()],At.prototype,"mapId",void 0);Jt([(0,lr.property)()],At.prototype,"tocId",void 0);Jt([(0,lr.property)()],At.prototype,"section",void 0);Jt([(0,lr.property)()],At.prototype,"topicPivot",void 0);Jt([(0,lr.property)()],At.prototype,"searchInDocumentQuery",void 0);Jt([(0,lr.property)({type:Number,converter:{fromAttribute:Au()}})],At.prototype,"page",void 0);Jt([(0,Qt.redux)({store:"reader"})],At.prototype,"map",void 0);Jt([(0,Qt.redux)({store:"reader"})],At.prototype,"toc",void 0);Jt([(0,Qt.redux)({store:"reader"})],At.prototype,"visibleTopics",void 0);Jt([(0,Qt.redux)({store:"reader"})],At.prototype,"currentPage",void 0);Jt([(0,Qt.redux)({store:"reader"})],At.prototype,"scrollTarget",void 0);Jt([(0,lr.property)({attribute:!1})],At.prototype,"readerServiceProvider",void 0);(0,Gd.customElement)("ft-reader-context")(At);var Hi=class extends CustomEvent{constructor(t){super("send-feedback",{detail:t})}},Vi=class extends CustomEvent{constructor(t){super("ft-reader-topic-feedback",{composed:!0,bubbles:!0,detail:t})}},Gi=class extends CustomEvent{constructor(t){super("ft-reader-feedback",{composed:!0,bubbles:!0,detail:t})}},ji=class extends CustomEvent{constructor(t){super("ft-reader-mailer-topic-feedback",{composed:!0,bubbles:!0,detail:{topic:t}})}},Ki=class extends CustomEvent{constructor(){super("ft-reader-mailer-map-feedback",{composed:!0,bubbles:!0})}};var Rt=function(e,t,o,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,o,i);else for(var c=e.length-1;c>=0;c--)(s=e[c])&&(a=(n<3?s(a):n>3?s(t,o,a):s(t,o))||a);return n>3&&a&&Object.defineProperty(t,o,a),a},Q=class extends nr(He){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(G,Ld)}get canAccessFeedback(){var t;return(t=this.service)===null||t===void 0?void 0:t.isFeatureAccessible(re.FEEDBACK,{session:this.session})}get canRateThisContent(){var t;return((t=this.service)===null||t===void 0?void 0:t.isFeatureAccessible(re.RATING,{session:this.session}))&&this.ratingAllowed&&this.configuredRatingType!=xt.NO_RATING}get configuredRatingType(){var t,o;return(o=(t=this.ratingSummary)===null||t===void 0?void 0:t.type)!==null&&o!==void 0?o:xt.NO_RATING}get ratingTypeOfDoneRatingOfThisContent(){var t,o,i;return(i=(o=(t=this.ratingSummary)===null||t===void 0?void 0:t.rating)===null||o===void 0?void 0:o.type)!==null&&i!==void 0?i:xt.NO_RATING}get ratingValue(){var t,o,i;return(i=(o=(t=this.ratingSummary)===null||t===void 0?void 0:t.rating)===null||o===void 0?void 0:o.value)!==null&&i!==void 0?i:-1}get ratingDate(){var t,o;let i=(o=(t=this.ratingSummary)===null||t===void 0?void 0:t.rating)===null||o===void 0?void 0:o.date;return typeof i=="string"?(0,Zi.parseDate)(i):i}render(){return!this.canAccessFeedback&&!this.canRateThisContent?gt.nothing:gt.html`
1868
1868
  <div class="ft-reader-feedback">
1869
1869
  ${this.hideTitle?gt.nothing:gt.html`
1870
1870
  <ft-typography variant="title" part="main-title">
@@ -1886,7 +1886,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1886
1886
  </div>
1887
1887
  `:gt.nothing}renderRatingDate(){let t=this.ratingDate;if(t==null)return G.messages.notRated();if(t.getTime()>new Date().getTime()-6e4)return G.messages.ratedNow();let o=new Date().toLocaleDateString(),i=t.toLocaleDateString();return o===i?G.messages.ratedToday():G.messages.ratedOn(t)}renderRating(){switch(this.configuredRatingType){case xt.STARS:return gt.html`
1888
1888
  <div class="ft-reader-feedback--stars" part="rating rating-stars">
1889
- ${(0,Gd.repeat)(new Array(5),(a,s)=>s,(a,s)=>{let c=this.ratingTypeOfDoneRatingOfThisContent===xt.STARS&&this.ratingValue>s,u=s+1;return gt.html`
1889
+ ${(0,jd.repeat)(new Array(5),(a,s)=>s,(a,s)=>{let c=this.ratingTypeOfDoneRatingOfThisContent===xt.STARS&&this.ratingValue>s,u=s+1;return gt.html`
1890
1890
  <ft-button round part="rating-stars-${u}"
1891
1891
  label="${G.messages.starsRating(u)}"
1892
1892
  tooltipPosition="top"
@@ -1975,7 +1975,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1975
1975
  ${c}
1976
1976
  </div>
1977
1977
  </form>
1978
- `}return gt.nothing}onFormSubmitEvent(t,o){t.preventDefault(),o?this.onMailerFeedbackSent():this.sendFeedback()}validFromEmail(){var t,o,i;let n=/^[a-zA-Z0-9_+&*-]+(?:\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/;return!(((o=(t=this.session)===null||t===void 0?void 0:t.profile)===null||o===void 0?void 0:o.userId)==null&&(!((i=this.configuration)===null||i===void 0)&&i.mailsSentByFluidTopicsForUnauthenticatedUsers))||n.test(this.from)}sendFeedback(){var t;this.dispatchEvent(new Hi({message:this.feedbackInput.value,...((t=this.configuration)===null||t===void 0?void 0:t.mailsSentByFluidTopicsForUnauthenticatedUsers)&&{from:this.from}}))}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("mailer-feedback"))}onOpenMoreDetails(){this.dispatchEvent(new CustomEvent("open-more-options"))}clearFeedbackInput(){setTimeout(()=>this.feedbackInput.setValue("",!0),0)}};Q.elementDefinitions={"ft-button":ye,"ft-typography":ft,"ft-switch":Vt,"ft-switch-option":yt,"ft-text-area":Lt,"ft-text-field":B};Q.styles=Cs;Rt([(0,mt.property)({type:Boolean})],Q.prototype,"editorMode",void 0);Rt([(0,mt.property)({type:Boolean})],Q.prototype,"hideTitle",void 0);Rt([(0,mt.property)({type:Boolean})],Q.prototype,"withMoreOptionsButton",void 0);Rt([(0,mt.property)({type:Boolean})],Q.prototype,"ratingAllowed",void 0);Rt([(0,mt.property)({attribute:!1})],Q.prototype,"i18nProperties",void 0);Rt([(0,mt.property)({attribute:!1})],Q.prototype,"ratingSummary",void 0);Rt([(0,mt.property)({attribute:!1})],Q.prototype,"session",void 0);Rt([(0,mt.query)(".ft-reader-feedback--feedback-input")],Q.prototype,"feedbackInput",void 0);Rt([(0,mt.state)()],Q.prototype,"from",void 0);Rt([(0,mt.state)()],Q.prototype,"feedbackMessage",void 0);Rt([(0,mt.property)()],Q.prototype,"iconVariant",void 0);Rt([(0,mt.property)()],Q.prototype,"emptyStarIcon",void 0);Rt([(0,mt.property)()],Q.prototype,"filledStarIcon",void 0);Rt([(0,mt.property)()],Q.prototype,"emptyLikeIcon",void 0);Rt([(0,mt.property)()],Q.prototype,"filledLikeIcon",void 0);Rt([(0,mt.property)()],Q.prototype,"emptyDislikeIcon",void 0);Rt([(0,mt.property)()],Q.prototype,"filledDislikeIcon",void 0);Rt([(0,Zi.redux)({store:"reader",selector:e=>{var t;return(t=e.configuration)===null||t===void 0?void 0:t.feedback}})],Q.prototype,"configuration",void 0);Rt([(0,mt.property)()],Q.prototype,"feedbackMailLinkBuilder",void 0);var Xr=nr.fromGwt("server");var Qr=class{constructor(){this.subject="",this.url="",this.subjectMetadata="",this.bodyMetadata="",this.isAuthenticated=!1}update(t,o,i,n,a){var s;this.subject=t,this.url=o,this.configuration=n,this.isAuthenticated=a,this.subjectMetadata=this.filterMetadata(i,n.subjectMetadataIds).map(c=>"["+c.values[c.values.length-1]+"]").join(""),this.bodyMetadata=this.filterMetadata(i,(s=n.bodyMetadataIds)!==null&&s!==void 0?s:[]).map(c=>"["+c.values.join(", ")+"]").join(" ")}filterMetadata(t,o){return o.map(i=>t.find(n=>n.key===i)).filter(i=>i!=null&&i.values.length>0)}shouldUseMailer(){var t,o;let i=this.isAuthenticated&&!(!((t=this.configuration)===null||t===void 0)&&t.mailsSentByFluidTopics),n=!this.isAuthenticated&&!(!((o=this.configuration)===null||o===void 0)&&o.mailsSentByFluidTopicsForUnauthenticatedUsers);return i||n}build(t){var o;if(t!=null&&t.length===0||!this.shouldUseMailer())return;let i=encodeURIComponent(this.subject+" "+this.subjectMetadata),n=encodeURIComponent(`
1978
+ `}return gt.nothing}onFormSubmitEvent(t,o){t.preventDefault(),o?this.onMailerFeedbackSent():this.sendFeedback()}validFromEmail(){var t,o,i;let n=/^[a-zA-Z0-9_+&*-]+(?:\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/;return!(((o=(t=this.session)===null||t===void 0?void 0:t.profile)===null||o===void 0?void 0:o.userId)==null&&(!((i=this.configuration)===null||i===void 0)&&i.mailsSentByFluidTopicsForUnauthenticatedUsers))||n.test(this.from)}sendFeedback(){var t;this.dispatchEvent(new Hi({message:this.feedbackInput.value,...((t=this.configuration)===null||t===void 0?void 0:t.mailsSentByFluidTopicsForUnauthenticatedUsers)&&{from:this.from}}))}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("mailer-feedback"))}onOpenMoreDetails(){this.dispatchEvent(new CustomEvent("open-more-options"))}clearFeedbackInput(){setTimeout(()=>this.feedbackInput.setValue("",!0),0)}};Q.elementDefinitions={"ft-button":ye,"ft-typography":ft,"ft-switch":Vt,"ft-switch-option":yt,"ft-text-area":Lt,"ft-text-field":B};Q.styles=Cs;Rt([(0,mt.property)({type:Boolean})],Q.prototype,"editorMode",void 0);Rt([(0,mt.property)({type:Boolean})],Q.prototype,"hideTitle",void 0);Rt([(0,mt.property)({type:Boolean})],Q.prototype,"withMoreOptionsButton",void 0);Rt([(0,mt.property)({type:Boolean})],Q.prototype,"ratingAllowed",void 0);Rt([(0,mt.property)({attribute:!1})],Q.prototype,"i18nProperties",void 0);Rt([(0,mt.property)({attribute:!1})],Q.prototype,"ratingSummary",void 0);Rt([(0,mt.property)({attribute:!1})],Q.prototype,"session",void 0);Rt([(0,mt.query)(".ft-reader-feedback--feedback-input")],Q.prototype,"feedbackInput",void 0);Rt([(0,mt.state)()],Q.prototype,"from",void 0);Rt([(0,mt.state)()],Q.prototype,"feedbackMessage",void 0);Rt([(0,mt.property)()],Q.prototype,"iconVariant",void 0);Rt([(0,mt.property)()],Q.prototype,"emptyStarIcon",void 0);Rt([(0,mt.property)()],Q.prototype,"filledStarIcon",void 0);Rt([(0,mt.property)()],Q.prototype,"emptyLikeIcon",void 0);Rt([(0,mt.property)()],Q.prototype,"filledLikeIcon",void 0);Rt([(0,mt.property)()],Q.prototype,"emptyDislikeIcon",void 0);Rt([(0,mt.property)()],Q.prototype,"filledDislikeIcon",void 0);Rt([(0,Zi.redux)({store:"reader",selector:e=>{var t;return(t=e.configuration)===null||t===void 0?void 0:t.feedback}})],Q.prototype,"configuration",void 0);Rt([(0,mt.property)()],Q.prototype,"feedbackMailLinkBuilder",void 0);var Xr=ar.fromGwt("server");var Qr=class{constructor(){this.subject="",this.url="",this.subjectMetadata="",this.bodyMetadata="",this.isAuthenticated=!1}update(t,o,i,n,a){var s;this.subject=t,this.url=o,this.configuration=n,this.isAuthenticated=a,this.subjectMetadata=this.filterMetadata(i,n.subjectMetadataIds).map(c=>"["+c.values[c.values.length-1]+"]").join(""),this.bodyMetadata=this.filterMetadata(i,(s=n.bodyMetadataIds)!==null&&s!==void 0?s:[]).map(c=>"["+c.values.join(", ")+"]").join(" ")}filterMetadata(t,o){return o.map(i=>t.find(n=>n.key===i)).filter(i=>i!=null&&i.values.length>0)}shouldUseMailer(){var t,o;let i=this.isAuthenticated&&!(!((t=this.configuration)===null||t===void 0)&&t.mailsSentByFluidTopics),n=!this.isAuthenticated&&!(!((o=this.configuration)===null||o===void 0)&&o.mailsSentByFluidTopicsForUnauthenticatedUsers);return i||n}build(t){var o;if(t!=null&&t.length===0||!this.shouldUseMailer())return;let i=encodeURIComponent(this.subject+" "+this.subjectMetadata),n=encodeURIComponent(`
1979
1979
  ${this.bodyMetadata}
1980
1980
  ${this.url}
1981
1981
  _________________________________________________________________
@@ -1983,7 +1983,7 @@ _________________________________________________________________
1983
1983
  ${t??""}
1984
1984
 
1985
1985
  _________________________________________________________________
1986
- ${Xr.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(o=this.configuration)===null||o===void 0?void 0:o.recipients.join(",")}?subject=${i}&body=${n}`}};var lr=nr.build("inDesignerFeedbackComponent"),qi={feedbackAndRatingDisabledInEditor:"Feedback and ratings performed here are not taken into account."};var kt=function(e,t,o,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,o,i);else for(var c=e.length-1;c>=0;c--)(s=e[c])&&(a=(n<3?s(a):n>3?s(t,o,a):s(t,o))||a);return n>3&&a&&Object.defineProperty(t,o,a),a},pt=class extends ir(ze){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=$t.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 Qr,this.i18nProperties={feedbackMainTitle:G.properties.mapFeedbackMainTitle(),ratingSectionTitle:G.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:G.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:G.properties.mapFeedbackSectionTitle()},this.sendRatingDebouncer=new Ut.Debouncer(500),this.addStore(T)}render(){return jd.html`
1986
+ ${Xr.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(o=this.configuration)===null||o===void 0?void 0:o.recipients.join(",")}?subject=${i}&body=${n}`}};var cr=ar.build("inDesignerFeedbackComponent"),qi={feedbackAndRatingDisabledInEditor:"Feedback and ratings performed here are not taken into account."};var Pt=function(e,t,o,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,o,i);else for(var c=e.length-1;c>=0;c--)(s=e[c])&&(a=(n<3?s(a):n>3?s(t,o,a):s(t,o))||a);return n>3&&a&&Object.defineProperty(t,o,a),a},pt=class extends nr(He){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=$t.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 Qr,this.i18nProperties={feedbackMainTitle:G.properties.mapFeedbackMainTitle(),ratingSectionTitle:G.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:G.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:G.properties.mapFeedbackSectionTitle()},this.sendRatingDebouncer=new Ut.Debouncer(500),this.addStore(T)}render(){return Kd.html`
1987
1987
  <ft-reader-feedback
1988
1988
  ratingAllowed
1989
1989
  .i18nProperties=${this.i18nProperties}
@@ -2005,7 +2005,7 @@ ${Xr.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(o=this.configura
2005
2005
  @mailer-feedback=${this.onMailerFeedbackSent}
2006
2006
  @open-more-options=${this.openMoreOptions}
2007
2007
  ></ft-reader-feedback>
2008
- `}willUpdate(t){var o,i,n,a,s;super.willUpdate(t),t.has("map")&&this.map&&((o=this.stateManager)===null||o===void 0||o.fetchMapRating()),t.has("editorMode")&&this.editorMode&&this.addI18nContext(lr,qi),["map","configuration","user","mailSubject"].some(c=>t.has(c))&&this.map&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,(n=(i=this.service)===null||i===void 0?void 0:i.getLink())!==null&&n!==void 0?n:"",this.map.metadata,this.configuration,((s=(a=this.session)===null||a===void 0?void 0:a.profile)===null||s===void 0?void 0:s.userId)!=null)}connectedCallback(){super.connectedCallback()}onStoreAvailable(t){super.onStoreAvailable(t)}async fetchRatingSummary(){var t;await((t=this.stateManager)===null||t===void 0?void 0:t.fetchMapRating())}rate(t){this.ratingSummary&&(this.ratingSummary={...this.ratingSummary,rating:t.detail==null?void 0:{type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run(()=>this.sendRating(t.detail)))}async sendRating(t){var o,i,n,a;if(!this.editorMode&&this.ratingSummary){try{t==null?await((o=this.service)===null||o===void 0?void 0:o.unrateMap()):await((i=this.service)===null||i===void 0?void 0:i.rateMap((n=this.ratingSummary)===null||n===void 0?void 0:n.type,t))}catch{this.dispatchEvent(new Ut.FtNotificationEvent({type:"error",message:G.messages.ratingFailure()}))}await((a=this.stateManager)===null||a===void 0?void 0:a.fetchMapRating())}else this.editorMode&&this.dispatchEvent(new Ut.FtNotificationEvent({type:"info",message:lr.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var o;try{this.editorMode?this.dispatchEvent(new Ut.FtNotificationEvent({type:"info",message:lr.messages.feedbackAndRatingDisabledInEditor()})):(await((o=this.service)===null||o===void 0?void 0:o.sendMapFeedback(t.detail.message,t.detail.from)),this.dispatchEvent(new Ut.FtNotificationEvent({type:"info",message:G.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new Ut.FtNotificationEvent({type:"error",message:G.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new Ki)}openMoreOptions(){var t,o,i;this.dispatchEvent(new Gi({mapId:this.map.id,mapTitle:this.map.title,mapMetadata:((t=this.map)===null||t===void 0?void 0:t.metadata)||[],ratingType:((o=this.ratingSummary)===null||o===void 0?void 0:o.type)||xt.NO_RATING,ratingValue:(i=this.ratingSummary)===null||i===void 0?void 0:i.rating}))}};pt.elementDefinitions={"ft-reader-feedback":Q};kt([(0,Ut.redux)({store:T.name})],pt.prototype,"session",void 0);kt([(0,Ut.redux)({store:"reader"})],pt.prototype,"map",void 0);kt([(0,Ut.redux)({store:T.name})],pt.prototype,"editorMode",void 0);kt([(0,Ut.redux)({store:"reader",selector:e=>{var t;return(t=e.configuration)===null||t===void 0?void 0:t.feedback}})],pt.prototype,"configuration",void 0);kt([(0,Ut.redux)({store:"reader",selector:e=>e.mapRating})],pt.prototype,"ratingSummary",void 0);kt([(0,ce.property)({type:Boolean})],pt.prototype,"hideTitle",void 0);kt([(0,ce.property)({type:Boolean})],pt.prototype,"withMoreOptionsButton",void 0);kt([(0,ce.property)()],pt.prototype,"iconVariant",void 0);kt([(0,ce.property)()],pt.prototype,"emptyStarIcon",void 0);kt([(0,ce.property)()],pt.prototype,"filledStarIcon",void 0);kt([(0,ce.property)()],pt.prototype,"emptyLikeIcon",void 0);kt([(0,ce.property)()],pt.prototype,"filledLikeIcon",void 0);kt([(0,ce.property)()],pt.prototype,"emptyDislikeIcon",void 0);kt([(0,ce.property)()],pt.prototype,"filledDislikeIcon",void 0);kt([(0,ce.query)("ft-reader-feedback")],pt.prototype,"readerFeedback",void 0);kt([Ri(Xr.properties["mail.map_feedback.subject"](e=>{var t;return[(t=e.map)===null||t===void 0?void 0:t.title]}))],pt.prototype,"mailSubject",void 0);kt([(0,Ut.reduxEventListener)({eventName:"rating-changed"})],pt.prototype,"fetchRatingSummary",null);var Zd=m(M()),de=m(q()),Ft=m(R());var ha=m(q());var Kd=function(e,t,o,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,o,i);else for(var c=e.length-1;c>=0;c--)(s=e[c])&&(a=(n<3?s(a):n>3?s(t,o,a):s(t,o))||a);return n>3&&a&&Object.defineProperty(t,o,a),a},ya=class extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}},fa=Symbol("registerInterval");function Au(e){var t;class o extends e{constructor(){super(...arguments),this.disableContextInteractions=!1,this[t]=0}connectedCallback(){super.connectedCallback(),this[fa]=window.setInterval(()=>this.tryToRegisterToTopicContext(),50)}tryToRegisterToTopicContext(){this.tocNode!=null?window.clearInterval(this[fa]):this.dispatchEvent(new ya)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return t=fa,Kd([(0,ha.state)()],o.prototype,"tocNode",void 0),Kd([(0,ha.state)()],o.prototype,"disableContextInteractions",void 0),o}var Yi=class extends Au(ze){};var Dt=function(e,t,o,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,o,i);else for(var c=e.length-1;c>=0;c--)(s=e[c])&&(a=(n<3?s(a):n>3?s(t,o,a):s(t,o))||a);return n>3&&a&&Object.defineProperty(t,o,a),a},ut=class extends ir(Yi){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=$t.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 Qr,this.i18nProperties={feedbackMainTitle:G.properties.topicFeedbackMainTitle(),ratingSectionTitle:G.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:G.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:G.properties.topicFeedbackSectionTitle()},this.sendRatingDebouncer=new Ft.Debouncer(500),this.addStore(T)}render(){var t;return Zd.html`
2008
+ `}willUpdate(t){var o,i,n,a,s;super.willUpdate(t),t.has("map")&&this.map&&((o=this.stateManager)===null||o===void 0||o.fetchMapRating()),t.has("editorMode")&&this.editorMode&&this.addI18nContext(cr,qi),["map","configuration","user","mailSubject"].some(c=>t.has(c))&&this.map&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,(n=(i=this.service)===null||i===void 0?void 0:i.getLink())!==null&&n!==void 0?n:"",this.map.metadata,this.configuration,((s=(a=this.session)===null||a===void 0?void 0:a.profile)===null||s===void 0?void 0:s.userId)!=null)}connectedCallback(){super.connectedCallback()}onStoreAvailable(t){super.onStoreAvailable(t)}async fetchRatingSummary(){var t;await((t=this.stateManager)===null||t===void 0?void 0:t.fetchMapRating())}rate(t){this.ratingSummary&&(this.ratingSummary={...this.ratingSummary,rating:t.detail==null?void 0:{type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run(()=>this.sendRating(t.detail)))}async sendRating(t){var o,i,n,a;if(!this.editorMode&&this.ratingSummary){try{t==null?await((o=this.service)===null||o===void 0?void 0:o.unrateMap()):await((i=this.service)===null||i===void 0?void 0:i.rateMap((n=this.ratingSummary)===null||n===void 0?void 0:n.type,t))}catch{this.dispatchEvent(new Ut.FtNotificationEvent({type:"error",message:G.messages.ratingFailure()}))}await((a=this.stateManager)===null||a===void 0?void 0:a.fetchMapRating())}else this.editorMode&&this.dispatchEvent(new Ut.FtNotificationEvent({type:"info",message:cr.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var o;try{this.editorMode?this.dispatchEvent(new Ut.FtNotificationEvent({type:"info",message:cr.messages.feedbackAndRatingDisabledInEditor()})):(await((o=this.service)===null||o===void 0?void 0:o.sendMapFeedback(t.detail.message,t.detail.from)),this.dispatchEvent(new Ut.FtNotificationEvent({type:"info",message:G.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new Ut.FtNotificationEvent({type:"error",message:G.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new Ki)}openMoreOptions(){var t,o,i;this.dispatchEvent(new Gi({mapId:this.map.id,mapTitle:this.map.title,mapMetadata:((t=this.map)===null||t===void 0?void 0:t.metadata)||[],ratingType:((o=this.ratingSummary)===null||o===void 0?void 0:o.type)||xt.NO_RATING,ratingValue:(i=this.ratingSummary)===null||i===void 0?void 0:i.rating}))}};pt.elementDefinitions={"ft-reader-feedback":Q};Pt([(0,Ut.redux)({store:T.name})],pt.prototype,"session",void 0);Pt([(0,Ut.redux)({store:"reader"})],pt.prototype,"map",void 0);Pt([(0,Ut.redux)({store:T.name})],pt.prototype,"editorMode",void 0);Pt([(0,Ut.redux)({store:"reader",selector:e=>{var t;return(t=e.configuration)===null||t===void 0?void 0:t.feedback}})],pt.prototype,"configuration",void 0);Pt([(0,Ut.redux)({store:"reader",selector:e=>e.mapRating})],pt.prototype,"ratingSummary",void 0);Pt([(0,ce.property)({type:Boolean})],pt.prototype,"hideTitle",void 0);Pt([(0,ce.property)({type:Boolean})],pt.prototype,"withMoreOptionsButton",void 0);Pt([(0,ce.property)()],pt.prototype,"iconVariant",void 0);Pt([(0,ce.property)()],pt.prototype,"emptyStarIcon",void 0);Pt([(0,ce.property)()],pt.prototype,"filledStarIcon",void 0);Pt([(0,ce.property)()],pt.prototype,"emptyLikeIcon",void 0);Pt([(0,ce.property)()],pt.prototype,"filledLikeIcon",void 0);Pt([(0,ce.property)()],pt.prototype,"emptyDislikeIcon",void 0);Pt([(0,ce.property)()],pt.prototype,"filledDislikeIcon",void 0);Pt([(0,ce.query)("ft-reader-feedback")],pt.prototype,"readerFeedback",void 0);Pt([Ri(Xr.properties["mail.map_feedback.subject"](e=>{var t;return[(t=e.map)===null||t===void 0?void 0:t.title]}))],pt.prototype,"mailSubject",void 0);Pt([(0,Ut.reduxEventListener)({eventName:"rating-changed"})],pt.prototype,"fetchRatingSummary",null);var qd=m(M()),de=m(q()),Ft=m(R());var ha=m(q());var Zd=function(e,t,o,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,o,i);else for(var c=e.length-1;c>=0;c--)(s=e[c])&&(a=(n<3?s(a):n>3?s(t,o,a):s(t,o))||a);return n>3&&a&&Object.defineProperty(t,o,a),a},ya=class extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}},fa=Symbol("registerInterval");function Ru(e){var t;class o extends e{constructor(){super(...arguments),this.disableContextInteractions=!1,this[t]=0}connectedCallback(){super.connectedCallback(),this[fa]=window.setInterval(()=>this.tryToRegisterToTopicContext(),50)}tryToRegisterToTopicContext(){this.tocNode!=null?window.clearInterval(this[fa]):this.dispatchEvent(new ya)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return t=fa,Zd([(0,ha.state)()],o.prototype,"tocNode",void 0),Zd([(0,ha.state)()],o.prototype,"disableContextInteractions",void 0),o}var Yi=class extends Ru(He){};var Dt=function(e,t,o,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,o,i);else for(var c=e.length-1;c>=0;c--)(s=e[c])&&(a=(n<3?s(a):n>3?s(t,o,a):s(t,o))||a);return n>3&&a&&Object.defineProperty(t,o,a),a},ut=class extends nr(Yi){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=$t.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 Qr,this.i18nProperties={feedbackMainTitle:G.properties.topicFeedbackMainTitle(),ratingSectionTitle:G.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:G.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:G.properties.topicFeedbackSectionTitle()},this.sendRatingDebouncer=new Ft.Debouncer(500),this.addStore(T)}render(){var t;return qd.html`
2009
2009
  <ft-reader-feedback
2010
2010
  .i18nProperties=${this.i18nProperties}
2011
2011
  ?ratingAllowed=${(t=this.tocNode)===null||t===void 0?void 0:t.hasRating}
@@ -2027,7 +2027,7 @@ ${Xr.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(o=this.configura
2027
2027
  @mailer-feedback=${this.onMailerFeedbackSent}
2028
2028
  @open-more-options=${this.openMoreOptions}
2029
2029
  ></ft-reader-feedback>
2030
- `}willUpdate(t){var o,i,n,a,s;super.willUpdate(t),["tocNode","user"].some(c=>t.has(c))&&this.tocNode&&((o=this.stateManager)===null||o===void 0||o.fetchTopicRating(this.tocNode.tocId)),t.has("editorMode")&&this.editorMode&&this.addI18nContext(lr,qi),["map","tocNode","configuration","user","mailSubject"].some(c=>t.has(c))&&this.map&&this.tocNode&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,(n=(i=this.service)===null||i===void 0?void 0:i.getLink(this.tocNode.tocId))!==null&&n!==void 0?n:"",this.map.metadata,this.configuration,((s=(a=this.session)===null||a===void 0?void 0:a.profile)===null||s===void 0?void 0:s.userId)!=null)}connectedCallback(){super.connectedCallback()}async fetchRatingSummary(){var t;await((t=this.stateManager)===null||t===void 0?void 0:t.fetchTopicRating(this.tocNode.tocId))}rate(t){this.ratingSummary&&this.tocNode&&(this.ratingSummary={...this.ratingSummary,rating:t.detail==null?void 0:{tocId:this.tocNode.tocId,type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run(()=>this.sendRating(t.detail)))}async sendRating(t){var o,i,n,a;if(!this.editorMode&&this.ratingSummary&&this.tocNode){try{t==null?await((o=this.service)===null||o===void 0?void 0:o.unrateTopic(this.tocNode.tocId)):await((i=this.service)===null||i===void 0?void 0:i.rateTopic(this.tocNode.tocId,(n=this.ratingSummary)===null||n===void 0?void 0:n.type,t))}catch{this.dispatchEvent(new Ft.FtNotificationEvent({type:"error",message:G.messages.ratingFailure()}))}await((a=this.stateManager)===null||a===void 0?void 0:a.fetchTopicRating(this.tocNode.tocId))}else this.editorMode&&this.dispatchEvent(new Ft.FtNotificationEvent({type:"info",message:lr.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var o;try{!this.editorMode&&this.tocNode?(await((o=this.service)===null||o===void 0?void 0:o.sendTopicFeedback(this.tocNode.tocId,t.detail.message,t.detail.from)),this.dispatchEvent(new Ft.FtNotificationEvent({type:"info",message:G.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new Ft.FtNotificationEvent({type:"info",message:lr.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new Ft.FtNotificationEvent({type:"error",message:G.messages.feedbackFailure()}))}}onMailerFeedbackSent(){let t=this.tocNode;this.dispatchEvent(new ji(t))}openMoreOptions(){var t,o,i,n,a,s,c,u;this.dispatchEvent(new Vi({mapId:this.map.id,mapTitle:this.map.title,tocId:this.tocNode.tocId,topicTitle:this.tocNode.title,topicUrl:(o=(t=this.service)===null||t===void 0?void 0:t.getLink(this.tocNode.tocId))!==null&&o!==void 0?o:"",mapMetadata:((i=this.map)===null||i===void 0?void 0:i.metadata)||[],breadcrumb:((a=(n=this.stateManager)===null||n===void 0?void 0:n.service)===null||a===void 0?void 0:a.buildBreadcrumb(this.tocNode.tocId))||[],ratingType:(!((s=this.tocNode)===null||s===void 0)&&s.hasRating?(c=this.ratingSummary)===null||c===void 0?void 0:c.type:xt.NO_RATING)||xt.NO_RATING,ratingValue:(u=this.ratingSummary)===null||u===void 0?void 0:u.rating}))}};ut.elementDefinitions={"ft-reader-feedback":Q};Dt([(0,Ft.redux)({store:T.name})],ut.prototype,"session",void 0);Dt([(0,Ft.redux)({store:"reader"})],ut.prototype,"map",void 0);Dt([(0,Ft.redux)({store:T.name})],ut.prototype,"editorMode",void 0);Dt([(0,Ft.redux)({store:"reader",selector:e=>{var t;return(t=e.configuration)===null||t===void 0?void 0:t.feedback}})],ut.prototype,"configuration",void 0);Dt([(0,Ft.redux)({store:"reader",selector:(e,t)=>{var o,i;return e.topicsRating[(i=(o=t.tocNode)===null||o===void 0?void 0:o.tocId)!==null&&i!==void 0?i:""]}})],ut.prototype,"ratingSummary",void 0);Dt([(0,de.property)({type:Boolean})],ut.prototype,"hideTitle",void 0);Dt([(0,de.property)({type:Boolean})],ut.prototype,"withMoreOptionsButton",void 0);Dt([(0,de.property)()],ut.prototype,"iconVariant",void 0);Dt([(0,de.property)()],ut.prototype,"emptyStarIcon",void 0);Dt([(0,de.property)()],ut.prototype,"filledStarIcon",void 0);Dt([(0,de.property)()],ut.prototype,"emptyLikeIcon",void 0);Dt([(0,de.property)()],ut.prototype,"filledLikeIcon",void 0);Dt([(0,de.property)()],ut.prototype,"emptyDislikeIcon",void 0);Dt([(0,de.property)()],ut.prototype,"filledDislikeIcon",void 0);Dt([(0,de.query)("ft-reader-feedback")],ut.prototype,"readerFeedback",void 0);Dt([Ri(Xr.properties["mail.feedback.subject"](e=>{var t,o;return[(t=e.tocNode)===null||t===void 0?void 0:t.title,(o=e.map)===null||o===void 0?void 0:o.title]}))],ut.prototype,"mailSubject",void 0);Dt([(0,Ft.reduxEventListener)({eventName:"rating-changed"})],ut.prototype,"fetchRatingSummary",null);(0,ga.customElement)("ft-reader-map-feedback")(pt);(0,ga.customElement)("ft-reader-topic-feedback")(ut);})();
2030
+ `}willUpdate(t){var o,i,n,a,s;super.willUpdate(t),["tocNode","user"].some(c=>t.has(c))&&this.tocNode&&((o=this.stateManager)===null||o===void 0||o.fetchTopicRating(this.tocNode.tocId)),t.has("editorMode")&&this.editorMode&&this.addI18nContext(cr,qi),["map","tocNode","configuration","user","mailSubject"].some(c=>t.has(c))&&this.map&&this.tocNode&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,(n=(i=this.service)===null||i===void 0?void 0:i.getLink(this.tocNode.tocId))!==null&&n!==void 0?n:"",this.map.metadata,this.configuration,((s=(a=this.session)===null||a===void 0?void 0:a.profile)===null||s===void 0?void 0:s.userId)!=null)}connectedCallback(){super.connectedCallback()}async fetchRatingSummary(){var t;await((t=this.stateManager)===null||t===void 0?void 0:t.fetchTopicRating(this.tocNode.tocId))}rate(t){this.ratingSummary&&this.tocNode&&(this.ratingSummary={...this.ratingSummary,rating:t.detail==null?void 0:{tocId:this.tocNode.tocId,type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run(()=>this.sendRating(t.detail)))}async sendRating(t){var o,i,n,a;if(!this.editorMode&&this.ratingSummary&&this.tocNode){try{t==null?await((o=this.service)===null||o===void 0?void 0:o.unrateTopic(this.tocNode.tocId)):await((i=this.service)===null||i===void 0?void 0:i.rateTopic(this.tocNode.tocId,(n=this.ratingSummary)===null||n===void 0?void 0:n.type,t))}catch{this.dispatchEvent(new Ft.FtNotificationEvent({type:"error",message:G.messages.ratingFailure()}))}await((a=this.stateManager)===null||a===void 0?void 0:a.fetchTopicRating(this.tocNode.tocId))}else this.editorMode&&this.dispatchEvent(new Ft.FtNotificationEvent({type:"info",message:cr.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var o;try{!this.editorMode&&this.tocNode?(await((o=this.service)===null||o===void 0?void 0:o.sendTopicFeedback(this.tocNode.tocId,t.detail.message,t.detail.from)),this.dispatchEvent(new Ft.FtNotificationEvent({type:"info",message:G.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new Ft.FtNotificationEvent({type:"info",message:cr.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new Ft.FtNotificationEvent({type:"error",message:G.messages.feedbackFailure()}))}}onMailerFeedbackSent(){let t=this.tocNode;this.dispatchEvent(new ji(t))}openMoreOptions(){var t,o,i,n,a,s,c,u;this.dispatchEvent(new Vi({mapId:this.map.id,mapTitle:this.map.title,tocId:this.tocNode.tocId,topicTitle:this.tocNode.title,topicUrl:(o=(t=this.service)===null||t===void 0?void 0:t.getLink(this.tocNode.tocId))!==null&&o!==void 0?o:"",mapMetadata:((i=this.map)===null||i===void 0?void 0:i.metadata)||[],breadcrumb:((a=(n=this.stateManager)===null||n===void 0?void 0:n.service)===null||a===void 0?void 0:a.buildBreadcrumb(this.tocNode.tocId))||[],ratingType:(!((s=this.tocNode)===null||s===void 0)&&s.hasRating?(c=this.ratingSummary)===null||c===void 0?void 0:c.type:xt.NO_RATING)||xt.NO_RATING,ratingValue:(u=this.ratingSummary)===null||u===void 0?void 0:u.rating}))}};ut.elementDefinitions={"ft-reader-feedback":Q};Dt([(0,Ft.redux)({store:T.name})],ut.prototype,"session",void 0);Dt([(0,Ft.redux)({store:"reader"})],ut.prototype,"map",void 0);Dt([(0,Ft.redux)({store:T.name})],ut.prototype,"editorMode",void 0);Dt([(0,Ft.redux)({store:"reader",selector:e=>{var t;return(t=e.configuration)===null||t===void 0?void 0:t.feedback}})],ut.prototype,"configuration",void 0);Dt([(0,Ft.redux)({store:"reader",selector:(e,t)=>{var o,i;return e.topicsRating[(i=(o=t.tocNode)===null||o===void 0?void 0:o.tocId)!==null&&i!==void 0?i:""]}})],ut.prototype,"ratingSummary",void 0);Dt([(0,de.property)({type:Boolean})],ut.prototype,"hideTitle",void 0);Dt([(0,de.property)({type:Boolean})],ut.prototype,"withMoreOptionsButton",void 0);Dt([(0,de.property)()],ut.prototype,"iconVariant",void 0);Dt([(0,de.property)()],ut.prototype,"emptyStarIcon",void 0);Dt([(0,de.property)()],ut.prototype,"filledStarIcon",void 0);Dt([(0,de.property)()],ut.prototype,"emptyLikeIcon",void 0);Dt([(0,de.property)()],ut.prototype,"filledLikeIcon",void 0);Dt([(0,de.property)()],ut.prototype,"emptyDislikeIcon",void 0);Dt([(0,de.property)()],ut.prototype,"filledDislikeIcon",void 0);Dt([(0,de.query)("ft-reader-feedback")],ut.prototype,"readerFeedback",void 0);Dt([Ri(Xr.properties["mail.feedback.subject"](e=>{var t,o;return[(t=e.tocNode)===null||t===void 0?void 0:t.title,(o=e.map)===null||o===void 0?void 0:o.title]}))],ut.prototype,"mailSubject",void 0);Dt([(0,Ft.reduxEventListener)({eventName:"rating-changed"})],ut.prototype,"fetchRatingSummary",null);(0,ga.customElement)("ft-reader-map-feedback")(pt);(0,ga.customElement)("ft-reader-topic-feedback")(ut);})();
2031
2031
  /*! Bundled license information:
2032
2032
 
2033
2033
  lit-html/lit-html.js: