@fluid-topics/ft-reader-content 2.0.3 → 2.0.5

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,7 +1,7 @@
1
- "use strict";(()=>{var rs=Object.create;var Go=Object.defineProperty;var os=Object.getOwnPropertyDescriptor;var ns=Object.getOwnPropertyNames;var as=Object.getPrototypeOf,is=Object.prototype.hasOwnProperty;var Xe=(o,e)=>()=>(e||o((e={exports:{}}).exports,e),e.exports);var ss=(o,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of ns(e))!is.call(o,a)&&a!==r&&Go(o,a,{get:()=>e[a],enumerable:!(n=os(e,a))||n.enumerable});return o};var C=(o,e,r)=>(r=o!=null?rs(as(o)):{},ss(e||!o||!o.__esModule?Go(r,"default",{value:o,enumerable:!0}):r,o));var _=Xe((hc,Wo)=>{Wo.exports=ftGlobals.wcUtils});var V=Xe((gc,$o)=>{$o.exports=ftGlobals.lit});var J=Xe((yc,jo)=>{jo.exports=ftGlobals.litDecorators});var Ur=Xe((Sc,qo)=>{qo.exports=ftGlobals.litRepeat});var Qo=Xe((Cc,Yo)=>{Yo.exports=ftGlobals.litUnsafeHTML});var fn=Xe((Ee,pn)=>{var $t=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,jt=function(){function o(){this.fetch=!1,this.DOMException=$t.DOMException}return o.prototype=$t,new o}();(function(o){var e=function(r){var n=typeof o<"u"&&o||typeof self<"u"&&self||typeof global<"u"&&global||{},a={searchParams:"URLSearchParams"in n,iterable:"Symbol"in n&&"iterator"in Symbol,blob:"FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in n,arrayBuffer:"ArrayBuffer"in n};function s(f){return f&&DataView.prototype.isPrototypeOf(f)}if(a.arrayBuffer)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],d=ArrayBuffer.isView||function(f){return f&&c.indexOf(Object.prototype.toString.call(f))>-1};function u(f){if(typeof f!="string"&&(f=String(f)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(f)||f==="")throw new TypeError('Invalid character in header field name: "'+f+'"');return f.toLowerCase()}function p(f){return typeof f!="string"&&(f=String(f)),f}function h(f){var y={next:function(){var A=f.shift();return{done:A===void 0,value:A}}};return a.iterable&&(y[Symbol.iterator]=function(){return y}),y}function g(f){this.map={},f instanceof g?f.forEach(function(y,A){this.append(A,y)},this):Array.isArray(f)?f.forEach(function(y){if(y.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+y.length);this.append(y[0],y[1])},this):f&&Object.getOwnPropertyNames(f).forEach(function(y){this.append(y,f[y])},this)}g.prototype.append=function(f,y){f=u(f),y=p(y);var A=this.map[f];this.map[f]=A?A+", "+y:y},g.prototype.delete=function(f){delete this.map[u(f)]},g.prototype.get=function(f){return f=u(f),this.has(f)?this.map[f]:null},g.prototype.has=function(f){return this.map.hasOwnProperty(u(f))},g.prototype.set=function(f,y){this.map[u(f)]=p(y)},g.prototype.forEach=function(f,y){for(var A in this.map)this.map.hasOwnProperty(A)&&f.call(y,this.map[A],A,this)},g.prototype.keys=function(){var f=[];return this.forEach(function(y,A){f.push(A)}),h(f)},g.prototype.values=function(){var f=[];return this.forEach(function(y){f.push(y)}),h(f)},g.prototype.entries=function(){var f=[];return this.forEach(function(y,A){f.push([A,y])}),h(f)},a.iterable&&(g.prototype[Symbol.iterator]=g.prototype.entries);function m(f){if(!f._noBody){if(f.bodyUsed)return Promise.reject(new TypeError("Already read"));f.bodyUsed=!0}}function v(f){return new Promise(function(y,A){f.onload=function(){y(f.result)},f.onerror=function(){A(f.error)}})}function b(f){var y=new FileReader,A=v(y);return y.readAsArrayBuffer(f),A}function O(f){var y=new FileReader,A=v(y),N=/charset=([A-Za-z0-9_-]+)/.exec(f.type),B=N?N[1]:"utf-8";return y.readAsText(f,B),A}function w(f){for(var y=new Uint8Array(f),A=new Array(y.length),N=0;N<y.length;N++)A[N]=String.fromCharCode(y[N]);return A.join("")}function I(f){if(f.slice)return f.slice(0);var y=new Uint8Array(f.byteLength);return y.set(new Uint8Array(f)),y.buffer}function T(){return this.bodyUsed=!1,this._initBody=function(f){this.bodyUsed=this.bodyUsed,this._bodyInit=f,f?typeof f=="string"?this._bodyText=f:a.blob&&Blob.prototype.isPrototypeOf(f)?this._bodyBlob=f:a.formData&&FormData.prototype.isPrototypeOf(f)?this._bodyFormData=f:a.searchParams&&URLSearchParams.prototype.isPrototypeOf(f)?this._bodyText=f.toString():a.arrayBuffer&&a.blob&&s(f)?(this._bodyArrayBuffer=I(f.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(f)||d(f))?this._bodyArrayBuffer=I(f):this._bodyText=f=Object.prototype.toString.call(f):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof f=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):a.searchParams&&URLSearchParams.prototype.isPrototypeOf(f)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},a.blob&&(this.blob=function(){var f=m(this);if(f)return f;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var f=m(this);return f||(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(a.blob)return this.blob().then(b);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var f=m(this);if(f)return f;if(this._bodyBlob)return O(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(w(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a.formData&&(this.formData=function(){return this.text().then(de)}),this.json=function(){return this.text().then(JSON.parse)},this}var P=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function L(f){var y=f.toUpperCase();return P.indexOf(y)>-1?y:f}function $(f,y){if(!(this instanceof $))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');y=y||{};var A=y.body;if(f instanceof $){if(f.bodyUsed)throw new TypeError("Already read");this.url=f.url,this.credentials=f.credentials,y.headers||(this.headers=new g(f.headers)),this.method=f.method,this.mode=f.mode,this.signal=f.signal,!A&&f._bodyInit!=null&&(A=f._bodyInit,f.bodyUsed=!0)}else this.url=String(f);if(this.credentials=y.credentials||this.credentials||"same-origin",(y.headers||!this.headers)&&(this.headers=new g(y.headers)),this.method=L(y.method||this.method||"GET"),this.mode=y.mode||this.mode||null,this.signal=y.signal||this.signal||function(){if("AbortController"in n){var R=new AbortController;return R.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&A)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(A),(this.method==="GET"||this.method==="HEAD")&&(y.cache==="no-store"||y.cache==="no-cache")){var N=/([?&])_=[^&]*/;if(N.test(this.url))this.url=this.url.replace(N,"$1_="+new Date().getTime());else{var B=/\?/;this.url+=(B.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}$.prototype.clone=function(){return new $(this,{body:this._bodyInit})};function de(f){var y=new FormData;return f.trim().split("&").forEach(function(A){if(A){var N=A.split("="),B=N.shift().replace(/\+/g," "),R=N.join("=").replace(/\+/g," ");y.append(decodeURIComponent(B),decodeURIComponent(R))}}),y}function Pe(f){var y=new g,A=f.replace(/\r?\n[\t ]+/g," ");return A.split("\r").map(function(N){return N.indexOf(`
2
- `)===0?N.substr(1,N.length):N}).forEach(function(N){var B=N.split(":"),R=B.shift().trim();if(R){var Ut=B.join(":").trim();try{y.append(R,Ut)}catch(Dr){console.warn("Response "+Dr.message)}}}),y}T.call($.prototype);function X(f,y){if(!(this instanceof X))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(y||(y={}),this.type="default",this.status=y.status===void 0?200:y.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=y.statusText===void 0?"":""+y.statusText,this.headers=new g(y.headers),this.url=y.url||"",this._initBody(f)}T.call(X.prototype),X.prototype.clone=function(){return new X(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new g(this.headers),url:this.url})},X.error=function(){var f=new X(null,{status:200,statusText:""});return f.ok=!1,f.status=0,f.type="error",f};var ke=[301,302,303,307,308];X.redirect=function(f,y){if(ke.indexOf(y)===-1)throw new RangeError("Invalid status code");return new X(null,{status:y,headers:{location:f}})},r.DOMException=n.DOMException;try{new r.DOMException}catch{r.DOMException=function(y,A){this.message=y,this.name=A;var N=Error(y);this.stack=N.stack},r.DOMException.prototype=Object.create(Error.prototype),r.DOMException.prototype.constructor=r.DOMException}function Qe(f,y){return new Promise(function(A,N){var B=new $(f,y);if(B.signal&&B.signal.aborted)return N(new r.DOMException("Aborted","AbortError"));var R=new XMLHttpRequest;function Ut(){R.abort()}R.onload=function(){var j={statusText:R.statusText,headers:Pe(R.getAllResponseHeaders()||"")};B.url.indexOf("file://")===0&&(R.status<200||R.status>599)?j.status=200:j.status=R.status,j.url="responseURL"in R?R.responseURL:j.headers.get("X-Request-URL");var De="response"in R?R.response:R.responseText;setTimeout(function(){A(new X(De,j))},0)},R.onerror=function(){setTimeout(function(){N(new TypeError("Network request failed"))},0)},R.ontimeout=function(){setTimeout(function(){N(new TypeError("Network request timed out"))},0)},R.onabort=function(){setTimeout(function(){N(new r.DOMException("Aborted","AbortError"))},0)};function Dr(j){try{return j===""&&n.location.href?n.location.href:j}catch{return j}}if(R.open(B.method,Dr(B.url),!0),B.credentials==="include"?R.withCredentials=!0:B.credentials==="omit"&&(R.withCredentials=!1),"responseType"in R&&(a.blob?R.responseType="blob":a.arrayBuffer&&(R.responseType="arraybuffer")),y&&typeof y.headers=="object"&&!(y.headers instanceof g||n.Headers&&y.headers instanceof n.Headers)){var zo=[];Object.getOwnPropertyNames(y.headers).forEach(function(j){zo.push(u(j)),R.setRequestHeader(j,p(y.headers[j]))}),B.headers.forEach(function(j,De){zo.indexOf(De)===-1&&R.setRequestHeader(De,j)})}else B.headers.forEach(function(j,De){R.setRequestHeader(De,j)});B.signal&&(B.signal.addEventListener("abort",Ut),R.onreadystatechange=function(){R.readyState===4&&B.signal.removeEventListener("abort",Ut)}),R.send(typeof B._bodyInit>"u"?null:B._bodyInit)})}return Qe.polyfill=!0,n.fetch||(n.fetch=Qe,n.Headers=g,n.Request=$,n.Response=X),r.Headers=g,r.Request=$,r.Response=X,r.fetch=Qe,r}({})})(jt);jt.fetch.ponyfill=!0;delete jt.fetch.polyfill;var rt=$t.fetch?$t:jt;Ee=rt.fetch;Ee.default=rt.fetch;Ee.fetch=rt.fetch;Ee.Headers=rt.Headers;Ee.Request=rt.Request;Ee.Response=rt.Response;pn.exports=Ee});var ts=C(_());var kr=C(V()),Bt=C(J()),ne=C(_());var Ht=C(_()),Vo=C(J());var Fe;(function(o){o.clusteringHelperCreated="clustering-helper-created",o.mapAttachmentsUpdate="map-attachments-update",o.visibleTopicChange="visible-topic-change"})(Fe||(Fe={}));var ve;(function(o){o.FEEDBACK="FEEDBACK",o.RATING="RATING",o.PRINT="PRINT",o.BOOKMARK="BOOKMARK",o.COLLECTIONS="COLLECTIONS",o.PERSONAL_BOOKS="PERSONAL_BOOKS"})(ve||(ve={}));var cs=function(o,e,r,n){var a=arguments.length,s=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,r,n);else for(var d=o.length-1;d>=0;d--)(c=o[d])&&(s=(a<3?c(s):a>3?c(e,r,s):c(e,r))||s);return a>3&&s&&Object.defineProperty(e,r,s),s},Mr=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},Fr=Symbol("registerInterval"),ls=(0,Ht.applyMixinOnce)(Symbol("toFtReaderComponent"),function(o){var e;class r extends o{constructor(){super(...arguments),this[e]=0}setReaderStateManager(a){this.clearStateManager(),this.stateManager=a,this.addStore(a.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var a;return(a=this.stateManager)===null||a===void 0?void 0:a.service}connectedCallback(){super.connectedCallback(),this[Fr]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[Fr]):this.dispatchEvent(new Mr)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=Fr,cs([(0,Vo.state)()],r.prototype,"stateManager",void 0),r}),Je=class extends ls(Ht.FtLitElementRedux){};var Ko=C(V()),zt=C(_()),Br={padding:zt.FtCssVariableFactory.create("--ft-infinite-scroll-padding","","SIZE","0"),itemsGap:zt.FtCssVariableFactory.create("--ft-infinite-scroll-items-gap","","SIZE","4px"),itemContainerMinHeight:zt.FtCssVariableFactory.create("--ft-infinite-scroll-item-container-min-height","","SIZE",".1px")},Zo=Ko.css`
1
+ "use strict";(()=>{var as=Object.create;var Go=Object.defineProperty;var is=Object.getOwnPropertyDescriptor;var ss=Object.getOwnPropertyNames;var cs=Object.getPrototypeOf,ls=Object.prototype.hasOwnProperty;var Xe=(o,e)=>()=>(e||o((e={exports:{}}).exports,e),e.exports);var ds=(o,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of ss(e))!ls.call(o,a)&&a!==r&&Go(o,a,{get:()=>e[a],enumerable:!(n=is(e,a))||n.enumerable});return o};var C=(o,e,r)=>(r=o!=null?as(cs(o)):{},ds(e||!o||!o.__esModule?Go(r,"default",{value:o,enumerable:!0}):r,o));var _=Xe((mc,Wo)=>{Wo.exports=ftGlobals.wcUtils});var V=Xe((bc,$o)=>{$o.exports=ftGlobals.lit});var J=Xe((vc,jo)=>{jo.exports=ftGlobals.litDecorators});var Br=Xe((Ec,qo)=>{qo.exports=ftGlobals.litRepeat});var Qo=Xe((Ac,Yo)=>{Yo.exports=ftGlobals.litUnsafeHTML});var fn=Xe((Ee,pn)=>{var $t=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,jt=function(){function o(){this.fetch=!1,this.DOMException=$t.DOMException}return o.prototype=$t,new o}();(function(o){var e=function(r){var n=typeof o<"u"&&o||typeof self<"u"&&self||typeof global<"u"&&global||{},a={searchParams:"URLSearchParams"in n,iterable:"Symbol"in n&&"iterator"in Symbol,blob:"FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in n,arrayBuffer:"ArrayBuffer"in n};function s(f){return f&&DataView.prototype.isPrototypeOf(f)}if(a.arrayBuffer)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],d=ArrayBuffer.isView||function(f){return f&&c.indexOf(Object.prototype.toString.call(f))>-1};function u(f){if(typeof f!="string"&&(f=String(f)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(f)||f==="")throw new TypeError('Invalid character in header field name: "'+f+'"');return f.toLowerCase()}function p(f){return typeof f!="string"&&(f=String(f)),f}function h(f){var y={next:function(){var A=f.shift();return{done:A===void 0,value:A}}};return a.iterable&&(y[Symbol.iterator]=function(){return y}),y}function g(f){this.map={},f instanceof g?f.forEach(function(y,A){this.append(A,y)},this):Array.isArray(f)?f.forEach(function(y){if(y.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+y.length);this.append(y[0],y[1])},this):f&&Object.getOwnPropertyNames(f).forEach(function(y){this.append(y,f[y])},this)}g.prototype.append=function(f,y){f=u(f),y=p(y);var A=this.map[f];this.map[f]=A?A+", "+y:y},g.prototype.delete=function(f){delete this.map[u(f)]},g.prototype.get=function(f){return f=u(f),this.has(f)?this.map[f]:null},g.prototype.has=function(f){return this.map.hasOwnProperty(u(f))},g.prototype.set=function(f,y){this.map[u(f)]=p(y)},g.prototype.forEach=function(f,y){for(var A in this.map)this.map.hasOwnProperty(A)&&f.call(y,this.map[A],A,this)},g.prototype.keys=function(){var f=[];return this.forEach(function(y,A){f.push(A)}),h(f)},g.prototype.values=function(){var f=[];return this.forEach(function(y){f.push(y)}),h(f)},g.prototype.entries=function(){var f=[];return this.forEach(function(y,A){f.push([A,y])}),h(f)},a.iterable&&(g.prototype[Symbol.iterator]=g.prototype.entries);function m(f){if(!f._noBody){if(f.bodyUsed)return Promise.reject(new TypeError("Already read"));f.bodyUsed=!0}}function v(f){return new Promise(function(y,A){f.onload=function(){y(f.result)},f.onerror=function(){A(f.error)}})}function b(f){var y=new FileReader,A=v(y);return y.readAsArrayBuffer(f),A}function O(f){var y=new FileReader,A=v(y),L=/charset=([A-Za-z0-9_-]+)/.exec(f.type),U=L?L[1]:"utf-8";return y.readAsText(f,U),A}function w(f){for(var y=new Uint8Array(f),A=new Array(y.length),L=0;L<y.length;L++)A[L]=String.fromCharCode(y[L]);return A.join("")}function I(f){if(f.slice)return f.slice(0);var y=new Uint8Array(f.byteLength);return y.set(new Uint8Array(f)),y.buffer}function T(){return this.bodyUsed=!1,this._initBody=function(f){this.bodyUsed=this.bodyUsed,this._bodyInit=f,f?typeof f=="string"?this._bodyText=f:a.blob&&Blob.prototype.isPrototypeOf(f)?this._bodyBlob=f:a.formData&&FormData.prototype.isPrototypeOf(f)?this._bodyFormData=f:a.searchParams&&URLSearchParams.prototype.isPrototypeOf(f)?this._bodyText=f.toString():a.arrayBuffer&&a.blob&&s(f)?(this._bodyArrayBuffer=I(f.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(f)||d(f))?this._bodyArrayBuffer=I(f):this._bodyText=f=Object.prototype.toString.call(f):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof f=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):a.searchParams&&URLSearchParams.prototype.isPrototypeOf(f)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},a.blob&&(this.blob=function(){var f=m(this);if(f)return f;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var f=m(this);return f||(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(a.blob)return this.blob().then(b);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var f=m(this);if(f)return f;if(this._bodyBlob)return O(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(w(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a.formData&&(this.formData=function(){return this.text().then(de)}),this.json=function(){return this.text().then(JSON.parse)},this}var k=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function N(f){var y=f.toUpperCase();return k.indexOf(y)>-1?y:f}function $(f,y){if(!(this instanceof $))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');y=y||{};var A=y.body;if(f instanceof $){if(f.bodyUsed)throw new TypeError("Already read");this.url=f.url,this.credentials=f.credentials,y.headers||(this.headers=new g(f.headers)),this.method=f.method,this.mode=f.mode,this.signal=f.signal,!A&&f._bodyInit!=null&&(A=f._bodyInit,f.bodyUsed=!0)}else this.url=String(f);if(this.credentials=y.credentials||this.credentials||"same-origin",(y.headers||!this.headers)&&(this.headers=new g(y.headers)),this.method=N(y.method||this.method||"GET"),this.mode=y.mode||this.mode||null,this.signal=y.signal||this.signal||function(){if("AbortController"in n){var R=new AbortController;return R.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&A)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(A),(this.method==="GET"||this.method==="HEAD")&&(y.cache==="no-store"||y.cache==="no-cache")){var L=/([?&])_=[^&]*/;if(L.test(this.url))this.url=this.url.replace(L,"$1_="+new Date().getTime());else{var U=/\?/;this.url+=(U.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}$.prototype.clone=function(){return new $(this,{body:this._bodyInit})};function de(f){var y=new FormData;return f.trim().split("&").forEach(function(A){if(A){var L=A.split("="),U=L.shift().replace(/\+/g," "),R=L.join("=").replace(/\+/g," ");y.append(decodeURIComponent(U),decodeURIComponent(R))}}),y}function Pe(f){var y=new g,A=f.replace(/\r?\n[\t ]+/g," ");return A.split("\r").map(function(L){return L.indexOf(`
2
+ `)===0?L.substr(1,L.length):L}).forEach(function(L){var U=L.split(":"),R=U.shift().trim();if(R){var Bt=U.join(":").trim();try{y.append(R,Bt)}catch(Dr){console.warn("Response "+Dr.message)}}}),y}T.call($.prototype);function X(f,y){if(!(this instanceof X))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(y||(y={}),this.type="default",this.status=y.status===void 0?200:y.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=y.statusText===void 0?"":""+y.statusText,this.headers=new g(y.headers),this.url=y.url||"",this._initBody(f)}T.call(X.prototype),X.prototype.clone=function(){return new X(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new g(this.headers),url:this.url})},X.error=function(){var f=new X(null,{status:200,statusText:""});return f.ok=!1,f.status=0,f.type="error",f};var ke=[301,302,303,307,308];X.redirect=function(f,y){if(ke.indexOf(y)===-1)throw new RangeError("Invalid status code");return new X(null,{status:y,headers:{location:f}})},r.DOMException=n.DOMException;try{new r.DOMException}catch{r.DOMException=function(y,A){this.message=y,this.name=A;var L=Error(y);this.stack=L.stack},r.DOMException.prototype=Object.create(Error.prototype),r.DOMException.prototype.constructor=r.DOMException}function Qe(f,y){return new Promise(function(A,L){var U=new $(f,y);if(U.signal&&U.signal.aborted)return L(new r.DOMException("Aborted","AbortError"));var R=new XMLHttpRequest;function Bt(){R.abort()}R.onload=function(){var j={statusText:R.statusText,headers:Pe(R.getAllResponseHeaders()||"")};U.url.indexOf("file://")===0&&(R.status<200||R.status>599)?j.status=200:j.status=R.status,j.url="responseURL"in R?R.responseURL:j.headers.get("X-Request-URL");var De="response"in R?R.response:R.responseText;setTimeout(function(){A(new X(De,j))},0)},R.onerror=function(){setTimeout(function(){L(new TypeError("Network request failed"))},0)},R.ontimeout=function(){setTimeout(function(){L(new TypeError("Network request timed out"))},0)},R.onabort=function(){setTimeout(function(){L(new r.DOMException("Aborted","AbortError"))},0)};function Dr(j){try{return j===""&&n.location.href?n.location.href:j}catch{return j}}if(R.open(U.method,Dr(U.url),!0),U.credentials==="include"?R.withCredentials=!0:U.credentials==="omit"&&(R.withCredentials=!1),"responseType"in R&&(a.blob?R.responseType="blob":a.arrayBuffer&&(R.responseType="arraybuffer")),y&&typeof y.headers=="object"&&!(y.headers instanceof g||n.Headers&&y.headers instanceof n.Headers)){var zo=[];Object.getOwnPropertyNames(y.headers).forEach(function(j){zo.push(u(j)),R.setRequestHeader(j,p(y.headers[j]))}),U.headers.forEach(function(j,De){zo.indexOf(De)===-1&&R.setRequestHeader(De,j)})}else U.headers.forEach(function(j,De){R.setRequestHeader(De,j)});U.signal&&(U.signal.addEventListener("abort",Bt),R.onreadystatechange=function(){R.readyState===4&&U.signal.removeEventListener("abort",Bt)}),R.send(typeof U._bodyInit>"u"?null:U._bodyInit)})}return Qe.polyfill=!0,n.fetch||(n.fetch=Qe,n.Headers=g,n.Request=$,n.Response=X),r.Headers=g,r.Request=$,r.Response=X,r.fetch=Qe,r}({})})(jt);jt.fetch.ponyfill=!0;delete jt.fetch.polyfill;var rt=$t.fetch?$t:jt;Ee=rt.fetch;Ee.default=rt.fetch;Ee.fetch=rt.fetch;Ee.Headers=rt.Headers;Ee.Request=rt.Request;Ee.Response=rt.Response;pn.exports=Ee});var ns=C(_());var kr=C(V()),Ut=C(J()),ne=C(_());var Ht=C(_()),Vo=C(J());var Fe;(function(o){o.clusteringHelperCreated="clustering-helper-created",o.mapAttachmentsUpdate="map-attachments-update",o.visibleTopicChange="visible-topic-change"})(Fe||(Fe={}));var ve;(function(o){o.FEEDBACK="FEEDBACK",o.RATING="RATING",o.PRINT="PRINT",o.BOOKMARK="BOOKMARK",o.COLLECTIONS="COLLECTIONS",o.PERSONAL_BOOKS="PERSONAL_BOOKS"})(ve||(ve={}));var us=function(o,e,r,n){var a=arguments.length,s=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,r,n);else for(var d=o.length-1;d>=0;d--)(c=o[d])&&(s=(a<3?c(s):a>3?c(e,r,s):c(e,r))||s);return a>3&&s&&Object.defineProperty(e,r,s),s},Mr=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},Fr=Symbol("registerInterval"),ps=(0,Ht.applyMixinOnce)(Symbol("toFtReaderComponent"),function(o){var e;class r extends o{constructor(){super(...arguments),this[e]=0}setReaderStateManager(a){this.clearStateManager(),this.stateManager=a,this.addStore(a.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var a;return(a=this.stateManager)===null||a===void 0?void 0:a.service}connectedCallback(){super.connectedCallback(),this[Fr]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[Fr]):this.dispatchEvent(new Mr)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=Fr,us([(0,Vo.state)()],r.prototype,"stateManager",void 0),r}),Je=class extends ps(Ht.FtLitElementRedux){};var Ko=C(V()),zt=C(_()),Ur={padding:zt.FtCssVariableFactory.create("--ft-infinite-scroll-padding","","SIZE","0"),itemsGap:zt.FtCssVariableFactory.create("--ft-infinite-scroll-items-gap","","SIZE","4px"),itemContainerMinHeight:zt.FtCssVariableFactory.create("--ft-infinite-scroll-item-container-min-height","","SIZE",".1px")},Zo=Ko.css`
3
3
  .items-container {
4
- padding: ${Br.padding};
4
+ padding: ${Ur.padding};
5
5
  outline: none;
6
6
  }
7
7
 
@@ -18,7 +18,7 @@
18
18
  By adding this gap we ensure that the previous item will be fully hidden
19
19
  and even if its size changes, it will not impact the scroll offset
20
20
  */
21
- margin-top: ${Br.itemsGap};
21
+ margin-top: ${Ur.itemsGap};
22
22
  }
23
23
 
24
24
  .item-container:not(.rendered) {
@@ -27,9 +27,9 @@
27
27
 
28
28
  .item-container.rendered {
29
29
  display: flow-root;
30
- min-height: ${Br.itemContainerMinHeight};
30
+ min-height: ${Ur.itemContainerMinHeight};
31
31
  }
32
- `;var et=C(V()),K=C(J()),Xo=C(Ur()),F=C(_()),Jo=C(Qo());var ee=function(o,e,r,n){var a=arguments.length,s=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,r,n);else for(var d=o.length-1;d>=0;d--)(c=o[d])&&(s=(a<3?c(s):a>3?c(e,r,s):c(e,r))||s);return a>3&&s&&Object.defineProperty(e,r,s),s},Hr=class extends CustomEvent{constructor(e,r){super("visible-items-change",{detail:{indexes:e,items:r,visibleIndexes:e,visibleItems:r}})}},zr=class extends CustomEvent{constructor(e,r){super("rendered-items-change",{detail:{indexes:e,items:r}})}},Gr=class extends Event{constructor(){super("scrolled-to-target")}},ds=o=>(o??[])[(o??[]).length-1],U=class extends F.FtLitElement{constructor(){super(...arguments),this.items=[],this.renderItem=()=>et.html``,this.getItemKey=(e,r)=>`${r} - ${JSON.stringify(e)}`,this.internalScroll=!1,this.renderBeforeFirst=1,this.renderAfterLast=1,this.ensureScrollToTarget=!1,this.visibleItems=[],this.scrolledToTarget=!1,this.scrolling=!1,this.renderApprovalTimeouts=[],this.renderedIndexes=new Set,this.scrollDebouncer=new F.Debouncer(5),this.scrollDoneDebouncer=new F.Debouncer(10),this.onVisibilityChange=e=>{let r=new Set(this.visibleItems),n=new Set;for(let a of e){let s=+a.target.getAttribute("data-item-index");a.intersectionRect.height>0?(r.add(s),n.add(s)):n.has(s)||r.delete(s)}this.visibleItems=[...r].sort((a,s)=>a-s)},this.intersectionObserver=new IntersectionObserver(this.onVisibilityChange),this.scrollingDebouncer=new F.Debouncer(50),this.ignoreNextScrollEvent=!1,this.scrollListener=()=>{var e;let r=this.ignoreNextScrollEvent;this.ignoreNextScrollEvent=!1,r||(this.scrolling=!0,this.scrollingDebouncer.run(()=>this.scrolling=!1));let n=this.scrollable.scrollTop,a=n-((e=this.lastScrollTop)!==null&&e!==void 0?e:0);if(this.lastScrollTop=n,this.scrolledToTarget&&(this.restoreScrollIfNeeded(r?0:a),!r||this.scrollRestorationItem==null)){let s=this.searchFirstVisibleItem(n,this.itemsContainer.children);this.scrollRestorationItem=s?+s.getAttribute("data-item-index"):void 0,this.scrollRestorationOffset=n-this.getOffset(s)}},this.restoreScrollIfNeeded=(e=0)=>{var r;let n=this.scrollable.scrollHeight,a=n-((r=this.lastScrollHeight)!==null&&r!==void 0?r:n);if(this.lastScrollHeight=n,a!==0&&this.scrolledToTarget&&this.scrollRestorationItem!=null&&this.scrollRestorationOffset!=null&&!(this.scrollRestorationItem===0&&this.scrollRestorationOffset<0)){let s=this.getItem(this.scrollRestorationItem),c=this.getOffset(s),d=(0,F.minmax)(this.scrollRestorationItem===0?-c:1,this.scrollRestorationOffset,s.clientHeight-1),u=c+d+e-this.scrollable.scrollTop;(Math.abs(a-u)<4||Math.abs(u)>5)&&(this.ignoreNextScrollEvent=!0,this.scrollable.scrollTop+=u)}},this._shouldRestoreScroll=!1,this.scrollAdjustment=()=>{this.restoreScrollIfNeeded(),this.shouldRestoreScroll&&requestAnimationFrame(this.scrollAdjustment)},this.onMutation=()=>{for(let e of this.itemsContainer.children)this.intersectionObserver.observe(e)},this.mutationObserver=new MutationObserver(this.onMutation),this.lastRenderedItemsLength=0,this.resetVisibleItemsDebouncer=new F.Debouncer(10)}get scrollable(){var e;return(e=this._scrollable)!==null&&e!==void 0?e:document.body}set scrollable(e){var r,n,a;this._scrollable!==e&&(this._scrollable&&(this._scrollable.removeEventListener("scroll",this.scrollListener),this.initialOverflowAnchorValue&&(this._scrollable.style.overflowAnchor=this.initialOverflowAnchorValue),F.scrollHelper.release(this,this._scrollable)),this._scrollable=F.scrollHelper.lock(this,e),e&&!this._scrollable&&console.error("Scrollable parent is already locked",this,e),(r=this._scrollable)===null||r===void 0||r.addEventListener("scroll",this.scrollListener),this.lastScrollTop=(n=this._scrollable)===null||n===void 0?void 0:n.scrollTop,this.lastScrollHeight=(a=this._scrollable)===null||a===void 0?void 0:a.scrollHeight,this._scrollable&&(this.initialOverflowAnchorValue=getComputedStyle(this._scrollable).overflowAnchor,this._scrollable.style.overflowAnchor="none"))}render(){return et.html`
32
+ `;var et=C(V()),K=C(J()),Xo=C(Br()),F=C(_()),Jo=C(Qo());var ee=function(o,e,r,n){var a=arguments.length,s=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,r,n);else for(var d=o.length-1;d>=0;d--)(c=o[d])&&(s=(a<3?c(s):a>3?c(e,r,s):c(e,r))||s);return a>3&&s&&Object.defineProperty(e,r,s),s},Hr=class extends CustomEvent{constructor(e,r){super("visible-items-change",{detail:{indexes:e,items:r,visibleIndexes:e,visibleItems:r}})}},zr=class extends CustomEvent{constructor(e,r){super("rendered-items-change",{detail:{indexes:e,items:r}})}},Gr=class extends Event{constructor(){super("scrolled-to-target")}},fs=o=>(o??[])[(o??[]).length-1],B=class extends F.FtLitElement{constructor(){super(...arguments),this.items=[],this.renderItem=()=>et.html``,this.getItemKey=(e,r)=>`${r} - ${JSON.stringify(e)}`,this.internalScroll=!1,this.renderBeforeFirst=1,this.renderAfterLast=1,this.ensureScrollToTarget=!1,this.visibleItems=[],this.scrolledToTarget=!1,this.scrolling=!1,this.renderApprovalTimeouts=[],this.renderedIndexes=new Set,this.scrollDebouncer=new F.Debouncer(5),this.scrollDoneDebouncer=new F.Debouncer(10),this.onVisibilityChange=e=>{let r=new Set(this.visibleItems),n=new Set;for(let a of e){let s=+a.target.getAttribute("data-item-index");a.intersectionRect.height>0?(r.add(s),n.add(s)):n.has(s)||r.delete(s)}this.visibleItems=[...r].sort((a,s)=>a-s)},this.intersectionObserver=new IntersectionObserver(this.onVisibilityChange),this.scrollingDebouncer=new F.Debouncer(50),this.ignoreNextScrollEvent=!1,this.scrollListener=()=>{var e;let r=this.ignoreNextScrollEvent;this.ignoreNextScrollEvent=!1,r||(this.scrolling=!0,this.scrollingDebouncer.run(()=>this.scrolling=!1));let n=this.scrollable.scrollTop,a=n-((e=this.lastScrollTop)!==null&&e!==void 0?e:0);if(this.lastScrollTop=n,this.scrolledToTarget&&(this.restoreScrollIfNeeded(r?0:a),!r||this.scrollRestorationItem==null)){let s=this.searchFirstVisibleItem(n,this.itemsContainer.children);this.scrollRestorationItem=s?+s.getAttribute("data-item-index"):void 0,this.scrollRestorationOffset=n-this.getOffset(s)}},this.restoreScrollIfNeeded=(e=0)=>{var r;let n=this.scrollable.scrollHeight,a=n-((r=this.lastScrollHeight)!==null&&r!==void 0?r:n);if(this.lastScrollHeight=n,a!==0&&this.scrolledToTarget&&this.scrollRestorationItem!=null&&this.scrollRestorationOffset!=null&&!(this.scrollRestorationItem===0&&this.scrollRestorationOffset<0)){let s=this.getItem(this.scrollRestorationItem),c=this.getOffset(s),d=(0,F.minmax)(this.scrollRestorationItem===0?-c:1,this.scrollRestorationOffset,s.clientHeight-1),u=c+d+e-this.scrollable.scrollTop;(Math.abs(a-u)<4||Math.abs(u)>5)&&(this.ignoreNextScrollEvent=!0,this.scrollable.scrollTop+=u)}},this._shouldRestoreScroll=!1,this.scrollAdjustment=()=>{this.restoreScrollIfNeeded(),this.shouldRestoreScroll&&requestAnimationFrame(this.scrollAdjustment)},this.onMutation=()=>{for(let e of this.itemsContainer.children)this.intersectionObserver.observe(e)},this.mutationObserver=new MutationObserver(this.onMutation),this.lastRenderedItemsLength=0,this.resetVisibleItemsDebouncer=new F.Debouncer(10)}get scrollable(){var e;return(e=this._scrollable)!==null&&e!==void 0?e:document.body}set scrollable(e){var r,n,a;this._scrollable!==e&&(this._scrollable&&(this._scrollable.removeEventListener("scroll",this.scrollListener),this.initialOverflowAnchorValue&&(this._scrollable.style.overflowAnchor=this.initialOverflowAnchorValue),F.scrollHelper.release(this,this._scrollable)),this._scrollable=F.scrollHelper.lock(this,e),e&&!this._scrollable&&console.error("Scrollable parent is already locked",this,e),(r=this._scrollable)===null||r===void 0||r.addEventListener("scroll",this.scrollListener),this.lastScrollTop=(n=this._scrollable)===null||n===void 0?void 0:n.scrollTop,this.lastScrollHeight=(a=this._scrollable)===null||a===void 0?void 0:a.scrollHeight,this._scrollable&&(this.initialOverflowAnchorValue=getComputedStyle(this._scrollable).overflowAnchor,this._scrollable.style.overflowAnchor="none"))}render(){return et.html`
33
33
  <div @scroll-into-view="${this.onScrollIntoView}" class="items-container ${this.internalScroll?"scrollable":""}" tabindex="-1">
34
34
  ${(0,Xo.repeat)(this.items,(e,r)=>this.getItemKey(e,r),(e,r)=>this.renderItemContainer(e,r))}
35
35
  </div>
@@ -39,24 +39,24 @@
39
39
  data-item-index="${r}">
40
40
  ${a?(()=>{let c=this.renderItem(e,r);return typeof c=="string"?(0,Jo.unsafeHTML)(c):c})():et.nothing}
41
41
  </div>
42
- `}prepareRenderIfNeeded(e){let r=this.renderApprovalTimeouts[e]!=null;this.inRenderRange(e)&&!r&&(this.renderApprovalTimeouts[e]=setTimeout(()=>{this.inRenderRange(e)?this.addRenderedIndex(e):this.renderApprovalTimeouts[e]=void 0,this.requestUpdate()},300))}addRenderedIndex(e){e>=0&&!this.renderedIndexes.has(e)&&this.renderedIndexes.add(e)}inRenderRange(e){return e>=this.visibleItems[0]-this.renderBeforeFirst&&e<=ds(this.visibleItems)+this.renderAfterLast}isRendered(e){return this.renderedIndexes.has(this.items.indexOf(e))}resetScroll(e=!0){this.shouldRestoreScroll=!1,this.intersectionObserver.disconnect(),this.visibleItems=[],this.scrolledToTarget=!1,this.internalScroll&&this.scrollable!==this.internalScrollable?this.scrollable=this.internalScrollable:!this.internalScroll&&e&&(this.scrollable=F.scrollHelper.findFirstScrollableParent(this.itemsContainer));let r=this.resolveScrollToIndex();this.addRenderedIndex(r),this.scrollToTarget(r),this.scrollDoneDebouncer.run(()=>{this.ensureScrollToTarget&&r>=0&&this.scrollDebouncer.run(()=>{Math.abs(this.scrollable.scrollTop-this.getOffset(r))>5&&this.scrollToTarget(r)},500),this.scrollToTarget(r),this.scrolledToTarget=!0,this.shouldRestoreScroll=!0,this.resetIntersectionObserver()})}resolveScrollToIndex(){var e;let r=(e=this.scrollToIndex)!==null&&e!==void 0?e:this.scrollToItem?this.items.indexOf(this.scrollToItem):-1;return r>=this.items.length?-1:r}getItem(e){var r,n,a;return(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelector(`#item-${e}`))!==null&&n!==void 0?n:(a=this.shadowRoot)===null||a===void 0?void 0:a.querySelector("#item-0")}scrollToTarget(e){e<=0?(this.scrollable.scrollTop=0,this.scrollRestorationOffset=-this.getOffset(e)):(this.scrollable.scrollTop=this.getOffset(e),this.scrollRestorationOffset=0),this.scrollRestorationItem=e>=0?e:void 0}onScrollIntoView(e){var r;this.scrollDebouncer.cancel();let n=e.composedPath()[0],a=this.getOffset(n),s=(r=e.composedPath().find(c=>typeof c.matches=="function"&&c.matches(".item-container")))===null||r===void 0?void 0:r.getAttribute("data-item-index");this.scrollRestorationItem=s==null?this.scrollRestorationItem:+s,this.scrollRestorationOffset=a-this.getOffset(this.scrollRestorationItem),this.ignoreNextScrollEvent=!0,this.scrollable.scrollTop=a}getOffset(e){let r=typeof e=="number"?this.getItem(e):e;return r?F.scrollHelper.getAbsoluteScrollOffset(this.scrollable,r):0}appendItems(...e){this.items=[...this.items,...e]}prependItems(...e){this.items=[...e,...this.items]}connectedCallback(){super.connectedCallback(),setTimeout(()=>{this.mutationObserver.disconnect(),this.mutationObserver.observe(this.itemsContainer,{childList:!0}),this.resetScroll()},0)}disconnectedCallback(){super.disconnectedCallback(),this.scrollable=void 0,this.intersectionObserver.disconnect(),this.mutationObserver.disconnect(),this.shouldRestoreScroll=!1}resetIntersectionObserver(){this.intersectionObserver.disconnect(),this.intersectionObserver=new IntersectionObserver(this.onVisibilityChange,{root:this.scrollable,rootMargin:"-8px",threshold:[0,.01,.1,1]}),this.onMutation()}searchFirstVisibleItem(e,r,n,a){if(n=n??0,a=a??r.length-1,a<=n)return r[n];let s=Math.floor((a-n)/2)+n,c=r[s],d=this.getOffset(c);return d>e?this.searchFirstVisibleItem(e,r,n,s-1):d+c.clientHeight<e?this.searchFirstVisibleItem(e,r,s+1,a):c}get shouldRestoreScroll(){return this._shouldRestoreScroll}set shouldRestoreScroll(e){let r=e&&!this._shouldRestoreScroll;this._shouldRestoreScroll=e,r&&requestAnimationFrame(this.scrollAdjustment)}willUpdate(e){super.willUpdate(e),e.has("items")&&(this.renderedIndexes=new Set,this.lastRenderedItemsLength=0,this.renderApprovalTimeouts=[]),((e.has("scrollToItem")||e.has("scrollToIndex"))&&(this.scrollToItem!=null||this.scrollToIndex!=null)||e.has("internalScroll"))&&(0,F.waitFor)(()=>this.itemsContainer).then(()=>this.resetScroll())}updated(e){super.updated(e),(e.has("visibleItems")||e.has("items"))&&this.onVisibleItemsChange(),e.has("scrolledToTarget")&&this.scrolledToTarget&&(this.scrollToItem!=null||this.scrollToIndex!=null)&&this.dispatchEvent(new Gr)}contentAvailableCallback(e){var r,n;super.contentAvailableCallback(e);let a=[...(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".item-container.rendered"))!==null&&n!==void 0?n:[]].map(s=>+s.getAttribute("data-item-index"));this.lastRenderedItemsLength!==a.length&&(this.dispatchRenderedItemsChangeEvent(a),this.lastRenderedItemsLength=a.length)}dispatchRenderedItemsChangeEvent(e){let r=e??[...this.renderedIndexes].sort((n,a)=>n-a);this.dispatchEvent(new zr(r,r.map(n=>this.items[n])))}onVisibleItemsChange(){this.visibleItems.every((r,n)=>this.visibleItems[n+1]==null||r+1===this.visibleItems[n+1])||(0,F.deepEqual)(this.visibleItems,this.lastNotOkVisibleItems)?(this.resetVisibleItemsDebouncer.cancel(),this.dispatchVisibleItemsEvent()):this.resetVisibleItemsDebouncer.run(()=>{this.lastNotOkVisibleItems=[...this.visibleItems],this.visibleItems=[],this.resetIntersectionObserver()})}dispatchVisibleItemsEvent(){var e;(e=this.cancelableDispatchEvent)===null||e===void 0||e.cancel(),this.cancelableDispatchEvent=(0,F.cancelable)((0,F.waitUntil)(()=>this.scrolledToTarget&&!this.scrolling)),this.cancelableDispatchEvent.then(()=>this.dispatchEvent(new Hr(this.visibleItems,this.visibleItems.map(r=>this.items[r])))).catch(()=>null)}};U.styles=Zo;ee([(0,K.property)({attribute:!1,hasChanged:F.hasChanged})],U.prototype,"items",void 0);ee([(0,K.property)({attribute:!1})],U.prototype,"renderItem",void 0);ee([(0,K.property)({attribute:!1})],U.prototype,"getItemKey",void 0);ee([(0,K.property)({type:Object})],U.prototype,"scrollToItem",void 0);ee([(0,K.property)({type:Number})],U.prototype,"scrollToIndex",void 0);ee([(0,K.property)({type:Boolean})],U.prototype,"internalScroll",void 0);ee([(0,K.property)({type:Number})],U.prototype,"renderBeforeFirst",void 0);ee([(0,K.property)({type:Number})],U.prototype,"renderAfterLast",void 0);ee([(0,K.property)({type:Boolean})],U.prototype,"ensureScrollToTarget",void 0);ee([(0,K.state)({hasChanged(o,e){return o!=null&&e==null||o.length!==e.length||o[0]!==e[0]}})],U.prototype,"visibleItems",void 0);ee([(0,K.query)(".scrollable")],U.prototype,"internalScrollable",void 0);ee([(0,K.query)(".items-container")],U.prototype,"itemsContainer",void 0);ee([(0,K.state)()],U.prototype,"scrolledToTarget",void 0);ee([(0,K.state)()],U.prototype,"scrolling",void 0);var en=C(_());(0,en.customElement)("ft-infinite-scroll")(U);var tn=C(V());var rn=tn.css`
42
+ `}prepareRenderIfNeeded(e){let r=this.renderApprovalTimeouts[e]!=null;this.inRenderRange(e)&&!r&&(this.renderApprovalTimeouts[e]=setTimeout(()=>{this.inRenderRange(e)?this.addRenderedIndex(e):this.renderApprovalTimeouts[e]=void 0,this.requestUpdate()},300))}addRenderedIndex(e){e>=0&&!this.renderedIndexes.has(e)&&this.renderedIndexes.add(e)}inRenderRange(e){return e>=this.visibleItems[0]-this.renderBeforeFirst&&e<=fs(this.visibleItems)+this.renderAfterLast}isRendered(e){return this.renderedIndexes.has(this.items.indexOf(e))}resetScroll(e=!0){this.shouldRestoreScroll=!1,this.intersectionObserver.disconnect(),this.visibleItems=[],this.scrolledToTarget=!1,this.internalScroll&&this.scrollable!==this.internalScrollable?this.scrollable=this.internalScrollable:!this.internalScroll&&e&&(this.scrollable=F.scrollHelper.findFirstScrollableParent(this.itemsContainer));let r=this.resolveScrollToIndex();this.addRenderedIndex(r),this.scrollToTarget(r),this.scrollDoneDebouncer.run(()=>{this.ensureScrollToTarget&&r>=0&&this.scrollDebouncer.run(()=>{Math.abs(this.scrollable.scrollTop-this.getOffset(r))>5&&this.scrollToTarget(r)},500),this.scrollToTarget(r),this.scrolledToTarget=!0,this.shouldRestoreScroll=!0,this.resetIntersectionObserver()})}resolveScrollToIndex(){var e;let r=(e=this.scrollToIndex)!==null&&e!==void 0?e:this.scrollToItem?this.items.indexOf(this.scrollToItem):-1;return r>=this.items.length?-1:r}getItem(e){var r,n,a;return(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelector(`#item-${e}`))!==null&&n!==void 0?n:(a=this.shadowRoot)===null||a===void 0?void 0:a.querySelector("#item-0")}scrollToTarget(e){e<=0?(this.scrollable.scrollTop=0,this.scrollRestorationOffset=-this.getOffset(e)):(this.scrollable.scrollTop=this.getOffset(e),this.scrollRestorationOffset=0),this.scrollRestorationItem=e>=0?e:void 0}onScrollIntoView(e){var r;this.scrollDebouncer.cancel();let n=e.composedPath()[0],a=this.getOffset(n),s=(r=e.composedPath().find(c=>typeof c.matches=="function"&&c.matches(".item-container")))===null||r===void 0?void 0:r.getAttribute("data-item-index");this.scrollRestorationItem=s==null?this.scrollRestorationItem:+s,this.scrollRestorationOffset=a-this.getOffset(this.scrollRestorationItem),this.ignoreNextScrollEvent=!0,this.scrollable.scrollTop=a}getOffset(e){let r=typeof e=="number"?this.getItem(e):e;return r?F.scrollHelper.getAbsoluteScrollOffset(this.scrollable,r):0}appendItems(...e){this.items=[...this.items,...e]}prependItems(...e){this.items=[...e,...this.items]}connectedCallback(){super.connectedCallback(),setTimeout(()=>{this.mutationObserver.disconnect(),this.mutationObserver.observe(this.itemsContainer,{childList:!0}),this.resetScroll()},0)}disconnectedCallback(){super.disconnectedCallback(),this.scrollable=void 0,this.intersectionObserver.disconnect(),this.mutationObserver.disconnect(),this.shouldRestoreScroll=!1}resetIntersectionObserver(){this.intersectionObserver.disconnect(),this.intersectionObserver=new IntersectionObserver(this.onVisibilityChange,{root:this.scrollable,rootMargin:"-8px",threshold:[0,.01,.1,1]}),this.onMutation()}searchFirstVisibleItem(e,r,n,a){if(n=n??0,a=a??r.length-1,a<=n)return r[n];let s=Math.floor((a-n)/2)+n,c=r[s],d=this.getOffset(c);return d>e?this.searchFirstVisibleItem(e,r,n,s-1):d+c.clientHeight<e?this.searchFirstVisibleItem(e,r,s+1,a):c}get shouldRestoreScroll(){return this._shouldRestoreScroll}set shouldRestoreScroll(e){let r=e&&!this._shouldRestoreScroll;this._shouldRestoreScroll=e,r&&requestAnimationFrame(this.scrollAdjustment)}willUpdate(e){super.willUpdate(e),e.has("items")&&(this.renderedIndexes=new Set,this.lastRenderedItemsLength=0,this.renderApprovalTimeouts=[]),((e.has("scrollToItem")||e.has("scrollToIndex"))&&(this.scrollToItem!=null||this.scrollToIndex!=null)||e.has("internalScroll"))&&(0,F.waitFor)(()=>this.itemsContainer).then(()=>this.resetScroll())}updated(e){super.updated(e),(e.has("visibleItems")||e.has("items"))&&this.onVisibleItemsChange(),e.has("scrolledToTarget")&&this.scrolledToTarget&&(this.scrollToItem!=null||this.scrollToIndex!=null)&&this.dispatchEvent(new Gr)}contentAvailableCallback(e){var r,n;super.contentAvailableCallback(e);let a=[...(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".item-container.rendered"))!==null&&n!==void 0?n:[]].map(s=>+s.getAttribute("data-item-index"));this.lastRenderedItemsLength!==a.length&&(this.dispatchRenderedItemsChangeEvent(a),this.lastRenderedItemsLength=a.length)}dispatchRenderedItemsChangeEvent(e){let r=e??[...this.renderedIndexes].sort((n,a)=>n-a);this.dispatchEvent(new zr(r,r.map(n=>this.items[n])))}onVisibleItemsChange(){this.visibleItems.every((r,n)=>this.visibleItems[n+1]==null||r+1===this.visibleItems[n+1])||(0,F.deepEqual)(this.visibleItems,this.lastNotOkVisibleItems)?(this.resetVisibleItemsDebouncer.cancel(),this.dispatchVisibleItemsEvent()):this.resetVisibleItemsDebouncer.run(()=>{this.lastNotOkVisibleItems=[...this.visibleItems],this.visibleItems=[],this.resetIntersectionObserver()})}dispatchVisibleItemsEvent(){var e;(e=this.cancelableDispatchEvent)===null||e===void 0||e.cancel(),this.cancelableDispatchEvent=(0,F.cancelable)((0,F.waitUntil)(()=>this.scrolledToTarget&&!this.scrolling)),this.cancelableDispatchEvent.then(()=>this.dispatchEvent(new Hr(this.visibleItems,this.visibleItems.map(r=>this.items[r])))).catch(()=>null)}};B.styles=Zo;ee([(0,K.property)({attribute:!1,hasChanged:F.hasChanged})],B.prototype,"items",void 0);ee([(0,K.property)({attribute:!1})],B.prototype,"renderItem",void 0);ee([(0,K.property)({attribute:!1})],B.prototype,"getItemKey",void 0);ee([(0,K.property)({type:Object})],B.prototype,"scrollToItem",void 0);ee([(0,K.property)({type:Number})],B.prototype,"scrollToIndex",void 0);ee([(0,K.property)({type:Boolean})],B.prototype,"internalScroll",void 0);ee([(0,K.property)({type:Number})],B.prototype,"renderBeforeFirst",void 0);ee([(0,K.property)({type:Number})],B.prototype,"renderAfterLast",void 0);ee([(0,K.property)({type:Boolean})],B.prototype,"ensureScrollToTarget",void 0);ee([(0,K.state)({hasChanged(o,e){return o!=null&&e==null||o.length!==e.length||o[0]!==e[0]}})],B.prototype,"visibleItems",void 0);ee([(0,K.query)(".scrollable")],B.prototype,"internalScrollable",void 0);ee([(0,K.query)(".items-container")],B.prototype,"itemsContainer",void 0);ee([(0,K.state)()],B.prototype,"scrolledToTarget",void 0);ee([(0,K.state)()],B.prototype,"scrolling",void 0);var en=C(_());(0,en.customElement)("ft-infinite-scroll")(B);var tn=C(V());var rn=tn.css`
43
43
  `;var on=C(V());var nn=on.css`
44
44
  `;var an=C(V()),tt=C(J());var Gt=C(_()),Me=function(o,e,r,n){var a=arguments.length,s=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,r,n);else for(var d=o.length-1;d>=0;d--)(c=o[d])&&(s=(a<3?c(s):a>3?c(e,r,s):c(e,r))||s);return a>3&&s&&Object.defineProperty(e,r,s),s},ae=class extends Je{constructor(){super(...arguments),this.disableContextInteractions=!1,this.headingLevelsShift=0,this.registeredComponents=[]}render(){return an.html`
45
45
  <article id=${this.tocId}>
46
46
  <slot @register-ft-reader-topic-component=${this.registerComponent}></slot>
47
47
  </article>
48
48
  `}registerComponent(e){e.stopPropagation();let r=e.composedPath()[0];this.register(r)}register(e){this.registeredComponents.push(e),e.tocNode=this.tocNode,e.disableContextInteractions=this.disableContextInteractions,e.headingLevelsShift=this.headingLevelsShift}update(e){super.update(e),["mapId","tocId","stateManager","translationDestinationLanguage","translationProfileId"].some(r=>e.has(r))&&this.setTocNode(),e.has("tocNode")&&this.registeredComponents.forEach(r=>r.tocNode=this.tocNode)}async setTocNode(){var e;this.tocNode=void 0,this.tocNode=this.mapId&&this.tocId?await((e=this.stateManager)===null||e===void 0?void 0:e.getTocNode(this.tocId)):void 0}disconnectedCallback(){super.disconnectedCallback(),this.registeredComponents=[]}};ae.styles=nn;Me([(0,Gt.redux)({selector:o=>{var e;return(e=o.map)===null||e===void 0?void 0:e.id}})],ae.prototype,"mapId",void 0);Me([(0,Gt.redux)({selector:o=>o.translation.profileId})],ae.prototype,"translationProfileId",void 0);Me([(0,Gt.redux)({selector:o=>o.translation.destinationLanguage})],ae.prototype,"translationDestinationLanguage",void 0);Me([(0,tt.property)()],ae.prototype,"tocId",void 0);Me([(0,tt.property)({type:Boolean})],ae.prototype,"disableContextInteractions",void 0);Me([(0,tt.property)({type:Number})],ae.prototype,"headingLevelsShift",void 0);Me([(0,tt.state)()],ae.prototype,"tocNode",void 0);var sn=C(_());(0,sn.customElement)("ft-reader-topic-context")(ae);var cn=C(V());var ln=cn.css`
49
- `;var Pt=C(V()),$e=C(J()),G=C(_());var fe=C(_());var dn=C(_()),us={setTranslationDestinationLanguage:(o,e)=>{o.translation.destinationLanguage=e.payload},setTranslationSourceLanguage:(o,e)=>{o.translation.sourceLanguage=e.payload},setTranslationProfileId:(o,e)=>{o.translation.profileId=e.payload},setTranslationLoading:(o,e)=>{o.translation.isLoading=e.payload},setTranslationError:(o,e)=>{o.translation.isError=e.payload},setTopicsRating:(o,e)=>{for(let r in e.payload)o.topicsRating[r]=e.payload[r]}},un=o=>dn.FtReduxStore.get({name:"ft-reader-"+o,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},linkPreviewDialogId:void 0},reducers:us});var Wr=class{constructor(e,r){this.mapId=e,this.paginatedToc=r,this.nodeByTocId={},this.nodeByUrl={},this.duplicatedPrettyUrls=new Set,this.pages=[],this.pageByTocId={}}build(){return{paginationConfiguration:this.paginatedToc.configuration,toc:this.convertNodes(this.paginatedToc.paginatedToc,1),pagesToc:this.extractPagesToc(this.paginatedToc.paginatedToc,1),nodeByTocId:this.nodeByTocId,nodeByUrl:this.nodeByUrl,duplicatedPrettyUrls:this.duplicatedPrettyUrls,pages:this.pages,pageByTocId:this.pageByTocId,translationError:this.paginatedToc.translationError}}extractPagesToc(e,r,n){return e.flatMap(a=>{var s;return a.pageConfiguration&&this.registerPage(this.buildPage(a,n)),a.tocId==null?this.extractPagesToc(a.children,r,n):[{tocId:a.tocId,title:(s=a.title)!==null&&s!==void 0?s:"",untranslatedTitle:a.untranslatedTitle,depth:r,children:this.extractPagesToc(a.children,r+1,a.tocId)}]})}convertNodes(e,r,n){return e.flatMap(a=>{var s,c,d;if(a.tocId==null)return[...this.convertSectionNodes((s=a.pageToc)!==null&&s!==void 0?s:[],r,a.tocId),...this.convertNodes(a.children,r,a.tocId)];let u=(c=a.prettyUrl)===null||c===void 0?void 0:c.replace(/^\//,""),p={tocId:a.tocId,contentId:a.contentId,title:a.title,untranslatedTitle:a.untranslatedTitle,hasRating:a.hasRating,origin:a.origin,prettyUrl:u,depth:r,parentTocId:n,children:[]};this.register(p);let h=this.convertSectionNodes((d=a.pageToc)!==null&&d!==void 0?d:[],r+1,a.tocId),g=this.convertNodes(a.children,r+1,p.tocId);return p.children=[...h,...g],[p]})}convertSectionNodes(e,r,n){return e.flatMap(a=>{var s;let c=(s=a.prettyUrl)===null||s===void 0?void 0:s.replace(/^\//,""),d={...a,prettyUrl:c,depth:r,parentTocId:n,children:[]};return this.register(d),d.children=this.convertSectionNodes(a.children,r+1,a.tocId),[d]})}buildPage(e,r){var n,a,s,c,d,u;let p={number:this.pages.length+1,title:(n=e.title)!==null&&n!==void 0?n:"",untranslatedTitle:e.untranslatedTitle,rootTocId:(a=e.tocId)!==null&&a!==void 0?a:"root",toc:((s=e.pageToc)!==null&&s!==void 0?s:[]).map(m=>this.nodeByTocId[m.tocId]),topics:[],hiddenTopics:[],breadcrumb:r?this.buildBreadcrumb(this.nodeByTocId[r]):[]},h=(m,v)=>(v?p.topics:p.hiddenTopics).push(m),g=(d=(c=e.pageConfiguration)===null||c===void 0?void 0:c.parentsVisibility)!==null&&d!==void 0?d:[];return p.breadcrumb.forEach((m,v)=>{h(m,g[v])}),e.tocId&&h(e.tocId,e.pageConfiguration.isVisible),p.topics.push(...this.tocIds((u=e.pageToc)!==null&&u!==void 0?u:[])),p}registerPage(e){for(let r of[...e.topics,...e.hiddenTopics])this.pageByTocId[r]||(this.pageByTocId[r]=e);this.pages.push(e)}tocIds(e){return e.flatMap(r=>[r.tocId,...this.tocIds(r.children)])}buildBreadcrumb(e){let r=[e.tocId];for(;e?.parentTocId;)r.unshift(e.parentTocId),e=this.nodeByTocId[e.parentTocId];return r}register(e){e.prettyUrl&&(this.nodeByUrl[e.prettyUrl]==null?this.nodeByUrl[e.prettyUrl]=e:this.duplicatedPrettyUrls.add(e.prettyUrl)),this.nodeByUrl[`${this.mapId}/${e.tocId}`]=e,this.nodeByTocId[e.tocId]=e}},Wt=class{convertPaginatedToc(e,r){return new Wr(e,r).build()}};var fs=C(fn(),1);var hn;(function(o){o.black="black",o.green="green",o.blue="blue",o.purple="purple",o.red="red",o.orange="orange",o.yellow="yellow"})(hn||(hn={}));var gn;(function(o){o.OFFICIAL="OFFICIAL",o.PERSONAL="PERSONAL",o.SHARED="SHARED"})(gn||(gn={}));var yn;(function(o){o.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",o.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",o.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",o.PERSONAL_BOOK="PERSONAL_BOOK",o.ATTACHMENT="ATTACHMENT",o.RESOURCE="RESOURCE",o.HTML_PACKAGE="HTML_PACKAGE"})(yn||(yn={}));var mn;(function(o){o.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",o.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",o.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",o.PERSONAL_BOOK="PERSONAL_BOOK",o.ATTACHMENT="ATTACHMENT",o.RESOURCE="RESOURCE",o.HTML_PACKAGE="HTML_PACKAGE"})(mn||(mn={}));var bn;(function(o){o.LAST_WEEK="LAST_WEEK",o.LAST_MONTH="LAST_MONTH",o.LAST_QUARTER="LAST_QUARTER",o.LAST_YEAR="LAST_YEAR"})(bn||(bn={}));var vn;(function(o){o.VALUE="VALUE",o.DATE="DATE",o.RANGE="RANGE"})(vn||(vn={}));var xn;(function(o){o.BOOKMARK__CREATE="BOOKMARK__CREATE",o.BOOKMARK__DELETE="BOOKMARK__DELETE",o.CASE_DEFLECTION__START="CASE_DEFLECTION__START",o.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",o.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",o.CHATBOT__RATE="CHATBOT__RATE",o.COLLECTION__CREATE="COLLECTION__CREATE",o.COLLECTION__UPDATE="COLLECTION__UPDATE",o.COLLECTION__DELETE="COLLECTION__DELETE",o.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",o.DOCUMENT__AI_TRANSLATE="DOCUMENT__AI_TRANSLATE",o.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",o.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",o.DOCUMENT__PRINT="DOCUMENT__PRINT",o.DOCUMENT__PROCESS="DOCUMENT__PROCESS",o.DOCUMENT__RATE="DOCUMENT__RATE",o.DOCUMENT__SEARCH="DOCUMENT__SEARCH",o.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",o.DOCUMENT__UNRATE="DOCUMENT__UNRATE",o.FEEDBACK__SEND="FEEDBACK__SEND",o.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",o.AI__RATE="AI__RATE",o.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",o.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",o.KHUB__PROCESS="KHUB__PROCESS",o.KHUB__SEARCH="KHUB__SEARCH",o.LABELS__DOWNLOAD="LABELS__DOWNLOAD",o.LINK__SHARE="LINK__SHARE",o.PAGE__DISPLAY="PAGE__DISPLAY",o.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",o.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",o.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",o.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",o.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",o.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",o.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",o.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",o.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",o.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",o.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",o.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",o.TOPIC__DISPLAY="TOPIC__DISPLAY",o.TOPIC__RATE="TOPIC__RATE",o.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",o.TOPIC__UNRATE="TOPIC__UNRATE",o.USER__LOGIN="USER__LOGIN",o.USER__LOGOUT="USER__LOGOUT",o.HEARTBEAT="HEARTBEAT"})(xn||(xn={}));var Sn;(function(o){o.THIRD_PARTY="THIRD_PARTY",o.OFF_THE_GRID="OFF_THE_GRID",o.CONTENT_PACKAGER="CONTENT_PACKAGER",o.PAGES="PAGES",o.DESIGNED_READER="DESIGNED_READER"})(Sn||(Sn={}));var Cn;(function(o){o.HOMEPAGE="HOMEPAGE",o.CUSTOM="CUSTOM",o.HEADER="HEADER",o.READER="READER",o.TOPIC_TEMPLATE="TOPIC_TEMPLATE",o.SEARCH="SEARCH",o.SEARCH_RESULT="SEARCH_RESULT",o.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",o.LINK_PREVIEW="LINK_PREVIEW"})(Cn||(Cn={}));var On;(function(o){o.CLASSIC="CLASSIC",o.CUSTOM="CUSTOM",o.DESIGNER="DESIGNER"})(On||(On={}));var En;(function(o){o.AND="AND",o.OR="OR",o.MONOVALUED="MONOVALUED"})(En||(En={}));var An;(function(o){o.NONE="NONE",o.ALPHABET="ALPHABET",o.VERSION="VERSION"})(An||(An={}));var wn;(function(o){o.STARS="STARS",o.LIKE="LIKE",o.DICHOTOMOUS="DICHOTOMOUS",o.NO_RATING="NO_RATING"})(wn||(wn={}));var In;(function(o){o.LAST_WEEK="LAST_WEEK",o.LAST_MONTH="LAST_MONTH",o.LAST_QUARTER="LAST_QUARTER",o.LAST_YEAR="LAST_YEAR",o.CUSTOM="CUSTOM"})(In||(In={}));var Tn;(function(o){o.OPTIONAL="OPTIONAL",o.MANDATORY="MANDATORY"})(Tn||(Tn={}));var Rn;(function(o){o.ASC="ASC",o.DESC="DESC"})(Rn||(Rn={}));var _n;(function(o){o.ALPHA="ALPHA",o.NATURAL="NATURAL"})(_n||(_n={}));var Ln;(function(o){o.EVERYWHERE="EVERYWHERE",o.TITLE_ONLY="TITLE_ONLY",o.NONE="NONE"})(Ln||(Ln={}));var Nn;(function(o){o.ARTICLE="ARTICLE",o.BOOK="BOOK",o.SHARED_BOOK="SHARED_BOOK",o.HTML_PACKAGE="HTML_PACKAGE"})(Nn||(Nn={}));var Pn;(function(o){o.FLUIDTOPICS="FLUIDTOPICS",o.EXTERNAL="EXTERNAL"})(Pn||(Pn={}));var kn;(function(o){o.MAP="MAP",o.DOCUMENT="DOCUMENT",o.TOPIC="TOPIC",o.PERSONAL_BOOK="PERSONAL_BOOK",o.SHARED_BOOK="SHARED_BOOK",o.HTML_PACKAGE="HTML_PACKAGE"})(kn||(kn={}));var Dn;(function(o){o.LAST_WEEK="LAST_WEEK",o.LAST_MONTH="LAST_MONTH",o.LAST_QUARTER="LAST_QUARTER",o.LAST_YEAR="LAST_YEAR"})(Dn||(Dn={}));var Fn;(function(o){o.MAP="MAP",o.DOCUMENT="DOCUMENT",o.TOPIC="TOPIC",o.HTML_PACKAGE="HTML_PACKAGE",o.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Fn||(Fn={}));var Mn;(function(o){o.DEFAULT="DEFAULT",o.DOCUMENTS="DOCUMENTS",o.ALL_TOPICS="ALL_TOPICS",o.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Mn||(Mn={}));var Bn;(function(o){o.PLAIN_TEXT="PLAIN_TEXT",o.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",o.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Bn||(Bn={}));var k;(function(o){o.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",o.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",o.HTML_EXPORT_USER="HTML_EXPORT_USER",o.PDF_EXPORT_USER="PDF_EXPORT_USER",o.SAVED_SEARCH_USER="SAVED_SEARCH_USER",o.COLLECTION_USER="COLLECTION_USER",o.OFFLINE_USER="OFFLINE_USER",o.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",o.ANALYTICS_USER="ANALYTICS_USER",o.BETA_USER="BETA_USER",o.DEBUG_USER="DEBUG_USER",o.PRINT_USER="PRINT_USER",o.RATING_USER="RATING_USER",o.FEEDBACK_USER="FEEDBACK_USER",o.GENERATIVE_AI_USER="GENERATIVE_AI_USER",o.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",o.CONTENT_PUBLISHER="CONTENT_PUBLISHER",o.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",o.KHUB_ADMIN="KHUB_ADMIN",o.USERS_ADMIN="USERS_ADMIN",o.PORTAL_ADMIN="PORTAL_ADMIN",o.ADMIN="ADMIN"})(k||(k={}));var ie;(function(o){o.SEARCHES="SEARCHES",o.BOOKMARKS="BOOKMARKS",o.BOOKS="BOOKS",o.COLLECTIONS="COLLECTIONS"})(ie||(ie={}));var Un;(function(o){o.UNAUTHENTICATED="UNAUTHENTICATED",o.USER_INCOMPLETE="USER_INCOMPLETE",o.MFA_REQUIRED="MFA_REQUIRED",o.AUTHENTICATED="AUTHENTICATED"})(Un||(Un={}));var Hn;(function(o){o.VALID="VALID",o.INVALID="INVALID"})(Hn||(Hn={}));var zn;(function(o){o.JSON="JSON",o.TEXT="TEXT"})(zn||(zn={}));var Gn;(function(o){o.USER="USER",o.ASSISTANT="ASSISTANT"})(Gn||(Gn={}));var Wn;(function(o){o.TEXT="TEXT",o.HTML="HTML"})(Wn||(Wn={}));var $n;(function(o){o.HTML="HTML",o.MARKDOWN="MARKDOWN"})($n||($n={}));var ps={[k.PERSONAL_BOOK_SHARE_USER]:[k.PERSONAL_BOOK_USER],[k.HTML_EXPORT_USER]:[k.PERSONAL_BOOK_USER],[k.PDF_EXPORT_USER]:[k.PERSONAL_BOOK_USER],[k.KHUB_ADMIN]:[k.CONTENT_PUBLISHER],[k.ADMIN]:[k.KHUB_ADMIN,k.USERS_ADMIN,k.PORTAL_ADMIN],[k.GENERATIVE_AI_EXPORT_USER]:[k.GENERATIVE_AI_USER]};function jn(o,e){return o===e||(ps[o]??[]).some(r=>jn(r,e))}function xe(o,e){return o==null?!1:(Array.isArray(o)?o:Array.isArray(o.roles)?o.roles:Array.isArray(o.profile?.roles)?o.profile.roles:[]).some(n=>jn(n,e))}var go=C(J());function hs(o,e){if(o===e)return!0;if(o&&e&&typeof o=="object"&&typeof e=="object"){if(o.constructor!==e.constructor)return!1;let r,n,a;if(Array.isArray(o)){if(r=o.length,r!=e.length)return!1;for(n=r;n--!==0;)if(!Vt(o[n],e[n]))return!1;return!0}if(o instanceof Map&&e instanceof Map){if(o.size!==e.size)return!1;for(n of o.entries())if(!e.has(n[0]))return!1;for(n of o.entries())if(!Vt(n[1],e.get(n[0])))return!1;return!0}if(o instanceof Set&&e instanceof Set){if(o.size!==e.size)return!1;for(n of o.entries())if(!e.has(n[0]))return!1;return!0}if(o.constructor===RegExp)return o.source===e.source&&o.flags===e.flags;if(o.valueOf!==Object.prototype.valueOf)return o.valueOf()===e.valueOf();let s=c=>Object.keys(c).filter(d=>c[d]!=null);if(a=s(o),r=a.length,r!==s(e).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,a[n]))return!1;for(n=r;n--!==0;){let c=a[n];if(!Vt(o[c],e[c]))return!1}return!0}return o!==o&&e!==e||o==null&&e==null}function Vt(o,e){try{return hs(o,e)}catch{return!1}}function It(o,e){return!Vt(o,e)}function Vn(o){return typeof window.structuredClone=="function"?structuredClone(o):o!=null?JSON.parse(JSON.stringify(o)):o}function Kt(o,e){let r=n=>n[o]===!0;return n=>{if(r(n))return n;let a=e(n);return a[o]=!0,a}}var Kn=C(J(),1);var $r=o=>{let e=o??{};return(r,n)=>{var a;let s={hasChanged:It,attribute:!1,...e};(0,Kn.property)(s)(r,n);let c=r.constructor;c.reduxProperties=new Map(c.reduxProperties),c.reduxProperties.set(n,{selector:(a=e.selector)!==null&&a!==void 0?a:d=>d[n],store:e.store})}};var Zt=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(n=>n.type===e);return r&&(this.queue=this.queue.filter(n=>n!==r)),r}clear(e){typeof e=="string"?this.queue=this.queue.filter(r=>r.type!==e):this.queue=this.queue.filter(r=>!e.test(r.type))}};var Be=C(J(),1);var Zn=C(J(),1);function qn(o,e){let r=()=>JSON.parse(JSON.stringify(o));return(0,Zn.property)({type:Object,converter:{fromAttribute:n=>{if(n==null)return r();try{return JSON.parse(n)}catch{return r()}},toAttribute:n=>JSON.stringify(n)},hasChanged:It,...e??{}})}var qt=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,n)=>{this.resolvePromise=r,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let n=[...this.callbacks];this.callbacks=[];let a=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,s=(r=this.resolvePromise)!==null&&r!==void 0?r:()=>null;this.clearPromise();for(let c of n)try{await c()}catch(d){a(d);return}s(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Qn=C(V(),1);var Yt=globalThis,gs=Yt.ShadowRoot&&(Yt.ShadyCSS===void 0||Yt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,fl=Symbol();var Yn=(o,e)=>{if(gs)o.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let n=document.createElement("style"),a=Yt.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=r.cssText,o.appendChild(n)}};var Qt=class extends Qn.LitElement{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([a,s])=>e.registry.define(a,s)));let r={...e.shadowRootOptions,customElements:e.registry},n=this.renderOptions.creationScope=this.attachShadow(r);return Yn(n,e.elementStyles),n}};function Xn(o,e,...r){var n;let a=o.querySelector(e);for(let s of r)a=(n=a?.shadowRoot)===null||n===void 0?void 0:n.querySelector(s);return a}var nt=function(o,e,r,n){var a=arguments.length,s=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,r,n);else for(var d=o.length-1;d>=0;d--)(c=o[d])&&(s=(a<3?c(s):a>3?c(e,r,s):c(e,r))||s);return a>3&&s&&Object.defineProperty(e,r,s),s},ra,Jn=Symbol("constructorPrototype"),ea=Symbol("constructorName"),oa=Symbol("exportpartsDebouncer"),ta=Symbol("dynamicDependenciesLoaded"),ot=class o extends CustomEvent{constructor(){super(o.eventName,{bubbles:!0})}};ot.eventName="exportparts-updated";var ye=class extends Qt{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[ra]=new qt(5),this.scheduleExportpartsUpdate=()=>{var e,r,n;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(n=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&n!==void 0&&n)&&this[oa].run(()=>{var a,s;!((a=this.exportpartsPrefix)===null||a===void 0)&&a.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((s=this.exportpartsPrefixes)===null||s===void 0?void 0:s.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[ea]=this.constructor.name,this[Jn]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[ea]&&Object.setPrototypeOf(this,this[Jn])}connectedCallback(){var e;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(n){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",n)}let r=this.constructor;r[ta]||(r[ta]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(ot.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(ot.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate(),e.has("exportparts")&&this.dispatchEvent(new ot)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:n,shadowPath:a}=this.elementToFocus;if(n!=null){let s=[...a??[],n];r=Xn(this.shadowRoot,...s)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,n,a;if(((n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(s=>s.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((a=this.customStylesheet)!==null&&a!==void 0?a:"")}catch(s){console.error(s,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let s=document.createElement("style");s.classList.add("ft-lit-element--custom-stylesheet"),s.innerHTML=this.customStylesheet,this.shadowRoot.append(s)}}setExportpartsAttribute(e){var r,n,a,s,c,d;let u=m=>m!=null&&m.trim().length>0,p=e.filter(u).map(m=>m.trim());if(p.length===0){this.exportparts=void 0;return}let h=new Set;for(let m of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let v=(s=(a=m.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&s!==void 0?s:[],b=(d=(c=m.getAttribute("exportparts"))===null||c===void 0?void 0:c.split(",").map(w=>w.split(":")[1]))!==null&&d!==void 0?d:[],O=[...v,...b].filter(u).map(w=>w.trim());for(let w of O)h.add(w)}if(h.size===0){this.exportparts=void 0;return}let g=[...h.values()].flatMap(m=>p.map(v=>`${m}:${v}--${m}`));this.exportparts=[...this.part,...g].join(", ")}};ra=oa;nt([(0,Be.property)()],ye.prototype,"exportpartsPrefix",void 0);nt([qn([])],ye.prototype,"exportpartsPrefixes",void 0);nt([(0,Be.property)({reflect:!0})],ye.prototype,"exportparts",void 0);nt([(0,Be.property)()],ye.prototype,"customStylesheet",void 0);nt([(0,Be.property)()],ye.prototype,"elementToFocus",void 0);nt([(0,Be.state)()],ye.prototype,"useAdoptedStyleSheets",void 0);function Xt(o){var e;return(e=o?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Tt=Symbol("internalReduxEventsUnsubscribers"),Ae=Symbol("internalStoresUnsubscribers"),Ue=Symbol("internalStores"),ys=Kt(Symbol("withRedux"),function(o){var e,r,n;class a extends o{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(c){super.willUpdate(c),[...this.reduxConstructor.reduxReactiveProperties].some(d=>c.has(d))&&this.updateFromStores()}getUnnamedStore(){if(this[Ue].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ue].values()][0]}getStore(c){return c==null?this.getUnnamedStore():this[Ue].get(c)}addStore(c,d){var u;d=(u=d??c.name)!==null&&u!==void 0?u:"default-store",this.unsubscribeFromStore(d),this[Ue].set(d,c),this.subscribeToStore(d,c),this.updateFromStores()}removeStore(c){let d=typeof c=="string"?c:c.name;this.unsubscribeFromStore(d),this[Ue].delete(d)}setupStores(){this.unsubscribeFromStores(),this[Ue].forEach((c,d)=>this.subscribeToStore(d,c)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((c,d)=>{let u=this.constructor.getPropertyOptions(d);if(!u?.attribute||!this.hasAttribute(typeof u?.attribute=="string"?u.attribute:d)){let p=this.getStore(c.store);p&&(c.store?this[Ae].has(c.store):this[Ae].size>0)&&(this[d]=c.selector(p.getState(),this))}})}subscribeToStore(c,d){var u;this[Ae].set(c,d.subscribe(()=>this.updateFromStores())),this[Tt].set(c,[]),Xt(d)&&d.eventBus&&((u=this.reduxConstructor.reduxEventListeners)===null||u===void 0||u.forEach((p,h)=>{if(typeof this[h]=="function"&&(!p.store||d.name===p.store)){let g=m=>this[h](m);d.addEventListener(p.eventName,g),this[Tt].get(c).push(()=>d.removeEventListener(p.eventName,g))}})),this.onStoreAvailable(c)}unsubscribeFromStores(){this[Ae].forEach((c,d)=>this.unsubscribeFromStore(d))}unsubscribeFromStore(c){var d;this[Ae].has(c)&&this[Ae].get(c)(),this[Ae].delete(c),(d=this[Tt].get(c))===null||d===void 0||d.forEach(u=>u()),this[Tt].delete(c)}onStoreAvailable(c){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=Ae,r=Ue,n=Tt,a.reduxProperties=new Map,a.reduxReactiveProperties=new Set,a.reduxEventListeners=new Map,a}),na=class extends ys(ye){};function se(o){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];if(0)var a,s;throw Error("[Immer] minified error nr: "+o+(r.length?" "+r.map(function(c){return"'"+c+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Se(o){return!!o&&!!o[M]}function ue(o){var e;return!!o&&(function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===Es}(o)||Array.isArray(o)||!!o[ua]||!!(!((e=o.constructor)===null||e===void 0)&&e[ua])||Jr(o)||eo(o))}function He(o,e,r){r===void 0&&(r=!1),st(o)===0?(r?Object.keys:it)(o).forEach(function(n){r&&typeof n=="symbol"||e(n,o[n],o)}):o.forEach(function(n,a){return e(a,n,o)})}function st(o){var e=o[M];return e?e.i>3?e.i-4:e.i:Array.isArray(o)?1:Jr(o)?2:eo(o)?3:0}function at(o,e){return st(o)===2?o.has(e):Object.prototype.hasOwnProperty.call(o,e)}function ms(o,e){return st(o)===2?o.get(e):o[e]}function pa(o,e,r){var n=st(o);n===2?o.set(e,r):n===3?o.add(r):o[e]=r}function fa(o,e){return o===e?o!==0||1/o==1/e:o!=o&&e!=e}function Jr(o){return Cs&&o instanceof Map}function eo(o){return Os&&o instanceof Set}function we(o){return o.o||o.t}function to(o){if(Array.isArray(o))return Array.prototype.slice.call(o);var e=ya(o);delete e[M];for(var r=it(e),n=0;n<r.length;n++){var a=r[n],s=e[a];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(e[a]={configurable:!0,writable:!0,enumerable:s.enumerable,value:o[a]})}return Object.create(Object.getPrototypeOf(o),e)}function ro(o,e){return e===void 0&&(e=!1),oo(o)||Se(o)||!ue(o)||(st(o)>1&&(o.set=o.add=o.clear=o.delete=bs),Object.freeze(o),e&&He(o,function(r,n){return ro(n,!0)},!0)),o}function bs(){se(2)}function oo(o){return o==null||typeof o!="object"||Object.isFrozen(o)}function me(o){var e=Xr[o];return e||se(18,o),e}function vs(o,e){Xr[o]||(Xr[o]=e)}function qr(){return _t}function jr(o,e){e&&(me("Patches"),o.u=[],o.s=[],o.v=e)}function Jt(o){Yr(o),o.p.forEach(xs),o.p=null}function Yr(o){o===_t&&(_t=o.l)}function aa(o){return _t={p:[],l:_t,h:o,m:!0,_:0}}function xs(o){var e=o[M];e.i===0||e.i===1?e.j():e.g=!0}function Vr(o,e){e._=e.p.length;var r=e.p[0],n=o!==void 0&&o!==r;return e.h.O||me("ES5").S(e,o,n),n?(r[M].P&&(Jt(e),se(4)),ue(o)&&(o=er(e,o),e.l||tr(e,o)),e.u&&me("Patches").M(r[M].t,o,e.u,e.s)):o=er(e,r,[]),Jt(e),e.u&&e.v(e.u,e.s),o!==ga?o:void 0}function er(o,e,r){if(oo(e))return e;var n=e[M];if(!n)return He(e,function(d,u){return ia(o,n,e,d,u,r)},!0),e;if(n.A!==o)return e;if(!n.P)return tr(o,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=to(n.k):n.o,s=a,c=!1;n.i===3&&(s=new Set(a),a.clear(),c=!0),He(s,function(d,u){return ia(o,n,a,d,u,r,c)}),tr(o,a,!1),r&&o.u&&me("Patches").N(n,r,o.u,o.s)}return n.o}function ia(o,e,r,n,a,s,c){if(Se(a)){var d=er(o,a,s&&e&&e.i!==3&&!at(e.R,n)?s.concat(n):void 0);if(pa(r,n,d),!Se(d))return;o.m=!1}else c&&r.add(a);if(ue(a)&&!oo(a)){if(!o.h.D&&o._<1)return;er(o,a),e&&e.A.l||tr(o,a)}}function tr(o,e,r){r===void 0&&(r=!1),!o.l&&o.h.D&&o.m&&ro(e,r)}function Kr(o,e){var r=o[M];return(r?we(r):o)[e]}function sa(o,e){if(e in o)for(var r=Object.getPrototypeOf(o);r;){var n=Object.getOwnPropertyDescriptor(r,e);if(n)return n;r=Object.getPrototypeOf(r)}}function Ie(o){o.P||(o.P=!0,o.l&&Ie(o.l))}function Zr(o){o.o||(o.o=to(o.t))}function Qr(o,e,r){var n=Jr(e)?me("MapSet").F(e,r):eo(e)?me("MapSet").T(e,r):o.O?function(a,s){var c=Array.isArray(a),d={i:c?1:0,A:s?s.A:qr(),P:!1,I:!1,R:{},l:s,t:a,k:null,o:null,j:null,C:!1},u=d,p=Lt;c&&(u=[d],p=Rt);var h=Proxy.revocable(u,p),g=h.revoke,m=h.proxy;return d.k=m,d.j=g,m}(e,r):me("ES5").J(e,r);return(r?r.A:qr()).p.push(n),n}function Ss(o){return Se(o)||se(22,o),function e(r){if(!ue(r))return r;var n,a=r[M],s=st(r);if(a){if(!a.P&&(a.i<4||!me("ES5").K(a)))return a.t;a.I=!0,n=ca(r,s),a.I=!1}else n=ca(r,s);return He(n,function(c,d){a&&ms(a.t,c)===d||pa(n,c,e(d))}),s===3?new Set(n):n}(o)}function ca(o,e){switch(e){case 2:return new Map(o);case 3:return Array.from(o)}return to(o)}function ha(){function o(c,d){var u=s[c];return u?u.enumerable=d:s[c]=u={configurable:!0,enumerable:d,get:function(){var p=this[M];return Lt.get(p,c)},set:function(p){var h=this[M];Lt.set(h,c,p)}},u}function e(c){for(var d=c.length-1;d>=0;d--){var u=c[d][M];if(!u.P)switch(u.i){case 5:n(u)&&Ie(u);break;case 4:r(u)&&Ie(u)}}}function r(c){for(var d=c.t,u=c.k,p=it(u),h=p.length-1;h>=0;h--){var g=p[h];if(g!==M){var m=d[g];if(m===void 0&&!at(d,g))return!0;var v=u[g],b=v&&v[M];if(b?b.t!==m:!fa(v,m))return!0}}var O=!!d[M];return p.length!==it(d).length+(O?0:1)}function n(c){var d=c.k;if(d.length!==c.t.length)return!0;var u=Object.getOwnPropertyDescriptor(d,d.length-1);if(u&&!u.get)return!0;for(var p=0;p<d.length;p++)if(!d.hasOwnProperty(p))return!0;return!1}function a(c){c.g&&se(3,JSON.stringify(we(c)))}var s={};vs("ES5",{J:function(c,d){var u=Array.isArray(c),p=function(g,m){if(g){for(var v=Array(m.length),b=0;b<m.length;b++)Object.defineProperty(v,""+b,o(b,!0));return v}var O=ya(m);delete O[M];for(var w=it(O),I=0;I<w.length;I++){var T=w[I];O[T]=o(T,g||!!O[T].enumerable)}return Object.create(Object.getPrototypeOf(m),O)}(u,c),h={i:u?5:4,A:d?d.A:qr(),P:!1,I:!1,R:{},l:d,t:c,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,M,{value:h,writable:!0}),p},S:function(c,d,u){u?Se(d)&&d[M].A===c&&e(c.p):(c.u&&function p(h){if(h&&typeof h=="object"){var g=h[M];if(g){var m=g.t,v=g.k,b=g.R,O=g.i;if(O===4)He(v,function(L){L!==M&&(m[L]!==void 0||at(m,L)?b[L]||p(v[L]):(b[L]=!0,Ie(g)))}),He(m,function(L){v[L]!==void 0||at(v,L)||(b[L]=!1,Ie(g))});else if(O===5){if(n(g)&&(Ie(g),b.length=!0),v.length<m.length)for(var w=v.length;w<m.length;w++)b[w]=!1;else for(var I=m.length;I<v.length;I++)b[I]=!0;for(var T=Math.min(v.length,m.length),P=0;P<T;P++)v.hasOwnProperty(P)||(b[P]=!0),b[P]===void 0&&p(v[P])}}}}(c.p[0]),e(c.p))},K:function(c){return c.i===4?r(c):n(c)}})}var la,_t,no=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Cs=typeof Map<"u",Os=typeof Set<"u",da=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",ga=no?Symbol.for("immer-nothing"):((la={})["immer-nothing"]=!0,la),ua=no?Symbol.for("immer-draftable"):"__$immer_draftable",M=no?Symbol.for("immer-state"):"__$immer_state";var Es=""+Object.prototype.constructor,it=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(o){return Object.getOwnPropertyNames(o).concat(Object.getOwnPropertySymbols(o))}:Object.getOwnPropertyNames,ya=Object.getOwnPropertyDescriptors||function(o){var e={};return it(o).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(o,r)}),e},Xr={},Lt={get:function(o,e){if(e===M)return o;var r=we(o);if(!at(r,e))return function(a,s,c){var d,u=sa(s,c);return u?"value"in u?u.value:(d=u.get)===null||d===void 0?void 0:d.call(a.k):void 0}(o,r,e);var n=r[e];return o.I||!ue(n)?n:n===Kr(o.t,e)?(Zr(o),o.o[e]=Qr(o.A.h,n,o)):n},has:function(o,e){return e in we(o)},ownKeys:function(o){return Reflect.ownKeys(we(o))},set:function(o,e,r){var n=sa(we(o),e);if(n?.set)return n.set.call(o.k,r),!0;if(!o.P){var a=Kr(we(o),e),s=a?.[M];if(s&&s.t===r)return o.o[e]=r,o.R[e]=!1,!0;if(fa(r,a)&&(r!==void 0||at(o.t,e)))return!0;Zr(o),Ie(o)}return o.o[e]===r&&(r!==void 0||e in o.o)||Number.isNaN(r)&&Number.isNaN(o.o[e])||(o.o[e]=r,o.R[e]=!0),!0},deleteProperty:function(o,e){return Kr(o.t,e)!==void 0||e in o.t?(o.R[e]=!1,Zr(o),Ie(o)):delete o.R[e],o.o&&delete o.o[e],!0},getOwnPropertyDescriptor:function(o,e){var r=we(o),n=Reflect.getOwnPropertyDescriptor(r,e);return n&&{writable:!0,configurable:o.i!==1||e!=="length",enumerable:n.enumerable,value:r[e]}},defineProperty:function(){se(11)},getPrototypeOf:function(o){return Object.getPrototypeOf(o.t)},setPrototypeOf:function(){se(12)}},Rt={};He(Lt,function(o,e){Rt[o]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Rt.deleteProperty=function(o,e){return Rt.set.call(this,o,e,void 0)},Rt.set=function(o,e,r){return Lt.set.call(this,o[0],e,r,o[0])};var As=function(){function o(r){var n=this;this.O=da,this.D=!0,this.produce=function(a,s,c){if(typeof a=="function"&&typeof s!="function"){var d=s;s=a;var u=n;return function(O){var w=this;O===void 0&&(O=d);for(var I=arguments.length,T=Array(I>1?I-1:0),P=1;P<I;P++)T[P-1]=arguments[P];return u.produce(O,function(L){var $;return($=s).call.apply($,[w,L].concat(T))})}}var p;if(typeof s!="function"&&se(6),c!==void 0&&typeof c!="function"&&se(7),ue(a)){var h=aa(n),g=Qr(n,a,void 0),m=!0;try{p=s(g),m=!1}finally{m?Jt(h):Yr(h)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(O){return jr(h,c),Vr(O,h)},function(O){throw Jt(h),O}):(jr(h,c),Vr(p,h))}if(!a||typeof a!="object"){if((p=s(a))===void 0&&(p=a),p===ga&&(p=void 0),n.D&&ro(p,!0),c){var v=[],b=[];me("Patches").M(a,p,v,b),c(v,b)}return p}se(21,a)},this.produceWithPatches=function(a,s){if(typeof a=="function")return function(p){for(var h=arguments.length,g=Array(h>1?h-1:0),m=1;m<h;m++)g[m-1]=arguments[m];return n.produceWithPatches(p,function(v){return a.apply(void 0,[v].concat(g))})};var c,d,u=n.produce(a,s,function(p,h){c=p,d=h});return typeof Promise<"u"&&u instanceof Promise?u.then(function(p){return[p,c,d]}):[u,c,d]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=o.prototype;return e.createDraft=function(r){ue(r)||se(8),Se(r)&&(r=Ss(r));var n=aa(this),a=Qr(this,r,void 0);return a[M].C=!0,Yr(n),a},e.finishDraft=function(r,n){var a=r&&r[M],s=a.A;return jr(s,n),Vr(void 0,s)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!da&&se(20),this.O=r},e.applyPatches=function(r,n){var a;for(a=n.length-1;a>=0;a--){var s=n[a];if(s.path.length===0&&s.op==="replace"){r=s.value;break}}a>-1&&(n=n.slice(a+1));var c=me("Patches").$;return Se(r)?c(r,n):this.produce(r,function(d){return c(d,n)})},o}(),re=new As,ws=re.produce,Tl=re.produceWithPatches.bind(re),Rl=re.setAutoFreeze.bind(re),_l=re.setUseProxies.bind(re),Ll=re.applyPatches.bind(re),Nl=re.createDraft.bind(re),Pl=re.finishDraft.bind(re),rr=ws;function ze(o){"@babel/helpers - typeof";return ze=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ze(o)}function ma(o,e){if(ze(o)!="object"||!o)return o;var r=o[Symbol.toPrimitive];if(r!==void 0){var n=r.call(o,e||"default");if(ze(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(o)}function ba(o){var e=ma(o,"string");return ze(e)=="symbol"?e:e+""}function va(o,e,r){return(e=ba(e))in o?Object.defineProperty(o,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):o[e]=r,o}function xa(o,e){var r=Object.keys(o);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(o);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(o,a).enumerable})),r.push.apply(r,n)}return r}function ao(o){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?xa(Object(r),!0).forEach(function(n){va(o,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(r)):xa(Object(r)).forEach(function(n){Object.defineProperty(o,n,Object.getOwnPropertyDescriptor(r,n))})}return o}function Y(o){return"Minified Redux error #"+o+"; visit https://redux.js.org/Errors?code="+o+" for the full message or use the non-minified dev environment for full errors. "}var Sa=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),io=function(){return Math.random().toString(36).substring(7).split("").join(".")},or={INIT:"@@redux/INIT"+io(),REPLACE:"@@redux/REPLACE"+io(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+io()}};function Is(o){if(typeof o!="object"||o===null)return!1;for(var e=o;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(o)===e}function so(o,e,r){var n;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Y(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Y(1));return r(so)(o,e)}if(typeof o!="function")throw new Error(Y(2));var a=o,s=e,c=[],d=c,u=!1;function p(){d===c&&(d=c.slice())}function h(){if(u)throw new Error(Y(3));return s}function g(O){if(typeof O!="function")throw new Error(Y(4));if(u)throw new Error(Y(5));var w=!0;return p(),d.push(O),function(){if(w){if(u)throw new Error(Y(6));w=!1,p();var T=d.indexOf(O);d.splice(T,1),c=null}}}function m(O){if(!Is(O))throw new Error(Y(7));if(typeof O.type>"u")throw new Error(Y(8));if(u)throw new Error(Y(9));try{u=!0,s=a(s,O)}finally{u=!1}for(var w=c=d,I=0;I<w.length;I++){var T=w[I];T()}return O}function v(O){if(typeof O!="function")throw new Error(Y(10));a=O,m({type:or.REPLACE})}function b(){var O,w=g;return O={subscribe:function(T){if(typeof T!="object"||T===null)throw new Error(Y(11));function P(){T.next&&T.next(h())}P();var L=w(P);return{unsubscribe:L}}},O[Sa]=function(){return this},O}return m({type:or.INIT}),n={dispatch:m,subscribe:g,getState:h,replaceReducer:v},n[Sa]=b,n}function Ts(o){Object.keys(o).forEach(function(e){var r=o[e],n=r(void 0,{type:or.INIT});if(typeof n>"u")throw new Error(Y(12));if(typeof r(void 0,{type:or.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Y(13))})}function Ca(o){for(var e=Object.keys(o),r={},n=0;n<e.length;n++){var a=e[n];typeof o[a]=="function"&&(r[a]=o[a])}var s=Object.keys(r),c,d;try{Ts(r)}catch(u){d=u}return function(p,h){if(p===void 0&&(p={}),d)throw d;if(0)var g;for(var m=!1,v={},b=0;b<s.length;b++){var O=s[b],w=r[O],I=p[O],T=w(I,h);if(typeof T>"u"){var P=h&&h.type;throw new Error(Y(14))}v[O]=T,m=m||T!==I}return m=m||s.length!==Object.keys(p).length,m?v:p}}function ct(){for(var o=arguments.length,e=new Array(o),r=0;r<o;r++)e[r]=arguments[r];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function Oa(){for(var o=arguments.length,e=new Array(o),r=0;r<o;r++)e[r]=arguments[r];return function(n){return function(){var a=n.apply(void 0,arguments),s=function(){throw new Error(Y(15))},c={getState:a.getState,dispatch:function(){return s.apply(void 0,arguments)}},d=e.map(function(u){return u(c)});return s=ct.apply(void 0,d)(a.dispatch),ao(ao({},a),{},{dispatch:s})}}}function Ea(o){var e=function(n){var a=n.dispatch,s=n.getState;return function(c){return function(d){return typeof d=="function"?d(a,s,o):c(d)}}};return e}var Aa=Ea();Aa.withExtraArgument=Ea;var co=Aa;var _a=function(){var o=function(e,r){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(n[s]=a[s])},o(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");o(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Rs=function(o,e){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,a,s,c;return c={next:d(0),throw:d(1),return:d(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function d(p){return function(h){return u([p,h])}}function u(p){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,a&&(s=p[0]&2?a.return:p[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,p[1])).done)return s;switch(a=0,s&&(p=[p[0]&2,s.value]),p[0]){case 0:case 1:s=p;break;case 4:return r.label++,{value:p[1],done:!1};case 5:r.label++,a=p[1],p=[0];continue;case 7:p=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(p[0]===6||p[0]===2)){r=0;continue}if(p[0]===3&&(!s||p[1]>s[0]&&p[1]<s[3])){r.label=p[1];break}if(p[0]===6&&r.label<s[1]){r.label=s[1],s=p;break}if(s&&r.label<s[2]){r.label=s[2],r.ops.push(p);break}s[2]&&r.ops.pop(),r.trys.pop();continue}p=e.call(o,r)}catch(h){p=[6,h],a=0}finally{n=s=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},lt=function(o,e){for(var r=0,n=e.length,a=o.length;r<n;r++,a++)o[a]=e[r];return o},_s=Object.defineProperty,Ls=Object.defineProperties,Ns=Object.getOwnPropertyDescriptors,wa=Object.getOwnPropertySymbols,Ps=Object.prototype.hasOwnProperty,ks=Object.prototype.propertyIsEnumerable,Ia=function(o,e,r){return e in o?_s(o,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[e]=r},Te=function(o,e){for(var r in e||(e={}))Ps.call(e,r)&&Ia(o,r,e[r]);if(wa)for(var n=0,a=wa(e);n<a.length;n++){var r=a[n];ks.call(e,r)&&Ia(o,r,e[r])}return o},lo=function(o,e){return Ls(o,Ns(e))},Ds=function(o,e,r){return new Promise(function(n,a){var s=function(u){try{d(r.next(u))}catch(p){a(p)}},c=function(u){try{d(r.throw(u))}catch(p){a(p)}},d=function(u){return u.done?n(u.value):Promise.resolve(u.value).then(s,c)};d((r=r.apply(o,e)).next())})};var Fs=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ct:ct.apply(null,arguments)},Ql=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(o){return o}};function Ms(o){if(typeof o!="object"||o===null)return!1;var e=Object.getPrototypeOf(o);if(e===null)return!0;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return e===r}var Bs=function(o){_a(e,o);function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var a=o.apply(this,r)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return o.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,lt([void 0],r[0].concat(this)))):new(e.bind.apply(e,lt([void 0],r.concat(this))))},e}(Array),Us=function(o){_a(e,o);function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var a=o.apply(this,r)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return o.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,lt([void 0],r[0].concat(this)))):new(e.bind.apply(e,lt([void 0],r.concat(this))))},e}(Array);function fo(o){return ue(o)?rr(o,function(){}):o}function Hs(o){return typeof o=="boolean"}function zs(){return function(e){return Gs(e)}}function Gs(o){o===void 0&&(o={});var e=o.thunk,r=e===void 0?!0:e,n=o.immutableCheck,a=n===void 0?!0:n,s=o.serializableCheck,c=s===void 0?!0:s,d=new Bs;if(r&&(Hs(r)?d.push(co):d.push(co.withExtraArgument(r.extraArgument))),0){if(a)var u;if(c)var p}return d}var uo=!0;function La(o){var e=zs(),r=o||{},n=r.reducer,a=n===void 0?void 0:n,s=r.middleware,c=s===void 0?e():s,d=r.devTools,u=d===void 0?!0:d,p=r.preloadedState,h=p===void 0?void 0:p,g=r.enhancers,m=g===void 0?void 0:g,v;if(typeof a=="function")v=a;else if(Ms(a))v=Ca(a);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var b=c;if(typeof b=="function"&&(b=b(e),!uo&&!Array.isArray(b)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!uo&&b.some(function(L){return typeof L!="function"}))throw new Error("each middleware provided to configureStore must be a function");var O=Oa.apply(void 0,b),w=ct;u&&(w=Fs(Te({trace:!uo},typeof u=="object"&&u)));var I=new Us(O),T=I;Array.isArray(m)?T=lt([O],m):typeof m=="function"&&(T=m(I));var P=w.apply(void 0,T);return so(v,h,P)}function Re(o,e){function r(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(e){var s=e.apply(void 0,n);if(!s)throw new Error("prepareAction did not return an object");return Te(Te({type:o,payload:s.payload},"meta"in s&&{meta:s.meta}),"error"in s&&{error:s.error})}return{type:o,payload:n[0]}}return r.toString=function(){return""+o},r.type=o,r.match=function(n){return n.type===o},r}function Na(o){var e={},r=[],n,a={addCase:function(s,c){var d=typeof s=="string"?s:s.type;if(d in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[d]=c,a},addMatcher:function(s,c){return r.push({matcher:s,reducer:c}),a},addDefaultCase:function(s){return n=s,a}};return o(a),[e,r,n]}function Ws(o){return typeof o=="function"}function $s(o,e,r,n){r===void 0&&(r=[]);var a=typeof e=="function"?Na(e):[e,r,n],s=a[0],c=a[1],d=a[2],u;if(Ws(o))u=function(){return fo(o())};else{var p=fo(o);u=function(){return p}}function h(g,m){g===void 0&&(g=u());var v=lt([s[m.type]],c.filter(function(b){var O=b.matcher;return O(m)}).map(function(b){var O=b.reducer;return O}));return v.filter(function(b){return!!b}).length===0&&(v=[d]),v.reduce(function(b,O){if(O)if(Se(b)){var w=b,I=O(w,m);return I===void 0?b:I}else{if(ue(b))return rr(b,function(T){return O(T,m)});var I=O(b,m);if(I===void 0){if(b===null)return b;throw Error("A case reducer on a non-draftable value must not return undefined")}return I}return b},g)}return h.getInitialState=u,h}function js(o,e){return o+"/"+e}function Pa(o){var e=o.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof o.initialState=="function"?o.initialState:fo(o.initialState),n=o.reducers||{},a=Object.keys(n),s={},c={},d={};a.forEach(function(h){var g=n[h],m=js(e,h),v,b;"reducer"in g?(v=g.reducer,b=g.prepare):v=g,s[h]=v,c[m]=v,d[h]=b?Re(m,b):Re(m)});function u(){var h=typeof o.extraReducers=="function"?Na(o.extraReducers):[o.extraReducers],g=h[0],m=g===void 0?{}:g,v=h[1],b=v===void 0?[]:v,O=h[2],w=O===void 0?void 0:O,I=Te(Te({},m),c);return $s(r,function(T){for(var P in I)T.addCase(P,I[P]);for(var L=0,$=b;L<$.length;L++){var de=$[L];T.addMatcher(de.matcher,de.reducer)}w&&T.addDefaultCase(w)})}var p;return{name:e,reducer:function(h,g){return p||(p=u()),p(h,g)},actions:d,caseReducers:s,getInitialState:function(){return p||(p=u()),p.getInitialState()}}}var Vs="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Ks=function(o){o===void 0&&(o=21);for(var e="",r=o;r--;)e+=Vs[Math.random()*64|0];return e},Zs=["name","message","stack","code"],po=function(){function o(e,r){this.payload=e,this.meta=r}return o}(),Ta=function(){function o(e,r){this.payload=e,this.meta=r}return o}(),qs=function(o){if(typeof o=="object"&&o!==null){for(var e={},r=0,n=Zs;r<n.length;r++){var a=n[r];typeof o[a]=="string"&&(e[a]=o[a])}return e}return{message:String(o)}},td=function(){function o(e,r,n){var a=Re(e+"/fulfilled",function(h,g,m,v){return{payload:h,meta:lo(Te({},v||{}),{arg:m,requestId:g,requestStatus:"fulfilled"})}}),s=Re(e+"/pending",function(h,g,m){return{payload:void 0,meta:lo(Te({},m||{}),{arg:g,requestId:h,requestStatus:"pending"})}}),c=Re(e+"/rejected",function(h,g,m,v,b){return{payload:v,error:(n&&n.serializeError||qs)(h||"Rejected"),meta:lo(Te({},b||{}),{arg:m,requestId:g,rejectedWithValue:!!v,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),d=!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(g,m,v){var b=n?.idGenerator?n.idGenerator(h):Ks(),O=new u,w,I=!1;function T(L){w=L,O.abort()}var P=function(){return Ds(this,null,function(){var L,$,de,Pe,X,ke,Qe;return Rs(this,function(f){switch(f.label){case 0:return f.trys.push([0,4,,5]),Pe=(L=n?.condition)==null?void 0:L.call(n,h,{getState:m,extra:v}),Qs(Pe)?[4,Pe]:[3,2];case 1:Pe=f.sent(),f.label=2;case 2:if(Pe===!1||O.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return I=!0,X=new Promise(function(y,A){return O.signal.addEventListener("abort",function(){return A({name:"AbortError",message:w||"Aborted"})})}),g(s(b,h,($=n?.getPendingMeta)==null?void 0:$.call(n,{requestId:b,arg:h},{getState:m,extra:v}))),[4,Promise.race([X,Promise.resolve(r(h,{dispatch:g,getState:m,extra:v,requestId:b,signal:O.signal,abort:T,rejectWithValue:function(y,A){return new po(y,A)},fulfillWithValue:function(y,A){return new Ta(y,A)}})).then(function(y){if(y instanceof po)throw y;return y instanceof Ta?a(y.payload,b,h,y.meta):a(y,b,h)})])];case 3:return de=f.sent(),[3,5];case 4:return ke=f.sent(),de=ke instanceof po?c(null,b,h,ke.payload,ke.meta):c(ke,b,h),[3,5];case 5:return Qe=n&&!n.dispatchConditionRejection&&c.match(de)&&de.meta.condition,Qe||g(de),[2,de]}})})}();return Object.assign(P,{abort:T,requestId:b,arg:h,unwrap:function(){return P.then(Ys)}})}}return Object.assign(p,{pending:s,rejected:c,fulfilled:a,typePrefix:e})}return o.withTypes=function(){return o},o}();function Ys(o){if(o.meta&&o.meta.rejectedWithValue)throw o.payload;if(o.error)throw o.error;return o.payload}function Qs(o){return o!==null&&typeof o=="object"&&typeof o.then=="function"}var ka="listener",Da="completed",Fa="cancelled",rd="task-"+Fa,od="task-"+Da,nd=ka+"-"+Fa,ad=ka+"-"+Da;var ho="listenerMiddleware";var id=Re(ho+"/add"),sd=Re(ho+"/removeAll"),cd=Re(ho+"/remove");var Ra,ld=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(o){return(Ra||(Ra=Promise.resolve())).then(o).catch(function(e){return setTimeout(function(){throw e},0)})},Xs=function(o){return function(e){setTimeout(e,o)}},dd=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Xs(10);ha();var Js=Kt(Symbol("withEventBus"),function(o,e){return class extends o{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,n,a){this.eventBus.addEventListener(r,n,a)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,n,a){this.eventBus.removeEventListener(r,n,a)}}}),nr=class extends Js(Object){};window.ftReduxStores||(window.ftReduxStores={});var Ma=class o extends nr{static get(e){var r;let n=typeof e=="string"?e:e.name,a=typeof e=="string"?void 0:e,s=window.ftReduxStores[n];if(Xt(s))return s;if(a==null)return;let c=Pa({...a,reducers:(r=a.reducers)!==null&&r!==void 0?r:{}}),d=La({reducer:(u,p)=>{if(p.type==="CLEAR_FT_REDUX_STORE"){let h=Vn(c.getInitialState());for(let g of p.keeping)h[g]=(u??h)[g];return h}else if(typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...u,...p.overwrites};return c.reducer(u,p)}});return window.ftReduxStores[a.name]=new o(c,d,a.eventBus)}constructor(e,r,n){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new Zt;let a=s=>s!=null?JSON.parse(JSON.stringify(s)):s;this.actions=new Proxy(this.reduxSlice.actions,{get:(s,c,d)=>{let u=c,p=s[u];return p?(...h)=>{let g=p(...h.map(a));return this.reduxStore.dispatch(g),g}:h=>{this.setState({[u]:a(h)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var ar=class{static format(e,r,n,a){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(n,a)):this.getIntlDateTime(e,r,n,a)}static getMomentDateFormat(e,r){return e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,n,a){let s=typeof e=="string"?new Date(e):e,c=new Intl.DateTimeFormat(r,{dateStyle:n?"medium":"short"}).format(s);if(!a)return c;let d=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(s);return`${c} ${d}`}static getTimezoneAsString(){let e=n=>String(Math.floor(n)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var ir=C(_()),ec="ft-app-info",be=class o extends CustomEvent{constructor(e){super(o.eventName,{detail:e})}};be.eventName="authentication-change";var tc={session:(o,e)=>{(0,ir.deepEqual)(o.session,e.payload)||(o.session=e.payload,setTimeout(()=>S.dispatchEvent(new be(e.payload)),0))}},S=ir.FtReduxStore.get({name:ec,reducers:tc,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],availableContentLocales:[],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,authenticationRequired:!1}});var Ba=C(_()),sr=function(o,e,r,n){var a=arguments.length,s=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,r,n);else for(var d=o.length-1;d>=0;d--)(c=o[d])&&(s=(a<3?c(s):a>3?c(e,r,s):c(e,r))||s);return a>3&&s&&Object.defineProperty(e,r,s),s},Bd=(0,Ba.applyMixinOnce)(Symbol("withDateFormat"),function(o){class e extends o{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(S)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var a,s;return((s=(a=this.metadataDescriptors.find(d=>d.key===n))===null||a===void 0?void 0:a.date)!==null&&s!==void 0?s:!1)?d=>ar.format(d,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return sr([(0,go.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),sr([(0,go.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),sr([$r({store:S.name,selector:r=>{var n,a;return(a=(n=r.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&a!==void 0?a:[]}})],e.prototype,"metadataDescriptors",void 0),sr([$r({store:S.name})],e.prototype,"uiLocale",void 0),e});var fr=C(_());var yo=C(_());var Ge=class o{static get(e){let{baseUrl:r,apiIntegrationIdentifier:n}=S.getState(),a=e??n;if(r&&a&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,a,!0)}static await(e){return new Promise(r=>{let n=o.get(e);if(n)r(n);else{let a=S.subscribe(()=>{n=o.get(e),n&&(a(),r(n))})}})}};var cr=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Ge.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Ge.await()}};var Q=class extends cr{constructor(e=!0,r){var n;super(r),this.sortObjectFields=(s,c)=>typeof c!="object"||c==null||Array.isArray(c)?c:Object.fromEntries(Object.entries(c).sort(([d],[u])=>d.localeCompare(u)));let a=this.constructor;a.commonCache=(n=a.commonCache)!==null&&n!==void 0?n:new yo.CacheRegistry,this.cache=e?a.commonCache:new yo.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,n)=>0|31*r+n.charCodeAt(0),0))}};var lr=class extends Q{async listMySearches(){let{session:e}=S.getState();return xe(e,k.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var dr=class extends Q{async listMyBookmarks(){let e=S.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var ur=class extends Q{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=S.getState().session;return!!e?.sessionAuthenticated}};var pr=class extends Q{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=S.getState().session;return!!e?.sessionAuthenticated}};var rc="ft-user-assets",oc={setAssetCount:(o,e)=>{let{userAssetType:r,count:n}=e.payload.assetCount;o.assetCounts.allAsset[r]=n},clearAssetCount:o=>{Object.values(ie).forEach(e=>{o.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(o,e)=>{let r=e.payload.mapId;o.assetCounts.bookmarkByMap[r]=e.payload.count},clearBookmarkCountByMap:o=>{o.assetCounts.bookmarkByMap={}},addAsset:(o,e)=>{let{assetType:r,mapId:n,asset:a}=e.payload;bo(o,r,[...mo(o,r),a]),Ua(o,r,1,n),Ha(o,a)},editAsset:(o,e)=>{let{assetType:r,asset:n}=e.payload;bo(o,r,mo(o,r).map(a=>a.id===n.id?n:a)),Ha(o,n)},removeAsset:(o,e)=>{let{assetType:r,mapId:n,assetId:a}=e.payload;bo(o,r,mo(o,r).filter(s=>s.id!==a)),Ua(o,r,-1,n)}},za={[ie.SEARCHES]:"savedSearches",[ie.BOOKMARKS]:"bookmarks",[ie.BOOKS]:void 0,[ie.COLLECTIONS]:void 0},mo=(o,e)=>{var r;let n=za[e];return n?(r=o[n])!==null&&r!==void 0?r:[]:[]},bo=(o,e,r)=>{let n=za[e];n&&(o[n]=r)},Ua=(o,e,r,n)=>{let a=o.assetCounts.allAsset[e];if(a!==void 0&&(o.assetCounts.allAsset[e]=Math.max(0,a+r),e===ie.BOOKMARKS&&n)){let s=o.assetCounts.bookmarkByMap[n];o.assetCounts.bookmarkByMap[n]=Math.max(0,s+r)}},Ha=(o,e)=>{let r=o.assetLabels.map(a=>a.title),n=e.labels.filter(a=>!r.includes(a)).map(a=>({title:a}));o.assetLabels.push(...n)},oe=fr.FtReduxStore.get({name:rc,reducers:oc,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(ie).map(o=>[o,void 0])),bookmarkByMap:{}},assetLabels:[]}}),vo=class{constructor(e=new ur,r=new pr){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=S.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new dr,this.savedSearchesService=new lr,S.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=S.getState();(0,fr.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),oe.actions.clearAssetCount(),oe.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),oe.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),oe.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();oe.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();oe.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&oe.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&oe.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(oe.getState().assetCounts.bookmarkByMap).length!==0;e===ie.BOOKMARKS&&r&&oe.actions.clearBookmarkCountByMap(),oe.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let r=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;oe.actions.bookmarks(r)}}},xo=new vo;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=xo);var So=class{addCommand(e,r=!1){S.commands.add(e,r)}consumeCommand(e){return S.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new So;var ce=C(_());var Ga,dt=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},nc=Symbol("clearAfterUnitTest"),hr=class extends(0,ce.withEventBus)(Q){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Ga]=()=>{this.defaultMessages={},this.cache=new ce.CacheRegistry,this.listeners={}},this.currentUiLocale=S.getState().uiLocale,S.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=S.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var n;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let a={...(n=this.defaultMessages[e])!==null&&n!==void 0?n:{},...r};(0,ce.deepEqual)(this.defaultMessages[e],a)||(this.defaultMessages[e]=a,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,n;return this.fetchContext(e),(n=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(e,r){let n=e.toLowerCase();return this.resolveContext(n)[r]}resolveMessage(e,r,...n){var a;let s=e.toLowerCase(),c=this.resolveContext(s);return new ce.ParametrizedLabelResolver((a=this.defaultMessages[s])!==null&&a!==void 0?a:{},c).resolve(r,...n)}async fetchContext(e){let r=!this.cache.has(e),n;try{n=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(a){!(a instanceof ce.CanceledPromiseError)&&r&&console.error(a)}return n}subscribe(e,r){var n;return e=e.toLowerCase(),this.listeners[e]=(n=this.listeners[e])!==null&&n!==void 0?n:new Set,this.listeners[e].add(r),()=>{var a;return(a=this.listeners[e])===null||a===void 0?void 0:a.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new dt({loadedContexts:e})),this.dispatchEvent(new dt({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new dt({loadedContexts:[e]})),this.dispatchEvent(new dt({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(n=>(0,ce.delay)(0).then(()=>n()).catch(()=>null)))}};Ga=nc;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends hr{constructor(){super(async(o,e)=>(await this.awaitApi).getFluidTopicsMessageContext(o,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends hr{constructor(){super(async(o,e)=>(await this.awaitApi).getCustomMessageContext(o,e))}});var Wa=window.FluidTopicsI18nService,vu=window.FluidTopicsCustomI18nService;var $a=C(_()),Co=class{highlightHtml(e,r,n){(0,$a.highlightHtml)(e,r,n)}};window.FluidTopicsHighlightHtmlService=new Co;var ja=C(_());var Oo=class{isDate(e){var r,n,a,s;return(s=(a=((n=(r=S.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(d=>d.key===e))===null||a===void 0?void 0:a.date)!==null&&s!==void 0?s:!1}format(e,r){var n,a,s;if(e==null)return"";try{return ja.DateFormatter.format(e,(n=r?.locale)!==null&&n!==void 0?n:S.getState().uiLocale,(a=r?.longFormat)!==null&&a!==void 0?a:!1,(s=r?.withTime)!==null&&s!==void 0?s:!1)}catch(c){throw console.error(`Date ${JSON.stringify(e)} is not valid`,c),c}}};window.FluidTopicsDateService=new Oo;var Va=C(_());var Nt=class{static get(e,r){var n,a;let s=S.getState(),{lang:c,region:d}=(a=(n=s.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&a!==void 0?a:{lang:"en",region:"US"};return new Va.SearchPlaceConverter(s.baseUrl,e??20,s.searchInAllLanguagesAllowed,r??`${c}-${d}`)}};var Eo=class{urlToSearchRequest(e){return Nt.get().parse(e)}searchRequestToUrl(e){return Nt.get().serialize(e)}};window.FluidTopicsUrlService=new Eo;var _e=C(_());var We=class o extends CustomEvent{constructor(e){super(o.eventName,{detail:{currentItem:e}})}};We.eventName="change";var Ao=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let r=sessionStorage.getItem(this.itemName(e));return r?JSON.parse(r):void 0}set(e,r){sessionStorage.setItem(this.itemName(e),JSON.stringify(r))}},Ka=new Ao;var gr=class o extends _e.WithEventBus{static build(){return new o(window.history,Ka,()=>window.location,!1)}constructor(e,r,n,a){var s,c;super(),this.history=e,this.historyStorage=r,this.windowLocation=n,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(c=(s=e.state)===null||s===void 0?void 0:s.index)!==null&&c!==void 0?c:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(a)}setCurrentState(e,r=!1){let n=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,_e.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new We(this.currentItem())),0)}installProxies(){let e=r=>(n,a,[s,c,d])=>{let u=r(),p={...u===this.currentIndex?this.currentState:void 0,...s,index:u,href:typeof d=="string"?d:(d??this.windowLocation()).href};n.apply(a,[p,c,d]),this.setCurrentState(p,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e){var r;let n={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(e){this.addEventListener(We.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(We.eventName,e)}currentItem(){return(0,_e.deepCopy)(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,_e.deepCopy)(this.states[this.previousDifferentMajorPosition()])}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return(0,_e.deepCopy)(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var r;let n=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!n)return e;let a=e,s=e+1;for(;this.states.length>s&&!this.isDifferentMajorState(s,n);)this.hasState(s)&&(a=s),s++;return a}buildCurrentState(){var e,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,r){var n;if(!this.hasState(e))return!1;let a=r??this.currentState.majorStateId,s=(n=this.states[e])===null||n===void 0?void 0:n.majorStateId;return s==null||s!=a}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=gr.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:o=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(o),removeHistoryChangeListener:o=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(o)});var Za=C(V());var qa=Za.css`
50
- `;var Qa=C(V()),Z=C(J()),pe=C(_());function Ya(o,e){let{authenticationRequired:r,session:n}=S.getState();return r&&!n?.sessionAuthenticated?Promise.resolve(e):o()}var H=function(o,e,r,n){var a=arguments.length,s=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,r,n);else for(var d=o.length-1;d>=0;d--)(c=o[d])&&(s=(a<3?c(s):a>3?c(e,r,s):c(e,r))||s);return a>3&&s&&Object.defineProperty(e,r,s),s},D=class extends pe.FtLitElement{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",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=()=>Ge.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new pe.CacheRegistry,this.cleanSessionDebouncer=new pe.Debouncer,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return Qa.html`
49
+ `;var Pt=C(V()),$e=C(J()),G=C(_());var fe=C(_());var dn=C(_()),hs={setTranslationDestinationLanguage:(o,e)=>{o.translation.destinationLanguage=e.payload},setTranslationSourceLanguage:(o,e)=>{o.translation.sourceLanguage=e.payload},setTranslationProfileId:(o,e)=>{o.translation.profileId=e.payload},setTranslationLoading:(o,e)=>{o.translation.isLoading=e.payload},setTranslationError:(o,e)=>{o.translation.isError=e.payload},setTopicsRating:(o,e)=>{for(let r in e.payload)o.topicsRating[r]=e.payload[r]}},un=o=>dn.FtReduxStore.get({name:"ft-reader-"+o,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},linkPreviewDialogId:void 0},reducers:hs});var Wr=class{constructor(e,r){this.mapId=e,this.paginatedToc=r,this.nodeByTocId={},this.nodeByUrl={},this.duplicatedPrettyUrls=new Set,this.pages=[],this.pageByTocId={}}build(){return{paginationConfiguration:this.paginatedToc.configuration,toc:this.convertNodes(this.paginatedToc.paginatedToc,1),pagesToc:this.extractPagesToc(this.paginatedToc.paginatedToc,1),nodeByTocId:this.nodeByTocId,nodeByUrl:this.nodeByUrl,duplicatedPrettyUrls:this.duplicatedPrettyUrls,pages:this.pages,pageByTocId:this.pageByTocId,translationError:this.paginatedToc.translationError}}extractPagesToc(e,r,n){return e.flatMap(a=>{var s;return a.pageConfiguration&&this.registerPage(this.buildPage(a,n)),a.tocId==null?this.extractPagesToc(a.children,r,n):[{tocId:a.tocId,title:(s=a.title)!==null&&s!==void 0?s:"",untranslatedTitle:a.untranslatedTitle,depth:r,children:this.extractPagesToc(a.children,r+1,a.tocId)}]})}convertNodes(e,r,n){return e.flatMap(a=>{var s,c,d;if(a.tocId==null)return[...this.convertSectionNodes((s=a.pageToc)!==null&&s!==void 0?s:[],r,a.tocId),...this.convertNodes(a.children,r,a.tocId)];let u=(c=a.prettyUrl)===null||c===void 0?void 0:c.replace(/^\//,""),p={tocId:a.tocId,contentId:a.contentId,title:a.title,untranslatedTitle:a.untranslatedTitle,hasRating:a.hasRating,origin:a.origin,prettyUrl:u,depth:r,parentTocId:n,children:[]};this.register(p);let h=this.convertSectionNodes((d=a.pageToc)!==null&&d!==void 0?d:[],r+1,a.tocId),g=this.convertNodes(a.children,r+1,p.tocId);return p.children=[...h,...g],[p]})}convertSectionNodes(e,r,n){return e.flatMap(a=>{var s;let c=(s=a.prettyUrl)===null||s===void 0?void 0:s.replace(/^\//,""),d={...a,prettyUrl:c,depth:r,parentTocId:n,children:[]};return this.register(d),d.children=this.convertSectionNodes(a.children,r+1,a.tocId),[d]})}buildPage(e,r){var n,a,s,c,d,u;let p={number:this.pages.length+1,title:(n=e.title)!==null&&n!==void 0?n:"",untranslatedTitle:e.untranslatedTitle,rootTocId:(a=e.tocId)!==null&&a!==void 0?a:"root",toc:((s=e.pageToc)!==null&&s!==void 0?s:[]).map(m=>this.nodeByTocId[m.tocId]),topics:[],hiddenTopics:[],breadcrumb:r?this.buildBreadcrumb(this.nodeByTocId[r]):[]},h=(m,v)=>(v?p.topics:p.hiddenTopics).push(m),g=(d=(c=e.pageConfiguration)===null||c===void 0?void 0:c.parentsVisibility)!==null&&d!==void 0?d:[];return p.breadcrumb.forEach((m,v)=>{h(m,g[v])}),e.tocId&&h(e.tocId,e.pageConfiguration.isVisible),p.topics.push(...this.tocIds((u=e.pageToc)!==null&&u!==void 0?u:[])),p}registerPage(e){for(let r of[...e.topics,...e.hiddenTopics])this.pageByTocId[r]||(this.pageByTocId[r]=e);this.pages.push(e)}tocIds(e){return e.flatMap(r=>[r.tocId,...this.tocIds(r.children)])}buildBreadcrumb(e){let r=[e.tocId];for(;e?.parentTocId;)r.unshift(e.parentTocId),e=this.nodeByTocId[e.parentTocId];return r}register(e){e.prettyUrl&&(this.nodeByUrl[e.prettyUrl]==null?this.nodeByUrl[e.prettyUrl]=e:this.duplicatedPrettyUrls.add(e.prettyUrl)),this.nodeByUrl[`${this.mapId}/${e.tocId}`]=e,this.nodeByTocId[e.tocId]=e}},Wt=class{convertPaginatedToc(e,r){return new Wr(e,r).build()}};var ys=C(fn(),1);var hn;(function(o){o.black="black",o.green="green",o.blue="blue",o.purple="purple",o.red="red",o.orange="orange",o.yellow="yellow"})(hn||(hn={}));var gn;(function(o){o.OFFICIAL="OFFICIAL",o.PERSONAL="PERSONAL",o.SHARED="SHARED"})(gn||(gn={}));var yn;(function(o){o.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",o.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",o.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",o.PERSONAL_BOOK="PERSONAL_BOOK",o.ATTACHMENT="ATTACHMENT",o.RESOURCE="RESOURCE",o.HTML_PACKAGE="HTML_PACKAGE"})(yn||(yn={}));var mn;(function(o){o.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",o.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",o.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",o.PERSONAL_BOOK="PERSONAL_BOOK",o.ATTACHMENT="ATTACHMENT",o.RESOURCE="RESOURCE",o.HTML_PACKAGE="HTML_PACKAGE"})(mn||(mn={}));var bn;(function(o){o.LAST_WEEK="LAST_WEEK",o.LAST_MONTH="LAST_MONTH",o.LAST_QUARTER="LAST_QUARTER",o.LAST_YEAR="LAST_YEAR"})(bn||(bn={}));var vn;(function(o){o.VALUE="VALUE",o.DATE="DATE",o.RANGE="RANGE"})(vn||(vn={}));var xn;(function(o){o.BOOKMARK__CREATE="BOOKMARK__CREATE",o.BOOKMARK__DELETE="BOOKMARK__DELETE",o.CASE_DEFLECTION__START="CASE_DEFLECTION__START",o.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",o.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",o.CHATBOT__RATE="CHATBOT__RATE",o.COLLECTION__CREATE="COLLECTION__CREATE",o.COLLECTION__UPDATE="COLLECTION__UPDATE",o.COLLECTION__DELETE="COLLECTION__DELETE",o.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",o.DOCUMENT__AI_TRANSLATE="DOCUMENT__AI_TRANSLATE",o.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",o.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",o.DOCUMENT__PRINT="DOCUMENT__PRINT",o.DOCUMENT__PROCESS="DOCUMENT__PROCESS",o.DOCUMENT__RATE="DOCUMENT__RATE",o.DOCUMENT__SEARCH="DOCUMENT__SEARCH",o.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",o.DOCUMENT__UNRATE="DOCUMENT__UNRATE",o.FEEDBACK__SEND="FEEDBACK__SEND",o.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",o.AI__RATE="AI__RATE",o.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",o.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",o.KHUB__PROCESS="KHUB__PROCESS",o.KHUB__SEARCH="KHUB__SEARCH",o.LABELS__DOWNLOAD="LABELS__DOWNLOAD",o.LINK__SHARE="LINK__SHARE",o.PAGE__DISPLAY="PAGE__DISPLAY",o.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",o.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",o.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",o.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",o.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",o.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",o.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",o.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",o.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",o.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",o.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",o.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",o.TOPIC__DISPLAY="TOPIC__DISPLAY",o.TOPIC__RATE="TOPIC__RATE",o.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",o.TOPIC__UNRATE="TOPIC__UNRATE",o.USER__LOGIN="USER__LOGIN",o.USER__LOGOUT="USER__LOGOUT",o.HEARTBEAT="HEARTBEAT"})(xn||(xn={}));var Sn;(function(o){o.THIRD_PARTY="THIRD_PARTY",o.OFF_THE_GRID="OFF_THE_GRID",o.CONTENT_PACKAGER="CONTENT_PACKAGER",o.PAGES="PAGES",o.DESIGNED_READER="DESIGNED_READER"})(Sn||(Sn={}));var Cn;(function(o){o.HOMEPAGE="HOMEPAGE",o.CUSTOM="CUSTOM",o.HEADER="HEADER",o.READER="READER",o.TOPIC_TEMPLATE="TOPIC_TEMPLATE",o.SEARCH="SEARCH",o.SEARCH_RESULT="SEARCH_RESULT",o.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",o.LINK_PREVIEW="LINK_PREVIEW",o.UD_VIEWER="UD_VIEWER",o.ASSET_VIEWER="ASSET_VIEWER"})(Cn||(Cn={}));var On;(function(o){o.CLASSIC="CLASSIC",o.CUSTOM="CUSTOM",o.DESIGNER="DESIGNER"})(On||(On={}));var En;(function(o){o.AND="AND",o.OR="OR",o.MONOVALUED="MONOVALUED"})(En||(En={}));var An;(function(o){o.NONE="NONE",o.ALPHABET="ALPHABET",o.VERSION="VERSION"})(An||(An={}));var wn;(function(o){o.STARS="STARS",o.LIKE="LIKE",o.DICHOTOMOUS="DICHOTOMOUS",o.NO_RATING="NO_RATING"})(wn||(wn={}));var In;(function(o){o.LAST_WEEK="LAST_WEEK",o.LAST_MONTH="LAST_MONTH",o.LAST_QUARTER="LAST_QUARTER",o.LAST_YEAR="LAST_YEAR",o.CUSTOM="CUSTOM"})(In||(In={}));var Tn;(function(o){o.OPTIONAL="OPTIONAL",o.MANDATORY="MANDATORY"})(Tn||(Tn={}));var Rn;(function(o){o.ASC="ASC",o.DESC="DESC"})(Rn||(Rn={}));var _n;(function(o){o.ALPHA="ALPHA",o.NATURAL="NATURAL"})(_n||(_n={}));var Nn;(function(o){o.EVERYWHERE="EVERYWHERE",o.TITLE_ONLY="TITLE_ONLY",o.NONE="NONE"})(Nn||(Nn={}));var Ln;(function(o){o.ARTICLE="ARTICLE",o.BOOK="BOOK",o.SHARED_BOOK="SHARED_BOOK",o.HTML_PACKAGE="HTML_PACKAGE"})(Ln||(Ln={}));var Pn;(function(o){o.FLUIDTOPICS="FLUIDTOPICS",o.EXTERNAL="EXTERNAL"})(Pn||(Pn={}));var kn;(function(o){o.MAP="MAP",o.DOCUMENT="DOCUMENT",o.TOPIC="TOPIC",o.PERSONAL_BOOK="PERSONAL_BOOK",o.SHARED_BOOK="SHARED_BOOK",o.HTML_PACKAGE="HTML_PACKAGE"})(kn||(kn={}));var Dn;(function(o){o.LAST_WEEK="LAST_WEEK",o.LAST_MONTH="LAST_MONTH",o.LAST_QUARTER="LAST_QUARTER",o.LAST_YEAR="LAST_YEAR"})(Dn||(Dn={}));var Fn;(function(o){o.MAP="MAP",o.DOCUMENT="DOCUMENT",o.TOPIC="TOPIC",o.HTML_PACKAGE="HTML_PACKAGE",o.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Fn||(Fn={}));var Mn;(function(o){o.DEFAULT="DEFAULT",o.DOCUMENTS="DOCUMENTS",o.ALL_TOPICS="ALL_TOPICS",o.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Mn||(Mn={}));var Un;(function(o){o.PLAIN_TEXT="PLAIN_TEXT",o.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",o.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Un||(Un={}));var P;(function(o){o.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",o.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",o.HTML_EXPORT_USER="HTML_EXPORT_USER",o.PDF_EXPORT_USER="PDF_EXPORT_USER",o.SAVED_SEARCH_USER="SAVED_SEARCH_USER",o.COLLECTION_USER="COLLECTION_USER",o.OFFLINE_USER="OFFLINE_USER",o.ANALYTICS_USER="ANALYTICS_USER",o.BETA_USER="BETA_USER",o.DEBUG_USER="DEBUG_USER",o.PRINT_USER="PRINT_USER",o.RATING_USER="RATING_USER",o.FEEDBACK_USER="FEEDBACK_USER",o.GENERATIVE_AI_USER="GENERATIVE_AI_USER",o.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",o.CONTENT_PUBLISHER="CONTENT_PUBLISHER",o.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",o.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",o.KHUB_ADMIN="KHUB_ADMIN",o.USERS_ADMIN="USERS_ADMIN",o.PORTAL_ADMIN="PORTAL_ADMIN",o.ADMIN="ADMIN"})(P||(P={}));var ie;(function(o){o.SEARCHES="SEARCHES",o.BOOKMARKS="BOOKMARKS",o.BOOKS="BOOKS",o.COLLECTIONS="COLLECTIONS"})(ie||(ie={}));var Bn;(function(o){o.UNAUTHENTICATED="UNAUTHENTICATED",o.USER_INCOMPLETE="USER_INCOMPLETE",o.MFA_REQUIRED="MFA_REQUIRED",o.AUTHENTICATED="AUTHENTICATED"})(Bn||(Bn={}));var Hn;(function(o){o.VALID="VALID",o.INVALID="INVALID"})(Hn||(Hn={}));var zn;(function(o){o.INACCURATE="INACCURATE",o.INCOMPLETE="INCOMPLETE",o.OFF_TOPIC="OFF_TOPIC",o.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",o.SUMMARY="SUMMARY",o.SEMANTIC_SEARCH="SEMANTIC_SEARCH",o.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",o.OTHER="OTHER"})(zn||(zn={}));var Gn;(function(o){o.INACCURATE="INACCURATE",o.INCOMPLETE="INCOMPLETE",o.OFF_TOPIC="OFF_TOPIC",o.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",o.SLOW="SLOW",o.OTHER="OTHER"})(Gn||(Gn={}));var Wn;(function(o){o.JSON="JSON",o.TEXT="TEXT"})(Wn||(Wn={}));var $n;(function(o){o.USER="USER",o.ASSISTANT="ASSISTANT"})($n||($n={}));var jn;(function(o){o.TEXT="TEXT",o.HTML="HTML"})(jn||(jn={}));var Vn;(function(o){o.HTML="HTML",o.MARKDOWN="MARKDOWN"})(Vn||(Vn={}));var Kn;(function(o){o.MAP="MAP",o.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(Kn||(Kn={}));var gs={[P.PERSONAL_BOOK_SHARE_USER]:[P.PERSONAL_BOOK_USER],[P.HTML_EXPORT_USER]:[P.PERSONAL_BOOK_USER],[P.PDF_EXPORT_USER]:[P.PERSONAL_BOOK_USER],[P.KHUB_ADMIN]:[P.CONTENT_PUBLISHER],[P.ADMIN]:[P.KHUB_ADMIN,P.USERS_ADMIN,P.PORTAL_ADMIN,P.BEHAVIOR_DATA_USER],[P.GENERATIVE_AI_EXPORT_USER]:[P.GENERATIVE_AI_USER]};function Zn(o,e){return o===e||(gs[o]??[]).some(r=>Zn(r,e))}function xe(o,e){return o==null?!1:(Array.isArray(o)?o:Array.isArray(o.roles)?o.roles:Array.isArray(o.profile?.roles)?o.profile.roles:[]).some(n=>Zn(n,e))}var go=C(J());function ms(o,e){if(o===e)return!0;if(o&&e&&typeof o=="object"&&typeof e=="object"){if(o.constructor!==e.constructor)return!1;let r,n,a;if(Array.isArray(o)){if(r=o.length,r!=e.length)return!1;for(n=r;n--!==0;)if(!Vt(o[n],e[n]))return!1;return!0}if(o instanceof Map&&e instanceof Map){if(o.size!==e.size)return!1;for(n of o.entries())if(!e.has(n[0]))return!1;for(n of o.entries())if(!Vt(n[1],e.get(n[0])))return!1;return!0}if(o instanceof Set&&e instanceof Set){if(o.size!==e.size)return!1;for(n of o.entries())if(!e.has(n[0]))return!1;return!0}if(o.constructor===RegExp)return o.source===e.source&&o.flags===e.flags;if(o.valueOf!==Object.prototype.valueOf)return o.valueOf()===e.valueOf();let s=c=>Object.keys(c).filter(d=>c[d]!=null);if(a=s(o),r=a.length,r!==s(e).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,a[n]))return!1;for(n=r;n--!==0;){let c=a[n];if(!Vt(o[c],e[c]))return!1}return!0}return o!==o&&e!==e||o==null&&e==null}function Vt(o,e){try{return ms(o,e)}catch{return!1}}function It(o,e){return!Vt(o,e)}function qn(o){return typeof window.structuredClone=="function"?structuredClone(o):o!=null?JSON.parse(JSON.stringify(o)):o}function Kt(o,e){let r=n=>n[o]===!0;return n=>{if(r(n))return n;let a=e(n);return a[o]=!0,a}}var Yn=C(J(),1);var $r=o=>{let e=o??{};return(r,n)=>{var a;let s={hasChanged:It,attribute:!1,...e};(0,Yn.property)(s)(r,n);let c=r.constructor;c.reduxProperties=new Map(c.reduxProperties),c.reduxProperties.set(n,{selector:(a=e.selector)!==null&&a!==void 0?a:d=>d[n],store:e.store})}};var Zt=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(n=>n.type===e);return r&&(this.queue=this.queue.filter(n=>n!==r)),r}clear(e){typeof e=="string"?this.queue=this.queue.filter(r=>r.type!==e):this.queue=this.queue.filter(r=>!e.test(r.type))}};var Ue=C(J(),1);var Qn=C(J(),1);function Xn(o,e){let r=()=>JSON.parse(JSON.stringify(o));return(0,Qn.property)({type:Object,converter:{fromAttribute:n=>{if(n==null)return r();try{return JSON.parse(n)}catch{return r()}},toAttribute:n=>JSON.stringify(n)},hasChanged:It,...e??{}})}var qt=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,n)=>{this.resolvePromise=r,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let n=[...this.callbacks];this.callbacks=[];let a=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,s=(r=this.resolvePromise)!==null&&r!==void 0?r:()=>null;this.clearPromise();for(let c of n)try{await c()}catch(d){a(d);return}s(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var ea=C(V(),1);var Yt=globalThis,bs=Yt.ShadowRoot&&(Yt.ShadyCSS===void 0||Yt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,bl=Symbol();var Jn=(o,e)=>{if(bs)o.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let n=document.createElement("style"),a=Yt.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=r.cssText,o.appendChild(n)}};var Qt=class extends ea.LitElement{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([a,s])=>e.registry.define(a,s)));let r={...e.shadowRootOptions,customElements:e.registry},n=this.renderOptions.creationScope=this.attachShadow(r);return Jn(n,e.elementStyles),n}};function ta(o,e,...r){var n;let a=o.querySelector(e);for(let s of r)a=(n=a?.shadowRoot)===null||n===void 0?void 0:n.querySelector(s);return a}var nt=function(o,e,r,n){var a=arguments.length,s=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,r,n);else for(var d=o.length-1;d>=0;d--)(c=o[d])&&(s=(a<3?c(s):a>3?c(e,r,s):c(e,r))||s);return a>3&&s&&Object.defineProperty(e,r,s),s},aa,ra=Symbol("constructorPrototype"),oa=Symbol("constructorName"),ia=Symbol("exportpartsDebouncer"),na=Symbol("dynamicDependenciesLoaded"),ot=class o extends CustomEvent{constructor(){super(o.eventName,{bubbles:!0})}};ot.eventName="exportparts-updated";var ye=class extends Qt{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[aa]=new qt(5),this.scheduleExportpartsUpdate=()=>{var e,r,n;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(n=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&n!==void 0&&n)&&this[ia].run(()=>{var a,s;!((a=this.exportpartsPrefix)===null||a===void 0)&&a.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((s=this.exportpartsPrefixes)===null||s===void 0?void 0:s.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[oa]=this.constructor.name,this[ra]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[oa]&&Object.setPrototypeOf(this,this[ra])}connectedCallback(){var e;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(n){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",n)}let r=this.constructor;r[na]||(r[na]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(ot.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(ot.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate(),e.has("exportparts")&&this.dispatchEvent(new ot)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:n,shadowPath:a}=this.elementToFocus;if(n!=null){let s=[...a??[],n];r=ta(this.shadowRoot,...s)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,n,a;if(((n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(s=>s.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((a=this.customStylesheet)!==null&&a!==void 0?a:"")}catch(s){console.error(s,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let s=document.createElement("style");s.classList.add("ft-lit-element--custom-stylesheet"),s.innerHTML=this.customStylesheet,this.shadowRoot.append(s)}}setExportpartsAttribute(e){var r,n,a,s,c,d;let u=m=>m!=null&&m.trim().length>0,p=e.filter(u).map(m=>m.trim());if(p.length===0){this.exportparts=void 0;return}let h=new Set;for(let m of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let v=(s=(a=m.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&s!==void 0?s:[],b=(d=(c=m.getAttribute("exportparts"))===null||c===void 0?void 0:c.split(",").map(w=>w.split(":")[1]))!==null&&d!==void 0?d:[],O=[...v,...b].filter(u).map(w=>w.trim());for(let w of O)h.add(w)}if(h.size===0){this.exportparts=void 0;return}let g=[...h.values()].flatMap(m=>p.map(v=>`${m}:${v}--${m}`));this.exportparts=[...this.part,...g].join(", ")}};aa=ia;nt([(0,Ue.property)()],ye.prototype,"exportpartsPrefix",void 0);nt([Xn([])],ye.prototype,"exportpartsPrefixes",void 0);nt([(0,Ue.property)({reflect:!0})],ye.prototype,"exportparts",void 0);nt([(0,Ue.property)()],ye.prototype,"customStylesheet",void 0);nt([(0,Ue.property)()],ye.prototype,"elementToFocus",void 0);nt([(0,Ue.state)()],ye.prototype,"useAdoptedStyleSheets",void 0);function Xt(o){var e;return(e=o?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Tt=Symbol("internalReduxEventsUnsubscribers"),Ae=Symbol("internalStoresUnsubscribers"),Be=Symbol("internalStores"),vs=Kt(Symbol("withRedux"),function(o){var e,r,n;class a extends o{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(c){super.willUpdate(c),[...this.reduxConstructor.reduxReactiveProperties].some(d=>c.has(d))&&this.updateFromStores()}getUnnamedStore(){if(this[Be].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Be].values()][0]}getStore(c){return c==null?this.getUnnamedStore():this[Be].get(c)}addStore(c,d){var u;d=(u=d??c.name)!==null&&u!==void 0?u:"default-store",this.unsubscribeFromStore(d),this[Be].set(d,c),this.subscribeToStore(d,c),this.updateFromStores()}removeStore(c){let d=typeof c=="string"?c:c.name;this.unsubscribeFromStore(d),this[Be].delete(d)}setupStores(){this.unsubscribeFromStores(),this[Be].forEach((c,d)=>this.subscribeToStore(d,c)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((c,d)=>{let u=this.constructor.getPropertyOptions(d);if(!u?.attribute||!this.hasAttribute(typeof u?.attribute=="string"?u.attribute:d)){let p=this.getStore(c.store);p&&(c.store?this[Ae].has(c.store):this[Ae].size>0)&&(this[d]=c.selector(p.getState(),this))}})}subscribeToStore(c,d){var u;this[Ae].set(c,d.subscribe(()=>this.updateFromStores())),this[Tt].set(c,[]),Xt(d)&&d.eventBus&&((u=this.reduxConstructor.reduxEventListeners)===null||u===void 0||u.forEach((p,h)=>{if(typeof this[h]=="function"&&(!p.store||d.name===p.store)){let g=m=>this[h](m);d.addEventListener(p.eventName,g),this[Tt].get(c).push(()=>d.removeEventListener(p.eventName,g))}})),this.onStoreAvailable(c)}unsubscribeFromStores(){this[Ae].forEach((c,d)=>this.unsubscribeFromStore(d))}unsubscribeFromStore(c){var d;this[Ae].has(c)&&this[Ae].get(c)(),this[Ae].delete(c),(d=this[Tt].get(c))===null||d===void 0||d.forEach(u=>u()),this[Tt].delete(c)}onStoreAvailable(c){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=Ae,r=Be,n=Tt,a.reduxProperties=new Map,a.reduxReactiveProperties=new Set,a.reduxEventListeners=new Map,a}),sa=class extends vs(ye){};function se(o){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];if(0)var a,s;throw Error("[Immer] minified error nr: "+o+(r.length?" "+r.map(function(c){return"'"+c+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Se(o){return!!o&&!!o[M]}function ue(o){var e;return!!o&&(function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===Is}(o)||Array.isArray(o)||!!o[ha]||!!(!((e=o.constructor)===null||e===void 0)&&e[ha])||Jr(o)||eo(o))}function He(o,e,r){r===void 0&&(r=!1),st(o)===0?(r?Object.keys:it)(o).forEach(function(n){r&&typeof n=="symbol"||e(n,o[n],o)}):o.forEach(function(n,a){return e(a,n,o)})}function st(o){var e=o[M];return e?e.i>3?e.i-4:e.i:Array.isArray(o)?1:Jr(o)?2:eo(o)?3:0}function at(o,e){return st(o)===2?o.has(e):Object.prototype.hasOwnProperty.call(o,e)}function xs(o,e){return st(o)===2?o.get(e):o[e]}function ga(o,e,r){var n=st(o);n===2?o.set(e,r):n===3?o.add(r):o[e]=r}function ya(o,e){return o===e?o!==0||1/o==1/e:o!=o&&e!=e}function Jr(o){return As&&o instanceof Map}function eo(o){return ws&&o instanceof Set}function we(o){return o.o||o.t}function to(o){if(Array.isArray(o))return Array.prototype.slice.call(o);var e=va(o);delete e[M];for(var r=it(e),n=0;n<r.length;n++){var a=r[n],s=e[a];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(e[a]={configurable:!0,writable:!0,enumerable:s.enumerable,value:o[a]})}return Object.create(Object.getPrototypeOf(o),e)}function ro(o,e){return e===void 0&&(e=!1),oo(o)||Se(o)||!ue(o)||(st(o)>1&&(o.set=o.add=o.clear=o.delete=Ss),Object.freeze(o),e&&He(o,function(r,n){return ro(n,!0)},!0)),o}function Ss(){se(2)}function oo(o){return o==null||typeof o!="object"||Object.isFrozen(o)}function me(o){var e=Xr[o];return e||se(18,o),e}function Cs(o,e){Xr[o]||(Xr[o]=e)}function qr(){return _t}function jr(o,e){e&&(me("Patches"),o.u=[],o.s=[],o.v=e)}function Jt(o){Yr(o),o.p.forEach(Os),o.p=null}function Yr(o){o===_t&&(_t=o.l)}function ca(o){return _t={p:[],l:_t,h:o,m:!0,_:0}}function Os(o){var e=o[M];e.i===0||e.i===1?e.j():e.g=!0}function Vr(o,e){e._=e.p.length;var r=e.p[0],n=o!==void 0&&o!==r;return e.h.O||me("ES5").S(e,o,n),n?(r[M].P&&(Jt(e),se(4)),ue(o)&&(o=er(e,o),e.l||tr(e,o)),e.u&&me("Patches").M(r[M].t,o,e.u,e.s)):o=er(e,r,[]),Jt(e),e.u&&e.v(e.u,e.s),o!==ba?o:void 0}function er(o,e,r){if(oo(e))return e;var n=e[M];if(!n)return He(e,function(d,u){return la(o,n,e,d,u,r)},!0),e;if(n.A!==o)return e;if(!n.P)return tr(o,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=to(n.k):n.o,s=a,c=!1;n.i===3&&(s=new Set(a),a.clear(),c=!0),He(s,function(d,u){return la(o,n,a,d,u,r,c)}),tr(o,a,!1),r&&o.u&&me("Patches").N(n,r,o.u,o.s)}return n.o}function la(o,e,r,n,a,s,c){if(Se(a)){var d=er(o,a,s&&e&&e.i!==3&&!at(e.R,n)?s.concat(n):void 0);if(ga(r,n,d),!Se(d))return;o.m=!1}else c&&r.add(a);if(ue(a)&&!oo(a)){if(!o.h.D&&o._<1)return;er(o,a),e&&e.A.l||tr(o,a)}}function tr(o,e,r){r===void 0&&(r=!1),!o.l&&o.h.D&&o.m&&ro(e,r)}function Kr(o,e){var r=o[M];return(r?we(r):o)[e]}function da(o,e){if(e in o)for(var r=Object.getPrototypeOf(o);r;){var n=Object.getOwnPropertyDescriptor(r,e);if(n)return n;r=Object.getPrototypeOf(r)}}function Ie(o){o.P||(o.P=!0,o.l&&Ie(o.l))}function Zr(o){o.o||(o.o=to(o.t))}function Qr(o,e,r){var n=Jr(e)?me("MapSet").F(e,r):eo(e)?me("MapSet").T(e,r):o.O?function(a,s){var c=Array.isArray(a),d={i:c?1:0,A:s?s.A:qr(),P:!1,I:!1,R:{},l:s,t:a,k:null,o:null,j:null,C:!1},u=d,p=Nt;c&&(u=[d],p=Rt);var h=Proxy.revocable(u,p),g=h.revoke,m=h.proxy;return d.k=m,d.j=g,m}(e,r):me("ES5").J(e,r);return(r?r.A:qr()).p.push(n),n}function Es(o){return Se(o)||se(22,o),function e(r){if(!ue(r))return r;var n,a=r[M],s=st(r);if(a){if(!a.P&&(a.i<4||!me("ES5").K(a)))return a.t;a.I=!0,n=ua(r,s),a.I=!1}else n=ua(r,s);return He(n,function(c,d){a&&xs(a.t,c)===d||ga(n,c,e(d))}),s===3?new Set(n):n}(o)}function ua(o,e){switch(e){case 2:return new Map(o);case 3:return Array.from(o)}return to(o)}function ma(){function o(c,d){var u=s[c];return u?u.enumerable=d:s[c]=u={configurable:!0,enumerable:d,get:function(){var p=this[M];return Nt.get(p,c)},set:function(p){var h=this[M];Nt.set(h,c,p)}},u}function e(c){for(var d=c.length-1;d>=0;d--){var u=c[d][M];if(!u.P)switch(u.i){case 5:n(u)&&Ie(u);break;case 4:r(u)&&Ie(u)}}}function r(c){for(var d=c.t,u=c.k,p=it(u),h=p.length-1;h>=0;h--){var g=p[h];if(g!==M){var m=d[g];if(m===void 0&&!at(d,g))return!0;var v=u[g],b=v&&v[M];if(b?b.t!==m:!ya(v,m))return!0}}var O=!!d[M];return p.length!==it(d).length+(O?0:1)}function n(c){var d=c.k;if(d.length!==c.t.length)return!0;var u=Object.getOwnPropertyDescriptor(d,d.length-1);if(u&&!u.get)return!0;for(var p=0;p<d.length;p++)if(!d.hasOwnProperty(p))return!0;return!1}function a(c){c.g&&se(3,JSON.stringify(we(c)))}var s={};Cs("ES5",{J:function(c,d){var u=Array.isArray(c),p=function(g,m){if(g){for(var v=Array(m.length),b=0;b<m.length;b++)Object.defineProperty(v,""+b,o(b,!0));return v}var O=va(m);delete O[M];for(var w=it(O),I=0;I<w.length;I++){var T=w[I];O[T]=o(T,g||!!O[T].enumerable)}return Object.create(Object.getPrototypeOf(m),O)}(u,c),h={i:u?5:4,A:d?d.A:qr(),P:!1,I:!1,R:{},l:d,t:c,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,M,{value:h,writable:!0}),p},S:function(c,d,u){u?Se(d)&&d[M].A===c&&e(c.p):(c.u&&function p(h){if(h&&typeof h=="object"){var g=h[M];if(g){var m=g.t,v=g.k,b=g.R,O=g.i;if(O===4)He(v,function(N){N!==M&&(m[N]!==void 0||at(m,N)?b[N]||p(v[N]):(b[N]=!0,Ie(g)))}),He(m,function(N){v[N]!==void 0||at(v,N)||(b[N]=!1,Ie(g))});else if(O===5){if(n(g)&&(Ie(g),b.length=!0),v.length<m.length)for(var w=v.length;w<m.length;w++)b[w]=!1;else for(var I=m.length;I<v.length;I++)b[I]=!0;for(var T=Math.min(v.length,m.length),k=0;k<T;k++)v.hasOwnProperty(k)||(b[k]=!0),b[k]===void 0&&p(v[k])}}}}(c.p[0]),e(c.p))},K:function(c){return c.i===4?r(c):n(c)}})}var pa,_t,no=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",As=typeof Map<"u",ws=typeof Set<"u",fa=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",ba=no?Symbol.for("immer-nothing"):((pa={})["immer-nothing"]=!0,pa),ha=no?Symbol.for("immer-draftable"):"__$immer_draftable",M=no?Symbol.for("immer-state"):"__$immer_state";var Is=""+Object.prototype.constructor,it=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(o){return Object.getOwnPropertyNames(o).concat(Object.getOwnPropertySymbols(o))}:Object.getOwnPropertyNames,va=Object.getOwnPropertyDescriptors||function(o){var e={};return it(o).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(o,r)}),e},Xr={},Nt={get:function(o,e){if(e===M)return o;var r=we(o);if(!at(r,e))return function(a,s,c){var d,u=da(s,c);return u?"value"in u?u.value:(d=u.get)===null||d===void 0?void 0:d.call(a.k):void 0}(o,r,e);var n=r[e];return o.I||!ue(n)?n:n===Kr(o.t,e)?(Zr(o),o.o[e]=Qr(o.A.h,n,o)):n},has:function(o,e){return e in we(o)},ownKeys:function(o){return Reflect.ownKeys(we(o))},set:function(o,e,r){var n=da(we(o),e);if(n?.set)return n.set.call(o.k,r),!0;if(!o.P){var a=Kr(we(o),e),s=a?.[M];if(s&&s.t===r)return o.o[e]=r,o.R[e]=!1,!0;if(ya(r,a)&&(r!==void 0||at(o.t,e)))return!0;Zr(o),Ie(o)}return o.o[e]===r&&(r!==void 0||e in o.o)||Number.isNaN(r)&&Number.isNaN(o.o[e])||(o.o[e]=r,o.R[e]=!0),!0},deleteProperty:function(o,e){return Kr(o.t,e)!==void 0||e in o.t?(o.R[e]=!1,Zr(o),Ie(o)):delete o.R[e],o.o&&delete o.o[e],!0},getOwnPropertyDescriptor:function(o,e){var r=we(o),n=Reflect.getOwnPropertyDescriptor(r,e);return n&&{writable:!0,configurable:o.i!==1||e!=="length",enumerable:n.enumerable,value:r[e]}},defineProperty:function(){se(11)},getPrototypeOf:function(o){return Object.getPrototypeOf(o.t)},setPrototypeOf:function(){se(12)}},Rt={};He(Nt,function(o,e){Rt[o]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Rt.deleteProperty=function(o,e){return Rt.set.call(this,o,e,void 0)},Rt.set=function(o,e,r){return Nt.set.call(this,o[0],e,r,o[0])};var Ts=function(){function o(r){var n=this;this.O=fa,this.D=!0,this.produce=function(a,s,c){if(typeof a=="function"&&typeof s!="function"){var d=s;s=a;var u=n;return function(O){var w=this;O===void 0&&(O=d);for(var I=arguments.length,T=Array(I>1?I-1:0),k=1;k<I;k++)T[k-1]=arguments[k];return u.produce(O,function(N){var $;return($=s).call.apply($,[w,N].concat(T))})}}var p;if(typeof s!="function"&&se(6),c!==void 0&&typeof c!="function"&&se(7),ue(a)){var h=ca(n),g=Qr(n,a,void 0),m=!0;try{p=s(g),m=!1}finally{m?Jt(h):Yr(h)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(O){return jr(h,c),Vr(O,h)},function(O){throw Jt(h),O}):(jr(h,c),Vr(p,h))}if(!a||typeof a!="object"){if((p=s(a))===void 0&&(p=a),p===ba&&(p=void 0),n.D&&ro(p,!0),c){var v=[],b=[];me("Patches").M(a,p,v,b),c(v,b)}return p}se(21,a)},this.produceWithPatches=function(a,s){if(typeof a=="function")return function(p){for(var h=arguments.length,g=Array(h>1?h-1:0),m=1;m<h;m++)g[m-1]=arguments[m];return n.produceWithPatches(p,function(v){return a.apply(void 0,[v].concat(g))})};var c,d,u=n.produce(a,s,function(p,h){c=p,d=h});return typeof Promise<"u"&&u instanceof Promise?u.then(function(p){return[p,c,d]}):[u,c,d]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=o.prototype;return e.createDraft=function(r){ue(r)||se(8),Se(r)&&(r=Es(r));var n=ca(this),a=Qr(this,r,void 0);return a[M].C=!0,Yr(n),a},e.finishDraft=function(r,n){var a=r&&r[M],s=a.A;return jr(s,n),Vr(void 0,s)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!fa&&se(20),this.O=r},e.applyPatches=function(r,n){var a;for(a=n.length-1;a>=0;a--){var s=n[a];if(s.path.length===0&&s.op==="replace"){r=s.value;break}}a>-1&&(n=n.slice(a+1));var c=me("Patches").$;return Se(r)?c(r,n):this.produce(r,function(d){return c(d,n)})},o}(),re=new Ts,Rs=re.produce,Pl=re.produceWithPatches.bind(re),kl=re.setAutoFreeze.bind(re),Dl=re.setUseProxies.bind(re),Fl=re.applyPatches.bind(re),Ml=re.createDraft.bind(re),Ul=re.finishDraft.bind(re),rr=Rs;function ze(o){"@babel/helpers - typeof";return ze=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ze(o)}function xa(o,e){if(ze(o)!="object"||!o)return o;var r=o[Symbol.toPrimitive];if(r!==void 0){var n=r.call(o,e||"default");if(ze(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(o)}function Sa(o){var e=xa(o,"string");return ze(e)=="symbol"?e:e+""}function Ca(o,e,r){return(e=Sa(e))in o?Object.defineProperty(o,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):o[e]=r,o}function Oa(o,e){var r=Object.keys(o);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(o);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(o,a).enumerable})),r.push.apply(r,n)}return r}function ao(o){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Oa(Object(r),!0).forEach(function(n){Ca(o,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(r)):Oa(Object(r)).forEach(function(n){Object.defineProperty(o,n,Object.getOwnPropertyDescriptor(r,n))})}return o}function Y(o){return"Minified Redux error #"+o+"; visit https://redux.js.org/Errors?code="+o+" for the full message or use the non-minified dev environment for full errors. "}var Ea=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),io=function(){return Math.random().toString(36).substring(7).split("").join(".")},or={INIT:"@@redux/INIT"+io(),REPLACE:"@@redux/REPLACE"+io(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+io()}};function _s(o){if(typeof o!="object"||o===null)return!1;for(var e=o;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(o)===e}function so(o,e,r){var n;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Y(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Y(1));return r(so)(o,e)}if(typeof o!="function")throw new Error(Y(2));var a=o,s=e,c=[],d=c,u=!1;function p(){d===c&&(d=c.slice())}function h(){if(u)throw new Error(Y(3));return s}function g(O){if(typeof O!="function")throw new Error(Y(4));if(u)throw new Error(Y(5));var w=!0;return p(),d.push(O),function(){if(w){if(u)throw new Error(Y(6));w=!1,p();var T=d.indexOf(O);d.splice(T,1),c=null}}}function m(O){if(!_s(O))throw new Error(Y(7));if(typeof O.type>"u")throw new Error(Y(8));if(u)throw new Error(Y(9));try{u=!0,s=a(s,O)}finally{u=!1}for(var w=c=d,I=0;I<w.length;I++){var T=w[I];T()}return O}function v(O){if(typeof O!="function")throw new Error(Y(10));a=O,m({type:or.REPLACE})}function b(){var O,w=g;return O={subscribe:function(T){if(typeof T!="object"||T===null)throw new Error(Y(11));function k(){T.next&&T.next(h())}k();var N=w(k);return{unsubscribe:N}}},O[Ea]=function(){return this},O}return m({type:or.INIT}),n={dispatch:m,subscribe:g,getState:h,replaceReducer:v},n[Ea]=b,n}function Ns(o){Object.keys(o).forEach(function(e){var r=o[e],n=r(void 0,{type:or.INIT});if(typeof n>"u")throw new Error(Y(12));if(typeof r(void 0,{type:or.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Y(13))})}function Aa(o){for(var e=Object.keys(o),r={},n=0;n<e.length;n++){var a=e[n];typeof o[a]=="function"&&(r[a]=o[a])}var s=Object.keys(r),c,d;try{Ns(r)}catch(u){d=u}return function(p,h){if(p===void 0&&(p={}),d)throw d;if(0)var g;for(var m=!1,v={},b=0;b<s.length;b++){var O=s[b],w=r[O],I=p[O],T=w(I,h);if(typeof T>"u"){var k=h&&h.type;throw new Error(Y(14))}v[O]=T,m=m||T!==I}return m=m||s.length!==Object.keys(p).length,m?v:p}}function ct(){for(var o=arguments.length,e=new Array(o),r=0;r<o;r++)e[r]=arguments[r];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function wa(){for(var o=arguments.length,e=new Array(o),r=0;r<o;r++)e[r]=arguments[r];return function(n){return function(){var a=n.apply(void 0,arguments),s=function(){throw new Error(Y(15))},c={getState:a.getState,dispatch:function(){return s.apply(void 0,arguments)}},d=e.map(function(u){return u(c)});return s=ct.apply(void 0,d)(a.dispatch),ao(ao({},a),{},{dispatch:s})}}}function Ia(o){var e=function(n){var a=n.dispatch,s=n.getState;return function(c){return function(d){return typeof d=="function"?d(a,s,o):c(d)}}};return e}var Ta=Ia();Ta.withExtraArgument=Ia;var co=Ta;var Pa=function(){var o=function(e,r){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(n[s]=a[s])},o(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");o(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Ls=function(o,e){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,a,s,c;return c={next:d(0),throw:d(1),return:d(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function d(p){return function(h){return u([p,h])}}function u(p){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,a&&(s=p[0]&2?a.return:p[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,p[1])).done)return s;switch(a=0,s&&(p=[p[0]&2,s.value]),p[0]){case 0:case 1:s=p;break;case 4:return r.label++,{value:p[1],done:!1};case 5:r.label++,a=p[1],p=[0];continue;case 7:p=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(p[0]===6||p[0]===2)){r=0;continue}if(p[0]===3&&(!s||p[1]>s[0]&&p[1]<s[3])){r.label=p[1];break}if(p[0]===6&&r.label<s[1]){r.label=s[1],s=p;break}if(s&&r.label<s[2]){r.label=s[2],r.ops.push(p);break}s[2]&&r.ops.pop(),r.trys.pop();continue}p=e.call(o,r)}catch(h){p=[6,h],a=0}finally{n=s=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},lt=function(o,e){for(var r=0,n=e.length,a=o.length;r<n;r++,a++)o[a]=e[r];return o},Ps=Object.defineProperty,ks=Object.defineProperties,Ds=Object.getOwnPropertyDescriptors,Ra=Object.getOwnPropertySymbols,Fs=Object.prototype.hasOwnProperty,Ms=Object.prototype.propertyIsEnumerable,_a=function(o,e,r){return e in o?Ps(o,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[e]=r},Te=function(o,e){for(var r in e||(e={}))Fs.call(e,r)&&_a(o,r,e[r]);if(Ra)for(var n=0,a=Ra(e);n<a.length;n++){var r=a[n];Ms.call(e,r)&&_a(o,r,e[r])}return o},lo=function(o,e){return ks(o,Ds(e))},Us=function(o,e,r){return new Promise(function(n,a){var s=function(u){try{d(r.next(u))}catch(p){a(p)}},c=function(u){try{d(r.throw(u))}catch(p){a(p)}},d=function(u){return u.done?n(u.value):Promise.resolve(u.value).then(s,c)};d((r=r.apply(o,e)).next())})};var Bs=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ct:ct.apply(null,arguments)},rd=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(o){return o}};function Hs(o){if(typeof o!="object"||o===null)return!1;var e=Object.getPrototypeOf(o);if(e===null)return!0;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return e===r}var zs=function(o){Pa(e,o);function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var a=o.apply(this,r)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return o.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,lt([void 0],r[0].concat(this)))):new(e.bind.apply(e,lt([void 0],r.concat(this))))},e}(Array),Gs=function(o){Pa(e,o);function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var a=o.apply(this,r)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return o.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,lt([void 0],r[0].concat(this)))):new(e.bind.apply(e,lt([void 0],r.concat(this))))},e}(Array);function fo(o){return ue(o)?rr(o,function(){}):o}function Ws(o){return typeof o=="boolean"}function $s(){return function(e){return js(e)}}function js(o){o===void 0&&(o={});var e=o.thunk,r=e===void 0?!0:e,n=o.immutableCheck,a=n===void 0?!0:n,s=o.serializableCheck,c=s===void 0?!0:s,d=new zs;if(r&&(Ws(r)?d.push(co):d.push(co.withExtraArgument(r.extraArgument))),0){if(a)var u;if(c)var p}return d}var uo=!0;function ka(o){var e=$s(),r=o||{},n=r.reducer,a=n===void 0?void 0:n,s=r.middleware,c=s===void 0?e():s,d=r.devTools,u=d===void 0?!0:d,p=r.preloadedState,h=p===void 0?void 0:p,g=r.enhancers,m=g===void 0?void 0:g,v;if(typeof a=="function")v=a;else if(Hs(a))v=Aa(a);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var b=c;if(typeof b=="function"&&(b=b(e),!uo&&!Array.isArray(b)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!uo&&b.some(function(N){return typeof N!="function"}))throw new Error("each middleware provided to configureStore must be a function");var O=wa.apply(void 0,b),w=ct;u&&(w=Bs(Te({trace:!uo},typeof u=="object"&&u)));var I=new Gs(O),T=I;Array.isArray(m)?T=lt([O],m):typeof m=="function"&&(T=m(I));var k=w.apply(void 0,T);return so(v,h,k)}function Re(o,e){function r(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(e){var s=e.apply(void 0,n);if(!s)throw new Error("prepareAction did not return an object");return Te(Te({type:o,payload:s.payload},"meta"in s&&{meta:s.meta}),"error"in s&&{error:s.error})}return{type:o,payload:n[0]}}return r.toString=function(){return""+o},r.type=o,r.match=function(n){return n.type===o},r}function Da(o){var e={},r=[],n,a={addCase:function(s,c){var d=typeof s=="string"?s:s.type;if(d in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[d]=c,a},addMatcher:function(s,c){return r.push({matcher:s,reducer:c}),a},addDefaultCase:function(s){return n=s,a}};return o(a),[e,r,n]}function Vs(o){return typeof o=="function"}function Ks(o,e,r,n){r===void 0&&(r=[]);var a=typeof e=="function"?Da(e):[e,r,n],s=a[0],c=a[1],d=a[2],u;if(Vs(o))u=function(){return fo(o())};else{var p=fo(o);u=function(){return p}}function h(g,m){g===void 0&&(g=u());var v=lt([s[m.type]],c.filter(function(b){var O=b.matcher;return O(m)}).map(function(b){var O=b.reducer;return O}));return v.filter(function(b){return!!b}).length===0&&(v=[d]),v.reduce(function(b,O){if(O)if(Se(b)){var w=b,I=O(w,m);return I===void 0?b:I}else{if(ue(b))return rr(b,function(T){return O(T,m)});var I=O(b,m);if(I===void 0){if(b===null)return b;throw Error("A case reducer on a non-draftable value must not return undefined")}return I}return b},g)}return h.getInitialState=u,h}function Zs(o,e){return o+"/"+e}function Fa(o){var e=o.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof o.initialState=="function"?o.initialState:fo(o.initialState),n=o.reducers||{},a=Object.keys(n),s={},c={},d={};a.forEach(function(h){var g=n[h],m=Zs(e,h),v,b;"reducer"in g?(v=g.reducer,b=g.prepare):v=g,s[h]=v,c[m]=v,d[h]=b?Re(m,b):Re(m)});function u(){var h=typeof o.extraReducers=="function"?Da(o.extraReducers):[o.extraReducers],g=h[0],m=g===void 0?{}:g,v=h[1],b=v===void 0?[]:v,O=h[2],w=O===void 0?void 0:O,I=Te(Te({},m),c);return Ks(r,function(T){for(var k in I)T.addCase(k,I[k]);for(var N=0,$=b;N<$.length;N++){var de=$[N];T.addMatcher(de.matcher,de.reducer)}w&&T.addDefaultCase(w)})}var p;return{name:e,reducer:function(h,g){return p||(p=u()),p(h,g)},actions:d,caseReducers:s,getInitialState:function(){return p||(p=u()),p.getInitialState()}}}var qs="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Ys=function(o){o===void 0&&(o=21);for(var e="",r=o;r--;)e+=qs[Math.random()*64|0];return e},Qs=["name","message","stack","code"],po=function(){function o(e,r){this.payload=e,this.meta=r}return o}(),Na=function(){function o(e,r){this.payload=e,this.meta=r}return o}(),Xs=function(o){if(typeof o=="object"&&o!==null){for(var e={},r=0,n=Qs;r<n.length;r++){var a=n[r];typeof o[a]=="string"&&(e[a]=o[a])}return e}return{message:String(o)}},id=function(){function o(e,r,n){var a=Re(e+"/fulfilled",function(h,g,m,v){return{payload:h,meta:lo(Te({},v||{}),{arg:m,requestId:g,requestStatus:"fulfilled"})}}),s=Re(e+"/pending",function(h,g,m){return{payload:void 0,meta:lo(Te({},m||{}),{arg:g,requestId:h,requestStatus:"pending"})}}),c=Re(e+"/rejected",function(h,g,m,v,b){return{payload:v,error:(n&&n.serializeError||Xs)(h||"Rejected"),meta:lo(Te({},b||{}),{arg:m,requestId:g,rejectedWithValue:!!v,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),d=!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(g,m,v){var b=n?.idGenerator?n.idGenerator(h):Ys(),O=new u,w,I=!1;function T(N){w=N,O.abort()}var k=function(){return Us(this,null,function(){var N,$,de,Pe,X,ke,Qe;return Ls(this,function(f){switch(f.label){case 0:return f.trys.push([0,4,,5]),Pe=(N=n?.condition)==null?void 0:N.call(n,h,{getState:m,extra:v}),ec(Pe)?[4,Pe]:[3,2];case 1:Pe=f.sent(),f.label=2;case 2:if(Pe===!1||O.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return I=!0,X=new Promise(function(y,A){return O.signal.addEventListener("abort",function(){return A({name:"AbortError",message:w||"Aborted"})})}),g(s(b,h,($=n?.getPendingMeta)==null?void 0:$.call(n,{requestId:b,arg:h},{getState:m,extra:v}))),[4,Promise.race([X,Promise.resolve(r(h,{dispatch:g,getState:m,extra:v,requestId:b,signal:O.signal,abort:T,rejectWithValue:function(y,A){return new po(y,A)},fulfillWithValue:function(y,A){return new Na(y,A)}})).then(function(y){if(y instanceof po)throw y;return y instanceof Na?a(y.payload,b,h,y.meta):a(y,b,h)})])];case 3:return de=f.sent(),[3,5];case 4:return ke=f.sent(),de=ke instanceof po?c(null,b,h,ke.payload,ke.meta):c(ke,b,h),[3,5];case 5:return Qe=n&&!n.dispatchConditionRejection&&c.match(de)&&de.meta.condition,Qe||g(de),[2,de]}})})}();return Object.assign(k,{abort:T,requestId:b,arg:h,unwrap:function(){return k.then(Js)}})}}return Object.assign(p,{pending:s,rejected:c,fulfilled:a,typePrefix:e})}return o.withTypes=function(){return o},o}();function Js(o){if(o.meta&&o.meta.rejectedWithValue)throw o.payload;if(o.error)throw o.error;return o.payload}function ec(o){return o!==null&&typeof o=="object"&&typeof o.then=="function"}var Ma="listener",Ua="completed",Ba="cancelled",sd="task-"+Ba,cd="task-"+Ua,ld=Ma+"-"+Ba,dd=Ma+"-"+Ua;var ho="listenerMiddleware";var ud=Re(ho+"/add"),pd=Re(ho+"/removeAll"),fd=Re(ho+"/remove");var La,hd=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(o){return(La||(La=Promise.resolve())).then(o).catch(function(e){return setTimeout(function(){throw e},0)})},tc=function(o){return function(e){setTimeout(e,o)}},gd=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:tc(10);ma();var rc=Kt(Symbol("withEventBus"),function(o,e){return class extends o{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,n,a){this.eventBus.addEventListener(r,n,a)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,n,a){this.eventBus.removeEventListener(r,n,a)}}}),nr=class extends rc(Object){};window.ftReduxStores||(window.ftReduxStores={});var Ha=class o extends nr{static get(e){var r;let n=typeof e=="string"?e:e.name,a=typeof e=="string"?void 0:e,s=window.ftReduxStores[n];if(Xt(s))return s;if(a==null)return;let c=Fa({...a,reducers:(r=a.reducers)!==null&&r!==void 0?r:{}}),d=ka({reducer:(u,p)=>{if(p.type==="CLEAR_FT_REDUX_STORE"){let h=qn(c.getInitialState());for(let g of p.keeping)h[g]=(u??h)[g];return h}else if(typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...u,...p.overwrites};return c.reducer(u,p)}});return window.ftReduxStores[a.name]=new o(c,d,a.eventBus)}constructor(e,r,n){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new Zt;let a=s=>s!=null?JSON.parse(JSON.stringify(s)):s;this.actions=new Proxy(this.reduxSlice.actions,{get:(s,c,d)=>{let u=c,p=s[u];return p?(...h)=>{let g=p(...h.map(a));return this.reduxStore.dispatch(g),g}:h=>{this.setState({[u]:a(h)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var ar=class{static format(e,r,n,a){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(n,a)):this.getIntlDateTime(e,r,n,a)}static getMomentDateFormat(e,r){return e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,n,a){let s=typeof e=="string"?new Date(e):e,c=new Intl.DateTimeFormat(r,{dateStyle:n?"medium":"short"}).format(s);if(!a)return c;let d=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(s);return`${c} ${d}`}static getTimezoneAsString(){let e=n=>String(Math.floor(n)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var ir=C(_()),oc="ft-app-info",be=class o extends CustomEvent{constructor(e){super(o.eventName,{detail:e})}};be.eventName="authentication-change";var nc={session:(o,e)=>{(0,ir.deepEqual)(o.session,e.payload)||(o.session=e.payload,setTimeout(()=>S.dispatchEvent(new be(e.payload)),0))}},S=ir.FtReduxStore.get({name:oc,reducers:nc,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],availableContentLocales:[],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,authenticationRequired:!1}});var za=C(_()),sr=function(o,e,r,n){var a=arguments.length,s=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,r,n);else for(var d=o.length-1;d>=0;d--)(c=o[d])&&(s=(a<3?c(s):a>3?c(e,r,s):c(e,r))||s);return a>3&&s&&Object.defineProperty(e,r,s),s},Wd=(0,za.applyMixinOnce)(Symbol("withDateFormat"),function(o){class e extends o{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(S)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var a,s;return((s=(a=this.metadataDescriptors.find(d=>d.key===n))===null||a===void 0?void 0:a.date)!==null&&s!==void 0?s:!1)?d=>ar.format(d,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return sr([(0,go.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),sr([(0,go.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),sr([$r({store:S.name,selector:r=>{var n,a;return(a=(n=r.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&a!==void 0?a:[]}})],e.prototype,"metadataDescriptors",void 0),sr([$r({store:S.name})],e.prototype,"uiLocale",void 0),e});var fr=C(_());var yo=C(_());var Ge=class o{static get(e){let{baseUrl:r,apiIntegrationIdentifier:n}=S.getState(),a=e??n;if(r&&a&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,a,!0)}static await(e){return new Promise(r=>{let n=o.get(e);if(n)r(n);else{let a=S.subscribe(()=>{n=o.get(e),n&&(a(),r(n))})}})}};var cr=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Ge.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Ge.await()}};var Q=class extends cr{constructor(e=!0,r){var n;super(r),this.sortObjectFields=(s,c)=>typeof c!="object"||c==null||Array.isArray(c)?c:Object.fromEntries(Object.entries(c).sort(([d],[u])=>d.localeCompare(u)));let a=this.constructor;a.commonCache=(n=a.commonCache)!==null&&n!==void 0?n:new yo.CacheRegistry,this.cache=e?a.commonCache:new yo.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,n)=>0|31*r+n.charCodeAt(0),0))}};var lr=class extends Q{async listMySearches(){let{session:e}=S.getState();return xe(e,P.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var dr=class extends Q{async listMyBookmarks(){let e=S.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var ur=class extends Q{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=S.getState().session;return!!e?.sessionAuthenticated}};var pr=class extends Q{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=S.getState().session;return!!e?.sessionAuthenticated}};var ac="ft-user-assets",ic={setAssetCount:(o,e)=>{let{userAssetType:r,count:n}=e.payload.assetCount;o.assetCounts.allAsset[r]=n},clearAssetCount:o=>{Object.values(ie).forEach(e=>{o.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(o,e)=>{let r=e.payload.mapId;o.assetCounts.bookmarkByMap[r]=e.payload.count},clearBookmarkCountByMap:o=>{o.assetCounts.bookmarkByMap={}},addAsset:(o,e)=>{let{assetType:r,mapId:n,asset:a}=e.payload;bo(o,r,[...mo(o,r),a]),Ga(o,r,1,n),Wa(o,a)},editAsset:(o,e)=>{let{assetType:r,asset:n}=e.payload;bo(o,r,mo(o,r).map(a=>a.id===n.id?n:a)),Wa(o,n)},removeAsset:(o,e)=>{let{assetType:r,mapId:n,assetId:a}=e.payload;bo(o,r,mo(o,r).filter(s=>s.id!==a)),Ga(o,r,-1,n)}},$a={[ie.SEARCHES]:"savedSearches",[ie.BOOKMARKS]:"bookmarks",[ie.BOOKS]:void 0,[ie.COLLECTIONS]:void 0},mo=(o,e)=>{var r;let n=$a[e];return n?(r=o[n])!==null&&r!==void 0?r:[]:[]},bo=(o,e,r)=>{let n=$a[e];n&&(o[n]=r)},Ga=(o,e,r,n)=>{let a=o.assetCounts.allAsset[e];if(a!==void 0&&(o.assetCounts.allAsset[e]=Math.max(0,a+r),e===ie.BOOKMARKS&&n)){let s=o.assetCounts.bookmarkByMap[n];o.assetCounts.bookmarkByMap[n]=Math.max(0,s+r)}},Wa=(o,e)=>{let r=o.assetLabels.map(a=>a.title),n=e.labels.filter(a=>!r.includes(a)).map(a=>({title:a}));o.assetLabels.push(...n)},oe=fr.FtReduxStore.get({name:ac,reducers:ic,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(ie).map(o=>[o,void 0])),bookmarkByMap:{}},assetLabels:[]}}),vo=class{constructor(e=new ur,r=new pr){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=S.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new dr,this.savedSearchesService=new lr,S.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=S.getState();(0,fr.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),oe.actions.clearAssetCount(),oe.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),oe.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),oe.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();oe.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();oe.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&oe.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&oe.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(oe.getState().assetCounts.bookmarkByMap).length!==0;e===ie.BOOKMARKS&&r&&oe.actions.clearBookmarkCountByMap(),oe.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let r=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;oe.actions.bookmarks(r)}}},xo=new vo;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=xo);var So=class{addCommand(e,r=!1){S.commands.add(e,r)}consumeCommand(e){return S.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new So;var ce=C(_());var ja,dt=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},sc=Symbol("clearAfterUnitTest"),hr=class extends(0,ce.withEventBus)(Q){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[ja]=()=>{this.defaultMessages={},this.cache=new ce.CacheRegistry,this.listeners={}},this.currentUiLocale=S.getState().uiLocale,S.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=S.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var n;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let a={...(n=this.defaultMessages[e])!==null&&n!==void 0?n:{},...r};(0,ce.deepEqual)(this.defaultMessages[e],a)||(this.defaultMessages[e]=a,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,n;return this.fetchContext(e),(n=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(e,r){let n=e.toLowerCase();return this.resolveContext(n)[r]}resolveMessage(e,r,...n){var a;let s=e.toLowerCase(),c=this.resolveContext(s);return new ce.ParametrizedLabelResolver((a=this.defaultMessages[s])!==null&&a!==void 0?a:{},c).resolve(r,...n)}async fetchContext(e){let r=!this.cache.has(e),n;try{n=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(a){!(a instanceof ce.CanceledPromiseError)&&r&&console.error(a)}return n}subscribe(e,r){var n;return e=e.toLowerCase(),this.listeners[e]=(n=this.listeners[e])!==null&&n!==void 0?n:new Set,this.listeners[e].add(r),()=>{var a;return(a=this.listeners[e])===null||a===void 0?void 0:a.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new dt({loadedContexts:e})),this.dispatchEvent(new dt({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new dt({loadedContexts:[e]})),this.dispatchEvent(new dt({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(n=>(0,ce.delay)(0).then(()=>n()).catch(()=>null)))}};ja=sc;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends hr{constructor(){super(async(o,e)=>(await this.awaitApi).getFluidTopicsMessageContext(o,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends hr{constructor(){super(async(o,e)=>(await this.awaitApi).getCustomMessageContext(o,e))}});var Va=window.FluidTopicsI18nService,Eu=window.FluidTopicsCustomI18nService;var Ka=C(_()),Co=class{highlightHtml(e,r,n){(0,Ka.highlightHtml)(e,r,n)}};window.FluidTopicsHighlightHtmlService=new Co;var Za=C(_());var Oo=class{isDate(e){var r,n,a,s;return(s=(a=((n=(r=S.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(d=>d.key===e))===null||a===void 0?void 0:a.date)!==null&&s!==void 0?s:!1}format(e,r){var n,a,s;if(e==null)return"";try{return Za.DateFormatter.format(e,(n=r?.locale)!==null&&n!==void 0?n:S.getState().uiLocale,(a=r?.longFormat)!==null&&a!==void 0?a:!1,(s=r?.withTime)!==null&&s!==void 0?s:!1)}catch(c){throw console.error(`Date ${JSON.stringify(e)} is not valid`,c),c}}};window.FluidTopicsDateService=new Oo;var qa=C(_());var Lt=class{static get(e,r){var n,a;let s=S.getState(),{lang:c,region:d}=(a=(n=s.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&a!==void 0?a:{lang:"en",region:"US"};return new qa.SearchPlaceConverter(s.baseUrl,e??20,s.searchInAllLanguagesAllowed,r??`${c}-${d}`)}};var Eo=class{urlToSearchRequest(e){return Lt.get().parse(e)}searchRequestToUrl(e){return Lt.get().serialize(e)}};window.FluidTopicsUrlService=new Eo;var _e=C(_());var We=class o extends CustomEvent{constructor(e){super(o.eventName,{detail:{currentItem:e}})}};We.eventName="change";var Ao=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let r=sessionStorage.getItem(this.itemName(e));return r?JSON.parse(r):void 0}set(e,r){sessionStorage.setItem(this.itemName(e),JSON.stringify(r))}},Ya=new Ao;var gr=class o extends _e.WithEventBus{static build(){return new o(window.history,Ya,()=>window.location,!1)}constructor(e,r,n,a){var s,c;super(),this.history=e,this.historyStorage=r,this.windowLocation=n,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(c=(s=e.state)===null||s===void 0?void 0:s.index)!==null&&c!==void 0?c:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(a)}setCurrentState(e,r=!1){let n=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,_e.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new We(this.currentItem())),0)}installProxies(){let e=r=>(n,a,[s,c,d])=>{let u=r(),p={...u===this.currentIndex?this.currentState:void 0,...s,index:u,href:typeof d=="string"?d:(d??this.windowLocation()).href};n.apply(a,[p,c,d]),this.setCurrentState(p,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e){var r;let n={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(e){this.addEventListener(We.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(We.eventName,e)}currentItem(){return(0,_e.deepCopy)(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,_e.deepCopy)(this.states[this.previousDifferentMajorPosition()])}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return(0,_e.deepCopy)(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var r;let n=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!n)return e;let a=e,s=e+1;for(;this.states.length>s&&!this.isDifferentMajorState(s,n);)this.hasState(s)&&(a=s),s++;return a}buildCurrentState(){var e,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,r){var n;if(!this.hasState(e))return!1;let a=r??this.currentState.majorStateId,s=(n=this.states[e])===null||n===void 0?void 0:n.majorStateId;return s==null||s!=a}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=gr.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:o=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(o),removeHistoryChangeListener:o=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(o)});var Qa=C(V());var Xa=Qa.css`
50
+ `;var ei=C(V()),Z=C(J()),pe=C(_());function Ja(o,e){let{authenticationRequired:r,session:n}=S.getState();return r&&!n?.sessionAuthenticated?Promise.resolve(e):o()}var H=function(o,e,r,n){var a=arguments.length,s=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,r,n);else for(var d=o.length-1;d>=0;d--)(c=o[d])&&(s=(a<3?c(s):a>3?c(e,r,s):c(e,r))||s);return a>3&&s&&Object.defineProperty(e,r,s),s},D=class extends pe.FtLitElement{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",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=()=>Ge.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new pe.CacheRegistry,this.cleanSessionDebouncer=new pe.Debouncer,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return ei.html`
51
51
  <slot></slot>
52
- `}connectedCallback(){super.connectedCallback(),S.addEventListener(be.eventName,this.reloadConfiguration)}disconnectedCallback(){S.addEventListener(be.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(e){var r,n,a,s,c,d,u;super.update(e),e.has("baseUrl")&&(S.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&S.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&S.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&S.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&S.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&S.actions.noCustom(this.noCustom),e.has("editorMode")&&S.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&S.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&S.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(p=>Wa.addContext(p)),e.has("openExternalDocumentInNewTab")&&S.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&S.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&S.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(S.actions.defaultLocales((r=this.localesConfiguration)===null||r===void 0?void 0:r.defaultLocales),S.actions.availableUiLocales((a=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&a!==void 0?a:[]),S.actions.searchInAllLanguagesAllowed((c=(s=this.localesConfiguration)===null||s===void 0?void 0:s.allLanguagesAllowed)!==null&&c!==void 0?c:!1)),e.has("authenticationRequired")&&S.actions.authenticationRequired(this.authenticationRequired),e.has("availableContentLocales")&&S.actions.availableContentLocales((u=(d=this.availableContentLocales)===null||d===void 0?void 0:d.contentLocales)!==null&&u!==void 0?u:[]),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration(),this.availableContentLocales==null&&this.updateAvailableContentLocales())}async updateSession(){this.session=await this.cache.get("session",async()=>{let e=await this.apiProvider().getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},e.idleTimeoutInMillis),e})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}async updateAvailableContentLocales(){this.availableContentLocales=await this.cache.get("availableContentLocales",()=>Ya(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};D.elementDefinitions={};D.styles=qa;H([(0,Z.property)()],D.prototype,"baseUrl",void 0);H([(0,Z.property)()],D.prototype,"apiIntegrationIdentifier",void 0);H([(0,Z.property)()],D.prototype,"apiIntegrationAppVersion",void 0);H([(0,Z.property)()],D.prototype,"uiLocale",void 0);H([(0,pe.jsonProperty)(null)],D.prototype,"availableUiLocales",void 0);H([(0,pe.jsonProperty)(null)],D.prototype,"metadataConfiguration",void 0);H([(0,Z.property)({type:Boolean})],D.prototype,"editorMode",void 0);H([(0,Z.property)({type:Boolean})],D.prototype,"noCustom",void 0);H([(0,Z.property)({type:Boolean})],D.prototype,"openExternalDocumentInNewTab",void 0);H([(0,Z.property)({converter:{fromAttribute(o){return o==="false"?!1:o==="true"||(o??!1)}}})],D.prototype,"noCustomComponent",void 0);H([(0,Z.property)({type:Boolean})],D.prototype,"withManualResources",void 0);H([(0,Z.property)({type:Boolean})],D.prototype,"navigatorOnline",void 0);H([(0,Z.property)({type:Boolean})],D.prototype,"forcedOffline",void 0);H([(0,Z.property)({type:Object})],D.prototype,"apiProvider",void 0);H([(0,Z.property)({type:Boolean})],D.prototype,"authenticationRequired",void 0);H([(0,pe.jsonProperty)([])],D.prototype,"messageContexts",void 0);H([(0,pe.jsonProperty)(void 0)],D.prototype,"session",void 0);H([(0,Z.state)()],D.prototype,"localesConfiguration",void 0);H([(0,Z.state)()],D.prototype,"availableContentLocales",void 0);var Xa=C(_());(0,Xa.customElement)("ft-app-context")(D);var yr=class extends Q{get mapId(){return this._mapId}set mapId(e){e!==this._mapId&&this.clear(),this._mapId=e}constructor(e,r,n){super(!1,r),this.converter=e,this._mapId=n,this.initCache()}async withMapId(e){return this._mapId?e(this._mapId):void 0}initCache(){this.cache.register("configuration",()=>this.api.getReaderConfiguration()),this.cache.register("map",()=>this.withMapId(e=>this.fetchMap(e))),this.cache.register("enrichedToc",()=>this.withMapId(e=>this.fetchPages(e).then(r=>this.converter.convertPaginatedToc(e,r)))),this.cache.register("ratingSummary",()=>{var e,r;return xe((r=(e=S.getState().session)===null||e===void 0?void 0:e.profile.roles)!==null&&r!==void 0?r:[],"RATING_USER")?this.withMapId(a=>this.fetchMapRating(a)):Promise.resolve()})}clear(){this.cache.clearMatching(e=>e!=="configuration")}makeCacheKey(e,r){return e+(r?"-destinationLanguage-"+r?.destinationLanguage:"")}getMap(e){return this.cache.get(this.makeCacheKey("map",e),()=>this.fetchMap(this.mapId,e))}getMapNow(e){return this.cache.getNow(this.makeCacheKey("map",e))}getConfiguration(){return this.cache.get("configuration")}clearConfiguration(){this.cache.clear("configuration")}getEnrichedToc(e){return this.cache.get(this.makeCacheKey("enrichedToc",e),()=>this.fetchPages(this.mapId,e).then(r=>this.converter.convertPaginatedToc(this.mapId,r)))}getEnrichedTocNow(e){return this.cache.getNow(this.makeCacheKey("enrichedToc",e))}async getPaginationConfiguration(){return(await this.getEnrichedToc()).paginationConfiguration}async getToc(e){return(await this.getEnrichedToc(e)).toc}async getPagesToc(e){return(await this.getEnrichedToc(e)).pagesToc}async getTranslationError(e){return(await this.getEnrichedToc(e)).translationError}async getTocNode(e,r){return(await this.getEnrichedToc(r)).nodeByTocId[e]}getTocNodeNow(e,r){var n;return(n=this.getEnrichedTocNow(r))===null||n===void 0?void 0:n.nodeByTocId[e]}getTocNodeNowByUrl(e,r){var n,a;let s=this.getMapNow(r);return s?.prettyUrl==e||`${s?.id}/root`===e?(n=this.getEnrichedTocNow(r))===null||n===void 0?void 0:n.toc[0]:(a=this.getEnrichedTocNow(r))===null||a===void 0?void 0:a.nodeByUrl[e]}async getPage(e,r){let n=await this.getEnrichedToc(r);return n.pages[e-1]||n.pages[0]}async getPageByTocId(e,r){let n=await this.getEnrichedToc(r);return n.pageByTocId[e]||n.pages[0]}getTopicInfo(e){return this.cache.get("topic-"+e.tocId,()=>this.fetchTopicMetadata(e))}getTopicContent(e){return this.cache.get("topic-content-"+e.tocId,()=>this.fetchTopicHTMLContent(e))}getTranslatedTopicContent(e,r){return this.cache.get(this.makeCacheKey("translated-topic-content-"+e.tocId,r),()=>this.fetchTranslatedTopicHTMLContent(e,r))}getAttachments(){return this.cache.get("map-attachments",()=>this.fetchAttachments())}clearMapAttachments(){this.cache.clear("map-attachments")}getRelativesForDocument(e,r){return this.cache.get("document-relatives-"+e+"-"+r.join("-"),()=>this.fetchRelativesForDocument(e,r))}getRelativesForTopicInMap(e,r,n){return this.cache.get("topic-relatives-"+[e,r,...n].join("-"),()=>this.fetchRelativesForTopicInMap(e,r,n))}getAttachmentDownloadLink(e){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(e).content}?download=true&locationValue=reader`)}getLink(e,r,n){let a=this.getNavigationData(e,r,n),s=this.getReaderLinkPrefix()+(a.prettyUrl?a.prettyUrl:`${a.mapId}/${a.tocId}`),c=new URL(s,this.api.tenantBaseUrl);return a.page!=null&&c.searchParams.set("page",`${a.page}`),a.prettyUrlDuplicated&&c.searchParams.set("tocId",a.tocId),a.section!=null&&c.searchParams.set("section",a.section),c.href}getNavigationData(e,r,n,a){var s,c;e=e||"root";let d=this.getEnrichedTocNow(a),u=d?.pageByTocId[e],p=d?.nodeByTocId[e],h=p?.prettyUrl;return{mapId:this.mapId,tocId:e,topicTitle:(s=p?.title)!==null&&s!==void 0?s:"",untranslatedTopicTitle:p?.untranslatedTitle,page:r&&u&&u.number!==r?r:void 0,prettyUrl:h?.replace(/^r\//,""),prettyUrlDuplicated:(c=d?.duplicatedPrettyUrls.has(h??""))!==null&&c!==void 0?c:!1,section:n}}async getAccurateNavigationData(e,r,n,a){return await this.getEnrichedToc(a),this.getNavigationData(e,r,n,a)}getRatingSummary(){return this.cache.get("ratingSummary")}reloadRating(){return this.cache.clear("ratingSummary"),this.getRatingSummary()}getMapRating(){return this.getRatingSummary().then(e=>e?.publication)}getTopicRating(e){return this.getRatingSummary().then(r=>{var n;return r?{type:r.topics.type,rating:(n=r.topics)===null||n===void 0?void 0:n.ratings.find(a=>a.tocId===e)}:void 0})}rateMap(e,r){return this.makeRateMapRequest(e,r).then(()=>this.clearRatingIfNecessary())}unrateMap(){return this.makeUnrateMapRequest().then(()=>this.clearRatingIfNecessary())}sendMapFeedback(e,r){return this.makeMapFeedbackRequest(e,r)}rateTopic(e,r,n){return this.makeRateTopicRequest(e,r,n).then(()=>this.clearRatingIfNecessary())}unrateTopic(e){return this.makeUnrateTopicRequest(e).then(()=>this.clearRatingIfNecessary())}async clearRatingIfNecessary(){let e=S.getState().session;e?.sessionAuthenticated&&this.cache.clear("ratingSummary")}sendTopicFeedback(e,r,n){return this.makeTopicFeedbackRequest(e,r,n)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(e,r){let n=this.getTocNodeNow(e,r),a=[{tocId:n.tocId,title:n.title,untranslatedTitle:n.untranslatedTitle}],s=this.getTocNodeNow(n.parentTocId,r);for(;s;)a.unshift({tocId:s.tocId,title:s.title,untranslatedTitle:s.untranslatedTitle}),s=this.getTocNodeNow(s.parentTocId,r);return a}isFeatureAccessible(e,{session:r}){var n;if(!this.isFeatureAvailable(e))return!1;switch(e){case ve.FEEDBACK:return xe(r??[],k.FEEDBACK_USER);case ve.RATING:return xe(r??[],k.RATING_USER);case ve.PRINT:return xe(r??[],k.PRINT_USER);case ve.BOOKMARK:return!!r?.sessionAuthenticated;case ve.COLLECTIONS:return xe(r??[],k.COLLECTION_USER);case ve.PERSONAL_BOOKS:return xe(r??[],k.PERSONAL_BOOK_USER)&&!(!((n=this.getMapNow())===null||n===void 0)&&n.pbkConfidential);default:return!1}}makeAbsolute(e){return this.api.makeAbsolute(e)}};var mr=class o extends yr{static async build(e){return new o(new Wt,void 0,e)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(e,r){let n=await this.api.getMap(e,r);return this.fingerprint=n.fingerprint,n}fetchMapRating(e){return this.api.getMapRating(e)}async fetchPages(e,r){return await this.getMap(r),this.api.getPages(e,this.fingerprint,r)}fetchTopicHTMLContent(e){return this.api.getTopicHTMLContent(this.mapId,e.contentId,"DESIGNED_READER",this.fingerprint)}fetchTranslatedTopicHTMLContent(e,r){return this.api.getTranslatedTopicHTMLContent(this.mapId,e.contentId,"DESIGNED_READER",this.fingerprint,r)}fetchTopicMetadata(e){return this.api.getTopic(this.mapId,e.contentId,this.fingerprint)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch(()=>[])}fetchRelativesForDocument(e,r){let n={query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",metadataFilters:[{key:e,valueFilter:{negative:!1,values:r}}],sort:[],facets:[]};return this.api.search(n)}fetchRelativesForTopicInMap(e,r,n){let a={query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",metadataFilters:[{key:r,valueFilter:{negative:!1,values:n}},{key:"ft:publicationId",valueFilter:{negative:!1,values:[e]}}],sort:[],facets:[]};return this.api.search(a)}makeMapFeedbackRequest(e,r){return this.api.sendMapFeedback(this.mapId,e,r)}makeRateMapRequest(e,r){return this.api.rateMap(this.mapId,e,r)}makeRateTopicRequest(e,r,n){return this.api.rateTopic(this.mapId,e,r,n)}makeTopicFeedbackRequest(e,r,n){return this.api.sendTopicFeedback(this.mapId,e,r,n)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(e){return this.api.unrateTopic(this.mapId,e)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(e){return!0}};var br=class o{static build(e,r){return new o(un(e.trim()||"context"),r??mr.build)}loaded(){return(0,fe.waitUntil)(()=>this._loaded)}constructor(e,r,n){this.store=e,this.clusteringHelperProvider=n,this.metadataForSwitchToRelatives=new Set,this._loaded=!1,this.loadDebouncer=new fe.Debouncer(10),this.initService(r)}async initService(e){return this.service=await e(),this.service.mapId=this.store.getState().mapId,this.reload()}async setMapId(e){e!==this.store.getState().mapId&&(this.store.actions.mapId(e),this.service&&(this.service.mapId=e),await this.reload())}setRenderedTopics(e){this.store.actions.renderedTopics(e)}setVisibleTopics(e){this.store.actions.visibleTopics(e)}async awaitService(){return(0,fe.waitFor)(()=>this.service)}async navigateToTopic(e,r,n){await this.loaded();let a=await this.awaitService(),s=await(n!=null?a.getPage(n,this.getTranslationSettings()):a.getPageByTocId(e??"root",this.getTranslationSettings()));this.store.actions.currentPage(s);let c=this.resolveValidNonRootTocId(e,s);this.store.actions.scrollTarget({tocId:c,section:r}),this.store.getState().visibleTopics[0]!==c&&this.store.actions.visibleTopics([])}resolveValidNonRootTocId(e,r){var n,a,s;let c=(n=e==="root"?void 0:e)!==null&&n!==void 0?n:r.rootTocId;return r.topics.includes(c)?c:(s=(a=r.topics[0])!==null&&a!==void 0?a:r.hiddenTopics[0])!==null&&s!==void 0?s:"root"}async navigateToPage(e){await this.loaded();let n=await(await this.awaitService()).getPage(e,this.getTranslationSettings());this.store.actions.currentPage(n)}scrollDone(){this.store.actions.scrollTarget({})}async load(){var e;!((e=this.service)===null||e===void 0)&&e.mapId&&this.store.getState().map==null&&await this.loadDebouncer.run(()=>this.fetchData(this.getTranslationSettings()))}clear(){var e;this._loaded=!1,this.store.actions.configuration(void 0),this.store.actions.map(void 0),this.store.actions.toc(void 0),this.store.actions.pagesToc(void 0),this.store.actions.currentPage(void 0),this.store.actions.searchInDocumentQuery(""),this.store.actions.relatives(void 0),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),(e=this.service)===null||e===void 0||e.clear(),this.clusteringHelper=void 0}reload(){return this.clear(),this.load()}async fetchData(e){var r,n,a,s,c;try{e&&this.setTranslationLoading(!0);let d=u=>{throw e&&this.setTranslationError(!0),u};await Promise.all([this.loadConfiguration(),(r=this.service)===null||r===void 0?void 0:r.getMap(e).then(u=>this.store.actions.map(u)).catch(d),(n=this.service)===null||n===void 0?void 0:n.getToc(e).then(u=>this.store.actions.toc(u)).catch(d),(a=this.service)===null||a===void 0?void 0:a.getPagesToc(e).then(u=>this.store.actions.pagesToc(u)).catch(d),(s=this.service)===null||s===void 0?void 0:s.getPaginationConfiguration().then(u=>this.store.actions.paginationConfiguration(u)).catch(d),(c=this.service)===null||c===void 0?void 0:c.getTranslationError(e).then(u=>this.setTranslationError(u))]),this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives(),this._loaded=!0,e&&this.setTranslationLoading(!1)}catch(d){this.errorHandler&&!(d instanceof fe.CanceledPromiseError)&&this.errorHandler(d)}}loadConfiguration(){var e;return(e=this.service)===null||e===void 0?void 0:e.getConfiguration().then(r=>this.store.actions.configuration(r))}reloadConfiguration(){var e;return(e=this.service)===null||e===void 0||e.clearConfiguration(),this.loadConfiguration()}fetchRelatives(){var e,r;let n=(e=this.store.getState().map)===null||e===void 0?void 0:e.metadata.filter(a=>{var s;return a.key==((s=this.store.getState().configuration)===null||s===void 0?void 0:s.relativePivotMetadata)}).flatMap(a=>a.values);n!==void 0&&n.length>0?(r=this.service)===null||r===void 0||r.getRelativesForDocument(this.store.getState().configuration.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(Fe.clusteringHelperCreated))}createClusteringHelper(){var e,r;if(this.clusteringHelperProvider)return this.clusteringHelperProvider();let n=this.store.getState().relatives;if(n){let a=n.find(c=>{var d;return((d=c.map)===null||d===void 0?void 0:d.mapId)==this.store.getState().mapId}),s=(r=(e=S.getState().metadataConfiguration)===null||e===void 0?void 0:e.descriptors)!==null&&r!==void 0?r:[];return new fe.ClusteringHelper(n,a,this.metadataForSwitchToRelatives,s)}}async navigateToRelativeTopicIfFound(e){var r,n,a;await this.loaded();let s=await(0,fe.waitFor)(()=>{var p;return(p=this.store.getState().configuration)===null||p===void 0?void 0:p.relativeTopicPivotMetadata}),c=this.store.getState().mapId,u=await(await this.awaitService()).getRelativesForTopicInMap(c,s,[e]);if(!((a=(n=(r=u?.results)===null||r===void 0?void 0:r[0])===null||n===void 0?void 0:n.entries)===null||a===void 0)&&a[0]){let p=u.results[0].entries[0].topic.tocId;return await this.navigateToTopic(p),!0}else return await this.navigateToTopic("root"),!1}setSearchInDocumentQuery(e){this.store.actions.searchInDocumentQuery(e)}async setTranslationDestinationLanguage(e){this.store.actions.setTranslationDestinationLanguage(e),await this.loadDebouncer.run(()=>this.fetchData(this.getTranslationSettings()))}async setTranslationSourceLanguage(e){this.store.actions.setTranslationSourceLanguage(e),await this.loadDebouncer.run(()=>this.fetchData(this.getTranslationSettings()))}async setTranslationProfileId(e){this.store.actions.setTranslationProfileId(e)}async setTranslationLoading(e){this.store.actions.setTranslationLoading(e)}async setTranslationError(e){this.store.actions.setTranslationError(e)}getTranslationSettings(){var e;let r=this.store.getState();return r.translation.profileId&&r.translation.destinationLanguage?{profileId:r.translation.profileId,destinationLanguage:r.translation.destinationLanguage.code,sourceLanguage:(e=r.map)===null||e===void 0?void 0:e.lang}:void 0}setLinkPreviewDialogId(e){this.store.actions.linkPreviewDialogId(e)}async fetchMapRating(){var e;this.store.actions.mapRating(await((e=this.service)===null||e===void 0?void 0:e.getMapRating()))}async fetchTopicRating(e){var r;let n=await((r=this.service)===null||r===void 0?void 0:r.getTopicRating(e));n&&this.store.actions.setTopicsRating({[e]:n})}registerMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.add(e),this.store.getState().relatives==null?this.fetchRelatives():this.updateClusteringHelper()}unregisterMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.delete(e),this.updateClusteringHelper()}getAccurateNavigationData(e,r,n){return this.service.getAccurateNavigationData(e,r?.number,n?.section,this.getTranslationSettings())}buildBreadcrumb(e){var r;return(r=this.service)===null||r===void 0?void 0:r.buildBreadcrumb(e,this.getTranslationSettings())}fetchTopicContent(e){var r,n;let a=this.getTranslationSettings();return a?(r=this.service)===null||r===void 0?void 0:r.getTranslatedTopicContent(e,a).then(s=>(s.isTranslationError&&this.setTranslationError(!0),s.content)):(n=this.service)===null||n===void 0?void 0:n.getTopicContent(e)}getTocNode(e){return this.service.getTocNode(e,this.getTranslationSettings())}getPage(e){return this.service.getPage(e,this.getTranslationSettings())}onMapAttachmentsUpdate(){var e;(e=this.service)===null||e===void 0||e.clearMapAttachments(),this.store.dispatchEvent(new Event(Fe.mapAttachmentsUpdate))}};var vr=class extends CustomEvent{constructor(e,r){super("ft-reader-map-loaded",{detail:{map:e,toc:r}})}},xr=class extends CustomEvent{constructor(e,r){super("ft-reader-visible-topics-change",{detail:{visibleTopics:r}})}},Sr=class extends CustomEvent{constructor(e){super("ft-reader-navigation-done",{detail:e})}},Cr=class extends CustomEvent{constructor(e){super("ft-reader-load-error",{detail:e})}},Or=class extends Event{constructor(){super("ft-reader-map-not-found")}},Er=class extends Event{constructor(){super("ft-reader-map-unauthorized")}},Ar=class extends Event{constructor(){super("ft-reader-map-forbidden")}},wr=class extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}};var te=function(o,e,r,n){var a=arguments.length,s=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,r,n);else for(var d=o.length-1;d>=0;d--)(c=o[d])&&(s=(a<3?c(s):a>3?c(e,r,s):c(e,r))||s);return a>3&&s&&Object.defineProperty(e,r,s),s},wo=class{constructor(e){this.stateManager=e}searchInDocument(e){this.stateManager.setSearchInDocumentQuery(e??"")}},z=class extends G.FtLitElementRedux{constructor(){super(),this.visibleTopics=[],this.updateConfiguration=()=>{this.stateManager.reloadConfiguration()},this.scrollToTargetDebouncer=new G.Debouncer(5),this.navigationDebouncer=new G.Debouncer(10),this.mapLoadedEventDebouncer=new G.Debouncer(50),this.addStore(S)}render(){return Pt.html`
52
+ `}connectedCallback(){super.connectedCallback(),S.addEventListener(be.eventName,this.reloadConfiguration)}disconnectedCallback(){S.addEventListener(be.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(e){var r,n,a,s,c,d,u;super.update(e),e.has("baseUrl")&&(S.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&S.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&S.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&S.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&S.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&S.actions.noCustom(this.noCustom),e.has("editorMode")&&S.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&S.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&S.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(p=>Va.addContext(p)),e.has("openExternalDocumentInNewTab")&&S.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&S.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&S.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(S.actions.defaultLocales((r=this.localesConfiguration)===null||r===void 0?void 0:r.defaultLocales),S.actions.availableUiLocales((a=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&a!==void 0?a:[]),S.actions.searchInAllLanguagesAllowed((c=(s=this.localesConfiguration)===null||s===void 0?void 0:s.allLanguagesAllowed)!==null&&c!==void 0?c:!1)),e.has("authenticationRequired")&&S.actions.authenticationRequired(this.authenticationRequired),e.has("availableContentLocales")&&S.actions.availableContentLocales((u=(d=this.availableContentLocales)===null||d===void 0?void 0:d.contentLocales)!==null&&u!==void 0?u:[]),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration(),this.availableContentLocales==null&&this.updateAvailableContentLocales())}async updateSession(){this.session=await this.cache.get("session",async()=>{let e=await this.apiProvider().getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},e.idleTimeoutInMillis),e})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}async updateAvailableContentLocales(){this.availableContentLocales=await this.cache.get("availableContentLocales",()=>Ja(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};D.elementDefinitions={};D.styles=Xa;H([(0,Z.property)()],D.prototype,"baseUrl",void 0);H([(0,Z.property)()],D.prototype,"apiIntegrationIdentifier",void 0);H([(0,Z.property)()],D.prototype,"apiIntegrationAppVersion",void 0);H([(0,Z.property)()],D.prototype,"uiLocale",void 0);H([(0,pe.jsonProperty)(null)],D.prototype,"availableUiLocales",void 0);H([(0,pe.jsonProperty)(null)],D.prototype,"metadataConfiguration",void 0);H([(0,Z.property)({type:Boolean})],D.prototype,"editorMode",void 0);H([(0,Z.property)({type:Boolean})],D.prototype,"noCustom",void 0);H([(0,Z.property)({type:Boolean})],D.prototype,"openExternalDocumentInNewTab",void 0);H([(0,Z.property)({converter:{fromAttribute(o){return o==="false"?!1:o==="true"||(o??!1)}}})],D.prototype,"noCustomComponent",void 0);H([(0,Z.property)({type:Boolean})],D.prototype,"withManualResources",void 0);H([(0,Z.property)({type:Boolean})],D.prototype,"navigatorOnline",void 0);H([(0,Z.property)({type:Boolean})],D.prototype,"forcedOffline",void 0);H([(0,Z.property)({type:Object})],D.prototype,"apiProvider",void 0);H([(0,Z.property)({type:Boolean})],D.prototype,"authenticationRequired",void 0);H([(0,pe.jsonProperty)([])],D.prototype,"messageContexts",void 0);H([(0,pe.jsonProperty)(void 0)],D.prototype,"session",void 0);H([(0,Z.state)()],D.prototype,"localesConfiguration",void 0);H([(0,Z.state)()],D.prototype,"availableContentLocales",void 0);var ti=C(_());(0,ti.customElement)("ft-app-context")(D);var yr=class extends Q{get mapId(){return this._mapId}set mapId(e){e!==this._mapId&&this.clear(),this._mapId=e}constructor(e,r,n){super(!1,r),this.converter=e,this._mapId=n,this.initCache()}async withMapId(e){return this._mapId?e(this._mapId):void 0}initCache(){this.cache.register("configuration",()=>this.api.getReaderConfiguration()),this.cache.register("map",()=>this.withMapId(e=>this.fetchMap(e))),this.cache.register("enrichedToc",()=>this.withMapId(e=>this.fetchPages(e).then(r=>this.converter.convertPaginatedToc(e,r)))),this.cache.register("ratingSummary",()=>{var e,r;return xe((r=(e=S.getState().session)===null||e===void 0?void 0:e.profile.roles)!==null&&r!==void 0?r:[],"RATING_USER")?this.withMapId(a=>this.fetchMapRating(a)):Promise.resolve()})}clear(){this.cache.clearMatching(e=>e!=="configuration")}makeCacheKey(e,r){return e+(r?"-destinationLanguage-"+r?.destinationLanguage:"")}getMap(e){return this.cache.get(this.makeCacheKey("map",e),()=>this.fetchMap(this.mapId,e))}getMapNow(e){return this.cache.getNow(this.makeCacheKey("map",e))}getConfiguration(){return this.cache.get("configuration")}clearConfiguration(){this.cache.clear("configuration")}getEnrichedToc(e){return this.cache.get(this.makeCacheKey("enrichedToc",e),()=>this.fetchPages(this.mapId,e).then(r=>this.converter.convertPaginatedToc(this.mapId,r)))}getEnrichedTocNow(e){return this.cache.getNow(this.makeCacheKey("enrichedToc",e))}async getPaginationConfiguration(){return(await this.getEnrichedToc()).paginationConfiguration}async getToc(e){return(await this.getEnrichedToc(e)).toc}async getPagesToc(e){return(await this.getEnrichedToc(e)).pagesToc}async getTranslationError(e){return(await this.getEnrichedToc(e)).translationError}async getTocNode(e,r){return(await this.getEnrichedToc(r)).nodeByTocId[e]}getTocNodeNow(e,r){var n;return(n=this.getEnrichedTocNow(r))===null||n===void 0?void 0:n.nodeByTocId[e]}getTocNodeNowByUrl(e,r){var n,a;let s=this.getMapNow(r);return s?.prettyUrl==e||`${s?.id}/root`===e?(n=this.getEnrichedTocNow(r))===null||n===void 0?void 0:n.toc[0]:(a=this.getEnrichedTocNow(r))===null||a===void 0?void 0:a.nodeByUrl[e]}async getPage(e,r){let n=await this.getEnrichedToc(r);return n.pages[e-1]||n.pages[0]}async getPageByTocId(e,r){let n=await this.getEnrichedToc(r);return n.pageByTocId[e]||n.pages[0]}getTopicInfo(e){return this.cache.get("topic-"+e.tocId,()=>this.fetchTopicMetadata(e))}getTopicContent(e){return this.cache.get("topic-content-"+e.tocId,()=>this.fetchTopicHTMLContent(e))}getTranslatedTopicContent(e,r){return this.cache.get(this.makeCacheKey("translated-topic-content-"+e.tocId,r),()=>this.fetchTranslatedTopicHTMLContent(e,r))}getAttachments(){return this.cache.get("map-attachments",()=>this.fetchAttachments())}clearMapAttachments(){this.cache.clear("map-attachments")}getRelativesForDocument(e,r){return this.cache.get("document-relatives-"+e+"-"+r.join("-"),()=>this.fetchRelativesForDocument(e,r))}getRelativesForTopicInMap(e,r,n){return this.cache.get("topic-relatives-"+[e,r,...n].join("-"),()=>this.fetchRelativesForTopicInMap(e,r,n))}getAttachmentDownloadLink(e){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(e).content}?download=true&locationValue=reader`)}getLink(e,r,n){let a=this.getNavigationData(e,r,n),s=this.getReaderLinkPrefix()+(a.prettyUrl?a.prettyUrl:`${a.mapId}/${a.tocId}`),c=new URL(s,this.api.tenantBaseUrl);return a.page!=null&&c.searchParams.set("page",`${a.page}`),a.prettyUrlDuplicated&&c.searchParams.set("tocId",a.tocId),a.section!=null&&c.searchParams.set("section",a.section),c.href}getNavigationData(e,r,n,a){var s,c;e=e||"root";let d=this.getEnrichedTocNow(a),u=d?.pageByTocId[e],p=d?.nodeByTocId[e],h=p?.prettyUrl;return{mapId:this.mapId,tocId:e,topicTitle:(s=p?.title)!==null&&s!==void 0?s:"",untranslatedTopicTitle:p?.untranslatedTitle,page:r&&u&&u.number!==r?r:void 0,prettyUrl:h?.replace(/^r\//,""),prettyUrlDuplicated:(c=d?.duplicatedPrettyUrls.has(h??""))!==null&&c!==void 0?c:!1,section:n}}async getAccurateNavigationData(e,r,n,a){return await this.getEnrichedToc(a),this.getNavigationData(e,r,n,a)}getRatingSummary(){return this.cache.get("ratingSummary")}reloadRating(){return this.cache.clear("ratingSummary"),this.getRatingSummary()}getMapRating(){return this.getRatingSummary().then(e=>e?.publication)}getTopicRating(e){return this.getRatingSummary().then(r=>{var n;return r?{type:r.topics.type,rating:(n=r.topics)===null||n===void 0?void 0:n.ratings.find(a=>a.tocId===e)}:void 0})}rateMap(e,r){return this.makeRateMapRequest(e,r).then(()=>this.clearRatingIfNecessary())}unrateMap(){return this.makeUnrateMapRequest().then(()=>this.clearRatingIfNecessary())}sendMapFeedback(e,r){return this.makeMapFeedbackRequest(e,r)}rateTopic(e,r,n){return this.makeRateTopicRequest(e,r,n).then(()=>this.clearRatingIfNecessary())}unrateTopic(e){return this.makeUnrateTopicRequest(e).then(()=>this.clearRatingIfNecessary())}async clearRatingIfNecessary(){let e=S.getState().session;e?.sessionAuthenticated&&this.cache.clear("ratingSummary")}sendTopicFeedback(e,r,n){return this.makeTopicFeedbackRequest(e,r,n)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(e,r){let n=this.getTocNodeNow(e,r),a=[{tocId:n.tocId,title:n.title,untranslatedTitle:n.untranslatedTitle}],s=this.getTocNodeNow(n.parentTocId,r);for(;s;)a.unshift({tocId:s.tocId,title:s.title,untranslatedTitle:s.untranslatedTitle}),s=this.getTocNodeNow(s.parentTocId,r);return a}isFeatureAccessible(e,{session:r}){var n;if(!this.isFeatureAvailable(e))return!1;switch(e){case ve.FEEDBACK:return xe(r??[],P.FEEDBACK_USER);case ve.RATING:return xe(r??[],P.RATING_USER);case ve.PRINT:return xe(r??[],P.PRINT_USER);case ve.BOOKMARK:return!!r?.sessionAuthenticated;case ve.COLLECTIONS:return xe(r??[],P.COLLECTION_USER);case ve.PERSONAL_BOOKS:return xe(r??[],P.PERSONAL_BOOK_USER)&&!(!((n=this.getMapNow())===null||n===void 0)&&n.pbkConfidential);default:return!1}}makeAbsolute(e){return this.api.makeAbsolute(e)}};var mr=class o extends yr{static async build(e){return new o(new Wt,void 0,e)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(e,r){let n=await this.api.getMap(e,r);return this.fingerprint=n.fingerprint,n}fetchMapRating(e){return this.api.getMapRating(e)}async fetchPages(e,r){return await this.getMap(r),this.api.getPages(e,this.fingerprint,r)}fetchTopicHTMLContent(e){return this.api.getTopicHTMLContent(this.mapId,e.contentId,"DESIGNED_READER",this.fingerprint)}fetchTranslatedTopicHTMLContent(e,r){return this.api.getTranslatedTopicHTMLContent(this.mapId,e.contentId,"DESIGNED_READER",this.fingerprint,r)}fetchTopicMetadata(e){return this.api.getTopic(this.mapId,e.contentId,this.fingerprint)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch(()=>[])}fetchRelativesForDocument(e,r){let n={query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",metadataFilters:[{key:e,valueFilter:{negative:!1,values:r}}],sort:[],facets:[]};return this.api.search(n)}fetchRelativesForTopicInMap(e,r,n){let a={query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",metadataFilters:[{key:r,valueFilter:{negative:!1,values:n}},{key:"ft:publicationId",valueFilter:{negative:!1,values:[e]}}],sort:[],facets:[]};return this.api.search(a)}makeMapFeedbackRequest(e,r){return this.api.sendMapFeedback(this.mapId,e,r)}makeRateMapRequest(e,r){return this.api.rateMap(this.mapId,e,r)}makeRateTopicRequest(e,r,n){return this.api.rateTopic(this.mapId,e,r,n)}makeTopicFeedbackRequest(e,r,n){return this.api.sendTopicFeedback(this.mapId,e,r,n)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(e){return this.api.unrateTopic(this.mapId,e)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(e){return!0}};var br=class o{static build(e,r){return new o(un(e.trim()||"context"),r??mr.build)}loaded(){return(0,fe.waitUntil)(()=>this._loaded)}constructor(e,r,n){this.store=e,this.clusteringHelperProvider=n,this.metadataForSwitchToRelatives=new Set,this._loaded=!1,this.loadDebouncer=new fe.Debouncer(10),this.initService(r)}async initService(e){return this.service=await e(),this.service.mapId=this.store.getState().mapId,this.reload()}async setMapId(e){e!==this.store.getState().mapId&&(this.store.actions.mapId(e),this.service&&(this.service.mapId=e),await this.reload())}setRenderedTopics(e){this.store.actions.renderedTopics(e)}setVisibleTopics(e){this.store.actions.visibleTopics(e)}async awaitService(){return(0,fe.waitFor)(()=>this.service)}async navigateToTopic(e,r,n){await this.loaded();let a=await this.awaitService(),s=await(n!=null?a.getPage(n,this.getTranslationSettings()):a.getPageByTocId(e??"root",this.getTranslationSettings()));this.store.actions.currentPage(s);let c=this.resolveValidNonRootTocId(e,s);this.store.actions.scrollTarget({tocId:c,section:r}),this.store.getState().visibleTopics[0]!==c&&this.store.actions.visibleTopics([])}resolveValidNonRootTocId(e,r){var n,a,s;let c=(n=e==="root"?void 0:e)!==null&&n!==void 0?n:r.rootTocId;return r.topics.includes(c)?c:(s=(a=r.topics[0])!==null&&a!==void 0?a:r.hiddenTopics[0])!==null&&s!==void 0?s:"root"}async navigateToPage(e){await this.loaded();let n=await(await this.awaitService()).getPage(e,this.getTranslationSettings());this.store.actions.currentPage(n)}scrollDone(){this.store.actions.scrollTarget({})}async load(){var e;!((e=this.service)===null||e===void 0)&&e.mapId&&this.store.getState().map==null&&await this.loadDebouncer.run(()=>this.fetchData(this.getTranslationSettings()))}clear(){var e;this._loaded=!1,this.store.actions.configuration(void 0),this.store.actions.map(void 0),this.store.actions.toc(void 0),this.store.actions.pagesToc(void 0),this.store.actions.currentPage(void 0),this.store.actions.searchInDocumentQuery(""),this.store.actions.relatives(void 0),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),(e=this.service)===null||e===void 0||e.clear(),this.clusteringHelper=void 0}reload(){return this.clear(),this.load()}async fetchData(e){var r,n,a,s,c;try{e&&this.setTranslationLoading(!0);let d=u=>{throw e&&this.setTranslationError(!0),u};await Promise.all([this.loadConfiguration(),(r=this.service)===null||r===void 0?void 0:r.getMap(e).then(u=>this.store.actions.map(u)).catch(d),(n=this.service)===null||n===void 0?void 0:n.getToc(e).then(u=>this.store.actions.toc(u)).catch(d),(a=this.service)===null||a===void 0?void 0:a.getPagesToc(e).then(u=>this.store.actions.pagesToc(u)).catch(d),(s=this.service)===null||s===void 0?void 0:s.getPaginationConfiguration().then(u=>this.store.actions.paginationConfiguration(u)).catch(d),(c=this.service)===null||c===void 0?void 0:c.getTranslationError(e).then(u=>this.setTranslationError(u))]),this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives(),this._loaded=!0,e&&this.setTranslationLoading(!1)}catch(d){this.errorHandler&&!(d instanceof fe.CanceledPromiseError)&&this.errorHandler(d)}}loadConfiguration(){var e;return(e=this.service)===null||e===void 0?void 0:e.getConfiguration().then(r=>this.store.actions.configuration(r))}reloadConfiguration(){var e;return(e=this.service)===null||e===void 0||e.clearConfiguration(),this.loadConfiguration()}fetchRelatives(){var e,r;let n=(e=this.store.getState().map)===null||e===void 0?void 0:e.metadata.filter(a=>{var s;return a.key==((s=this.store.getState().configuration)===null||s===void 0?void 0:s.relativePivotMetadata)}).flatMap(a=>a.values);n!==void 0&&n.length>0?(r=this.service)===null||r===void 0||r.getRelativesForDocument(this.store.getState().configuration.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(Fe.clusteringHelperCreated))}createClusteringHelper(){var e,r;if(this.clusteringHelperProvider)return this.clusteringHelperProvider();let n=this.store.getState().relatives;if(n){let a=n.find(c=>{var d;return((d=c.map)===null||d===void 0?void 0:d.mapId)==this.store.getState().mapId}),s=(r=(e=S.getState().metadataConfiguration)===null||e===void 0?void 0:e.descriptors)!==null&&r!==void 0?r:[];return new fe.ClusteringHelper(n,a,this.metadataForSwitchToRelatives,s)}}async navigateToRelativeTopicIfFound(e){var r,n,a;await this.loaded();let s=await(0,fe.waitFor)(()=>{var p;return(p=this.store.getState().configuration)===null||p===void 0?void 0:p.relativeTopicPivotMetadata}),c=this.store.getState().mapId,u=await(await this.awaitService()).getRelativesForTopicInMap(c,s,[e]);if(!((a=(n=(r=u?.results)===null||r===void 0?void 0:r[0])===null||n===void 0?void 0:n.entries)===null||a===void 0)&&a[0]){let p=u.results[0].entries[0].topic.tocId;return await this.navigateToTopic(p),!0}else return await this.navigateToTopic("root"),!1}setSearchInDocumentQuery(e){this.store.actions.searchInDocumentQuery(e)}async setTranslationDestinationLanguage(e){this.store.actions.setTranslationDestinationLanguage(e),await this.loadDebouncer.run(()=>this.fetchData(this.getTranslationSettings()))}async setTranslationSourceLanguage(e){this.store.actions.setTranslationSourceLanguage(e),await this.loadDebouncer.run(()=>this.fetchData(this.getTranslationSettings()))}async setTranslationProfileId(e){this.store.actions.setTranslationProfileId(e)}async setTranslationLoading(e){this.store.actions.setTranslationLoading(e)}async setTranslationError(e){this.store.actions.setTranslationError(e)}getTranslationSettings(){var e;let r=this.store.getState();return r.translation.profileId&&r.translation.destinationLanguage?{profileId:r.translation.profileId,destinationLanguage:r.translation.destinationLanguage.code,sourceLanguage:(e=r.map)===null||e===void 0?void 0:e.lang}:void 0}setLinkPreviewDialogId(e){this.store.actions.linkPreviewDialogId(e)}async fetchMapRating(){var e;this.store.actions.mapRating(await((e=this.service)===null||e===void 0?void 0:e.getMapRating()))}async fetchTopicRating(e){var r;let n=await((r=this.service)===null||r===void 0?void 0:r.getTopicRating(e));n&&this.store.actions.setTopicsRating({[e]:n})}registerMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.add(e),this.store.getState().relatives==null?this.fetchRelatives():this.updateClusteringHelper()}unregisterMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.delete(e),this.updateClusteringHelper()}getAccurateNavigationData(e,r,n){return this.service.getAccurateNavigationData(e,r?.number,n?.section,this.getTranslationSettings())}buildBreadcrumb(e){var r;return(r=this.service)===null||r===void 0?void 0:r.buildBreadcrumb(e,this.getTranslationSettings())}fetchTopicContent(e){var r,n;let a=this.getTranslationSettings();return a?(r=this.service)===null||r===void 0?void 0:r.getTranslatedTopicContent(e,a).then(s=>(s.isTranslationError&&this.setTranslationError(!0),s.content)):(n=this.service)===null||n===void 0?void 0:n.getTopicContent(e)}getTocNode(e){return this.service.getTocNode(e,this.getTranslationSettings())}getPage(e){return this.service.getPage(e,this.getTranslationSettings())}onMapAttachmentsUpdate(){var e;(e=this.service)===null||e===void 0||e.clearMapAttachments(),this.store.dispatchEvent(new Event(Fe.mapAttachmentsUpdate))}};var vr=class extends CustomEvent{constructor(e,r){super("ft-reader-map-loaded",{detail:{map:e,toc:r}})}},xr=class extends CustomEvent{constructor(e,r){super("ft-reader-visible-topics-change",{detail:{visibleTopics:r}})}},Sr=class extends CustomEvent{constructor(e){super("ft-reader-navigation-done",{detail:e})}},Cr=class extends CustomEvent{constructor(e){super("ft-reader-load-error",{detail:e})}},Or=class extends Event{constructor(){super("ft-reader-map-not-found")}},Er=class extends Event{constructor(){super("ft-reader-map-unauthorized")}},Ar=class extends Event{constructor(){super("ft-reader-map-forbidden")}},wr=class extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}};var te=function(o,e,r,n){var a=arguments.length,s=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,r,n);else for(var d=o.length-1;d>=0;d--)(c=o[d])&&(s=(a<3?c(s):a>3?c(e,r,s):c(e,r))||s);return a>3&&s&&Object.defineProperty(e,r,s),s},wo=class{constructor(e){this.stateManager=e}searchInDocument(e){this.stateManager.setSearchInDocumentQuery(e??"")}},z=class extends G.FtLitElementRedux{constructor(){super(),this.visibleTopics=[],this.updateConfiguration=()=>{this.stateManager.reloadConfiguration()},this.scrollToTargetDebouncer=new G.Debouncer(5),this.navigationDebouncer=new G.Debouncer(10),this.mapLoadedEventDebouncer=new G.Debouncer(50),this.addStore(S)}render(){return Pt.html`
53
53
  ${this.importStyleIfNeeded()}
54
54
  <slot @register-ft-reader-component=${this.registerComponent}></slot>
55
55
  `}importStyleIfNeeded(){var e,r;let n=(e=this.stateManager.service)===null||e===void 0?void 0:e.themeStylesheet();return!n||window.location.href.startsWith((r=this.baseUrl)!==null&&r!==void 0?r:"")?Pt.nothing:Pt.html`
56
56
  <style>
57
57
  @import "${n}"
58
58
  </style>
59
- `}get stateManager(){return this._stateManager==null&&(this._stateManager=br.build(this.id||(0,G.randomId)(6),this.readerServiceProvider),this._stateManager.errorHandler=e=>this.handleLoadError(e),this.addStore(this.stateManager.store,"reader")),this._stateManager}connectedCallback(){super.connectedCallback(),this.stateManager.setMapId(this.mapId),this.stateManager.awaitService().then(e=>{let r=e.fontsStylesheet();if(r&&!window.location.href.startsWith(this.baseUrl)&&!document.querySelector(`head link[href="${r}"]`)){let n=document.createElement("link");n.setAttribute("rel","stylesheet"),n.setAttribute("href",r),document.head.append(n)}window.FluidTopicsReaderService=new wo(this.stateManager)}),S.addEventListener(be.eventName,this.updateConfiguration)}disconnectedCallback(){super.disconnectedCallback(),S.addEventListener(be.eventName,this.updateConfiguration)}update(e){super.update(e),e.has("readerServiceProvider")&&this.readerServiceProvider&&this.stateManager.initService(this.readerServiceProvider),e.has("mapId")&&this.mapId&&(this.stateManager.setMapId(this.mapId),this.lastNotifiedNotFoundRelative=void 0),e.has("searchInDocumentQuery")&&this.searchInDocumentQuery!=null&&this.stateManager.setSearchInDocumentQuery(this.searchInDocumentQuery),["tocId","section","page","mapId","topicPivot"].some(r=>e.has(r))&&this.mapId&&this.navigateToTarget(),e.has("session")&&this.reload()}contentAvailableCallback(e){var r,n;if(super.contentAvailableCallback(e),(e.has("map")||e.has("toc"))&&this.sendLoadedEventIfLoaded(),e.has("scrollTarget")&&((r=this.scrollTarget)===null||r===void 0?void 0:r.tocId)==null){let a=e.get("scrollTarget");a?.tocId!=null&&this.scrollToTargetDebouncer.run(()=>this.stateManager.getAccurateNavigationData(a.tocId,this.currentPage,a).then(s=>this.dispatchEvent(new Sr(s))))}(e.has("visibleTopics")||e.has("scrollTarget"))&&((n=this.scrollTarget)===null||n===void 0?void 0:n.tocId)==null&&Promise.all(this.visibleTopics.map(a=>this.stateManager.getAccurateNavigationData(a,this.currentPage))).then(a=>{let s=a.filter(c=>c!=null&&c.topicTitle!=="").map(c=>({tocId:c.tocId,title:c.topicTitle,page:c.page,prettyUrl:c.prettyUrl,prettyUrlDuplicated:c.prettyUrlDuplicated,breadcrumb:this.stateManager.buildBreadcrumb(c.tocId)}));this.dispatchEvent(new xr(this.map,s))})}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 wr),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)}),this.tocId&&!this.section&&(this.stateManager.store.commands.clear(/^focus-topic-/),this.stateManager.store.commands.add({type:`focus-topic-${this.tocId}`}))}registerComponent(e){e.stopPropagation();let r=e.composedPath()[0];this.register(r)}register(e){e.setReaderStateManager(this.stateManager)}handleLoadError(e){let r=e;r.status===401?this.dispatchEvent(new Er):r.status===403?this.dispatchEvent(new Ar):r.status===404?this.dispatchEvent(new Or):this.dispatchEvent(new Cr(e))}reloadBookmarks(){xo.reloadBookmarks()}async reloadRating(){var e,r;await((e=this.stateManager.service)===null||e===void 0?void 0:e.reloadRating()),(r=this.stateManager.store)===null||r===void 0||r.dispatchEvent(new CustomEvent("rating-changed"))}sendLoadedEventIfLoaded(){this.mapLoadedEventDebouncer.run(()=>{this.map&&this.toc&&this.dispatchEvent(new vr(this.map,this.toc))})}};z.styles=ln;te([(0,G.redux)({store:S.name})],z.prototype,"baseUrl",void 0);te([(0,G.redux)({store:S.name})],z.prototype,"session",void 0);te([(0,$e.property)()],z.prototype,"mapId",void 0);te([(0,$e.property)()],z.prototype,"tocId",void 0);te([(0,$e.property)()],z.prototype,"section",void 0);te([(0,$e.property)()],z.prototype,"topicPivot",void 0);te([(0,$e.property)()],z.prototype,"searchInDocumentQuery",void 0);te([(0,G.numberProperty)({min:1})],z.prototype,"page",void 0);te([(0,G.redux)({store:"reader"})],z.prototype,"map",void 0);te([(0,G.redux)({store:"reader"})],z.prototype,"toc",void 0);te([(0,G.redux)({store:"reader"})],z.prototype,"visibleTopics",void 0);te([(0,G.redux)({store:"reader"})],z.prototype,"currentPage",void 0);te([(0,G.redux)({store:"reader"})],z.prototype,"scrollTarget",void 0);te([(0,$e.property)({attribute:!1})],z.prototype,"readerServiceProvider",void 0);var Ja=C(_());(0,Ja.customElement)("ft-reader-context")(z);var ei=C(V()),ti=C(_()),ac={position:ti.FtCssVariableFactory.create("--ft-content-watermark-position","Position property of the watermark container","POSITION","sticky")},ri=ei.css`
59
+ `}get stateManager(){return this._stateManager==null&&(this._stateManager=br.build(this.id||(0,G.randomId)(6),this.readerServiceProvider),this._stateManager.errorHandler=e=>this.handleLoadError(e),this.addStore(this.stateManager.store,"reader")),this._stateManager}connectedCallback(){super.connectedCallback(),this.stateManager.setMapId(this.mapId),this.stateManager.awaitService().then(e=>{let r=e.fontsStylesheet();if(r&&!window.location.href.startsWith(this.baseUrl)&&!document.querySelector(`head link[href="${r}"]`)){let n=document.createElement("link");n.setAttribute("rel","stylesheet"),n.setAttribute("href",r),document.head.append(n)}window.FluidTopicsReaderService=new wo(this.stateManager)}),S.addEventListener(be.eventName,this.updateConfiguration)}disconnectedCallback(){super.disconnectedCallback(),S.addEventListener(be.eventName,this.updateConfiguration)}update(e){super.update(e),e.has("readerServiceProvider")&&this.readerServiceProvider&&this.stateManager.initService(this.readerServiceProvider),e.has("mapId")&&this.mapId&&(this.stateManager.setMapId(this.mapId),this.lastNotifiedNotFoundRelative=void 0),e.has("searchInDocumentQuery")&&this.searchInDocumentQuery!=null&&this.stateManager.setSearchInDocumentQuery(this.searchInDocumentQuery),["tocId","section","page","mapId","topicPivot"].some(r=>e.has(r))&&this.mapId&&this.navigateToTarget(),e.has("session")&&this.reload()}contentAvailableCallback(e){var r,n;if(super.contentAvailableCallback(e),(e.has("map")||e.has("toc"))&&this.sendLoadedEventIfLoaded(),e.has("scrollTarget")&&((r=this.scrollTarget)===null||r===void 0?void 0:r.tocId)==null){let a=e.get("scrollTarget");a?.tocId!=null&&this.scrollToTargetDebouncer.run(()=>this.stateManager.getAccurateNavigationData(a.tocId,this.currentPage,a).then(s=>this.dispatchEvent(new Sr(s))))}(e.has("visibleTopics")||e.has("scrollTarget"))&&((n=this.scrollTarget)===null||n===void 0?void 0:n.tocId)==null&&Promise.all(this.visibleTopics.map(a=>this.stateManager.getAccurateNavigationData(a,this.currentPage))).then(a=>{let s=a.filter(c=>c!=null&&c.topicTitle!=="").map(c=>({tocId:c.tocId,title:c.topicTitle,page:c.page,prettyUrl:c.prettyUrl,prettyUrlDuplicated:c.prettyUrlDuplicated,breadcrumb:this.stateManager.buildBreadcrumb(c.tocId)}));this.dispatchEvent(new xr(this.map,s))})}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 wr),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)}),this.tocId&&!this.section&&(this.stateManager.store.commands.clear(/^focus-topic-/),this.stateManager.store.commands.add({type:`focus-topic-${this.tocId}`}))}registerComponent(e){e.stopPropagation();let r=e.composedPath()[0];this.register(r)}register(e){e.setReaderStateManager(this.stateManager)}handleLoadError(e){let r=e;r.status===401?this.dispatchEvent(new Er):r.status===403?this.dispatchEvent(new Ar):r.status===404?this.dispatchEvent(new Or):this.dispatchEvent(new Cr(e))}reloadBookmarks(){xo.reloadBookmarks()}async reloadRating(){var e,r;await((e=this.stateManager.service)===null||e===void 0?void 0:e.reloadRating()),(r=this.stateManager.store)===null||r===void 0||r.dispatchEvent(new CustomEvent("rating-changed"))}sendLoadedEventIfLoaded(){this.mapLoadedEventDebouncer.run(()=>{this.map&&this.toc&&this.dispatchEvent(new vr(this.map,this.toc))})}};z.styles=ln;te([(0,G.redux)({store:S.name})],z.prototype,"baseUrl",void 0);te([(0,G.redux)({store:S.name})],z.prototype,"session",void 0);te([(0,$e.property)()],z.prototype,"mapId",void 0);te([(0,$e.property)()],z.prototype,"tocId",void 0);te([(0,$e.property)()],z.prototype,"section",void 0);te([(0,$e.property)()],z.prototype,"topicPivot",void 0);te([(0,$e.property)()],z.prototype,"searchInDocumentQuery",void 0);te([(0,G.numberProperty)({min:1})],z.prototype,"page",void 0);te([(0,G.redux)({store:"reader"})],z.prototype,"map",void 0);te([(0,G.redux)({store:"reader"})],z.prototype,"toc",void 0);te([(0,G.redux)({store:"reader"})],z.prototype,"visibleTopics",void 0);te([(0,G.redux)({store:"reader"})],z.prototype,"currentPage",void 0);te([(0,G.redux)({store:"reader"})],z.prototype,"scrollTarget",void 0);te([(0,$e.property)({attribute:!1})],z.prototype,"readerServiceProvider",void 0);var ri=C(_());(0,ri.customElement)("ft-reader-context")(z);var oi=C(V()),ni=C(_()),cc={position:ni.FtCssVariableFactory.create("--ft-content-watermark-position","Position property of the watermark container","POSITION","sticky")},ai=oi.css`
60
60
  :host {
61
61
  position: absolute;
62
62
  top: 0;
@@ -67,7 +67,7 @@
67
67
  }
68
68
 
69
69
  .ft-watermark-container {
70
- position: ${ac.position};
70
+ position: ${cc.position};
71
71
  top: 0;
72
72
  text-align: center;
73
73
  }
@@ -75,9 +75,9 @@
75
75
  .ft-watermark {
76
76
  z-index: 79;
77
77
  }
78
- `;var wt=C(V()),Ye=C(J());var Xi=C(Ur()),Ji=C(_());var Po=globalThis,Ir=Po.trustedTypes,oi=Ir?Ir.createPolicy("lit-html",{createHTML:o=>o}):void 0,li="$lit$",Le=`lit$${Math.random().toFixed(9).slice(2)}$`,di="?"+Le,ic=`<${di}>`,Ke=document,Tr=()=>Ke.createComment(""),Dt=o=>o===null||typeof o!="object"&&typeof o!="function",ko=Array.isArray,sc=o=>ko(o)||typeof o?.[Symbol.iterator]=="function",Io=`[
79
- \f\r]`,kt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ni=/-->/g,ai=/>/g,je=RegExp(`>|${Io}(?:([^\\s"'>=/]+)(${Io}*=${Io}*(?:[^
80
- \f\r"'\`<>=]|("|')|))|$)`,"g"),ii=/'/g,si=/"/g,ui=/^(?:script|style|textarea|title)$/i,Do=o=>(e,...r)=>({_$litType$:o,strings:e,values:r}),pi=Do(1),fi=Do(2),hi=Do(3),Ft=Symbol.for("lit-noChange"),W=Symbol.for("lit-nothing"),ci=new WeakMap,Ve=Ke.createTreeWalker(Ke,129);function gi(o,e){if(!ko(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return oi!==void 0?oi.createHTML(e):e}var cc=(o,e)=>{let r=o.length-1,n=[],a,s=e===2?"<svg>":e===3?"<math>":"",c=kt;for(let d=0;d<r;d++){let u=o[d],p,h,g=-1,m=0;for(;m<u.length&&(c.lastIndex=m,h=c.exec(u),h!==null);)m=c.lastIndex,c===kt?h[1]==="!--"?c=ni:h[1]!==void 0?c=ai:h[2]!==void 0?(ui.test(h[2])&&(a=RegExp("</"+h[2],"g")),c=je):h[3]!==void 0&&(c=je):c===je?h[0]===">"?(c=a??kt,g=-1):h[1]===void 0?g=-2:(g=c.lastIndex-h[2].length,p=h[1],c=h[3]===void 0?je:h[3]==='"'?si:ii):c===si||c===ii?c=je:c===ni||c===ai?c=kt:(c=je,a=void 0);let v=c===je&&o[d+1].startsWith("/>")?" ":"";s+=c===kt?u+ic:g>=0?(n.push(p),u.slice(0,g)+li+u.slice(g)+Le+v):u+Le+(g===-2?d:v)}return[gi(o,s+(o[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),n]},Mt=class o{constructor({strings:e,_$litType$:r},n){let a;this.parts=[];let s=0,c=0,d=e.length-1,u=this.parts,[p,h]=cc(e,r);if(this.el=o.createElement(p,n),Ve.currentNode=this.el.content,r===2||r===3){let g=this.el.content.firstChild;g.replaceWith(...g.childNodes)}for(;(a=Ve.nextNode())!==null&&u.length<d;){if(a.nodeType===1){if(a.hasAttributes())for(let g of a.getAttributeNames())if(g.endsWith(li)){let m=h[c++],v=a.getAttribute(g).split(Le),b=/([.?@])?(.*)/.exec(m);u.push({type:1,index:s,name:b[2],strings:v,ctor:b[1]==="."?Ro:b[1]==="?"?_o:b[1]==="@"?Lo:pt}),a.removeAttribute(g)}else g.startsWith(Le)&&(u.push({type:6,index:s}),a.removeAttribute(g));if(ui.test(a.tagName)){let g=a.textContent.split(Le),m=g.length-1;if(m>0){a.textContent=Ir?Ir.emptyScript:"";for(let v=0;v<m;v++)a.append(g[v],Tr()),Ve.nextNode(),u.push({type:2,index:++s});a.append(g[m],Tr())}}}else if(a.nodeType===8)if(a.data===di)u.push({type:2,index:s});else{let g=-1;for(;(g=a.data.indexOf(Le,g+1))!==-1;)u.push({type:7,index:s}),g+=Le.length-1}s++}}static createElement(e,r){let n=Ke.createElement("template");return n.innerHTML=e,n}};function ut(o,e,r=o,n){if(e===Ft)return e;let a=n!==void 0?r._$Co?.[n]:r._$Cl,s=Dt(e)?void 0:e._$litDirective$;return a?.constructor!==s&&(a?._$AO?.(!1),s===void 0?a=void 0:(a=new s(o),a._$AT(o,r,n)),n!==void 0?(r._$Co??=[])[n]=a:r._$Cl=a),a!==void 0&&(e=ut(o,a._$AS(o,e.values),a,n)),e}var To=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:n}=this._$AD,a=(e?.creationScope??Ke).importNode(r,!0);Ve.currentNode=a;let s=Ve.nextNode(),c=0,d=0,u=n[0];for(;u!==void 0;){if(c===u.index){let p;u.type===2?p=new Rr(s,s.nextSibling,this,e):u.type===1?p=new u.ctor(s,u.name,u.strings,this,e):u.type===6&&(p=new No(s,this,e)),this._$AV.push(p),u=n[++d]}c!==u?.index&&(s=Ve.nextNode(),c++)}return Ve.currentNode=Ke,a}p(e){let r=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,r),r+=n.strings.length-2):n._$AI(e[r])),r++}},Rr=class o{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,n,a){this.type=2,this._$AH=W,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=n,this.options=a,this._$Cv=a?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=ut(this,e,r),Dt(e)?e===W||e==null||e===""?(this._$AH!==W&&this._$AR(),this._$AH=W):e!==this._$AH&&e!==Ft&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):sc(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==W&&Dt(this._$AH)?this._$AA.nextSibling.data=e:this.T(Ke.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:n}=e,a=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=Mt.createElement(gi(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===a)this._$AH.p(r);else{let s=new To(a,this),c=s.u(this.options);s.p(r),this.T(c),this._$AH=s}}_$AC(e){let r=ci.get(e.strings);return r===void 0&&ci.set(e.strings,r=new Mt(e)),r}k(e){ko(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,a=0;for(let s of e)a===r.length?r.push(n=new o(this.O(Tr()),this.O(Tr()),this,this.options)):n=r[a],n._$AI(s),a++;a<r.length&&(this._$AR(n&&n._$AB.nextSibling,a),r.length=a)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e&&e!==this._$AB;){let n=e.nextSibling;e.remove(),e=n}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},pt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,n,a,s){this.type=1,this._$AH=W,this._$AN=void 0,this.element=e,this.name=r,this._$AM=a,this.options=s,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=W}_$AI(e,r=this,n,a){let s=this.strings,c=!1;if(s===void 0)e=ut(this,e,r,0),c=!Dt(e)||e!==this._$AH&&e!==Ft,c&&(this._$AH=e);else{let d=e,u,p;for(e=s[0],u=0;u<s.length-1;u++)p=ut(this,d[n+u],r,u),p===Ft&&(p=this._$AH[u]),c||=!Dt(p)||p!==this._$AH[u],p===W?e=W:e!==W&&(e+=(p??"")+s[u+1]),this._$AH[u]=p}c&&!a&&this.j(e)}j(e){e===W?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Ro=class extends pt{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===W?void 0:e}},_o=class extends pt{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==W)}},Lo=class extends pt{constructor(e,r,n,a,s){super(e,r,n,a,s),this.type=5}_$AI(e,r=this){if((e=ut(this,e,r,0)??W)===Ft)return;let n=this._$AH,a=e===W&&n!==W||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,s=e!==W&&(n===W||a);a&&this.element.removeEventListener(this.name,this,n),s&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},No=class{constructor(e,r,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){ut(this,e)}};var lc=Po.litHtmlPolyfillSupport;lc?.(Mt,Rr),(Po.litHtmlVersions??=[]).push("3.3.0");var mi=Symbol.for(""),dc=o=>{if(o?.r===mi)return o?._$litStatic$},ft=o=>({_$litStatic$:o,r:mi});var yi=new Map,Fo=o=>(e,...r)=>{let n=r.length,a,s,c=[],d=[],u,p=0,h=!1;for(;p<n;){for(u=e[p];p<n&&(s=r[p],(a=dc(s))!==void 0);)u+=a+e[++p],h=!0;p!==n&&d.push(s),c.push(u),p++}if(p===n&&c.push(e[n]),h){let g=c.join("$$lit$$");(e=yi.get(g))===void 0&&(c.raw=c,yi.set(g,e=c)),r=d}return o(e,...r)},ht=Fo(pi),Qp=Fo(fi),Xp=Fo(hi);var Mo=C(J()),_i=C(_());var _r;(function(o){o.title="title",o.title_dense="title-dense",o.subtitle1="subtitle1",o.subtitle2="subtitle2",o.body1="body1",o.body2="body2",o.caption="caption",o.breadcrumb="breadcrumb",o.overline="overline",o.button="button"})(_r||(_r={}));var le=C(V()),x=C(_()),bi=x.FtCssVariableFactory.extend("--ft-typography-font-family","",x.designSystemVariables.titleFont),Ce=x.FtCssVariableFactory.extend("--ft-typography-font-family","",x.designSystemVariables.contentFont),E={fontFamily:Ce,fontSize:x.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:x.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:x.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:x.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:x.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},gt={fontFamily:x.FtCssVariableFactory.extend("--ft-typography-title-font-family","",bi),fontSize:x.FtCssVariableFactory.extend("--ft-typography-title-font-size","",E.fontSize,"20px"),fontWeight:x.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",E.fontWeight,"normal"),letterSpacing:x.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",E.letterSpacing,"0.15px"),lineHeight:x.FtCssVariableFactory.extend("--ft-typography-title-line-height","",E.lineHeight,"1.2"),textTransform:x.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",E.textTransform,"inherit")},yt={fontFamily:x.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",bi),fontSize:x.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",E.fontSize,"14px"),fontWeight:x.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",E.fontWeight,"normal"),letterSpacing:x.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",E.letterSpacing,"0.105px"),lineHeight:x.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",E.lineHeight,"1.7"),textTransform:x.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",E.textTransform,"inherit")},mt={fontFamily:x.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Ce),fontSize:x.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",E.fontSize,"16px"),fontWeight:x.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",E.fontWeight,"600"),letterSpacing:x.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",E.letterSpacing,"0.144px"),lineHeight:x.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",E.lineHeight,"1.5"),textTransform:x.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",E.textTransform,"inherit")},bt={fontFamily:x.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Ce),fontSize:x.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",E.fontSize,"14px"),fontWeight:x.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",E.fontWeight,"normal"),letterSpacing:x.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",E.letterSpacing,"0.098px"),lineHeight:x.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",E.lineHeight,"1.7"),textTransform:x.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",E.textTransform,"inherit")},vt={fontFamily:x.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Ce),fontSize:x.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",E.fontSize,"16px"),fontWeight:x.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",E.fontWeight,"normal"),letterSpacing:x.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",E.letterSpacing,"0.496px"),lineHeight:x.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",E.lineHeight,"1.5"),textTransform:x.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",E.textTransform,"inherit")},xt={fontFamily:x.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Ce),fontSize:x.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",E.fontSize,"14px"),fontWeight:x.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",E.fontWeight,"normal"),letterSpacing:x.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",E.letterSpacing,"0.252px"),lineHeight:x.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",E.lineHeight,"1.4"),textTransform:x.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",E.textTransform,"inherit")},St={fontFamily:x.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Ce),fontSize:x.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",E.fontSize,"12px"),fontWeight:x.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",E.fontWeight,"normal"),letterSpacing:x.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",E.letterSpacing,"0.396px"),lineHeight:x.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",E.lineHeight,"1.33"),textTransform:x.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",E.textTransform,"inherit")},Ct={fontFamily:x.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Ce),fontSize:x.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",E.fontSize,"10px"),fontWeight:x.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",E.fontWeight,"normal"),letterSpacing:x.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",E.letterSpacing,"0.33px"),lineHeight:x.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",E.lineHeight,"1.6"),textTransform:x.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",E.textTransform,"inherit")},Ot={fontFamily:x.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Ce),fontSize:x.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",E.fontSize,"10px"),fontWeight:x.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",E.fontWeight,"normal"),letterSpacing:x.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",E.letterSpacing,"1.5px"),lineHeight:x.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",E.lineHeight,"1.6"),textTransform:x.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",E.textTransform,"uppercase")},Et={fontFamily:x.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Ce),fontSize:x.FtCssVariableFactory.extend("--ft-typography-button-font-size","",E.fontSize,"14px"),fontWeight:x.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",E.fontWeight,"600"),letterSpacing:x.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",E.letterSpacing,"1.246px"),lineHeight:x.FtCssVariableFactory.extend("--ft-typography-button-line-height","",E.lineHeight,"1.15"),textTransform:x.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",E.textTransform,"uppercase")},vi=le.css`
78
+ `;var wt=C(V()),Ye=C(J());var ts=C(Br()),rs=C(_());var Po=globalThis,Ir=Po.trustedTypes,ii=Ir?Ir.createPolicy("lit-html",{createHTML:o=>o}):void 0,pi="$lit$",Ne=`lit$${Math.random().toFixed(9).slice(2)}$`,fi="?"+Ne,lc=`<${fi}>`,Ke=document,Tr=()=>Ke.createComment(""),Dt=o=>o===null||typeof o!="object"&&typeof o!="function",ko=Array.isArray,dc=o=>ko(o)||typeof o?.[Symbol.iterator]=="function",Io=`[
79
+ \f\r]`,kt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,si=/-->/g,ci=/>/g,je=RegExp(`>|${Io}(?:([^\\s"'>=/]+)(${Io}*=${Io}*(?:[^
80
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),li=/'/g,di=/"/g,hi=/^(?:script|style|textarea|title)$/i,Do=o=>(e,...r)=>({_$litType$:o,strings:e,values:r}),gi=Do(1),yi=Do(2),mi=Do(3),Ft=Symbol.for("lit-noChange"),W=Symbol.for("lit-nothing"),ui=new WeakMap,Ve=Ke.createTreeWalker(Ke,129);function bi(o,e){if(!ko(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return ii!==void 0?ii.createHTML(e):e}var uc=(o,e)=>{let r=o.length-1,n=[],a,s=e===2?"<svg>":e===3?"<math>":"",c=kt;for(let d=0;d<r;d++){let u=o[d],p,h,g=-1,m=0;for(;m<u.length&&(c.lastIndex=m,h=c.exec(u),h!==null);)m=c.lastIndex,c===kt?h[1]==="!--"?c=si:h[1]!==void 0?c=ci:h[2]!==void 0?(hi.test(h[2])&&(a=RegExp("</"+h[2],"g")),c=je):h[3]!==void 0&&(c=je):c===je?h[0]===">"?(c=a??kt,g=-1):h[1]===void 0?g=-2:(g=c.lastIndex-h[2].length,p=h[1],c=h[3]===void 0?je:h[3]==='"'?di:li):c===di||c===li?c=je:c===si||c===ci?c=kt:(c=je,a=void 0);let v=c===je&&o[d+1].startsWith("/>")?" ":"";s+=c===kt?u+lc:g>=0?(n.push(p),u.slice(0,g)+pi+u.slice(g)+Ne+v):u+Ne+(g===-2?d:v)}return[bi(o,s+(o[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),n]},Mt=class o{constructor({strings:e,_$litType$:r},n){let a;this.parts=[];let s=0,c=0,d=e.length-1,u=this.parts,[p,h]=uc(e,r);if(this.el=o.createElement(p,n),Ve.currentNode=this.el.content,r===2||r===3){let g=this.el.content.firstChild;g.replaceWith(...g.childNodes)}for(;(a=Ve.nextNode())!==null&&u.length<d;){if(a.nodeType===1){if(a.hasAttributes())for(let g of a.getAttributeNames())if(g.endsWith(pi)){let m=h[c++],v=a.getAttribute(g).split(Ne),b=/([.?@])?(.*)/.exec(m);u.push({type:1,index:s,name:b[2],strings:v,ctor:b[1]==="."?Ro:b[1]==="?"?_o:b[1]==="@"?No:pt}),a.removeAttribute(g)}else g.startsWith(Ne)&&(u.push({type:6,index:s}),a.removeAttribute(g));if(hi.test(a.tagName)){let g=a.textContent.split(Ne),m=g.length-1;if(m>0){a.textContent=Ir?Ir.emptyScript:"";for(let v=0;v<m;v++)a.append(g[v],Tr()),Ve.nextNode(),u.push({type:2,index:++s});a.append(g[m],Tr())}}}else if(a.nodeType===8)if(a.data===fi)u.push({type:2,index:s});else{let g=-1;for(;(g=a.data.indexOf(Ne,g+1))!==-1;)u.push({type:7,index:s}),g+=Ne.length-1}s++}}static createElement(e,r){let n=Ke.createElement("template");return n.innerHTML=e,n}};function ut(o,e,r=o,n){if(e===Ft)return e;let a=n!==void 0?r._$Co?.[n]:r._$Cl,s=Dt(e)?void 0:e._$litDirective$;return a?.constructor!==s&&(a?._$AO?.(!1),s===void 0?a=void 0:(a=new s(o),a._$AT(o,r,n)),n!==void 0?(r._$Co??=[])[n]=a:r._$Cl=a),a!==void 0&&(e=ut(o,a._$AS(o,e.values),a,n)),e}var To=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:n}=this._$AD,a=(e?.creationScope??Ke).importNode(r,!0);Ve.currentNode=a;let s=Ve.nextNode(),c=0,d=0,u=n[0];for(;u!==void 0;){if(c===u.index){let p;u.type===2?p=new Rr(s,s.nextSibling,this,e):u.type===1?p=new u.ctor(s,u.name,u.strings,this,e):u.type===6&&(p=new Lo(s,this,e)),this._$AV.push(p),u=n[++d]}c!==u?.index&&(s=Ve.nextNode(),c++)}return Ve.currentNode=Ke,a}p(e){let r=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,r),r+=n.strings.length-2):n._$AI(e[r])),r++}},Rr=class o{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,n,a){this.type=2,this._$AH=W,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=n,this.options=a,this._$Cv=a?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=ut(this,e,r),Dt(e)?e===W||e==null||e===""?(this._$AH!==W&&this._$AR(),this._$AH=W):e!==this._$AH&&e!==Ft&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):dc(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==W&&Dt(this._$AH)?this._$AA.nextSibling.data=e:this.T(Ke.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:n}=e,a=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=Mt.createElement(bi(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===a)this._$AH.p(r);else{let s=new To(a,this),c=s.u(this.options);s.p(r),this.T(c),this._$AH=s}}_$AC(e){let r=ui.get(e.strings);return r===void 0&&ui.set(e.strings,r=new Mt(e)),r}k(e){ko(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,a=0;for(let s of e)a===r.length?r.push(n=new o(this.O(Tr()),this.O(Tr()),this,this.options)):n=r[a],n._$AI(s),a++;a<r.length&&(this._$AR(n&&n._$AB.nextSibling,a),r.length=a)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e&&e!==this._$AB;){let n=e.nextSibling;e.remove(),e=n}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},pt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,n,a,s){this.type=1,this._$AH=W,this._$AN=void 0,this.element=e,this.name=r,this._$AM=a,this.options=s,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=W}_$AI(e,r=this,n,a){let s=this.strings,c=!1;if(s===void 0)e=ut(this,e,r,0),c=!Dt(e)||e!==this._$AH&&e!==Ft,c&&(this._$AH=e);else{let d=e,u,p;for(e=s[0],u=0;u<s.length-1;u++)p=ut(this,d[n+u],r,u),p===Ft&&(p=this._$AH[u]),c||=!Dt(p)||p!==this._$AH[u],p===W?e=W:e!==W&&(e+=(p??"")+s[u+1]),this._$AH[u]=p}c&&!a&&this.j(e)}j(e){e===W?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Ro=class extends pt{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===W?void 0:e}},_o=class extends pt{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==W)}},No=class extends pt{constructor(e,r,n,a,s){super(e,r,n,a,s),this.type=5}_$AI(e,r=this){if((e=ut(this,e,r,0)??W)===Ft)return;let n=this._$AH,a=e===W&&n!==W||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,s=e!==W&&(n===W||a);a&&this.element.removeEventListener(this.name,this,n),s&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},Lo=class{constructor(e,r,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){ut(this,e)}};var pc=Po.litHtmlPolyfillSupport;pc?.(Mt,Rr),(Po.litHtmlVersions??=[]).push("3.3.0");var xi=Symbol.for(""),fc=o=>{if(o?.r===xi)return o?._$litStatic$},ft=o=>({_$litStatic$:o,r:xi});var vi=new Map,Fo=o=>(e,...r)=>{let n=r.length,a,s,c=[],d=[],u,p=0,h=!1;for(;p<n;){for(u=e[p];p<n&&(s=r[p],(a=fc(s))!==void 0);)u+=a+e[++p],h=!0;p!==n&&d.push(s),c.push(u),p++}if(p===n&&c.push(e[n]),h){let g=c.join("$$lit$$");(e=vi.get(g))===void 0&&(c.raw=c,vi.set(g,e=c)),r=d}return o(e,...r)},ht=Fo(gi),rf=Fo(yi),of=Fo(mi);var Mo=C(J()),Pi=C(_());var _r;(function(o){o.title="title",o.title_dense="title-dense",o.subtitle1="subtitle1",o.subtitle2="subtitle2",o.body1="body1",o.body2="body2",o.caption="caption",o.breadcrumb="breadcrumb",o.overline="overline",o.button="button"})(_r||(_r={}));var le=C(V()),x=C(_()),Si=x.FtCssVariableFactory.extend("--ft-typography-font-family","",x.designSystemVariables.titleFont),Ce=x.FtCssVariableFactory.extend("--ft-typography-font-family","",x.designSystemVariables.contentFont),E={fontFamily:Ce,fontSize:x.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:x.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:x.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:x.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:x.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},gt={fontFamily:x.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Si),fontSize:x.FtCssVariableFactory.extend("--ft-typography-title-font-size","",E.fontSize,"20px"),fontWeight:x.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",E.fontWeight,"normal"),letterSpacing:x.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",E.letterSpacing,"0.15px"),lineHeight:x.FtCssVariableFactory.extend("--ft-typography-title-line-height","",E.lineHeight,"1.2"),textTransform:x.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",E.textTransform,"inherit")},yt={fontFamily:x.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Si),fontSize:x.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",E.fontSize,"14px"),fontWeight:x.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",E.fontWeight,"normal"),letterSpacing:x.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",E.letterSpacing,"0.105px"),lineHeight:x.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",E.lineHeight,"1.7"),textTransform:x.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",E.textTransform,"inherit")},mt={fontFamily:x.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Ce),fontSize:x.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",E.fontSize,"16px"),fontWeight:x.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",E.fontWeight,"600"),letterSpacing:x.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",E.letterSpacing,"0.144px"),lineHeight:x.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",E.lineHeight,"1.5"),textTransform:x.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",E.textTransform,"inherit")},bt={fontFamily:x.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Ce),fontSize:x.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",E.fontSize,"14px"),fontWeight:x.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",E.fontWeight,"normal"),letterSpacing:x.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",E.letterSpacing,"0.098px"),lineHeight:x.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",E.lineHeight,"1.7"),textTransform:x.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",E.textTransform,"inherit")},vt={fontFamily:x.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Ce),fontSize:x.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",E.fontSize,"16px"),fontWeight:x.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",E.fontWeight,"normal"),letterSpacing:x.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",E.letterSpacing,"0.496px"),lineHeight:x.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",E.lineHeight,"1.5"),textTransform:x.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",E.textTransform,"inherit")},xt={fontFamily:x.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Ce),fontSize:x.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",E.fontSize,"14px"),fontWeight:x.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",E.fontWeight,"normal"),letterSpacing:x.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",E.letterSpacing,"0.252px"),lineHeight:x.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",E.lineHeight,"1.4"),textTransform:x.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",E.textTransform,"inherit")},St={fontFamily:x.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Ce),fontSize:x.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",E.fontSize,"12px"),fontWeight:x.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",E.fontWeight,"normal"),letterSpacing:x.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",E.letterSpacing,"0.396px"),lineHeight:x.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",E.lineHeight,"1.33"),textTransform:x.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",E.textTransform,"inherit")},Ct={fontFamily:x.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Ce),fontSize:x.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",E.fontSize,"10px"),fontWeight:x.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",E.fontWeight,"normal"),letterSpacing:x.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",E.letterSpacing,"0.33px"),lineHeight:x.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",E.lineHeight,"1.6"),textTransform:x.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",E.textTransform,"inherit")},Ot={fontFamily:x.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Ce),fontSize:x.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",E.fontSize,"10px"),fontWeight:x.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",E.fontWeight,"normal"),letterSpacing:x.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",E.letterSpacing,"1.5px"),lineHeight:x.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",E.lineHeight,"1.6"),textTransform:x.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",E.textTransform,"uppercase")},Et={fontFamily:x.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Ce),fontSize:x.FtCssVariableFactory.extend("--ft-typography-button-font-size","",E.fontSize,"14px"),fontWeight:x.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",E.fontWeight,"600"),letterSpacing:x.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",E.letterSpacing,"1.246px"),lineHeight:x.FtCssVariableFactory.extend("--ft-typography-button-line-height","",E.lineHeight,"1.15"),textTransform:x.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",E.textTransform,"uppercase")},Ci=le.css`
81
81
  .ft-typography--title {
82
82
  font-family: ${gt.fontFamily};
83
83
  font-size: ${gt.fontSize};
@@ -86,7 +86,7 @@
86
86
  line-height: ${gt.lineHeight};
87
87
  text-transform: ${gt.textTransform};
88
88
  }
89
- `,xi=le.css`
89
+ `,Oi=le.css`
90
90
  .ft-typography--title-dense {
91
91
  font-family: ${yt.fontFamily};
92
92
  font-size: ${yt.fontSize};
@@ -95,7 +95,7 @@
95
95
  line-height: ${yt.lineHeight};
96
96
  text-transform: ${yt.textTransform};
97
97
  }
98
- `,Si=le.css`
98
+ `,Ei=le.css`
99
99
  .ft-typography--subtitle1 {
100
100
  font-family: ${mt.fontFamily};
101
101
  font-size: ${mt.fontSize};
@@ -104,7 +104,7 @@
104
104
  line-height: ${mt.lineHeight};
105
105
  text-transform: ${mt.textTransform};
106
106
  }
107
- `,Ci=le.css`
107
+ `,Ai=le.css`
108
108
  .ft-typography--subtitle2 {
109
109
  font-family: ${bt.fontFamily};
110
110
  font-size: ${bt.fontSize};
@@ -114,7 +114,7 @@
114
114
  text-transform: ${bt.textTransform};
115
115
  }
116
116
 
117
- `,Lr=le.css`
117
+ `,Nr=le.css`
118
118
  .ft-typography--body1 {
119
119
  font-family: ${vt.fontFamily};
120
120
  font-size: ${vt.fontSize};
@@ -123,7 +123,7 @@
123
123
  line-height: ${vt.lineHeight};
124
124
  text-transform: ${vt.textTransform};
125
125
  }
126
- `,Oi=le.css`
126
+ `,wi=le.css`
127
127
  .ft-typography--body2 {
128
128
  font-family: ${xt.fontFamily};
129
129
  font-size: ${xt.fontSize};
@@ -132,7 +132,7 @@
132
132
  line-height: ${xt.lineHeight};
133
133
  text-transform: ${xt.textTransform};
134
134
  }
135
- `,Ei=le.css`
135
+ `,Ii=le.css`
136
136
  .ft-typography--caption {
137
137
  font-family: ${St.fontFamily};
138
138
  font-size: ${St.fontSize};
@@ -141,7 +141,7 @@
141
141
  line-height: ${St.lineHeight};
142
142
  text-transform: ${St.textTransform};
143
143
  }
144
- `,Ai=le.css`
144
+ `,Ti=le.css`
145
145
  .ft-typography--breadcrumb {
146
146
  font-family: ${Ct.fontFamily};
147
147
  font-size: ${Ct.fontSize};
@@ -150,7 +150,7 @@
150
150
  line-height: ${Ct.lineHeight};
151
151
  text-transform: ${Ct.textTransform};
152
152
  }
153
- `,wi=le.css`
153
+ `,Ri=le.css`
154
154
  .ft-typography--overline {
155
155
  font-family: ${Ot.fontFamily};
156
156
  font-size: ${Ot.fontSize};
@@ -159,7 +159,7 @@
159
159
  line-height: ${Ot.lineHeight};
160
160
  text-transform: ${Ot.textTransform};
161
161
  }
162
- `,Ii=le.css`
162
+ `,_i=le.css`
163
163
  .ft-typography--button {
164
164
  font-family: ${Et.fontFamily};
165
165
  font-size: ${Et.fontSize};
@@ -168,11 +168,11 @@
168
168
  line-height: ${Et.lineHeight};
169
169
  text-transform: ${Et.textTransform};
170
170
  }
171
- `,Ti=le.css`
171
+ `,Ni=le.css`
172
172
  .ft-typography {
173
173
  vertical-align: inherit;
174
174
  }
175
- `;var Ri=function(o,e,r,n){var a=arguments.length,s=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,r,n);else for(var d=o.length-1;d>=0;d--)(c=o[d])&&(s=(a<3?c(s):a>3?c(e,r,s):c(e,r))||s);return a>3&&s&&Object.defineProperty(e,r,s),s},Ze=class extends _i.FtLitElement{constructor(){super(...arguments),this.variant=_r.body1}render(){return this.element?ht`
175
+ `;var Li=function(o,e,r,n){var a=arguments.length,s=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,r,n);else for(var d=o.length-1;d>=0;d--)(c=o[d])&&(s=(a<3?c(s):a>3?c(e,r,s):c(e,r))||s);return a>3&&s&&Object.defineProperty(e,r,s),s},Ze=class extends Pi.FtLitElement{constructor(){super(...arguments),this.variant=_r.body1}render(){return this.element?ht`
176
176
  <${ft(this.element)}
177
177
  part="text"
178
178
  class="ft-typography ft-typography--${this.variant}">
@@ -180,8 +180,8 @@
180
180
  </${ft(this.element)}>
181
181
  `:ht`
182
182
  <slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
183
- `}};Ze.styles=[vi,xi,Si,Ci,Lr,Oi,Ei,Ai,wi,Ii,Ti];Ri([(0,Mo.property)()],Ze.prototype,"element",void 0);Ri([(0,Mo.property)()],Ze.prototype,"variant",void 0);var Uo=C(J()),Qi=C(_());var Nr;(function(o){o.display="display",o.title1="title-1",o.title2="title-2",o.title3="title-3",o.body1regular="body-1-regular",o.body1medium="body-1-medium",o.body1semibold="body-1-semibold",o.body2regular="body-2-regular",o.body2medium="body-2-medium",o.body2semibold="body-2-semibold",o.caption1medium="caption-1-medium",o.caption1semibold="caption-1-semibold",o.caption2medium="caption-2-medium",o.caption2semibold="caption-2-semibold",o.caption2bold="caption-2-bold"})(Nr||(Nr={}));var Oe=C(V(),1),Ne=o=>typeof o=="string"?(0,Oe.unsafeCSS)(o):o,t=class{static create(e,r,n,a){let s=d=>Ne(d??a),c=Oe.css`var(${Ne(e)}, ${s(a)})`;return c.name=e,c.description=r,c.category=n,c.defaultValue=a,c.defaultCssValue=s,c.set=d=>Li(c,d??s(a)),c.get=d=>Oe.css`var(${Ne(e)}, ${s(d)})`,c.breadcrumb=()=>[],c.lastResortDefaultValue=()=>a,c}static extend(e,r,n,a){let s=d=>n.get(d??a),c=Oe.css`var(${Ne(e)}, ${s(a)})`;return c.name=e,c.description=r,c.category=n.category,c.fallbackVariable=n,c.defaultValue=a,c.defaultCssValue=s,c.set=d=>Li(c,d??s(a)),c.get=d=>Oe.css`var(${Ne(e)}, ${s(d)})`,c.breadcrumb=()=>[n.name,...n.breadcrumb()],c.lastResortDefaultValue=()=>a??n.lastResortDefaultValue(),c}static external(e,r){let n=s=>e.defaultCssValue(s),a=Oe.css`var(${Ne(e.name)}, ${n(e.defaultValue)})`;return a.name=e.name,a.category=e.category,a.fallbackVariable=e.fallbackVariable,a.defaultValue=e.defaultValue,a.context=r,a.defaultCssValue=n,a.set=s=>e.set(s),a.get=s=>Oe.css`var(${Ne(e.name)}, ${n(s)})`,a.breadcrumb=()=>e.breadcrumb(),a.lastResortDefaultValue=()=>e.lastResortDefaultValue(),a}};function Li(o,e){return Ne(`${o.name}: ${e}`)}var i={colorWhite:t.create("--ftds-color-white","","COLOR","#ffffff"),colorGray0:t.create("--ftds-color-gray-0","","COLOR","#71718e"),colorGray10:t.create("--ftds-color-gray-10","","COLOR","#fbfbfc"),colorGray20:t.create("--ftds-color-gray-20","","COLOR","#f2f2f5"),colorGray30:t.create("--ftds-color-gray-30","","COLOR","#e9e9ed"),colorGray40:t.create("--ftds-color-gray-40","","COLOR","#e0e0e6"),colorGray50:t.create("--ftds-color-gray-50","","COLOR","#cdcdd7"),colorGray60:t.create("--ftds-color-gray-60","","COLOR","#bbbbc9"),colorGray70:t.create("--ftds-color-gray-70","","COLOR","#a8a8ba"),colorGray80:t.create("--ftds-color-gray-80","","COLOR","#9696ab"),colorGray90:t.create("--ftds-color-gray-90","","COLOR","#83839d"),colorGray100:t.create("--ftds-color-gray-100","","COLOR","#62627c"),colorGray200:t.create("--ftds-color-gray-200","","COLOR","#545469"),colorGray300:t.create("--ftds-color-gray-300","","COLOR","#454557"),colorGray400:t.create("--ftds-color-gray-400","","COLOR","#363644"),colorGray500:t.create("--ftds-color-gray-500","","COLOR","#282832"),colorGray600:t.create("--ftds-color-gray-600","","COLOR","#19191f"),colorGray700:t.create("--ftds-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:t.create("--ftds-color-brand-0","","COLOR","#9d207b"),colorBrand10:t.create("--ftds-color-brand-10","","COLOR","#f7edf4"),colorBrand20:t.create("--ftds-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:t.create("--ftds-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:t.create("--ftds-color-brand-40","","COLOR","#d395c2"),colorBrand50:t.create("--ftds-color-brand-50","","COLOR","#c778b1"),colorBrand60:t.create("--ftds-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:t.create("--ftds-color-brand-70","","COLOR","#ae3e90"),colorBrand100:t.create("--ftds-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:t.create("--ftds-color-brand-200","","COLOR","#78185e"),colorBrand300:t.create("--ftds-color-brand-300","","COLOR","#62144d"),colorBrand400:t.create("--ftds-color-brand-400","","COLOR","#4d103c"),colorBrand500:t.create("--ftds-color-brand-500","","COLOR","#380b2c"),colorBrand600:t.create("--ftds-color-brand-600","","COLOR","#23071b"),colorBrand700:t.create("--ftds-color-brand-700","","COLOR","#0d030b"),colorCyan0:t.create("--ftds-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:t.create("--ftds-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:t.create("--ftds-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:t.create("--ftds-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:t.create("--ftds-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:t.create("--ftds-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:t.create("--ftds-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:t.create("--ftds-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:t.create("--ftds-color-cyan-100","","COLOR","#0c849c"),colorCyan200:t.create("--ftds-color-cyan-200","","COLOR","#0a7085"),colorCyan300:t.create("--ftds-color-cyan-300","","COLOR","#085c6d"),colorCyan400:t.create("--ftds-color-cyan-400","","COLOR","#074856"),colorCyan500:t.create("--ftds-color-cyan-500","","COLOR","#05343e"),colorCyan600:t.create("--ftds-color-cyan-600","","COLOR","#032127"),colorCyan700:t.create("--ftds-color-cyan-700","","COLOR","#010d0f"),colorGreen0:t.create("--ftds-color-green-0","","COLOR","#21a274"),colorGreen10:t.create("--ftds-color-green-10","","COLOR","#edf7f3"),colorGreen20:t.create("--ftds-color-green-20","","COLOR","#cfebe1"),colorGreen30:t.create("--ftds-color-green-30","","COLOR","#b2dfcf"),colorGreen40:t.create("--ftds-color-green-40","","COLOR","#95d3bd"),colorGreen50:t.create("--ftds-color-green-50","","COLOR","#78c7ab"),colorGreen60:t.create("--ftds-color-green-60","","COLOR","#5bba98"),colorGreen70:t.create("--ftds-color-green-70","","COLOR","#3eae86"),colorGreen100:t.create("--ftds-color-green-100","","COLOR","#1d8d65"),colorGreen200:t.create("--ftds-color-green-200","","COLOR","#187856"),colorGreen300:t.create("--ftds-color-green-300","","COLOR","#146246"),colorGreen400:t.create("--ftds-color-green-400","","COLOR","#104d37"),colorGreen500:t.create("--ftds-color-green-500","","COLOR","#0b3828"),colorGreen600:t.create("--ftds-color-green-600","","COLOR","#072319"),colorGreen700:t.create("--ftds-color-green-700","","COLOR","#030d0a"),colorOrange0:t.create("--ftds-color-orange-0","","COLOR","#F2700D"),colorOrange10:t.create("--ftds-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:t.create("--ftds-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:t.create("--ftds-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:t.create("--ftds-color-orange-40","","COLOR","#FECB90"),colorOrange50:t.create("--ftds-color-orange-50","","COLOR","#FCB76E"),colorOrange60:t.create("--ftds-color-orange-60","","COLOR","#F9A34D"),colorOrange70:t.create("--ftds-color-orange-70","","COLOR","#F68B2C"),colorOrange100:t.create("--ftds-color-orange-100","","COLOR","#D35909"),colorOrange200:t.create("--ftds-color-orange-200","","COLOR","#B74706"),colorOrange300:t.create("--ftds-color-orange-300","","COLOR","#913503"),colorOrange400:t.create("--ftds-color-orange-400","","COLOR","#6F2601"),colorOrange500:t.create("--ftds-color-orange-500","","COLOR","#4D1800"),colorOrange600:t.create("--ftds-color-orange-600","","COLOR","#330F00"),colorOrange700:t.create("--ftds-color-orange-700","","COLOR","#140600"),colorRed0:t.create("--ftds-color-red-0","","COLOR","#b40e2c"),colorRed10:t.create("--ftds-color-red-10","","COLOR","#f9ebed"),colorRed20:t.create("--ftds-color-red-20","","COLOR","#efcbd2"),colorRed30:t.create("--ftds-color-red-30","","COLOR","#e5acb6"),colorRed40:t.create("--ftds-color-red-40","","COLOR","#db8c9b"),colorRed50:t.create("--ftds-color-red-50","","COLOR","#d16d7f"),colorRed60:t.create("--ftds-color-red-60","","COLOR","#c84d63"),colorRed70:t.create("--ftds-color-red-70","","COLOR","#be2e48"),colorRed100:t.create("--ftds-color-red-100","","COLOR","#9c0c26"),colorRed200:t.create("--ftds-color-red-200","","COLOR","#850a20"),colorRed300:t.create("--ftds-color-red-300","","COLOR","#6d081b"),colorRed400:t.create("--ftds-color-red-400","","COLOR","#560715"),colorRed500:t.create("--ftds-color-red-500","","COLOR","#3e050f"),colorRed600:t.create("--ftds-color-red-600","","COLOR","#270309"),colorRed700:t.create("--ftds-color-red-700","","COLOR","#0f0104"),colorYellow0:t.create("--ftds-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:t.create("--ftds-color-yellow-10","","COLOR","#fefae9"),colorYellow20:t.create("--ftds-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:t.create("--ftds-color-yellow-30","","COLOR","#faedaa"),colorYellow40:t.create("--ftds-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:t.create("--ftds-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:t.create("--ftds-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:t.create("--ftds-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:t.create("--ftds-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:t.create("--ftds-color-yellow-200","","COLOR","#b3970a"),colorYellow300:t.create("--ftds-color-yellow-300","","COLOR","#947c08"),colorYellow400:t.create("--ftds-color-yellow-400","","COLOR","#746206"),colorYellow500:t.create("--ftds-color-yellow-500","","COLOR","#554705"),colorYellow600:t.create("--ftds-color-yellow-600","","COLOR","#352d03"),colorYellow700:t.create("--ftds-color-yellow-700","","COLOR","#161201"),colorUltramarine0:t.create("--ftds-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:t.create("--ftds-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:t.create("--ftds-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:t.create("--ftds-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:t.create("--ftds-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:t.create("--ftds-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:t.create("--ftds-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:t.create("--ftds-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:t.create("--ftds-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:t.create("--ftds-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:t.create("--ftds-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:t.create("--ftds-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:t.create("--ftds-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:t.create("--ftds-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:t.create("--ftds-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:t.create("--ftds-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:t.create("--ftds-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:t.create("--ftds-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:t.create("--ftds-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:t.create("--ftds-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:t.create("--ftds-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:t.create("--ftds-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:t.create("--ftds-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:t.create("--ftds-color-avocado-100","","COLOR","#84A423"),colorAvocado200:t.create("--ftds-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:t.create("--ftds-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:t.create("--ftds-color-avocado-400","","COLOR","#495B13"),colorAvocado500:t.create("--ftds-color-avocado-500","","COLOR","#35420E"),colorAvocado600:t.create("--ftds-color-avocado-600","","COLOR","#212A09"),colorAvocado700:t.create("--ftds-color-avocado-700","","COLOR","#0E1104"),colorBrown0:t.create("--ftds-color-brown-0","","COLOR","#B26F4D"),colorBrown10:t.create("--ftds-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:t.create("--ftds-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:t.create("--ftds-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:t.create("--ftds-color-brown-40","","COLOR","#DABAAA"),colorBrown50:t.create("--ftds-color-brown-50","","COLOR","#D0A792"),colorBrown60:t.create("--ftds-color-brown-60","","COLOR","#C6947B"),colorBrown70:t.create("--ftds-color-brown-70","","COLOR","#BC8264"),colorBrown100:t.create("--ftds-color-brown-100","","COLOR","#9B6143"),colorBrown200:t.create("--ftds-color-brown-200","","COLOR","#845239"),colorBrown300:t.create("--ftds-color-brown-300","","COLOR","#6D442F"),colorBrown400:t.create("--ftds-color-brown-400","","COLOR","#553525"),colorBrown500:t.create("--ftds-color-brown-500","","COLOR","#3E271B"),colorBrown600:t.create("--ftds-color-brown-600","","COLOR","#271811"),colorBrown700:t.create("--ftds-color-brown-700","","COLOR","#100A07"),spacing1:t.create("--ftds-spacing-1","","SIZE","0.25rem"),spacing2:t.create("--ftds-spacing-2","","SIZE","calc(0.25rem*2)"),spacing3:t.create("--ftds-spacing-3","","SIZE","calc(0.25rem*3)"),spacing4:t.create("--ftds-spacing-4","","SIZE","calc(0.25rem*4)"),spacing5:t.create("--ftds-spacing-5","","SIZE","calc(0.25rem*5)"),spacing6:t.create("--ftds-spacing-6","","SIZE","calc(0.25rem*6)"),spacing8:t.create("--ftds-spacing-8","","SIZE","calc(0.25rem*8)"),spacing10:t.create("--ftds-spacing-10","","SIZE","calc(0.25rem*10)"),spacing12:t.create("--ftds-spacing-12","","SIZE","calc(0.25rem*12)"),spacing16:t.create("--ftds-spacing-16","","SIZE","calc(0.25rem*16)"),spacing20:t.create("--ftds-spacing-20","","SIZE","calc(0.25rem*20)"),spacing24:t.create("--ftds-spacing-24","","SIZE","calc(0.25rem*24)"),spacing28:t.create("--ftds-spacing-28","","SIZE","calc(0.25rem*28)"),spacing32:t.create("--ftds-spacing-32","","SIZE","calc(0.25rem*32)"),spacing05:t.create("--ftds-spacing-0-5","","SIZE","calc(0.25rem*0.5)"),borderRadiusS:t.create("--ftds-border-radius-s","","SIZE","4px"),borderRadiusM:t.create("--ftds-border-radius-m","","SIZE","8px"),borderRadiusL:t.create("--ftds-border-radius-l","","SIZE","12px"),borderRadiusXl:t.create("--ftds-border-radius-xl","","SIZE","16px"),borderRadiusPill:t.create("--ftds-border-radius-pill","","SIZE","999px"),borderRadiusRound:t.create("--ftds-border-radius-round","","SIZE","50%"),iconSize1:t.create("--ftds-icon-size-1","","SIZE","0.75rem"),iconSize2:t.create("--ftds-icon-size-2","","SIZE","1rem"),iconSize3:t.create("--ftds-icon-size-3","","SIZE","1.25rem"),iconSize4:t.create("--ftds-icon-size-4","","SIZE","1.5rem"),iconSize5:t.create("--ftds-icon-size-5","","SIZE","2rem"),iconSize6:t.create("--ftds-icon-size-6","","SIZE","3rem"),opacity0:t.create("--ftds-opacity-0","","NUMBER","0"),opacity8:t.create("--ftds-opacity-8","","NUMBER","0.08"),opacity12:t.create("--ftds-opacity-12","","NUMBER","0.12"),opacity16:t.create("--ftds-opacity-16","","NUMBER","0.16"),opacity24:t.create("--ftds-opacity-24","","NUMBER","0.24"),opacity32:t.create("--ftds-opacity-32","","NUMBER","0.32"),opacity40:t.create("--ftds-opacity-40","","NUMBER","0.4"),opacity48:t.create("--ftds-opacity-48","","NUMBER","0.48"),opacity80:t.create("--ftds-opacity-80","","NUMBER","0.8"),shadowElevation01:t.create("--ftds-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:t.create("--ftds-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:t.create("--ftds-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:t.create("--ftds-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:t.create("--ftds-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:t.create("--ftds-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:t.create("--ftds-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:t.create("--ftds-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:t.create("--ftds-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)")},Ni={fontFamily:t.create("--ftds-typography-display-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-display-font-weight","","UNKNOWN","600"),lineHeight:t.create("--ftds-typography-display-line-height","","SIZE","1.2"),fontSize:t.create("--ftds-typography-display-font-size","","SIZE","2.5rem"),letterSpacing:t.create("--ftds-typography-display-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:t.create("--ftds-typography-display-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-display-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-display-text-decoration","","UNKNOWN","none"),textCase:t.create("--ftds-typography-display-text-case","","UNKNOWN","none")},Pi={fontFamily:t.create("--ftds-typography-title-1-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-title-1-font-weight","","UNKNOWN","600"),lineHeight:t.create("--ftds-typography-title-1-line-height","","SIZE","1.2"),fontSize:t.create("--ftds-typography-title-1-font-size","","SIZE","1.5rem"),letterSpacing:t.create("--ftds-typography-title-1-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:t.create("--ftds-typography-title-1-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-title-1-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-title-1-text-decoration","","UNKNOWN","none"),textCase:t.create("--ftds-typography-title-1-text-case","","UNKNOWN","none")},ki={fontFamily:t.create("--ftds-typography-title-2-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-title-2-font-weight","","UNKNOWN","500"),lineHeight:t.create("--ftds-typography-title-2-line-height","","SIZE","1.2"),fontSize:t.create("--ftds-typography-title-2-font-size","","SIZE","1.25rem"),letterSpacing:t.create("--ftds-typography-title-2-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:t.create("--ftds-typography-title-2-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-title-2-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-title-2-text-decoration","","UNKNOWN","none"),textCase:t.create("--ftds-typography-title-2-text-case","","UNKNOWN","none")},Di={fontFamily:t.create("--ftds-typography-title-3-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-title-3-font-weight","","UNKNOWN","500"),lineHeight:t.create("--ftds-typography-title-3-line-height","","SIZE","1.2"),fontSize:t.create("--ftds-typography-title-3-font-size","","SIZE","1.125rem"),letterSpacing:t.create("--ftds-typography-title-3-letter-spacing","","SIZE","-0.01em"),paragraphSpacing:t.create("--ftds-typography-title-3-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-title-3-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-title-3-text-decoration","","UNKNOWN","none"),textCase:t.create("--ftds-typography-title-3-text-case","","UNKNOWN","none")},Fi={fontFamily:t.create("--ftds-typography-body-1-regular-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-body-1-regular-font-weight","","UNKNOWN","400"),lineHeight:t.create("--ftds-typography-body-1-regular-line-height","","SIZE","1.35"),fontSize:t.create("--ftds-typography-body-1-regular-font-size","","SIZE","1rem"),letterSpacing:t.create("--ftds-typography-body-1-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:t.create("--ftds-typography-body-1-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-body-1-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-body-1-regular-text-decoration","","UNKNOWN","none"),textCase:t.create("--ftds-typography-body-1-regular-text-case","","UNKNOWN","none")},Mi={fontFamily:t.create("--ftds-typography-body-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-body-1-medium-font-weight","","UNKNOWN","500"),lineHeight:t.create("--ftds-typography-body-1-medium-line-height","","SIZE","1.35"),fontSize:t.create("--ftds-typography-body-1-medium-font-size","","SIZE","1rem"),letterSpacing:t.create("--ftds-typography-body-1-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:t.create("--ftds-typography-body-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-body-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-body-1-medium-text-decoration","","UNKNOWN","none"),textCase:t.create("--ftds-typography-body-1-medium-text-case","","UNKNOWN","none")},Bi={fontFamily:t.create("--ftds-typography-body-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-body-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:t.create("--ftds-typography-body-1-semibold-line-height","","SIZE","1.35"),fontSize:t.create("--ftds-typography-body-1-semibold-font-size","","SIZE","1rem"),letterSpacing:t.create("--ftds-typography-body-1-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:t.create("--ftds-typography-body-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-body-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-body-1-semibold-text-decoration","","UNKNOWN","none"),textCase:t.create("--ftds-typography-body-1-semibold-text-case","","UNKNOWN","none")},Ui={fontFamily:t.create("--ftds-typography-body-2-regular-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-body-2-regular-font-weight","","UNKNOWN","400"),lineHeight:t.create("--ftds-typography-body-2-regular-line-height","","SIZE","1.35"),fontSize:t.create("--ftds-typography-body-2-regular-font-size","","SIZE","0.875rem"),letterSpacing:t.create("--ftds-typography-body-2-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:t.create("--ftds-typography-body-2-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-body-2-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-body-2-regular-text-decoration","","UNKNOWN","none"),textCase:t.create("--ftds-typography-body-2-regular-text-case","","UNKNOWN","none")},Hi={fontFamily:t.create("--ftds-typography-body-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-body-2-medium-font-weight","","UNKNOWN","500"),lineHeight:t.create("--ftds-typography-body-2-medium-line-height","","SIZE","1.35"),fontSize:t.create("--ftds-typography-body-2-medium-font-size","","SIZE","0.875rem"),letterSpacing:t.create("--ftds-typography-body-2-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:t.create("--ftds-typography-body-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-body-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-body-2-medium-text-decoration","","UNKNOWN","none"),textCase:t.create("--ftds-typography-body-2-medium-text-case","","UNKNOWN","none")},uc={fontFamily:t.create("--ftds-typography-body-2-medium-underline-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-body-2-medium-underline-font-weight","","UNKNOWN","500"),lineHeight:t.create("--ftds-typography-body-2-medium-underline-line-height","","SIZE","1.35"),fontSize:t.create("--ftds-typography-body-2-medium-underline-font-size","","SIZE","0.875rem"),letterSpacing:t.create("--ftds-typography-body-2-medium-underline-letter-spacing","","SIZE","normal"),paragraphSpacing:t.create("--ftds-typography-body-2-medium-underline-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-body-2-medium-underline-paragraph-indent","","UNKNOWN","0"),textCase:t.create("--ftds-typography-body-2-medium-underline-text-case","","UNKNOWN","none"),textDecoration:t.create("--ftds-typography-body-2-medium-underline-text-decoration","","UNKNOWN","underline")},zi={fontFamily:t.create("--ftds-typography-body-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-body-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:t.create("--ftds-typography-body-2-semibold-line-height","","SIZE","1.35"),fontSize:t.create("--ftds-typography-body-2-semibold-font-size","","SIZE","0.875rem"),letterSpacing:t.create("--ftds-typography-body-2-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:t.create("--ftds-typography-body-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-body-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-body-2-semibold-text-decoration","","UNKNOWN","none"),textCase:t.create("--ftds-typography-body-2-semibold-text-case","","UNKNOWN","none")},Gi={fontFamily:t.create("--ftds-typography-caption-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-caption-1-medium-font-weight","","UNKNOWN","500"),lineHeight:t.create("--ftds-typography-caption-1-medium-line-height","","SIZE","1.3"),fontSize:t.create("--ftds-typography-caption-1-medium-font-size","","SIZE","0.75rem"),letterSpacing:t.create("--ftds-typography-caption-1-medium-letter-spacing","","SIZE","normal"),textCase:t.create("--ftds-typography-caption-1-medium-text-case","","UNKNOWN","none"),paragraphSpacing:t.create("--ftds-typography-caption-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-caption-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-caption-1-medium-text-decoration","","UNKNOWN","none")},Wi={fontFamily:t.create("--ftds-typography-caption-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-caption-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:t.create("--ftds-typography-caption-1-semibold-line-height","","SIZE","1.3"),fontSize:t.create("--ftds-typography-caption-1-semibold-font-size","","SIZE","0.75rem"),letterSpacing:t.create("--ftds-typography-caption-1-semibold-letter-spacing","","SIZE","normal"),textCase:t.create("--ftds-typography-caption-1-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:t.create("--ftds-typography-caption-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-caption-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-caption-1-semibold-text-decoration","","UNKNOWN","none")},$i={fontFamily:t.create("--ftds-typography-caption-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-caption-2-medium-font-weight","","UNKNOWN","500"),lineHeight:t.create("--ftds-typography-caption-2-medium-line-height","","SIZE","1.3"),fontSize:t.create("--ftds-typography-caption-2-medium-font-size","","SIZE","0.6875rem"),letterSpacing:t.create("--ftds-typography-caption-2-medium-letter-spacing","","SIZE","normal"),textCase:t.create("--ftds-typography-caption-2-medium-text-case","","UNKNOWN","none"),paragraphSpacing:t.create("--ftds-typography-caption-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-caption-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-caption-2-medium-text-decoration","","UNKNOWN","none")},ji={fontFamily:t.create("--ftds-typography-caption-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-caption-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:t.create("--ftds-typography-caption-2-semibold-line-height","","SIZE","1.3"),fontSize:t.create("--ftds-typography-caption-2-semibold-font-size","","SIZE","0.6875rem"),letterSpacing:t.create("--ftds-typography-caption-2-semibold-letter-spacing","","SIZE","normal"),textCase:t.create("--ftds-typography-caption-2-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:t.create("--ftds-typography-caption-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-caption-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-caption-2-semibold-text-decoration","","UNKNOWN","none")},Vi={fontFamily:t.create("--ftds-typography-caption-2-bold-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-caption-2-bold-font-weight","","UNKNOWN","700"),lineHeight:t.create("--ftds-typography-caption-2-bold-line-height","","SIZE","1.3"),fontSize:t.create("--ftds-typography-caption-2-bold-font-size","","SIZE","0.6875rem"),letterSpacing:t.create("--ftds-typography-caption-2-bold-letter-spacing","","SIZE","normal"),textCase:t.create("--ftds-typography-caption-2-bold-text-case","","UNKNOWN","none"),paragraphSpacing:t.create("--ftds-typography-caption-2-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-caption-2-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-caption-2-bold-text-decoration","","UNKNOWN","none")},Bo={display:Ni,"title-1":Pi,"title-2":ki,"title-3":Di,"body-1-regular":Fi,"body-1-medium":Mi,"body-1-semibold":Bi,"body-2-regular":Ui,"body-2-medium":Hi,"body-2-medium-underline":uc,"body-2-semibold":zi,"caption-1-medium":Gi,"caption-1-semibold":Wi,"caption-2-medium":$i,"caption-2-semibold":ji,"caption-2-bold":Vi};var l={backgroundActionPrimary:t.extend("--ftds-background-action-primary","Used as backgorund of primary action components.",i.colorBrand0),backgroundErrorSubtle:t.extend("--ftds-background-error-subtle","Used as background of subtle error components.",i.colorRed10),backgroundInfoSubtle:t.extend("--ftds-background-info-subtle","Used as background of subtle information components.",i.colorCyan10),backgroundWarningSubtle:t.extend("--ftds-background-warning-subtle","Used as background of subtle information components.",i.colorOrange10),backgroundSuccessSubtle:t.extend("--ftds-background-success-subtle","Used as background of subtle success components.",i.colorGreen10),backgroundGlobalSurface:t.extend("--ftds-background-global-surface","Used as app background.",i.colorWhite),backgroundGlobalOnSurface:t.extend("--ftds-background-global-on-surface","Used as background on element on the base background, like cards.",i.colorGray10),backgroundGlobalOnSurfaceDark:t.extend("--ftds-background-global-on-surface-dark","Used as background on element that need background separation.",i.colorGray30),contentActionPrimary:t.extend("--ftds-content-action-primary","Used on label of primary action on light surface.",i.colorBrand0),contentWarningPrimary:t.extend("--ftds-content-warning-primary","Used on label of warning messages on light surface.",i.colorOrange200),contentWarningIconOnly:t.extend("--ftds-content-warning-icon-only","Used on warning status icons alone",i.colorOrange0),contentErrorPrimary:t.extend("--ftds-content-error-primary","Used on label of error messages on light surface.",i.colorRed0),contentErrorIconOnly:t.extend("--ftds-content-error-icon-only","Used on error status icons alone",i.colorRed70),contentInfoPrimary:t.extend("--ftds-content-info-primary","Used on label of information messages on light surface.",i.colorCyan200),contentInfoIconOnly:t.extend("--ftds-content-info-icon-only","Used on info status icons alone",i.colorCyan0),contentSuccessPrimary:t.extend("--ftds-content-success-primary","Used on label of success messages on light surface.",i.colorGreen200),contentSuccessIconOnly:t.extend("--ftds-content-success-icon-only","Used on success status icons alone",i.colorGreen0),contentGlobalPrimary:t.extend("--ftds-content-global-primary","Used for main content on the page.",i.colorGray500),contentGlobalSecondary:t.extend("--ftds-content-global-secondary",`Used for secondary content, often paired with primary content.
184
- Also for action icons.`,i.colorGray200),contentGlobalSubtle:t.extend("--ftds-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",i.colorGray0),contentGlobalOnColor:t.extend("--ftds-content-global-on-color","Used for content on a dominant color.",i.colorWhite),borderActionPrimary:t.extend("--ftds-border-action-primary","Used as border for primary action components.",i.colorBrand0),borderActionFocusRing:t.extend("--ftds-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",i.colorCyan0),borderWarningPrimary:t.extend("--ftds-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",i.colorOrange200),borderWarningSubtle:t.extend("--ftds-border-warning-subtle","Used as border for warning components.",i.colorOrange30),borderSuccessPrimary:t.extend("--ftds-border-success-primary","Used as border for success buttons.",i.colorGreen200),borderSuccessSubtle:t.extend("--ftds-border-success-subtle","Used as border for success components.",i.colorGreen30),borderErrorPrimary:t.extend("--ftds-border-error-primary","Used as border for text fields in error states.",i.colorRed0),borderErrorSubtle:t.extend("--ftds-border-error-subtle","Used as border for error components.",i.colorRed30),borderInfoPrimary:t.extend("--ftds-border-info-primary","Used as border for buttons in info color.",i.colorCyan200),borderInfoSubtle:t.extend("--ftds-border-info-subtle","Used as border for information components.",i.colorCyan30),borderGlobalPrimary:t.extend("--ftds-border-global-primary","Used as border for elements/areas filled with background.global.on-surface-dark",i.colorGray50),borderGlobalSecondary:t.extend("--ftds-border-global-secondary","Used as border for elements/areas filled with background.global.on-surface",i.colorGray40),borderGlobalSubtle:t.extend("--ftds-border-global-subtle","Used as border to deliminate an area/element filled with background.global.surface and separators.",i.colorGray30),borderInputPrimary:t.extend("--ftds-border-input-primary","Used as border for checkboxes and radio buttons",i.colorGray80),borderNeutralPrimary:t.extend("--ftds-border-neutral-primary","Used as border for neutral secondary buttons",i.colorGray200)};var vf={largeHeight:t.create("--ftds-button-large-height","","SIZE","40px"),largeHorizontalPadding:t.extend("--ftds-button-large-horizontal-padding","",i.spacing4),largeGap:t.extend("--ftds-button-large-gap","",i.spacing2),largeBorderRadius:t.extend("--ftds-button-large-border-radius","",i.borderRadiusS),largeIconSize:t.extend("--ftds-button-large-icon-size","",i.iconSize3),largeBorderWidth:t.create("--ftds-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:t.create("--ftds-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:t.create("--ftds-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:t.create("--ftds-button-large-icon-only-width","","SIZE","40px"),mediumHeight:t.create("--ftds-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:t.extend("--ftds-button-medium-horizontal-padding","",i.spacing3),mediumGap:t.extend("--ftds-button-medium-gap","",i.spacing2),mediumBorderRadius:t.extend("--ftds-button-medium-border-radius","",i.borderRadiusS),mediumIconSize:t.extend("--ftds-button-medium-icon-size","",i.iconSize2),mediumBorderWidth:t.create("--ftds-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:t.create("--ftds-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:t.create("--ftds-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:t.create("--ftds-button-medium-icon-only-width","","SIZE","30px"),smallHeight:t.create("--ftds-button-small-height","","SIZE","20px"),smallHorizontalPadding:t.extend("--ftds-button-small-horizontal-padding","",i.spacing2),smallGap:t.extend("--ftds-button-small-gap","",i.spacing1),smallBorderRadius:t.extend("--ftds-button-small-border-radius","",i.borderRadiusS),smallIconSize:t.extend("--ftds-button-small-icon-size","",i.iconSize1),smallBorderWidth:t.create("--ftds-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:t.create("--ftds-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:t.create("--ftds-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:t.create("--ftds-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:t.create("--ftds-button-x-small-height","","SIZE","16px"),xSmallIconSize:t.extend("--ftds-button-x-small-icon-size","",i.iconSize1),xSmallFocusOutlineOffset:t.create("--ftds-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:t.create("--ftds-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:t.create("--ftds-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:t.extend("--ftds-button-round-border-radius","",i.borderRadiusPill),primaryBrandBackgroundColor:t.extend("--ftds-button-primary-brand-background-color","",l.backgroundActionPrimary),primaryBrandColor:t.extend("--ftds-button-primary-brand-color","",l.contentGlobalOnColor),primaryBrandIconColor:t.extend("--ftds-button-primary-brand-icon-color","",l.contentGlobalOnColor),primaryBrandStateLayerColor:t.extend("--ftds-button-primary-brand-state-layer-color","",l.contentGlobalOnColor),primaryBrandHoverStateLayerOpacity:t.extend("--ftds-button-primary-brand-hover-state-layer-opacity","",i.opacity16),primaryBrandFocusStateLayerOpacity:t.extend("--ftds-button-primary-brand-focus-state-layer-opacity","",i.opacity16),primaryBrandActiveStateLayerOpacity:t.extend("--ftds-button-primary-brand-active-state-layer-opacity","",i.opacity24),primaryBrandDisabledComponentOpacity:t.extend("--ftds-button-primary-brand-disabled-component-opacity","",i.opacity40),focusFocusRingColor:t.extend("--ftds-button-focus-focus-ring-color","",l.borderActionFocusRing),tertiaryBrandBackgroundColor:t.create("--ftds-button-tertiary-brand-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryBrandColor:t.extend("--ftds-button-tertiary-brand-color","",l.contentActionPrimary),tertiaryBrandIconColor:t.extend("--ftds-button-tertiary-brand-icon-color","",l.contentActionPrimary),tertiaryBrandStateLayerColor:t.extend("--ftds-button-tertiary-brand-state-layer-color","",l.contentActionPrimary),tertiaryBrandHoverStateLayerOpacity:t.extend("--ftds-button-tertiary-brand-hover-state-layer-opacity","",i.opacity8),tertiaryBrandFocusStateLayerOpacity:t.extend("--ftds-button-tertiary-brand-focus-state-layer-opacity","",i.opacity8),tertiaryBrandActiveStateLayerOpacity:t.extend("--ftds-button-tertiary-brand-active-state-layer-opacity","",i.opacity16),tertiaryBrandDisabledComponentOpacity:t.extend("--ftds-button-tertiary-brand-disabled-component-opacity","",i.opacity40),tertiaryInfoBackgroundColor:t.create("--ftds-button-tertiary-info-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryInfoColor:t.extend("--ftds-button-tertiary-info-color","",l.contentInfoPrimary),tertiaryInfoIconColor:t.extend("--ftds-button-tertiary-info-icon-color","",l.contentInfoPrimary),tertiaryInfoStateLayerColor:t.extend("--ftds-button-tertiary-info-state-layer-color","",l.contentInfoPrimary),tertiaryInfoFocusStateLayerOpacity:t.extend("--ftds-button-tertiary-info-focus-state-layer-opacity","",i.opacity8),tertiaryInfoHoverStateLayerOpacity:t.extend("--ftds-button-tertiary-info-hover-state-layer-opacity","",i.opacity8),tertiaryInfoActiveStateLayerOpacity:t.extend("--ftds-button-tertiary-info-active-state-layer-opacity","",i.opacity16),tertiaryInfoDisabledComponentOpacity:t.extend("--ftds-button-tertiary-info-disabled-component-opacity","",i.opacity40),tertiarySuccessBackgroundColor:t.create("--ftds-button-tertiary-success-background-color","","COLOR","rgba(0,0,0,0)"),tertiarySuccessColor:t.extend("--ftds-button-tertiary-success-color","",l.contentSuccessPrimary),tertiarySuccessIconColor:t.extend("--ftds-button-tertiary-success-icon-color","",l.contentSuccessPrimary),tertiarySuccessStateLayerColor:t.extend("--ftds-button-tertiary-success-state-layer-color","",l.contentSuccessPrimary),tertiarySuccessHoverStateLayerOpacity:t.extend("--ftds-button-tertiary-success-hover-state-layer-opacity","",i.opacity8),tertiarySuccessFocusStateLayerOpacity:t.extend("--ftds-button-tertiary-success-focus-state-layer-opacity","",i.opacity8),tertiarySuccessActiveStateLayerOpacity:t.extend("--ftds-button-tertiary-success-active-state-layer-opacity","",i.opacity16),tertiarySuccessDisabledComponentOpacity:t.extend("--ftds-button-tertiary-success-disabled-component-opacity","",i.opacity40),tertiaryWarningBackgroundColor:t.create("--ftds-button-tertiary-warning-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryWarningColor:t.extend("--ftds-button-tertiary-warning-color","",l.contentWarningPrimary),tertiaryWarningIconColor:t.extend("--ftds-button-tertiary-warning-icon-color","",l.contentWarningPrimary),tertiaryWarningStateLayerColor:t.extend("--ftds-button-tertiary-warning-state-layer-color","",l.contentWarningPrimary),tertiaryWarningHoverStateLayerOpacity:t.extend("--ftds-button-tertiary-warning-hover-state-layer-opacity","",i.opacity8),tertiaryWarningFocusStateLayerOpacity:t.extend("--ftds-button-tertiary-warning-focus-state-layer-opacity","",i.opacity8),tertiaryWarningActiveStateLayerOpacity:t.extend("--ftds-button-tertiary-warning-active-state-layer-opacity","",i.opacity16),tertiaryWarningDisabledComponentOpacity:t.extend("--ftds-button-tertiary-warning-disabled-component-opacity","",i.opacity40),tertiaryErrorBackgroundColor:t.create("--ftds-button-tertiary-error-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryErrorColor:t.extend("--ftds-button-tertiary-error-color","",l.contentErrorPrimary),tertiaryErrorIconColor:t.extend("--ftds-button-tertiary-error-icon-color","",l.contentErrorPrimary),tertiaryErrorStateLayerColor:t.extend("--ftds-button-tertiary-error-state-layer-color","",l.contentErrorPrimary),tertiaryErrorHoverStateLayerOpacity:t.extend("--ftds-button-tertiary-error-hover-state-layer-opacity","",i.opacity8),tertiaryErrorFocusStateLayerOpacity:t.extend("--ftds-button-tertiary-error-focus-state-layer-opacity","",i.opacity8),tertiaryErrorActiveStateLayerOpacity:t.extend("--ftds-button-tertiary-error-active-state-layer-opacity","",i.opacity16),tertiaryErrorDisabledComponentOpacity:t.extend("--ftds-button-tertiary-error-disabled-component-opacity","",i.opacity40),tertiaryNeutralBackgroundColor:t.create("--ftds-button-tertiary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryNeutralIconColor:t.extend("--ftds-button-tertiary-neutral-icon-color","",l.contentGlobalSecondary),tertiaryNeutralColor:t.extend("--ftds-button-tertiary-neutral-color","",l.contentGlobalSecondary),tertiaryNeutralStateLayerColor:t.extend("--ftds-button-tertiary-neutral-state-layer-color","",l.contentGlobalSecondary),tertiaryNeutralHoverStateLayerOpacity:t.extend("--ftds-button-tertiary-neutral-hover-state-layer-opacity","",i.opacity8),tertiaryNeutralFocusStateLayerOpacity:t.extend("--ftds-button-tertiary-neutral-focus-state-layer-opacity","",i.opacity8),tertiaryNeutralActiveStateLayerOpacity:t.extend("--ftds-button-tertiary-neutral-active-state-layer-opacity","",i.opacity16),tertiaryNeutralDisabledComponentOpacity:t.extend("--ftds-button-tertiary-neutral-disabled-component-opacity","",i.opacity40),secondaryBrandBackgroundColor:t.create("--ftds-button-secondary-brand-background-color","","COLOR","rgba(0,0,0,0)"),secondaryBrandColor:t.extend("--ftds-button-secondary-brand-color","",l.contentActionPrimary),secondaryBrandIconColor:t.extend("--ftds-button-secondary-brand-icon-color","",l.contentActionPrimary),secondaryBrandStateLayerColor:t.extend("--ftds-button-secondary-brand-state-layer-color","",l.contentActionPrimary),secondaryBrandHoverStateLayerOpacity:t.extend("--ftds-button-secondary-brand-hover-state-layer-opacity","",i.opacity8),secondaryBrandFocusStateLayerOpacity:t.extend("--ftds-button-secondary-brand-focus-state-layer-opacity","",i.opacity8),secondaryBrandActiveStateLayerOpacity:t.extend("--ftds-button-secondary-brand-active-state-layer-opacity","",i.opacity16),secondaryBrandDisabledComponentOpacity:t.extend("--ftds-button-secondary-brand-disabled-component-opacity","",i.opacity40),secondaryBrandBorderColor:t.extend("--ftds-button-secondary-brand-border-color","",l.borderActionPrimary),secondaryNeutralHoverStateLayerOpacity:t.extend("--ftds-button-secondary-neutral-hover-state-layer-opacity","",i.opacity8),secondaryNeutralFocusStateLayerOpacity:t.extend("--ftds-button-secondary-neutral-focus-state-layer-opacity","",i.opacity8),secondaryNeutralActiveStateLayerOpacity:t.extend("--ftds-button-secondary-neutral-active-state-layer-opacity","",i.opacity16),secondaryNeutralDisabledComponentOpacity:t.extend("--ftds-button-secondary-neutral-disabled-component-opacity","",i.opacity40),secondaryNeutralBackgroundColor:t.create("--ftds-button-secondary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),secondaryNeutralColor:t.extend("--ftds-button-secondary-neutral-color","",l.contentGlobalSecondary),secondaryNeutralIconColor:t.extend("--ftds-button-secondary-neutral-icon-color","",l.contentGlobalSecondary),secondaryNeutralStateLayerColor:t.extend("--ftds-button-secondary-neutral-state-layer-color","",l.contentGlobalSecondary),secondaryNeutralBorderColor:t.extend("--ftds-button-secondary-neutral-border-color","",l.borderNeutralPrimary),secondaryInfoHoverStateLayerOpacity:t.extend("--ftds-button-secondary-info-hover-state-layer-opacity","",i.opacity8),secondaryInfoFocusStateLayerOpacity:t.extend("--ftds-button-secondary-info-focus-state-layer-opacity","",i.opacity8),secondaryInfoActiveStateLayerOpacity:t.extend("--ftds-button-secondary-info-active-state-layer-opacity","",i.opacity16),secondaryInfoDisabledComponentOpacity:t.extend("--ftds-button-secondary-info-disabled-component-opacity","",i.opacity40),secondaryInfoBackgroundColor:t.create("--ftds-button-secondary-info-background-color","","COLOR","rgba(0,0,0,0)"),secondaryInfoBorderColor:t.extend("--ftds-button-secondary-info-border-color","",l.borderInfoPrimary),secondaryInfoColor:t.extend("--ftds-button-secondary-info-color","",l.contentInfoPrimary),secondaryInfoIconColor:t.extend("--ftds-button-secondary-info-icon-color","",l.contentInfoPrimary),secondaryInfoStateLayerColor:t.extend("--ftds-button-secondary-info-state-layer-color","",l.contentInfoPrimary),secondarySuccessHoverStateLayerOpacity:t.extend("--ftds-button-secondary-success-hover-state-layer-opacity","",i.opacity8),secondarySuccessFocusStateLayerOpacity:t.extend("--ftds-button-secondary-success-focus-state-layer-opacity","",i.opacity8),secondarySuccessActiveStateLayerOpacity:t.extend("--ftds-button-secondary-success-active-state-layer-opacity","",i.opacity16),secondarySuccessDisabledComponentOpacity:t.extend("--ftds-button-secondary-success-disabled-component-opacity","",i.opacity40),secondarySuccessBackgroundColor:t.create("--ftds-button-secondary-success-background-color","","COLOR","rgba(0,0,0,0)"),secondarySuccessBorderColor:t.extend("--ftds-button-secondary-success-border-color","",l.borderSuccessPrimary),secondarySuccessColor:t.extend("--ftds-button-secondary-success-color","",l.contentSuccessPrimary),secondarySuccessIconColor:t.extend("--ftds-button-secondary-success-icon-color","",l.contentSuccessPrimary),secondarySuccessStateLayerColor:t.extend("--ftds-button-secondary-success-state-layer-color","",l.contentSuccessPrimary),secondaryWarningHoverStateLayerOpacity:t.extend("--ftds-button-secondary-warning-hover-state-layer-opacity","",i.opacity8),secondaryWarningFocusStateLayerOpacity:t.extend("--ftds-button-secondary-warning-focus-state-layer-opacity","",i.opacity8),secondaryWarningActiveStateLayerOpacity:t.extend("--ftds-button-secondary-warning-active-state-layer-opacity","",i.opacity16),secondaryWarningDisabledComponentOpacity:t.extend("--ftds-button-secondary-warning-disabled-component-opacity","",i.opacity40),secondaryWarningBackgroundColor:t.create("--ftds-button-secondary-warning-background-color","","COLOR","rgba(0,0,0,0)"),secondaryWarningBorderColor:t.extend("--ftds-button-secondary-warning-border-color","",l.borderWarningPrimary),secondaryWarningColor:t.extend("--ftds-button-secondary-warning-color","",l.contentWarningPrimary),secondaryWarningIconColor:t.extend("--ftds-button-secondary-warning-icon-color","",l.contentWarningPrimary),secondaryWarningStateLayerColor:t.extend("--ftds-button-secondary-warning-state-layer-color","",l.contentWarningPrimary),secondaryErrorHoverStateLayerOpacity:t.extend("--ftds-button-secondary-error-hover-state-layer-opacity","",i.opacity8),secondaryErrorFocusStateLayerOpacity:t.extend("--ftds-button-secondary-error-focus-state-layer-opacity","",i.opacity8),secondaryErrorActiveStateLayerOpacity:t.extend("--ftds-button-secondary-error-active-state-layer-opacity","",i.opacity16),secondaryErrorDisabledComponentOpacity:t.extend("--ftds-button-secondary-error-disabled-component-opacity","",i.opacity40),secondaryErrorBackgroundColor:t.create("--ftds-button-secondary-error-background-color","","COLOR","rgba(0,0,0,0)"),secondaryErrorBorderColor:t.extend("--ftds-button-secondary-error-border-color","",l.contentErrorPrimary),secondaryErrorColor:t.extend("--ftds-button-secondary-error-color","",l.contentErrorPrimary),secondaryErrorIconColor:t.extend("--ftds-button-secondary-error-icon-color","",l.contentErrorPrimary),secondaryErrorStateLayerColor:t.extend("--ftds-button-secondary-error-state-layer-color","",l.contentErrorPrimary)};var Ef={loadMoreIconSize:t.extend("--ftds-tree-list-load-more-icon-size","",i.iconSize2),loadMorePaddingLeft:t.extend("--ftds-tree-list-load-more-padding-left","",i.spacing6),loadMoreUnselectedDefaultBorderColor:t.extend("--ftds-tree-list-load-more-unselected-default-border-color","",l.borderGlobalSubtle),loadMoreIconColor:t.extend("--ftds-tree-list-load-more-icon-color","",l.contentActionPrimary),loadMoreLabelColor:t.extend("--ftds-tree-list-load-more-label-color","",l.contentActionPrimary),loadMoreHoverBorderColor:t.extend("--ftds-tree-list-load-more-hover-border-color","",i.colorBrand20),loadMoreHoverBackgroundColor:t.create("--ftds-tree-list-load-more-hover-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreActiveBorderColor:t.extend("--ftds-tree-list-load-more-active-border-color","",i.colorBrand20),loadMoreActiveBackgroundColor:t.create("--ftds-tree-list-load-more-active-background-color","","COLOR","rgba(157,32,123,0.16)"),loadMoreFocusBackgroundColor:t.create("--ftds-tree-list-load-more-focus-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreDescendantOfSelectedDefaultBackgroundColor:t.create("--ftds-tree-list-load-more-descendant-of-selected-default-background-color","","COLOR","rgba(113,113,142,0.08)"),loadMoreDescendantOfSelectedDefaultBorderColor:t.extend("--ftds-tree-list-load-more-descendant-of-selected-default-border-color","",l.borderGlobalPrimary),loadMoreLabelMarginLeft:t.extend("--ftds-tree-list-load-more-label-margin-left","",i.spacing1),nodeIconSize:t.extend("--ftds-tree-list-node-icon-size","",i.iconSize2),nodeHeight:t.create("--ftds-tree-list-node-height","","SIZE","36px"),nodeParentLabelMarginLeft:t.extend("--ftds-tree-list-node-parent-label-margin-left","",i.spacing2),nodeParentLabelMarginRight:t.extend("--ftds-tree-list-node-parent-label-margin-right","",i.spacing2),nodeRootPaddingLeft:t.extend("--ftds-tree-list-node-root-padding-left","",i.spacing6),nodeChildPaddingLeft:t.extend("--ftds-tree-list-node-child-padding-left","",i.spacing5),nodeLeafPaddingLeft:t.extend("--ftds-tree-list-node-leaf-padding-left","",i.spacing6),nodeUnselectedDefaultBorderColor:t.extend("--ftds-tree-list-node-unselected-default-border-color","",l.borderGlobalSubtle),nodeUnselectedIconColor:t.extend("--ftds-tree-list-node-unselected-icon-color","",l.contentGlobalSecondary),nodeUnselectedLabelColor:t.extend("--ftds-tree-list-node-unselected-label-color","",l.contentGlobalSecondary),nodeUnselectedCounterColor:t.extend("--ftds-tree-list-node-unselected-counter-color","",l.contentGlobalSecondary),nodeHoverBorderColor:t.extend("--ftds-tree-list-node-hover-border-color","",l.borderActionPrimary),nodeFocusFocusRingColor:t.extend("--ftds-tree-list-node-focus-focus-ring-color","",l.borderActionFocusRing),nodeFocusOutlineWidth:t.create("--ftds-tree-list-node-focus-outline-width","","SIZE","2px"),nodeSelectedDefaultBorderColor:t.extend("--ftds-tree-list-node-selected-default-border-color","",l.borderGlobalPrimary),nodeSelectedIconColor:t.extend("--ftds-tree-list-node-selected-icon-color","",l.contentGlobalSecondary),nodeSelectedLabelColor:t.extend("--ftds-tree-list-node-selected-label-color","",l.contentGlobalPrimary),nodeSelectedCounterColor:t.extend("--ftds-tree-list-node-selected-counter-color","",l.contentGlobalSecondary),nodeSelectedBackgroundColor:t.create("--ftds-tree-list-node-selected-background-color","","COLOR","rgba(113,113,142,0.24)"),nodeDescendantOfSelectedDefaultBorderColor:t.extend("--ftds-tree-list-node-descendant-of-selected-default-border-color","",l.borderGlobalPrimary),nodeDescendantOfSelectedIconColor:t.extend("--ftds-tree-list-node-descendant-of-selected-icon-color","",l.contentGlobalSecondary),nodeDescendantOfSelectedLabelColor:t.extend("--ftds-tree-list-node-descendant-of-selected-label-color","",l.contentGlobalSecondary),nodeDescendantOfSelectedCounterColor:t.extend("--ftds-tree-list-node-descendant-of-selected-counter-color","",l.contentGlobalSecondary),nodeDescendantOfSelectedBackgroundColor:t.create("--ftds-tree-list-node-descendant-of-selected-background-color","","COLOR","rgba(113,113,142,0.08)"),nodeBorderWidth:t.create("--ftds-tree-list-node-border-width","","SIZE","1px"),headerSectionPaddingLeft:t.extend("--ftds-tree-list-header-section-padding-left","",i.spacing6),headerSectionPaddingRight:t.extend("--ftds-tree-list-header-section-padding-right","",i.spacing3),headerSectionHorizontalGap:t.extend("--ftds-tree-list-header-section-horizontal-gap","",i.spacing2),headerSectionMarginBottom:t.extend("--ftds-tree-list-header-section-margin-bottom","",i.spacing2),headerSectionColor:t.extend("--ftds-tree-list-header-section-color","",l.contentGlobalPrimary),headerSectionCounterColor:t.extend("--ftds-tree-list-header-section-counter-color","",l.contentGlobalSecondary),listContainerBorderWidth:t.create("--ftds-tree-list-list-container-border-width","","SIZE","1px"),listContainerBackgroundColor:t.extend("--ftds-tree-list-list-container-background-color","",l.backgroundGlobalSurface),listContainerBorderColor:t.extend("--ftds-tree-list-list-container-border-color","",l.borderGlobalSubtle),emptyStateIllustrationWidth:t.create("--ftds-tree-list-empty-state-illustration-width","","SIZE","192px"),emptyStateIllustrationHeight:t.create("--ftds-tree-list-empty-state-illustration-height","","SIZE","192px"),emptyStateIllustrationMarginBottom:t.extend("--ftds-tree-list-empty-state-illustration-margin-bottom","",i.spacing10),emptyStateContainerPaddingTop:t.extend("--ftds-tree-list-empty-state-container-padding-top","",i.spacing10),emptyStateContainerPaddingBottom:t.extend("--ftds-tree-list-empty-state-container-padding-bottom","",i.spacing10),emptyStateTitleMarginBottom:t.extend("--ftds-tree-list-empty-state-title-margin-bottom","",i.spacing2),emptyStateTitleLabelColor:t.extend("--ftds-tree-list-empty-state-title-label-color","",l.contentGlobalSecondary),emptyStateDescriptionLabelColor:t.extend("--ftds-tree-list-empty-state-description-label-color","",l.contentGlobalSecondary)};var Rf={iconSize:t.extend("--ftds-checkbox-icon-size","",i.iconSize2),boxSize:t.create("--ftds-checkbox-box-size","","SIZE","18px"),colorLegendSize:t.create("--ftds-checkbox-color-legend-size","","SIZE","16px"),borderRadius:t.create("--ftds-checkbox-border-radius","","SIZE","1px"),labelHorizontalGap:t.extend("--ftds-checkbox-label-horizontal-gap","",i.spacing1),color:t.extend("--ftds-checkbox-color","",l.contentGlobalPrimary),checkedBackgroundColor:t.extend("--ftds-checkbox-checked-background-color","",l.contentActionPrimary),checkedStateLayerColor:t.extend("--ftds-checkbox-checked-state-layer-color","",l.contentActionPrimary),checkedIconColor:t.extend("--ftds-checkbox-checked-icon-color","",l.contentGlobalOnColor),checkedHoverStateLayerOpacity:t.extend("--ftds-checkbox-checked-hover-state-layer-opacity","",i.opacity16),checkedFocusStateLayerOpacity:t.extend("--ftds-checkbox-checked-focus-state-layer-opacity","",i.opacity16),checkedActiveStateLayerOpacity:t.extend("--ftds-checkbox-checked-active-state-layer-opacity","",i.opacity24),checkedDisabledComponentOpacity:t.extend("--ftds-checkbox-checked-disabled-component-opacity","",i.opacity40),uncheckedBorderColor:t.extend("--ftds-checkbox-unchecked-border-color","",i.colorGray80),uncheckedStateLayerColor:t.extend("--ftds-checkbox-unchecked-state-layer-color","",i.colorGray80),uncheckedHoverStateLayerOpacity:t.extend("--ftds-checkbox-unchecked-hover-state-layer-opacity","",i.opacity16),uncheckedFocusStateLayerOpacity:t.extend("--ftds-checkbox-unchecked-focus-state-layer-opacity","",i.opacity16),uncheckedActiveStateLayerOpacity:t.extend("--ftds-checkbox-unchecked-active-state-layer-opacity","",i.opacity24),uncheckedDisabledComponentOpacity:t.extend("--ftds-checkbox-unchecked-disabled-component-opacity","",i.opacity40),focusFocusRingColor:t.extend("--ftds-checkbox-focus-focus-ring-color","",l.borderActionFocusRing),focusOutlineOffset:t.create("--ftds-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:t.create("--ftds-checkbox-focus-outline-width","","SIZE","2px"),focusOutlineBorderRadius:t.create("--ftds-checkbox-focus-outline-border-radius","","SIZE","2px"),borderWidth:t.create("--ftds-checkbox-border-width","","SIZE","2px"),horizontalGap:t.extend("--ftds-checkbox-horizontal-gap","",i.spacing3),helperPaddingTop:t.create("--ftds-checkbox-helper-padding-top","","SIZE","0px"),helperIconSize:t.extend("--ftds-checkbox-helper-icon-size","",i.iconSize2),helperHorizontalGap:t.extend("--ftds-checkbox-helper-horizontal-gap","",i.spacing1),errorUncheckedBorderColor:t.extend("--ftds-checkbox-error-unchecked-border-color","",l.borderErrorPrimary),errorStateLayerColor:t.extend("--ftds-checkbox-error-state-layer-color","",l.contentErrorPrimary),errorHelperTextColor:t.extend("--ftds-checkbox-error-helper-text-color","",l.borderErrorPrimary),errorCheckedBackgroundColor:t.extend("--ftds-checkbox-error-checked-background-color","",l.contentErrorPrimary),helperTextColor:t.extend("--ftds-checkbox-helper-text-color","",l.contentGlobalSubtle),groupVerticalGap:t.extend("--ftds-checkbox-group-vertical-gap","",i.spacing3)};var kf={circleSize:t.create("--ftds-radio-circle-size","","SIZE","18px"),borderWidth:t.create("--ftds-radio-border-width","","SIZE","2px"),color:t.extend("--ftds-radio-color","",l.contentGlobalPrimary),selectedRadioColor:t.extend("--ftds-radio-selected-radio-color","",l.contentActionPrimary),selectedStateLayerColor:t.extend("--ftds-radio-selected-state-layer-color","",l.contentActionPrimary),selectedHoverStateLayerOpacity:t.extend("--ftds-radio-selected-hover-state-layer-opacity","",i.opacity16),selectedFocusStateLayerOpacity:t.extend("--ftds-radio-selected-focus-state-layer-opacity","",i.opacity16),selectedActiveStateLayerOpacity:t.extend("--ftds-radio-selected-active-state-layer-opacity","",i.opacity24),selectedDisabledComponentOpacity:t.extend("--ftds-radio-selected-disabled-component-opacity","",i.opacity40),unselectedStateLayerColor:t.extend("--ftds-radio-unselected-state-layer-color","",l.borderInputPrimary),unselectedBorderColor:t.extend("--ftds-radio-unselected-border-color","",l.borderInputPrimary),unselectedHoverStateLayerOpacity:t.extend("--ftds-radio-unselected-hover-state-layer-opacity","",i.opacity16),unselectedFocusStateLayerOpacity:t.extend("--ftds-radio-unselected-focus-state-layer-opacity","",i.opacity16),unselectedActiveStateLayerOpacity:t.extend("--ftds-radio-unselected-active-state-layer-opacity","",i.opacity24),unselectedDisabledComponentOpacity:t.extend("--ftds-radio-unselected-disabled-component-opacity","",i.opacity40),focusFocusRingColor:t.extend("--ftds-radio-focus-focus-ring-color","",l.borderActionFocusRing),focusOutlineOffset:t.create("--ftds-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:t.create("--ftds-radio-focus-outline-width","","SIZE","2px"),verticalGap:t.extend("--ftds-radio-vertical-gap","",i.spacing3),horizontalGap:t.extend("--ftds-radio-horizontal-gap","",i.spacing3)};var Uf={headerRowBorderWidth:t.create("--ftds-table-header-row-border-width","","SIZE","1px"),headerRowBackgroundColor:t.extend("--ftds-table-header-row-background-color","",l.backgroundGlobalOnSurfaceDark),headerRowBorderColor:t.extend("--ftds-table-header-row-border-color","",l.borderGlobalPrimary),headerRowColor:t.extend("--ftds-table-header-row-color","",l.contentGlobalPrimary),dataRowBorderWidth:t.create("--ftds-table-data-row-border-width","","SIZE","1px"),dataRowBackgroundColor:t.extend("--ftds-table-data-row-background-color","",l.backgroundGlobalOnSurface),dataRowBorderColor:t.extend("--ftds-table-data-row-border-color","",l.borderGlobalSubtle),dataRowColor:t.extend("--ftds-table-data-row-color","",l.contentGlobalSecondary),dataRowDefaultHoverBackgroundColor:t.extend("--ftds-table-data-row-default-hover-background-color","",i.colorGray20),dataRowSelectableUnselectedHoverBackgroundColor:t.extend("--ftds-table-data-row-selectable-unselected-hover-background-color","",i.colorGray20),dataRowSelectableSelectedDefaultBackgroundColor:t.extend("--ftds-table-data-row-selectable-selected-default-background-color","",i.colorBrand10),dataRowSelectableSelectedDefaultBorderColor:t.extend("--ftds-table-data-row-selectable-selected-default-border-color","",i.colorBrand20),dataRowSelectableSelectedHoverBackgroundColor:t.extend("--ftds-table-data-row-selectable-selected-hover-background-color","",i.colorBrand20),dataRowSelectableSelectedHoverBorderColor:t.extend("--ftds-table-data-row-selectable-selected-hover-border-color","",i.colorBrand30),dataRowSelectableSelectedColor:t.extend("--ftds-table-data-row-selectable-selected-color","",l.contentActionPrimary),dataRowClickableHoverBackgroundColor:t.extend("--ftds-table-data-row-clickable-hover-background-color","",i.colorGray30),dataRowClickableFocusBorderColor:t.extend("--ftds-table-data-row-clickable-focus-border-color","",l.borderActionFocusRing),dataRowClickableFocusBackgroundColor:t.extend("--ftds-table-data-row-clickable-focus-background-color","",i.colorGray30),dataRowClickableActiveBackgroundColor:t.extend("--ftds-table-data-row-clickable-active-background-color","",i.colorGray40),headerCellHorizontalGap:t.extend("--ftds-table-header-cell-horizontal-gap","",i.spacing1),headerCellVerticalPadding:t.extend("--ftds-table-header-cell-vertical-padding","",i.spacing2),headerCellHorizontalPadding:t.extend("--ftds-table-header-cell-horizontal-padding","",i.spacing3),dataCellVerticalPadding:t.extend("--ftds-table-data-cell-vertical-padding","",i.spacing2),dataCellHorizontalPadding:t.extend("--ftds-table-data-cell-horizontal-padding","",i.spacing3),dataCellVerticalGap:t.extend("--ftds-table-data-cell-vertical-gap","",i.spacing1)};var $f={neutralOffHoverStateLayerOpacity:t.extend("--ftds-chip-choice-neutral-off-hover-state-layer-opacity","",i.opacity8),neutralOffFocusStateLayerOpacity:t.extend("--ftds-chip-choice-neutral-off-focus-state-layer-opacity","",i.opacity8),neutralOffFocusFocusRingColor:t.extend("--ftds-chip-choice-neutral-off-focus-focus-ring-color","",l.borderActionFocusRing),neutralOffActiveStateLayerOpacity:t.extend("--ftds-chip-choice-neutral-off-active-state-layer-opacity","",i.opacity16),neutralOffBackgroundColor:t.extend("--ftds-chip-choice-neutral-off-background-color","",l.backgroundGlobalOnSurface),neutralOffBorderColor:t.extend("--ftds-chip-choice-neutral-off-border-color","",l.borderGlobalPrimary),neutralOffColor:t.extend("--ftds-chip-choice-neutral-off-color","",l.contentGlobalSecondary),neutralOffStateLayerColor:t.extend("--ftds-chip-choice-neutral-off-state-layer-color","",l.contentGlobalSecondary),neutralOnDefaultStateLayerOpacity:t.extend("--ftds-chip-choice-neutral-on-default-state-layer-opacity","",i.opacity16),neutralOnHoverStateLayerOpacity:t.extend("--ftds-chip-choice-neutral-on-hover-state-layer-opacity","",i.opacity24),neutralOnFocusStateLayerOpacity:t.extend("--ftds-chip-choice-neutral-on-focus-state-layer-opacity","",i.opacity24),neutralOnFocusFocusRingColor:t.extend("--ftds-chip-choice-neutral-on-focus-focus-ring-color","",l.borderActionFocusRing),neutralOnActiveStateLayerOpacity:t.extend("--ftds-chip-choice-neutral-on-active-state-layer-opacity","",i.opacity32),neutralOnBackgroundColor:t.extend("--ftds-chip-choice-neutral-on-background-color","",l.backgroundGlobalOnSurface),neutralOnBorderColor:t.extend("--ftds-chip-choice-neutral-on-border-color","",l.borderGlobalPrimary),neutralOnColor:t.extend("--ftds-chip-choice-neutral-on-color","",l.contentGlobalPrimary),neutralOnIconColor:t.extend("--ftds-chip-choice-neutral-on-icon-color","",l.contentGlobalPrimary),neutralOnStateLayerColor:t.extend("--ftds-chip-choice-neutral-on-state-layer-color","",l.contentGlobalPrimary),largeMinHeight:t.create("--ftds-chip-choice-large-min-height","","SIZE","36px"),largeHorizontalPadding:t.extend("--ftds-chip-choice-large-horizontal-padding","",i.spacing3),largeGap:t.extend("--ftds-chip-choice-large-gap","",i.spacing1),largeBorderRadius:t.create("--ftds-chip-choice-large-border-radius","","SIZE","18px"),largeBorderWidth:t.create("--ftds-chip-choice-large-border-width","","SIZE","1px"),largeIconSize:t.extend("--ftds-chip-choice-large-icon-size","",i.iconSize3),mediumMinHeight:t.create("--ftds-chip-choice-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:t.extend("--ftds-chip-choice-medium-horizontal-padding","",i.spacing2),mediumGap:t.extend("--ftds-chip-choice-medium-gap","",i.spacing1),mediumBorderRadius:t.create("--ftds-chip-choice-medium-border-radius","","SIZE","12px"),mediumBorderWidth:t.create("--ftds-chip-choice-medium-border-width","","SIZE","1px"),mediumIconSize:t.extend("--ftds-chip-choice-medium-icon-size","",i.iconSize2)};var qf={largeMinHeight:t.create("--ftds-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:t.extend("--ftds-chip-large-horizontal-padding","",i.spacing3),largeButtonRightPadding:t.extend("--ftds-chip-large-button-right-padding","",i.spacing1),largeGap:t.extend("--ftds-chip-large-gap","",i.spacing1),largeFocusOutlineOffset:t.create("--ftds-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:t.create("--ftds-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:t.create("--ftds-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:t.create("--ftds-chip-large-border-width","","SIZE","1px"),largeIconSize:t.extend("--ftds-chip-large-icon-size","",i.iconSize3),mediumMinHeight:t.create("--ftds-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:t.extend("--ftds-chip-medium-horizontal-padding","",i.spacing2),mediumButtonRightPadding:t.extend("--ftds-chip-medium-button-right-padding","",i.spacing05),mediumGap:t.extend("--ftds-chip-medium-gap","",i.spacing1),mediumFocusOutlineOffset:t.create("--ftds-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:t.create("--ftds-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:t.create("--ftds-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:t.create("--ftds-chip-medium-border-width","","SIZE","1px"),mediumIconSize:t.extend("--ftds-chip-medium-icon-size","",i.iconSize2),smallMinHeight:t.create("--ftds-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:t.extend("--ftds-chip-small-horizontal-padding","",i.spacing1),smallButtonRightPadding:t.extend("--ftds-chip-small-button-right-padding","",i.spacing05),smallGap:t.extend("--ftds-chip-small-gap","",i.spacing1),smallFocusOutlineOffset:t.create("--ftds-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:t.create("--ftds-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:t.create("--ftds-chip-small-border-radius","","SIZE","10px"),smallBorderWidth:t.create("--ftds-chip-small-border-width","","SIZE","1px"),smallIconSize:t.extend("--ftds-chip-small-icon-size","",i.iconSize1),neutralBackgroundColor:t.extend("--ftds-chip-neutral-background-color","",l.backgroundGlobalOnSurface),neutralColor:t.extend("--ftds-chip-neutral-color","",l.contentGlobalSecondary),neutralIconColor:t.extend("--ftds-chip-neutral-icon-color","",l.contentGlobalSecondary),neutralBorderColor:t.extend("--ftds-chip-neutral-border-color","",l.borderGlobalSecondary),infoBackgroundColor:t.extend("--ftds-chip-info-background-color","",l.backgroundInfoSubtle),infoColor:t.extend("--ftds-chip-info-color","",l.contentInfoPrimary),infoIconColor:t.extend("--ftds-chip-info-icon-color","",l.contentInfoIconOnly),infoBorderColor:t.extend("--ftds-chip-info-border-color","",l.borderInfoSubtle),successBackgroundColor:t.extend("--ftds-chip-success-background-color","",l.backgroundSuccessSubtle),successColor:t.extend("--ftds-chip-success-color","",l.contentSuccessPrimary),successIconColor:t.extend("--ftds-chip-success-icon-color","",l.contentSuccessIconOnly),successBorderColor:t.extend("--ftds-chip-success-border-color","",l.borderSuccessSubtle),warningBackgroundColor:t.extend("--ftds-chip-warning-background-color","",l.backgroundWarningSubtle),warningColor:t.extend("--ftds-chip-warning-color","",l.contentWarningPrimary),warningIconColor:t.extend("--ftds-chip-warning-icon-color","",l.contentWarningIconOnly),warningBorderColor:t.extend("--ftds-chip-warning-border-color","",l.borderWarningSubtle),errorBackgroundColor:t.extend("--ftds-chip-error-background-color","",l.backgroundErrorSubtle),errorColor:t.extend("--ftds-chip-error-color","",l.contentErrorPrimary),errorIconColor:t.extend("--ftds-chip-error-icon-color","",l.contentErrorIconOnly),errorBorderColor:t.extend("--ftds-chip-error-border-color","",l.borderErrorSubtle)};var eh={brandHoverOpacity:t.extend("--ftds-link-brand-hover-opacity","",i.opacity80),brandHoverColor:t.extend("--ftds-link-brand-hover-color","",l.contentActionPrimary),brandFocusFocusRingColor:t.extend("--ftds-link-brand-focus-focus-ring-color","",l.borderActionFocusRing),brandFocusColor:t.extend("--ftds-link-brand-focus-color","",l.contentActionPrimary),brandDefaultColor:t.extend("--ftds-link-brand-default-color","",l.contentActionPrimary),brandActiveColor:t.extend("--ftds-link-brand-active-color","",l.contentActionPrimary),infoHoverOpacity:t.extend("--ftds-link-info-hover-opacity","",i.opacity80),infoHoverColor:t.extend("--ftds-link-info-hover-color","",l.contentInfoPrimary),infoFocusFocusRingColor:t.extend("--ftds-link-info-focus-focus-ring-color","",l.borderActionFocusRing),infoFocusColor:t.extend("--ftds-link-info-focus-color","",l.contentInfoPrimary),infoDefaultColor:t.extend("--ftds-link-info-default-color","",l.contentInfoPrimary),infoActiveColor:t.extend("--ftds-link-info-active-color","",l.contentInfoPrimary),neutralFocusFocusRingColor:t.extend("--ftds-link-neutral-focus-focus-ring-color","",l.borderActionFocusRing),neutralFocusColor:t.extend("--ftds-link-neutral-focus-color","",l.contentActionPrimary),neutralDefaultColor:t.extend("--ftds-link-neutral-default-color","",l.contentGlobalPrimary),neutralHoverColor:t.extend("--ftds-link-neutral-hover-color","",l.contentActionPrimary),neutralActiveColor:t.extend("--ftds-link-neutral-active-color","",l.contentActionPrimary),neutralVisitedColor:t.extend("--ftds-link-neutral-visited-color","",i.colorBrand100)};var ah={iconSize:t.extend("--ftds-banner-icon-size","",i.iconSize5),borderWidth:t.create("--ftds-banner-border-width","","SIZE","1px"),leftPadding:t.extend("--ftds-banner-left-padding","",i.spacing6),rightPadding:t.extend("--ftds-banner-right-padding","",i.spacing6),verticalPadding:t.extend("--ftds-banner-vertical-padding","",i.spacing6),horizontalSideGap:t.extend("--ftds-banner-horizontal-side-gap","",i.spacing6),horizontalMobileGap:t.extend("--ftds-banner-horizontal-mobile-gap","",i.spacing4),verticalMobileGap:t.extend("--ftds-banner-vertical-mobile-gap","",i.spacing6),horizontalMiddleGap:t.extend("--ftds-banner-horizontal-middle-gap","",i.spacing20),infoBackgroundColor:t.extend("--ftds-banner-info-background-color","",l.backgroundInfoSubtle),infoColor:t.extend("--ftds-banner-info-color","",l.contentInfoPrimary),infoIconColor:t.extend("--ftds-banner-info-icon-color","",l.contentInfoIconOnly),infoBorderColor:t.extend("--ftds-banner-info-border-color","",l.borderInfoSubtle)};var dh={horizontalPadding:t.extend("--ftds-badge-horizontal-padding","",i.spacing1),verticalPadding:t.extend("--ftds-badge-vertical-padding","",i.spacing1),borderRadius:t.extend("--ftds-badge-border-radius","",i.borderRadiusPill),color:t.extend("--ftds-badge-color","",l.contentGlobalOnColor),backgroundColor:t.extend("--ftds-badge-background-color","",l.contentActionPrimary)};var gh={horizontalGap:t.extend("--ftds-title-breadcrumb-horizontal-gap","",i.spacing1),currentColor:t.extend("--ftds-title-breadcrumb-current-color","",l.contentGlobalPrimary),previousNonClickableColor:t.extend("--ftds-title-breadcrumb-previous-non-clickable-color","",l.contentGlobalSecondary),iconColor:t.extend("--ftds-title-breadcrumb-icon-color","",l.contentGlobalSubtle)};var xh={parentHorizontalPadding:t.extend("--ftds-page-header-parent-horizontal-padding","",i.spacing6),parentTopPadding:t.extend("--ftds-page-header-parent-top-padding","",i.spacing4),parentBottomPadding:t.extend("--ftds-page-header-parent-bottom-padding","",i.spacing6),parentHelpLeftMargin:t.extend("--ftds-page-header-parent-help-left-margin","",i.spacing1),parentTitleColor:t.extend("--ftds-page-header-parent-title-color","",l.contentGlobalPrimary),parentSubtitleColor:t.extend("--ftds-page-header-parent-subtitle-color","",l.contentGlobalSecondary),parentChipLeftMargin:t.extend("--ftds-page-header-parent-chip-left-margin","",i.spacing4),parentVerticalGap:t.extend("--ftds-page-header-parent-vertical-gap","",i.spacing2),parentButtonsGroupHorizontalGap:t.extend("--ftds-page-header-parent-buttons-group-horizontal-gap","",i.spacing4),parentButtonsGroupVerticalGap:t.extend("--ftds-page-header-parent-buttons-group-vertical-gap","",i.spacing4),parentChipsGroupHorizontalGap:t.extend("--ftds-page-header-parent-chips-group-horizontal-gap","",i.spacing2),parentChipsGroupVerticalGap:t.extend("--ftds-page-header-parent-chips-group-vertical-gap","",i.spacing2),childHorizontalPadding:t.extend("--ftds-page-header-child-horizontal-padding","",i.spacing6),childTopPadding:t.extend("--ftds-page-header-child-top-padding","",i.spacing2),childBottomPadding:t.extend("--ftds-page-header-child-bottom-padding","",i.spacing2),childHelpLeftMargin:t.extend("--ftds-page-header-child-help-left-margin","",i.spacing1),childChipLeftMargin:t.extend("--ftds-page-header-child-chip-left-margin","",i.spacing4),childVerticalGap:t.extend("--ftds-page-header-child-vertical-gap","",i.spacing2),childMinHeight:t.create("--ftds-page-header-child-min-height","","SIZE","40px"),childButtonsGroupHorizontalGap:t.extend("--ftds-page-header-child-buttons-group-horizontal-gap","",i.spacing4),childButtonsGroupVerticalGap:t.extend("--ftds-page-header-child-buttons-group-vertical-gap","",i.spacing4),childChipsGroupHorizontalGap:t.extend("--ftds-page-header-child-chips-group-horizontal-gap","",i.spacing2),childChipsGroupVerticalGap:t.extend("--ftds-page-header-child-chips-group-vertical-gap","",i.spacing2),backgroundColor:t.extend("--ftds-page-header-background-color","",i.colorWhite),bottomBorderColor:t.extend("--ftds-page-header-bottom-border-color","",l.borderGlobalSubtle),bottomBorderWidth:t.create("--ftds-page-header-bottom-border-width","","SIZE","1px")};var Ah={horizontalPadding:t.extend("--ftds-page-footer-horizontal-padding","",i.spacing6),verticalPadding:t.extend("--ftds-page-footer-vertical-padding","",i.spacing2),verticalGap:t.extend("--ftds-page-footer-vertical-gap","",i.spacing2),minHeight:t.create("--ftds-page-footer-min-height","","SIZE","40px"),backgroundColor:t.extend("--ftds-page-footer-background-color","",i.colorWhite),topBorderColor:t.extend("--ftds-page-footer-top-border-color","",l.borderGlobalSubtle),topBorderWidth:t.create("--ftds-page-footer-top-border-width","","SIZE","1px"),buttonsGroupGap:t.extend("--ftds-page-footer-buttons-group-gap","",i.spacing4)};var Rh={contentHorizontalPadding:t.extend("--ftds-page-layout-content-horizontal-padding","",i.spacing6),contentVerticalPadding:t.extend("--ftds-page-layout-content-vertical-padding","",i.spacing6)};var kh={smallContainerTargetWidth:t.create("--ftds-modal-small-container-target-width","","SIZE","560px"),smallContainerMargin:t.extend("--ftds-modal-small-container-margin","",i.spacing6),mediumContainerTargetWidth:t.create("--ftds-modal-medium-container-target-width","","SIZE","800px"),mediumContainerMargin:t.extend("--ftds-modal-medium-container-margin","",i.spacing6),largeContainerTargetWidth:t.create("--ftds-modal-large-container-target-width","","SIZE","1040px"),largeContainerMargin:t.extend("--ftds-modal-large-container-margin","",i.spacing6),overlayBackgroundColor:t.extend("--ftds-modal-overlay-background-color","",i.colorGray700),overlayOpacity:t.extend("--ftds-modal-overlay-opacity","",i.opacity40),shadow:t.extend("--ftds-modal-shadow","",i.shadowElevation03),bodyBackgroundColor:t.extend("--ftds-modal-body-background-color","",i.colorWhite),bodyColor:t.extend("--ftds-modal-body-color","",l.contentGlobalPrimary),bodyHorizontalPadding:t.extend("--ftds-modal-body-horizontal-padding","",i.spacing6),bodyVerticalPadding:t.extend("--ftds-modal-body-vertical-padding","",i.spacing6),bodyVerticalGap:t.extend("--ftds-modal-body-vertical-gap","",i.spacing6),headerBackgroundColor:t.extend("--ftds-modal-header-background-color","",l.backgroundGlobalOnSurface),headerBorderColor:t.extend("--ftds-modal-header-border-color","",l.borderGlobalSubtle),headerColor:t.extend("--ftds-modal-header-color","",l.contentGlobalPrimary),headerLeadingIconColor:t.extend("--ftds-modal-header-leading-icon-color","",l.contentGlobalPrimary),headerVerticalPadding:t.extend("--ftds-modal-header-vertical-padding","",i.spacing1),headerRightPadding:t.extend("--ftds-modal-header-right-padding","",i.spacing1),headerLeftPadding:t.extend("--ftds-modal-header-left-padding","",i.spacing6),headerGap:t.extend("--ftds-modal-header-gap","",i.spacing2),headerBorderBottomWidth:t.create("--ftds-modal-header-border-bottom-width","","SIZE","1px"),borderRadius:t.extend("--ftds-modal-border-radius","",i.borderRadiusM)};var Uh={overlayOpacity:t.extend("--ftds-drawer-overlay-opacity","",i.opacity40),shadow:t.extend("--ftds-drawer-shadow","",i.shadowElevation03),bodyColor:t.extend("--ftds-drawer-body-color","",l.contentGlobalPrimary),bodyHorizontalPadding:t.extend("--ftds-drawer-body-horizontal-padding","",i.spacing6),bodyVerticalPadding:t.extend("--ftds-drawer-body-vertical-padding","",i.spacing6),bodyGap:t.extend("--ftds-drawer-body-gap","",i.spacing6),bodyBackgroundColor:t.extend("--ftds-drawer-body-background-color","",i.colorWhite),headerBackgroundColor:t.extend("--ftds-drawer-header-background-color","",l.backgroundGlobalOnSurface),headerBorderColor:t.extend("--ftds-drawer-header-border-color","",l.borderGlobalSubtle),headerColor:t.extend("--ftds-drawer-header-color","",l.contentGlobalPrimary),headerTrailingIconColor:t.extend("--ftds-drawer-header-trailing-icon-color","",l.contentGlobalSecondary),headerHeight:t.create("--ftds-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:t.extend("--ftds-drawer-header-horizontal-padding","",i.spacing2),headerBorderWidth:t.create("--ftds-drawer-header-border-width","","SIZE","1px"),headerGap:t.extend("--ftds-drawer-header-gap","",i.spacing3),buttonsBarBackgroundColor:t.extend("--ftds-drawer-buttons-bar-background-color","",l.backgroundGlobalOnSurface),buttonsBarBorderColor:t.extend("--ftds-drawer-buttons-bar-border-color","",l.borderGlobalSubtle),buttonsBarColor:t.extend("--ftds-drawer-buttons-bar-color","",l.contentGlobalPrimary),buttonsBarHorizontalPadding:t.extend("--ftds-drawer-buttons-bar-horizontal-padding","",i.spacing6),buttonsBarVerticalPadding:t.extend("--ftds-drawer-buttons-bar-vertical-padding","",i.spacing4),buttonsBarGap:t.extend("--ftds-drawer-buttons-bar-gap","",i.spacing3),buttonsBarBorderWidth:t.create("--ftds-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:t.create("--ftds-drawer-container-width","","SIZE","66%"),containerMinWidth:t.create("--ftds-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:t.create("--ftds-drawer-container-max-width","","SIZE","1000px"),containerHeight:t.create("--ftds-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:t.extend("--ftds-drawer-overlay-background-color","",i.colorGray700)};var $h={offBorderBottomWidth:t.create("--ftds-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:t.extend("--ftds-tabs-off-hover-state-layer-opacity","",i.opacity8),offDefaultStateLayerOpacity:t.extend("--ftds-tabs-off-default-state-layer-opacity","",i.opacity0),offFocusStateLayerOpacity:t.extend("--ftds-tabs-off-focus-state-layer-opacity","",i.opacity8),offDisabledComponentOpacity:t.extend("--ftds-tabs-off-disabled-component-opacity","",i.opacity40),offColor:t.extend("--ftds-tabs-off-color","",l.contentGlobalSubtle),offStateLayerColor:t.extend("--ftds-tabs-off-state-layer-color","",l.contentGlobalSubtle),offBorderBottomColor:t.extend("--ftds-tabs-off-border-bottom-color","",l.borderGlobalSubtle),activeTabIndicatorHeight:t.create("--ftds-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:t.extend("--ftds-tabs-top-left-border-radius","",i.borderRadiusS),topRightBorderRadius:t.extend("--ftds-tabs-top-right-border-radius","",i.borderRadiusS),withLabelHorizontalPadding:t.extend("--ftds-tabs-with-label-horizontal-padding","",i.spacing4),withLabelVerticalPadding:t.extend("--ftds-tabs-with-label-vertical-padding","",i.spacing3),horizontalGap:t.extend("--ftds-tabs-horizontal-gap","",i.spacing1),verticalGap:t.extend("--ftds-tabs-vertical-gap","",i.spacing1),onHoverStateLayerOpacity:t.extend("--ftds-tabs-on-hover-state-layer-opacity","",i.opacity16),onDefaultStateLayerOpacity:t.extend("--ftds-tabs-on-default-state-layer-opacity","",i.opacity8),onFocusStateLayerOpacity:t.extend("--ftds-tabs-on-focus-state-layer-opacity","",i.opacity16),onActiveStateLayerOpacity:t.extend("--ftds-tabs-on-active-state-layer-opacity","",i.opacity24),onColor:t.extend("--ftds-tabs-on-color","",l.contentActionPrimary),onStateLayerColor:t.extend("--ftds-tabs-on-state-layer-color","",l.contentActionPrimary),onActiveTabIndicatorColor:t.extend("--ftds-tabs-on-active-tab-indicator-color","",l.contentActionPrimary),iconOnlyHorizontalPadding:t.extend("--ftds-tabs-icon-only-horizontal-padding","",i.spacing4),iconOnlyVerticalPadding:t.extend("--ftds-tabs-icon-only-vertical-padding","",i.spacing4),alertTopPadding:t.extend("--ftds-tabs-alert-top-padding","",i.spacing1),alertRightPadding:t.extend("--ftds-tabs-alert-right-padding","",i.spacing05),focusOutlineWidth:t.create("--ftds-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:t.extend("--ftds-tabs-focus-focus-ring-color","",l.borderActionFocusRing)};var qh={largeFieldHorizontalPadding:t.extend("--ftds-text-input-large-field-horizontal-padding","",i.spacing4),largeFieldHorizontalGap:t.extend("--ftds-text-input-large-field-horizontal-gap","",i.spacing3),largeFieldVerticalGap:t.extend("--ftds-text-input-large-field-vertical-gap","",i.spacing05),largeFieldHeight:t.create("--ftds-text-input-large-field-height","","SIZE","50px"),largeFieldIconSize:t.extend("--ftds-text-input-large-field-icon-size","",i.iconSize3),mediumFieldHorizontalPadding:t.extend("--ftds-text-input-medium-field-horizontal-padding","",i.spacing4),mediumFieldHorizontalGap:t.extend("--ftds-text-input-medium-field-horizontal-gap","",i.spacing3),mediumFieldVerticalGap:t.create("--ftds-text-input-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:t.create("--ftds-text-input-medium-field-height","","SIZE","40px"),mediumFieldIconSize:t.extend("--ftds-text-input-medium-field-icon-size","",i.iconSize3),helperHorizontalPadding:t.extend("--ftds-text-input-helper-horizontal-padding","",i.spacing4),helperHorizontalGap:t.extend("--ftds-text-input-helper-horizontal-gap","",i.spacing1),helperIconSize:t.extend("--ftds-text-input-helper-icon-size","",i.iconSize2),borderRadius:t.extend("--ftds-text-input-border-radius","",i.borderRadiusS),backgroundColor:t.extend("--ftds-text-input-background-color","",i.colorWhite),contentValueColor:t.extend("--ftds-text-input-content-value-color","",l.contentGlobalPrimary),trailingIconColor:t.extend("--ftds-text-input-trailing-icon-color","",l.contentGlobalSubtle),labelColor:t.extend("--ftds-text-input-label-color","",l.contentGlobalSubtle),defaultBorderColor:t.extend("--ftds-text-input-default-border-color","",l.borderInputPrimary),defaultHelperTextColor:t.extend("--ftds-text-input-default-helper-text-color","",l.contentGlobalSubtle),defaultBorderWidth:t.create("--ftds-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:t.create("--ftds-text-input-error-border-width","","SIZE","2px"),errorBorderColor:t.extend("--ftds-text-input-error-border-color","",l.borderErrorPrimary),errorHelperTextColor:t.extend("--ftds-text-input-error-helper-text-color","",l.contentErrorPrimary),errorHelperIconColor:t.extend("--ftds-text-input-error-helper-icon-color","",l.contentErrorIconOnly),warningBorderColor:t.extend("--ftds-text-input-warning-border-color","",l.borderWarningPrimary),warningHelperTextColor:t.extend("--ftds-text-input-warning-helper-text-color","",l.contentWarningPrimary),warningHelperIconColor:t.extend("--ftds-text-input-warning-helper-icon-color","",l.contentWarningIconOnly),warningBorderWidth:t.create("--ftds-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:t.create("--ftds-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:t.extend("--ftds-text-input-focus-focus-ring-color","",l.borderActionFocusRing),focusOutlineOffset:t.create("--ftds-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:t.extend("--ftds-text-input-disabled-component-opacity","",i.opacity40)};var eg={backgroundColor:t.extend("--ftds-text-area-background-color","",i.colorWhite),contentValueColor:t.extend("--ftds-text-area-content-value-color","",l.contentGlobalPrimary),labelColor:t.extend("--ftds-text-area-label-color","",l.contentGlobalSubtle),defaultBorderColor:t.extend("--ftds-text-area-default-border-color","",l.borderInputPrimary),defaultHelperTextColor:t.extend("--ftds-text-area-default-helper-text-color","",l.contentGlobalSubtle),defaultBorderWidth:t.create("--ftds-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:t.create("--ftds-text-area-error-border-width","","SIZE","2px"),errorBorderColor:t.extend("--ftds-text-area-error-border-color","",l.borderErrorPrimary),errorHelperTextColor:t.extend("--ftds-text-area-error-helper-text-color","",l.contentErrorPrimary),errorHelperIconColor:t.extend("--ftds-text-area-error-helper-icon-color","",l.contentErrorIconOnly),focusFocusRingColor:t.extend("--ftds-text-area-focus-focus-ring-color","",l.borderActionFocusRing),focusOutlineWidth:t.create("--ftds-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:t.create("--ftds-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:t.extend("--ftds-text-area-disabled-component-opacity","",i.opacity40),fieldHorizontalLeftPadding:t.extend("--ftds-text-area-field-horizontal-left-padding","",i.spacing4),fieldHorizontalGap:t.extend("--ftds-text-area-field-horizontal-gap","",i.spacing3),fieldVerticalGap:t.extend("--ftds-text-area-field-vertical-gap","",i.spacing05),fieldMinHeight:t.create("--ftds-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:t.extend("--ftds-text-area-helper-horizontal-padding","",i.spacing4),helperHorizontalGap:t.extend("--ftds-text-area-helper-horizontal-gap","",i.spacing1),helperIconSize:t.extend("--ftds-text-area-helper-icon-size","",i.iconSize2),borderRadius:t.extend("--ftds-text-area-border-radius","",i.borderRadiusS)};var ag={height:t.create("--ftds-floating-menu-height","","SIZE","50px"),horizontalPadding:t.extend("--ftds-floating-menu-horizontal-padding","",i.spacing4),offIconColor:t.extend("--ftds-floating-menu-off-icon-color","",l.contentGlobalPrimary),offColor:t.extend("--ftds-floating-menu-off-color","",l.contentGlobalPrimary),onColor:t.extend("--ftds-floating-menu-on-color","",l.contentActionPrimary),onStateLayerColor:t.extend("--ftds-floating-menu-on-state-layer-color","",l.contentActionPrimary),gap:t.extend("--ftds-floating-menu-gap","",i.spacing3),focusFocusRingColor:t.extend("--ftds-floating-menu-focus-focus-ring-color","",l.borderActionFocusRing),focusOutlineWidth:t.create("--ftds-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:t.extend("--ftds-floating-menu-focus-state-layer-opacity","",i.opacity8),hoverStateLayerOpacity:t.extend("--ftds-floating-menu-hover-state-layer-opacity","",i.opacity8),activeStateLayerOpacity:t.extend("--ftds-floating-menu-active-state-layer-opacity","",i.opacity16),disabledComponentOpacity:t.extend("--ftds-floating-menu-disabled-component-opacity","",i.opacity40),iconSize:t.extend("--ftds-floating-menu-icon-size","",i.iconSize3),backgroundColor:t.extend("--ftds-floating-menu-background-color","",l.backgroundGlobalOnSurface),shadow:t.extend("--ftds-floating-menu-shadow","",i.shadowElevation02)};var dg={largeFieldHorizontalPadding:t.extend("--ftds-combobox-single-select-large-field-horizontal-padding","",i.spacing4),largeFieldHorizontalGap:t.extend("--ftds-combobox-single-select-large-field-horizontal-gap","",i.spacing3),largeFieldVerticalGap:t.extend("--ftds-combobox-single-select-large-field-vertical-gap","",i.spacing05),largeFieldHeight:t.create("--ftds-combobox-single-select-large-field-height","","SIZE","50px"),largeFieldIconSize:t.extend("--ftds-combobox-single-select-large-field-icon-size","",i.iconSize3),mediumFieldHorizontalPadding:t.extend("--ftds-combobox-single-select-medium-field-horizontal-padding","",i.spacing4),mediumFieldHorizontalGap:t.extend("--ftds-combobox-single-select-medium-field-horizontal-gap","",i.spacing3),mediumFieldVerticalGap:t.create("--ftds-combobox-single-select-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:t.create("--ftds-combobox-single-select-medium-field-height","","SIZE","40px"),mediumFieldIconSize:t.extend("--ftds-combobox-single-select-medium-field-icon-size","",i.iconSize3),helperHorizontalPadding:t.extend("--ftds-combobox-single-select-helper-horizontal-padding","",i.spacing4),helperHorizontalGap:t.extend("--ftds-combobox-single-select-helper-horizontal-gap","",i.spacing1),helperVerticalGap:t.extend("--ftds-combobox-single-select-helper-vertical-gap","",i.spacing1),helperIconSize:t.extend("--ftds-combobox-single-select-helper-icon-size","",i.iconSize2),menuVerticalGap:t.extend("--ftds-combobox-single-select-menu-vertical-gap","",i.spacing2),borderRadius:t.extend("--ftds-combobox-single-select-border-radius","",i.borderRadiusS),backgroundColor:t.extend("--ftds-combobox-single-select-background-color","",i.colorWhite),labelColor:t.extend("--ftds-combobox-single-select-label-color","",l.contentGlobalSubtle),contentValueColor:t.extend("--ftds-combobox-single-select-content-value-color","",l.contentGlobalPrimary),trailingIconColor:t.extend("--ftds-combobox-single-select-trailing-icon-color","",l.contentGlobalSubtle),defaultBorderColor:t.extend("--ftds-combobox-single-select-default-border-color","",l.borderInputPrimary),defaultHelperTextColor:t.extend("--ftds-combobox-single-select-default-helper-text-color","",l.contentGlobalSubtle),defaultBorderWidth:t.create("--ftds-combobox-single-select-default-border-width","","SIZE","1px"),errorBorderWidth:t.create("--ftds-combobox-single-select-error-border-width","","SIZE","2px"),errorBorderColor:t.extend("--ftds-combobox-single-select-error-border-color","",l.borderErrorPrimary),errorHelperTextColor:t.extend("--ftds-combobox-single-select-error-helper-text-color","",l.contentErrorPrimary),warningBorderWidth:t.create("--ftds-combobox-single-select-warning-border-width","","SIZE","2px"),warningBorderColor:t.extend("--ftds-combobox-single-select-warning-border-color","",l.borderWarningPrimary),warningHelperTextColor:t.extend("--ftds-combobox-single-select-warning-helper-text-color","",l.contentWarningPrimary),warningHelperIconColor:t.extend("--ftds-combobox-single-select-warning-helper-icon-color","",l.contentWarningIconOnly),focusOutlineWidth:t.create("--ftds-combobox-single-select-focus-outline-width","","SIZE","2px"),focusFocusRingColor:t.extend("--ftds-combobox-single-select-focus-focus-ring-color","",l.borderActionFocusRing),focusOutlineOffset:t.create("--ftds-combobox-single-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:t.extend("--ftds-combobox-single-select-disabled-component-opacity","",i.opacity40)};var gg={backgroundColor:t.extend("--ftds-combobox-multi-select-background-color","",i.colorWhite),labelColor:t.extend("--ftds-combobox-multi-select-label-color","",l.contentGlobalSubtle),trailingIconColor:t.extend("--ftds-combobox-multi-select-trailing-icon-color","",l.contentGlobalSubtle),defaultBorderColor:t.extend("--ftds-combobox-multi-select-default-border-color","",l.borderInputPrimary),defaultHelperTextColor:t.extend("--ftds-combobox-multi-select-default-helper-text-color","",l.contentGlobalSubtle),defaultBorderWidth:t.create("--ftds-combobox-multi-select-default-border-width","","SIZE","1px"),errorBorderColor:t.extend("--ftds-combobox-multi-select-error-border-color","",l.borderErrorPrimary),errorHelperTextColor:t.extend("--ftds-combobox-multi-select-error-helper-text-color","",l.contentErrorPrimary),errorHelperIcon:t.extend("--ftds-combobox-multi-select-error-helper-icon","",l.contentErrorIconOnly),errorBorderWidth:t.create("--ftds-combobox-multi-select-error-border-width","","SIZE","2px"),warningBorderColor:t.extend("--ftds-combobox-multi-select-warning-border-color","",l.borderWarningPrimary),warningHelperTextColor:t.extend("--ftds-combobox-multi-select-warning-helper-text-color","",l.contentWarningPrimary),warningHelperIconColor:t.extend("--ftds-combobox-multi-select-warning-helper-icon-color","",l.contentWarningIconOnly),warningBorderWidth:t.create("--ftds-combobox-multi-select-warning-border-width","","SIZE","2px"),focusFocusRingColor:t.extend("--ftds-combobox-multi-select-focus-focus-ring-color","",l.borderActionFocusRing),focusOutlineWidth:t.create("--ftds-combobox-multi-select-focus-outline-width","","SIZE","2px"),focusOutlineOffset:t.create("--ftds-combobox-multi-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:t.extend("--ftds-combobox-multi-select-disabled-component-opacity","",i.opacity40),helperHorizontalPadding:t.extend("--ftds-combobox-multi-select-helper-horizontal-padding","",i.spacing4),helperHorizontalGap:t.extend("--ftds-combobox-multi-select-helper-horizontal-gap","",i.spacing1),helperVerticalGap:t.extend("--ftds-combobox-multi-select-helper-vertical-gap","",i.spacing1),helperIconSize:t.extend("--ftds-combobox-multi-select-helper-icon-size","",i.iconSize2),fieldHorizontalPadding:t.extend("--ftds-combobox-multi-select-field-horizontal-padding","",i.spacing4),fieldHorizontalGap:t.extend("--ftds-combobox-multi-select-field-horizontal-gap","",i.spacing3),fieldVerticalGap:t.extend("--ftds-combobox-multi-select-field-vertical-gap","",i.spacing05),fieldIconSize:t.extend("--ftds-combobox-multi-select-field-icon-size","",i.iconSize3),fieldMaxHeight:t.create("--ftds-combobox-multi-select-field-max-height","","SIZE","112px"),contentValuesHorizontalGap:t.extend("--ftds-combobox-multi-select-content-values-horizontal-gap","",i.spacing1),contentValuesVerticalGap:t.extend("--ftds-combobox-multi-select-content-values-vertical-gap","",i.spacing1),borderRadius:t.extend("--ftds-combobox-multi-select-border-radius","",i.borderRadiusS)};var xg={backgroundColor:t.extend("--ftds-popover-background-color","",l.backgroundGlobalOnSurface),horizontalPadding:t.extend("--ftds-popover-horizontal-padding","",i.spacing6),verticalPadding:t.extend("--ftds-popover-vertical-padding","",i.spacing6),titleColor:t.extend("--ftds-popover-title-color","",l.contentGlobalPrimary),bodyColor:t.extend("--ftds-popover-body-color","",l.contentGlobalSecondary),gap:t.extend("--ftds-popover-gap","",i.spacing2),borderRadius:t.extend("--ftds-popover-border-radius","",i.borderRadiusM),shadow:t.extend("--ftds-popover-shadow","",i.shadowElevation02),maxWidth:t.create("--ftds-popover-max-width","","SIZE","440px"),contentSectionVerticalGap:t.extend("--ftds-popover-content-section-vertical-gap","",i.spacing2),multiSectionVerticalGap:t.extend("--ftds-popover-multi-section-vertical-gap","",i.spacing6)};var Ag={hoverStateLayerOpacity:t.extend("--ftds-collapsible-hover-state-layer-opacity","",i.opacity8),focusStateLayerOpacity:t.extend("--ftds-collapsible-focus-state-layer-opacity","",i.opacity8),focusOutlineWidth:t.create("--ftds-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:t.extend("--ftds-collapsible-focus-focus-ring-color","",l.borderActionFocusRing),activeStateLayerOpacity:t.extend("--ftds-collapsible-active-state-layer-opacity","",i.opacity16),disabledComponentOpacity:t.extend("--ftds-collapsible-disabled-component-opacity","",i.opacity40),horizontalPadding:t.extend("--ftds-collapsible-horizontal-padding","",i.spacing4),verticalPadding:t.extend("--ftds-collapsible-vertical-padding","",i.spacing3),color:t.extend("--ftds-collapsible-color","",l.contentGlobalPrimary),stateLayerColor:t.extend("--ftds-collapsible-state-layer-color","",l.contentGlobalPrimary),backgroundColor:t.extend("--ftds-collapsible-background-color","",l.backgroundGlobalOnSurface),borderColor:t.extend("--ftds-collapsible-border-color","",l.borderGlobalSubtle),iconSize:t.extend("--ftds-collapsible-icon-size","",i.iconSize3)};var _g={groupHorizontalPadding:t.extend("--ftds-switch-group-horizontal-padding","",i.spacing1),groupVerticalPadding:t.extend("--ftds-switch-group-vertical-padding","",i.spacing1),groupGap:t.extend("--ftds-switch-group-gap","",i.spacing1),groupBackgroundColor:t.extend("--ftds-switch-group-background-color","",l.backgroundGlobalSurface),groupBorderColor:t.extend("--ftds-switch-group-border-color","",l.borderGlobalSubtle),groupBorderRadius:t.create("--ftds-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:t.extend("--ftds-switch-label-horizontal-padding","",i.spacing2),labelVerticalPadding:t.extend("--ftds-switch-label-vertical-padding","",i.spacing1),offHoverStateLayerOpacity:t.extend("--ftds-switch-off-hover-state-layer-opacity","",i.opacity8),offFocusStateLayerOpacity:t.extend("--ftds-switch-off-focus-state-layer-opacity","",i.opacity8),offActiveStateLayerOpacity:t.extend("--ftds-switch-off-active-state-layer-opacity","",i.opacity16),offDisabledComponentOpacity:t.extend("--ftds-switch-off-disabled-component-opacity","",i.opacity40),offColor:t.extend("--ftds-switch-off-color","",l.contentGlobalSubtle),offStateLayerColor:t.extend("--ftds-switch-off-state-layer-color","",l.contentGlobalSubtle),onHoverStateLayerOpacity:t.extend("--ftds-switch-on-hover-state-layer-opacity","",i.opacity8),onFocusStateLayerOpacity:t.extend("--ftds-switch-on-focus-state-layer-opacity","",i.opacity8),onActiveStateLayerOpacity:t.extend("--ftds-switch-on-active-state-layer-opacity","",i.opacity16),onDisabledComponentOpacity:t.extend("--ftds-switch-on-disabled-component-opacity","",i.opacity40),onColor:t.extend("--ftds-switch-on-color","",l.contentActionPrimary),onStateLayerColor:t.extend("--ftds-switch-on-state-layer-color","",l.contentActionPrimary),iconHorizontalPadding:t.extend("--ftds-switch-icon-horizontal-padding","",i.spacing1),iconVerticalPadding:t.extend("--ftds-switch-icon-vertical-padding","",i.spacing1),focusOutlineWidth:t.create("--ftds-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:t.extend("--ftds-switch-focus-focus-ring-color","",l.borderActionFocusRing),optionBorderRadius:t.extend("--ftds-switch-option-border-radius","",i.borderRadiusS)};var kg={color1Light:t.extend("--ftds-chart-1-light","for area color charts",i.colorBrand40),color1Base:t.extend("--ftds-chart-1-base","for line charts",i.colorBrand0),color2Light:t.extend("--ftds-chart-2-light","for area color charts",i.colorYellow60),color2Base:t.extend("--ftds-chart-2-base","for line charts",i.colorYellow100),color3Light:t.extend("--ftds-chart-3-light","",i.colorUltramarine40),color3Base:t.extend("--ftds-chart-3-base","",i.colorUltramarine70),color4Light:t.extend("--ftds-chart-4-light","",i.colorCyan50),color4Base:t.extend("--ftds-chart-4-base","",i.colorCyan100),color5Light:t.extend("--ftds-chart-5-light","",i.colorRed40),color5Base:t.extend("--ftds-chart-5-base","",i.colorRed60),color6Light:t.extend("--ftds-chart-6-light","",i.colorGreen40),color6Base:t.extend("--ftds-chart-6-base","",i.colorGreen70),color7Light:t.extend("--ftds-chart-7-light","",i.colorOrange70),color7Base:t.extend("--ftds-chart-7-base","",i.colorOrange100),color8Light:t.extend("--ftds-chart-8-light","",i.colorAvocado70),color8Base:t.extend("--ftds-chart-8-base","",i.colorAvocado200),color9Light:t.extend("--ftds-chart-9-light","",i.colorBrown50),color9Base:t.extend("--ftds-chart-9-base","",i.colorBrown200),color10Light:t.extend("--ftds-chart-10-light","",i.colorGray50),color10Base:t.extend("--ftds-chart-10-base","",i.colorGray80),monochrome10:t.extend("--ftds-chart-monochrome-10","",i.colorBrand10),monochrome20:t.extend("--ftds-chart-monochrome-20","",i.colorBrand20),monochrome30:t.extend("--ftds-chart-monochrome-30","",i.colorBrand40),monochrome40:t.extend("--ftds-chart-monochrome-40","",i.colorBrand60),monochrome50:t.extend("--ftds-chart-monochrome-50","",i.colorBrand0),monochrome60:t.extend("--ftds-chart-monochrome-60","",i.colorBrand200),scatterplotQuadrantPopularOldBackgroundColor:t.extend("--ftds-chart-scatterplot-quadrant-popular-old-background-color","",i.colorYellow10),scatterplotQuadrantPopularNewBackgroundColor:t.extend("--ftds-chart-scatterplot-quadrant-popular-new-background-color","",i.colorAvocado10),scatterplotQuadrantUnpopularOldBackgroundColor:t.extend("--ftds-chart-scatterplot-quadrant-unpopular-old-background-color","",i.colorRed10),scatterplotQuadrantUnpopularNewBackgroundColor:t.extend("--ftds-chart-scatterplot-quadrant-unpopular-new-background-color","",i.colorCyan10),scatterplotDatapointInitialDefaultBackgroundColor:t.extend("--ftds-chart-scatterplot-datapoint-initial-default-background-color","",i.colorBrand70),scatterplotDatapointInitialDefaultBackgroundOpacity:t.extend("--ftds-chart-scatterplot-datapoint-initial-default-background-opacity","",i.opacity48),scatterplotDatapointInitialHoverBackgroundColor:t.extend("--ftds-chart-scatterplot-datapoint-initial-hover-background-color","",i.colorBrand0),scatterplotDatapointSelectedDefaultBackgroundColor:t.extend("--ftds-chart-scatterplot-datapoint-selected-default-background-color","",i.colorBrand100),scatterplotDatapointSelectedHoverBackgroundColor:t.extend("--ftds-chart-scatterplot-datapoint-selected-hover-background-color","",i.colorBrand200),scatterplotDatapointUnselectedDefaultBackgroundColor:t.extend("--ftds-chart-scatterplot-datapoint-unselected-default-background-color","",i.colorGray60),scatterplotDatapointUnselectedDefaultBackgroundOpacity:t.extend("--ftds-chart-scatterplot-datapoint-unselected-default-background-opacity","",i.opacity48),scatterplotDatapointUnselectedHoverBackgroundColor:t.extend("--ftds-chart-scatterplot-datapoint-unselected-hover-background-color","",i.colorGray70),scatterplotDatapointHoverHoverRingColor:t.extend("--ftds-chart-scatterplot-datapoint-hover-hover-ring-color","",i.colorCyan200)};var Bg={color1IconColor:t.extend("--ftds-page-designer-1-icon-color","for area color charts",i.colorCyan0),color1ToolbarColor:t.extend("--ftds-page-designer-1-toolbar-color","for area color charts",i.colorCyan0),color2IconColor:t.extend("--ftds-page-designer-2-icon-color","for area color charts",i.colorBrand0),color2ToolbarColor:t.extend("--ftds-page-designer-2-toolbar-color","for area color charts",i.colorBrand0),color3IconColor:t.extend("--ftds-page-designer-3-icon-color","for area color charts",i.colorYellow200),color3ToolbarColor:t.extend("--ftds-page-designer-3-toolbar-color","for area color charts",i.colorYellow200),color4IconColor:t.extend("--ftds-page-designer-4-icon-color","for area color charts",i.colorUltramarine50),color4ToolbarColor:t.extend("--ftds-page-designer-4-toolbar-color","for area color charts",i.colorUltramarine50),color5IconColor:t.extend("--ftds-page-designer-5-icon-color","for area color charts",i.colorGreen0),color5ToolbarColor:t.extend("--ftds-page-designer-5-toolbar-color","for area color charts",i.colorGreen0),color6IconColor:t.extend("--ftds-page-designer-6-icon-color","for area color charts",i.colorOrange0),color6ToolbarColor:t.extend("--ftds-page-designer-6-toolbar-color","for area color charts",i.colorOrange0),color7IconColor:t.extend("--ftds-page-designer-7-icon-color","for area color charts",i.colorAvocado200),color7ToolbarColor:t.extend("--ftds-page-designer-7-toolbar-color","for area color charts",i.colorAvocado200),color8IconColor:t.extend("--ftds-page-designer-8-icon-color","for area color charts",i.colorBrown0),color8ToolbarColor:t.extend("--ftds-page-designer-8-toolbar-color","for area color charts",i.colorBrown0)};var Wg={borderWidth:t.create("--ftds-notice-border-width","","SIZE","1px"),horizontalPadding:t.extend("--ftds-notice-horizontal-padding","",i.spacing3),verticalPadding:t.extend("--ftds-notice-vertical-padding","",i.spacing2),borderRadius:t.extend("--ftds-notice-border-radius","",i.borderRadiusS),gap:t.extend("--ftds-notice-gap","",i.spacing2),iconSize:t.extend("--ftds-notice-icon-size","",i.iconSize3),infoBackgroundColor:t.extend("--ftds-notice-info-background-color","",l.backgroundInfoSubtle),infoBorderColor:t.extend("--ftds-notice-info-border-color","",l.borderInfoSubtle),infoColor:t.extend("--ftds-notice-info-color","",l.contentInfoPrimary),infoIconColor:t.extend("--ftds-notice-info-icon-color","",l.contentInfoIconOnly),warningBackgroundColor:t.extend("--ftds-notice-warning-background-color","",l.backgroundWarningSubtle),warningBorderColor:t.extend("--ftds-notice-warning-border-color","",l.borderWarningSubtle),warningColor:t.extend("--ftds-notice-warning-color","",l.contentWarningPrimary),warningIconColor:t.extend("--ftds-notice-warning-icon-color","",l.contentWarningIconOnly),errorBackgroundColor:t.extend("--ftds-notice-error-background-color","",l.backgroundErrorSubtle),errorBorderColor:t.extend("--ftds-notice-error-border-color","",l.borderErrorSubtle),errorColor:t.extend("--ftds-notice-error-color","",l.contentErrorPrimary),errorIconColor:t.extend("--ftds-notice-error-icon-color","",l.contentErrorIconOnly),successBackgroundColor:t.extend("--ftds-notice-success-background-color","",l.backgroundSuccessSubtle),successBorderColor:t.extend("--ftds-notice-success-border-color","",l.borderSuccessSubtle),successColor:t.extend("--ftds-notice-success-color","",l.contentSuccessPrimary),successIconColor:t.extend("--ftds-notice-success-icon-color","",l.contentSuccessIconOnly),denseHorizontalPadding:t.create("--ftds-notice-dense-horizontal-padding","","SIZE","0px"),denseVerticalPadding:t.create("--ftds-notice-dense-vertical-padding","","SIZE","0px"),denseGap:t.extend("--ftds-notice-dense-gap","",i.spacing1),denseIconSize:t.extend("--ftds-notice-dense-icon-size","",i.iconSize2),denseBorderWidth:t.create("--ftds-notice-dense-border-width","","SIZE","0")};var Zg={offHoverStateLayerOpacity:t.extend("--ftds-toggle-off-hover-state-layer-opacity","",i.opacity16),offFocusStateLayerOpacity:t.extend("--ftds-toggle-off-focus-state-layer-opacity","",i.opacity16),offActiveStateLayerOpacity:t.extend("--ftds-toggle-off-active-state-layer-opacity","",i.opacity24),offDisabledComponentOpacity:t.extend("--ftds-toggle-off-disabled-component-opacity","",i.opacity40),offBackgroundColor:t.extend("--ftds-toggle-off-background-color","",l.contentGlobalSubtle),offIconColor:t.extend("--ftds-toggle-off-icon-color","",l.contentGlobalSubtle),offStateLayerColor:t.extend("--ftds-toggle-off-state-layer-color","",l.contentGlobalSubtle),onHoverStateLayerOpacity:t.extend("--ftds-toggle-on-hover-state-layer-opacity","",i.opacity16),onFocusStateLayerOpacity:t.extend("--ftds-toggle-on-focus-state-layer-opacity","",i.opacity16),onActiveStateLayerOpacity:t.extend("--ftds-toggle-on-active-state-layer-opacity","",i.opacity24),onDisabledComponentOpacity:t.extend("--ftds-toggle-on-disabled-component-opacity","",i.opacity40),onBackgroundColor:t.extend("--ftds-toggle-on-background-color","",l.contentActionPrimary),onStateLayerColor:t.extend("--ftds-toggle-on-state-layer-color","",l.contentActionPrimary),onIconColor:t.extend("--ftds-toggle-on-icon-color","",l.contentActionPrimary),color:t.extend("--ftds-toggle-color","",l.contentGlobalPrimary),focusFocusRingColor:t.extend("--ftds-toggle-focus-focus-ring-color","",l.borderActionFocusRing),gap:t.extend("--ftds-toggle-gap","",i.spacing3)};var Jg={iconSize:t.extend("--ftds-notification-icon-size","",i.iconSize4),leftPadding:t.extend("--ftds-notification-left-padding","",i.spacing5),rightPadding:t.extend("--ftds-notification-right-padding","",i.spacing4),verticalPadding:t.extend("--ftds-notification-vertical-padding","",i.spacing3),infoBackgroundColor:t.extend("--ftds-notification-info-background-color","",l.backgroundInfoSubtle),infoColor:t.extend("--ftds-notification-info-color","",l.contentInfoPrimary),infoIconColor:t.extend("--ftds-notification-info-icon-color","",l.contentInfoIconOnly),infoBorderColor:t.extend("--ftds-notification-info-border-color","",l.borderInfoSubtle),successBackgroundColor:t.extend("--ftds-notification-success-background-color","",l.backgroundSuccessSubtle),successColor:t.extend("--ftds-notification-success-color","",l.contentSuccessPrimary),successIconColor:t.extend("--ftds-notification-success-icon-color","",l.contentSuccessIconOnly),successBorderColor:t.extend("--ftds-notification-success-border-color","",l.borderSuccessSubtle),warningBackgroundColor:t.extend("--ftds-notification-warning-background-color","",l.backgroundWarningSubtle),warningColor:t.extend("--ftds-notification-warning-color","",l.contentWarningPrimary),warningIconColor:t.extend("--ftds-notification-warning-icon-color","",l.contentWarningIconOnly),warningBorderColor:t.extend("--ftds-notification-warning-border-color","",l.borderWarningSubtle),errorBackgroundColor:t.extend("--ftds-notification-error-background-color","",l.backgroundErrorSubtle),errorColor:t.extend("--ftds-notification-error-color","",l.contentErrorPrimary),errorIconColor:t.extend("--ftds-notification-error-icon-color","",l.contentErrorIconOnly),errorBorderColor:t.extend("--ftds-notification-error-border-color","",l.borderErrorSubtle),borderRadius:t.extend("--ftds-notification-border-radius","",i.borderRadiusPill),borderWidth:t.create("--ftds-notification-border-width","","SIZE","1px"),leadingGap:t.extend("--ftds-notification-leading-gap","",i.spacing2),trailingGap:t.extend("--ftds-notification-trailing-gap","",i.spacing8)};var ny={horizontalPadding:t.extend("--ftds-tooltip-horizontal-padding","",i.spacing2),verticalPadding:t.extend("--ftds-tooltip-vertical-padding","",i.spacing2),borderRadius:t.extend("--ftds-tooltip-border-radius","",i.borderRadiusS),color:t.extend("--ftds-tooltip-color","",l.contentGlobalOnColor),backgroundColor:t.extend("--ftds-tooltip-background-color","",l.contentGlobalPrimary),backgroundOpacity:t.extend("--ftds-tooltip-background-opacity","",i.opacity80),shadow:t.extend("--ftds-tooltip-shadow","",i.shadowElevation02),maxWidth:t.create("--ftds-tooltip-max-width","","SIZE","256px"),gap:t.extend("--ftds-tooltip-gap","",i.spacing05)};var ly={verticalPadding:t.extend("--ftds-reorderable-list-vertical-padding","",i.spacing4),gap:t.extend("--ftds-reorderable-list-gap","",i.spacing1),borderRadius:t.extend("--ftds-reorderable-list-border-radius","",i.borderRadiusM),reorderableItemTitleMarginRight:t.extend("--ftds-reorderable-list-reorderable-item-title-margin-right","",i.spacing6),reorderableItemTitleColor:t.extend("--ftds-reorderable-list-reorderable-item-title-color","",l.contentGlobalPrimary),reorderableItemLeftButtonsGroupMarginRight:t.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-margin-right","",i.spacing6),reorderableItemLeftButtonsGroupHorizontalGap:t.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-horizontal-gap","",i.spacing2),reorderableItemRightButtonsGroupHorizontalGap:t.extend("--ftds-reorderable-list-reorderable-item-right-buttons-group-horizontal-gap","",i.spacing2),reorderableItemUsersCountColor:t.extend("--ftds-reorderable-list-reorderable-item-users-count-color","",l.contentGlobalPrimary),reorderableItemUsersCountMarginRight:t.extend("--ftds-reorderable-list-reorderable-item-users-count-margin-right","",i.spacing6),reorderableItemBackgroundColor:t.extend("--ftds-reorderable-list-reorderable-item-background-color","",l.backgroundGlobalOnSurface),reorderableItemWarningMessageGap:t.extend("--ftds-reorderable-list-reorderable-item-warning-message-gap","",i.spacing1),reorderableItemWarningMessageColor:t.extend("--ftds-reorderable-list-reorderable-item-warning-message-color","",l.contentWarningPrimary),reorderableItemWarningMessageIconColor:t.extend("--ftds-reorderable-list-reorderable-item-warning-message-icon-color","",l.contentWarningIconOnly),reorderableItemGripColor:t.extend("--ftds-reorderable-list-reorderable-item-grip-color","",l.contentGlobalSecondary),reorderableItemGripOpacity:t.extend("--ftds-reorderable-list-reorderable-item-grip-opacity","",i.opacity48),boxShadow:t.extend("--ftds-reorderable-list-box-shadow","",i.shadowElevation01),borderWidth:t.create("--ftds-reorderable-list-border-width","","SIZE","1px"),reorderableItemsGap:t.extend("--ftds-reorderable-list-reorderable-items-gap","",i.spacing2),leftPadding:t.extend("--ftds-reorderable-list-left-padding","",i.spacing2),rightPadding:t.extend("--ftds-reorderable-list-right-padding","",i.spacing6),borderColor:t.extend("--ftds-reorderable-list-border-color","",l.borderGlobalPrimary),backgroundColor:t.extend("--ftds-reorderable-list-background-color","",l.backgroundGlobalOnSurfaceDark)};var fy={menuHorizontalPadding:t.extend("--ftds-date-range-picker-menu-horizontal-padding","",i.spacing4),menuVerticalPadding:t.extend("--ftds-date-range-picker-menu-vertical-padding","",i.spacing4),menuVerticalGap:t.extend("--ftds-date-range-picker-menu-vertical-gap","",i.spacing4),menuButtonsVerticalGap:t.extend("--ftds-date-range-picker-menu-buttons-vertical-gap","",i.spacing2)};var Ki;(function(o){o.brand="brand",o.neutral="neutral",o.info="info",o.success="success",o.warning="warning",o.error="error"})(Ki||(Ki={}));var Zi;(function(o){o.large="large",o.medium="medium",o.small="small"})(Zi||(Zi={}));var At=C(V());function pc(o,e){let r=Bo[o];return At.css`
183
+ `}};Ze.styles=[Ci,Oi,Ei,Ai,Nr,wi,Ii,Ti,Ri,_i,Ni];Li([(0,Mo.property)()],Ze.prototype,"element",void 0);Li([(0,Mo.property)()],Ze.prototype,"variant",void 0);var Bo=C(J()),es=C(_());var Lr;(function(o){o.display="display",o.title1="title-1",o.title2="title-2",o.title3="title-3",o.body1regular="body-1-regular",o.body1medium="body-1-medium",o.body1semibold="body-1-semibold",o.body2regular="body-2-regular",o.body2medium="body-2-medium",o.body2semibold="body-2-semibold",o.caption1medium="caption-1-medium",o.caption1semibold="caption-1-semibold",o.caption2medium="caption-2-medium",o.caption2semibold="caption-2-semibold",o.caption2bold="caption-2-bold"})(Lr||(Lr={}));var Oe=C(V(),1),Le=o=>typeof o=="string"?(0,Oe.unsafeCSS)(o):o,t=class{static create(e,r,n,a){let s=d=>Le(d??a),c=Oe.css`var(${Le(e)}, ${s(a)})`;return c.name=e,c.description=r,c.category=n,c.defaultValue=a,c.defaultCssValue=s,c.set=d=>ki(c,d??s(a)),c.get=d=>Oe.css`var(${Le(e)}, ${s(d)})`,c.breadcrumb=()=>[],c.lastResortDefaultValue=()=>a,c}static extend(e,r,n,a){let s=d=>n.get(d??a),c=Oe.css`var(${Le(e)}, ${s(a)})`;return c.name=e,c.description=r,c.category=n.category,c.fallbackVariable=n,c.defaultValue=a,c.defaultCssValue=s,c.set=d=>ki(c,d??s(a)),c.get=d=>Oe.css`var(${Le(e)}, ${s(d)})`,c.breadcrumb=()=>[n.name,...n.breadcrumb()],c.lastResortDefaultValue=()=>a??n.lastResortDefaultValue(),c}static external(e,r){let n=s=>e.defaultCssValue(s),a=Oe.css`var(${Le(e.name)}, ${n(e.defaultValue)})`;return a.name=e.name,a.category=e.category,a.fallbackVariable=e.fallbackVariable,a.defaultValue=e.defaultValue,a.context=r,a.defaultCssValue=n,a.set=s=>e.set(s),a.get=s=>Oe.css`var(${Le(e.name)}, ${n(s)})`,a.breadcrumb=()=>e.breadcrumb(),a.lastResortDefaultValue=()=>e.lastResortDefaultValue(),a}};function ki(o,e){return Le(`${o.name}: ${e}`)}var i={colorWhite:t.create("--ftds-color-white","","COLOR","#ffffff"),colorGray0:t.create("--ftds-color-gray-0","","COLOR","#71718e"),colorGray10:t.create("--ftds-color-gray-10","","COLOR","#fbfbfc"),colorGray20:t.create("--ftds-color-gray-20","","COLOR","#f2f2f5"),colorGray30:t.create("--ftds-color-gray-30","","COLOR","#e9e9ed"),colorGray40:t.create("--ftds-color-gray-40","","COLOR","#e0e0e6"),colorGray50:t.create("--ftds-color-gray-50","","COLOR","#cdcdd7"),colorGray60:t.create("--ftds-color-gray-60","","COLOR","#bbbbc9"),colorGray70:t.create("--ftds-color-gray-70","","COLOR","#a8a8ba"),colorGray80:t.create("--ftds-color-gray-80","","COLOR","#9696ab"),colorGray90:t.create("--ftds-color-gray-90","","COLOR","#83839d"),colorGray100:t.create("--ftds-color-gray-100","","COLOR","#62627c"),colorGray200:t.create("--ftds-color-gray-200","","COLOR","#545469"),colorGray300:t.create("--ftds-color-gray-300","","COLOR","#454557"),colorGray400:t.create("--ftds-color-gray-400","","COLOR","#363644"),colorGray500:t.create("--ftds-color-gray-500","","COLOR","#282832"),colorGray600:t.create("--ftds-color-gray-600","","COLOR","#19191f"),colorGray700:t.create("--ftds-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:t.create("--ftds-color-brand-0","","COLOR","#9d207b"),colorBrand10:t.create("--ftds-color-brand-10","","COLOR","#f7edf4"),colorBrand20:t.create("--ftds-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:t.create("--ftds-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:t.create("--ftds-color-brand-40","","COLOR","#d395c2"),colorBrand50:t.create("--ftds-color-brand-50","","COLOR","#c778b1"),colorBrand60:t.create("--ftds-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:t.create("--ftds-color-brand-70","","COLOR","#ae3e90"),colorBrand100:t.create("--ftds-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:t.create("--ftds-color-brand-200","","COLOR","#78185e"),colorBrand300:t.create("--ftds-color-brand-300","","COLOR","#62144d"),colorBrand400:t.create("--ftds-color-brand-400","","COLOR","#4d103c"),colorBrand500:t.create("--ftds-color-brand-500","","COLOR","#380b2c"),colorBrand600:t.create("--ftds-color-brand-600","","COLOR","#23071b"),colorBrand700:t.create("--ftds-color-brand-700","","COLOR","#0d030b"),colorCyan0:t.create("--ftds-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:t.create("--ftds-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:t.create("--ftds-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:t.create("--ftds-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:t.create("--ftds-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:t.create("--ftds-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:t.create("--ftds-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:t.create("--ftds-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:t.create("--ftds-color-cyan-100","","COLOR","#0c849c"),colorCyan200:t.create("--ftds-color-cyan-200","","COLOR","#0a7085"),colorCyan300:t.create("--ftds-color-cyan-300","","COLOR","#085c6d"),colorCyan400:t.create("--ftds-color-cyan-400","","COLOR","#074856"),colorCyan500:t.create("--ftds-color-cyan-500","","COLOR","#05343e"),colorCyan600:t.create("--ftds-color-cyan-600","","COLOR","#032127"),colorCyan700:t.create("--ftds-color-cyan-700","","COLOR","#010d0f"),colorGreen0:t.create("--ftds-color-green-0","","COLOR","#21a274"),colorGreen10:t.create("--ftds-color-green-10","","COLOR","#edf7f3"),colorGreen20:t.create("--ftds-color-green-20","","COLOR","#cfebe1"),colorGreen30:t.create("--ftds-color-green-30","","COLOR","#b2dfcf"),colorGreen40:t.create("--ftds-color-green-40","","COLOR","#95d3bd"),colorGreen50:t.create("--ftds-color-green-50","","COLOR","#78c7ab"),colorGreen60:t.create("--ftds-color-green-60","","COLOR","#5bba98"),colorGreen70:t.create("--ftds-color-green-70","","COLOR","#3eae86"),colorGreen100:t.create("--ftds-color-green-100","","COLOR","#1d8d65"),colorGreen200:t.create("--ftds-color-green-200","","COLOR","#187856"),colorGreen300:t.create("--ftds-color-green-300","","COLOR","#146246"),colorGreen400:t.create("--ftds-color-green-400","","COLOR","#104d37"),colorGreen500:t.create("--ftds-color-green-500","","COLOR","#0b3828"),colorGreen600:t.create("--ftds-color-green-600","","COLOR","#072319"),colorGreen700:t.create("--ftds-color-green-700","","COLOR","#030d0a"),colorOrange0:t.create("--ftds-color-orange-0","","COLOR","#F2700D"),colorOrange10:t.create("--ftds-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:t.create("--ftds-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:t.create("--ftds-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:t.create("--ftds-color-orange-40","","COLOR","#FECB90"),colorOrange50:t.create("--ftds-color-orange-50","","COLOR","#FCB76E"),colorOrange60:t.create("--ftds-color-orange-60","","COLOR","#F9A34D"),colorOrange70:t.create("--ftds-color-orange-70","","COLOR","#F68B2C"),colorOrange100:t.create("--ftds-color-orange-100","","COLOR","#D35909"),colorOrange200:t.create("--ftds-color-orange-200","","COLOR","#B74706"),colorOrange300:t.create("--ftds-color-orange-300","","COLOR","#913503"),colorOrange400:t.create("--ftds-color-orange-400","","COLOR","#6F2601"),colorOrange500:t.create("--ftds-color-orange-500","","COLOR","#4D1800"),colorOrange600:t.create("--ftds-color-orange-600","","COLOR","#330F00"),colorOrange700:t.create("--ftds-color-orange-700","","COLOR","#140600"),colorRed0:t.create("--ftds-color-red-0","","COLOR","#b40e2c"),colorRed10:t.create("--ftds-color-red-10","","COLOR","#f9ebed"),colorRed20:t.create("--ftds-color-red-20","","COLOR","#efcbd2"),colorRed30:t.create("--ftds-color-red-30","","COLOR","#e5acb6"),colorRed40:t.create("--ftds-color-red-40","","COLOR","#db8c9b"),colorRed50:t.create("--ftds-color-red-50","","COLOR","#d16d7f"),colorRed60:t.create("--ftds-color-red-60","","COLOR","#c84d63"),colorRed70:t.create("--ftds-color-red-70","","COLOR","#be2e48"),colorRed100:t.create("--ftds-color-red-100","","COLOR","#9c0c26"),colorRed200:t.create("--ftds-color-red-200","","COLOR","#850a20"),colorRed300:t.create("--ftds-color-red-300","","COLOR","#6d081b"),colorRed400:t.create("--ftds-color-red-400","","COLOR","#560715"),colorRed500:t.create("--ftds-color-red-500","","COLOR","#3e050f"),colorRed600:t.create("--ftds-color-red-600","","COLOR","#270309"),colorRed700:t.create("--ftds-color-red-700","","COLOR","#0f0104"),colorYellow0:t.create("--ftds-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:t.create("--ftds-color-yellow-10","","COLOR","#fefae9"),colorYellow20:t.create("--ftds-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:t.create("--ftds-color-yellow-30","","COLOR","#faedaa"),colorYellow40:t.create("--ftds-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:t.create("--ftds-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:t.create("--ftds-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:t.create("--ftds-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:t.create("--ftds-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:t.create("--ftds-color-yellow-200","","COLOR","#b3970a"),colorYellow300:t.create("--ftds-color-yellow-300","","COLOR","#947c08"),colorYellow400:t.create("--ftds-color-yellow-400","","COLOR","#746206"),colorYellow500:t.create("--ftds-color-yellow-500","","COLOR","#554705"),colorYellow600:t.create("--ftds-color-yellow-600","","COLOR","#352d03"),colorYellow700:t.create("--ftds-color-yellow-700","","COLOR","#161201"),colorUltramarine0:t.create("--ftds-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:t.create("--ftds-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:t.create("--ftds-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:t.create("--ftds-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:t.create("--ftds-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:t.create("--ftds-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:t.create("--ftds-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:t.create("--ftds-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:t.create("--ftds-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:t.create("--ftds-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:t.create("--ftds-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:t.create("--ftds-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:t.create("--ftds-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:t.create("--ftds-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:t.create("--ftds-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:t.create("--ftds-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:t.create("--ftds-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:t.create("--ftds-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:t.create("--ftds-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:t.create("--ftds-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:t.create("--ftds-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:t.create("--ftds-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:t.create("--ftds-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:t.create("--ftds-color-avocado-100","","COLOR","#84A423"),colorAvocado200:t.create("--ftds-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:t.create("--ftds-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:t.create("--ftds-color-avocado-400","","COLOR","#495B13"),colorAvocado500:t.create("--ftds-color-avocado-500","","COLOR","#35420E"),colorAvocado600:t.create("--ftds-color-avocado-600","","COLOR","#212A09"),colorAvocado700:t.create("--ftds-color-avocado-700","","COLOR","#0E1104"),colorBrown0:t.create("--ftds-color-brown-0","","COLOR","#B26F4D"),colorBrown10:t.create("--ftds-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:t.create("--ftds-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:t.create("--ftds-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:t.create("--ftds-color-brown-40","","COLOR","#DABAAA"),colorBrown50:t.create("--ftds-color-brown-50","","COLOR","#D0A792"),colorBrown60:t.create("--ftds-color-brown-60","","COLOR","#C6947B"),colorBrown70:t.create("--ftds-color-brown-70","","COLOR","#BC8264"),colorBrown100:t.create("--ftds-color-brown-100","","COLOR","#9B6143"),colorBrown200:t.create("--ftds-color-brown-200","","COLOR","#845239"),colorBrown300:t.create("--ftds-color-brown-300","","COLOR","#6D442F"),colorBrown400:t.create("--ftds-color-brown-400","","COLOR","#553525"),colorBrown500:t.create("--ftds-color-brown-500","","COLOR","#3E271B"),colorBrown600:t.create("--ftds-color-brown-600","","COLOR","#271811"),colorBrown700:t.create("--ftds-color-brown-700","","COLOR","#100A07"),spacing1:t.create("--ftds-spacing-1","","SIZE","0.25rem"),spacing2:t.create("--ftds-spacing-2","","SIZE","calc(0.25rem*2)"),spacing3:t.create("--ftds-spacing-3","","SIZE","calc(0.25rem*3)"),spacing4:t.create("--ftds-spacing-4","","SIZE","calc(0.25rem*4)"),spacing5:t.create("--ftds-spacing-5","","SIZE","calc(0.25rem*5)"),spacing6:t.create("--ftds-spacing-6","","SIZE","calc(0.25rem*6)"),spacing8:t.create("--ftds-spacing-8","","SIZE","calc(0.25rem*8)"),spacing10:t.create("--ftds-spacing-10","","SIZE","calc(0.25rem*10)"),spacing12:t.create("--ftds-spacing-12","","SIZE","calc(0.25rem*12)"),spacing16:t.create("--ftds-spacing-16","","SIZE","calc(0.25rem*16)"),spacing20:t.create("--ftds-spacing-20","","SIZE","calc(0.25rem*20)"),spacing24:t.create("--ftds-spacing-24","","SIZE","calc(0.25rem*24)"),spacing28:t.create("--ftds-spacing-28","","SIZE","calc(0.25rem*28)"),spacing32:t.create("--ftds-spacing-32","","SIZE","calc(0.25rem*32)"),spacing05:t.create("--ftds-spacing-0-5","","SIZE","calc(0.25rem*0.5)"),borderRadiusS:t.create("--ftds-border-radius-s","","SIZE","4px"),borderRadiusM:t.create("--ftds-border-radius-m","","SIZE","8px"),borderRadiusL:t.create("--ftds-border-radius-l","","SIZE","12px"),borderRadiusXl:t.create("--ftds-border-radius-xl","","SIZE","16px"),borderRadiusPill:t.create("--ftds-border-radius-pill","","SIZE","999px"),borderRadiusRound:t.create("--ftds-border-radius-round","","SIZE","50%"),iconSize1:t.create("--ftds-icon-size-1","","SIZE","0.75rem"),iconSize2:t.create("--ftds-icon-size-2","","SIZE","1rem"),iconSize3:t.create("--ftds-icon-size-3","","SIZE","1.25rem"),iconSize4:t.create("--ftds-icon-size-4","","SIZE","1.5rem"),iconSize5:t.create("--ftds-icon-size-5","","SIZE","2rem"),iconSize6:t.create("--ftds-icon-size-6","","SIZE","3rem"),opacity0:t.create("--ftds-opacity-0","","NUMBER","0"),opacity8:t.create("--ftds-opacity-8","","NUMBER","0.08"),opacity12:t.create("--ftds-opacity-12","","NUMBER","0.12"),opacity16:t.create("--ftds-opacity-16","","NUMBER","0.16"),opacity24:t.create("--ftds-opacity-24","","NUMBER","0.24"),opacity32:t.create("--ftds-opacity-32","","NUMBER","0.32"),opacity40:t.create("--ftds-opacity-40","","NUMBER","0.4"),opacity48:t.create("--ftds-opacity-48","","NUMBER","0.48"),opacity80:t.create("--ftds-opacity-80","","NUMBER","0.8"),shadowElevation01:t.create("--ftds-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:t.create("--ftds-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:t.create("--ftds-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:t.create("--ftds-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:t.create("--ftds-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:t.create("--ftds-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:t.create("--ftds-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:t.create("--ftds-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:t.create("--ftds-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)")},Di={fontFamily:t.create("--ftds-typography-display-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-display-font-weight","","UNKNOWN","600"),lineHeight:t.create("--ftds-typography-display-line-height","","SIZE","1.2"),fontSize:t.create("--ftds-typography-display-font-size","","SIZE","2.5rem"),letterSpacing:t.create("--ftds-typography-display-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:t.create("--ftds-typography-display-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-display-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-display-text-decoration","","UNKNOWN","none"),textCase:t.create("--ftds-typography-display-text-case","","UNKNOWN","none")},Fi={fontFamily:t.create("--ftds-typography-title-1-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-title-1-font-weight","","UNKNOWN","600"),lineHeight:t.create("--ftds-typography-title-1-line-height","","SIZE","1.2"),fontSize:t.create("--ftds-typography-title-1-font-size","","SIZE","1.5rem"),letterSpacing:t.create("--ftds-typography-title-1-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:t.create("--ftds-typography-title-1-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-title-1-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-title-1-text-decoration","","UNKNOWN","none"),textCase:t.create("--ftds-typography-title-1-text-case","","UNKNOWN","none")},Mi={fontFamily:t.create("--ftds-typography-title-2-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-title-2-font-weight","","UNKNOWN","500"),lineHeight:t.create("--ftds-typography-title-2-line-height","","SIZE","1.2"),fontSize:t.create("--ftds-typography-title-2-font-size","","SIZE","1.25rem"),letterSpacing:t.create("--ftds-typography-title-2-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:t.create("--ftds-typography-title-2-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-title-2-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-title-2-text-decoration","","UNKNOWN","none"),textCase:t.create("--ftds-typography-title-2-text-case","","UNKNOWN","none")},Ui={fontFamily:t.create("--ftds-typography-title-3-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-title-3-font-weight","","UNKNOWN","500"),lineHeight:t.create("--ftds-typography-title-3-line-height","","SIZE","1.2"),fontSize:t.create("--ftds-typography-title-3-font-size","","SIZE","1.125rem"),letterSpacing:t.create("--ftds-typography-title-3-letter-spacing","","SIZE","-0.01em"),paragraphSpacing:t.create("--ftds-typography-title-3-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-title-3-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-title-3-text-decoration","","UNKNOWN","none"),textCase:t.create("--ftds-typography-title-3-text-case","","UNKNOWN","none")},Bi={fontFamily:t.create("--ftds-typography-body-1-regular-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-body-1-regular-font-weight","","UNKNOWN","400"),lineHeight:t.create("--ftds-typography-body-1-regular-line-height","","SIZE","1.35"),fontSize:t.create("--ftds-typography-body-1-regular-font-size","","SIZE","1rem"),letterSpacing:t.create("--ftds-typography-body-1-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:t.create("--ftds-typography-body-1-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-body-1-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-body-1-regular-text-decoration","","UNKNOWN","none"),textCase:t.create("--ftds-typography-body-1-regular-text-case","","UNKNOWN","none")},Hi={fontFamily:t.create("--ftds-typography-body-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-body-1-medium-font-weight","","UNKNOWN","500"),lineHeight:t.create("--ftds-typography-body-1-medium-line-height","","SIZE","1.35"),fontSize:t.create("--ftds-typography-body-1-medium-font-size","","SIZE","1rem"),letterSpacing:t.create("--ftds-typography-body-1-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:t.create("--ftds-typography-body-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-body-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-body-1-medium-text-decoration","","UNKNOWN","none"),textCase:t.create("--ftds-typography-body-1-medium-text-case","","UNKNOWN","none")},zi={fontFamily:t.create("--ftds-typography-body-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-body-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:t.create("--ftds-typography-body-1-semibold-line-height","","SIZE","1.35"),fontSize:t.create("--ftds-typography-body-1-semibold-font-size","","SIZE","1rem"),letterSpacing:t.create("--ftds-typography-body-1-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:t.create("--ftds-typography-body-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-body-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-body-1-semibold-text-decoration","","UNKNOWN","none"),textCase:t.create("--ftds-typography-body-1-semibold-text-case","","UNKNOWN","none")},Gi={fontFamily:t.create("--ftds-typography-body-2-regular-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-body-2-regular-font-weight","","UNKNOWN","400"),lineHeight:t.create("--ftds-typography-body-2-regular-line-height","","SIZE","1.35"),fontSize:t.create("--ftds-typography-body-2-regular-font-size","","SIZE","0.875rem"),letterSpacing:t.create("--ftds-typography-body-2-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:t.create("--ftds-typography-body-2-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-body-2-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-body-2-regular-text-decoration","","UNKNOWN","none"),textCase:t.create("--ftds-typography-body-2-regular-text-case","","UNKNOWN","none")},Wi={fontFamily:t.create("--ftds-typography-body-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-body-2-medium-font-weight","","UNKNOWN","500"),lineHeight:t.create("--ftds-typography-body-2-medium-line-height","","SIZE","1.35"),fontSize:t.create("--ftds-typography-body-2-medium-font-size","","SIZE","0.875rem"),letterSpacing:t.create("--ftds-typography-body-2-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:t.create("--ftds-typography-body-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-body-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-body-2-medium-text-decoration","","UNKNOWN","none"),textCase:t.create("--ftds-typography-body-2-medium-text-case","","UNKNOWN","none")},hc={fontFamily:t.create("--ftds-typography-body-2-medium-underline-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-body-2-medium-underline-font-weight","","UNKNOWN","500"),lineHeight:t.create("--ftds-typography-body-2-medium-underline-line-height","","SIZE","1.35"),fontSize:t.create("--ftds-typography-body-2-medium-underline-font-size","","SIZE","0.875rem"),letterSpacing:t.create("--ftds-typography-body-2-medium-underline-letter-spacing","","SIZE","normal"),paragraphSpacing:t.create("--ftds-typography-body-2-medium-underline-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-body-2-medium-underline-paragraph-indent","","UNKNOWN","0"),textCase:t.create("--ftds-typography-body-2-medium-underline-text-case","","UNKNOWN","none"),textDecoration:t.create("--ftds-typography-body-2-medium-underline-text-decoration","","UNKNOWN","underline")},$i={fontFamily:t.create("--ftds-typography-body-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-body-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:t.create("--ftds-typography-body-2-semibold-line-height","","SIZE","1.35"),fontSize:t.create("--ftds-typography-body-2-semibold-font-size","","SIZE","0.875rem"),letterSpacing:t.create("--ftds-typography-body-2-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:t.create("--ftds-typography-body-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-body-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-body-2-semibold-text-decoration","","UNKNOWN","none"),textCase:t.create("--ftds-typography-body-2-semibold-text-case","","UNKNOWN","none")},ji={fontFamily:t.create("--ftds-typography-caption-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-caption-1-medium-font-weight","","UNKNOWN","500"),lineHeight:t.create("--ftds-typography-caption-1-medium-line-height","","SIZE","1.3"),fontSize:t.create("--ftds-typography-caption-1-medium-font-size","","SIZE","0.75rem"),letterSpacing:t.create("--ftds-typography-caption-1-medium-letter-spacing","","SIZE","normal"),textCase:t.create("--ftds-typography-caption-1-medium-text-case","","UNKNOWN","none"),paragraphSpacing:t.create("--ftds-typography-caption-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-caption-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-caption-1-medium-text-decoration","","UNKNOWN","none")},Vi={fontFamily:t.create("--ftds-typography-caption-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-caption-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:t.create("--ftds-typography-caption-1-semibold-line-height","","SIZE","1.3"),fontSize:t.create("--ftds-typography-caption-1-semibold-font-size","","SIZE","0.75rem"),letterSpacing:t.create("--ftds-typography-caption-1-semibold-letter-spacing","","SIZE","normal"),textCase:t.create("--ftds-typography-caption-1-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:t.create("--ftds-typography-caption-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-caption-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-caption-1-semibold-text-decoration","","UNKNOWN","none")},Ki={fontFamily:t.create("--ftds-typography-caption-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-caption-2-medium-font-weight","","UNKNOWN","500"),lineHeight:t.create("--ftds-typography-caption-2-medium-line-height","","SIZE","1.3"),fontSize:t.create("--ftds-typography-caption-2-medium-font-size","","SIZE","0.6875rem"),letterSpacing:t.create("--ftds-typography-caption-2-medium-letter-spacing","","SIZE","normal"),textCase:t.create("--ftds-typography-caption-2-medium-text-case","","UNKNOWN","none"),paragraphSpacing:t.create("--ftds-typography-caption-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-caption-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-caption-2-medium-text-decoration","","UNKNOWN","none")},Zi={fontFamily:t.create("--ftds-typography-caption-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-caption-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:t.create("--ftds-typography-caption-2-semibold-line-height","","SIZE","1.3"),fontSize:t.create("--ftds-typography-caption-2-semibold-font-size","","SIZE","0.6875rem"),letterSpacing:t.create("--ftds-typography-caption-2-semibold-letter-spacing","","SIZE","normal"),textCase:t.create("--ftds-typography-caption-2-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:t.create("--ftds-typography-caption-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-caption-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-caption-2-semibold-text-decoration","","UNKNOWN","none")},qi={fontFamily:t.create("--ftds-typography-caption-2-bold-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-caption-2-bold-font-weight","","UNKNOWN","700"),lineHeight:t.create("--ftds-typography-caption-2-bold-line-height","","SIZE","1.3"),fontSize:t.create("--ftds-typography-caption-2-bold-font-size","","SIZE","0.6875rem"),letterSpacing:t.create("--ftds-typography-caption-2-bold-letter-spacing","","SIZE","normal"),textCase:t.create("--ftds-typography-caption-2-bold-text-case","","UNKNOWN","none"),paragraphSpacing:t.create("--ftds-typography-caption-2-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-caption-2-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-caption-2-bold-text-decoration","","UNKNOWN","none")},Uo={display:Di,"title-1":Fi,"title-2":Mi,"title-3":Ui,"body-1-regular":Bi,"body-1-medium":Hi,"body-1-semibold":zi,"body-2-regular":Gi,"body-2-medium":Wi,"body-2-medium-underline":hc,"body-2-semibold":$i,"caption-1-medium":ji,"caption-1-semibold":Vi,"caption-2-medium":Ki,"caption-2-semibold":Zi,"caption-2-bold":qi};var l={backgroundActionPrimary:t.extend("--ftds-background-action-primary","Used as backgorund of primary action components.",i.colorBrand0),backgroundErrorSubtle:t.extend("--ftds-background-error-subtle","Used as background of subtle error components.",i.colorRed10),backgroundInfoSubtle:t.extend("--ftds-background-info-subtle","Used as background of subtle information components.",i.colorCyan10),backgroundWarningSubtle:t.extend("--ftds-background-warning-subtle","Used as background of subtle information components.",i.colorOrange10),backgroundSuccessSubtle:t.extend("--ftds-background-success-subtle","Used as background of subtle success components.",i.colorGreen10),backgroundGlobalSurface:t.extend("--ftds-background-global-surface","Used as app background.",i.colorWhite),backgroundGlobalOnSurface:t.extend("--ftds-background-global-on-surface","Used as background on element on the base background, like cards.",i.colorGray10),backgroundGlobalOnSurfaceDark:t.extend("--ftds-background-global-on-surface-dark","Used as background on element that need background separation.",i.colorGray30),contentActionPrimary:t.extend("--ftds-content-action-primary","Used on label of primary action on light surface.",i.colorBrand0),contentWarningPrimary:t.extend("--ftds-content-warning-primary","Used on label of warning messages on light surface.",i.colorOrange200),contentWarningIconOnly:t.extend("--ftds-content-warning-icon-only","Used on warning status icons alone",i.colorOrange0),contentErrorPrimary:t.extend("--ftds-content-error-primary","Used on label of error messages on light surface.",i.colorRed0),contentErrorIconOnly:t.extend("--ftds-content-error-icon-only","Used on error status icons alone",i.colorRed70),contentInfoPrimary:t.extend("--ftds-content-info-primary","Used on label of information messages on light surface.",i.colorCyan200),contentInfoIconOnly:t.extend("--ftds-content-info-icon-only","Used on info status icons alone",i.colorCyan0),contentSuccessPrimary:t.extend("--ftds-content-success-primary","Used on label of success messages on light surface.",i.colorGreen200),contentSuccessIconOnly:t.extend("--ftds-content-success-icon-only","Used on success status icons alone",i.colorGreen0),contentGlobalPrimary:t.extend("--ftds-content-global-primary","Used for main content on the page.",i.colorGray500),contentGlobalSecondary:t.extend("--ftds-content-global-secondary",`Used for secondary content, often paired with primary content.
184
+ Also for action icons.`,i.colorGray200),contentGlobalSubtle:t.extend("--ftds-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",i.colorGray0),contentGlobalOnColor:t.extend("--ftds-content-global-on-color","Used for content on a dominant color.",i.colorWhite),borderActionPrimary:t.extend("--ftds-border-action-primary","Used as border for primary action components.",i.colorBrand0),borderActionFocusRing:t.extend("--ftds-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",i.colorCyan0),borderWarningPrimary:t.extend("--ftds-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",i.colorOrange200),borderWarningSubtle:t.extend("--ftds-border-warning-subtle","Used as border for warning components.",i.colorOrange30),borderSuccessPrimary:t.extend("--ftds-border-success-primary","Used as border for success buttons.",i.colorGreen200),borderSuccessSubtle:t.extend("--ftds-border-success-subtle","Used as border for success components.",i.colorGreen30),borderErrorPrimary:t.extend("--ftds-border-error-primary","Used as border for text fields in error states.",i.colorRed0),borderErrorSubtle:t.extend("--ftds-border-error-subtle","Used as border for error components.",i.colorRed30),borderInfoPrimary:t.extend("--ftds-border-info-primary","Used as border for buttons in info color.",i.colorCyan200),borderInfoSubtle:t.extend("--ftds-border-info-subtle","Used as border for information components.",i.colorCyan30),borderGlobalPrimary:t.extend("--ftds-border-global-primary","Used as border for elements/areas filled with background.global.on-surface-dark",i.colorGray50),borderGlobalSecondary:t.extend("--ftds-border-global-secondary","Used as border for elements/areas filled with background.global.on-surface",i.colorGray40),borderGlobalSubtle:t.extend("--ftds-border-global-subtle","Used as border to deliminate an area/element filled with background.global.surface and separators.",i.colorGray30),borderInputPrimary:t.extend("--ftds-border-input-primary","Used as border for checkboxes and radio buttons",i.colorGray80),borderNeutralPrimary:t.extend("--ftds-border-neutral-primary","Used as border for neutral secondary buttons",i.colorGray200)};var Ef={largeHeight:t.create("--ftds-button-large-height","","SIZE","40px"),largeHorizontalPadding:t.extend("--ftds-button-large-horizontal-padding","",i.spacing4),largeGap:t.extend("--ftds-button-large-gap","",i.spacing2),largeBorderRadius:t.extend("--ftds-button-large-border-radius","",i.borderRadiusS),largeIconSize:t.extend("--ftds-button-large-icon-size","",i.iconSize3),largeBorderWidth:t.create("--ftds-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:t.create("--ftds-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:t.create("--ftds-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:t.create("--ftds-button-large-icon-only-width","","SIZE","40px"),mediumHeight:t.create("--ftds-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:t.extend("--ftds-button-medium-horizontal-padding","",i.spacing3),mediumGap:t.extend("--ftds-button-medium-gap","",i.spacing2),mediumBorderRadius:t.extend("--ftds-button-medium-border-radius","",i.borderRadiusS),mediumIconSize:t.extend("--ftds-button-medium-icon-size","",i.iconSize2),mediumBorderWidth:t.create("--ftds-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:t.create("--ftds-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:t.create("--ftds-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:t.create("--ftds-button-medium-icon-only-width","","SIZE","30px"),smallHeight:t.create("--ftds-button-small-height","","SIZE","20px"),smallHorizontalPadding:t.extend("--ftds-button-small-horizontal-padding","",i.spacing2),smallGap:t.extend("--ftds-button-small-gap","",i.spacing1),smallBorderRadius:t.extend("--ftds-button-small-border-radius","",i.borderRadiusS),smallIconSize:t.extend("--ftds-button-small-icon-size","",i.iconSize1),smallBorderWidth:t.create("--ftds-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:t.create("--ftds-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:t.create("--ftds-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:t.create("--ftds-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:t.create("--ftds-button-x-small-height","","SIZE","16px"),xSmallIconSize:t.extend("--ftds-button-x-small-icon-size","",i.iconSize1),xSmallFocusOutlineOffset:t.create("--ftds-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:t.create("--ftds-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:t.create("--ftds-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:t.extend("--ftds-button-round-border-radius","",i.borderRadiusPill),primaryBrandBackgroundColor:t.extend("--ftds-button-primary-brand-background-color","",l.backgroundActionPrimary),primaryBrandColor:t.extend("--ftds-button-primary-brand-color","",l.contentGlobalOnColor),primaryBrandIconColor:t.extend("--ftds-button-primary-brand-icon-color","",l.contentGlobalOnColor),primaryBrandStateLayerColor:t.extend("--ftds-button-primary-brand-state-layer-color","",l.contentGlobalOnColor),primaryBrandHoverStateLayerOpacity:t.extend("--ftds-button-primary-brand-hover-state-layer-opacity","",i.opacity16),primaryBrandFocusStateLayerOpacity:t.extend("--ftds-button-primary-brand-focus-state-layer-opacity","",i.opacity16),primaryBrandActiveStateLayerOpacity:t.extend("--ftds-button-primary-brand-active-state-layer-opacity","",i.opacity24),primaryBrandDisabledComponentOpacity:t.extend("--ftds-button-primary-brand-disabled-component-opacity","",i.opacity40),focusFocusRingColor:t.extend("--ftds-button-focus-focus-ring-color","",l.borderActionFocusRing),tertiaryBrandBackgroundColor:t.create("--ftds-button-tertiary-brand-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryBrandColor:t.extend("--ftds-button-tertiary-brand-color","",l.contentActionPrimary),tertiaryBrandIconColor:t.extend("--ftds-button-tertiary-brand-icon-color","",l.contentActionPrimary),tertiaryBrandStateLayerColor:t.extend("--ftds-button-tertiary-brand-state-layer-color","",l.contentActionPrimary),tertiaryBrandHoverStateLayerOpacity:t.extend("--ftds-button-tertiary-brand-hover-state-layer-opacity","",i.opacity8),tertiaryBrandFocusStateLayerOpacity:t.extend("--ftds-button-tertiary-brand-focus-state-layer-opacity","",i.opacity8),tertiaryBrandActiveStateLayerOpacity:t.extend("--ftds-button-tertiary-brand-active-state-layer-opacity","",i.opacity16),tertiaryBrandDisabledComponentOpacity:t.extend("--ftds-button-tertiary-brand-disabled-component-opacity","",i.opacity40),tertiaryInfoBackgroundColor:t.create("--ftds-button-tertiary-info-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryInfoColor:t.extend("--ftds-button-tertiary-info-color","",l.contentInfoPrimary),tertiaryInfoIconColor:t.extend("--ftds-button-tertiary-info-icon-color","",l.contentInfoPrimary),tertiaryInfoStateLayerColor:t.extend("--ftds-button-tertiary-info-state-layer-color","",l.contentInfoPrimary),tertiaryInfoFocusStateLayerOpacity:t.extend("--ftds-button-tertiary-info-focus-state-layer-opacity","",i.opacity8),tertiaryInfoHoverStateLayerOpacity:t.extend("--ftds-button-tertiary-info-hover-state-layer-opacity","",i.opacity8),tertiaryInfoActiveStateLayerOpacity:t.extend("--ftds-button-tertiary-info-active-state-layer-opacity","",i.opacity16),tertiaryInfoDisabledComponentOpacity:t.extend("--ftds-button-tertiary-info-disabled-component-opacity","",i.opacity40),tertiarySuccessBackgroundColor:t.create("--ftds-button-tertiary-success-background-color","","COLOR","rgba(0,0,0,0)"),tertiarySuccessColor:t.extend("--ftds-button-tertiary-success-color","",l.contentSuccessPrimary),tertiarySuccessIconColor:t.extend("--ftds-button-tertiary-success-icon-color","",l.contentSuccessPrimary),tertiarySuccessStateLayerColor:t.extend("--ftds-button-tertiary-success-state-layer-color","",l.contentSuccessPrimary),tertiarySuccessHoverStateLayerOpacity:t.extend("--ftds-button-tertiary-success-hover-state-layer-opacity","",i.opacity8),tertiarySuccessFocusStateLayerOpacity:t.extend("--ftds-button-tertiary-success-focus-state-layer-opacity","",i.opacity8),tertiarySuccessActiveStateLayerOpacity:t.extend("--ftds-button-tertiary-success-active-state-layer-opacity","",i.opacity16),tertiarySuccessDisabledComponentOpacity:t.extend("--ftds-button-tertiary-success-disabled-component-opacity","",i.opacity40),tertiaryWarningBackgroundColor:t.create("--ftds-button-tertiary-warning-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryWarningColor:t.extend("--ftds-button-tertiary-warning-color","",l.contentWarningPrimary),tertiaryWarningIconColor:t.extend("--ftds-button-tertiary-warning-icon-color","",l.contentWarningPrimary),tertiaryWarningStateLayerColor:t.extend("--ftds-button-tertiary-warning-state-layer-color","",l.contentWarningPrimary),tertiaryWarningHoverStateLayerOpacity:t.extend("--ftds-button-tertiary-warning-hover-state-layer-opacity","",i.opacity8),tertiaryWarningFocusStateLayerOpacity:t.extend("--ftds-button-tertiary-warning-focus-state-layer-opacity","",i.opacity8),tertiaryWarningActiveStateLayerOpacity:t.extend("--ftds-button-tertiary-warning-active-state-layer-opacity","",i.opacity16),tertiaryWarningDisabledComponentOpacity:t.extend("--ftds-button-tertiary-warning-disabled-component-opacity","",i.opacity40),tertiaryErrorBackgroundColor:t.create("--ftds-button-tertiary-error-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryErrorColor:t.extend("--ftds-button-tertiary-error-color","",l.contentErrorPrimary),tertiaryErrorIconColor:t.extend("--ftds-button-tertiary-error-icon-color","",l.contentErrorPrimary),tertiaryErrorStateLayerColor:t.extend("--ftds-button-tertiary-error-state-layer-color","",l.contentErrorPrimary),tertiaryErrorHoverStateLayerOpacity:t.extend("--ftds-button-tertiary-error-hover-state-layer-opacity","",i.opacity8),tertiaryErrorFocusStateLayerOpacity:t.extend("--ftds-button-tertiary-error-focus-state-layer-opacity","",i.opacity8),tertiaryErrorActiveStateLayerOpacity:t.extend("--ftds-button-tertiary-error-active-state-layer-opacity","",i.opacity16),tertiaryErrorDisabledComponentOpacity:t.extend("--ftds-button-tertiary-error-disabled-component-opacity","",i.opacity40),tertiaryNeutralBackgroundColor:t.create("--ftds-button-tertiary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryNeutralIconColor:t.extend("--ftds-button-tertiary-neutral-icon-color","",l.contentGlobalSecondary),tertiaryNeutralColor:t.extend("--ftds-button-tertiary-neutral-color","",l.contentGlobalSecondary),tertiaryNeutralStateLayerColor:t.extend("--ftds-button-tertiary-neutral-state-layer-color","",l.contentGlobalSecondary),tertiaryNeutralHoverStateLayerOpacity:t.extend("--ftds-button-tertiary-neutral-hover-state-layer-opacity","",i.opacity8),tertiaryNeutralFocusStateLayerOpacity:t.extend("--ftds-button-tertiary-neutral-focus-state-layer-opacity","",i.opacity8),tertiaryNeutralActiveStateLayerOpacity:t.extend("--ftds-button-tertiary-neutral-active-state-layer-opacity","",i.opacity16),tertiaryNeutralDisabledComponentOpacity:t.extend("--ftds-button-tertiary-neutral-disabled-component-opacity","",i.opacity40),secondaryBrandBackgroundColor:t.create("--ftds-button-secondary-brand-background-color","","COLOR","rgba(0,0,0,0)"),secondaryBrandColor:t.extend("--ftds-button-secondary-brand-color","",l.contentActionPrimary),secondaryBrandIconColor:t.extend("--ftds-button-secondary-brand-icon-color","",l.contentActionPrimary),secondaryBrandStateLayerColor:t.extend("--ftds-button-secondary-brand-state-layer-color","",l.contentActionPrimary),secondaryBrandHoverStateLayerOpacity:t.extend("--ftds-button-secondary-brand-hover-state-layer-opacity","",i.opacity8),secondaryBrandFocusStateLayerOpacity:t.extend("--ftds-button-secondary-brand-focus-state-layer-opacity","",i.opacity8),secondaryBrandActiveStateLayerOpacity:t.extend("--ftds-button-secondary-brand-active-state-layer-opacity","",i.opacity16),secondaryBrandDisabledComponentOpacity:t.extend("--ftds-button-secondary-brand-disabled-component-opacity","",i.opacity40),secondaryBrandBorderColor:t.extend("--ftds-button-secondary-brand-border-color","",l.borderActionPrimary),secondaryNeutralHoverStateLayerOpacity:t.extend("--ftds-button-secondary-neutral-hover-state-layer-opacity","",i.opacity8),secondaryNeutralFocusStateLayerOpacity:t.extend("--ftds-button-secondary-neutral-focus-state-layer-opacity","",i.opacity8),secondaryNeutralActiveStateLayerOpacity:t.extend("--ftds-button-secondary-neutral-active-state-layer-opacity","",i.opacity16),secondaryNeutralDisabledComponentOpacity:t.extend("--ftds-button-secondary-neutral-disabled-component-opacity","",i.opacity40),secondaryNeutralBackgroundColor:t.create("--ftds-button-secondary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),secondaryNeutralColor:t.extend("--ftds-button-secondary-neutral-color","",l.contentGlobalSecondary),secondaryNeutralIconColor:t.extend("--ftds-button-secondary-neutral-icon-color","",l.contentGlobalSecondary),secondaryNeutralStateLayerColor:t.extend("--ftds-button-secondary-neutral-state-layer-color","",l.contentGlobalSecondary),secondaryNeutralBorderColor:t.extend("--ftds-button-secondary-neutral-border-color","",l.borderNeutralPrimary),secondaryInfoHoverStateLayerOpacity:t.extend("--ftds-button-secondary-info-hover-state-layer-opacity","",i.opacity8),secondaryInfoFocusStateLayerOpacity:t.extend("--ftds-button-secondary-info-focus-state-layer-opacity","",i.opacity8),secondaryInfoActiveStateLayerOpacity:t.extend("--ftds-button-secondary-info-active-state-layer-opacity","",i.opacity16),secondaryInfoDisabledComponentOpacity:t.extend("--ftds-button-secondary-info-disabled-component-opacity","",i.opacity40),secondaryInfoBackgroundColor:t.create("--ftds-button-secondary-info-background-color","","COLOR","rgba(0,0,0,0)"),secondaryInfoBorderColor:t.extend("--ftds-button-secondary-info-border-color","",l.borderInfoPrimary),secondaryInfoColor:t.extend("--ftds-button-secondary-info-color","",l.contentInfoPrimary),secondaryInfoIconColor:t.extend("--ftds-button-secondary-info-icon-color","",l.contentInfoPrimary),secondaryInfoStateLayerColor:t.extend("--ftds-button-secondary-info-state-layer-color","",l.contentInfoPrimary),secondarySuccessHoverStateLayerOpacity:t.extend("--ftds-button-secondary-success-hover-state-layer-opacity","",i.opacity8),secondarySuccessFocusStateLayerOpacity:t.extend("--ftds-button-secondary-success-focus-state-layer-opacity","",i.opacity8),secondarySuccessActiveStateLayerOpacity:t.extend("--ftds-button-secondary-success-active-state-layer-opacity","",i.opacity16),secondarySuccessDisabledComponentOpacity:t.extend("--ftds-button-secondary-success-disabled-component-opacity","",i.opacity40),secondarySuccessBackgroundColor:t.create("--ftds-button-secondary-success-background-color","","COLOR","rgba(0,0,0,0)"),secondarySuccessBorderColor:t.extend("--ftds-button-secondary-success-border-color","",l.borderSuccessPrimary),secondarySuccessColor:t.extend("--ftds-button-secondary-success-color","",l.contentSuccessPrimary),secondarySuccessIconColor:t.extend("--ftds-button-secondary-success-icon-color","",l.contentSuccessPrimary),secondarySuccessStateLayerColor:t.extend("--ftds-button-secondary-success-state-layer-color","",l.contentSuccessPrimary),secondaryWarningHoverStateLayerOpacity:t.extend("--ftds-button-secondary-warning-hover-state-layer-opacity","",i.opacity8),secondaryWarningFocusStateLayerOpacity:t.extend("--ftds-button-secondary-warning-focus-state-layer-opacity","",i.opacity8),secondaryWarningActiveStateLayerOpacity:t.extend("--ftds-button-secondary-warning-active-state-layer-opacity","",i.opacity16),secondaryWarningDisabledComponentOpacity:t.extend("--ftds-button-secondary-warning-disabled-component-opacity","",i.opacity40),secondaryWarningBackgroundColor:t.create("--ftds-button-secondary-warning-background-color","","COLOR","rgba(0,0,0,0)"),secondaryWarningBorderColor:t.extend("--ftds-button-secondary-warning-border-color","",l.borderWarningPrimary),secondaryWarningColor:t.extend("--ftds-button-secondary-warning-color","",l.contentWarningPrimary),secondaryWarningIconColor:t.extend("--ftds-button-secondary-warning-icon-color","",l.contentWarningPrimary),secondaryWarningStateLayerColor:t.extend("--ftds-button-secondary-warning-state-layer-color","",l.contentWarningPrimary),secondaryErrorHoverStateLayerOpacity:t.extend("--ftds-button-secondary-error-hover-state-layer-opacity","",i.opacity8),secondaryErrorFocusStateLayerOpacity:t.extend("--ftds-button-secondary-error-focus-state-layer-opacity","",i.opacity8),secondaryErrorActiveStateLayerOpacity:t.extend("--ftds-button-secondary-error-active-state-layer-opacity","",i.opacity16),secondaryErrorDisabledComponentOpacity:t.extend("--ftds-button-secondary-error-disabled-component-opacity","",i.opacity40),secondaryErrorBackgroundColor:t.create("--ftds-button-secondary-error-background-color","","COLOR","rgba(0,0,0,0)"),secondaryErrorBorderColor:t.extend("--ftds-button-secondary-error-border-color","",l.contentErrorPrimary),secondaryErrorColor:t.extend("--ftds-button-secondary-error-color","",l.contentErrorPrimary),secondaryErrorIconColor:t.extend("--ftds-button-secondary-error-icon-color","",l.contentErrorPrimary),secondaryErrorStateLayerColor:t.extend("--ftds-button-secondary-error-state-layer-color","",l.contentErrorPrimary)};var Rf={loadMoreIconSize:t.extend("--ftds-tree-list-load-more-icon-size","",i.iconSize2),loadMorePaddingLeft:t.extend("--ftds-tree-list-load-more-padding-left","",i.spacing6),loadMoreUnselectedDefaultBorderColor:t.extend("--ftds-tree-list-load-more-unselected-default-border-color","",l.borderGlobalSubtle),loadMoreIconColor:t.extend("--ftds-tree-list-load-more-icon-color","",l.contentActionPrimary),loadMoreLabelColor:t.extend("--ftds-tree-list-load-more-label-color","",l.contentActionPrimary),loadMoreHoverBorderColor:t.extend("--ftds-tree-list-load-more-hover-border-color","",i.colorBrand20),loadMoreHoverBackgroundColor:t.create("--ftds-tree-list-load-more-hover-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreActiveBorderColor:t.extend("--ftds-tree-list-load-more-active-border-color","",i.colorBrand20),loadMoreActiveBackgroundColor:t.create("--ftds-tree-list-load-more-active-background-color","","COLOR","rgba(157,32,123,0.16)"),loadMoreFocusBackgroundColor:t.create("--ftds-tree-list-load-more-focus-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreDescendantOfSelectedDefaultBackgroundColor:t.create("--ftds-tree-list-load-more-descendant-of-selected-default-background-color","","COLOR","rgba(113,113,142,0.08)"),loadMoreDescendantOfSelectedDefaultBorderColor:t.extend("--ftds-tree-list-load-more-descendant-of-selected-default-border-color","",l.borderGlobalPrimary),loadMoreLabelMarginLeft:t.extend("--ftds-tree-list-load-more-label-margin-left","",i.spacing1),nodeIconSize:t.extend("--ftds-tree-list-node-icon-size","",i.iconSize2),nodeHeight:t.create("--ftds-tree-list-node-height","","SIZE","36px"),nodeParentLabelMarginLeft:t.extend("--ftds-tree-list-node-parent-label-margin-left","",i.spacing2),nodeParentLabelMarginRight:t.extend("--ftds-tree-list-node-parent-label-margin-right","",i.spacing2),nodeRootPaddingLeft:t.extend("--ftds-tree-list-node-root-padding-left","",i.spacing6),nodeChildPaddingLeft:t.extend("--ftds-tree-list-node-child-padding-left","",i.spacing5),nodeLeafPaddingLeft:t.extend("--ftds-tree-list-node-leaf-padding-left","",i.spacing6),nodeUnselectedDefaultBorderColor:t.extend("--ftds-tree-list-node-unselected-default-border-color","",l.borderGlobalSubtle),nodeUnselectedIconColor:t.extend("--ftds-tree-list-node-unselected-icon-color","",l.contentGlobalSecondary),nodeUnselectedLabelColor:t.extend("--ftds-tree-list-node-unselected-label-color","",l.contentGlobalSecondary),nodeUnselectedCounterColor:t.extend("--ftds-tree-list-node-unselected-counter-color","",l.contentGlobalSecondary),nodeHoverBorderColor:t.extend("--ftds-tree-list-node-hover-border-color","",l.borderActionPrimary),nodeFocusFocusRingColor:t.extend("--ftds-tree-list-node-focus-focus-ring-color","",l.borderActionFocusRing),nodeFocusOutlineWidth:t.create("--ftds-tree-list-node-focus-outline-width","","SIZE","2px"),nodeSelectedDefaultBorderColor:t.extend("--ftds-tree-list-node-selected-default-border-color","",l.borderGlobalPrimary),nodeSelectedIconColor:t.extend("--ftds-tree-list-node-selected-icon-color","",l.contentGlobalSecondary),nodeSelectedLabelColor:t.extend("--ftds-tree-list-node-selected-label-color","",l.contentGlobalPrimary),nodeSelectedCounterColor:t.extend("--ftds-tree-list-node-selected-counter-color","",l.contentGlobalSecondary),nodeSelectedBackgroundColor:t.create("--ftds-tree-list-node-selected-background-color","","COLOR","rgba(113,113,142,0.24)"),nodeDescendantOfSelectedDefaultBorderColor:t.extend("--ftds-tree-list-node-descendant-of-selected-default-border-color","",l.borderGlobalPrimary),nodeDescendantOfSelectedIconColor:t.extend("--ftds-tree-list-node-descendant-of-selected-icon-color","",l.contentGlobalSecondary),nodeDescendantOfSelectedLabelColor:t.extend("--ftds-tree-list-node-descendant-of-selected-label-color","",l.contentGlobalSecondary),nodeDescendantOfSelectedCounterColor:t.extend("--ftds-tree-list-node-descendant-of-selected-counter-color","",l.contentGlobalSecondary),nodeDescendantOfSelectedBackgroundColor:t.create("--ftds-tree-list-node-descendant-of-selected-background-color","","COLOR","rgba(113,113,142,0.08)"),nodeBorderWidth:t.create("--ftds-tree-list-node-border-width","","SIZE","1px"),headerSectionPaddingLeft:t.extend("--ftds-tree-list-header-section-padding-left","",i.spacing6),headerSectionPaddingRight:t.extend("--ftds-tree-list-header-section-padding-right","",i.spacing3),headerSectionHorizontalGap:t.extend("--ftds-tree-list-header-section-horizontal-gap","",i.spacing2),headerSectionMarginBottom:t.extend("--ftds-tree-list-header-section-margin-bottom","",i.spacing2),headerSectionColor:t.extend("--ftds-tree-list-header-section-color","",l.contentGlobalPrimary),headerSectionCounterColor:t.extend("--ftds-tree-list-header-section-counter-color","",l.contentGlobalSecondary),listContainerBorderWidth:t.create("--ftds-tree-list-list-container-border-width","","SIZE","1px"),listContainerBackgroundColor:t.extend("--ftds-tree-list-list-container-background-color","",l.backgroundGlobalSurface),listContainerBorderColor:t.extend("--ftds-tree-list-list-container-border-color","",l.borderGlobalSubtle),emptyStateIllustrationWidth:t.create("--ftds-tree-list-empty-state-illustration-width","","SIZE","192px"),emptyStateIllustrationHeight:t.create("--ftds-tree-list-empty-state-illustration-height","","SIZE","192px"),emptyStateIllustrationMarginBottom:t.extend("--ftds-tree-list-empty-state-illustration-margin-bottom","",i.spacing10),emptyStateContainerPaddingTop:t.extend("--ftds-tree-list-empty-state-container-padding-top","",i.spacing10),emptyStateContainerPaddingBottom:t.extend("--ftds-tree-list-empty-state-container-padding-bottom","",i.spacing10),emptyStateTitleMarginBottom:t.extend("--ftds-tree-list-empty-state-title-margin-bottom","",i.spacing2),emptyStateTitleLabelColor:t.extend("--ftds-tree-list-empty-state-title-label-color","",l.contentGlobalSecondary),emptyStateDescriptionLabelColor:t.extend("--ftds-tree-list-empty-state-description-label-color","",l.contentGlobalSecondary)};var kf={iconSize:t.extend("--ftds-checkbox-icon-size","",i.iconSize2),boxSize:t.create("--ftds-checkbox-box-size","","SIZE","18px"),colorLegendSize:t.create("--ftds-checkbox-color-legend-size","","SIZE","16px"),borderRadius:t.create("--ftds-checkbox-border-radius","","SIZE","1px"),labelHorizontalGap:t.extend("--ftds-checkbox-label-horizontal-gap","",i.spacing1),color:t.extend("--ftds-checkbox-color","",l.contentGlobalPrimary),checkedBackgroundColor:t.extend("--ftds-checkbox-checked-background-color","",l.contentActionPrimary),checkedStateLayerColor:t.extend("--ftds-checkbox-checked-state-layer-color","",l.contentActionPrimary),checkedIconColor:t.extend("--ftds-checkbox-checked-icon-color","",l.contentGlobalOnColor),checkedHoverStateLayerOpacity:t.extend("--ftds-checkbox-checked-hover-state-layer-opacity","",i.opacity16),checkedFocusStateLayerOpacity:t.extend("--ftds-checkbox-checked-focus-state-layer-opacity","",i.opacity16),checkedActiveStateLayerOpacity:t.extend("--ftds-checkbox-checked-active-state-layer-opacity","",i.opacity24),checkedDisabledComponentOpacity:t.extend("--ftds-checkbox-checked-disabled-component-opacity","",i.opacity40),uncheckedBorderColor:t.extend("--ftds-checkbox-unchecked-border-color","",i.colorGray80),uncheckedStateLayerColor:t.extend("--ftds-checkbox-unchecked-state-layer-color","",i.colorGray80),uncheckedHoverStateLayerOpacity:t.extend("--ftds-checkbox-unchecked-hover-state-layer-opacity","",i.opacity16),uncheckedFocusStateLayerOpacity:t.extend("--ftds-checkbox-unchecked-focus-state-layer-opacity","",i.opacity16),uncheckedActiveStateLayerOpacity:t.extend("--ftds-checkbox-unchecked-active-state-layer-opacity","",i.opacity24),uncheckedDisabledComponentOpacity:t.extend("--ftds-checkbox-unchecked-disabled-component-opacity","",i.opacity40),focusFocusRingColor:t.extend("--ftds-checkbox-focus-focus-ring-color","",l.borderActionFocusRing),focusOutlineOffset:t.create("--ftds-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:t.create("--ftds-checkbox-focus-outline-width","","SIZE","2px"),focusOutlineBorderRadius:t.create("--ftds-checkbox-focus-outline-border-radius","","SIZE","2px"),borderWidth:t.create("--ftds-checkbox-border-width","","SIZE","2px"),horizontalGap:t.extend("--ftds-checkbox-horizontal-gap","",i.spacing3),helperPaddingTop:t.create("--ftds-checkbox-helper-padding-top","","SIZE","0px"),helperIconSize:t.extend("--ftds-checkbox-helper-icon-size","",i.iconSize2),helperHorizontalGap:t.extend("--ftds-checkbox-helper-horizontal-gap","",i.spacing1),errorUncheckedBorderColor:t.extend("--ftds-checkbox-error-unchecked-border-color","",l.borderErrorPrimary),errorStateLayerColor:t.extend("--ftds-checkbox-error-state-layer-color","",l.contentErrorPrimary),errorHelperTextColor:t.extend("--ftds-checkbox-error-helper-text-color","",l.borderErrorPrimary),errorCheckedBackgroundColor:t.extend("--ftds-checkbox-error-checked-background-color","",l.contentErrorPrimary),helperTextColor:t.extend("--ftds-checkbox-helper-text-color","",l.contentGlobalSubtle),groupVerticalGap:t.extend("--ftds-checkbox-group-vertical-gap","",i.spacing3)};var Bf={circleSize:t.create("--ftds-radio-circle-size","","SIZE","18px"),borderWidth:t.create("--ftds-radio-border-width","","SIZE","2px"),color:t.extend("--ftds-radio-color","",l.contentGlobalPrimary),selectedRadioColor:t.extend("--ftds-radio-selected-radio-color","",l.contentActionPrimary),selectedStateLayerColor:t.extend("--ftds-radio-selected-state-layer-color","",l.contentActionPrimary),selectedHoverStateLayerOpacity:t.extend("--ftds-radio-selected-hover-state-layer-opacity","",i.opacity16),selectedFocusStateLayerOpacity:t.extend("--ftds-radio-selected-focus-state-layer-opacity","",i.opacity16),selectedActiveStateLayerOpacity:t.extend("--ftds-radio-selected-active-state-layer-opacity","",i.opacity24),selectedDisabledComponentOpacity:t.extend("--ftds-radio-selected-disabled-component-opacity","",i.opacity40),unselectedStateLayerColor:t.extend("--ftds-radio-unselected-state-layer-color","",l.borderInputPrimary),unselectedBorderColor:t.extend("--ftds-radio-unselected-border-color","",l.borderInputPrimary),unselectedHoverStateLayerOpacity:t.extend("--ftds-radio-unselected-hover-state-layer-opacity","",i.opacity16),unselectedFocusStateLayerOpacity:t.extend("--ftds-radio-unselected-focus-state-layer-opacity","",i.opacity16),unselectedActiveStateLayerOpacity:t.extend("--ftds-radio-unselected-active-state-layer-opacity","",i.opacity24),unselectedDisabledComponentOpacity:t.extend("--ftds-radio-unselected-disabled-component-opacity","",i.opacity40),focusFocusRingColor:t.extend("--ftds-radio-focus-focus-ring-color","",l.borderActionFocusRing),focusOutlineOffset:t.create("--ftds-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:t.create("--ftds-radio-focus-outline-width","","SIZE","2px"),verticalGap:t.extend("--ftds-radio-vertical-gap","",i.spacing3),horizontalGap:t.extend("--ftds-radio-horizontal-gap","",i.spacing3)};var $f={headerRowBorderWidth:t.create("--ftds-table-header-row-border-width","","SIZE","1px"),headerRowBackgroundColor:t.extend("--ftds-table-header-row-background-color","",l.backgroundGlobalOnSurfaceDark),headerRowBorderColor:t.extend("--ftds-table-header-row-border-color","",l.borderGlobalPrimary),headerRowColor:t.extend("--ftds-table-header-row-color","",l.contentGlobalPrimary),dataRowBorderWidth:t.create("--ftds-table-data-row-border-width","","SIZE","1px"),dataRowBackgroundColor:t.extend("--ftds-table-data-row-background-color","",l.backgroundGlobalOnSurface),dataRowBorderColor:t.extend("--ftds-table-data-row-border-color","",l.borderGlobalSubtle),dataRowColor:t.extend("--ftds-table-data-row-color","",l.contentGlobalSecondary),dataRowDefaultHoverBackgroundColor:t.extend("--ftds-table-data-row-default-hover-background-color","",i.colorGray20),dataRowSelectableUnselectedHoverBackgroundColor:t.extend("--ftds-table-data-row-selectable-unselected-hover-background-color","",i.colorGray20),dataRowSelectableSelectedDefaultBackgroundColor:t.extend("--ftds-table-data-row-selectable-selected-default-background-color","",i.colorBrand10),dataRowSelectableSelectedDefaultBorderColor:t.extend("--ftds-table-data-row-selectable-selected-default-border-color","",i.colorBrand20),dataRowSelectableSelectedHoverBackgroundColor:t.extend("--ftds-table-data-row-selectable-selected-hover-background-color","",i.colorBrand20),dataRowSelectableSelectedHoverBorderColor:t.extend("--ftds-table-data-row-selectable-selected-hover-border-color","",i.colorBrand30),dataRowSelectableSelectedColor:t.extend("--ftds-table-data-row-selectable-selected-color","",l.contentActionPrimary),dataRowClickableHoverBackgroundColor:t.extend("--ftds-table-data-row-clickable-hover-background-color","",i.colorGray30),dataRowClickableFocusBorderColor:t.extend("--ftds-table-data-row-clickable-focus-border-color","",l.borderActionFocusRing),dataRowClickableFocusBackgroundColor:t.extend("--ftds-table-data-row-clickable-focus-background-color","",i.colorGray30),dataRowClickableActiveBackgroundColor:t.extend("--ftds-table-data-row-clickable-active-background-color","",i.colorGray40),headerCellHorizontalGap:t.extend("--ftds-table-header-cell-horizontal-gap","",i.spacing1),headerCellVerticalPadding:t.extend("--ftds-table-header-cell-vertical-padding","",i.spacing2),headerCellHorizontalPadding:t.extend("--ftds-table-header-cell-horizontal-padding","",i.spacing3),dataCellVerticalPadding:t.extend("--ftds-table-data-cell-vertical-padding","",i.spacing2),dataCellHorizontalPadding:t.extend("--ftds-table-data-cell-horizontal-padding","",i.spacing3),dataCellVerticalGap:t.extend("--ftds-table-data-cell-vertical-gap","",i.spacing1)};var qf={neutralOffHoverStateLayerOpacity:t.extend("--ftds-chip-choice-neutral-off-hover-state-layer-opacity","",i.opacity8),neutralOffFocusStateLayerOpacity:t.extend("--ftds-chip-choice-neutral-off-focus-state-layer-opacity","",i.opacity8),neutralOffFocusFocusRingColor:t.extend("--ftds-chip-choice-neutral-off-focus-focus-ring-color","",l.borderActionFocusRing),neutralOffActiveStateLayerOpacity:t.extend("--ftds-chip-choice-neutral-off-active-state-layer-opacity","",i.opacity16),neutralOffBackgroundColor:t.extend("--ftds-chip-choice-neutral-off-background-color","",l.backgroundGlobalOnSurface),neutralOffBorderColor:t.extend("--ftds-chip-choice-neutral-off-border-color","",l.borderGlobalPrimary),neutralOffColor:t.extend("--ftds-chip-choice-neutral-off-color","",l.contentGlobalSecondary),neutralOffStateLayerColor:t.extend("--ftds-chip-choice-neutral-off-state-layer-color","",l.contentGlobalSecondary),neutralOnDefaultStateLayerOpacity:t.extend("--ftds-chip-choice-neutral-on-default-state-layer-opacity","",i.opacity16),neutralOnHoverStateLayerOpacity:t.extend("--ftds-chip-choice-neutral-on-hover-state-layer-opacity","",i.opacity24),neutralOnFocusStateLayerOpacity:t.extend("--ftds-chip-choice-neutral-on-focus-state-layer-opacity","",i.opacity24),neutralOnFocusFocusRingColor:t.extend("--ftds-chip-choice-neutral-on-focus-focus-ring-color","",l.borderActionFocusRing),neutralOnActiveStateLayerOpacity:t.extend("--ftds-chip-choice-neutral-on-active-state-layer-opacity","",i.opacity32),neutralOnBackgroundColor:t.extend("--ftds-chip-choice-neutral-on-background-color","",l.backgroundGlobalOnSurface),neutralOnBorderColor:t.extend("--ftds-chip-choice-neutral-on-border-color","",l.borderGlobalPrimary),neutralOnColor:t.extend("--ftds-chip-choice-neutral-on-color","",l.contentGlobalPrimary),neutralOnIconColor:t.extend("--ftds-chip-choice-neutral-on-icon-color","",l.contentGlobalPrimary),neutralOnStateLayerColor:t.extend("--ftds-chip-choice-neutral-on-state-layer-color","",l.contentGlobalPrimary),largeMinHeight:t.create("--ftds-chip-choice-large-min-height","","SIZE","36px"),largeHorizontalPadding:t.extend("--ftds-chip-choice-large-horizontal-padding","",i.spacing3),largeGap:t.extend("--ftds-chip-choice-large-gap","",i.spacing1),largeBorderRadius:t.create("--ftds-chip-choice-large-border-radius","","SIZE","18px"),largeBorderWidth:t.create("--ftds-chip-choice-large-border-width","","SIZE","1px"),largeIconSize:t.extend("--ftds-chip-choice-large-icon-size","",i.iconSize3),mediumMinHeight:t.create("--ftds-chip-choice-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:t.extend("--ftds-chip-choice-medium-horizontal-padding","",i.spacing2),mediumGap:t.extend("--ftds-chip-choice-medium-gap","",i.spacing1),mediumBorderRadius:t.create("--ftds-chip-choice-medium-border-radius","","SIZE","12px"),mediumBorderWidth:t.create("--ftds-chip-choice-medium-border-width","","SIZE","1px"),mediumIconSize:t.extend("--ftds-chip-choice-medium-icon-size","",i.iconSize2)};var eh={largeMinHeight:t.create("--ftds-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:t.extend("--ftds-chip-large-horizontal-padding","",i.spacing3),largeButtonRightPadding:t.extend("--ftds-chip-large-button-right-padding","",i.spacing1),largeGap:t.extend("--ftds-chip-large-gap","",i.spacing1),largeFocusOutlineOffset:t.create("--ftds-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:t.create("--ftds-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:t.create("--ftds-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:t.create("--ftds-chip-large-border-width","","SIZE","1px"),largeIconSize:t.extend("--ftds-chip-large-icon-size","",i.iconSize3),mediumMinHeight:t.create("--ftds-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:t.extend("--ftds-chip-medium-horizontal-padding","",i.spacing2),mediumButtonRightPadding:t.extend("--ftds-chip-medium-button-right-padding","",i.spacing05),mediumGap:t.extend("--ftds-chip-medium-gap","",i.spacing1),mediumFocusOutlineOffset:t.create("--ftds-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:t.create("--ftds-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:t.create("--ftds-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:t.create("--ftds-chip-medium-border-width","","SIZE","1px"),mediumIconSize:t.extend("--ftds-chip-medium-icon-size","",i.iconSize2),smallMinHeight:t.create("--ftds-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:t.extend("--ftds-chip-small-horizontal-padding","",i.spacing1),smallButtonRightPadding:t.extend("--ftds-chip-small-button-right-padding","",i.spacing05),smallGap:t.extend("--ftds-chip-small-gap","",i.spacing1),smallFocusOutlineOffset:t.create("--ftds-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:t.create("--ftds-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:t.create("--ftds-chip-small-border-radius","","SIZE","10px"),smallBorderWidth:t.create("--ftds-chip-small-border-width","","SIZE","1px"),smallIconSize:t.extend("--ftds-chip-small-icon-size","",i.iconSize1),neutralBackgroundColor:t.extend("--ftds-chip-neutral-background-color","",l.backgroundGlobalOnSurface),neutralColor:t.extend("--ftds-chip-neutral-color","",l.contentGlobalSecondary),neutralIconColor:t.extend("--ftds-chip-neutral-icon-color","",l.contentGlobalSecondary),neutralBorderColor:t.extend("--ftds-chip-neutral-border-color","",l.borderGlobalSecondary),infoBackgroundColor:t.extend("--ftds-chip-info-background-color","",l.backgroundInfoSubtle),infoColor:t.extend("--ftds-chip-info-color","",l.contentInfoPrimary),infoIconColor:t.extend("--ftds-chip-info-icon-color","",l.contentInfoIconOnly),infoBorderColor:t.extend("--ftds-chip-info-border-color","",l.borderInfoSubtle),successBackgroundColor:t.extend("--ftds-chip-success-background-color","",l.backgroundSuccessSubtle),successColor:t.extend("--ftds-chip-success-color","",l.contentSuccessPrimary),successIconColor:t.extend("--ftds-chip-success-icon-color","",l.contentSuccessIconOnly),successBorderColor:t.extend("--ftds-chip-success-border-color","",l.borderSuccessSubtle),warningBackgroundColor:t.extend("--ftds-chip-warning-background-color","",l.backgroundWarningSubtle),warningColor:t.extend("--ftds-chip-warning-color","",l.contentWarningPrimary),warningIconColor:t.extend("--ftds-chip-warning-icon-color","",l.contentWarningIconOnly),warningBorderColor:t.extend("--ftds-chip-warning-border-color","",l.borderWarningSubtle),errorBackgroundColor:t.extend("--ftds-chip-error-background-color","",l.backgroundErrorSubtle),errorColor:t.extend("--ftds-chip-error-color","",l.contentErrorPrimary),errorIconColor:t.extend("--ftds-chip-error-icon-color","",l.contentErrorIconOnly),errorBorderColor:t.extend("--ftds-chip-error-border-color","",l.borderErrorSubtle)};var ah={brandHoverOpacity:t.extend("--ftds-link-brand-hover-opacity","",i.opacity80),brandHoverColor:t.extend("--ftds-link-brand-hover-color","",l.contentActionPrimary),brandFocusFocusRingColor:t.extend("--ftds-link-brand-focus-focus-ring-color","",l.borderActionFocusRing),brandFocusColor:t.extend("--ftds-link-brand-focus-color","",l.contentActionPrimary),brandDefaultColor:t.extend("--ftds-link-brand-default-color","",l.contentActionPrimary),brandActiveColor:t.extend("--ftds-link-brand-active-color","",l.contentActionPrimary),infoHoverOpacity:t.extend("--ftds-link-info-hover-opacity","",i.opacity80),infoHoverColor:t.extend("--ftds-link-info-hover-color","",l.contentInfoPrimary),infoFocusFocusRingColor:t.extend("--ftds-link-info-focus-focus-ring-color","",l.borderActionFocusRing),infoFocusColor:t.extend("--ftds-link-info-focus-color","",l.contentInfoPrimary),infoDefaultColor:t.extend("--ftds-link-info-default-color","",l.contentInfoPrimary),infoActiveColor:t.extend("--ftds-link-info-active-color","",l.contentInfoPrimary),neutralFocusFocusRingColor:t.extend("--ftds-link-neutral-focus-focus-ring-color","",l.borderActionFocusRing),neutralFocusColor:t.extend("--ftds-link-neutral-focus-color","",l.contentActionPrimary),neutralDefaultColor:t.extend("--ftds-link-neutral-default-color","",l.contentGlobalPrimary),neutralHoverColor:t.extend("--ftds-link-neutral-hover-color","",l.contentActionPrimary),neutralActiveColor:t.extend("--ftds-link-neutral-active-color","",l.contentActionPrimary),neutralVisitedColor:t.extend("--ftds-link-neutral-visited-color","",i.colorBrand100)};var dh={iconSize:t.extend("--ftds-banner-icon-size","",i.iconSize5),borderWidth:t.create("--ftds-banner-border-width","","SIZE","1px"),leftPadding:t.extend("--ftds-banner-left-padding","",i.spacing6),rightPadding:t.extend("--ftds-banner-right-padding","",i.spacing6),verticalPadding:t.extend("--ftds-banner-vertical-padding","",i.spacing6),horizontalSideGap:t.extend("--ftds-banner-horizontal-side-gap","",i.spacing6),horizontalMobileGap:t.extend("--ftds-banner-horizontal-mobile-gap","",i.spacing4),verticalMobileGap:t.extend("--ftds-banner-vertical-mobile-gap","",i.spacing6),horizontalMiddleGap:t.extend("--ftds-banner-horizontal-middle-gap","",i.spacing20),infoBackgroundColor:t.extend("--ftds-banner-info-background-color","",l.backgroundInfoSubtle),infoColor:t.extend("--ftds-banner-info-color","",l.contentInfoPrimary),infoIconColor:t.extend("--ftds-banner-info-icon-color","",l.contentInfoIconOnly),infoBorderColor:t.extend("--ftds-banner-info-border-color","",l.borderInfoSubtle)};var gh={horizontalPadding:t.extend("--ftds-badge-horizontal-padding","",i.spacing1),verticalPadding:t.extend("--ftds-badge-vertical-padding","",i.spacing1),borderRadius:t.extend("--ftds-badge-border-radius","",i.borderRadiusPill),color:t.extend("--ftds-badge-color","",l.contentGlobalOnColor),backgroundColor:t.extend("--ftds-badge-background-color","",l.contentActionPrimary)};var xh={horizontalGap:t.extend("--ftds-title-breadcrumb-horizontal-gap","",i.spacing1),currentColor:t.extend("--ftds-title-breadcrumb-current-color","",l.contentGlobalPrimary),previousNonClickableColor:t.extend("--ftds-title-breadcrumb-previous-non-clickable-color","",l.contentGlobalSecondary),iconColor:t.extend("--ftds-title-breadcrumb-icon-color","",l.contentGlobalSubtle)};var Ah={parentHorizontalPadding:t.extend("--ftds-page-header-parent-horizontal-padding","",i.spacing6),parentTopPadding:t.extend("--ftds-page-header-parent-top-padding","",i.spacing4),parentBottomPadding:t.extend("--ftds-page-header-parent-bottom-padding","",i.spacing6),parentHelpLeftMargin:t.extend("--ftds-page-header-parent-help-left-margin","",i.spacing1),parentTitleColor:t.extend("--ftds-page-header-parent-title-color","",l.contentGlobalPrimary),parentSubtitleColor:t.extend("--ftds-page-header-parent-subtitle-color","",l.contentGlobalSecondary),parentChipLeftMargin:t.extend("--ftds-page-header-parent-chip-left-margin","",i.spacing4),parentVerticalGap:t.extend("--ftds-page-header-parent-vertical-gap","",i.spacing2),parentButtonsGroupHorizontalGap:t.extend("--ftds-page-header-parent-buttons-group-horizontal-gap","",i.spacing4),parentButtonsGroupVerticalGap:t.extend("--ftds-page-header-parent-buttons-group-vertical-gap","",i.spacing4),parentChipsGroupHorizontalGap:t.extend("--ftds-page-header-parent-chips-group-horizontal-gap","",i.spacing2),parentChipsGroupVerticalGap:t.extend("--ftds-page-header-parent-chips-group-vertical-gap","",i.spacing2),childHorizontalPadding:t.extend("--ftds-page-header-child-horizontal-padding","",i.spacing6),childTopPadding:t.extend("--ftds-page-header-child-top-padding","",i.spacing2),childBottomPadding:t.extend("--ftds-page-header-child-bottom-padding","",i.spacing2),childHelpLeftMargin:t.extend("--ftds-page-header-child-help-left-margin","",i.spacing1),childChipLeftMargin:t.extend("--ftds-page-header-child-chip-left-margin","",i.spacing4),childVerticalGap:t.extend("--ftds-page-header-child-vertical-gap","",i.spacing2),childMinHeight:t.create("--ftds-page-header-child-min-height","","SIZE","40px"),childButtonsGroupHorizontalGap:t.extend("--ftds-page-header-child-buttons-group-horizontal-gap","",i.spacing4),childButtonsGroupVerticalGap:t.extend("--ftds-page-header-child-buttons-group-vertical-gap","",i.spacing4),childChipsGroupHorizontalGap:t.extend("--ftds-page-header-child-chips-group-horizontal-gap","",i.spacing2),childChipsGroupVerticalGap:t.extend("--ftds-page-header-child-chips-group-vertical-gap","",i.spacing2),backgroundColor:t.extend("--ftds-page-header-background-color","",i.colorWhite),bottomBorderColor:t.extend("--ftds-page-header-bottom-border-color","",l.borderGlobalSubtle),bottomBorderWidth:t.create("--ftds-page-header-bottom-border-width","","SIZE","1px")};var _h={horizontalPadding:t.extend("--ftds-page-footer-horizontal-padding","",i.spacing6),verticalPadding:t.extend("--ftds-page-footer-vertical-padding","",i.spacing2),verticalGap:t.extend("--ftds-page-footer-vertical-gap","",i.spacing2),minHeight:t.create("--ftds-page-footer-min-height","","SIZE","40px"),backgroundColor:t.extend("--ftds-page-footer-background-color","",i.colorWhite),topBorderColor:t.extend("--ftds-page-footer-top-border-color","",l.borderGlobalSubtle),topBorderWidth:t.create("--ftds-page-footer-top-border-width","","SIZE","1px"),buttonsGroupGap:t.extend("--ftds-page-footer-buttons-group-gap","",i.spacing4)};var kh={contentHorizontalPadding:t.extend("--ftds-page-layout-content-horizontal-padding","",i.spacing6),contentVerticalPadding:t.extend("--ftds-page-layout-content-vertical-padding","",i.spacing6)};var Bh={smallContainerTargetWidth:t.create("--ftds-modal-small-container-target-width","","SIZE","560px"),smallContainerMargin:t.extend("--ftds-modal-small-container-margin","",i.spacing6),mediumContainerTargetWidth:t.create("--ftds-modal-medium-container-target-width","","SIZE","800px"),mediumContainerMargin:t.extend("--ftds-modal-medium-container-margin","",i.spacing6),largeContainerTargetWidth:t.create("--ftds-modal-large-container-target-width","","SIZE","1040px"),largeContainerMargin:t.extend("--ftds-modal-large-container-margin","",i.spacing6),overlayBackgroundColor:t.extend("--ftds-modal-overlay-background-color","",i.colorGray700),overlayOpacity:t.extend("--ftds-modal-overlay-opacity","",i.opacity40),shadow:t.extend("--ftds-modal-shadow","",i.shadowElevation03),bodyBackgroundColor:t.extend("--ftds-modal-body-background-color","",i.colorWhite),bodyColor:t.extend("--ftds-modal-body-color","",l.contentGlobalPrimary),bodyHorizontalPadding:t.extend("--ftds-modal-body-horizontal-padding","",i.spacing6),bodyVerticalPadding:t.extend("--ftds-modal-body-vertical-padding","",i.spacing6),bodyVerticalGap:t.extend("--ftds-modal-body-vertical-gap","",i.spacing6),headerBackgroundColor:t.extend("--ftds-modal-header-background-color","",l.backgroundGlobalOnSurface),headerBorderColor:t.extend("--ftds-modal-header-border-color","",l.borderGlobalSubtle),headerColor:t.extend("--ftds-modal-header-color","",l.contentGlobalPrimary),headerLeadingIconColor:t.extend("--ftds-modal-header-leading-icon-color","",l.contentGlobalPrimary),headerVerticalPadding:t.extend("--ftds-modal-header-vertical-padding","",i.spacing1),headerRightPadding:t.extend("--ftds-modal-header-right-padding","",i.spacing1),headerLeftPadding:t.extend("--ftds-modal-header-left-padding","",i.spacing6),headerGap:t.extend("--ftds-modal-header-gap","",i.spacing2),headerBorderBottomWidth:t.create("--ftds-modal-header-border-bottom-width","","SIZE","1px"),borderRadius:t.extend("--ftds-modal-border-radius","",i.borderRadiusM)};var $h={overlayOpacity:t.extend("--ftds-drawer-overlay-opacity","",i.opacity40),shadow:t.extend("--ftds-drawer-shadow","",i.shadowElevation03),bodyColor:t.extend("--ftds-drawer-body-color","",l.contentGlobalPrimary),bodyHorizontalPadding:t.extend("--ftds-drawer-body-horizontal-padding","",i.spacing6),bodyVerticalPadding:t.extend("--ftds-drawer-body-vertical-padding","",i.spacing6),bodyGap:t.extend("--ftds-drawer-body-gap","",i.spacing6),bodyBackgroundColor:t.extend("--ftds-drawer-body-background-color","",i.colorWhite),headerBackgroundColor:t.extend("--ftds-drawer-header-background-color","",l.backgroundGlobalOnSurface),headerBorderColor:t.extend("--ftds-drawer-header-border-color","",l.borderGlobalSubtle),headerColor:t.extend("--ftds-drawer-header-color","",l.contentGlobalPrimary),headerTrailingIconColor:t.extend("--ftds-drawer-header-trailing-icon-color","",l.contentGlobalSecondary),headerHeight:t.create("--ftds-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:t.extend("--ftds-drawer-header-horizontal-padding","",i.spacing2),headerBorderWidth:t.create("--ftds-drawer-header-border-width","","SIZE","1px"),headerGap:t.extend("--ftds-drawer-header-gap","",i.spacing3),buttonsBarBackgroundColor:t.extend("--ftds-drawer-buttons-bar-background-color","",l.backgroundGlobalOnSurface),buttonsBarBorderColor:t.extend("--ftds-drawer-buttons-bar-border-color","",l.borderGlobalSubtle),buttonsBarColor:t.extend("--ftds-drawer-buttons-bar-color","",l.contentGlobalPrimary),buttonsBarHorizontalPadding:t.extend("--ftds-drawer-buttons-bar-horizontal-padding","",i.spacing6),buttonsBarVerticalPadding:t.extend("--ftds-drawer-buttons-bar-vertical-padding","",i.spacing4),buttonsBarGap:t.extend("--ftds-drawer-buttons-bar-gap","",i.spacing3),buttonsBarBorderWidth:t.create("--ftds-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:t.create("--ftds-drawer-container-width","","SIZE","66%"),containerMinWidth:t.create("--ftds-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:t.create("--ftds-drawer-container-max-width","","SIZE","1000px"),containerHeight:t.create("--ftds-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:t.extend("--ftds-drawer-overlay-background-color","",i.colorGray700)};var qh={offBorderBottomWidth:t.create("--ftds-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:t.extend("--ftds-tabs-off-hover-state-layer-opacity","",i.opacity8),offDefaultStateLayerOpacity:t.extend("--ftds-tabs-off-default-state-layer-opacity","",i.opacity0),offFocusStateLayerOpacity:t.extend("--ftds-tabs-off-focus-state-layer-opacity","",i.opacity8),offDisabledComponentOpacity:t.extend("--ftds-tabs-off-disabled-component-opacity","",i.opacity40),offColor:t.extend("--ftds-tabs-off-color","",l.contentGlobalSubtle),offStateLayerColor:t.extend("--ftds-tabs-off-state-layer-color","",l.contentGlobalSubtle),offBorderBottomColor:t.extend("--ftds-tabs-off-border-bottom-color","",l.borderGlobalSubtle),activeTabIndicatorHeight:t.create("--ftds-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:t.extend("--ftds-tabs-top-left-border-radius","",i.borderRadiusS),topRightBorderRadius:t.extend("--ftds-tabs-top-right-border-radius","",i.borderRadiusS),withLabelHorizontalPadding:t.extend("--ftds-tabs-with-label-horizontal-padding","",i.spacing4),withLabelVerticalPadding:t.extend("--ftds-tabs-with-label-vertical-padding","",i.spacing3),horizontalGap:t.extend("--ftds-tabs-horizontal-gap","",i.spacing1),verticalGap:t.extend("--ftds-tabs-vertical-gap","",i.spacing1),onHoverStateLayerOpacity:t.extend("--ftds-tabs-on-hover-state-layer-opacity","",i.opacity16),onDefaultStateLayerOpacity:t.extend("--ftds-tabs-on-default-state-layer-opacity","",i.opacity8),onFocusStateLayerOpacity:t.extend("--ftds-tabs-on-focus-state-layer-opacity","",i.opacity16),onActiveStateLayerOpacity:t.extend("--ftds-tabs-on-active-state-layer-opacity","",i.opacity24),onColor:t.extend("--ftds-tabs-on-color","",l.contentActionPrimary),onStateLayerColor:t.extend("--ftds-tabs-on-state-layer-color","",l.contentActionPrimary),onActiveTabIndicatorColor:t.extend("--ftds-tabs-on-active-tab-indicator-color","",l.contentActionPrimary),iconOnlyHorizontalPadding:t.extend("--ftds-tabs-icon-only-horizontal-padding","",i.spacing4),iconOnlyVerticalPadding:t.extend("--ftds-tabs-icon-only-vertical-padding","",i.spacing4),alertTopPadding:t.extend("--ftds-tabs-alert-top-padding","",i.spacing1),alertRightPadding:t.extend("--ftds-tabs-alert-right-padding","",i.spacing05),focusOutlineWidth:t.create("--ftds-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:t.extend("--ftds-tabs-focus-focus-ring-color","",l.borderActionFocusRing)};var eg={largeFieldHorizontalPadding:t.extend("--ftds-text-input-large-field-horizontal-padding","",i.spacing4),largeFieldHorizontalGap:t.extend("--ftds-text-input-large-field-horizontal-gap","",i.spacing3),largeFieldVerticalGap:t.extend("--ftds-text-input-large-field-vertical-gap","",i.spacing05),largeFieldHeight:t.create("--ftds-text-input-large-field-height","","SIZE","50px"),largeFieldIconSize:t.extend("--ftds-text-input-large-field-icon-size","",i.iconSize3),mediumFieldHorizontalPadding:t.extend("--ftds-text-input-medium-field-horizontal-padding","",i.spacing4),mediumFieldHorizontalGap:t.extend("--ftds-text-input-medium-field-horizontal-gap","",i.spacing3),mediumFieldVerticalGap:t.create("--ftds-text-input-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:t.create("--ftds-text-input-medium-field-height","","SIZE","40px"),mediumFieldIconSize:t.extend("--ftds-text-input-medium-field-icon-size","",i.iconSize3),helperHorizontalPadding:t.extend("--ftds-text-input-helper-horizontal-padding","",i.spacing4),helperHorizontalGap:t.extend("--ftds-text-input-helper-horizontal-gap","",i.spacing1),helperIconSize:t.extend("--ftds-text-input-helper-icon-size","",i.iconSize2),borderRadius:t.extend("--ftds-text-input-border-radius","",i.borderRadiusS),backgroundColor:t.extend("--ftds-text-input-background-color","",i.colorWhite),contentValueColor:t.extend("--ftds-text-input-content-value-color","",l.contentGlobalPrimary),trailingIconColor:t.extend("--ftds-text-input-trailing-icon-color","",l.contentGlobalSubtle),labelColor:t.extend("--ftds-text-input-label-color","",l.contentGlobalSubtle),defaultBorderColor:t.extend("--ftds-text-input-default-border-color","",l.borderInputPrimary),defaultHelperTextColor:t.extend("--ftds-text-input-default-helper-text-color","",l.contentGlobalSubtle),defaultBorderWidth:t.create("--ftds-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:t.create("--ftds-text-input-error-border-width","","SIZE","2px"),errorBorderColor:t.extend("--ftds-text-input-error-border-color","",l.borderErrorPrimary),errorHelperTextColor:t.extend("--ftds-text-input-error-helper-text-color","",l.contentErrorPrimary),errorHelperIconColor:t.extend("--ftds-text-input-error-helper-icon-color","",l.contentErrorIconOnly),warningBorderColor:t.extend("--ftds-text-input-warning-border-color","",l.borderWarningPrimary),warningHelperTextColor:t.extend("--ftds-text-input-warning-helper-text-color","",l.contentWarningPrimary),warningHelperIconColor:t.extend("--ftds-text-input-warning-helper-icon-color","",l.contentWarningIconOnly),warningBorderWidth:t.create("--ftds-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:t.create("--ftds-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:t.extend("--ftds-text-input-focus-focus-ring-color","",l.borderActionFocusRing),focusOutlineOffset:t.create("--ftds-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:t.extend("--ftds-text-input-disabled-component-opacity","",i.opacity40)};var ag={backgroundColor:t.extend("--ftds-text-area-background-color","",i.colorWhite),contentValueColor:t.extend("--ftds-text-area-content-value-color","",l.contentGlobalPrimary),labelColor:t.extend("--ftds-text-area-label-color","",l.contentGlobalSubtle),defaultBorderColor:t.extend("--ftds-text-area-default-border-color","",l.borderInputPrimary),defaultHelperTextColor:t.extend("--ftds-text-area-default-helper-text-color","",l.contentGlobalSubtle),defaultBorderWidth:t.create("--ftds-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:t.create("--ftds-text-area-error-border-width","","SIZE","2px"),errorBorderColor:t.extend("--ftds-text-area-error-border-color","",l.borderErrorPrimary),errorHelperTextColor:t.extend("--ftds-text-area-error-helper-text-color","",l.contentErrorPrimary),errorHelperIconColor:t.extend("--ftds-text-area-error-helper-icon-color","",l.contentErrorIconOnly),focusFocusRingColor:t.extend("--ftds-text-area-focus-focus-ring-color","",l.borderActionFocusRing),focusOutlineWidth:t.create("--ftds-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:t.create("--ftds-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:t.extend("--ftds-text-area-disabled-component-opacity","",i.opacity40),fieldHorizontalLeftPadding:t.extend("--ftds-text-area-field-horizontal-left-padding","",i.spacing4),fieldHorizontalGap:t.extend("--ftds-text-area-field-horizontal-gap","",i.spacing3),fieldVerticalGap:t.extend("--ftds-text-area-field-vertical-gap","",i.spacing05),fieldMinHeight:t.create("--ftds-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:t.extend("--ftds-text-area-helper-horizontal-padding","",i.spacing4),helperHorizontalGap:t.extend("--ftds-text-area-helper-horizontal-gap","",i.spacing1),helperIconSize:t.extend("--ftds-text-area-helper-icon-size","",i.iconSize2),borderRadius:t.extend("--ftds-text-area-border-radius","",i.borderRadiusS)};var dg={height:t.create("--ftds-floating-menu-height","","SIZE","50px"),horizontalPadding:t.extend("--ftds-floating-menu-horizontal-padding","",i.spacing4),offIconColor:t.extend("--ftds-floating-menu-off-icon-color","",l.contentGlobalPrimary),offColor:t.extend("--ftds-floating-menu-off-color","",l.contentGlobalPrimary),onColor:t.extend("--ftds-floating-menu-on-color","",l.contentActionPrimary),onStateLayerColor:t.extend("--ftds-floating-menu-on-state-layer-color","",l.contentActionPrimary),gap:t.extend("--ftds-floating-menu-gap","",i.spacing3),focusFocusRingColor:t.extend("--ftds-floating-menu-focus-focus-ring-color","",l.borderActionFocusRing),focusOutlineWidth:t.create("--ftds-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:t.extend("--ftds-floating-menu-focus-state-layer-opacity","",i.opacity8),hoverStateLayerOpacity:t.extend("--ftds-floating-menu-hover-state-layer-opacity","",i.opacity8),activeStateLayerOpacity:t.extend("--ftds-floating-menu-active-state-layer-opacity","",i.opacity16),disabledComponentOpacity:t.extend("--ftds-floating-menu-disabled-component-opacity","",i.opacity40),iconSize:t.extend("--ftds-floating-menu-icon-size","",i.iconSize3),backgroundColor:t.extend("--ftds-floating-menu-background-color","",l.backgroundGlobalOnSurface),shadow:t.extend("--ftds-floating-menu-shadow","",i.shadowElevation02)};var gg={largeFieldHorizontalPadding:t.extend("--ftds-combobox-single-select-large-field-horizontal-padding","",i.spacing4),largeFieldHorizontalGap:t.extend("--ftds-combobox-single-select-large-field-horizontal-gap","",i.spacing3),largeFieldVerticalGap:t.extend("--ftds-combobox-single-select-large-field-vertical-gap","",i.spacing05),largeFieldHeight:t.create("--ftds-combobox-single-select-large-field-height","","SIZE","50px"),largeFieldIconSize:t.extend("--ftds-combobox-single-select-large-field-icon-size","",i.iconSize3),mediumFieldHorizontalPadding:t.extend("--ftds-combobox-single-select-medium-field-horizontal-padding","",i.spacing4),mediumFieldHorizontalGap:t.extend("--ftds-combobox-single-select-medium-field-horizontal-gap","",i.spacing3),mediumFieldVerticalGap:t.create("--ftds-combobox-single-select-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:t.create("--ftds-combobox-single-select-medium-field-height","","SIZE","40px"),mediumFieldIconSize:t.extend("--ftds-combobox-single-select-medium-field-icon-size","",i.iconSize3),helperHorizontalPadding:t.extend("--ftds-combobox-single-select-helper-horizontal-padding","",i.spacing4),helperHorizontalGap:t.extend("--ftds-combobox-single-select-helper-horizontal-gap","",i.spacing1),helperVerticalGap:t.extend("--ftds-combobox-single-select-helper-vertical-gap","",i.spacing1),helperIconSize:t.extend("--ftds-combobox-single-select-helper-icon-size","",i.iconSize2),menuVerticalGap:t.extend("--ftds-combobox-single-select-menu-vertical-gap","",i.spacing2),borderRadius:t.extend("--ftds-combobox-single-select-border-radius","",i.borderRadiusS),backgroundColor:t.extend("--ftds-combobox-single-select-background-color","",i.colorWhite),labelColor:t.extend("--ftds-combobox-single-select-label-color","",l.contentGlobalSubtle),contentValueColor:t.extend("--ftds-combobox-single-select-content-value-color","",l.contentGlobalPrimary),trailingIconColor:t.extend("--ftds-combobox-single-select-trailing-icon-color","",l.contentGlobalSubtle),defaultBorderColor:t.extend("--ftds-combobox-single-select-default-border-color","",l.borderInputPrimary),defaultHelperTextColor:t.extend("--ftds-combobox-single-select-default-helper-text-color","",l.contentGlobalSubtle),defaultBorderWidth:t.create("--ftds-combobox-single-select-default-border-width","","SIZE","1px"),errorBorderWidth:t.create("--ftds-combobox-single-select-error-border-width","","SIZE","2px"),errorBorderColor:t.extend("--ftds-combobox-single-select-error-border-color","",l.borderErrorPrimary),errorHelperTextColor:t.extend("--ftds-combobox-single-select-error-helper-text-color","",l.contentErrorPrimary),warningBorderWidth:t.create("--ftds-combobox-single-select-warning-border-width","","SIZE","2px"),warningBorderColor:t.extend("--ftds-combobox-single-select-warning-border-color","",l.borderWarningPrimary),warningHelperTextColor:t.extend("--ftds-combobox-single-select-warning-helper-text-color","",l.contentWarningPrimary),warningHelperIconColor:t.extend("--ftds-combobox-single-select-warning-helper-icon-color","",l.contentWarningIconOnly),focusOutlineWidth:t.create("--ftds-combobox-single-select-focus-outline-width","","SIZE","2px"),focusFocusRingColor:t.extend("--ftds-combobox-single-select-focus-focus-ring-color","",l.borderActionFocusRing),focusOutlineOffset:t.create("--ftds-combobox-single-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:t.extend("--ftds-combobox-single-select-disabled-component-opacity","",i.opacity40)};var xg={backgroundColor:t.extend("--ftds-combobox-multi-select-background-color","",i.colorWhite),labelColor:t.extend("--ftds-combobox-multi-select-label-color","",l.contentGlobalSubtle),trailingIconColor:t.extend("--ftds-combobox-multi-select-trailing-icon-color","",l.contentGlobalSubtle),defaultBorderColor:t.extend("--ftds-combobox-multi-select-default-border-color","",l.borderInputPrimary),defaultHelperTextColor:t.extend("--ftds-combobox-multi-select-default-helper-text-color","",l.contentGlobalSubtle),defaultBorderWidth:t.create("--ftds-combobox-multi-select-default-border-width","","SIZE","1px"),errorBorderColor:t.extend("--ftds-combobox-multi-select-error-border-color","",l.borderErrorPrimary),errorHelperTextColor:t.extend("--ftds-combobox-multi-select-error-helper-text-color","",l.contentErrorPrimary),errorHelperIcon:t.extend("--ftds-combobox-multi-select-error-helper-icon","",l.contentErrorIconOnly),errorBorderWidth:t.create("--ftds-combobox-multi-select-error-border-width","","SIZE","2px"),warningBorderColor:t.extend("--ftds-combobox-multi-select-warning-border-color","",l.borderWarningPrimary),warningHelperTextColor:t.extend("--ftds-combobox-multi-select-warning-helper-text-color","",l.contentWarningPrimary),warningHelperIconColor:t.extend("--ftds-combobox-multi-select-warning-helper-icon-color","",l.contentWarningIconOnly),warningBorderWidth:t.create("--ftds-combobox-multi-select-warning-border-width","","SIZE","2px"),focusFocusRingColor:t.extend("--ftds-combobox-multi-select-focus-focus-ring-color","",l.borderActionFocusRing),focusOutlineWidth:t.create("--ftds-combobox-multi-select-focus-outline-width","","SIZE","2px"),focusOutlineOffset:t.create("--ftds-combobox-multi-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:t.extend("--ftds-combobox-multi-select-disabled-component-opacity","",i.opacity40),helperHorizontalPadding:t.extend("--ftds-combobox-multi-select-helper-horizontal-padding","",i.spacing4),helperHorizontalGap:t.extend("--ftds-combobox-multi-select-helper-horizontal-gap","",i.spacing1),helperVerticalGap:t.extend("--ftds-combobox-multi-select-helper-vertical-gap","",i.spacing1),helperIconSize:t.extend("--ftds-combobox-multi-select-helper-icon-size","",i.iconSize2),fieldHorizontalPadding:t.extend("--ftds-combobox-multi-select-field-horizontal-padding","",i.spacing4),fieldHorizontalGap:t.extend("--ftds-combobox-multi-select-field-horizontal-gap","",i.spacing3),fieldVerticalGap:t.extend("--ftds-combobox-multi-select-field-vertical-gap","",i.spacing05),fieldIconSize:t.extend("--ftds-combobox-multi-select-field-icon-size","",i.iconSize3),fieldMaxHeight:t.create("--ftds-combobox-multi-select-field-max-height","","SIZE","112px"),contentValuesHorizontalGap:t.extend("--ftds-combobox-multi-select-content-values-horizontal-gap","",i.spacing1),contentValuesVerticalGap:t.extend("--ftds-combobox-multi-select-content-values-vertical-gap","",i.spacing1),borderRadius:t.extend("--ftds-combobox-multi-select-border-radius","",i.borderRadiusS)};var Ag={backgroundColor:t.extend("--ftds-popover-background-color","",l.backgroundGlobalOnSurface),horizontalPadding:t.extend("--ftds-popover-horizontal-padding","",i.spacing6),verticalPadding:t.extend("--ftds-popover-vertical-padding","",i.spacing6),titleColor:t.extend("--ftds-popover-title-color","",l.contentGlobalPrimary),bodyColor:t.extend("--ftds-popover-body-color","",l.contentGlobalSecondary),gap:t.extend("--ftds-popover-gap","",i.spacing2),borderRadius:t.extend("--ftds-popover-border-radius","",i.borderRadiusM),shadow:t.extend("--ftds-popover-shadow","",i.shadowElevation02),maxWidth:t.create("--ftds-popover-max-width","","SIZE","440px"),contentSectionVerticalGap:t.extend("--ftds-popover-content-section-vertical-gap","",i.spacing2),multiSectionVerticalGap:t.extend("--ftds-popover-multi-section-vertical-gap","",i.spacing6)};var _g={hoverStateLayerOpacity:t.extend("--ftds-collapsible-hover-state-layer-opacity","",i.opacity8),focusStateLayerOpacity:t.extend("--ftds-collapsible-focus-state-layer-opacity","",i.opacity8),focusOutlineWidth:t.create("--ftds-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:t.extend("--ftds-collapsible-focus-focus-ring-color","",l.borderActionFocusRing),activeStateLayerOpacity:t.extend("--ftds-collapsible-active-state-layer-opacity","",i.opacity16),disabledComponentOpacity:t.extend("--ftds-collapsible-disabled-component-opacity","",i.opacity40),horizontalPadding:t.extend("--ftds-collapsible-horizontal-padding","",i.spacing4),verticalPadding:t.extend("--ftds-collapsible-vertical-padding","",i.spacing3),color:t.extend("--ftds-collapsible-color","",l.contentGlobalPrimary),stateLayerColor:t.extend("--ftds-collapsible-state-layer-color","",l.contentGlobalPrimary),backgroundColor:t.extend("--ftds-collapsible-background-color","",l.backgroundGlobalOnSurface),borderColor:t.extend("--ftds-collapsible-border-color","",l.borderGlobalSubtle),iconSize:t.extend("--ftds-collapsible-icon-size","",i.iconSize3)};var Dg={groupHorizontalPadding:t.extend("--ftds-switch-group-horizontal-padding","",i.spacing1),groupVerticalPadding:t.extend("--ftds-switch-group-vertical-padding","",i.spacing1),groupGap:t.extend("--ftds-switch-group-gap","",i.spacing1),groupBackgroundColor:t.extend("--ftds-switch-group-background-color","",l.backgroundGlobalSurface),groupBorderColor:t.extend("--ftds-switch-group-border-color","",l.borderGlobalSubtle),groupBorderRadius:t.create("--ftds-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:t.extend("--ftds-switch-label-horizontal-padding","",i.spacing2),labelVerticalPadding:t.extend("--ftds-switch-label-vertical-padding","",i.spacing1),offHoverStateLayerOpacity:t.extend("--ftds-switch-off-hover-state-layer-opacity","",i.opacity8),offFocusStateLayerOpacity:t.extend("--ftds-switch-off-focus-state-layer-opacity","",i.opacity8),offActiveStateLayerOpacity:t.extend("--ftds-switch-off-active-state-layer-opacity","",i.opacity16),offDisabledComponentOpacity:t.extend("--ftds-switch-off-disabled-component-opacity","",i.opacity40),offColor:t.extend("--ftds-switch-off-color","",l.contentGlobalSubtle),offStateLayerColor:t.extend("--ftds-switch-off-state-layer-color","",l.contentGlobalSubtle),onHoverStateLayerOpacity:t.extend("--ftds-switch-on-hover-state-layer-opacity","",i.opacity8),onFocusStateLayerOpacity:t.extend("--ftds-switch-on-focus-state-layer-opacity","",i.opacity8),onActiveStateLayerOpacity:t.extend("--ftds-switch-on-active-state-layer-opacity","",i.opacity16),onDisabledComponentOpacity:t.extend("--ftds-switch-on-disabled-component-opacity","",i.opacity40),onColor:t.extend("--ftds-switch-on-color","",l.contentActionPrimary),onStateLayerColor:t.extend("--ftds-switch-on-state-layer-color","",l.contentActionPrimary),iconHorizontalPadding:t.extend("--ftds-switch-icon-horizontal-padding","",i.spacing1),iconVerticalPadding:t.extend("--ftds-switch-icon-vertical-padding","",i.spacing1),focusOutlineWidth:t.create("--ftds-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:t.extend("--ftds-switch-focus-focus-ring-color","",l.borderActionFocusRing),optionBorderRadius:t.extend("--ftds-switch-option-border-radius","",i.borderRadiusS)};var Bg={color1Light:t.extend("--ftds-chart-1-light","for area color charts",i.colorBrand40),color1Base:t.extend("--ftds-chart-1-base","for line charts",i.colorBrand0),color2Light:t.extend("--ftds-chart-2-light","for area color charts",i.colorYellow60),color2Base:t.extend("--ftds-chart-2-base","for line charts",i.colorYellow100),color3Light:t.extend("--ftds-chart-3-light","",i.colorUltramarine40),color3Base:t.extend("--ftds-chart-3-base","",i.colorUltramarine70),color4Light:t.extend("--ftds-chart-4-light","",i.colorCyan50),color4Base:t.extend("--ftds-chart-4-base","",i.colorCyan100),color5Light:t.extend("--ftds-chart-5-light","",i.colorRed40),color5Base:t.extend("--ftds-chart-5-base","",i.colorRed60),color6Light:t.extend("--ftds-chart-6-light","",i.colorGreen40),color6Base:t.extend("--ftds-chart-6-base","",i.colorGreen70),color7Light:t.extend("--ftds-chart-7-light","",i.colorOrange70),color7Base:t.extend("--ftds-chart-7-base","",i.colorOrange100),color8Light:t.extend("--ftds-chart-8-light","",i.colorAvocado70),color8Base:t.extend("--ftds-chart-8-base","",i.colorAvocado200),color9Light:t.extend("--ftds-chart-9-light","",i.colorBrown50),color9Base:t.extend("--ftds-chart-9-base","",i.colorBrown200),color10Light:t.extend("--ftds-chart-10-light","",i.colorGray50),color10Base:t.extend("--ftds-chart-10-base","",i.colorGray80),monochrome10:t.extend("--ftds-chart-monochrome-10","",i.colorBrand10),monochrome20:t.extend("--ftds-chart-monochrome-20","",i.colorBrand20),monochrome30:t.extend("--ftds-chart-monochrome-30","",i.colorBrand40),monochrome40:t.extend("--ftds-chart-monochrome-40","",i.colorBrand60),monochrome50:t.extend("--ftds-chart-monochrome-50","",i.colorBrand0),monochrome60:t.extend("--ftds-chart-monochrome-60","",i.colorBrand200),scatterplotQuadrantPopularOldBackgroundColor:t.extend("--ftds-chart-scatterplot-quadrant-popular-old-background-color","",i.colorYellow10),scatterplotQuadrantPopularNewBackgroundColor:t.extend("--ftds-chart-scatterplot-quadrant-popular-new-background-color","",i.colorAvocado10),scatterplotQuadrantUnpopularOldBackgroundColor:t.extend("--ftds-chart-scatterplot-quadrant-unpopular-old-background-color","",i.colorRed10),scatterplotQuadrantUnpopularNewBackgroundColor:t.extend("--ftds-chart-scatterplot-quadrant-unpopular-new-background-color","",i.colorCyan10),scatterplotDatapointInitialDefaultBackgroundColor:t.extend("--ftds-chart-scatterplot-datapoint-initial-default-background-color","",i.colorBrand70),scatterplotDatapointInitialDefaultBackgroundOpacity:t.extend("--ftds-chart-scatterplot-datapoint-initial-default-background-opacity","",i.opacity48),scatterplotDatapointInitialHoverBackgroundColor:t.extend("--ftds-chart-scatterplot-datapoint-initial-hover-background-color","",i.colorBrand0),scatterplotDatapointSelectedDefaultBackgroundColor:t.extend("--ftds-chart-scatterplot-datapoint-selected-default-background-color","",i.colorBrand100),scatterplotDatapointSelectedHoverBackgroundColor:t.extend("--ftds-chart-scatterplot-datapoint-selected-hover-background-color","",i.colorBrand200),scatterplotDatapointUnselectedDefaultBackgroundColor:t.extend("--ftds-chart-scatterplot-datapoint-unselected-default-background-color","",i.colorGray60),scatterplotDatapointUnselectedDefaultBackgroundOpacity:t.extend("--ftds-chart-scatterplot-datapoint-unselected-default-background-opacity","",i.opacity48),scatterplotDatapointUnselectedHoverBackgroundColor:t.extend("--ftds-chart-scatterplot-datapoint-unselected-hover-background-color","",i.colorGray70),scatterplotDatapointHoverHoverRingColor:t.extend("--ftds-chart-scatterplot-datapoint-hover-hover-ring-color","",i.colorCyan200)};var Wg={color1IconColor:t.extend("--ftds-page-designer-1-icon-color","for area color charts",i.colorCyan0),color1ToolbarColor:t.extend("--ftds-page-designer-1-toolbar-color","for area color charts",i.colorCyan0),color2IconColor:t.extend("--ftds-page-designer-2-icon-color","for area color charts",i.colorBrand0),color2ToolbarColor:t.extend("--ftds-page-designer-2-toolbar-color","for area color charts",i.colorBrand0),color3IconColor:t.extend("--ftds-page-designer-3-icon-color","for area color charts",i.colorYellow200),color3ToolbarColor:t.extend("--ftds-page-designer-3-toolbar-color","for area color charts",i.colorYellow200),color4IconColor:t.extend("--ftds-page-designer-4-icon-color","for area color charts",i.colorUltramarine50),color4ToolbarColor:t.extend("--ftds-page-designer-4-toolbar-color","for area color charts",i.colorUltramarine50),color5IconColor:t.extend("--ftds-page-designer-5-icon-color","for area color charts",i.colorGreen0),color5ToolbarColor:t.extend("--ftds-page-designer-5-toolbar-color","for area color charts",i.colorGreen0),color6IconColor:t.extend("--ftds-page-designer-6-icon-color","for area color charts",i.colorOrange0),color6ToolbarColor:t.extend("--ftds-page-designer-6-toolbar-color","for area color charts",i.colorOrange0),color7IconColor:t.extend("--ftds-page-designer-7-icon-color","for area color charts",i.colorAvocado200),color7ToolbarColor:t.extend("--ftds-page-designer-7-toolbar-color","for area color charts",i.colorAvocado200),color8IconColor:t.extend("--ftds-page-designer-8-icon-color","for area color charts",i.colorBrown0),color8ToolbarColor:t.extend("--ftds-page-designer-8-toolbar-color","for area color charts",i.colorBrown0)};var Zg={borderWidth:t.create("--ftds-notice-border-width","","SIZE","1px"),horizontalPadding:t.extend("--ftds-notice-horizontal-padding","",i.spacing3),verticalPadding:t.extend("--ftds-notice-vertical-padding","",i.spacing2),borderRadius:t.extend("--ftds-notice-border-radius","",i.borderRadiusS),gap:t.extend("--ftds-notice-gap","",i.spacing2),iconSize:t.extend("--ftds-notice-icon-size","",i.iconSize3),infoBackgroundColor:t.extend("--ftds-notice-info-background-color","",l.backgroundInfoSubtle),infoBorderColor:t.extend("--ftds-notice-info-border-color","",l.borderInfoSubtle),infoColor:t.extend("--ftds-notice-info-color","",l.contentInfoPrimary),infoIconColor:t.extend("--ftds-notice-info-icon-color","",l.contentInfoIconOnly),warningBackgroundColor:t.extend("--ftds-notice-warning-background-color","",l.backgroundWarningSubtle),warningBorderColor:t.extend("--ftds-notice-warning-border-color","",l.borderWarningSubtle),warningColor:t.extend("--ftds-notice-warning-color","",l.contentWarningPrimary),warningIconColor:t.extend("--ftds-notice-warning-icon-color","",l.contentWarningIconOnly),errorBackgroundColor:t.extend("--ftds-notice-error-background-color","",l.backgroundErrorSubtle),errorBorderColor:t.extend("--ftds-notice-error-border-color","",l.borderErrorSubtle),errorColor:t.extend("--ftds-notice-error-color","",l.contentErrorPrimary),errorIconColor:t.extend("--ftds-notice-error-icon-color","",l.contentErrorIconOnly),successBackgroundColor:t.extend("--ftds-notice-success-background-color","",l.backgroundSuccessSubtle),successBorderColor:t.extend("--ftds-notice-success-border-color","",l.borderSuccessSubtle),successColor:t.extend("--ftds-notice-success-color","",l.contentSuccessPrimary),successIconColor:t.extend("--ftds-notice-success-icon-color","",l.contentSuccessIconOnly),denseHorizontalPadding:t.create("--ftds-notice-dense-horizontal-padding","","SIZE","0px"),denseVerticalPadding:t.create("--ftds-notice-dense-vertical-padding","","SIZE","0px"),denseGap:t.extend("--ftds-notice-dense-gap","",i.spacing1),denseIconSize:t.extend("--ftds-notice-dense-icon-size","",i.iconSize2),denseBorderWidth:t.create("--ftds-notice-dense-border-width","","SIZE","0")};var Jg={offHoverStateLayerOpacity:t.extend("--ftds-toggle-off-hover-state-layer-opacity","",i.opacity16),offFocusStateLayerOpacity:t.extend("--ftds-toggle-off-focus-state-layer-opacity","",i.opacity16),offActiveStateLayerOpacity:t.extend("--ftds-toggle-off-active-state-layer-opacity","",i.opacity24),offDisabledComponentOpacity:t.extend("--ftds-toggle-off-disabled-component-opacity","",i.opacity40),offBackgroundColor:t.extend("--ftds-toggle-off-background-color","",l.contentGlobalSubtle),offIconColor:t.extend("--ftds-toggle-off-icon-color","",l.contentGlobalSubtle),offStateLayerColor:t.extend("--ftds-toggle-off-state-layer-color","",l.contentGlobalSubtle),onHoverStateLayerOpacity:t.extend("--ftds-toggle-on-hover-state-layer-opacity","",i.opacity16),onFocusStateLayerOpacity:t.extend("--ftds-toggle-on-focus-state-layer-opacity","",i.opacity16),onActiveStateLayerOpacity:t.extend("--ftds-toggle-on-active-state-layer-opacity","",i.opacity24),onDisabledComponentOpacity:t.extend("--ftds-toggle-on-disabled-component-opacity","",i.opacity40),onBackgroundColor:t.extend("--ftds-toggle-on-background-color","",l.contentActionPrimary),onStateLayerColor:t.extend("--ftds-toggle-on-state-layer-color","",l.contentActionPrimary),onIconColor:t.extend("--ftds-toggle-on-icon-color","",l.contentActionPrimary),color:t.extend("--ftds-toggle-color","",l.contentGlobalPrimary),focusFocusRingColor:t.extend("--ftds-toggle-focus-focus-ring-color","",l.borderActionFocusRing),gap:t.extend("--ftds-toggle-gap","",i.spacing3)};var ny={iconSize:t.extend("--ftds-notification-icon-size","",i.iconSize4),leftPadding:t.extend("--ftds-notification-left-padding","",i.spacing5),rightPadding:t.extend("--ftds-notification-right-padding","",i.spacing4),verticalPadding:t.extend("--ftds-notification-vertical-padding","",i.spacing3),infoBackgroundColor:t.extend("--ftds-notification-info-background-color","",l.backgroundInfoSubtle),infoColor:t.extend("--ftds-notification-info-color","",l.contentInfoPrimary),infoIconColor:t.extend("--ftds-notification-info-icon-color","",l.contentInfoIconOnly),infoBorderColor:t.extend("--ftds-notification-info-border-color","",l.borderInfoSubtle),successBackgroundColor:t.extend("--ftds-notification-success-background-color","",l.backgroundSuccessSubtle),successColor:t.extend("--ftds-notification-success-color","",l.contentSuccessPrimary),successIconColor:t.extend("--ftds-notification-success-icon-color","",l.contentSuccessIconOnly),successBorderColor:t.extend("--ftds-notification-success-border-color","",l.borderSuccessSubtle),warningBackgroundColor:t.extend("--ftds-notification-warning-background-color","",l.backgroundWarningSubtle),warningColor:t.extend("--ftds-notification-warning-color","",l.contentWarningPrimary),warningIconColor:t.extend("--ftds-notification-warning-icon-color","",l.contentWarningIconOnly),warningBorderColor:t.extend("--ftds-notification-warning-border-color","",l.borderWarningSubtle),errorBackgroundColor:t.extend("--ftds-notification-error-background-color","",l.backgroundErrorSubtle),errorColor:t.extend("--ftds-notification-error-color","",l.contentErrorPrimary),errorIconColor:t.extend("--ftds-notification-error-icon-color","",l.contentErrorIconOnly),errorBorderColor:t.extend("--ftds-notification-error-border-color","",l.borderErrorSubtle),borderRadius:t.extend("--ftds-notification-border-radius","",i.borderRadiusPill),borderWidth:t.create("--ftds-notification-border-width","","SIZE","1px"),leadingGap:t.extend("--ftds-notification-leading-gap","",i.spacing2),trailingGap:t.extend("--ftds-notification-trailing-gap","",i.spacing8)};var ly={horizontalPadding:t.extend("--ftds-tooltip-horizontal-padding","",i.spacing2),verticalPadding:t.extend("--ftds-tooltip-vertical-padding","",i.spacing2),borderRadius:t.extend("--ftds-tooltip-border-radius","",i.borderRadiusS),color:t.extend("--ftds-tooltip-color","",l.contentGlobalOnColor),backgroundColor:t.extend("--ftds-tooltip-background-color","",l.contentGlobalPrimary),backgroundOpacity:t.extend("--ftds-tooltip-background-opacity","",i.opacity80),shadow:t.extend("--ftds-tooltip-shadow","",i.shadowElevation02),maxWidth:t.create("--ftds-tooltip-max-width","","SIZE","256px"),gap:t.extend("--ftds-tooltip-gap","",i.spacing05)};var hy={verticalPadding:t.extend("--ftds-reorderable-list-vertical-padding","",i.spacing4),gap:t.extend("--ftds-reorderable-list-gap","",i.spacing1),borderRadius:t.extend("--ftds-reorderable-list-border-radius","",i.borderRadiusM),reorderableItemTitleMarginRight:t.extend("--ftds-reorderable-list-reorderable-item-title-margin-right","",i.spacing6),reorderableItemTitleColor:t.extend("--ftds-reorderable-list-reorderable-item-title-color","",l.contentGlobalPrimary),reorderableItemLeftButtonsGroupMarginRight:t.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-margin-right","",i.spacing6),reorderableItemLeftButtonsGroupHorizontalGap:t.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-horizontal-gap","",i.spacing2),reorderableItemRightButtonsGroupHorizontalGap:t.extend("--ftds-reorderable-list-reorderable-item-right-buttons-group-horizontal-gap","",i.spacing2),reorderableItemUsersCountColor:t.extend("--ftds-reorderable-list-reorderable-item-users-count-color","",l.contentGlobalPrimary),reorderableItemUsersCountMarginRight:t.extend("--ftds-reorderable-list-reorderable-item-users-count-margin-right","",i.spacing6),reorderableItemBackgroundColor:t.extend("--ftds-reorderable-list-reorderable-item-background-color","",l.backgroundGlobalOnSurface),reorderableItemWarningMessageGap:t.extend("--ftds-reorderable-list-reorderable-item-warning-message-gap","",i.spacing1),reorderableItemWarningMessageColor:t.extend("--ftds-reorderable-list-reorderable-item-warning-message-color","",l.contentWarningPrimary),reorderableItemWarningMessageIconColor:t.extend("--ftds-reorderable-list-reorderable-item-warning-message-icon-color","",l.contentWarningIconOnly),reorderableItemGripColor:t.extend("--ftds-reorderable-list-reorderable-item-grip-color","",l.contentGlobalSecondary),reorderableItemGripOpacity:t.extend("--ftds-reorderable-list-reorderable-item-grip-opacity","",i.opacity48),boxShadow:t.extend("--ftds-reorderable-list-box-shadow","",i.shadowElevation01),borderWidth:t.create("--ftds-reorderable-list-border-width","","SIZE","1px"),reorderableItemsGap:t.extend("--ftds-reorderable-list-reorderable-items-gap","",i.spacing2),leftPadding:t.extend("--ftds-reorderable-list-left-padding","",i.spacing2),rightPadding:t.extend("--ftds-reorderable-list-right-padding","",i.spacing6),borderColor:t.extend("--ftds-reorderable-list-border-color","",l.borderGlobalPrimary),backgroundColor:t.extend("--ftds-reorderable-list-background-color","",l.backgroundGlobalOnSurfaceDark)};var by={menuHorizontalPadding:t.extend("--ftds-date-range-picker-menu-horizontal-padding","",i.spacing4),menuVerticalPadding:t.extend("--ftds-date-range-picker-menu-vertical-padding","",i.spacing4),menuVerticalGap:t.extend("--ftds-date-range-picker-menu-vertical-gap","",i.spacing4),menuButtonsVerticalGap:t.extend("--ftds-date-range-picker-menu-buttons-vertical-gap","",i.spacing2)};var Yi;(function(o){o.brand="brand",o.neutral="neutral",o.info="info",o.success="success",o.warning="warning",o.error="error"})(Yi||(Yi={}));var Qi;(function(o){o.large="large",o.medium="medium",o.small="small"})(Qi||(Qi={}));var At=C(V());function gc(o,e){let r=Uo[o];return At.css`
185
185
  ${e?(0,At.unsafeCSS)(e):At.css`.ftds-typography--${(0,At.unsafeCSS)(o)}`} {
186
186
  font-family: ${r.fontFamily};
187
187
  font-size: ${r.fontSize};
@@ -191,7 +191,7 @@ Also for action icons.`,i.colorGray200),contentGlobalSubtle:t.extend("--ftds-con
191
191
  text-decoration: ${r.textDecoration};
192
192
  text-transform: ${r.textCase};
193
193
  }
194
- `}var qi=[Object.keys(Bo).map(o=>pc(o))];var Yi=function(o,e,r,n){var a=arguments.length,s=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,r,n);else for(var d=o.length-1;d>=0;d--)(c=o[d])&&(s=(a<3?c(s):a>3?c(e,r,s):c(e,r))||s);return a>3&&s&&Object.defineProperty(e,r,s),s},qe=class extends Qi.FtLitElement{constructor(){super(...arguments),this.variant=Nr.body2medium}render(){return this.element?ht`
194
+ `}var Xi=[Object.keys(Uo).map(o=>gc(o))];var Ji=function(o,e,r,n){var a=arguments.length,s=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,r,n);else for(var d=o.length-1;d>=0;d--)(c=o[d])&&(s=(a<3?c(s):a>3?c(e,r,s):c(e,r))||s);return a>3&&s&&Object.defineProperty(e,r,s),s},qe=class extends es.FtLitElement{constructor(){super(...arguments),this.variant=Lr.body2medium}render(){return this.element?ht`
195
195
  <${ft(this.element)}
196
196
  part="text"
197
197
  class="ftds-typography ftds-typography--${this.variant}">
@@ -199,7 +199,7 @@ Also for action icons.`,i.colorGray200),contentGlobalSubtle:t.extend("--ftds-con
199
199
  </${ft(this.element)}>
200
200
  `:ht`
201
201
  <slot part="text" class="ftds-typography ftds-typography--${this.variant}"></slot>
202
- `}};qe.styles=[...qi];Yi([(0,Uo.property)()],qe.prototype,"element",void 0);Yi([(0,Uo.property)()],qe.prototype,"variant",void 0);var Ho=C(_());(0,Ho.customElement)("ft-typography")(Ze);(0,Ho.customElement)("ftds-typography")(qe);var Pr=function(o,e,r,n){var a=arguments.length,s=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,r,n);else for(var d=o.length-1;d>=0;d--)(c=o[d])&&(s=(a<3?c(s):a>3?c(e,r,s):c(e,r))||s);return a>3&&s&&Object.defineProperty(e,r,s),s},he=class extends Ji.FtLitElement{constructor(){super(...arguments),this.height=0,this.resizeObserver=new ResizeObserver(([e])=>{this.height=Math.min(e.contentRect.height,e.contentRect.width)})}render(){var e,r,n;return this.watermark?wt.html`
202
+ `}};qe.styles=[...Xi];Ji([(0,Bo.property)()],qe.prototype,"element",void 0);Ji([(0,Bo.property)()],qe.prototype,"variant",void 0);var Ho=C(_());(0,Ho.customElement)("ft-typography")(Ze);(0,Ho.customElement)("ftds-typography")(qe);var Pr=function(o,e,r,n){var a=arguments.length,s=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,r,n);else for(var d=o.length-1;d>=0;d--)(c=o[d])&&(s=(a<3?c(s):a>3?c(e,r,s):c(e,r))||s);return a>3&&s&&Object.defineProperty(e,r,s),s},he=class extends rs.FtLitElement{constructor(){super(...arguments),this.height=0,this.resizeObserver=new ResizeObserver(([e])=>{this.height=Math.min(e.contentRect.height,e.contentRect.width)})}render(){var e,r,n;return this.watermark?wt.html`
203
203
  <style>
204
204
  .ft-watermark {
205
205
  height: ${this.height}px;
@@ -214,11 +214,11 @@ Also for action icons.`,i.colorGray200),contentGlobalSubtle:t.extend("--ftds-con
214
214
  transform="rotate(-45)"
215
215
  fill="${(e=this.watermark)===null||e===void 0?void 0:e.color}"
216
216
  fill-opacity="${(r=this.watermark)===null||r===void 0?void 0:r.opacity}%">
217
- ${(0,Xi.repeat)(((n=this.watermark)===null||n===void 0?void 0:n.text)||[],a=>wt.svg`<tspan x="0" dy="1.2em">${a}</tspan>`)}
217
+ ${(0,ts.repeat)(((n=this.watermark)===null||n===void 0?void 0:n.text)||[],a=>wt.svg`<tspan x="0" dy="1.2em">${a}</tspan>`)}
218
218
  </text>
219
219
  </svg>
220
220
  </div>
221
- `:wt.nothing}updated(e){if(super.updated(e),e.has("watermark")&&this.watermark){let r=this.svg.getBBox({stroke:!0});this.svg.setAttribute("viewBox",r.x+" "+r.y+" "+r.width+" "+r.height)}e.has("heightReference")&&this.heightReference&&(this.resizeObserver.disconnect(),this.resizeObserver.observe(this.heightReference))}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.disconnect()}};he.styles=[ri,Lr];Pr([(0,Ye.query)(".ft-watermark")],he.prototype,"svg",void 0);Pr([(0,Ye.property)({attribute:!1})],he.prototype,"watermark",void 0);Pr([(0,Ye.property)({attribute:!1})],he.prototype,"heightReference",void 0);Pr([(0,Ye.state)()],he.prototype,"height",void 0);var es=C(_());(0,es.customElement)("ft-content-watermark")(he);var ge=function(o,e,r,n){var a=arguments.length,s=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,r,n);else for(var d=o.length-1;d>=0;d--)(c=o[d])&&(s=(a<3?c(s):a>3?c(e,r,s):c(e,r))||s);return a>3&&s&&Object.defineProperty(e,r,s),s},q=class extends Je{constructor(){super(...arguments),this.renderTopic=()=>kr.html`
221
+ `:wt.nothing}updated(e){if(super.updated(e),e.has("watermark")&&this.watermark){let r=this.svg.getBBox({stroke:!0});this.svg.setAttribute("viewBox",r.x+" "+r.y+" "+r.width+" "+r.height)}e.has("heightReference")&&this.heightReference&&(this.resizeObserver.disconnect(),this.resizeObserver.observe(this.heightReference))}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.disconnect()}};he.styles=[ai,Nr];Pr([(0,Ye.query)(".ft-watermark")],he.prototype,"svg",void 0);Pr([(0,Ye.property)({attribute:!1})],he.prototype,"watermark",void 0);Pr([(0,Ye.property)({attribute:!1})],he.prototype,"heightReference",void 0);Pr([(0,Ye.state)()],he.prototype,"height",void 0);var os=C(_());(0,os.customElement)("ft-content-watermark")(he);var ge=function(o,e,r,n){var a=arguments.length,s=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,r,n);else for(var d=o.length-1;d>=0;d--)(c=o[d])&&(s=(a<3?c(s):a>3?c(e,r,s):c(e,r))||s);return a>3&&s&&Object.defineProperty(e,r,s),s},q=class extends Je{constructor(){super(...arguments),this.renderTopic=()=>kr.html`
222
222
  <ft-reader-topic-title></ft-reader-topic-title>
223
223
  <ft-reader-topic-content></ft-reader-topic-content>
224
224
  `,this.disableContextInteractions=!1,this.headingLevelsShift=0,this.renderBeforeFirst=5,this.renderAfterLast=10,this.renderItem=(e,r)=>this.renderTopicInContext(e,r),this.getItemKey=e=>this.mapId+e,this.renderedTopicsDebouncer=new ne.Debouncer(50),this.visibleTopicsDebouncer=new ne.Debouncer(50)}render(){var e,r;let n=((e=this.currentPage)===null||e===void 0?void 0:e.topics)||[];return kr.html`
@@ -245,7 +245,7 @@ Also for action icons.`,i.colorGray200),contentGlobalSubtle:t.extend("--ftds-con
245
245
  headingLevelsShift="${this.headingLevelsShift}">
246
246
  ${this.renderTopic(e,r)}
247
247
  </ft-reader-topic-context>
248
- `}getScrollTarget(){var e,r,n;if(this.disableContextInteractions)return null;let a=(e=this.container)===null||e===void 0?void 0:e.isRendered((r=this.scrollTarget)===null||r===void 0?void 0:r.tocId);return!((n=this.scrollTarget)===null||n===void 0)&&n.tocId&&(!a||this.scrollTarget.section==null)?this.scrollTarget.tocId:null}renderedTopicChange(e){this.disableContextInteractions||this.renderedTopicsDebouncer.run(()=>{var r;return(r=this.stateManager)===null||r===void 0?void 0:r.setRenderedTopics(e.detail.items)})}visibleTopicChange(e){var r;this.disableContextInteractions||this.visibleTopicsDebouncer.run(()=>{var n;return(n=this.stateManager)===null||n===void 0?void 0:n.setVisibleTopics(e.detail.items)}),(r=this.stateManager)===null||r===void 0||r.store.dispatchEvent(new Event(Fe.visibleTopicChange))}onScrollDone(){var e,r;!this.disableContextInteractions&&!(!((e=this.scrollTarget)===null||e===void 0)&&e.section)&&((r=this.stateManager)===null||r===void 0||r.scrollDone())}};q.elementDefinitions={"ft-infinite-scroll":U,"ft-content-watermark":he};q.styles=rn;ge([(0,Bt.property)()],q.prototype,"renderTopic",void 0);ge([(0,Bt.property)({type:Boolean})],q.prototype,"disableContextInteractions",void 0);ge([(0,ne.numberProperty)()],q.prototype,"headingLevelsShift",void 0);ge([(0,ne.redux)()],q.prototype,"currentPage",void 0);ge([(0,ne.redux)()],q.prototype,"scrollTarget",void 0);ge([(0,ne.redux)()],q.prototype,"visibleTopics",void 0);ge([(0,ne.redux)({selector:o=>{var e,r;return(r=(e=o.configuration)===null||e===void 0?void 0:e.loadBeforeFirstVisibleTopic)!==null&&r!==void 0?r:5}})],q.prototype,"renderBeforeFirst",void 0);ge([(0,ne.redux)({selector:o=>{var e,r;return(r=(e=o.configuration)===null||e===void 0?void 0:e.loadAfterLastVisibleTopic)!==null&&r!==void 0?r:5}})],q.prototype,"renderAfterLast",void 0);ge([(0,ne.redux)()],q.prototype,"mapId",void 0);ge([(0,Bt.query)(".ft-reader-content")],q.prototype,"container",void 0);ge([(0,ne.redux)({selector:o=>{var e;return(e=o.map)===null||e===void 0?void 0:e.watermark}})],q.prototype,"watermark",void 0);(0,ts.customElement)("ft-reader-content")(q);})();
248
+ `}getScrollTarget(){var e,r,n;if(this.disableContextInteractions)return null;let a=(e=this.container)===null||e===void 0?void 0:e.isRendered((r=this.scrollTarget)===null||r===void 0?void 0:r.tocId);return!((n=this.scrollTarget)===null||n===void 0)&&n.tocId&&(!a||this.scrollTarget.section==null)?this.scrollTarget.tocId:null}renderedTopicChange(e){this.disableContextInteractions||this.renderedTopicsDebouncer.run(()=>{var r;return(r=this.stateManager)===null||r===void 0?void 0:r.setRenderedTopics(e.detail.items)})}visibleTopicChange(e){var r;this.disableContextInteractions||this.visibleTopicsDebouncer.run(()=>{var n;return(n=this.stateManager)===null||n===void 0?void 0:n.setVisibleTopics(e.detail.items)}),(r=this.stateManager)===null||r===void 0||r.store.dispatchEvent(new Event(Fe.visibleTopicChange))}onScrollDone(){var e,r;!this.disableContextInteractions&&!(!((e=this.scrollTarget)===null||e===void 0)&&e.section)&&((r=this.stateManager)===null||r===void 0||r.scrollDone())}};q.elementDefinitions={"ft-infinite-scroll":B,"ft-content-watermark":he};q.styles=rn;ge([(0,Ut.property)()],q.prototype,"renderTopic",void 0);ge([(0,Ut.property)({type:Boolean})],q.prototype,"disableContextInteractions",void 0);ge([(0,ne.numberProperty)()],q.prototype,"headingLevelsShift",void 0);ge([(0,ne.redux)()],q.prototype,"currentPage",void 0);ge([(0,ne.redux)()],q.prototype,"scrollTarget",void 0);ge([(0,ne.redux)()],q.prototype,"visibleTopics",void 0);ge([(0,ne.redux)({selector:o=>{var e,r;return(r=(e=o.configuration)===null||e===void 0?void 0:e.loadBeforeFirstVisibleTopic)!==null&&r!==void 0?r:5}})],q.prototype,"renderBeforeFirst",void 0);ge([(0,ne.redux)({selector:o=>{var e,r;return(r=(e=o.configuration)===null||e===void 0?void 0:e.loadAfterLastVisibleTopic)!==null&&r!==void 0?r:5}})],q.prototype,"renderAfterLast",void 0);ge([(0,ne.redux)()],q.prototype,"mapId",void 0);ge([(0,Ut.query)(".ft-reader-content")],q.prototype,"container",void 0);ge([(0,ne.redux)({selector:o=>{var e;return(e=o.map)===null||e===void 0?void 0:e.watermark}})],q.prototype,"watermark",void 0);(0,ns.customElement)("ft-reader-content")(q);})();
249
249
  /*! Bundled license information:
250
250
 
251
251
  @lit/reactive-element/css-tag.js: