@fluid-topics/ft-reader-feedback 1.3.54 → 1.3.55
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.
- package/build/ft-reader-feedback.light.js +131 -129
- package/build/ft-reader-feedback.min.js +115 -113
- package/build/ft-reader-map-feedback.js +13 -13
- package/build/ft-reader-topic-feedback.js +12 -12
- package/package.json +6 -6
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use strict";(()=>{var
|
|
2
|
-
`)===0?X.substr(1,X.length):X}).forEach(function(X){var ce=X.split(":"),G=ce.shift().trim();if(G){var Jo=ce.join(":").trim();try{v.append(G,Jo)}catch(
|
|
1
|
+
"use strict";(()=>{var qp=Object.create;var Ts=Object.defineProperty;var Yp=Object.getOwnPropertyDescriptor;var Xp=Object.getOwnPropertyNames;var Qp=Object.getPrototypeOf,Jp=Object.prototype.hasOwnProperty;var Cr=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var eu=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Xp(e))!Jp.call(t,n)&&n!==r&&Ts(t,n,{get:()=>e[n],enumerable:!(i=Yp(e,n))||i.enumerable});return t};var m=(t,e,r)=>(r=t!=null?qp(Qp(t)):{},eu(e||!t||!t.__esModule?Ts(r,"default",{value:t,enumerable:!0}):r,t));var R=Cr((Lf,Rs)=>{Rs.exports=ftGlobals.wcUtils});var $=Cr((Nf,Is)=>{Is.exports=ftGlobals.lit});var K=Cr((kf,_s)=>{_s.exports=ftGlobals.litDecorators});var cl=Cr((or,ll)=>{var ri=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,oi=function(){function t(){this.fetch=!1,this.DOMException=ri.DOMException}return t.prototype=ri,new t}();(function(t){var e=function(r){var i=typeof t<"u"&&t||typeof self<"u"&&self||typeof global<"u"&&global||{},n={searchParams:"URLSearchParams"in i,iterable:"Symbol"in i&&"iterator"in Symbol,blob:"FileReader"in i&&"Blob"in i&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in i,arrayBuffer:"ArrayBuffer"in i};function a(y){return y&&DataView.prototype.isPrototypeOf(y)}if(n.arrayBuffer)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(y){return y&&s.indexOf(Object.prototype.toString.call(y))>-1};function p(y){if(typeof y!="string"&&(y=String(y)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(y)||y==="")throw new TypeError('Invalid character in header field name: "'+y+'"');return y.toLowerCase()}function u(y){return typeof y!="string"&&(y=String(y)),y}function h(y){var v={next:function(){var P=y.shift();return{done:P===void 0,value:P}}};return n.iterable&&(v[Symbol.iterator]=function(){return v}),v}function g(y){this.map={},y instanceof g?y.forEach(function(v,P){this.append(P,v)},this):Array.isArray(y)?y.forEach(function(v){if(v.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+v.length);this.append(v[0],v[1])},this):y&&Object.getOwnPropertyNames(y).forEach(function(v){this.append(v,y[v])},this)}g.prototype.append=function(y,v){y=p(y),v=u(v);var P=this.map[y];this.map[y]=P?P+", "+v:v},g.prototype.delete=function(y){delete this.map[p(y)]},g.prototype.get=function(y){return y=p(y),this.has(y)?this.map[y]:null},g.prototype.has=function(y){return this.map.hasOwnProperty(p(y))},g.prototype.set=function(y,v){this.map[p(y)]=u(v)},g.prototype.forEach=function(y,v){for(var P in this.map)this.map.hasOwnProperty(P)&&y.call(v,this.map[P],P,this)},g.prototype.keys=function(){var y=[];return this.forEach(function(v,P){y.push(P)}),h(y)},g.prototype.values=function(){var y=[];return this.forEach(function(v){y.push(v)}),h(y)},g.prototype.entries=function(){var y=[];return this.forEach(function(v,P){y.push([P,v])}),h(y)},n.iterable&&(g.prototype[Symbol.iterator]=g.prototype.entries);function b(y){if(!y._noBody){if(y.bodyUsed)return Promise.reject(new TypeError("Already read"));y.bodyUsed=!0}}function x(y){return new Promise(function(v,P){y.onload=function(){v(y.result)},y.onerror=function(){P(y.error)}})}function S(y){var v=new FileReader,P=x(v);return v.readAsArrayBuffer(y),P}function w(y){var v=new FileReader,P=x(v),X=/charset=([A-Za-z0-9_-]+)/.exec(y.type),ce=X?X[1]:"utf-8";return v.readAsText(y,ce),P}function _(y){for(var v=new Uint8Array(y),P=new Array(v.length),X=0;X<v.length;X++)P[X]=String.fromCharCode(v[X]);return P.join("")}function I(y){if(y.slice)return y.slice(0);var v=new Uint8Array(y.byteLength);return v.set(new Uint8Array(y)),v.buffer}function L(){return this.bodyUsed=!1,this._initBody=function(y){this.bodyUsed=this.bodyUsed,this._bodyInit=y,y?typeof y=="string"?this._bodyText=y:n.blob&&Blob.prototype.isPrototypeOf(y)?this._bodyBlob=y:n.formData&&FormData.prototype.isPrototypeOf(y)?this._bodyFormData=y:n.searchParams&&URLSearchParams.prototype.isPrototypeOf(y)?this._bodyText=y.toString():n.arrayBuffer&&n.blob&&a(y)?(this._bodyArrayBuffer=I(y.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):n.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(y)||c(y))?this._bodyArrayBuffer=I(y):this._bodyText=y=Object.prototype.toString.call(y):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof y=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n.searchParams&&URLSearchParams.prototype.isPrototypeOf(y)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n.blob&&(this.blob=function(){var y=b(this);if(y)return y;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 y=b(this);return y||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(n.blob)return this.blob().then(S);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var y=b(this);if(y)return y;if(this._bodyBlob)return w(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(_(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},n.formData&&(this.formData=function(){return this.text().then(qe)}),this.json=function(){return this.text().then(JSON.parse)},this}var M=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function H(y){var v=y.toUpperCase();return M.indexOf(v)>-1?v:y}function W(y,v){if(!(this instanceof W))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');v=v||{};var P=v.body;if(y instanceof W){if(y.bodyUsed)throw new TypeError("Already read");this.url=y.url,this.credentials=y.credentials,v.headers||(this.headers=new g(y.headers)),this.method=y.method,this.mode=y.mode,this.signal=y.signal,!P&&y._bodyInit!=null&&(P=y._bodyInit,y.bodyUsed=!0)}else this.url=String(y);if(this.credentials=v.credentials||this.credentials||"same-origin",(v.headers||!this.headers)&&(this.headers=new g(v.headers)),this.method=H(v.method||this.method||"GET"),this.mode=v.mode||this.mode||null,this.signal=v.signal||this.signal||function(){if("AbortController"in i){var G=new AbortController;return G.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&P)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(P),(this.method==="GET"||this.method==="HEAD")&&(v.cache==="no-store"||v.cache==="no-cache")){var X=/([?&])_=[^&]*/;if(X.test(this.url))this.url=this.url.replace(X,"$1_="+new Date().getTime());else{var ce=/\?/;this.url+=(ce.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}W.prototype.clone=function(){return new W(this,{body:this._bodyInit})};function qe(y){var v=new FormData;return y.trim().split("&").forEach(function(P){if(P){var X=P.split("="),ce=X.shift().replace(/\+/g," "),G=X.join("=").replace(/\+/g," ");v.append(decodeURIComponent(ce),decodeURIComponent(G))}}),v}function Tt(y){var v=new g,P=y.replace(/\r?\n[\t ]+/g," ");return P.split("\r").map(function(X){return X.indexOf(`
|
|
2
|
+
`)===0?X.substr(1,X.length):X}).forEach(function(X){var ce=X.split(":"),G=ce.shift().trim();if(G){var Jo=ce.join(":").trim();try{v.append(G,Jo)}catch(Rn){console.warn("Response "+Rn.message)}}}),v}L.call(W.prototype);function Ge(y,v){if(!(this instanceof Ge))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(v||(v={}),this.type="default",this.status=v.status===void 0?200:v.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=v.statusText===void 0?"":""+v.statusText,this.headers=new g(v.headers),this.url=v.url||"",this._initBody(y)}L.call(Ge.prototype),Ge.prototype.clone=function(){return new Ge(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new g(this.headers),url:this.url})},Ge.error=function(){var y=new Ge(null,{status:200,statusText:""});return y.ok=!1,y.status=0,y.type="error",y};var Rt=[301,302,303,307,308];Ge.redirect=function(y,v){if(Rt.indexOf(v)===-1)throw new RangeError("Invalid status code");return new Ge(null,{status:v,headers:{location:y}})},r.DOMException=i.DOMException;try{new r.DOMException}catch{r.DOMException=function(v,P){this.message=v,this.name=P;var X=Error(v);this.stack=X.stack},r.DOMException.prototype=Object.create(Error.prototype),r.DOMException.prototype.constructor=r.DOMException}function Ne(y,v){return new Promise(function(P,X){var ce=new W(y,v);if(ce.signal&&ce.signal.aborted)return X(new r.DOMException("Aborted","AbortError"));var G=new XMLHttpRequest;function Jo(){G.abort()}G.onload=function(){var ke={statusText:G.statusText,headers:Tt(G.getAllResponseHeaders()||"")};ce.url.indexOf("file://")===0&&(G.status<200||G.status>599)?ke.status=200:ke.status=G.status,ke.url="responseURL"in G?G.responseURL:ke.headers.get("X-Request-URL");var Sr="response"in G?G.response:G.responseText;setTimeout(function(){P(new Ge(Sr,ke))},0)},G.onerror=function(){setTimeout(function(){X(new TypeError("Network request failed"))},0)},G.ontimeout=function(){setTimeout(function(){X(new TypeError("Network request timed out"))},0)},G.onabort=function(){setTimeout(function(){X(new r.DOMException("Aborted","AbortError"))},0)};function Rn(ke){try{return ke===""&&i.location.href?i.location.href:ke}catch{return ke}}if(G.open(ce.method,Rn(ce.url),!0),ce.credentials==="include"?G.withCredentials=!0:ce.credentials==="omit"&&(G.withCredentials=!1),"responseType"in G&&(n.blob?G.responseType="blob":n.arrayBuffer&&(G.responseType="arraybuffer")),v&&typeof v.headers=="object"&&!(v.headers instanceof g||i.Headers&&v.headers instanceof i.Headers)){var As=[];Object.getOwnPropertyNames(v.headers).forEach(function(ke){As.push(p(ke)),G.setRequestHeader(ke,u(v.headers[ke]))}),ce.headers.forEach(function(ke,Sr){As.indexOf(Sr)===-1&&G.setRequestHeader(Sr,ke)})}else ce.headers.forEach(function(ke,Sr){G.setRequestHeader(Sr,ke)});ce.signal&&(ce.signal.addEventListener("abort",Jo),G.onreadystatechange=function(){G.readyState===4&&ce.signal.removeEventListener("abort",Jo)}),G.send(typeof ce._bodyInit>"u"?null:ce._bodyInit)})}return Ne.polyfill=!0,i.fetch||(i.fetch=Ne,i.Headers=g,i.Request=W,i.Response=Ge),r.Headers=g,r.Request=W,r.Response=Ge,r.fetch=Ne,r}({})})(oi);oi.fetch.ponyfill=!0;delete oi.fetch.polyfill;var Yr=ri.fetch?ri:oi;or=Yr.fetch;or.default=Yr.fetch;or.fetch=Yr.fetch;or.Headers=Yr.Headers;or.Request=Yr.Request;or.Response=Yr.Response;ll.exports=or});var Wt=Cr((Lx,sc)=>{sc.exports=ftGlobals.litClassMap});var Jd=Cr((oO,Qd)=>{Qd.exports=ftGlobals.litUnsafeHTML});var ys=Cr((Uw,wp)=>{wp.exports=ftGlobals.litRepeat});var Es=m(R());var jp=m($()),mt=m(K()),He=m(R());var ei=m(R()),Ls=m(K());var Eo;(function(t){t.clusteringHelperCreated="clustering-helper-created",t.mapAttachmentsUpdate="map-attachments-update",t.visibleTopicChange="visible-topic-change"})(Eo||(Eo={}));var at;(function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"})(at||(at={}));var tu=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},_n=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},In=Symbol("registerInterval"),ru=(0,ei.applyMixinOnce)(Symbol("toFtReaderComponent"),function(t){var e;class r extends t{constructor(){super(...arguments),this[e]=0}setReaderStateManager(n){this.clearStateManager(),this.stateManager=n,this.addStore(n.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var n;return(n=this.stateManager)===null||n===void 0?void 0:n.service}connectedCallback(){super.connectedCallback(),this[In]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[In]):this.dispatchEvent(new _n)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=In,tu([(0,Ls.state)()],r.prototype,"stateManager",void 0),r}),Qt=class extends ru(ei.FtLitElementRedux){};var me=m($()),be=m(K()),wn=m(R());var al=m($()),ee=m(R());var il=m($()),F=m(R());var $s=m($()),xe=m(R()),Ns=xe.FtCssVariableFactory.extend("--ft-ripple-color","",xe.designSystemVariables.colorContent),O={color:Ns,backgroundColor:xe.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ns),opacityContentOnSurfacePressed:xe.FtCssVariableFactory.external(xe.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:xe.FtCssVariableFactory.external(xe.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:xe.FtCssVariableFactory.external(xe.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:xe.FtCssVariableFactory.external(xe.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:xe.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},ks=xe.FtCssVariableFactory.extend("--ft-ripple-color","",xe.designSystemVariables.colorPrimary),Ps={color:ks,backgroundColor:xe.FtCssVariableFactory.extend("--ft-ripple-background-color","",ks)},Ds=xe.FtCssVariableFactory.extend("--ft-ripple-color","",xe.designSystemVariables.colorSecondary),Ms={color:Ds,backgroundColor:xe.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ds)},Bs=$s.css`
|
|
3
3
|
:host {
|
|
4
4
|
display: contents;
|
|
5
5
|
}
|
|
@@ -54,19 +54,19 @@
|
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
57
|
-
background-color: ${
|
|
57
|
+
background-color: ${Ms.backgroundColor};
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
61
|
-
background-color: ${
|
|
61
|
+
background-color: ${Ms.color};
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
65
|
-
background-color: ${
|
|
65
|
+
background-color: ${Ps.backgroundColor};
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
69
|
-
background-color: ${
|
|
69
|
+
background-color: ${Ps.color};
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
.ft-ripple .ft-ripple--background {
|
|
@@ -111,8 +111,8 @@
|
|
|
111
111
|
opacity: ${O.opacityContentOnSurfacePressed};
|
|
112
112
|
transform: translate(-50%, -50%) scale(1);
|
|
113
113
|
}
|
|
114
|
-
`;var lt=m($()),R=m(T());var Bt=m($(),1),Qt=t=>typeof t=="string"?(0,Bt.unsafeCSS)(t):t,o=class{static create(e,r,i,n){let a=c=>Qt(c??n),s=Bt.css`var(${Qt(e)}, ${a(n)})`;return s.name=e,s.description=r,s.category=i,s.defaultValue=n,s.defaultCssValue=a,s.set=c=>Ms(s,c??a(n)),s.get=c=>Bt.css`var(${Qt(e)}, ${a(c)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>n,s}static extend(e,r,i,n){let a=c=>i.get(c??n),s=Bt.css`var(${Qt(e)}, ${a(n)})`;return s.name=e,s.description=r,s.category=i.category,s.fallbackVariable=i,s.defaultValue=n,s.defaultCssValue=a,s.set=c=>Ms(s,c??a(n)),s.get=c=>Bt.css`var(${Qt(e)}, ${a(c)})`,s.breadcrumb=()=>[i.name,...i.breadcrumb()],s.lastResortDefaultValue=()=>n??i.lastResortDefaultValue(),s}static external(e,r){let i=a=>e.defaultCssValue(a),n=Bt.css`var(${Qt(e.name)}, ${i(e.defaultValue)})`;return n.name=e.name,n.category=e.category,n.fallbackVariable=e.fallbackVariable,n.defaultValue=e.defaultValue,n.context=r,n.defaultCssValue=i,n.set=a=>e.set(a),n.get=a=>Bt.css`var(${Qt(e.name)}, ${i(a)})`,n.breadcrumb=()=>e.breadcrumb(),n.lastResortDefaultValue=()=>e.lastResortDefaultValue(),n}};function Ms(t,e){return Qt(`${t.name}: ${e}`)}var l={colorWhite:o.create("--ftds-color-white","","COLOR","#ffffff"),colorGray0:o.create("--ftds-color-gray-0","","COLOR","#71718e"),colorGray10:o.create("--ftds-color-gray-10","","COLOR","#fbfbfc"),colorGray20:o.create("--ftds-color-gray-20","","COLOR","#f2f2f5"),colorGray30:o.create("--ftds-color-gray-30","","COLOR","#e9e9ed"),colorGray40:o.create("--ftds-color-gray-40","","COLOR","#e0e0e6"),colorGray50:o.create("--ftds-color-gray-50","","COLOR","#cdcdd7"),colorGray60:o.create("--ftds-color-gray-60","","COLOR","#bbbbc9"),colorGray70:o.create("--ftds-color-gray-70","","COLOR","#a8a8ba"),colorGray80:o.create("--ftds-color-gray-80","","COLOR","#9696ab"),colorGray90:o.create("--ftds-color-gray-90","","COLOR","#83839d"),colorGray100:o.create("--ftds-color-gray-100","","COLOR","#62627c"),colorGray200:o.create("--ftds-color-gray-200","","COLOR","#545469"),colorGray300:o.create("--ftds-color-gray-300","","COLOR","#454557"),colorGray400:o.create("--ftds-color-gray-400","","COLOR","#363644"),colorGray500:o.create("--ftds-color-gray-500","","COLOR","#282832"),colorGray600:o.create("--ftds-color-gray-600","","COLOR","#19191f"),colorGray700:o.create("--ftds-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:o.create("--ftds-color-brand-0","","COLOR","#9d207b"),colorBrand10:o.create("--ftds-color-brand-10","","COLOR","#f7edf4"),colorBrand20:o.create("--ftds-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:o.create("--ftds-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:o.create("--ftds-color-brand-40","","COLOR","#d395c2"),colorBrand50:o.create("--ftds-color-brand-50","","COLOR","#c778b1"),colorBrand60:o.create("--ftds-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:o.create("--ftds-color-brand-70","","COLOR","#ae3e90"),colorBrand100:o.create("--ftds-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:o.create("--ftds-color-brand-200","","COLOR","#78185e"),colorBrand300:o.create("--ftds-color-brand-300","","COLOR","#62144d"),colorBrand400:o.create("--ftds-color-brand-400","","COLOR","#4d103c"),colorBrand500:o.create("--ftds-color-brand-500","","COLOR","#380b2c"),colorBrand600:o.create("--ftds-color-brand-600","","COLOR","#23071b"),colorBrand700:o.create("--ftds-color-brand-700","","COLOR","#0d030b"),colorCyan0:o.create("--ftds-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:o.create("--ftds-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:o.create("--ftds-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:o.create("--ftds-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:o.create("--ftds-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:o.create("--ftds-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:o.create("--ftds-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:o.create("--ftds-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:o.create("--ftds-color-cyan-100","","COLOR","#0c849c"),colorCyan200:o.create("--ftds-color-cyan-200","","COLOR","#0a7085"),colorCyan300:o.create("--ftds-color-cyan-300","","COLOR","#085c6d"),colorCyan400:o.create("--ftds-color-cyan-400","","COLOR","#074856"),colorCyan500:o.create("--ftds-color-cyan-500","","COLOR","#05343e"),colorCyan600:o.create("--ftds-color-cyan-600","","COLOR","#032127"),colorCyan700:o.create("--ftds-color-cyan-700","","COLOR","#010d0f"),colorGreen0:o.create("--ftds-color-green-0","","COLOR","#21a274"),colorGreen10:o.create("--ftds-color-green-10","","COLOR","#edf7f3"),colorGreen20:o.create("--ftds-color-green-20","","COLOR","#cfebe1"),colorGreen30:o.create("--ftds-color-green-30","","COLOR","#b2dfcf"),colorGreen40:o.create("--ftds-color-green-40","","COLOR","#95d3bd"),colorGreen50:o.create("--ftds-color-green-50","","COLOR","#78c7ab"),colorGreen60:o.create("--ftds-color-green-60","","COLOR","#5bba98"),colorGreen70:o.create("--ftds-color-green-70","","COLOR","#3eae86"),colorGreen100:o.create("--ftds-color-green-100","","COLOR","#1d8d65"),colorGreen200:o.create("--ftds-color-green-200","","COLOR","#187856"),colorGreen300:o.create("--ftds-color-green-300","","COLOR","#146246"),colorGreen400:o.create("--ftds-color-green-400","","COLOR","#104d37"),colorGreen500:o.create("--ftds-color-green-500","","COLOR","#0b3828"),colorGreen600:o.create("--ftds-color-green-600","","COLOR","#072319"),colorGreen700:o.create("--ftds-color-green-700","","COLOR","#030d0a"),colorOrange0:o.create("--ftds-color-orange-0","","COLOR","#F2700D"),colorOrange10:o.create("--ftds-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:o.create("--ftds-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:o.create("--ftds-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:o.create("--ftds-color-orange-40","","COLOR","#FECB90"),colorOrange50:o.create("--ftds-color-orange-50","","COLOR","#FCB76E"),colorOrange60:o.create("--ftds-color-orange-60","","COLOR","#F9A34D"),colorOrange70:o.create("--ftds-color-orange-70","","COLOR","#F68B2C"),colorOrange100:o.create("--ftds-color-orange-100","","COLOR","#D35909"),colorOrange200:o.create("--ftds-color-orange-200","","COLOR","#B74706"),colorOrange300:o.create("--ftds-color-orange-300","","COLOR","#913503"),colorOrange400:o.create("--ftds-color-orange-400","","COLOR","#6F2601"),colorOrange500:o.create("--ftds-color-orange-500","","COLOR","#4D1800"),colorOrange600:o.create("--ftds-color-orange-600","","COLOR","#330F00"),colorOrange700:o.create("--ftds-color-orange-700","","COLOR","#140600"),colorRed0:o.create("--ftds-color-red-0","","COLOR","#b40e2c"),colorRed10:o.create("--ftds-color-red-10","","COLOR","#f9ebed"),colorRed20:o.create("--ftds-color-red-20","","COLOR","#efcbd2"),colorRed30:o.create("--ftds-color-red-30","","COLOR","#e5acb6"),colorRed40:o.create("--ftds-color-red-40","","COLOR","#db8c9b"),colorRed50:o.create("--ftds-color-red-50","","COLOR","#d16d7f"),colorRed60:o.create("--ftds-color-red-60","","COLOR","#c84d63"),colorRed70:o.create("--ftds-color-red-70","","COLOR","#be2e48"),colorRed100:o.create("--ftds-color-red-100","","COLOR","#9c0c26"),colorRed200:o.create("--ftds-color-red-200","","COLOR","#850a20"),colorRed300:o.create("--ftds-color-red-300","","COLOR","#6d081b"),colorRed400:o.create("--ftds-color-red-400","","COLOR","#560715"),colorRed500:o.create("--ftds-color-red-500","","COLOR","#3e050f"),colorRed600:o.create("--ftds-color-red-600","","COLOR","#270309"),colorRed700:o.create("--ftds-color-red-700","","COLOR","#0f0104"),colorYellow0:o.create("--ftds-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:o.create("--ftds-color-yellow-10","","COLOR","#fefae9"),colorYellow20:o.create("--ftds-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:o.create("--ftds-color-yellow-30","","COLOR","#faedaa"),colorYellow40:o.create("--ftds-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:o.create("--ftds-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:o.create("--ftds-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:o.create("--ftds-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:o.create("--ftds-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:o.create("--ftds-color-yellow-200","","COLOR","#b3970a"),colorYellow300:o.create("--ftds-color-yellow-300","","COLOR","#947c08"),colorYellow400:o.create("--ftds-color-yellow-400","","COLOR","#746206"),colorYellow500:o.create("--ftds-color-yellow-500","","COLOR","#554705"),colorYellow600:o.create("--ftds-color-yellow-600","","COLOR","#352d03"),colorYellow700:o.create("--ftds-color-yellow-700","","COLOR","#161201"),colorUltramarine0:o.create("--ftds-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:o.create("--ftds-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:o.create("--ftds-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:o.create("--ftds-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:o.create("--ftds-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:o.create("--ftds-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:o.create("--ftds-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:o.create("--ftds-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:o.create("--ftds-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:o.create("--ftds-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:o.create("--ftds-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:o.create("--ftds-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:o.create("--ftds-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:o.create("--ftds-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:o.create("--ftds-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:o.create("--ftds-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:o.create("--ftds-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:o.create("--ftds-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:o.create("--ftds-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:o.create("--ftds-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:o.create("--ftds-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:o.create("--ftds-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:o.create("--ftds-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:o.create("--ftds-color-avocado-100","","COLOR","#84A423"),colorAvocado200:o.create("--ftds-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:o.create("--ftds-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:o.create("--ftds-color-avocado-400","","COLOR","#495B13"),colorAvocado500:o.create("--ftds-color-avocado-500","","COLOR","#35420E"),colorAvocado600:o.create("--ftds-color-avocado-600","","COLOR","#212A09"),colorAvocado700:o.create("--ftds-color-avocado-700","","COLOR","#0E1104"),colorBrown0:o.create("--ftds-color-brown-0","","COLOR","#B26F4D"),colorBrown10:o.create("--ftds-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:o.create("--ftds-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:o.create("--ftds-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:o.create("--ftds-color-brown-40","","COLOR","#DABAAA"),colorBrown50:o.create("--ftds-color-brown-50","","COLOR","#D0A792"),colorBrown60:o.create("--ftds-color-brown-60","","COLOR","#C6947B"),colorBrown70:o.create("--ftds-color-brown-70","","COLOR","#BC8264"),colorBrown100:o.create("--ftds-color-brown-100","","COLOR","#9B6143"),colorBrown200:o.create("--ftds-color-brown-200","","COLOR","#845239"),colorBrown300:o.create("--ftds-color-brown-300","","COLOR","#6D442F"),colorBrown400:o.create("--ftds-color-brown-400","","COLOR","#553525"),colorBrown500:o.create("--ftds-color-brown-500","","COLOR","#3E271B"),colorBrown600:o.create("--ftds-color-brown-600","","COLOR","#271811"),colorBrown700:o.create("--ftds-color-brown-700","","COLOR","#100A07"),spacing1:o.create("--ftds-spacing-1","","SIZE","0.25rem"),spacing2:o.create("--ftds-spacing-2","","SIZE","calc(0.25rem*2)"),spacing3:o.create("--ftds-spacing-3","","SIZE","calc(0.25rem*3)"),spacing4:o.create("--ftds-spacing-4","","SIZE","calc(0.25rem*4)"),spacing5:o.create("--ftds-spacing-5","","SIZE","calc(0.25rem*5)"),spacing6:o.create("--ftds-spacing-6","","SIZE","calc(0.25rem*6)"),spacing8:o.create("--ftds-spacing-8","","SIZE","calc(0.25rem*8)"),spacing10:o.create("--ftds-spacing-10","","SIZE","calc(0.25rem*10)"),spacing12:o.create("--ftds-spacing-12","","SIZE","calc(0.25rem*12)"),spacing16:o.create("--ftds-spacing-16","","SIZE","calc(0.25rem*16)"),spacing20:o.create("--ftds-spacing-20","","SIZE","calc(0.25rem*20)"),spacing24:o.create("--ftds-spacing-24","","SIZE","calc(0.25rem*24)"),spacing28:o.create("--ftds-spacing-28","","SIZE","calc(0.25rem*28)"),spacing32:o.create("--ftds-spacing-32","","SIZE","calc(0.25rem*32)"),spacing05:o.create("--ftds-spacing-0-5","","SIZE","calc(0.25rem*0.5)"),borderRadiusS:o.create("--ftds-border-radius-s","","SIZE","4px"),borderRadiusM:o.create("--ftds-border-radius-m","","SIZE","8px"),borderRadiusL:o.create("--ftds-border-radius-l","","SIZE","12px"),borderRadiusXl:o.create("--ftds-border-radius-xl","","SIZE","16px"),borderRadiusPill:o.create("--ftds-border-radius-pill","","SIZE","999px"),borderRadiusRound:o.create("--ftds-border-radius-round","","SIZE","50%"),iconSize1:o.create("--ftds-icon-size-1","","SIZE","0.75rem"),iconSize2:o.create("--ftds-icon-size-2","","SIZE","1rem"),iconSize3:o.create("--ftds-icon-size-3","","SIZE","1.25rem"),iconSize4:o.create("--ftds-icon-size-4","","SIZE","1.5rem"),iconSize5:o.create("--ftds-icon-size-5","","SIZE","2rem"),iconSize6:o.create("--ftds-icon-size-6","","SIZE","3rem"),opacity0:o.create("--ftds-opacity-0","","NUMBER","0"),opacity8:o.create("--ftds-opacity-8","","NUMBER","0.08"),opacity12:o.create("--ftds-opacity-12","","NUMBER","0.12"),opacity16:o.create("--ftds-opacity-16","","NUMBER","0.16"),opacity24:o.create("--ftds-opacity-24","","NUMBER","0.24"),opacity32:o.create("--ftds-opacity-32","","NUMBER","0.32"),opacity40:o.create("--ftds-opacity-40","","NUMBER","0.4"),opacity48:o.create("--ftds-opacity-48","","NUMBER","0.48"),opacity80:o.create("--ftds-opacity-80","","NUMBER","0.8"),shadowElevation01:o.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:o.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:o.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:o.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:o.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:o.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:o.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:o.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:o.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)")},Tn={fontFamily:o.create("--ftds-typography-display-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-display-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-display-line-height","","SIZE","1.2"),fontSize:o.create("--ftds-typography-display-font-size","","SIZE","2.5rem"),letterSpacing:o.create("--ftds-typography-display-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ftds-typography-display-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-display-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-display-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-display-text-case","","UNKNOWN","none")},In={fontFamily:o.create("--ftds-typography-title-1-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-title-1-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-title-1-line-height","","SIZE","1.2"),fontSize:o.create("--ftds-typography-title-1-font-size","","SIZE","1.5rem"),letterSpacing:o.create("--ftds-typography-title-1-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ftds-typography-title-1-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-title-1-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-title-1-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-title-1-text-case","","UNKNOWN","none")},_n={fontFamily:o.create("--ftds-typography-title-2-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-title-2-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-title-2-line-height","","SIZE","1.2"),fontSize:o.create("--ftds-typography-title-2-font-size","","SIZE","1.25rem"),letterSpacing:o.create("--ftds-typography-title-2-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ftds-typography-title-2-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-title-2-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-title-2-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-title-2-text-case","","UNKNOWN","none")},Ln={fontFamily:o.create("--ftds-typography-title-3-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-title-3-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-title-3-line-height","","SIZE","1.2"),fontSize:o.create("--ftds-typography-title-3-font-size","","SIZE","1.125rem"),letterSpacing:o.create("--ftds-typography-title-3-letter-spacing","","SIZE","-0.01em"),paragraphSpacing:o.create("--ftds-typography-title-3-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-title-3-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-title-3-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-title-3-text-case","","UNKNOWN","none")},Nn={fontFamily:o.create("--ftds-typography-body-1-regular-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-1-regular-font-weight","","UNKNOWN","400"),lineHeight:o.create("--ftds-typography-body-1-regular-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-1-regular-font-size","","SIZE","1rem"),letterSpacing:o.create("--ftds-typography-body-1-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-1-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-1-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-1-regular-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-1-regular-text-case","","UNKNOWN","none")},kn={fontFamily:o.create("--ftds-typography-body-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-1-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-body-1-medium-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-1-medium-font-size","","SIZE","1rem"),letterSpacing:o.create("--ftds-typography-body-1-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-1-medium-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-1-medium-text-case","","UNKNOWN","none")},Pn={fontFamily:o.create("--ftds-typography-body-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-body-1-semibold-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-1-semibold-font-size","","SIZE","1rem"),letterSpacing:o.create("--ftds-typography-body-1-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-1-semibold-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-1-semibold-text-case","","UNKNOWN","none")},Dn={fontFamily:o.create("--ftds-typography-body-2-regular-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-2-regular-font-weight","","UNKNOWN","400"),lineHeight:o.create("--ftds-typography-body-2-regular-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-2-regular-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-body-2-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-2-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-2-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-2-regular-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-2-regular-text-case","","UNKNOWN","none")},Or={fontFamily:o.create("--ftds-typography-body-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-2-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-body-2-medium-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-2-medium-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-body-2-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-2-medium-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-2-medium-text-case","","UNKNOWN","none")},eu={fontFamily:o.create("--ftds-typography-body-2-medium-underline-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-2-medium-underline-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-body-2-medium-underline-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-2-medium-underline-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-body-2-medium-underline-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-2-medium-underline-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-2-medium-underline-paragraph-indent","","UNKNOWN","0"),textCase:o.create("--ftds-typography-body-2-medium-underline-text-case","","UNKNOWN","none"),textDecoration:o.create("--ftds-typography-body-2-medium-underline-text-decoration","","UNKNOWN","underline")},Mn={fontFamily:o.create("--ftds-typography-body-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-body-2-semibold-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-2-semibold-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-body-2-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-2-semibold-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-2-semibold-text-case","","UNKNOWN","none")},$n={fontFamily:o.create("--ftds-typography-label-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-label-1-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-label-1-medium-line-height","","SIZE","110%"),fontSize:o.create("--ftds-typography-label-1-medium-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-label-1-medium-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ftds-typography-label-1-medium-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ftds-typography-label-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-label-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-label-1-medium-text-decoration","","UNKNOWN","none")},Bn={fontFamily:o.create("--ftds-typography-label-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-label-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-label-1-semibold-line-height","","SIZE","110%"),fontSize:o.create("--ftds-typography-label-1-semibold-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-label-1-semibold-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ftds-typography-label-1-semibold-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ftds-typography-label-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-label-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-label-1-semibold-text-decoration","","UNKNOWN","none")},Fn={fontFamily:o.create("--ftds-typography-label-1-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-label-1-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ftds-typography-label-1-bold-line-height","","SIZE","110%"),fontSize:o.create("--ftds-typography-label-1-bold-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-label-1-bold-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ftds-typography-label-1-bold-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ftds-typography-label-1-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-label-1-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-label-1-bold-text-decoration","","UNKNOWN","none")},Un={fontFamily:o.create("--ftds-typography-label-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-label-2-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-label-2-medium-line-height","","SIZE","110%"),fontSize:o.create("--ftds-typography-label-2-medium-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ftds-typography-label-2-medium-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ftds-typography-label-2-medium-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ftds-typography-label-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-label-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-label-2-medium-text-decoration","","UNKNOWN","none")},zn={fontFamily:o.create("--ftds-typography-label-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-label-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-label-2-semibold-line-height","","SIZE","110%"),fontSize:o.create("--ftds-typography-label-2-semibold-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ftds-typography-label-2-semibold-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ftds-typography-label-2-semibold-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ftds-typography-label-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-label-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-label-2-semibold-text-decoration","","UNKNOWN","none")},Hn={fontFamily:o.create("--ftds-typography-label-2-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-label-2-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ftds-typography-label-2-bold-line-height","","SIZE","110%"),fontSize:o.create("--ftds-typography-label-2-bold-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ftds-typography-label-2-bold-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ftds-typography-label-2-bold-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ftds-typography-label-2-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-label-2-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-label-2-bold-text-decoration","","UNKNOWN","none")},Wn={fontFamily:o.create("--ftds-typography-caption-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-1-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-caption-1-medium-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-1-medium-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ftds-typography-caption-1-medium-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-1-medium-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-1-medium-text-decoration","","UNKNOWN","none")},Gn={fontFamily:o.create("--ftds-typography-caption-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-caption-1-semibold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-1-semibold-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ftds-typography-caption-1-semibold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-1-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-1-semibold-text-decoration","","UNKNOWN","none")},Vn={fontFamily:o.create("--ftds-typography-caption-1-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-1-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ftds-typography-caption-1-bold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-1-bold-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ftds-typography-caption-1-bold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-1-bold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-1-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-1-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-1-bold-text-decoration","","UNKNOWN","none")},Jt={fontFamily:o.create("--ftds-typography-caption-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-2-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-caption-2-medium-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-2-medium-font-size","","SIZE","0.6875rem"),letterSpacing:o.create("--ftds-typography-caption-2-medium-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-2-medium-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-2-medium-text-decoration","","UNKNOWN","none")},jn={fontFamily:o.create("--ftds-typography-caption-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-caption-2-semibold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-2-semibold-font-size","","SIZE","0.6875rem"),letterSpacing:o.create("--ftds-typography-caption-2-semibold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-2-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-2-semibold-text-decoration","","UNKNOWN","none")},Kn={fontFamily:o.create("--ftds-typography-caption-2-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-2-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ftds-typography-caption-2-bold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-2-bold-font-size","","SIZE","0.6875rem"),letterSpacing:o.create("--ftds-typography-caption-2-bold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-2-bold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-2-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-2-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-2-bold-text-decoration","","UNKNOWN","none")},Zn={fontFamily:o.create("--ftds-typography-caption-3-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-3-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-caption-3-medium-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-3-medium-font-size","","SIZE","0.625rem"),letterSpacing:o.create("--ftds-typography-caption-3-medium-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-3-medium-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-3-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-3-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-3-medium-text-decoration","","UNKNOWN","none")},qn={fontFamily:o.create("--ftds-typography-caption-3-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-3-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-caption-3-semibold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-3-semibold-font-size","","SIZE","0.625rem"),letterSpacing:o.create("--ftds-typography-caption-3-semibold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-3-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-3-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-3-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-3-semibold-text-decoration","","UNKNOWN","none")},Yn={fontFamily:o.create("--ftds-typography-caption-3-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-3-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ftds-typography-caption-3-bold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-3-bold-font-size","","SIZE","0.625rem"),letterSpacing:o.create("--ftds-typography-caption-3-bold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-3-bold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-3-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-3-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-3-bold-text-decoration","","UNKNOWN","none")},wr={display:Tn,"title-1":In,"title-2":_n,"title-3":Ln,"body-1-regular":Nn,"body-1-medium":kn,"body-1-semibold":Pn,"body-2-regular":Dn,"body-2-medium":Or,"body-2-medium-underline":eu,"body-2-semibold":Mn,"label-1-medium":$n,"label-1-semibold":Bn,"label-1-bold":Fn,"label-2-medium":Un,"label-2-semibold":zn,"label-2-bold":Hn,"caption-1-medium":Wn,"caption-1-semibold":Gn,"caption-1-bold":Vn,"caption-2-medium":Jt,"caption-2-semibold":jn,"caption-2-bold":Kn,"caption-3-medium":Zn,"caption-3-semibold":qn,"caption-3-bold":Yn};var d={backgroundActionPrimary:o.extend("--ftds-background-action-primary","Used as backgorund of primary action components.",l.colorBrand0),backgroundErrorSubtle:o.extend("--ftds-background-error-subtle","Used as background of subtle error components.",l.colorRed10),backgroundInfoSubtle:o.extend("--ftds-background-info-subtle","Used as background of subtle information components.",l.colorCyan10),backgroundWarningSubtle:o.extend("--ftds-background-warning-subtle","Used as background of subtle information components.",l.colorOrange10),backgroundSuccessSubtle:o.extend("--ftds-background-success-subtle","Used as background of subtle success components.",l.colorGreen10),backgroundGlobalSurface:o.extend("--ftds-background-global-surface","Used as app background.",l.colorWhite),backgroundGlobalOnSurface:o.extend("--ftds-background-global-on-surface","Used as background on element on the base background, like cards.",l.colorGray10),backgroundGlobalOnSurfaceDark:o.extend("--ftds-background-global-on-surface-dark","Used as background on element that need background separation.",l.colorGray30),contentActionPrimary:o.extend("--ftds-content-action-primary","Used on label of primary action on light surface.",l.colorBrand0),contentWarningPrimary:o.extend("--ftds-content-warning-primary","Used on label of warning messages on light surface.",l.colorOrange200),contentWarningIconOnly:o.extend("--ftds-content-warning-icon-only","Used on warning status icons alone",l.colorOrange0),contentErrorPrimary:o.extend("--ftds-content-error-primary","Used on label of error messages on light surface.",l.colorRed0),contentErrorIconOnly:o.extend("--ftds-content-error-icon-only","Used on error status icons alone",l.colorRed70),contentInfoPrimary:o.extend("--ftds-content-info-primary","Used on label of information messages on light surface.",l.colorCyan200),contentInfoIconOnly:o.extend("--ftds-content-info-icon-only","Used on info status icons alone",l.colorCyan0),contentSuccessPrimary:o.extend("--ftds-content-success-primary","Used on label of success messages on light surface.",l.colorGreen200),contentSuccessIconOnly:o.extend("--ftds-content-success-icon-only","Used on success status icons alone",l.colorGreen0),contentGlobalPrimary:o.extend("--ftds-content-global-primary","Used for main content on the page.",l.colorGray500),contentGlobalSecondary:o.extend("--ftds-content-global-secondary",`Used for secondary content, often paired with primary content.
|
|
115
|
-
Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",l.colorGray0),contentGlobalOnColor:o.extend("--ftds-content-global-on-color","Used for content on a dominant color.",l.colorWhite),borderActionPrimary:o.extend("--ftds-border-action-primary","Used as border for primary action components.",l.colorBrand0),borderActionFocusRing:o.extend("--ftds-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",l.colorCyan0),borderWarningPrimary:o.extend("--ftds-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",l.colorOrange200),borderWarningSubtle:o.extend("--ftds-border-warning-subtle","Used as border for warning components.",l.colorOrange30),borderSuccessPrimary:o.extend("--ftds-border-success-primary","Used as border for success buttons.",l.colorGreen200),borderSuccessSubtle:o.extend("--ftds-border-success-subtle","Used as border for success components.",l.colorGreen30),borderErrorPrimary:o.extend("--ftds-border-error-primary","Used as border for text fields in error states.",l.colorRed0),borderErrorSubtle:o.extend("--ftds-border-error-subtle","Used as border for error components.",l.colorRed30),borderInfoPrimary:o.extend("--ftds-border-info-primary","Used as border for buttons in info color.",l.colorCyan200),borderInfoSubtle:o.extend("--ftds-border-info-subtle","Used as border for information components.",l.colorCyan30),borderGlobalPrimary:o.extend("--ftds-border-global-primary","Used as border for element like input.",l.colorGray50),borderGlobalSubtle:o.extend("--ftds-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",l.colorGray30),borderInputPrimary:o.extend("--ftds-border-input-primary","Used as border for checkboxes and radio buttons",l.colorGray80),borderNeutralPrimary:o.extend("--ftds-border-neutral-primary","Used as border for neutral secondary buttons",l.colorGray200)};var f={largeHeight:o.create("--ftds-button-large-height","","SIZE","40px"),largeHorizontalPadding:o.extend("--ftds-button-large-horizontal-padding","",l.spacing4),largeGap:o.extend("--ftds-button-large-gap","",l.spacing2),largeBorderRadius:o.extend("--ftds-button-large-border-radius","",l.borderRadiusS),largeIconSize:o.extend("--ftds-button-large-icon-size","",l.iconSize3),largeBorderWidth:o.create("--ftds-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:o.create("--ftds-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:o.create("--ftds-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:o.create("--ftds-button-large-icon-only-width","","SIZE","40px"),mediumHeight:o.create("--ftds-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:o.extend("--ftds-button-medium-horizontal-padding","",l.spacing3),mediumGap:o.extend("--ftds-button-medium-gap","",l.spacing2),mediumBorderRadius:o.extend("--ftds-button-medium-border-radius","",l.borderRadiusS),mediumIconSize:o.extend("--ftds-button-medium-icon-size","",l.iconSize2),mediumBorderWidth:o.create("--ftds-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:o.create("--ftds-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:o.create("--ftds-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:o.create("--ftds-button-medium-icon-only-width","","SIZE","30px"),smallHeight:o.create("--ftds-button-small-height","","SIZE","20px"),smallHorizontalPadding:o.extend("--ftds-button-small-horizontal-padding","",l.spacing2),smallGap:o.extend("--ftds-button-small-gap","",l.spacing1),smallBorderRadius:o.extend("--ftds-button-small-border-radius","",l.borderRadiusS),smallIconSize:o.extend("--ftds-button-small-icon-size","",l.iconSize1),smallBorderWidth:o.create("--ftds-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:o.create("--ftds-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:o.create("--ftds-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:o.create("--ftds-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:o.create("--ftds-button-x-small-height","","SIZE","16px"),xSmallIconSize:o.extend("--ftds-button-x-small-icon-size","",l.iconSize1),xSmallFocusOutlineOffset:o.create("--ftds-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:o.create("--ftds-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:o.create("--ftds-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:o.extend("--ftds-button-round-border-radius","",l.borderRadiusPill),primaryBrandBackgroundColor:o.extend("--ftds-button-primary-brand-background-color","",d.backgroundActionPrimary),primaryBrandColor:o.extend("--ftds-button-primary-brand-color","",d.contentGlobalOnColor),primaryBrandIconColor:o.extend("--ftds-button-primary-brand-icon-color","",d.contentGlobalOnColor),primaryBrandStateLayerColor:o.extend("--ftds-button-primary-brand-state-layer-color","",d.contentGlobalOnColor),primaryBrandHoverStateLayerOpacity:o.extend("--ftds-button-primary-brand-hover-state-layer-opacity","",l.opacity16),primaryBrandFocusStateLayerOpacity:o.extend("--ftds-button-primary-brand-focus-state-layer-opacity","",l.opacity16),primaryBrandActiveStateLayerOpacity:o.extend("--ftds-button-primary-brand-active-state-layer-opacity","",l.opacity24),primaryBrandDisabledComponentOpacity:o.extend("--ftds-button-primary-brand-disabled-component-opacity","",l.opacity40),focusFocusRingColor:o.extend("--ftds-button-focus-focus-ring-color","",d.borderActionFocusRing),tertiaryBrandBackgroundColor:o.create("--ftds-button-tertiary-brand-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryBrandColor:o.extend("--ftds-button-tertiary-brand-color","",d.contentActionPrimary),tertiaryBrandIconColor:o.extend("--ftds-button-tertiary-brand-icon-color","",d.contentActionPrimary),tertiaryBrandStateLayerColor:o.extend("--ftds-button-tertiary-brand-state-layer-color","",d.contentActionPrimary),tertiaryBrandHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-brand-hover-state-layer-opacity","",l.opacity8),tertiaryBrandFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-brand-focus-state-layer-opacity","",l.opacity8),tertiaryBrandActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-brand-active-state-layer-opacity","",l.opacity16),tertiaryBrandDisabledComponentOpacity:o.extend("--ftds-button-tertiary-brand-disabled-component-opacity","",l.opacity40),tertiaryInfoBackgroundColor:o.create("--ftds-button-tertiary-info-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryInfoColor:o.extend("--ftds-button-tertiary-info-color","",d.contentInfoPrimary),tertiaryInfoIconColor:o.extend("--ftds-button-tertiary-info-icon-color","",d.contentInfoPrimary),tertiaryInfoStateLayerColor:o.extend("--ftds-button-tertiary-info-state-layer-color","",d.contentInfoPrimary),tertiaryInfoFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-info-focus-state-layer-opacity","",l.opacity8),tertiaryInfoHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-info-hover-state-layer-opacity","",l.opacity8),tertiaryInfoActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-info-active-state-layer-opacity","",l.opacity16),tertiaryInfoDisabledComponentOpacity:o.extend("--ftds-button-tertiary-info-disabled-component-opacity","",l.opacity40),tertiarySuccessBackgroundColor:o.create("--ftds-button-tertiary-success-background-color","","COLOR","rgba(0,0,0,0)"),tertiarySuccessColor:o.extend("--ftds-button-tertiary-success-color","",d.contentSuccessPrimary),tertiarySuccessIconColor:o.extend("--ftds-button-tertiary-success-icon-color","",d.contentSuccessPrimary),tertiarySuccessStateLayerColor:o.extend("--ftds-button-tertiary-success-state-layer-color","",d.contentSuccessPrimary),tertiarySuccessHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-success-hover-state-layer-opacity","",l.opacity8),tertiarySuccessFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-success-focus-state-layer-opacity","",l.opacity8),tertiarySuccessActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-success-active-state-layer-opacity","",l.opacity16),tertiarySuccessDisabledComponentOpacity:o.extend("--ftds-button-tertiary-success-disabled-component-opacity","",l.opacity40),tertiaryWarningBackgroundColor:o.create("--ftds-button-tertiary-warning-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryWarningColor:o.extend("--ftds-button-tertiary-warning-color","",d.contentWarningPrimary),tertiaryWarningIconColor:o.extend("--ftds-button-tertiary-warning-icon-color","",d.contentWarningPrimary),tertiaryWarningStateLayerColor:o.extend("--ftds-button-tertiary-warning-state-layer-color","",d.contentWarningPrimary),tertiaryWarningHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-warning-hover-state-layer-opacity","",l.opacity8),tertiaryWarningFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-warning-focus-state-layer-opacity","",l.opacity8),tertiaryWarningActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-warning-active-state-layer-opacity","",l.opacity16),tertiaryWarningDisabledComponentOpacity:o.extend("--ftds-button-tertiary-warning-disabled-component-opacity","",l.opacity40),tertiaryErrorBackgroundColor:o.create("--ftds-button-tertiary-error-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryErrorColor:o.extend("--ftds-button-tertiary-error-color","",d.contentErrorPrimary),tertiaryErrorIconColor:o.extend("--ftds-button-tertiary-error-icon-color","",d.contentErrorPrimary),tertiaryErrorStateLayerColor:o.extend("--ftds-button-tertiary-error-state-layer-color","",d.contentErrorPrimary),tertiaryErrorHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-error-hover-state-layer-opacity","",l.opacity8),tertiaryErrorFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-error-focus-state-layer-opacity","",l.opacity8),tertiaryErrorActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-error-active-state-layer-opacity","",l.opacity16),tertiaryErrorDisabledComponentOpacity:o.extend("--ftds-button-tertiary-error-disabled-component-opacity","",l.opacity40),tertiaryNeutralBackgroundColor:o.create("--ftds-button-tertiary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryNeutralIconColor:o.extend("--ftds-button-tertiary-neutral-icon-color","",d.contentGlobalSecondary),tertiaryNeutralColor:o.extend("--ftds-button-tertiary-neutral-color","",d.contentGlobalSecondary),tertiaryNeutralStateLayerColor:o.extend("--ftds-button-tertiary-neutral-state-layer-color","",d.contentGlobalSecondary),tertiaryNeutralHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-neutral-hover-state-layer-opacity","",l.opacity8),tertiaryNeutralFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-neutral-focus-state-layer-opacity","",l.opacity8),tertiaryNeutralActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-neutral-active-state-layer-opacity","",l.opacity16),tertiaryNeutralDisabledComponentOpacity:o.extend("--ftds-button-tertiary-neutral-disabled-component-opacity","",l.opacity40),secondaryBrandBackgroundColor:o.create("--ftds-button-secondary-brand-background-color","","COLOR","rgba(0,0,0,0)"),secondaryBrandColor:o.extend("--ftds-button-secondary-brand-color","",d.contentActionPrimary),secondaryBrandIconColor:o.extend("--ftds-button-secondary-brand-icon-color","",d.contentActionPrimary),secondaryBrandStateLayerColor:o.extend("--ftds-button-secondary-brand-state-layer-color","",d.contentActionPrimary),secondaryBrandHoverStateLayerOpacity:o.extend("--ftds-button-secondary-brand-hover-state-layer-opacity","",l.opacity8),secondaryBrandFocusStateLayerOpacity:o.extend("--ftds-button-secondary-brand-focus-state-layer-opacity","",l.opacity8),secondaryBrandActiveStateLayerOpacity:o.extend("--ftds-button-secondary-brand-active-state-layer-opacity","",l.opacity16),secondaryBrandDisabledComponentOpacity:o.extend("--ftds-button-secondary-brand-disabled-component-opacity","",l.opacity40),secondaryBrandBorderColor:o.extend("--ftds-button-secondary-brand-border-color","",d.borderActionPrimary),secondaryNeutralHoverStateLayerOpacity:o.extend("--ftds-button-secondary-neutral-hover-state-layer-opacity","",l.opacity8),secondaryNeutralFocusStateLayerOpacity:o.extend("--ftds-button-secondary-neutral-focus-state-layer-opacity","",l.opacity8),secondaryNeutralActiveStateLayerOpacity:o.extend("--ftds-button-secondary-neutral-active-state-layer-opacity","",l.opacity16),secondaryNeutralDisabledComponentOpacity:o.extend("--ftds-button-secondary-neutral-disabled-component-opacity","",l.opacity40),secondaryNeutralBackgroundColor:o.create("--ftds-button-secondary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),secondaryNeutralColor:o.extend("--ftds-button-secondary-neutral-color","",d.contentGlobalSecondary),secondaryNeutralIconColor:o.extend("--ftds-button-secondary-neutral-icon-color","",d.contentGlobalSecondary),secondaryNeutralStateLayerColor:o.extend("--ftds-button-secondary-neutral-state-layer-color","",d.contentGlobalSecondary),secondaryNeutralBorderColor:o.extend("--ftds-button-secondary-neutral-border-color","",d.borderNeutralPrimary),secondaryInfoHoverStateLayerOpacity:o.extend("--ftds-button-secondary-info-hover-state-layer-opacity","",l.opacity8),secondaryInfoFocusStateLayerOpacity:o.extend("--ftds-button-secondary-info-focus-state-layer-opacity","",l.opacity8),secondaryInfoActiveStateLayerOpacity:o.extend("--ftds-button-secondary-info-active-state-layer-opacity","",l.opacity16),secondaryInfoDisabledComponentOpacity:o.extend("--ftds-button-secondary-info-disabled-component-opacity","",l.opacity40),secondaryInfoBackgroundColor:o.create("--ftds-button-secondary-info-background-color","","COLOR","rgba(0,0,0,0)"),secondaryInfoBorderColor:o.extend("--ftds-button-secondary-info-border-color","",d.borderInfoPrimary),secondaryInfoColor:o.extend("--ftds-button-secondary-info-color","",d.contentInfoPrimary),secondaryInfoIconColor:o.extend("--ftds-button-secondary-info-icon-color","",d.contentInfoPrimary),secondaryInfoStateLayerColor:o.extend("--ftds-button-secondary-info-state-layer-color","",d.contentInfoPrimary),secondarySuccessHoverStateLayerOpacity:o.extend("--ftds-button-secondary-success-hover-state-layer-opacity","",l.opacity8),secondarySuccessFocusStateLayerOpacity:o.extend("--ftds-button-secondary-success-focus-state-layer-opacity","",l.opacity8),secondarySuccessActiveStateLayerOpacity:o.extend("--ftds-button-secondary-success-active-state-layer-opacity","",l.opacity16),secondarySuccessDisabledComponentOpacity:o.extend("--ftds-button-secondary-success-disabled-component-opacity","",l.opacity40),secondarySuccessBackgroundColor:o.create("--ftds-button-secondary-success-background-color","","COLOR","rgba(0,0,0,0)"),secondarySuccessBorderColor:o.extend("--ftds-button-secondary-success-border-color","",d.borderSuccessPrimary),secondarySuccessColor:o.extend("--ftds-button-secondary-success-color","",d.contentSuccessPrimary),secondarySuccessIconColor:o.extend("--ftds-button-secondary-success-icon-color","",d.contentSuccessPrimary),secondarySuccessStateLayerColor:o.extend("--ftds-button-secondary-success-state-layer-color","",d.contentSuccessPrimary),secondaryWarningHoverStateLayerOpacity:o.extend("--ftds-button-secondary-warning-hover-state-layer-opacity","",l.opacity8),secondaryWarningFocusStateLayerOpacity:o.extend("--ftds-button-secondary-warning-focus-state-layer-opacity","",l.opacity8),secondaryWarningActiveStateLayerOpacity:o.extend("--ftds-button-secondary-warning-active-state-layer-opacity","",l.opacity16),secondaryWarningDisabledComponentOpacity:o.extend("--ftds-button-secondary-warning-disabled-component-opacity","",l.opacity40),secondaryWarningBackgroundColor:o.create("--ftds-button-secondary-warning-background-color","","COLOR","rgba(0,0,0,0)"),secondaryWarningBorderColor:o.extend("--ftds-button-secondary-warning-border-color","",d.borderWarningPrimary),secondaryWarningColor:o.extend("--ftds-button-secondary-warning-color","",d.contentWarningPrimary),secondaryWarningIconColor:o.extend("--ftds-button-secondary-warning-icon-color","",d.contentWarningPrimary),secondaryWarningStateLayerColor:o.extend("--ftds-button-secondary-warning-state-layer-color","",d.contentWarningPrimary),secondaryErrorHoverStateLayerOpacity:o.extend("--ftds-button-secondary-error-hover-state-layer-opacity","",l.opacity8),secondaryErrorFocusStateLayerOpacity:o.extend("--ftds-button-secondary-error-focus-state-layer-opacity","",l.opacity8),secondaryErrorActiveStateLayerOpacity:o.extend("--ftds-button-secondary-error-active-state-layer-opacity","",l.opacity16),secondaryErrorDisabledComponentOpacity:o.extend("--ftds-button-secondary-error-disabled-component-opacity","",l.opacity40),secondaryErrorBackgroundColor:o.create("--ftds-button-secondary-error-background-color","","COLOR","rgba(0,0,0,0)"),secondaryErrorBorderColor:o.extend("--ftds-button-secondary-error-border-color","",d.contentErrorPrimary),secondaryErrorColor:o.extend("--ftds-button-secondary-error-color","",d.contentErrorPrimary),secondaryErrorIconColor:o.extend("--ftds-button-secondary-error-icon-color","",d.contentErrorPrimary),secondaryErrorStateLayerColor:o.extend("--ftds-button-secondary-error-state-layer-color","",d.contentErrorPrimary)};var Zf={loadMoreIconSize:o.extend("--ftds-tree-list-load-more-icon-size","",l.iconSize2),loadMorePaddingLeft:o.extend("--ftds-tree-list-load-more-padding-left","",l.spacing6),loadMoreUnselectedDefaultBorderColor:o.extend("--ftds-tree-list-load-more-unselected-default-border-color","",d.borderGlobalSubtle),loadMoreIconColor:o.extend("--ftds-tree-list-load-more-icon-color","",d.contentActionPrimary),loadMoreLabelColor:o.extend("--ftds-tree-list-load-more-label-color","",d.contentActionPrimary),loadMoreHoverBorderColor:o.extend("--ftds-tree-list-load-more-hover-border-color","",l.colorBrand20),loadMoreHoverBackgroundColor:o.create("--ftds-tree-list-load-more-hover-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreActiveBorderColor:o.extend("--ftds-tree-list-load-more-active-border-color","",l.colorBrand20),loadMoreActiveBackgroundColor:o.create("--ftds-tree-list-load-more-active-background-color","","COLOR","rgba(157,32,123,0.16)"),loadMoreFocusBackgroundColor:o.create("--ftds-tree-list-load-more-focus-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreDescendantOfSelectedDefaultBackgroundColor:o.create("--ftds-tree-list-load-more-descendant-of-selected-default-background-color","","COLOR","rgba(113,113,142,0.08)"),loadMoreDescendantOfSelectedDefaultBorderColor:o.extend("--ftds-tree-list-load-more-descendant-of-selected-default-border-color","",d.borderGlobalPrimary),loadMoreLabelMarginLeft:o.extend("--ftds-tree-list-load-more-label-margin-left","",l.spacing1),nodeIconSize:o.extend("--ftds-tree-list-node-icon-size","",l.iconSize2),nodeHeight:o.create("--ftds-tree-list-node-height","","SIZE","36px"),nodeParentLabelMarginLeft:o.extend("--ftds-tree-list-node-parent-label-margin-left","",l.spacing2),nodeParentLabelMarginRight:o.extend("--ftds-tree-list-node-parent-label-margin-right","",l.spacing2),nodeRootPaddingLeft:o.extend("--ftds-tree-list-node-root-padding-left","",l.spacing3),nodeChildPaddingLeft:o.extend("--ftds-tree-list-node-child-padding-left","",l.spacing5),nodeLeafPaddingLeft:o.extend("--ftds-tree-list-node-leaf-padding-left","",l.spacing6),nodeUnselectedDefaultBorderColor:o.extend("--ftds-tree-list-node-unselected-default-border-color","",d.borderGlobalSubtle),nodeUnselectedIconColor:o.extend("--ftds-tree-list-node-unselected-icon-color","",d.contentGlobalSecondary),nodeUnselectedLabelColor:o.extend("--ftds-tree-list-node-unselected-label-color","",d.contentGlobalSecondary),nodeUnselectedCounterColor:o.extend("--ftds-tree-list-node-unselected-counter-color","",d.contentGlobalSecondary),nodeHoverBorderColor:o.extend("--ftds-tree-list-node-hover-border-color","",d.borderActionPrimary),nodeFocusFocusRingColor:o.extend("--ftds-tree-list-node-focus-focus-ring-color","",d.borderActionFocusRing),nodeFocusOutlineWidth:o.create("--ftds-tree-list-node-focus-outline-width","","SIZE","2px"),nodeSelectedDefaultBorderColor:o.extend("--ftds-tree-list-node-selected-default-border-color","",d.borderGlobalPrimary),nodeSelectedIconColor:o.extend("--ftds-tree-list-node-selected-icon-color","",d.contentGlobalSecondary),nodeSelectedLabelColor:o.extend("--ftds-tree-list-node-selected-label-color","",d.contentGlobalPrimary),nodeSelectedCounterColor:o.extend("--ftds-tree-list-node-selected-counter-color","",d.contentGlobalSecondary),nodeSelectedBackgroundColor:o.create("--ftds-tree-list-node-selected-background-color","","COLOR","rgba(113,113,142,0.24)"),nodeDescendantOfSelectedDefaultBorderColor:o.extend("--ftds-tree-list-node-descendant-of-selected-default-border-color","",d.borderGlobalPrimary),nodeDescendantOfSelectedIconColor:o.extend("--ftds-tree-list-node-descendant-of-selected-icon-color","",d.contentGlobalSecondary),nodeDescendantOfSelectedLabelColor:o.extend("--ftds-tree-list-node-descendant-of-selected-label-color","",d.contentGlobalSecondary),nodeDescendantOfSelectedCounterColor:o.extend("--ftds-tree-list-node-descendant-of-selected-counter-color","",d.contentGlobalSecondary),nodeDescendantOfSelectedBackgroundColor:o.create("--ftds-tree-list-node-descendant-of-selected-background-color","","COLOR","rgba(113,113,142,0.08)"),nodeBorderWidth:o.create("--ftds-tree-list-node-border-width","","SIZE","1px"),headerSectionPaddingLeft:o.extend("--ftds-tree-list-header-section-padding-left","",l.spacing3),headerSectionPaddingRight:o.extend("--ftds-tree-list-header-section-padding-right","",l.spacing3),headerSectionHorizontalGap:o.extend("--ftds-tree-list-header-section-horizontal-gap","",l.spacing2),headerSectionMarginBottom:o.extend("--ftds-tree-list-header-section-margin-bottom","",l.spacing2),headerSectionColor:o.extend("--ftds-tree-list-header-section-color","",d.contentGlobalPrimary),headerSectionCounterColor:o.extend("--ftds-tree-list-header-section-counter-color","",d.contentGlobalSecondary),listContainerBorderWidth:o.create("--ftds-tree-list-list-container-border-width","","SIZE","1px"),listContainerBackgroundColor:o.extend("--ftds-tree-list-list-container-background-color","",d.backgroundGlobalSurface),listContainerBorderColor:o.extend("--ftds-tree-list-list-container-border-color","",d.borderGlobalSubtle),emptyStateIllustrationWidth:o.create("--ftds-tree-list-empty-state-illustration-width","","SIZE","192px"),emptyStateIllustrationHeight:o.create("--ftds-tree-list-empty-state-illustration-height","","SIZE","192px"),emptyStateIllustrationMarginBottom:o.extend("--ftds-tree-list-empty-state-illustration-margin-bottom","",l.spacing10),emptyStateContainerPaddingTop:o.extend("--ftds-tree-list-empty-state-container-padding-top","",l.spacing10),emptyStateContainerPaddingBottom:o.extend("--ftds-tree-list-empty-state-container-padding-bottom","",l.spacing10),emptyStateTitleMarginBottom:o.extend("--ftds-tree-list-empty-state-title-margin-bottom","",l.spacing2),emptyStateTitleLabelColor:o.extend("--ftds-tree-list-empty-state-title-label-color","",d.contentGlobalSecondary),emptyStateDescriptionLabelColor:o.extend("--ftds-tree-list-empty-state-description-label-color","",d.contentGlobalSecondary)};var Jf={iconSize:o.extend("--ftds-checkbox-icon-size","",l.iconSize2),boxSize:o.create("--ftds-checkbox-box-size","","SIZE","18px"),colorLegendSize:o.create("--ftds-checkbox-color-legend-size","","SIZE","16px"),borderRadius:o.create("--ftds-checkbox-border-radius","","SIZE","1px"),color:o.extend("--ftds-checkbox-color","",d.contentGlobalPrimary),checkedBackgroundColor:o.extend("--ftds-checkbox-checked-background-color","",d.contentActionPrimary),checkedStateLayerColor:o.extend("--ftds-checkbox-checked-state-layer-color","",d.contentActionPrimary),checkedIconColor:o.extend("--ftds-checkbox-checked-icon-color","",d.contentGlobalOnColor),checkedHoverStateLayerOpacity:o.extend("--ftds-checkbox-checked-hover-state-layer-opacity","",l.opacity16),checkedFocusStateLayerOpacity:o.extend("--ftds-checkbox-checked-focus-state-layer-opacity","",l.opacity16),checkedActiveStateLayerOpacity:o.extend("--ftds-checkbox-checked-active-state-layer-opacity","",l.opacity24),checkedDisabledComponentOpacity:o.extend("--ftds-checkbox-checked-disabled-component-opacity","",l.opacity40),uncheckedBorderColor:o.extend("--ftds-checkbox-unchecked-border-color","",l.colorGray80),uncheckedStateLayerColor:o.extend("--ftds-checkbox-unchecked-state-layer-color","",l.colorGray80),uncheckedHoverStateLayerOpacity:o.extend("--ftds-checkbox-unchecked-hover-state-layer-opacity","",l.opacity16),uncheckedFocusStateLayerOpacity:o.extend("--ftds-checkbox-unchecked-focus-state-layer-opacity","",l.opacity16),uncheckedActiveStateLayerOpacity:o.extend("--ftds-checkbox-unchecked-active-state-layer-opacity","",l.opacity24),uncheckedDisabledComponentOpacity:o.extend("--ftds-checkbox-unchecked-disabled-component-opacity","",l.opacity40),focusFocusRingColor:o.extend("--ftds-checkbox-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineOffset:o.create("--ftds-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ftds-checkbox-focus-outline-width","","SIZE","2px"),borderWidth:o.create("--ftds-checkbox-border-width","","SIZE","2px"),horizontalGap:o.extend("--ftds-checkbox-horizontal-gap","",l.spacing3),leftPadding:o.extend("--ftds-checkbox-left-padding","",l.spacing2)};var ih={circleSize:o.create("--ftds-radio-circle-size","","SIZE","18px"),borderWidth:o.create("--ftds-radio-border-width","","SIZE","2px"),color:o.extend("--ftds-radio-color","",d.contentGlobalPrimary),selectedRadioColor:o.extend("--ftds-radio-selected-radio-color","",d.contentActionPrimary),selectedStateLayerColor:o.extend("--ftds-radio-selected-state-layer-color","",d.contentActionPrimary),selectedHoverStateLayerOpacity:o.extend("--ftds-radio-selected-hover-state-layer-opacity","",l.opacity16),selectedFocusStateLayerOpacity:o.extend("--ftds-radio-selected-focus-state-layer-opacity","",l.opacity16),selectedActiveStateLayerOpacity:o.extend("--ftds-radio-selected-active-state-layer-opacity","",l.opacity24),selectedDisabledComponentOpacity:o.extend("--ftds-radio-selected-disabled-component-opacity","",l.opacity40),unselectedStateLayerColor:o.extend("--ftds-radio-unselected-state-layer-color","",d.borderInputPrimary),unselectedBorderColor:o.extend("--ftds-radio-unselected-border-color","",d.borderInputPrimary),unselectedHoverStateLayerOpacity:o.extend("--ftds-radio-unselected-hover-state-layer-opacity","",l.opacity16),unselectedFocusStateLayerOpacity:o.extend("--ftds-radio-unselected-focus-state-layer-opacity","",l.opacity16),unselectedActiveStateLayerOpacity:o.extend("--ftds-radio-unselected-active-state-layer-opacity","",l.opacity24),unselectedDisabledComponentOpacity:o.extend("--ftds-radio-unselected-disabled-component-opacity","",l.opacity40),focusFocusRingColor:o.extend("--ftds-radio-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineOffset:o.create("--ftds-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ftds-radio-focus-outline-width","","SIZE","2px"),verticalGap:o.extend("--ftds-radio-vertical-gap","",l.spacing3),horizontalGap:o.extend("--ftds-radio-horizontal-gap","",l.spacing3)};var ch={headerRowBorderWidth:o.create("--ftds-table-header-row-border-width","","SIZE","1px"),headerRowBackgroundColor:o.extend("--ftds-table-header-row-background-color","",d.backgroundGlobalOnSurfaceDark),headerRowBorderColor:o.extend("--ftds-table-header-row-border-color","",d.borderGlobalPrimary),headerRowColor:o.extend("--ftds-table-header-row-color","",d.contentGlobalPrimary),dataRowBorderWidth:o.create("--ftds-table-data-row-border-width","","SIZE","1px"),dataRowBackgroundColor:o.extend("--ftds-table-data-row-background-color","",d.backgroundGlobalOnSurface),dataRowBorderColor:o.extend("--ftds-table-data-row-border-color","",d.borderGlobalSubtle),dataRowColor:o.extend("--ftds-table-data-row-color","",d.contentGlobalSecondary),dataRowDefaultHoverBackgroundColor:o.extend("--ftds-table-data-row-default-hover-background-color","",l.colorGray20),dataRowSelectableUnselectedHoverBackgroundColor:o.extend("--ftds-table-data-row-selectable-unselected-hover-background-color","",l.colorGray20),dataRowSelectableSelectedDefaultBackgroundColor:o.extend("--ftds-table-data-row-selectable-selected-default-background-color","",l.colorBrand10),dataRowSelectableSelectedDefaultBorderColor:o.extend("--ftds-table-data-row-selectable-selected-default-border-color","",l.colorBrand20),dataRowSelectableSelectedHoverBackgroundColor:o.extend("--ftds-table-data-row-selectable-selected-hover-background-color","",l.colorBrand20),dataRowSelectableSelectedHoverBorderColor:o.extend("--ftds-table-data-row-selectable-selected-hover-border-color","",l.colorBrand30),dataRowSelectableSelectedColor:o.extend("--ftds-table-data-row-selectable-selected-color","",d.contentActionPrimary),dataRowClickableHoverBackgroundColor:o.extend("--ftds-table-data-row-clickable-hover-background-color","",l.colorGray30),dataRowClickableFocusBorderColor:o.extend("--ftds-table-data-row-clickable-focus-border-color","",d.borderActionFocusRing),dataRowClickableFocusBackgroundColor:o.extend("--ftds-table-data-row-clickable-focus-background-color","",l.colorGray30),dataRowClickableActiveBackgroundColor:o.extend("--ftds-table-data-row-clickable-active-background-color","",l.colorGray40),headerCellHorizontalGap:o.extend("--ftds-table-header-cell-horizontal-gap","",l.spacing1),headerCellVerticalPadding:o.extend("--ftds-table-header-cell-vertical-padding","",l.spacing2),headerCellHorizontalPadding:o.extend("--ftds-table-header-cell-horizontal-padding","",l.spacing3),dataCellVerticalPadding:o.extend("--ftds-table-data-cell-vertical-padding","",l.spacing2),dataCellHorizontalPadding:o.extend("--ftds-table-data-cell-horizontal-padding","",l.spacing3),dataCellVerticalGap:o.extend("--ftds-table-data-cell-vertical-gap","",l.spacing1)};var hh={neutralOffHoverStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-off-hover-state-layer-opacity","",l.opacity8),neutralOffFocusStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-off-focus-state-layer-opacity","",l.opacity8),neutralOffFocusFocusRingColor:o.extend("--ftds-chip-choice-neutral-off-focus-focus-ring-color","",d.borderActionFocusRing),neutralOffActiveStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-off-active-state-layer-opacity","",l.opacity16),neutralOffBackgroundColor:o.extend("--ftds-chip-choice-neutral-off-background-color","",d.backgroundGlobalOnSurface),neutralOffBorderColor:o.extend("--ftds-chip-choice-neutral-off-border-color","",d.borderGlobalPrimary),neutralOffColor:o.extend("--ftds-chip-choice-neutral-off-color","",d.contentGlobalSecondary),neutralOffStateLayerColor:o.extend("--ftds-chip-choice-neutral-off-state-layer-color","",d.contentGlobalSecondary),neutralOnDefaultStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-on-default-state-layer-opacity","",l.opacity16),neutralOnHoverStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-on-hover-state-layer-opacity","",l.opacity24),neutralOnFocusStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-on-focus-state-layer-opacity","",l.opacity24),neutralOnFocusFocusRingColor:o.extend("--ftds-chip-choice-neutral-on-focus-focus-ring-color","",d.borderActionFocusRing),neutralOnActiveStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-on-active-state-layer-opacity","",l.opacity32),neutralOnBackgroundColor:o.extend("--ftds-chip-choice-neutral-on-background-color","",d.backgroundGlobalOnSurface),neutralOnBorderColor:o.extend("--ftds-chip-choice-neutral-on-border-color","",d.borderGlobalPrimary),neutralOnColor:o.extend("--ftds-chip-choice-neutral-on-color","",d.contentGlobalPrimary),neutralOnIconColor:o.extend("--ftds-chip-choice-neutral-on-icon-color","",d.contentGlobalPrimary),neutralOnStateLayerColor:o.extend("--ftds-chip-choice-neutral-on-state-layer-color","",d.contentGlobalPrimary),largeMinHeight:o.create("--ftds-chip-choice-large-min-height","","SIZE","36px"),largeHorizontalPadding:o.extend("--ftds-chip-choice-large-horizontal-padding","",l.spacing3),largeGap:o.extend("--ftds-chip-choice-large-gap","",l.spacing1),largeBorderRadius:o.create("--ftds-chip-choice-large-border-radius","","SIZE","18px"),largeBorderWidth:o.create("--ftds-chip-choice-large-border-width","","SIZE","1px"),largeIconSize:o.extend("--ftds-chip-choice-large-icon-size","",l.iconSize3),mediumMinHeight:o.create("--ftds-chip-choice-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:o.extend("--ftds-chip-choice-medium-horizontal-padding","",l.spacing2),mediumGap:o.extend("--ftds-chip-choice-medium-gap","",l.spacing1),mediumBorderRadius:o.create("--ftds-chip-choice-medium-border-radius","","SIZE","12px"),mediumBorderWidth:o.create("--ftds-chip-choice-medium-border-width","","SIZE","1px"),mediumIconSize:o.extend("--ftds-chip-choice-medium-icon-size","",l.iconSize2)};var xh={largeMinHeight:o.create("--ftds-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:o.extend("--ftds-chip-large-horizontal-padding","",l.spacing3),largeButtonRightPadding:o.extend("--ftds-chip-large-button-right-padding","",l.spacing1),largeGap:o.extend("--ftds-chip-large-gap","",l.spacing1),largeFocusOutlineOffset:o.create("--ftds-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:o.create("--ftds-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:o.create("--ftds-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:o.create("--ftds-chip-large-border-width","","SIZE","1px"),largeIconSize:o.extend("--ftds-chip-large-icon-size","",l.iconSize3),mediumMinHeight:o.create("--ftds-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:o.extend("--ftds-chip-medium-horizontal-padding","",l.spacing2),mediumButtonRightPadding:o.extend("--ftds-chip-medium-button-right-padding","",l.spacing05),mediumGap:o.extend("--ftds-chip-medium-gap","",l.spacing1),mediumFocusOutlineOffset:o.create("--ftds-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:o.create("--ftds-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:o.create("--ftds-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:o.create("--ftds-chip-medium-border-width","","SIZE","1px"),mediumIconSize:o.extend("--ftds-chip-medium-icon-size","",l.iconSize2),smallMinHeight:o.create("--ftds-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:o.extend("--ftds-chip-small-horizontal-padding","",l.spacing1),smallButtonRightPadding:o.extend("--ftds-chip-small-button-right-padding","",l.spacing05),smallGap:o.extend("--ftds-chip-small-gap","",l.spacing1),smallFocusOutlineOffset:o.create("--ftds-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:o.create("--ftds-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:o.create("--ftds-chip-small-border-radius","","SIZE","10px"),smallBorderWidth:o.create("--ftds-chip-small-border-width","","SIZE","1px"),smallIconSize:o.extend("--ftds-chip-small-icon-size","",l.iconSize1),neutralBackgroundColor:o.extend("--ftds-chip-neutral-background-color","",d.backgroundGlobalOnSurface),neutralColor:o.extend("--ftds-chip-neutral-color","",d.contentGlobalSecondary),neutralIconColor:o.extend("--ftds-chip-neutral-icon-color","",d.contentGlobalSecondary),neutralBorderColor:o.extend("--ftds-chip-neutral-border-color","",d.borderGlobalSubtle),infoBackgroundColor:o.extend("--ftds-chip-info-background-color","",d.backgroundInfoSubtle),infoColor:o.extend("--ftds-chip-info-color","",d.contentInfoPrimary),infoIconColor:o.extend("--ftds-chip-info-icon-color","",d.contentInfoIconOnly),infoBorderColor:o.extend("--ftds-chip-info-border-color","",d.borderInfoSubtle),successBackgroundColor:o.extend("--ftds-chip-success-background-color","",d.backgroundSuccessSubtle),successColor:o.extend("--ftds-chip-success-color","",d.contentSuccessPrimary),successIconColor:o.extend("--ftds-chip-success-icon-color","",d.contentSuccessIconOnly),successBorderColor:o.extend("--ftds-chip-success-border-color","",d.borderSuccessSubtle),warningBackgroundColor:o.extend("--ftds-chip-warning-background-color","",d.backgroundWarningSubtle),warningColor:o.extend("--ftds-chip-warning-color","",d.contentWarningPrimary),warningIconColor:o.extend("--ftds-chip-warning-icon-color","",d.contentWarningIconOnly),warningBorderColor:o.extend("--ftds-chip-warning-border-color","",d.borderWarningSubtle),errorBackgroundColor:o.extend("--ftds-chip-error-background-color","",d.backgroundErrorSubtle),errorColor:o.extend("--ftds-chip-error-color","",d.contentErrorPrimary),errorIconColor:o.extend("--ftds-chip-error-icon-color","",d.contentErrorIconOnly),errorBorderColor:o.extend("--ftds-chip-error-border-color","",d.borderErrorSubtle)};var wh={brandHoverOpacity:o.extend("--ftds-link-brand-hover-opacity","",l.opacity80),brandHoverColor:o.extend("--ftds-link-brand-hover-color","",d.contentActionPrimary),brandFocusFocusRingColor:o.extend("--ftds-link-brand-focus-focus-ring-color","",d.borderActionFocusRing),brandFocusColor:o.extend("--ftds-link-brand-focus-color","",d.contentActionPrimary),brandDefaultColor:o.extend("--ftds-link-brand-default-color","",d.contentActionPrimary),brandActiveColor:o.extend("--ftds-link-brand-active-color","",d.contentActionPrimary),infoHoverOpacity:o.extend("--ftds-link-info-hover-opacity","",l.opacity80),infoHoverColor:o.extend("--ftds-link-info-hover-color","",d.contentInfoPrimary),infoFocusFocusRingColor:o.extend("--ftds-link-info-focus-focus-ring-color","",d.borderActionFocusRing),infoFocusColor:o.extend("--ftds-link-info-focus-color","",d.contentInfoPrimary),infoDefaultColor:o.extend("--ftds-link-info-default-color","",d.contentInfoPrimary),infoActiveColor:o.extend("--ftds-link-info-active-color","",d.contentInfoPrimary),neutralFocusFocusRingColor:o.extend("--ftds-link-neutral-focus-focus-ring-color","",d.borderActionFocusRing),neutralFocusColor:o.extend("--ftds-link-neutral-focus-color","",d.contentActionPrimary),neutralDefaultColor:o.extend("--ftds-link-neutral-default-color","",d.contentGlobalPrimary),neutralHoverColor:o.extend("--ftds-link-neutral-hover-color","",d.contentActionPrimary),neutralActiveColor:o.extend("--ftds-link-neutral-active-color","",d.contentActionPrimary),neutralVisitedColor:o.extend("--ftds-link-neutral-visited-color","",l.colorBrand100)};var Ih={iconSize:o.extend("--ftds-banner-icon-size","",l.iconSize5),borderWidth:o.create("--ftds-banner-border-width","","SIZE","1px"),leftPadding:o.extend("--ftds-banner-left-padding","",l.spacing6),rightPadding:o.extend("--ftds-banner-right-padding","",l.spacing6),verticalPadding:o.extend("--ftds-banner-vertical-padding","",l.spacing6),horizontalSideGap:o.extend("--ftds-banner-horizontal-side-gap","",l.spacing6),horizontalMobileGap:o.extend("--ftds-banner-horizontal-mobile-gap","",l.spacing4),verticalMobileGap:o.extend("--ftds-banner-vertical-mobile-gap","",l.spacing6),horizontalMiddleGap:o.extend("--ftds-banner-horizontal-middle-gap","",l.spacing20),infoBackgroundColor:o.extend("--ftds-banner-info-background-color","",d.backgroundInfoSubtle),infoColor:o.extend("--ftds-banner-info-color","",d.contentInfoPrimary),infoIconColor:o.extend("--ftds-banner-info-icon-color","",d.contentInfoIconOnly),infoBorderColor:o.extend("--ftds-banner-info-border-color","",d.borderInfoSubtle)};var Ph={horizontalPadding:o.extend("--ftds-badge-horizontal-padding","",l.spacing1),verticalPadding:o.extend("--ftds-badge-vertical-padding","",l.spacing1),borderRadius:o.extend("--ftds-badge-border-radius","",l.borderRadiusPill),color:o.extend("--ftds-badge-color","",d.contentGlobalOnColor),backgroundColor:o.extend("--ftds-badge-background-color","",d.contentActionPrimary)};var Fh={horizontalGap:o.extend("--ftds-title-breadcrumb-horizontal-gap","",l.spacing1),currentColor:o.extend("--ftds-title-breadcrumb-current-color","",d.contentGlobalPrimary),previousNonClickableColor:o.extend("--ftds-title-breadcrumb-previous-non-clickable-color","",d.contentGlobalSecondary),iconColor:o.extend("--ftds-title-breadcrumb-icon-color","",d.contentGlobalSubtle)};var Gh={parentHorizontalPadding:o.extend("--ftds-page-header-parent-horizontal-padding","",l.spacing6),parentTopPadding:o.extend("--ftds-page-header-parent-top-padding","",l.spacing4),parentBottomPadding:o.extend("--ftds-page-header-parent-bottom-padding","",l.spacing6),parentHelpLeftMargin:o.extend("--ftds-page-header-parent-help-left-margin","",l.spacing1),parentTitleColor:o.extend("--ftds-page-header-parent-title-color","",d.contentGlobalPrimary),parentSubtitleColor:o.extend("--ftds-page-header-parent-subtitle-color","",d.contentGlobalSecondary),parentChipLeftMargin:o.extend("--ftds-page-header-parent-chip-left-margin","",l.spacing4),parentVerticalGap:o.extend("--ftds-page-header-parent-vertical-gap","",l.spacing2),parentButtonsGroupHorizontalGap:o.extend("--ftds-page-header-parent-buttons-group-horizontal-gap","",l.spacing4),parentButtonsGroupVerticalGap:o.extend("--ftds-page-header-parent-buttons-group-vertical-gap","",l.spacing4),parentChipsGroupHorizontalGap:o.extend("--ftds-page-header-parent-chips-group-horizontal-gap","",l.spacing2),parentChipsGroupVerticalGap:o.extend("--ftds-page-header-parent-chips-group-vertical-gap","",l.spacing2),childHorizontalPadding:o.extend("--ftds-page-header-child-horizontal-padding","",l.spacing6),childTopPadding:o.extend("--ftds-page-header-child-top-padding","",l.spacing2),childBottomPadding:o.extend("--ftds-page-header-child-bottom-padding","",l.spacing2),childHelpLeftMargin:o.extend("--ftds-page-header-child-help-left-margin","",l.spacing1),childChipLeftMargin:o.extend("--ftds-page-header-child-chip-left-margin","",l.spacing4),childVerticalGap:o.extend("--ftds-page-header-child-vertical-gap","",l.spacing2),childMinHeight:o.create("--ftds-page-header-child-min-height","","SIZE","40px"),childButtonsGroupHorizontalGap:o.extend("--ftds-page-header-child-buttons-group-horizontal-gap","",l.spacing4),childButtonsGroupVerticalGap:o.extend("--ftds-page-header-child-buttons-group-vertical-gap","",l.spacing4),childChipsGroupHorizontalGap:o.extend("--ftds-page-header-child-chips-group-horizontal-gap","",l.spacing2),childChipsGroupVerticalGap:o.extend("--ftds-page-header-child-chips-group-vertical-gap","",l.spacing2),backgroundColor:o.extend("--ftds-page-header-background-color","",l.colorWhite),bottomBorderColor:o.extend("--ftds-page-header-bottom-border-color","",d.borderGlobalSubtle),bottomBorderWidth:o.create("--ftds-page-header-bottom-border-width","","SIZE","1px")};var qh={horizontalPadding:o.extend("--ftds-page-footer-horizontal-padding","",l.spacing6),verticalPadding:o.extend("--ftds-page-footer-vertical-padding","",l.spacing2),verticalGap:o.extend("--ftds-page-footer-vertical-gap","",l.spacing2),minHeight:o.create("--ftds-page-footer-min-height","","SIZE","40px"),backgroundColor:o.extend("--ftds-page-footer-background-color","",l.colorWhite),topBorderColor:o.extend("--ftds-page-footer-top-border-color","",d.borderGlobalSubtle),topBorderWidth:o.create("--ftds-page-footer-top-border-width","","SIZE","1px"),buttonsGroupGap:o.extend("--ftds-page-footer-buttons-group-gap","",l.spacing4)};var Jh={contentHorizontalPadding:o.extend("--ftds-page-layout-content-horizontal-padding","",l.spacing6),contentVerticalPadding:o.extend("--ftds-page-layout-content-vertical-padding","",l.spacing6)};var ig={smallContainerTargetWidth:o.create("--ftds-modal-small-container-target-width","","SIZE","560px"),smallContainerMargin:o.extend("--ftds-modal-small-container-margin","",l.spacing6),mediumContainerTargetWidth:o.create("--ftds-modal-medium-container-target-width","","SIZE","800px"),mediumContainerMargin:o.extend("--ftds-modal-medium-container-margin","",l.spacing6),largeContainerTargetWidth:o.create("--ftds-modal-large-container-target-width","","SIZE","1040px"),largeContainerMargin:o.extend("--ftds-modal-large-container-margin","",l.spacing6),overlayBackgroundColor:o.extend("--ftds-modal-overlay-background-color","",l.colorGray700),overlayOpacity:o.extend("--ftds-modal-overlay-opacity","",l.opacity40),shadow:o.extend("--ftds-modal-shadow","",l.shadowElevation03),bodyBackgroundColor:o.extend("--ftds-modal-body-background-color","",l.colorWhite),bodyColor:o.extend("--ftds-modal-body-color","",d.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ftds-modal-body-horizontal-padding","",l.spacing6),bodyVerticalPadding:o.extend("--ftds-modal-body-vertical-padding","",l.spacing6),bodyVerticalGap:o.extend("--ftds-modal-body-vertical-gap","",l.spacing6),headerBackgroundColor:o.extend("--ftds-modal-header-background-color","",d.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ftds-modal-header-border-color","",d.borderGlobalSubtle),headerColor:o.extend("--ftds-modal-header-color","",d.contentGlobalPrimary),headerLeadingIconColor:o.extend("--ftds-modal-header-leading-icon-color","",d.contentGlobalPrimary),headerVerticalPadding:o.extend("--ftds-modal-header-vertical-padding","",l.spacing1),headerRightPadding:o.extend("--ftds-modal-header-right-padding","",l.spacing1),headerLeftPadding:o.extend("--ftds-modal-header-left-padding","",l.spacing6),headerGap:o.extend("--ftds-modal-header-gap","",l.spacing2),headerBorderBottomWidth:o.create("--ftds-modal-header-border-bottom-width","","SIZE","1px"),borderRadius:o.extend("--ftds-modal-border-radius","",l.borderRadiusM)};var cg={overlayOpacity:o.extend("--ftds-drawer-overlay-opacity","",l.opacity40),shadow:o.extend("--ftds-drawer-shadow","",l.shadowElevation03),bodyColor:o.extend("--ftds-drawer-body-color","",d.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ftds-drawer-body-horizontal-padding","",l.spacing6),bodyVerticalPadding:o.extend("--ftds-drawer-body-vertical-padding","",l.spacing6),bodyGap:o.extend("--ftds-drawer-body-gap","",l.spacing6),bodyBackgroundColor:o.extend("--ftds-drawer-body-background-color","",l.colorWhite),headerBackgroundColor:o.extend("--ftds-drawer-header-background-color","",d.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ftds-drawer-header-border-color","",d.borderGlobalSubtle),headerColor:o.extend("--ftds-drawer-header-color","",d.contentGlobalPrimary),headerTrailingIconColor:o.extend("--ftds-drawer-header-trailing-icon-color","",d.contentGlobalSecondary),headerHeight:o.create("--ftds-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:o.extend("--ftds-drawer-header-horizontal-padding","",l.spacing2),headerBorderWidth:o.create("--ftds-drawer-header-border-width","","SIZE","1px"),headerGap:o.extend("--ftds-drawer-header-gap","",l.spacing3),buttonsBarBackgroundColor:o.extend("--ftds-drawer-buttons-bar-background-color","",d.backgroundGlobalOnSurface),buttonsBarBorderColor:o.extend("--ftds-drawer-buttons-bar-border-color","",d.borderGlobalSubtle),buttonsBarColor:o.extend("--ftds-drawer-buttons-bar-color","",d.contentGlobalPrimary),buttonsBarHorizontalPadding:o.extend("--ftds-drawer-buttons-bar-horizontal-padding","",l.spacing6),buttonsBarVerticalPadding:o.extend("--ftds-drawer-buttons-bar-vertical-padding","",l.spacing4),buttonsBarGap:o.extend("--ftds-drawer-buttons-bar-gap","",l.spacing3),buttonsBarBorderWidth:o.create("--ftds-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:o.create("--ftds-drawer-container-width","","SIZE","66%"),containerMinWidth:o.create("--ftds-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:o.create("--ftds-drawer-container-max-width","","SIZE","1000px"),containerHeight:o.create("--ftds-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:o.extend("--ftds-drawer-overlay-background-color","",l.colorGray700)};var hg={offBorderBottomWidth:o.create("--ftds-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:o.extend("--ftds-tabs-off-hover-state-layer-opacity","",l.opacity8),offDefaultStateLayerOpacity:o.extend("--ftds-tabs-off-default-state-layer-opacity","",l.opacity0),offFocusStateLayerOpacity:o.extend("--ftds-tabs-off-focus-state-layer-opacity","",l.opacity8),offDisabledComponentOpacity:o.extend("--ftds-tabs-off-disabled-component-opacity","",l.opacity40),offColor:o.extend("--ftds-tabs-off-color","",d.contentGlobalSubtle),offStateLayerColor:o.extend("--ftds-tabs-off-state-layer-color","",d.contentGlobalSubtle),offBorderBottomColor:o.extend("--ftds-tabs-off-border-bottom-color","",d.borderGlobalSubtle),activeTabIndicatorHeight:o.create("--ftds-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:o.extend("--ftds-tabs-top-left-border-radius","",l.borderRadiusS),topRightBorderRadius:o.extend("--ftds-tabs-top-right-border-radius","",l.borderRadiusS),withLabelHorizontalPadding:o.extend("--ftds-tabs-with-label-horizontal-padding","",l.spacing4),withLabelVerticalPadding:o.extend("--ftds-tabs-with-label-vertical-padding","",l.spacing3),horizontalGap:o.extend("--ftds-tabs-horizontal-gap","",l.spacing1),verticalGap:o.extend("--ftds-tabs-vertical-gap","",l.spacing1),onHoverStateLayerOpacity:o.extend("--ftds-tabs-on-hover-state-layer-opacity","",l.opacity16),onDefaultStateLayerOpacity:o.extend("--ftds-tabs-on-default-state-layer-opacity","",l.opacity8),onFocusStateLayerOpacity:o.extend("--ftds-tabs-on-focus-state-layer-opacity","",l.opacity16),onActiveStateLayerOpacity:o.extend("--ftds-tabs-on-active-state-layer-opacity","",l.opacity24),onColor:o.extend("--ftds-tabs-on-color","",d.contentActionPrimary),onStateLayerColor:o.extend("--ftds-tabs-on-state-layer-color","",d.contentActionPrimary),onActiveTabIndicatorColor:o.extend("--ftds-tabs-on-active-tab-indicator-color","",d.contentActionPrimary),iconOnlyHorizontalPadding:o.extend("--ftds-tabs-icon-only-horizontal-padding","",l.spacing4),iconOnlyVerticalPadding:o.extend("--ftds-tabs-icon-only-vertical-padding","",l.spacing4),alertTopPadding:o.extend("--ftds-tabs-alert-top-padding","",l.spacing1),alertRightPadding:o.extend("--ftds-tabs-alert-right-padding","",l.spacing05),focusOutlineWidth:o.create("--ftds-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ftds-tabs-focus-focus-ring-color","",d.borderActionFocusRing)};var xg={largeFieldHorizontalPadding:o.extend("--ftds-text-input-large-field-horizontal-padding","",l.spacing4),largeFieldHorizontalGap:o.extend("--ftds-text-input-large-field-horizontal-gap","",l.spacing3),largeFieldVerticalGap:o.extend("--ftds-text-input-large-field-vertical-gap","",l.spacing05),largeFieldHeight:o.create("--ftds-text-input-large-field-height","","SIZE","50px"),largeFieldIconSize:o.extend("--ftds-text-input-large-field-icon-size","",l.iconSize3),mediumFieldHorizontalPadding:o.extend("--ftds-text-input-medium-field-horizontal-padding","",l.spacing4),mediumFieldHorizontalGap:o.extend("--ftds-text-input-medium-field-horizontal-gap","",l.spacing3),mediumFieldVerticalGap:o.create("--ftds-text-input-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:o.create("--ftds-text-input-medium-field-height","","SIZE","40px"),mediumFieldIconSize:o.extend("--ftds-text-input-medium-field-icon-size","",l.iconSize3),helperHorizontalPadding:o.extend("--ftds-text-input-helper-horizontal-padding","",l.spacing4),helperHorizontalGap:o.extend("--ftds-text-input-helper-horizontal-gap","",l.spacing1),helperIconSize:o.extend("--ftds-text-input-helper-icon-size","",l.iconSize2),borderRadius:o.extend("--ftds-text-input-border-radius","",l.borderRadiusS),backgroundColor:o.extend("--ftds-text-input-background-color","",l.colorWhite),contentValueColor:o.extend("--ftds-text-input-content-value-color","",d.contentGlobalPrimary),trailingIconColor:o.extend("--ftds-text-input-trailing-icon-color","",d.contentGlobalSubtle),labelColor:o.extend("--ftds-text-input-label-color","",d.contentGlobalSubtle),defaultBorderColor:o.extend("--ftds-text-input-default-border-color","",d.borderInputPrimary),defaultHelperTextColor:o.extend("--ftds-text-input-default-helper-text-color","",d.contentGlobalSubtle),defaultBorderWidth:o.create("--ftds-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ftds-text-input-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ftds-text-input-error-border-color","",d.borderErrorPrimary),errorHelperTextColor:o.extend("--ftds-text-input-error-helper-text-color","",d.contentErrorPrimary),errorHelperIconColor:o.extend("--ftds-text-input-error-helper-icon-color","",d.contentErrorIconOnly),warningBorderColor:o.extend("--ftds-text-input-warning-border-color","",d.borderWarningPrimary),warningHelperTextColor:o.extend("--ftds-text-input-warning-helper-text-color","",d.contentWarningPrimary),warningHelperIconColor:o.extend("--ftds-text-input-warning-helper-icon-color","",d.contentWarningIconOnly),warningBorderWidth:o.create("--ftds-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:o.create("--ftds-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ftds-text-input-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineOffset:o.create("--ftds-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ftds-text-input-disabled-component-opacity","",l.opacity40)};var wg={backgroundColor:o.extend("--ftds-text-area-background-color","",l.colorWhite),contentValueColor:o.extend("--ftds-text-area-content-value-color","",d.contentGlobalPrimary),labelColor:o.extend("--ftds-text-area-label-color","",d.contentGlobalSubtle),defaultBorderColor:o.extend("--ftds-text-area-default-border-color","",d.borderInputPrimary),defaultHelperTextColor:o.extend("--ftds-text-area-default-helper-text-color","",d.contentGlobalSubtle),defaultBorderWidth:o.create("--ftds-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ftds-text-area-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ftds-text-area-error-border-color","",d.borderErrorPrimary),errorHelperTextColor:o.extend("--ftds-text-area-error-helper-text-color","",d.contentErrorPrimary),errorHelperIconColor:o.extend("--ftds-text-area-error-helper-icon-color","",d.contentErrorIconOnly),focusFocusRingColor:o.extend("--ftds-text-area-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineWidth:o.create("--ftds-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:o.create("--ftds-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ftds-text-area-disabled-component-opacity","",l.opacity40),fieldHorizontalLeftPadding:o.extend("--ftds-text-area-field-horizontal-left-padding","",l.spacing4),fieldHorizontalGap:o.extend("--ftds-text-area-field-horizontal-gap","",l.spacing3),fieldVerticalGap:o.extend("--ftds-text-area-field-vertical-gap","",l.spacing05),fieldMinHeight:o.create("--ftds-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:o.extend("--ftds-text-area-helper-horizontal-padding","",l.spacing4),helperHorizontalGap:o.extend("--ftds-text-area-helper-horizontal-gap","",l.spacing1),helperIconSize:o.extend("--ftds-text-area-helper-icon-size","",l.iconSize2),borderRadius:o.extend("--ftds-text-area-border-radius","",l.borderRadiusS)};var Ig={height:o.create("--ftds-floating-menu-height","","SIZE","50px"),horizontalPadding:o.extend("--ftds-floating-menu-horizontal-padding","",l.spacing4),offIconColor:o.extend("--ftds-floating-menu-off-icon-color","",d.contentGlobalPrimary),offColor:o.extend("--ftds-floating-menu-off-color","",d.contentGlobalPrimary),onColor:o.extend("--ftds-floating-menu-on-color","",d.contentActionPrimary),onStateLayerColor:o.extend("--ftds-floating-menu-on-state-layer-color","",d.contentActionPrimary),gap:o.extend("--ftds-floating-menu-gap","",l.spacing3),focusFocusRingColor:o.extend("--ftds-floating-menu-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineWidth:o.create("--ftds-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:o.extend("--ftds-floating-menu-focus-state-layer-opacity","",l.opacity8),hoverStateLayerOpacity:o.extend("--ftds-floating-menu-hover-state-layer-opacity","",l.opacity8),activeStateLayerOpacity:o.extend("--ftds-floating-menu-active-state-layer-opacity","",l.opacity16),disabledComponentOpacity:o.extend("--ftds-floating-menu-disabled-component-opacity","",l.opacity40),iconSize:o.extend("--ftds-floating-menu-icon-size","",l.iconSize3),backgroundColor:o.extend("--ftds-floating-menu-background-color","",d.backgroundGlobalOnSurface),shadow:o.extend("--ftds-floating-menu-shadow","",l.shadowElevation02)};var Pg={largeFieldHorizontalPadding:o.extend("--ftds-combobox-single-select-large-field-horizontal-padding","",l.spacing4),largeFieldHorizontalGap:o.extend("--ftds-combobox-single-select-large-field-horizontal-gap","",l.spacing3),largeFieldVerticalGap:o.extend("--ftds-combobox-single-select-large-field-vertical-gap","",l.spacing05),largeFieldHeight:o.create("--ftds-combobox-single-select-large-field-height","","SIZE","50px"),largeFieldIconSize:o.extend("--ftds-combobox-single-select-large-field-icon-size","",l.iconSize3),mediumFieldHorizontalPadding:o.extend("--ftds-combobox-single-select-medium-field-horizontal-padding","",l.spacing4),mediumFieldHorizontalGap:o.extend("--ftds-combobox-single-select-medium-field-horizontal-gap","",l.spacing3),mediumFieldVerticalGap:o.create("--ftds-combobox-single-select-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:o.create("--ftds-combobox-single-select-medium-field-height","","SIZE","40px"),mediumFieldIconSize:o.extend("--ftds-combobox-single-select-medium-field-icon-size","",l.iconSize3),helperHorizontalPadding:o.extend("--ftds-combobox-single-select-helper-horizontal-padding","",l.spacing4),helperHorizontalGap:o.extend("--ftds-combobox-single-select-helper-horizontal-gap","",l.spacing1),helperVerticalGap:o.extend("--ftds-combobox-single-select-helper-vertical-gap","",l.spacing1),helperIconSize:o.extend("--ftds-combobox-single-select-helper-icon-size","",l.iconSize2),menuVerticalGap:o.extend("--ftds-combobox-single-select-menu-vertical-gap","",l.spacing2),borderRadius:o.extend("--ftds-combobox-single-select-border-radius","",l.borderRadiusS),backgroundColor:o.extend("--ftds-combobox-single-select-background-color","",l.colorWhite),labelColor:o.extend("--ftds-combobox-single-select-label-color","",d.contentGlobalSubtle),contentValueColor:o.extend("--ftds-combobox-single-select-content-value-color","",d.contentGlobalPrimary),trailingIconColor:o.extend("--ftds-combobox-single-select-trailing-icon-color","",d.contentGlobalSubtle),defaultBorderColor:o.extend("--ftds-combobox-single-select-default-border-color","",d.borderInputPrimary),defaultHelperTextColor:o.extend("--ftds-combobox-single-select-default-helper-text-color","",d.contentGlobalSubtle),defaultBorderWidth:o.create("--ftds-combobox-single-select-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ftds-combobox-single-select-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ftds-combobox-single-select-error-border-color","",d.borderErrorPrimary),errorHelperTextColor:o.extend("--ftds-combobox-single-select-error-helper-text-color","",d.contentErrorPrimary),warningBorderWidth:o.create("--ftds-combobox-single-select-warning-border-width","","SIZE","2px"),warningBorderColor:o.extend("--ftds-combobox-single-select-warning-border-color","",d.borderWarningPrimary),warningHelperTextColor:o.extend("--ftds-combobox-single-select-warning-helper-text-color","",d.contentWarningPrimary),warningHelperIconColor:o.extend("--ftds-combobox-single-select-warning-helper-icon-color","",d.contentWarningIconOnly),focusOutlineWidth:o.create("--ftds-combobox-single-select-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ftds-combobox-single-select-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineOffset:o.create("--ftds-combobox-single-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ftds-combobox-single-select-disabled-component-opacity","",l.opacity40)};var Fg={backgroundColor:o.extend("--ftds-combobox-multi-select-background-color","",l.colorWhite),labelColor:o.extend("--ftds-combobox-multi-select-label-color","",d.contentGlobalSubtle),trailingIconColor:o.extend("--ftds-combobox-multi-select-trailing-icon-color","",d.contentGlobalSubtle),defaultBorderColor:o.extend("--ftds-combobox-multi-select-default-border-color","",d.borderInputPrimary),defaultHelperTextColor:o.extend("--ftds-combobox-multi-select-default-helper-text-color","",d.contentGlobalSubtle),defaultBorderWidth:o.create("--ftds-combobox-multi-select-default-border-width","","SIZE","1px"),errorBorderColor:o.extend("--ftds-combobox-multi-select-error-border-color","",d.borderErrorPrimary),errorHelperTextColor:o.extend("--ftds-combobox-multi-select-error-helper-text-color","",d.contentErrorPrimary),errorHelperIcon:o.extend("--ftds-combobox-multi-select-error-helper-icon","",d.contentErrorIconOnly),errorBorderWidth:o.create("--ftds-combobox-multi-select-error-border-width","","SIZE","2px"),warningBorderColor:o.extend("--ftds-combobox-multi-select-warning-border-color","",d.borderWarningPrimary),warningHelperTextColor:o.extend("--ftds-combobox-multi-select-warning-helper-text-color","",d.contentWarningPrimary),warningHelperIconColor:o.extend("--ftds-combobox-multi-select-warning-helper-icon-color","",d.contentWarningIconOnly),warningBorderWidth:o.create("--ftds-combobox-multi-select-warning-border-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ftds-combobox-multi-select-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineWidth:o.create("--ftds-combobox-multi-select-focus-outline-width","","SIZE","2px"),focusOutlineOffset:o.create("--ftds-combobox-multi-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ftds-combobox-multi-select-disabled-component-opacity","",l.opacity40),helperHorizontalPadding:o.extend("--ftds-combobox-multi-select-helper-horizontal-padding","",l.spacing4),helperHorizontalGap:o.extend("--ftds-combobox-multi-select-helper-horizontal-gap","",l.spacing1),helperVerticalGap:o.extend("--ftds-combobox-multi-select-helper-vertical-gap","",l.spacing1),helperIconSize:o.extend("--ftds-combobox-multi-select-helper-icon-size","",l.iconSize2),fieldHorizontalPadding:o.extend("--ftds-combobox-multi-select-field-horizontal-padding","",l.spacing4),fieldHorizontalGap:o.extend("--ftds-combobox-multi-select-field-horizontal-gap","",l.spacing3),fieldVerticalGap:o.extend("--ftds-combobox-multi-select-field-vertical-gap","",l.spacing05),fieldIconSize:o.extend("--ftds-combobox-multi-select-field-icon-size","",l.iconSize3),fieldMaxHeight:o.create("--ftds-combobox-multi-select-field-max-height","","SIZE","112px"),contentValuesHorizontalGap:o.extend("--ftds-combobox-multi-select-content-values-horizontal-gap","",l.spacing1),contentValuesVerticalGap:o.extend("--ftds-combobox-multi-select-content-values-vertical-gap","",l.spacing1),borderRadius:o.extend("--ftds-combobox-multi-select-border-radius","",l.borderRadiusS)};var Gg={backgroundColor:o.extend("--ftds-popover-background-color","",d.backgroundGlobalOnSurface),horizontalPadding:o.extend("--ftds-popover-horizontal-padding","",l.spacing6),verticalPadding:o.extend("--ftds-popover-vertical-padding","",l.spacing6),titleColor:o.extend("--ftds-popover-title-color","",d.contentGlobalPrimary),bodyColor:o.extend("--ftds-popover-body-color","",d.contentGlobalSecondary),gap:o.extend("--ftds-popover-gap","",l.spacing2),borderRadius:o.extend("--ftds-popover-border-radius","",l.borderRadiusM),shadow:o.extend("--ftds-popover-shadow","",l.shadowElevation02),maxWidth:o.create("--ftds-popover-max-width","","SIZE","440px"),contentSectionVerticalGap:o.extend("--ftds-popover-content-section-vertical-gap","",l.spacing2),multiSectionVerticalGap:o.extend("--ftds-popover-multi-section-vertical-gap","",l.spacing6)};var qg={hoverStateLayerOpacity:o.extend("--ftds-collapsible-hover-state-layer-opacity","",l.opacity8),focusStateLayerOpacity:o.extend("--ftds-collapsible-focus-state-layer-opacity","",l.opacity8),focusOutlineWidth:o.create("--ftds-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:o.extend("--ftds-collapsible-focus-focus-ring-color","",d.borderActionFocusRing),activeStateLayerOpacity:o.extend("--ftds-collapsible-active-state-layer-opacity","",l.opacity16),disabledComponentOpacity:o.extend("--ftds-collapsible-disabled-component-opacity","",l.opacity40),horizontalPadding:o.extend("--ftds-collapsible-horizontal-padding","",l.spacing4),verticalPadding:o.extend("--ftds-collapsible-vertical-padding","",l.spacing3),color:o.extend("--ftds-collapsible-color","",d.contentGlobalPrimary),stateLayerColor:o.extend("--ftds-collapsible-state-layer-color","",d.contentGlobalPrimary),backgroundColor:o.extend("--ftds-collapsible-background-color","",d.backgroundGlobalOnSurface),borderColor:o.extend("--ftds-collapsible-border-color","",d.borderGlobalSubtle),iconSize:o.extend("--ftds-collapsible-icon-size","",l.iconSize3)};var ey={groupHorizontalPadding:o.extend("--ftds-switch-group-horizontal-padding","",l.spacing1),groupVerticalPadding:o.extend("--ftds-switch-group-vertical-padding","",l.spacing1),groupGap:o.extend("--ftds-switch-group-gap","",l.spacing1),groupBackgroundColor:o.extend("--ftds-switch-group-background-color","",d.backgroundGlobalSurface),groupBorderColor:o.extend("--ftds-switch-group-border-color","",d.borderGlobalSubtle),groupBorderRadius:o.create("--ftds-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:o.extend("--ftds-switch-label-horizontal-padding","",l.spacing2),labelVerticalPadding:o.extend("--ftds-switch-label-vertical-padding","",l.spacing1),offHoverStateLayerOpacity:o.extend("--ftds-switch-off-hover-state-layer-opacity","",l.opacity8),offFocusStateLayerOpacity:o.extend("--ftds-switch-off-focus-state-layer-opacity","",l.opacity8),offActiveStateLayerOpacity:o.extend("--ftds-switch-off-active-state-layer-opacity","",l.opacity16),offDisabledComponentOpacity:o.extend("--ftds-switch-off-disabled-component-opacity","",l.opacity40),offColor:o.extend("--ftds-switch-off-color","",d.contentGlobalSubtle),offStateLayerColor:o.extend("--ftds-switch-off-state-layer-color","",d.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ftds-switch-on-hover-state-layer-opacity","",l.opacity8),onFocusStateLayerOpacity:o.extend("--ftds-switch-on-focus-state-layer-opacity","",l.opacity8),onActiveStateLayerOpacity:o.extend("--ftds-switch-on-active-state-layer-opacity","",l.opacity16),onDisabledComponentOpacity:o.extend("--ftds-switch-on-disabled-component-opacity","",l.opacity40),onColor:o.extend("--ftds-switch-on-color","",d.contentActionPrimary),onStateLayerColor:o.extend("--ftds-switch-on-state-layer-color","",d.contentActionPrimary),iconHorizontalPadding:o.extend("--ftds-switch-icon-horizontal-padding","",l.spacing1),iconVerticalPadding:o.extend("--ftds-switch-icon-vertical-padding","",l.spacing1),focusOutlineWidth:o.create("--ftds-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ftds-switch-focus-focus-ring-color","",d.borderActionFocusRing),optionBorderRadius:o.extend("--ftds-switch-option-border-radius","",l.borderRadiusS)};var iy={color1Light:o.extend("--ftds-chart-1-light","for area color charts",l.colorBrand40),color1Base:o.extend("--ftds-chart-1-base","for line charts",l.colorBrand0),color2Light:o.extend("--ftds-chart-2-light","for area color charts",l.colorYellow60),color2Base:o.extend("--ftds-chart-2-base","for line charts",l.colorYellow100),color3Light:o.extend("--ftds-chart-3-light","",l.colorUltramarine40),color3Base:o.extend("--ftds-chart-3-base","",l.colorUltramarine70),color4Light:o.extend("--ftds-chart-4-light","",l.colorCyan50),color4Base:o.extend("--ftds-chart-4-base","",l.colorCyan100),color5Light:o.extend("--ftds-chart-5-light","",l.colorRed40),color5Base:o.extend("--ftds-chart-5-base","",l.colorRed60),color6Light:o.extend("--ftds-chart-6-light","",l.colorGreen40),color6Base:o.extend("--ftds-chart-6-base","",l.colorGreen70),color7Light:o.extend("--ftds-chart-7-light","",l.colorOrange70),color7Base:o.extend("--ftds-chart-7-base","",l.colorOrange100),color8Light:o.extend("--ftds-chart-8-light","",l.colorAvocado70),color8Base:o.extend("--ftds-chart-8-base","",l.colorAvocado200),color9Light:o.extend("--ftds-chart-9-light","",l.colorBrown50),color9Base:o.extend("--ftds-chart-9-base","",l.colorBrown200),color10Light:o.extend("--ftds-chart-10-light","",l.colorGray50),color10Base:o.extend("--ftds-chart-10-base","",l.colorGray80),monochrome10:o.extend("--ftds-chart-monochrome-10","",l.colorBrand10),monochrome20:o.extend("--ftds-chart-monochrome-20","",l.colorBrand20),monochrome30:o.extend("--ftds-chart-monochrome-30","",l.colorBrand40),monochrome40:o.extend("--ftds-chart-monochrome-40","",l.colorBrand60),monochrome50:o.extend("--ftds-chart-monochrome-50","",l.colorBrand0),monochrome60:o.extend("--ftds-chart-monochrome-60","",l.colorBrand200),scatterplotQuadrantPopularOldBackgroundColor:o.extend("--ftds-chart-scatterplot-quadrant-popular-old-background-color","",l.colorYellow10),scatterplotQuadrantPopularNewBackgroundColor:o.extend("--ftds-chart-scatterplot-quadrant-popular-new-background-color","",l.colorAvocado10),scatterplotQuadrantUnpopularOldBackgroundColor:o.extend("--ftds-chart-scatterplot-quadrant-unpopular-old-background-color","",l.colorRed10),scatterplotQuadrantUnpopularNewBackgroundColor:o.extend("--ftds-chart-scatterplot-quadrant-unpopular-new-background-color","",l.colorCyan10),scatterplotDatapointInitialDefaultBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-initial-default-background-color","",l.colorBrand70),scatterplotDatapointInitialDefaultBackgroundOpacity:o.extend("--ftds-chart-scatterplot-datapoint-initial-default-background-opacity","",l.opacity48),scatterplotDatapointInitialHoverBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-initial-hover-background-color","",l.colorBrand0),scatterplotDatapointSelectedDefaultBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-selected-default-background-color","",l.colorBrand100),scatterplotDatapointSelectedHoverBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-selected-hover-background-color","",l.colorBrand200),scatterplotDatapointUnselectedDefaultBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-unselected-default-background-color","",l.colorGray60),scatterplotDatapointUnselectedDefaultBackgroundOpacity:o.extend("--ftds-chart-scatterplot-datapoint-unselected-default-background-opacity","",l.opacity48),scatterplotDatapointUnselectedHoverBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-unselected-hover-background-color","",l.colorGray70),scatterplotDatapointHoverHoverRingColor:o.extend("--ftds-chart-scatterplot-datapoint-hover-hover-ring-color","",l.colorCyan200)};var ly={color1IconColor:o.extend("--ftds-page-designer-1-icon-color","for area color charts",l.colorCyan0),color1ToolbarColor:o.extend("--ftds-page-designer-1-toolbar-color","for area color charts",l.colorCyan0),color2IconColor:o.extend("--ftds-page-designer-2-icon-color","for area color charts",l.colorBrand0),color2ToolbarColor:o.extend("--ftds-page-designer-2-toolbar-color","for area color charts",l.colorBrand0),color3IconColor:o.extend("--ftds-page-designer-3-icon-color","for area color charts",l.colorYellow200),color3ToolbarColor:o.extend("--ftds-page-designer-3-toolbar-color","for area color charts",l.colorYellow200),color4IconColor:o.extend("--ftds-page-designer-4-icon-color","for area color charts",l.colorUltramarine50),color4ToolbarColor:o.extend("--ftds-page-designer-4-toolbar-color","for area color charts",l.colorUltramarine50),color5IconColor:o.extend("--ftds-page-designer-5-icon-color","for area color charts",l.colorGreen0),color5ToolbarColor:o.extend("--ftds-page-designer-5-toolbar-color","for area color charts",l.colorGreen0),color6IconColor:o.extend("--ftds-page-designer-6-icon-color","for area color charts",l.colorOrange0),color6ToolbarColor:o.extend("--ftds-page-designer-6-toolbar-color","for area color charts",l.colorOrange0),color7IconColor:o.extend("--ftds-page-designer-7-icon-color","for area color charts",l.colorAvocado200),color7ToolbarColor:o.extend("--ftds-page-designer-7-toolbar-color","for area color charts",l.colorAvocado200),color8IconColor:o.extend("--ftds-page-designer-8-icon-color","for area color charts",l.colorBrown0),color8ToolbarColor:o.extend("--ftds-page-designer-8-toolbar-color","for area color charts",l.colorBrown0)};var fy={borderWidth:o.create("--ftds-notice-border-width","","SIZE","1px"),horizontalPadding:o.extend("--ftds-notice-horizontal-padding","",l.spacing3),verticalPadding:o.extend("--ftds-notice-vertical-padding","",l.spacing2),borderRadius:o.extend("--ftds-notice-border-radius","",l.borderRadiusS),gap:o.extend("--ftds-notice-gap","",l.spacing2),iconSize:o.extend("--ftds-notice-icon-size","",l.iconSize3),infoBackgroundColor:o.extend("--ftds-notice-info-background-color","",d.backgroundInfoSubtle),infoBorderColor:o.extend("--ftds-notice-info-border-color","",d.borderInfoSubtle),infoColor:o.extend("--ftds-notice-info-color","",d.contentInfoPrimary),infoIconColor:o.extend("--ftds-notice-info-icon-color","",d.contentInfoIconOnly),warningBackgroundColor:o.extend("--ftds-notice-warning-background-color","",d.backgroundWarningSubtle),warningBorderColor:o.extend("--ftds-notice-warning-border-color","",d.borderWarningSubtle),warningColor:o.extend("--ftds-notice-warning-color","",d.contentWarningPrimary),warningIconColor:o.extend("--ftds-notice-warning-icon-color","",d.contentWarningIconOnly),errorBackgroundColor:o.extend("--ftds-notice-error-background-color","",d.backgroundErrorSubtle),errorBorderColor:o.extend("--ftds-notice-error-border-color","",d.borderErrorSubtle),errorColor:o.extend("--ftds-notice-error-color","",d.contentErrorPrimary),errorIconColor:o.extend("--ftds-notice-error-icon-color","",d.contentErrorIconOnly),successBackgroundColor:o.extend("--ftds-notice-success-background-color","",d.backgroundSuccessSubtle),successBorderColor:o.extend("--ftds-notice-success-border-color","",d.borderSuccessSubtle),successColor:o.extend("--ftds-notice-success-color","",d.contentSuccessPrimary),successIconColor:o.extend("--ftds-notice-success-icon-color","",d.contentSuccessIconOnly),denseHorizontalPadding:o.create("--ftds-notice-dense-horizontal-padding","","SIZE","0px"),denseVerticalPadding:o.create("--ftds-notice-dense-vertical-padding","","SIZE","0px"),denseGap:o.extend("--ftds-notice-dense-gap","",l.spacing1),denseIconSize:o.extend("--ftds-notice-dense-icon-size","",l.iconSize2),denseBorderWidth:o.create("--ftds-notice-dense-border-width","","SIZE","0")};var by={offHoverStateLayerOpacity:o.extend("--ftds-toggle-off-hover-state-layer-opacity","",l.opacity16),offFocusStateLayerOpacity:o.extend("--ftds-toggle-off-focus-state-layer-opacity","",l.opacity16),offActiveStateLayerOpacity:o.extend("--ftds-toggle-off-active-state-layer-opacity","",l.opacity24),offDisabledComponentOpacity:o.extend("--ftds-toggle-off-disabled-component-opacity","",l.opacity40),offBackgroundColor:o.extend("--ftds-toggle-off-background-color","",d.contentGlobalSubtle),offIconColor:o.extend("--ftds-toggle-off-icon-color","",d.contentGlobalSubtle),offStateLayerColor:o.extend("--ftds-toggle-off-state-layer-color","",d.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ftds-toggle-on-hover-state-layer-opacity","",l.opacity16),onFocusStateLayerOpacity:o.extend("--ftds-toggle-on-focus-state-layer-opacity","",l.opacity16),onActiveStateLayerOpacity:o.extend("--ftds-toggle-on-active-state-layer-opacity","",l.opacity24),onDisabledComponentOpacity:o.extend("--ftds-toggle-on-disabled-component-opacity","",l.opacity40),onBackgroundColor:o.extend("--ftds-toggle-on-background-color","",d.contentActionPrimary),onStateLayerColor:o.extend("--ftds-toggle-on-state-layer-color","",d.contentActionPrimary),onIconColor:o.extend("--ftds-toggle-on-icon-color","",d.contentActionPrimary),color:o.extend("--ftds-toggle-color","",d.contentGlobalPrimary),focusFocusRingColor:o.extend("--ftds-toggle-focus-focus-ring-color","",d.borderActionFocusRing),gap:o.extend("--ftds-toggle-gap","",l.spacing3)};var Oy={iconSize:o.extend("--ftds-notification-icon-size","",l.iconSize4),leftPadding:o.extend("--ftds-notification-left-padding","",l.spacing5),rightPadding:o.extend("--ftds-notification-right-padding","",l.spacing4),verticalPadding:o.extend("--ftds-notification-vertical-padding","",l.spacing3),infoBackgroundColor:o.extend("--ftds-notification-info-background-color","",d.backgroundInfoSubtle),infoColor:o.extend("--ftds-notification-info-color","",d.contentInfoPrimary),infoIconColor:o.extend("--ftds-notification-info-icon-color","",d.contentInfoIconOnly),infoBorderColor:o.extend("--ftds-notification-info-border-color","",d.borderInfoSubtle),successBackgroundColor:o.extend("--ftds-notification-success-background-color","",d.backgroundSuccessSubtle),successColor:o.extend("--ftds-notification-success-color","",d.contentSuccessPrimary),successIconColor:o.extend("--ftds-notification-success-icon-color","",d.contentSuccessIconOnly),successBorderColor:o.extend("--ftds-notification-success-border-color","",d.borderSuccessSubtle),warningBackgroundColor:o.extend("--ftds-notification-warning-background-color","",d.backgroundWarningSubtle),warningColor:o.extend("--ftds-notification-warning-color","",d.contentWarningPrimary),warningIconColor:o.extend("--ftds-notification-warning-icon-color","",d.contentWarningIconOnly),warningBorderColor:o.extend("--ftds-notification-warning-border-color","",d.borderWarningSubtle),errorBackgroundColor:o.extend("--ftds-notification-error-background-color","",d.backgroundErrorSubtle),errorColor:o.extend("--ftds-notification-error-color","",d.contentErrorPrimary),errorIconColor:o.extend("--ftds-notification-error-icon-color","",d.contentErrorIconOnly),errorBorderColor:o.extend("--ftds-notification-error-border-color","",d.borderErrorSubtle),borderRadius:o.extend("--ftds-notification-border-radius","",l.borderRadiusPill),borderWidth:o.create("--ftds-notification-border-width","","SIZE","1px"),leadingGap:o.extend("--ftds-notification-leading-gap","",l.spacing2),trailingGap:o.extend("--ftds-notification-trailing-gap","",l.spacing8)};var Ty={horizontalPadding:o.extend("--ftds-tooltip-horizontal-padding","",l.spacing2),verticalPadding:o.extend("--ftds-tooltip-vertical-padding","",l.spacing2),borderRadius:o.extend("--ftds-tooltip-border-radius","",l.borderRadiusS),color:o.extend("--ftds-tooltip-color","",d.contentGlobalOnColor),backgroundColor:o.extend("--ftds-tooltip-background-color","",d.contentGlobalPrimary),backgroundOpacity:o.extend("--ftds-tooltip-background-opacity","",l.opacity80),shadow:o.extend("--ftds-tooltip-shadow","",l.shadowElevation02),maxWidth:o.create("--ftds-tooltip-max-width","","SIZE","256px"),gap:o.extend("--ftds-tooltip-gap","",l.spacing05)};var ky={verticalPadding:o.extend("--ftds-reorderable-list-vertical-padding","",l.spacing4),gap:o.extend("--ftds-reorderable-list-gap","",l.spacing1),borderRadius:o.extend("--ftds-reorderable-list-border-radius","",l.borderRadiusM),reorderableItemTitleMarginRight:o.extend("--ftds-reorderable-list-reorderable-item-title-margin-right","",l.spacing6),reorderableItemTitleColor:o.extend("--ftds-reorderable-list-reorderable-item-title-color","",d.contentGlobalPrimary),reorderableItemLeftButtonsGroupMarginRight:o.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-margin-right","",l.spacing6),reorderableItemLeftButtonsGroupHorizontalGap:o.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-horizontal-gap","",l.spacing2),reorderableItemRightButtonsGroupHorizontalGap:o.extend("--ftds-reorderable-list-reorderable-item-right-buttons-group-horizontal-gap","",l.spacing2),reorderableItemUsersCountColor:o.extend("--ftds-reorderable-list-reorderable-item-users-count-color","",d.contentGlobalPrimary),reorderableItemUsersCountMarginRight:o.extend("--ftds-reorderable-list-reorderable-item-users-count-margin-right","",l.spacing6),reorderableItemBackgroundColor:o.extend("--ftds-reorderable-list-reorderable-item-background-color","",d.backgroundGlobalOnSurface),reorderableItemWarningMessageGap:o.extend("--ftds-reorderable-list-reorderable-item-warning-message-gap","",l.spacing1),reorderableItemWarningMessageColor:o.extend("--ftds-reorderable-list-reorderable-item-warning-message-color","",d.contentWarningPrimary),reorderableItemWarningMessageIconColor:o.extend("--ftds-reorderable-list-reorderable-item-warning-message-icon-color","",d.contentWarningIconOnly),reorderableItemGripColor:o.extend("--ftds-reorderable-list-reorderable-item-grip-color","",d.contentGlobalSecondary),reorderableItemGripOpacity:o.extend("--ftds-reorderable-list-reorderable-item-grip-opacity","",l.opacity48),boxShadow:o.extend("--ftds-reorderable-list-box-shadow","",l.shadowElevation01),borderWidth:o.create("--ftds-reorderable-list-border-width","","SIZE","1px"),reorderableItemsGap:o.extend("--ftds-reorderable-list-reorderable-items-gap","",l.spacing2),leftPadding:o.extend("--ftds-reorderable-list-left-padding","",l.spacing2),rightPadding:o.extend("--ftds-reorderable-list-right-padding","",l.spacing6),borderColor:o.extend("--ftds-reorderable-list-border-color","",d.borderGlobalPrimary),backgroundColor:o.extend("--ftds-reorderable-list-background-color","",d.backgroundGlobalOnSurfaceDark)};var $y={menuHorizontalPadding:o.extend("--ftds-date-range-picker-menu-horizontal-padding","",l.spacing4),menuVerticalPadding:o.extend("--ftds-date-range-picker-menu-vertical-padding","",l.spacing4),menuVerticalGap:o.extend("--ftds-date-range-picker-menu-vertical-gap","",l.spacing4),menuButtonsVerticalGap:o.extend("--ftds-date-range-picker-menu-buttons-vertical-gap","",l.spacing2)};var ti;(function(t){t.brand="brand",t.neutral="neutral",t.info="info",t.success="success",t.warning="warning",t.error="error"})(ti||(ti={}));var zr;(function(t){t.large="large",t.medium="medium",t.small="small"})(zr||(zr={}));var Hr=m($());function $s(t,e){let r=wr[t];return Hr.css`
|
|
114
|
+
`;var lt=m($()),T=m(R());var Ft=m($(),1),Jt=t=>typeof t=="string"?(0,Ft.unsafeCSS)(t):t,o=class{static create(e,r,i,n){let a=c=>Jt(c??n),s=Ft.css`var(${Jt(e)}, ${a(n)})`;return s.name=e,s.description=r,s.category=i,s.defaultValue=n,s.defaultCssValue=a,s.set=c=>Fs(s,c??a(n)),s.get=c=>Ft.css`var(${Jt(e)}, ${a(c)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>n,s}static extend(e,r,i,n){let a=c=>i.get(c??n),s=Ft.css`var(${Jt(e)}, ${a(n)})`;return s.name=e,s.description=r,s.category=i.category,s.fallbackVariable=i,s.defaultValue=n,s.defaultCssValue=a,s.set=c=>Fs(s,c??a(n)),s.get=c=>Ft.css`var(${Jt(e)}, ${a(c)})`,s.breadcrumb=()=>[i.name,...i.breadcrumb()],s.lastResortDefaultValue=()=>n??i.lastResortDefaultValue(),s}static external(e,r){let i=a=>e.defaultCssValue(a),n=Ft.css`var(${Jt(e.name)}, ${i(e.defaultValue)})`;return n.name=e.name,n.category=e.category,n.fallbackVariable=e.fallbackVariable,n.defaultValue=e.defaultValue,n.context=r,n.defaultCssValue=i,n.set=a=>e.set(a),n.get=a=>Ft.css`var(${Jt(e.name)}, ${i(a)})`,n.breadcrumb=()=>e.breadcrumb(),n.lastResortDefaultValue=()=>e.lastResortDefaultValue(),n}};function Fs(t,e){return Jt(`${t.name}: ${e}`)}var l={colorWhite:o.create("--ftds-color-white","","COLOR","#ffffff"),colorGray0:o.create("--ftds-color-gray-0","","COLOR","#71718e"),colorGray10:o.create("--ftds-color-gray-10","","COLOR","#fbfbfc"),colorGray20:o.create("--ftds-color-gray-20","","COLOR","#f2f2f5"),colorGray30:o.create("--ftds-color-gray-30","","COLOR","#e9e9ed"),colorGray40:o.create("--ftds-color-gray-40","","COLOR","#e0e0e6"),colorGray50:o.create("--ftds-color-gray-50","","COLOR","#cdcdd7"),colorGray60:o.create("--ftds-color-gray-60","","COLOR","#bbbbc9"),colorGray70:o.create("--ftds-color-gray-70","","COLOR","#a8a8ba"),colorGray80:o.create("--ftds-color-gray-80","","COLOR","#9696ab"),colorGray90:o.create("--ftds-color-gray-90","","COLOR","#83839d"),colorGray100:o.create("--ftds-color-gray-100","","COLOR","#62627c"),colorGray200:o.create("--ftds-color-gray-200","","COLOR","#545469"),colorGray300:o.create("--ftds-color-gray-300","","COLOR","#454557"),colorGray400:o.create("--ftds-color-gray-400","","COLOR","#363644"),colorGray500:o.create("--ftds-color-gray-500","","COLOR","#282832"),colorGray600:o.create("--ftds-color-gray-600","","COLOR","#19191f"),colorGray700:o.create("--ftds-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:o.create("--ftds-color-brand-0","","COLOR","#9d207b"),colorBrand10:o.create("--ftds-color-brand-10","","COLOR","#f7edf4"),colorBrand20:o.create("--ftds-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:o.create("--ftds-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:o.create("--ftds-color-brand-40","","COLOR","#d395c2"),colorBrand50:o.create("--ftds-color-brand-50","","COLOR","#c778b1"),colorBrand60:o.create("--ftds-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:o.create("--ftds-color-brand-70","","COLOR","#ae3e90"),colorBrand100:o.create("--ftds-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:o.create("--ftds-color-brand-200","","COLOR","#78185e"),colorBrand300:o.create("--ftds-color-brand-300","","COLOR","#62144d"),colorBrand400:o.create("--ftds-color-brand-400","","COLOR","#4d103c"),colorBrand500:o.create("--ftds-color-brand-500","","COLOR","#380b2c"),colorBrand600:o.create("--ftds-color-brand-600","","COLOR","#23071b"),colorBrand700:o.create("--ftds-color-brand-700","","COLOR","#0d030b"),colorCyan0:o.create("--ftds-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:o.create("--ftds-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:o.create("--ftds-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:o.create("--ftds-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:o.create("--ftds-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:o.create("--ftds-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:o.create("--ftds-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:o.create("--ftds-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:o.create("--ftds-color-cyan-100","","COLOR","#0c849c"),colorCyan200:o.create("--ftds-color-cyan-200","","COLOR","#0a7085"),colorCyan300:o.create("--ftds-color-cyan-300","","COLOR","#085c6d"),colorCyan400:o.create("--ftds-color-cyan-400","","COLOR","#074856"),colorCyan500:o.create("--ftds-color-cyan-500","","COLOR","#05343e"),colorCyan600:o.create("--ftds-color-cyan-600","","COLOR","#032127"),colorCyan700:o.create("--ftds-color-cyan-700","","COLOR","#010d0f"),colorGreen0:o.create("--ftds-color-green-0","","COLOR","#21a274"),colorGreen10:o.create("--ftds-color-green-10","","COLOR","#edf7f3"),colorGreen20:o.create("--ftds-color-green-20","","COLOR","#cfebe1"),colorGreen30:o.create("--ftds-color-green-30","","COLOR","#b2dfcf"),colorGreen40:o.create("--ftds-color-green-40","","COLOR","#95d3bd"),colorGreen50:o.create("--ftds-color-green-50","","COLOR","#78c7ab"),colorGreen60:o.create("--ftds-color-green-60","","COLOR","#5bba98"),colorGreen70:o.create("--ftds-color-green-70","","COLOR","#3eae86"),colorGreen100:o.create("--ftds-color-green-100","","COLOR","#1d8d65"),colorGreen200:o.create("--ftds-color-green-200","","COLOR","#187856"),colorGreen300:o.create("--ftds-color-green-300","","COLOR","#146246"),colorGreen400:o.create("--ftds-color-green-400","","COLOR","#104d37"),colorGreen500:o.create("--ftds-color-green-500","","COLOR","#0b3828"),colorGreen600:o.create("--ftds-color-green-600","","COLOR","#072319"),colorGreen700:o.create("--ftds-color-green-700","","COLOR","#030d0a"),colorOrange0:o.create("--ftds-color-orange-0","","COLOR","#F2700D"),colorOrange10:o.create("--ftds-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:o.create("--ftds-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:o.create("--ftds-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:o.create("--ftds-color-orange-40","","COLOR","#FECB90"),colorOrange50:o.create("--ftds-color-orange-50","","COLOR","#FCB76E"),colorOrange60:o.create("--ftds-color-orange-60","","COLOR","#F9A34D"),colorOrange70:o.create("--ftds-color-orange-70","","COLOR","#F68B2C"),colorOrange100:o.create("--ftds-color-orange-100","","COLOR","#D35909"),colorOrange200:o.create("--ftds-color-orange-200","","COLOR","#B74706"),colorOrange300:o.create("--ftds-color-orange-300","","COLOR","#913503"),colorOrange400:o.create("--ftds-color-orange-400","","COLOR","#6F2601"),colorOrange500:o.create("--ftds-color-orange-500","","COLOR","#4D1800"),colorOrange600:o.create("--ftds-color-orange-600","","COLOR","#330F00"),colorOrange700:o.create("--ftds-color-orange-700","","COLOR","#140600"),colorRed0:o.create("--ftds-color-red-0","","COLOR","#b40e2c"),colorRed10:o.create("--ftds-color-red-10","","COLOR","#f9ebed"),colorRed20:o.create("--ftds-color-red-20","","COLOR","#efcbd2"),colorRed30:o.create("--ftds-color-red-30","","COLOR","#e5acb6"),colorRed40:o.create("--ftds-color-red-40","","COLOR","#db8c9b"),colorRed50:o.create("--ftds-color-red-50","","COLOR","#d16d7f"),colorRed60:o.create("--ftds-color-red-60","","COLOR","#c84d63"),colorRed70:o.create("--ftds-color-red-70","","COLOR","#be2e48"),colorRed100:o.create("--ftds-color-red-100","","COLOR","#9c0c26"),colorRed200:o.create("--ftds-color-red-200","","COLOR","#850a20"),colorRed300:o.create("--ftds-color-red-300","","COLOR","#6d081b"),colorRed400:o.create("--ftds-color-red-400","","COLOR","#560715"),colorRed500:o.create("--ftds-color-red-500","","COLOR","#3e050f"),colorRed600:o.create("--ftds-color-red-600","","COLOR","#270309"),colorRed700:o.create("--ftds-color-red-700","","COLOR","#0f0104"),colorYellow0:o.create("--ftds-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:o.create("--ftds-color-yellow-10","","COLOR","#fefae9"),colorYellow20:o.create("--ftds-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:o.create("--ftds-color-yellow-30","","COLOR","#faedaa"),colorYellow40:o.create("--ftds-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:o.create("--ftds-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:o.create("--ftds-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:o.create("--ftds-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:o.create("--ftds-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:o.create("--ftds-color-yellow-200","","COLOR","#b3970a"),colorYellow300:o.create("--ftds-color-yellow-300","","COLOR","#947c08"),colorYellow400:o.create("--ftds-color-yellow-400","","COLOR","#746206"),colorYellow500:o.create("--ftds-color-yellow-500","","COLOR","#554705"),colorYellow600:o.create("--ftds-color-yellow-600","","COLOR","#352d03"),colorYellow700:o.create("--ftds-color-yellow-700","","COLOR","#161201"),colorUltramarine0:o.create("--ftds-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:o.create("--ftds-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:o.create("--ftds-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:o.create("--ftds-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:o.create("--ftds-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:o.create("--ftds-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:o.create("--ftds-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:o.create("--ftds-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:o.create("--ftds-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:o.create("--ftds-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:o.create("--ftds-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:o.create("--ftds-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:o.create("--ftds-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:o.create("--ftds-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:o.create("--ftds-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:o.create("--ftds-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:o.create("--ftds-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:o.create("--ftds-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:o.create("--ftds-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:o.create("--ftds-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:o.create("--ftds-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:o.create("--ftds-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:o.create("--ftds-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:o.create("--ftds-color-avocado-100","","COLOR","#84A423"),colorAvocado200:o.create("--ftds-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:o.create("--ftds-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:o.create("--ftds-color-avocado-400","","COLOR","#495B13"),colorAvocado500:o.create("--ftds-color-avocado-500","","COLOR","#35420E"),colorAvocado600:o.create("--ftds-color-avocado-600","","COLOR","#212A09"),colorAvocado700:o.create("--ftds-color-avocado-700","","COLOR","#0E1104"),colorBrown0:o.create("--ftds-color-brown-0","","COLOR","#B26F4D"),colorBrown10:o.create("--ftds-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:o.create("--ftds-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:o.create("--ftds-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:o.create("--ftds-color-brown-40","","COLOR","#DABAAA"),colorBrown50:o.create("--ftds-color-brown-50","","COLOR","#D0A792"),colorBrown60:o.create("--ftds-color-brown-60","","COLOR","#C6947B"),colorBrown70:o.create("--ftds-color-brown-70","","COLOR","#BC8264"),colorBrown100:o.create("--ftds-color-brown-100","","COLOR","#9B6143"),colorBrown200:o.create("--ftds-color-brown-200","","COLOR","#845239"),colorBrown300:o.create("--ftds-color-brown-300","","COLOR","#6D442F"),colorBrown400:o.create("--ftds-color-brown-400","","COLOR","#553525"),colorBrown500:o.create("--ftds-color-brown-500","","COLOR","#3E271B"),colorBrown600:o.create("--ftds-color-brown-600","","COLOR","#271811"),colorBrown700:o.create("--ftds-color-brown-700","","COLOR","#100A07"),spacing1:o.create("--ftds-spacing-1","","SIZE","0.25rem"),spacing2:o.create("--ftds-spacing-2","","SIZE","calc(0.25rem*2)"),spacing3:o.create("--ftds-spacing-3","","SIZE","calc(0.25rem*3)"),spacing4:o.create("--ftds-spacing-4","","SIZE","calc(0.25rem*4)"),spacing5:o.create("--ftds-spacing-5","","SIZE","calc(0.25rem*5)"),spacing6:o.create("--ftds-spacing-6","","SIZE","calc(0.25rem*6)"),spacing8:o.create("--ftds-spacing-8","","SIZE","calc(0.25rem*8)"),spacing10:o.create("--ftds-spacing-10","","SIZE","calc(0.25rem*10)"),spacing12:o.create("--ftds-spacing-12","","SIZE","calc(0.25rem*12)"),spacing16:o.create("--ftds-spacing-16","","SIZE","calc(0.25rem*16)"),spacing20:o.create("--ftds-spacing-20","","SIZE","calc(0.25rem*20)"),spacing24:o.create("--ftds-spacing-24","","SIZE","calc(0.25rem*24)"),spacing28:o.create("--ftds-spacing-28","","SIZE","calc(0.25rem*28)"),spacing32:o.create("--ftds-spacing-32","","SIZE","calc(0.25rem*32)"),spacing05:o.create("--ftds-spacing-0-5","","SIZE","calc(0.25rem*0.5)"),borderRadiusS:o.create("--ftds-border-radius-s","","SIZE","4px"),borderRadiusM:o.create("--ftds-border-radius-m","","SIZE","8px"),borderRadiusL:o.create("--ftds-border-radius-l","","SIZE","12px"),borderRadiusXl:o.create("--ftds-border-radius-xl","","SIZE","16px"),borderRadiusPill:o.create("--ftds-border-radius-pill","","SIZE","999px"),borderRadiusRound:o.create("--ftds-border-radius-round","","SIZE","50%"),iconSize1:o.create("--ftds-icon-size-1","","SIZE","0.75rem"),iconSize2:o.create("--ftds-icon-size-2","","SIZE","1rem"),iconSize3:o.create("--ftds-icon-size-3","","SIZE","1.25rem"),iconSize4:o.create("--ftds-icon-size-4","","SIZE","1.5rem"),iconSize5:o.create("--ftds-icon-size-5","","SIZE","2rem"),iconSize6:o.create("--ftds-icon-size-6","","SIZE","3rem"),opacity0:o.create("--ftds-opacity-0","","NUMBER","0"),opacity8:o.create("--ftds-opacity-8","","NUMBER","0.08"),opacity12:o.create("--ftds-opacity-12","","NUMBER","0.12"),opacity16:o.create("--ftds-opacity-16","","NUMBER","0.16"),opacity24:o.create("--ftds-opacity-24","","NUMBER","0.24"),opacity32:o.create("--ftds-opacity-32","","NUMBER","0.32"),opacity40:o.create("--ftds-opacity-40","","NUMBER","0.4"),opacity48:o.create("--ftds-opacity-48","","NUMBER","0.48"),opacity80:o.create("--ftds-opacity-80","","NUMBER","0.8"),shadowElevation01:o.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:o.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:o.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:o.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:o.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:o.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:o.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:o.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:o.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)")},Ln={fontFamily:o.create("--ftds-typography-display-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-display-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-display-line-height","","SIZE","1.2"),fontSize:o.create("--ftds-typography-display-font-size","","SIZE","2.5rem"),letterSpacing:o.create("--ftds-typography-display-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ftds-typography-display-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-display-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-display-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-display-text-case","","UNKNOWN","none")},Nn={fontFamily:o.create("--ftds-typography-title-1-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-title-1-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-title-1-line-height","","SIZE","1.2"),fontSize:o.create("--ftds-typography-title-1-font-size","","SIZE","1.5rem"),letterSpacing:o.create("--ftds-typography-title-1-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ftds-typography-title-1-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-title-1-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-title-1-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-title-1-text-case","","UNKNOWN","none")},kn={fontFamily:o.create("--ftds-typography-title-2-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-title-2-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-title-2-line-height","","SIZE","1.2"),fontSize:o.create("--ftds-typography-title-2-font-size","","SIZE","1.25rem"),letterSpacing:o.create("--ftds-typography-title-2-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ftds-typography-title-2-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-title-2-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-title-2-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-title-2-text-case","","UNKNOWN","none")},Pn={fontFamily:o.create("--ftds-typography-title-3-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-title-3-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-title-3-line-height","","SIZE","1.2"),fontSize:o.create("--ftds-typography-title-3-font-size","","SIZE","1.125rem"),letterSpacing:o.create("--ftds-typography-title-3-letter-spacing","","SIZE","-0.01em"),paragraphSpacing:o.create("--ftds-typography-title-3-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-title-3-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-title-3-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-title-3-text-case","","UNKNOWN","none")},Dn={fontFamily:o.create("--ftds-typography-body-1-regular-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-1-regular-font-weight","","UNKNOWN","400"),lineHeight:o.create("--ftds-typography-body-1-regular-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-1-regular-font-size","","SIZE","1rem"),letterSpacing:o.create("--ftds-typography-body-1-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-1-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-1-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-1-regular-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-1-regular-text-case","","UNKNOWN","none")},Mn={fontFamily:o.create("--ftds-typography-body-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-1-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-body-1-medium-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-1-medium-font-size","","SIZE","1rem"),letterSpacing:o.create("--ftds-typography-body-1-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-1-medium-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-1-medium-text-case","","UNKNOWN","none")},$n={fontFamily:o.create("--ftds-typography-body-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-body-1-semibold-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-1-semibold-font-size","","SIZE","1rem"),letterSpacing:o.create("--ftds-typography-body-1-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-1-semibold-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-1-semibold-text-case","","UNKNOWN","none")},Bn={fontFamily:o.create("--ftds-typography-body-2-regular-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-2-regular-font-weight","","UNKNOWN","400"),lineHeight:o.create("--ftds-typography-body-2-regular-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-2-regular-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-body-2-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-2-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-2-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-2-regular-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-2-regular-text-case","","UNKNOWN","none")},Or={fontFamily:o.create("--ftds-typography-body-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-2-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-body-2-medium-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-2-medium-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-body-2-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-2-medium-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-2-medium-text-case","","UNKNOWN","none")},ou={fontFamily:o.create("--ftds-typography-body-2-medium-underline-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-2-medium-underline-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-body-2-medium-underline-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-2-medium-underline-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-body-2-medium-underline-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-2-medium-underline-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-2-medium-underline-paragraph-indent","","UNKNOWN","0"),textCase:o.create("--ftds-typography-body-2-medium-underline-text-case","","UNKNOWN","none"),textDecoration:o.create("--ftds-typography-body-2-medium-underline-text-decoration","","UNKNOWN","underline")},Fn={fontFamily:o.create("--ftds-typography-body-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-body-2-semibold-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-2-semibold-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-body-2-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-2-semibold-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-2-semibold-text-case","","UNKNOWN","none")},Un={fontFamily:o.create("--ftds-typography-label-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-label-1-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-label-1-medium-line-height","","SIZE","110%"),fontSize:o.create("--ftds-typography-label-1-medium-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-label-1-medium-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ftds-typography-label-1-medium-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ftds-typography-label-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-label-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-label-1-medium-text-decoration","","UNKNOWN","none")},zn={fontFamily:o.create("--ftds-typography-label-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-label-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-label-1-semibold-line-height","","SIZE","110%"),fontSize:o.create("--ftds-typography-label-1-semibold-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-label-1-semibold-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ftds-typography-label-1-semibold-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ftds-typography-label-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-label-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-label-1-semibold-text-decoration","","UNKNOWN","none")},Hn={fontFamily:o.create("--ftds-typography-label-1-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-label-1-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ftds-typography-label-1-bold-line-height","","SIZE","110%"),fontSize:o.create("--ftds-typography-label-1-bold-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-label-1-bold-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ftds-typography-label-1-bold-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ftds-typography-label-1-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-label-1-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-label-1-bold-text-decoration","","UNKNOWN","none")},Wn={fontFamily:o.create("--ftds-typography-label-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-label-2-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-label-2-medium-line-height","","SIZE","110%"),fontSize:o.create("--ftds-typography-label-2-medium-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ftds-typography-label-2-medium-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ftds-typography-label-2-medium-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ftds-typography-label-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-label-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-label-2-medium-text-decoration","","UNKNOWN","none")},Gn={fontFamily:o.create("--ftds-typography-label-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-label-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-label-2-semibold-line-height","","SIZE","110%"),fontSize:o.create("--ftds-typography-label-2-semibold-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ftds-typography-label-2-semibold-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ftds-typography-label-2-semibold-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ftds-typography-label-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-label-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-label-2-semibold-text-decoration","","UNKNOWN","none")},Vn={fontFamily:o.create("--ftds-typography-label-2-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-label-2-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ftds-typography-label-2-bold-line-height","","SIZE","110%"),fontSize:o.create("--ftds-typography-label-2-bold-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ftds-typography-label-2-bold-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ftds-typography-label-2-bold-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ftds-typography-label-2-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-label-2-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-label-2-bold-text-decoration","","UNKNOWN","none")},jn={fontFamily:o.create("--ftds-typography-caption-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-1-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-caption-1-medium-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-1-medium-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ftds-typography-caption-1-medium-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-1-medium-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-1-medium-text-decoration","","UNKNOWN","none")},Kn={fontFamily:o.create("--ftds-typography-caption-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-caption-1-semibold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-1-semibold-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ftds-typography-caption-1-semibold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-1-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-1-semibold-text-decoration","","UNKNOWN","none")},Zn={fontFamily:o.create("--ftds-typography-caption-1-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-1-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ftds-typography-caption-1-bold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-1-bold-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ftds-typography-caption-1-bold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-1-bold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-1-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-1-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-1-bold-text-decoration","","UNKNOWN","none")},er={fontFamily:o.create("--ftds-typography-caption-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-2-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-caption-2-medium-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-2-medium-font-size","","SIZE","0.6875rem"),letterSpacing:o.create("--ftds-typography-caption-2-medium-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-2-medium-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-2-medium-text-decoration","","UNKNOWN","none")},qn={fontFamily:o.create("--ftds-typography-caption-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-caption-2-semibold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-2-semibold-font-size","","SIZE","0.6875rem"),letterSpacing:o.create("--ftds-typography-caption-2-semibold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-2-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-2-semibold-text-decoration","","UNKNOWN","none")},Yn={fontFamily:o.create("--ftds-typography-caption-2-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-2-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ftds-typography-caption-2-bold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-2-bold-font-size","","SIZE","0.6875rem"),letterSpacing:o.create("--ftds-typography-caption-2-bold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-2-bold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-2-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-2-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-2-bold-text-decoration","","UNKNOWN","none")},Xn={fontFamily:o.create("--ftds-typography-caption-3-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-3-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-caption-3-medium-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-3-medium-font-size","","SIZE","0.625rem"),letterSpacing:o.create("--ftds-typography-caption-3-medium-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-3-medium-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-3-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-3-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-3-medium-text-decoration","","UNKNOWN","none")},Qn={fontFamily:o.create("--ftds-typography-caption-3-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-3-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-caption-3-semibold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-3-semibold-font-size","","SIZE","0.625rem"),letterSpacing:o.create("--ftds-typography-caption-3-semibold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-3-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-3-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-3-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-3-semibold-text-decoration","","UNKNOWN","none")},Jn={fontFamily:o.create("--ftds-typography-caption-3-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-3-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ftds-typography-caption-3-bold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-3-bold-font-size","","SIZE","0.625rem"),letterSpacing:o.create("--ftds-typography-caption-3-bold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-3-bold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-3-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-3-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-3-bold-text-decoration","","UNKNOWN","none")},wr={display:Ln,"title-1":Nn,"title-2":kn,"title-3":Pn,"body-1-regular":Dn,"body-1-medium":Mn,"body-1-semibold":$n,"body-2-regular":Bn,"body-2-medium":Or,"body-2-medium-underline":ou,"body-2-semibold":Fn,"label-1-medium":Un,"label-1-semibold":zn,"label-1-bold":Hn,"label-2-medium":Wn,"label-2-semibold":Gn,"label-2-bold":Vn,"caption-1-medium":jn,"caption-1-semibold":Kn,"caption-1-bold":Zn,"caption-2-medium":er,"caption-2-semibold":qn,"caption-2-bold":Yn,"caption-3-medium":Xn,"caption-3-semibold":Qn,"caption-3-bold":Jn};var d={backgroundActionPrimary:o.extend("--ftds-background-action-primary","Used as backgorund of primary action components.",l.colorBrand0),backgroundErrorSubtle:o.extend("--ftds-background-error-subtle","Used as background of subtle error components.",l.colorRed10),backgroundInfoSubtle:o.extend("--ftds-background-info-subtle","Used as background of subtle information components.",l.colorCyan10),backgroundWarningSubtle:o.extend("--ftds-background-warning-subtle","Used as background of subtle information components.",l.colorOrange10),backgroundSuccessSubtle:o.extend("--ftds-background-success-subtle","Used as background of subtle success components.",l.colorGreen10),backgroundGlobalSurface:o.extend("--ftds-background-global-surface","Used as app background.",l.colorWhite),backgroundGlobalOnSurface:o.extend("--ftds-background-global-on-surface","Used as background on element on the base background, like cards.",l.colorGray10),backgroundGlobalOnSurfaceDark:o.extend("--ftds-background-global-on-surface-dark","Used as background on element that need background separation.",l.colorGray30),contentActionPrimary:o.extend("--ftds-content-action-primary","Used on label of primary action on light surface.",l.colorBrand0),contentWarningPrimary:o.extend("--ftds-content-warning-primary","Used on label of warning messages on light surface.",l.colorOrange200),contentWarningIconOnly:o.extend("--ftds-content-warning-icon-only","Used on warning status icons alone",l.colorOrange0),contentErrorPrimary:o.extend("--ftds-content-error-primary","Used on label of error messages on light surface.",l.colorRed0),contentErrorIconOnly:o.extend("--ftds-content-error-icon-only","Used on error status icons alone",l.colorRed70),contentInfoPrimary:o.extend("--ftds-content-info-primary","Used on label of information messages on light surface.",l.colorCyan200),contentInfoIconOnly:o.extend("--ftds-content-info-icon-only","Used on info status icons alone",l.colorCyan0),contentSuccessPrimary:o.extend("--ftds-content-success-primary","Used on label of success messages on light surface.",l.colorGreen200),contentSuccessIconOnly:o.extend("--ftds-content-success-icon-only","Used on success status icons alone",l.colorGreen0),contentGlobalPrimary:o.extend("--ftds-content-global-primary","Used for main content on the page.",l.colorGray500),contentGlobalSecondary:o.extend("--ftds-content-global-secondary",`Used for secondary content, often paired with primary content.
|
|
115
|
+
Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",l.colorGray0),contentGlobalOnColor:o.extend("--ftds-content-global-on-color","Used for content on a dominant color.",l.colorWhite),borderActionPrimary:o.extend("--ftds-border-action-primary","Used as border for primary action components.",l.colorBrand0),borderActionFocusRing:o.extend("--ftds-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",l.colorCyan0),borderWarningPrimary:o.extend("--ftds-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",l.colorOrange200),borderWarningSubtle:o.extend("--ftds-border-warning-subtle","Used as border for warning components.",l.colorOrange30),borderSuccessPrimary:o.extend("--ftds-border-success-primary","Used as border for success buttons.",l.colorGreen200),borderSuccessSubtle:o.extend("--ftds-border-success-subtle","Used as border for success components.",l.colorGreen30),borderErrorPrimary:o.extend("--ftds-border-error-primary","Used as border for text fields in error states.",l.colorRed0),borderErrorSubtle:o.extend("--ftds-border-error-subtle","Used as border for error components.",l.colorRed30),borderInfoPrimary:o.extend("--ftds-border-info-primary","Used as border for buttons in info color.",l.colorCyan200),borderInfoSubtle:o.extend("--ftds-border-info-subtle","Used as border for information components.",l.colorCyan30),borderGlobalPrimary:o.extend("--ftds-border-global-primary","Used as border for element like input.",l.colorGray50),borderGlobalSubtle:o.extend("--ftds-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",l.colorGray30),borderInputPrimary:o.extend("--ftds-border-input-primary","Used as border for checkboxes and radio buttons",l.colorGray80),borderNeutralPrimary:o.extend("--ftds-border-neutral-primary","Used as border for neutral secondary buttons",l.colorGray200)};var f={largeHeight:o.create("--ftds-button-large-height","","SIZE","40px"),largeHorizontalPadding:o.extend("--ftds-button-large-horizontal-padding","",l.spacing4),largeGap:o.extend("--ftds-button-large-gap","",l.spacing2),largeBorderRadius:o.extend("--ftds-button-large-border-radius","",l.borderRadiusS),largeIconSize:o.extend("--ftds-button-large-icon-size","",l.iconSize3),largeBorderWidth:o.create("--ftds-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:o.create("--ftds-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:o.create("--ftds-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:o.create("--ftds-button-large-icon-only-width","","SIZE","40px"),mediumHeight:o.create("--ftds-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:o.extend("--ftds-button-medium-horizontal-padding","",l.spacing3),mediumGap:o.extend("--ftds-button-medium-gap","",l.spacing2),mediumBorderRadius:o.extend("--ftds-button-medium-border-radius","",l.borderRadiusS),mediumIconSize:o.extend("--ftds-button-medium-icon-size","",l.iconSize2),mediumBorderWidth:o.create("--ftds-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:o.create("--ftds-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:o.create("--ftds-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:o.create("--ftds-button-medium-icon-only-width","","SIZE","30px"),smallHeight:o.create("--ftds-button-small-height","","SIZE","20px"),smallHorizontalPadding:o.extend("--ftds-button-small-horizontal-padding","",l.spacing2),smallGap:o.extend("--ftds-button-small-gap","",l.spacing1),smallBorderRadius:o.extend("--ftds-button-small-border-radius","",l.borderRadiusS),smallIconSize:o.extend("--ftds-button-small-icon-size","",l.iconSize1),smallBorderWidth:o.create("--ftds-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:o.create("--ftds-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:o.create("--ftds-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:o.create("--ftds-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:o.create("--ftds-button-x-small-height","","SIZE","16px"),xSmallIconSize:o.extend("--ftds-button-x-small-icon-size","",l.iconSize1),xSmallFocusOutlineOffset:o.create("--ftds-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:o.create("--ftds-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:o.create("--ftds-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:o.extend("--ftds-button-round-border-radius","",l.borderRadiusPill),primaryBrandBackgroundColor:o.extend("--ftds-button-primary-brand-background-color","",d.backgroundActionPrimary),primaryBrandColor:o.extend("--ftds-button-primary-brand-color","",d.contentGlobalOnColor),primaryBrandIconColor:o.extend("--ftds-button-primary-brand-icon-color","",d.contentGlobalOnColor),primaryBrandStateLayerColor:o.extend("--ftds-button-primary-brand-state-layer-color","",d.contentGlobalOnColor),primaryBrandHoverStateLayerOpacity:o.extend("--ftds-button-primary-brand-hover-state-layer-opacity","",l.opacity16),primaryBrandFocusStateLayerOpacity:o.extend("--ftds-button-primary-brand-focus-state-layer-opacity","",l.opacity16),primaryBrandActiveStateLayerOpacity:o.extend("--ftds-button-primary-brand-active-state-layer-opacity","",l.opacity24),primaryBrandDisabledComponentOpacity:o.extend("--ftds-button-primary-brand-disabled-component-opacity","",l.opacity40),focusFocusRingColor:o.extend("--ftds-button-focus-focus-ring-color","",d.borderActionFocusRing),tertiaryBrandBackgroundColor:o.create("--ftds-button-tertiary-brand-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryBrandColor:o.extend("--ftds-button-tertiary-brand-color","",d.contentActionPrimary),tertiaryBrandIconColor:o.extend("--ftds-button-tertiary-brand-icon-color","",d.contentActionPrimary),tertiaryBrandStateLayerColor:o.extend("--ftds-button-tertiary-brand-state-layer-color","",d.contentActionPrimary),tertiaryBrandHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-brand-hover-state-layer-opacity","",l.opacity8),tertiaryBrandFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-brand-focus-state-layer-opacity","",l.opacity8),tertiaryBrandActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-brand-active-state-layer-opacity","",l.opacity16),tertiaryBrandDisabledComponentOpacity:o.extend("--ftds-button-tertiary-brand-disabled-component-opacity","",l.opacity40),tertiaryInfoBackgroundColor:o.create("--ftds-button-tertiary-info-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryInfoColor:o.extend("--ftds-button-tertiary-info-color","",d.contentInfoPrimary),tertiaryInfoIconColor:o.extend("--ftds-button-tertiary-info-icon-color","",d.contentInfoPrimary),tertiaryInfoStateLayerColor:o.extend("--ftds-button-tertiary-info-state-layer-color","",d.contentInfoPrimary),tertiaryInfoFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-info-focus-state-layer-opacity","",l.opacity8),tertiaryInfoHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-info-hover-state-layer-opacity","",l.opacity8),tertiaryInfoActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-info-active-state-layer-opacity","",l.opacity16),tertiaryInfoDisabledComponentOpacity:o.extend("--ftds-button-tertiary-info-disabled-component-opacity","",l.opacity40),tertiarySuccessBackgroundColor:o.create("--ftds-button-tertiary-success-background-color","","COLOR","rgba(0,0,0,0)"),tertiarySuccessColor:o.extend("--ftds-button-tertiary-success-color","",d.contentSuccessPrimary),tertiarySuccessIconColor:o.extend("--ftds-button-tertiary-success-icon-color","",d.contentSuccessPrimary),tertiarySuccessStateLayerColor:o.extend("--ftds-button-tertiary-success-state-layer-color","",d.contentSuccessPrimary),tertiarySuccessHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-success-hover-state-layer-opacity","",l.opacity8),tertiarySuccessFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-success-focus-state-layer-opacity","",l.opacity8),tertiarySuccessActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-success-active-state-layer-opacity","",l.opacity16),tertiarySuccessDisabledComponentOpacity:o.extend("--ftds-button-tertiary-success-disabled-component-opacity","",l.opacity40),tertiaryWarningBackgroundColor:o.create("--ftds-button-tertiary-warning-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryWarningColor:o.extend("--ftds-button-tertiary-warning-color","",d.contentWarningPrimary),tertiaryWarningIconColor:o.extend("--ftds-button-tertiary-warning-icon-color","",d.contentWarningPrimary),tertiaryWarningStateLayerColor:o.extend("--ftds-button-tertiary-warning-state-layer-color","",d.contentWarningPrimary),tertiaryWarningHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-warning-hover-state-layer-opacity","",l.opacity8),tertiaryWarningFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-warning-focus-state-layer-opacity","",l.opacity8),tertiaryWarningActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-warning-active-state-layer-opacity","",l.opacity16),tertiaryWarningDisabledComponentOpacity:o.extend("--ftds-button-tertiary-warning-disabled-component-opacity","",l.opacity40),tertiaryErrorBackgroundColor:o.create("--ftds-button-tertiary-error-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryErrorColor:o.extend("--ftds-button-tertiary-error-color","",d.contentErrorPrimary),tertiaryErrorIconColor:o.extend("--ftds-button-tertiary-error-icon-color","",d.contentErrorPrimary),tertiaryErrorStateLayerColor:o.extend("--ftds-button-tertiary-error-state-layer-color","",d.contentErrorPrimary),tertiaryErrorHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-error-hover-state-layer-opacity","",l.opacity8),tertiaryErrorFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-error-focus-state-layer-opacity","",l.opacity8),tertiaryErrorActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-error-active-state-layer-opacity","",l.opacity16),tertiaryErrorDisabledComponentOpacity:o.extend("--ftds-button-tertiary-error-disabled-component-opacity","",l.opacity40),tertiaryNeutralBackgroundColor:o.create("--ftds-button-tertiary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryNeutralIconColor:o.extend("--ftds-button-tertiary-neutral-icon-color","",d.contentGlobalSecondary),tertiaryNeutralColor:o.extend("--ftds-button-tertiary-neutral-color","",d.contentGlobalSecondary),tertiaryNeutralStateLayerColor:o.extend("--ftds-button-tertiary-neutral-state-layer-color","",d.contentGlobalSecondary),tertiaryNeutralHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-neutral-hover-state-layer-opacity","",l.opacity8),tertiaryNeutralFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-neutral-focus-state-layer-opacity","",l.opacity8),tertiaryNeutralActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-neutral-active-state-layer-opacity","",l.opacity16),tertiaryNeutralDisabledComponentOpacity:o.extend("--ftds-button-tertiary-neutral-disabled-component-opacity","",l.opacity40),secondaryBrandBackgroundColor:o.create("--ftds-button-secondary-brand-background-color","","COLOR","rgba(0,0,0,0)"),secondaryBrandColor:o.extend("--ftds-button-secondary-brand-color","",d.contentActionPrimary),secondaryBrandIconColor:o.extend("--ftds-button-secondary-brand-icon-color","",d.contentActionPrimary),secondaryBrandStateLayerColor:o.extend("--ftds-button-secondary-brand-state-layer-color","",d.contentActionPrimary),secondaryBrandHoverStateLayerOpacity:o.extend("--ftds-button-secondary-brand-hover-state-layer-opacity","",l.opacity8),secondaryBrandFocusStateLayerOpacity:o.extend("--ftds-button-secondary-brand-focus-state-layer-opacity","",l.opacity8),secondaryBrandActiveStateLayerOpacity:o.extend("--ftds-button-secondary-brand-active-state-layer-opacity","",l.opacity16),secondaryBrandDisabledComponentOpacity:o.extend("--ftds-button-secondary-brand-disabled-component-opacity","",l.opacity40),secondaryBrandBorderColor:o.extend("--ftds-button-secondary-brand-border-color","",d.borderActionPrimary),secondaryNeutralHoverStateLayerOpacity:o.extend("--ftds-button-secondary-neutral-hover-state-layer-opacity","",l.opacity8),secondaryNeutralFocusStateLayerOpacity:o.extend("--ftds-button-secondary-neutral-focus-state-layer-opacity","",l.opacity8),secondaryNeutralActiveStateLayerOpacity:o.extend("--ftds-button-secondary-neutral-active-state-layer-opacity","",l.opacity16),secondaryNeutralDisabledComponentOpacity:o.extend("--ftds-button-secondary-neutral-disabled-component-opacity","",l.opacity40),secondaryNeutralBackgroundColor:o.create("--ftds-button-secondary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),secondaryNeutralColor:o.extend("--ftds-button-secondary-neutral-color","",d.contentGlobalSecondary),secondaryNeutralIconColor:o.extend("--ftds-button-secondary-neutral-icon-color","",d.contentGlobalSecondary),secondaryNeutralStateLayerColor:o.extend("--ftds-button-secondary-neutral-state-layer-color","",d.contentGlobalSecondary),secondaryNeutralBorderColor:o.extend("--ftds-button-secondary-neutral-border-color","",d.borderNeutralPrimary),secondaryInfoHoverStateLayerOpacity:o.extend("--ftds-button-secondary-info-hover-state-layer-opacity","",l.opacity8),secondaryInfoFocusStateLayerOpacity:o.extend("--ftds-button-secondary-info-focus-state-layer-opacity","",l.opacity8),secondaryInfoActiveStateLayerOpacity:o.extend("--ftds-button-secondary-info-active-state-layer-opacity","",l.opacity16),secondaryInfoDisabledComponentOpacity:o.extend("--ftds-button-secondary-info-disabled-component-opacity","",l.opacity40),secondaryInfoBackgroundColor:o.create("--ftds-button-secondary-info-background-color","","COLOR","rgba(0,0,0,0)"),secondaryInfoBorderColor:o.extend("--ftds-button-secondary-info-border-color","",d.borderInfoPrimary),secondaryInfoColor:o.extend("--ftds-button-secondary-info-color","",d.contentInfoPrimary),secondaryInfoIconColor:o.extend("--ftds-button-secondary-info-icon-color","",d.contentInfoPrimary),secondaryInfoStateLayerColor:o.extend("--ftds-button-secondary-info-state-layer-color","",d.contentInfoPrimary),secondarySuccessHoverStateLayerOpacity:o.extend("--ftds-button-secondary-success-hover-state-layer-opacity","",l.opacity8),secondarySuccessFocusStateLayerOpacity:o.extend("--ftds-button-secondary-success-focus-state-layer-opacity","",l.opacity8),secondarySuccessActiveStateLayerOpacity:o.extend("--ftds-button-secondary-success-active-state-layer-opacity","",l.opacity16),secondarySuccessDisabledComponentOpacity:o.extend("--ftds-button-secondary-success-disabled-component-opacity","",l.opacity40),secondarySuccessBackgroundColor:o.create("--ftds-button-secondary-success-background-color","","COLOR","rgba(0,0,0,0)"),secondarySuccessBorderColor:o.extend("--ftds-button-secondary-success-border-color","",d.borderSuccessPrimary),secondarySuccessColor:o.extend("--ftds-button-secondary-success-color","",d.contentSuccessPrimary),secondarySuccessIconColor:o.extend("--ftds-button-secondary-success-icon-color","",d.contentSuccessPrimary),secondarySuccessStateLayerColor:o.extend("--ftds-button-secondary-success-state-layer-color","",d.contentSuccessPrimary),secondaryWarningHoverStateLayerOpacity:o.extend("--ftds-button-secondary-warning-hover-state-layer-opacity","",l.opacity8),secondaryWarningFocusStateLayerOpacity:o.extend("--ftds-button-secondary-warning-focus-state-layer-opacity","",l.opacity8),secondaryWarningActiveStateLayerOpacity:o.extend("--ftds-button-secondary-warning-active-state-layer-opacity","",l.opacity16),secondaryWarningDisabledComponentOpacity:o.extend("--ftds-button-secondary-warning-disabled-component-opacity","",l.opacity40),secondaryWarningBackgroundColor:o.create("--ftds-button-secondary-warning-background-color","","COLOR","rgba(0,0,0,0)"),secondaryWarningBorderColor:o.extend("--ftds-button-secondary-warning-border-color","",d.borderWarningPrimary),secondaryWarningColor:o.extend("--ftds-button-secondary-warning-color","",d.contentWarningPrimary),secondaryWarningIconColor:o.extend("--ftds-button-secondary-warning-icon-color","",d.contentWarningPrimary),secondaryWarningStateLayerColor:o.extend("--ftds-button-secondary-warning-state-layer-color","",d.contentWarningPrimary),secondaryErrorHoverStateLayerOpacity:o.extend("--ftds-button-secondary-error-hover-state-layer-opacity","",l.opacity8),secondaryErrorFocusStateLayerOpacity:o.extend("--ftds-button-secondary-error-focus-state-layer-opacity","",l.opacity8),secondaryErrorActiveStateLayerOpacity:o.extend("--ftds-button-secondary-error-active-state-layer-opacity","",l.opacity16),secondaryErrorDisabledComponentOpacity:o.extend("--ftds-button-secondary-error-disabled-component-opacity","",l.opacity40),secondaryErrorBackgroundColor:o.create("--ftds-button-secondary-error-background-color","","COLOR","rgba(0,0,0,0)"),secondaryErrorBorderColor:o.extend("--ftds-button-secondary-error-border-color","",d.contentErrorPrimary),secondaryErrorColor:o.extend("--ftds-button-secondary-error-color","",d.contentErrorPrimary),secondaryErrorIconColor:o.extend("--ftds-button-secondary-error-icon-color","",d.contentErrorPrimary),secondaryErrorStateLayerColor:o.extend("--ftds-button-secondary-error-state-layer-color","",d.contentErrorPrimary)};var Xf={loadMoreIconSize:o.extend("--ftds-tree-list-load-more-icon-size","",l.iconSize2),loadMorePaddingLeft:o.extend("--ftds-tree-list-load-more-padding-left","",l.spacing6),loadMoreUnselectedDefaultBorderColor:o.extend("--ftds-tree-list-load-more-unselected-default-border-color","",d.borderGlobalSubtle),loadMoreIconColor:o.extend("--ftds-tree-list-load-more-icon-color","",d.contentActionPrimary),loadMoreLabelColor:o.extend("--ftds-tree-list-load-more-label-color","",d.contentActionPrimary),loadMoreHoverBorderColor:o.extend("--ftds-tree-list-load-more-hover-border-color","",l.colorBrand20),loadMoreHoverBackgroundColor:o.create("--ftds-tree-list-load-more-hover-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreActiveBorderColor:o.extend("--ftds-tree-list-load-more-active-border-color","",l.colorBrand20),loadMoreActiveBackgroundColor:o.create("--ftds-tree-list-load-more-active-background-color","","COLOR","rgba(157,32,123,0.16)"),loadMoreFocusBackgroundColor:o.create("--ftds-tree-list-load-more-focus-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreDescendantOfSelectedDefaultBackgroundColor:o.create("--ftds-tree-list-load-more-descendant-of-selected-default-background-color","","COLOR","rgba(113,113,142,0.08)"),loadMoreDescendantOfSelectedDefaultBorderColor:o.extend("--ftds-tree-list-load-more-descendant-of-selected-default-border-color","",d.borderGlobalPrimary),loadMoreLabelMarginLeft:o.extend("--ftds-tree-list-load-more-label-margin-left","",l.spacing1),nodeIconSize:o.extend("--ftds-tree-list-node-icon-size","",l.iconSize2),nodeHeight:o.create("--ftds-tree-list-node-height","","SIZE","36px"),nodeParentLabelMarginLeft:o.extend("--ftds-tree-list-node-parent-label-margin-left","",l.spacing2),nodeParentLabelMarginRight:o.extend("--ftds-tree-list-node-parent-label-margin-right","",l.spacing2),nodeRootPaddingLeft:o.extend("--ftds-tree-list-node-root-padding-left","",l.spacing3),nodeChildPaddingLeft:o.extend("--ftds-tree-list-node-child-padding-left","",l.spacing5),nodeLeafPaddingLeft:o.extend("--ftds-tree-list-node-leaf-padding-left","",l.spacing6),nodeUnselectedDefaultBorderColor:o.extend("--ftds-tree-list-node-unselected-default-border-color","",d.borderGlobalSubtle),nodeUnselectedIconColor:o.extend("--ftds-tree-list-node-unselected-icon-color","",d.contentGlobalSecondary),nodeUnselectedLabelColor:o.extend("--ftds-tree-list-node-unselected-label-color","",d.contentGlobalSecondary),nodeUnselectedCounterColor:o.extend("--ftds-tree-list-node-unselected-counter-color","",d.contentGlobalSecondary),nodeHoverBorderColor:o.extend("--ftds-tree-list-node-hover-border-color","",d.borderActionPrimary),nodeFocusFocusRingColor:o.extend("--ftds-tree-list-node-focus-focus-ring-color","",d.borderActionFocusRing),nodeFocusOutlineWidth:o.create("--ftds-tree-list-node-focus-outline-width","","SIZE","2px"),nodeSelectedDefaultBorderColor:o.extend("--ftds-tree-list-node-selected-default-border-color","",d.borderGlobalPrimary),nodeSelectedIconColor:o.extend("--ftds-tree-list-node-selected-icon-color","",d.contentGlobalSecondary),nodeSelectedLabelColor:o.extend("--ftds-tree-list-node-selected-label-color","",d.contentGlobalPrimary),nodeSelectedCounterColor:o.extend("--ftds-tree-list-node-selected-counter-color","",d.contentGlobalSecondary),nodeSelectedBackgroundColor:o.create("--ftds-tree-list-node-selected-background-color","","COLOR","rgba(113,113,142,0.24)"),nodeDescendantOfSelectedDefaultBorderColor:o.extend("--ftds-tree-list-node-descendant-of-selected-default-border-color","",d.borderGlobalPrimary),nodeDescendantOfSelectedIconColor:o.extend("--ftds-tree-list-node-descendant-of-selected-icon-color","",d.contentGlobalSecondary),nodeDescendantOfSelectedLabelColor:o.extend("--ftds-tree-list-node-descendant-of-selected-label-color","",d.contentGlobalSecondary),nodeDescendantOfSelectedCounterColor:o.extend("--ftds-tree-list-node-descendant-of-selected-counter-color","",d.contentGlobalSecondary),nodeDescendantOfSelectedBackgroundColor:o.create("--ftds-tree-list-node-descendant-of-selected-background-color","","COLOR","rgba(113,113,142,0.08)"),nodeBorderWidth:o.create("--ftds-tree-list-node-border-width","","SIZE","1px"),headerSectionPaddingLeft:o.extend("--ftds-tree-list-header-section-padding-left","",l.spacing3),headerSectionPaddingRight:o.extend("--ftds-tree-list-header-section-padding-right","",l.spacing3),headerSectionHorizontalGap:o.extend("--ftds-tree-list-header-section-horizontal-gap","",l.spacing2),headerSectionMarginBottom:o.extend("--ftds-tree-list-header-section-margin-bottom","",l.spacing2),headerSectionColor:o.extend("--ftds-tree-list-header-section-color","",d.contentGlobalPrimary),headerSectionCounterColor:o.extend("--ftds-tree-list-header-section-counter-color","",d.contentGlobalSecondary),listContainerBorderWidth:o.create("--ftds-tree-list-list-container-border-width","","SIZE","1px"),listContainerBackgroundColor:o.extend("--ftds-tree-list-list-container-background-color","",d.backgroundGlobalSurface),listContainerBorderColor:o.extend("--ftds-tree-list-list-container-border-color","",d.borderGlobalSubtle),emptyStateIllustrationWidth:o.create("--ftds-tree-list-empty-state-illustration-width","","SIZE","192px"),emptyStateIllustrationHeight:o.create("--ftds-tree-list-empty-state-illustration-height","","SIZE","192px"),emptyStateIllustrationMarginBottom:o.extend("--ftds-tree-list-empty-state-illustration-margin-bottom","",l.spacing10),emptyStateContainerPaddingTop:o.extend("--ftds-tree-list-empty-state-container-padding-top","",l.spacing10),emptyStateContainerPaddingBottom:o.extend("--ftds-tree-list-empty-state-container-padding-bottom","",l.spacing10),emptyStateTitleMarginBottom:o.extend("--ftds-tree-list-empty-state-title-margin-bottom","",l.spacing2),emptyStateTitleLabelColor:o.extend("--ftds-tree-list-empty-state-title-label-color","",d.contentGlobalSecondary),emptyStateDescriptionLabelColor:o.extend("--ftds-tree-list-empty-state-description-label-color","",d.contentGlobalSecondary)};var rh={iconSize:o.extend("--ftds-checkbox-icon-size","",l.iconSize2),boxSize:o.create("--ftds-checkbox-box-size","","SIZE","18px"),colorLegendSize:o.create("--ftds-checkbox-color-legend-size","","SIZE","16px"),borderRadius:o.create("--ftds-checkbox-border-radius","","SIZE","1px"),color:o.extend("--ftds-checkbox-color","",d.contentGlobalPrimary),checkedBackgroundColor:o.extend("--ftds-checkbox-checked-background-color","",d.contentActionPrimary),checkedStateLayerColor:o.extend("--ftds-checkbox-checked-state-layer-color","",d.contentActionPrimary),checkedIconColor:o.extend("--ftds-checkbox-checked-icon-color","",d.contentGlobalOnColor),checkedHoverStateLayerOpacity:o.extend("--ftds-checkbox-checked-hover-state-layer-opacity","",l.opacity16),checkedFocusStateLayerOpacity:o.extend("--ftds-checkbox-checked-focus-state-layer-opacity","",l.opacity16),checkedActiveStateLayerOpacity:o.extend("--ftds-checkbox-checked-active-state-layer-opacity","",l.opacity24),checkedDisabledComponentOpacity:o.extend("--ftds-checkbox-checked-disabled-component-opacity","",l.opacity40),uncheckedBorderColor:o.extend("--ftds-checkbox-unchecked-border-color","",l.colorGray80),uncheckedStateLayerColor:o.extend("--ftds-checkbox-unchecked-state-layer-color","",l.colorGray80),uncheckedHoverStateLayerOpacity:o.extend("--ftds-checkbox-unchecked-hover-state-layer-opacity","",l.opacity16),uncheckedFocusStateLayerOpacity:o.extend("--ftds-checkbox-unchecked-focus-state-layer-opacity","",l.opacity16),uncheckedActiveStateLayerOpacity:o.extend("--ftds-checkbox-unchecked-active-state-layer-opacity","",l.opacity24),uncheckedDisabledComponentOpacity:o.extend("--ftds-checkbox-unchecked-disabled-component-opacity","",l.opacity40),focusFocusRingColor:o.extend("--ftds-checkbox-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineOffset:o.create("--ftds-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ftds-checkbox-focus-outline-width","","SIZE","2px"),borderWidth:o.create("--ftds-checkbox-border-width","","SIZE","2px"),horizontalGap:o.extend("--ftds-checkbox-horizontal-gap","",l.spacing3),leftPadding:o.extend("--ftds-checkbox-left-padding","",l.spacing2)};var sh={circleSize:o.create("--ftds-radio-circle-size","","SIZE","18px"),borderWidth:o.create("--ftds-radio-border-width","","SIZE","2px"),color:o.extend("--ftds-radio-color","",d.contentGlobalPrimary),selectedRadioColor:o.extend("--ftds-radio-selected-radio-color","",d.contentActionPrimary),selectedStateLayerColor:o.extend("--ftds-radio-selected-state-layer-color","",d.contentActionPrimary),selectedHoverStateLayerOpacity:o.extend("--ftds-radio-selected-hover-state-layer-opacity","",l.opacity16),selectedFocusStateLayerOpacity:o.extend("--ftds-radio-selected-focus-state-layer-opacity","",l.opacity16),selectedActiveStateLayerOpacity:o.extend("--ftds-radio-selected-active-state-layer-opacity","",l.opacity24),selectedDisabledComponentOpacity:o.extend("--ftds-radio-selected-disabled-component-opacity","",l.opacity40),unselectedStateLayerColor:o.extend("--ftds-radio-unselected-state-layer-color","",d.borderInputPrimary),unselectedBorderColor:o.extend("--ftds-radio-unselected-border-color","",d.borderInputPrimary),unselectedHoverStateLayerOpacity:o.extend("--ftds-radio-unselected-hover-state-layer-opacity","",l.opacity16),unselectedFocusStateLayerOpacity:o.extend("--ftds-radio-unselected-focus-state-layer-opacity","",l.opacity16),unselectedActiveStateLayerOpacity:o.extend("--ftds-radio-unselected-active-state-layer-opacity","",l.opacity24),unselectedDisabledComponentOpacity:o.extend("--ftds-radio-unselected-disabled-component-opacity","",l.opacity40),focusFocusRingColor:o.extend("--ftds-radio-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineOffset:o.create("--ftds-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ftds-radio-focus-outline-width","","SIZE","2px"),verticalGap:o.extend("--ftds-radio-vertical-gap","",l.spacing3),horizontalGap:o.extend("--ftds-radio-horizontal-gap","",l.spacing3)};var uh={headerRowBorderWidth:o.create("--ftds-table-header-row-border-width","","SIZE","1px"),headerRowBackgroundColor:o.extend("--ftds-table-header-row-background-color","",d.backgroundGlobalOnSurfaceDark),headerRowBorderColor:o.extend("--ftds-table-header-row-border-color","",d.borderGlobalPrimary),headerRowColor:o.extend("--ftds-table-header-row-color","",d.contentGlobalPrimary),dataRowBorderWidth:o.create("--ftds-table-data-row-border-width","","SIZE","1px"),dataRowBackgroundColor:o.extend("--ftds-table-data-row-background-color","",d.backgroundGlobalOnSurface),dataRowBorderColor:o.extend("--ftds-table-data-row-border-color","",d.borderGlobalSubtle),dataRowColor:o.extend("--ftds-table-data-row-color","",d.contentGlobalSecondary),dataRowDefaultHoverBackgroundColor:o.extend("--ftds-table-data-row-default-hover-background-color","",l.colorGray20),dataRowSelectableUnselectedHoverBackgroundColor:o.extend("--ftds-table-data-row-selectable-unselected-hover-background-color","",l.colorGray20),dataRowSelectableSelectedDefaultBackgroundColor:o.extend("--ftds-table-data-row-selectable-selected-default-background-color","",l.colorBrand10),dataRowSelectableSelectedDefaultBorderColor:o.extend("--ftds-table-data-row-selectable-selected-default-border-color","",l.colorBrand20),dataRowSelectableSelectedHoverBackgroundColor:o.extend("--ftds-table-data-row-selectable-selected-hover-background-color","",l.colorBrand20),dataRowSelectableSelectedHoverBorderColor:o.extend("--ftds-table-data-row-selectable-selected-hover-border-color","",l.colorBrand30),dataRowSelectableSelectedColor:o.extend("--ftds-table-data-row-selectable-selected-color","",d.contentActionPrimary),dataRowClickableHoverBackgroundColor:o.extend("--ftds-table-data-row-clickable-hover-background-color","",l.colorGray30),dataRowClickableFocusBorderColor:o.extend("--ftds-table-data-row-clickable-focus-border-color","",d.borderActionFocusRing),dataRowClickableFocusBackgroundColor:o.extend("--ftds-table-data-row-clickable-focus-background-color","",l.colorGray30),dataRowClickableActiveBackgroundColor:o.extend("--ftds-table-data-row-clickable-active-background-color","",l.colorGray40),headerCellHorizontalGap:o.extend("--ftds-table-header-cell-horizontal-gap","",l.spacing1),headerCellVerticalPadding:o.extend("--ftds-table-header-cell-vertical-padding","",l.spacing2),headerCellHorizontalPadding:o.extend("--ftds-table-header-cell-horizontal-padding","",l.spacing3),dataCellVerticalPadding:o.extend("--ftds-table-data-cell-vertical-padding","",l.spacing2),dataCellHorizontalPadding:o.extend("--ftds-table-data-cell-horizontal-padding","",l.spacing3),dataCellVerticalGap:o.extend("--ftds-table-data-cell-vertical-gap","",l.spacing1)};var mh={neutralOffHoverStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-off-hover-state-layer-opacity","",l.opacity8),neutralOffFocusStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-off-focus-state-layer-opacity","",l.opacity8),neutralOffFocusFocusRingColor:o.extend("--ftds-chip-choice-neutral-off-focus-focus-ring-color","",d.borderActionFocusRing),neutralOffActiveStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-off-active-state-layer-opacity","",l.opacity16),neutralOffBackgroundColor:o.extend("--ftds-chip-choice-neutral-off-background-color","",d.backgroundGlobalOnSurface),neutralOffBorderColor:o.extend("--ftds-chip-choice-neutral-off-border-color","",d.borderGlobalPrimary),neutralOffColor:o.extend("--ftds-chip-choice-neutral-off-color","",d.contentGlobalSecondary),neutralOffStateLayerColor:o.extend("--ftds-chip-choice-neutral-off-state-layer-color","",d.contentGlobalSecondary),neutralOnDefaultStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-on-default-state-layer-opacity","",l.opacity16),neutralOnHoverStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-on-hover-state-layer-opacity","",l.opacity24),neutralOnFocusStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-on-focus-state-layer-opacity","",l.opacity24),neutralOnFocusFocusRingColor:o.extend("--ftds-chip-choice-neutral-on-focus-focus-ring-color","",d.borderActionFocusRing),neutralOnActiveStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-on-active-state-layer-opacity","",l.opacity32),neutralOnBackgroundColor:o.extend("--ftds-chip-choice-neutral-on-background-color","",d.backgroundGlobalOnSurface),neutralOnBorderColor:o.extend("--ftds-chip-choice-neutral-on-border-color","",d.borderGlobalPrimary),neutralOnColor:o.extend("--ftds-chip-choice-neutral-on-color","",d.contentGlobalPrimary),neutralOnIconColor:o.extend("--ftds-chip-choice-neutral-on-icon-color","",d.contentGlobalPrimary),neutralOnStateLayerColor:o.extend("--ftds-chip-choice-neutral-on-state-layer-color","",d.contentGlobalPrimary),largeMinHeight:o.create("--ftds-chip-choice-large-min-height","","SIZE","36px"),largeHorizontalPadding:o.extend("--ftds-chip-choice-large-horizontal-padding","",l.spacing3),largeGap:o.extend("--ftds-chip-choice-large-gap","",l.spacing1),largeBorderRadius:o.create("--ftds-chip-choice-large-border-radius","","SIZE","18px"),largeBorderWidth:o.create("--ftds-chip-choice-large-border-width","","SIZE","1px"),largeIconSize:o.extend("--ftds-chip-choice-large-icon-size","",l.iconSize3),mediumMinHeight:o.create("--ftds-chip-choice-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:o.extend("--ftds-chip-choice-medium-horizontal-padding","",l.spacing2),mediumGap:o.extend("--ftds-chip-choice-medium-gap","",l.spacing1),mediumBorderRadius:o.create("--ftds-chip-choice-medium-border-radius","","SIZE","12px"),mediumBorderWidth:o.create("--ftds-chip-choice-medium-border-width","","SIZE","1px"),mediumIconSize:o.extend("--ftds-chip-choice-medium-icon-size","",l.iconSize2)};var Ch={largeMinHeight:o.create("--ftds-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:o.extend("--ftds-chip-large-horizontal-padding","",l.spacing3),largeButtonRightPadding:o.extend("--ftds-chip-large-button-right-padding","",l.spacing1),largeGap:o.extend("--ftds-chip-large-gap","",l.spacing1),largeFocusOutlineOffset:o.create("--ftds-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:o.create("--ftds-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:o.create("--ftds-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:o.create("--ftds-chip-large-border-width","","SIZE","1px"),largeIconSize:o.extend("--ftds-chip-large-icon-size","",l.iconSize3),mediumMinHeight:o.create("--ftds-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:o.extend("--ftds-chip-medium-horizontal-padding","",l.spacing2),mediumButtonRightPadding:o.extend("--ftds-chip-medium-button-right-padding","",l.spacing05),mediumGap:o.extend("--ftds-chip-medium-gap","",l.spacing1),mediumFocusOutlineOffset:o.create("--ftds-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:o.create("--ftds-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:o.create("--ftds-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:o.create("--ftds-chip-medium-border-width","","SIZE","1px"),mediumIconSize:o.extend("--ftds-chip-medium-icon-size","",l.iconSize2),smallMinHeight:o.create("--ftds-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:o.extend("--ftds-chip-small-horizontal-padding","",l.spacing1),smallButtonRightPadding:o.extend("--ftds-chip-small-button-right-padding","",l.spacing05),smallGap:o.extend("--ftds-chip-small-gap","",l.spacing1),smallFocusOutlineOffset:o.create("--ftds-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:o.create("--ftds-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:o.create("--ftds-chip-small-border-radius","","SIZE","10px"),smallBorderWidth:o.create("--ftds-chip-small-border-width","","SIZE","1px"),smallIconSize:o.extend("--ftds-chip-small-icon-size","",l.iconSize1),neutralBackgroundColor:o.extend("--ftds-chip-neutral-background-color","",d.backgroundGlobalOnSurface),neutralColor:o.extend("--ftds-chip-neutral-color","",d.contentGlobalSecondary),neutralIconColor:o.extend("--ftds-chip-neutral-icon-color","",d.contentGlobalSecondary),neutralBorderColor:o.extend("--ftds-chip-neutral-border-color","",d.borderGlobalSubtle),infoBackgroundColor:o.extend("--ftds-chip-info-background-color","",d.backgroundInfoSubtle),infoColor:o.extend("--ftds-chip-info-color","",d.contentInfoPrimary),infoIconColor:o.extend("--ftds-chip-info-icon-color","",d.contentInfoIconOnly),infoBorderColor:o.extend("--ftds-chip-info-border-color","",d.borderInfoSubtle),successBackgroundColor:o.extend("--ftds-chip-success-background-color","",d.backgroundSuccessSubtle),successColor:o.extend("--ftds-chip-success-color","",d.contentSuccessPrimary),successIconColor:o.extend("--ftds-chip-success-icon-color","",d.contentSuccessIconOnly),successBorderColor:o.extend("--ftds-chip-success-border-color","",d.borderSuccessSubtle),warningBackgroundColor:o.extend("--ftds-chip-warning-background-color","",d.backgroundWarningSubtle),warningColor:o.extend("--ftds-chip-warning-color","",d.contentWarningPrimary),warningIconColor:o.extend("--ftds-chip-warning-icon-color","",d.contentWarningIconOnly),warningBorderColor:o.extend("--ftds-chip-warning-border-color","",d.borderWarningSubtle),errorBackgroundColor:o.extend("--ftds-chip-error-background-color","",d.backgroundErrorSubtle),errorColor:o.extend("--ftds-chip-error-color","",d.contentErrorPrimary),errorIconColor:o.extend("--ftds-chip-error-icon-color","",d.contentErrorIconOnly),errorBorderColor:o.extend("--ftds-chip-error-border-color","",d.borderErrorSubtle)};var Th={brandHoverOpacity:o.extend("--ftds-link-brand-hover-opacity","",l.opacity80),brandHoverColor:o.extend("--ftds-link-brand-hover-color","",d.contentActionPrimary),brandFocusFocusRingColor:o.extend("--ftds-link-brand-focus-focus-ring-color","",d.borderActionFocusRing),brandFocusColor:o.extend("--ftds-link-brand-focus-color","",d.contentActionPrimary),brandDefaultColor:o.extend("--ftds-link-brand-default-color","",d.contentActionPrimary),brandActiveColor:o.extend("--ftds-link-brand-active-color","",d.contentActionPrimary),infoHoverOpacity:o.extend("--ftds-link-info-hover-opacity","",l.opacity80),infoHoverColor:o.extend("--ftds-link-info-hover-color","",d.contentInfoPrimary),infoFocusFocusRingColor:o.extend("--ftds-link-info-focus-focus-ring-color","",d.borderActionFocusRing),infoFocusColor:o.extend("--ftds-link-info-focus-color","",d.contentInfoPrimary),infoDefaultColor:o.extend("--ftds-link-info-default-color","",d.contentInfoPrimary),infoActiveColor:o.extend("--ftds-link-info-active-color","",d.contentInfoPrimary),neutralFocusFocusRingColor:o.extend("--ftds-link-neutral-focus-focus-ring-color","",d.borderActionFocusRing),neutralFocusColor:o.extend("--ftds-link-neutral-focus-color","",d.contentActionPrimary),neutralDefaultColor:o.extend("--ftds-link-neutral-default-color","",d.contentGlobalPrimary),neutralHoverColor:o.extend("--ftds-link-neutral-hover-color","",d.contentActionPrimary),neutralActiveColor:o.extend("--ftds-link-neutral-active-color","",d.contentActionPrimary),neutralVisitedColor:o.extend("--ftds-link-neutral-visited-color","",l.colorBrand100)};var Nh={iconSize:o.extend("--ftds-banner-icon-size","",l.iconSize5),borderWidth:o.create("--ftds-banner-border-width","","SIZE","1px"),leftPadding:o.extend("--ftds-banner-left-padding","",l.spacing6),rightPadding:o.extend("--ftds-banner-right-padding","",l.spacing6),verticalPadding:o.extend("--ftds-banner-vertical-padding","",l.spacing6),horizontalSideGap:o.extend("--ftds-banner-horizontal-side-gap","",l.spacing6),horizontalMobileGap:o.extend("--ftds-banner-horizontal-mobile-gap","",l.spacing4),verticalMobileGap:o.extend("--ftds-banner-vertical-mobile-gap","",l.spacing6),horizontalMiddleGap:o.extend("--ftds-banner-horizontal-middle-gap","",l.spacing20),infoBackgroundColor:o.extend("--ftds-banner-info-background-color","",d.backgroundInfoSubtle),infoColor:o.extend("--ftds-banner-info-color","",d.contentInfoPrimary),infoIconColor:o.extend("--ftds-banner-info-icon-color","",d.contentInfoIconOnly),infoBorderColor:o.extend("--ftds-banner-info-border-color","",d.borderInfoSubtle)};var $h={horizontalPadding:o.extend("--ftds-badge-horizontal-padding","",l.spacing1),verticalPadding:o.extend("--ftds-badge-vertical-padding","",l.spacing1),borderRadius:o.extend("--ftds-badge-border-radius","",l.borderRadiusPill),color:o.extend("--ftds-badge-color","",d.contentGlobalOnColor),backgroundColor:o.extend("--ftds-badge-background-color","",d.contentActionPrimary)};var Hh={horizontalGap:o.extend("--ftds-title-breadcrumb-horizontal-gap","",l.spacing1),currentColor:o.extend("--ftds-title-breadcrumb-current-color","",d.contentGlobalPrimary),previousNonClickableColor:o.extend("--ftds-title-breadcrumb-previous-non-clickable-color","",d.contentGlobalSecondary),iconColor:o.extend("--ftds-title-breadcrumb-icon-color","",d.contentGlobalSubtle)};var Kh={parentHorizontalPadding:o.extend("--ftds-page-header-parent-horizontal-padding","",l.spacing6),parentTopPadding:o.extend("--ftds-page-header-parent-top-padding","",l.spacing4),parentBottomPadding:o.extend("--ftds-page-header-parent-bottom-padding","",l.spacing6),parentHelpLeftMargin:o.extend("--ftds-page-header-parent-help-left-margin","",l.spacing1),parentTitleColor:o.extend("--ftds-page-header-parent-title-color","",d.contentGlobalPrimary),parentSubtitleColor:o.extend("--ftds-page-header-parent-subtitle-color","",d.contentGlobalSecondary),parentChipLeftMargin:o.extend("--ftds-page-header-parent-chip-left-margin","",l.spacing4),parentVerticalGap:o.extend("--ftds-page-header-parent-vertical-gap","",l.spacing2),parentButtonsGroupHorizontalGap:o.extend("--ftds-page-header-parent-buttons-group-horizontal-gap","",l.spacing4),parentButtonsGroupVerticalGap:o.extend("--ftds-page-header-parent-buttons-group-vertical-gap","",l.spacing4),parentChipsGroupHorizontalGap:o.extend("--ftds-page-header-parent-chips-group-horizontal-gap","",l.spacing2),parentChipsGroupVerticalGap:o.extend("--ftds-page-header-parent-chips-group-vertical-gap","",l.spacing2),childHorizontalPadding:o.extend("--ftds-page-header-child-horizontal-padding","",l.spacing6),childTopPadding:o.extend("--ftds-page-header-child-top-padding","",l.spacing2),childBottomPadding:o.extend("--ftds-page-header-child-bottom-padding","",l.spacing2),childHelpLeftMargin:o.extend("--ftds-page-header-child-help-left-margin","",l.spacing1),childChipLeftMargin:o.extend("--ftds-page-header-child-chip-left-margin","",l.spacing4),childVerticalGap:o.extend("--ftds-page-header-child-vertical-gap","",l.spacing2),childMinHeight:o.create("--ftds-page-header-child-min-height","","SIZE","40px"),childButtonsGroupHorizontalGap:o.extend("--ftds-page-header-child-buttons-group-horizontal-gap","",l.spacing4),childButtonsGroupVerticalGap:o.extend("--ftds-page-header-child-buttons-group-vertical-gap","",l.spacing4),childChipsGroupHorizontalGap:o.extend("--ftds-page-header-child-chips-group-horizontal-gap","",l.spacing2),childChipsGroupVerticalGap:o.extend("--ftds-page-header-child-chips-group-vertical-gap","",l.spacing2),backgroundColor:o.extend("--ftds-page-header-background-color","",l.colorWhite),bottomBorderColor:o.extend("--ftds-page-header-bottom-border-color","",d.borderGlobalSubtle),bottomBorderWidth:o.create("--ftds-page-header-bottom-border-width","","SIZE","1px")};var Qh={horizontalPadding:o.extend("--ftds-page-footer-horizontal-padding","",l.spacing6),verticalPadding:o.extend("--ftds-page-footer-vertical-padding","",l.spacing2),verticalGap:o.extend("--ftds-page-footer-vertical-gap","",l.spacing2),minHeight:o.create("--ftds-page-footer-min-height","","SIZE","40px"),backgroundColor:o.extend("--ftds-page-footer-background-color","",l.colorWhite),topBorderColor:o.extend("--ftds-page-footer-top-border-color","",d.borderGlobalSubtle),topBorderWidth:o.create("--ftds-page-footer-top-border-width","","SIZE","1px"),buttonsGroupGap:o.extend("--ftds-page-footer-buttons-group-gap","",l.spacing4)};var rg={contentHorizontalPadding:o.extend("--ftds-page-layout-content-horizontal-padding","",l.spacing6),contentVerticalPadding:o.extend("--ftds-page-layout-content-vertical-padding","",l.spacing6)};var sg={smallContainerTargetWidth:o.create("--ftds-modal-small-container-target-width","","SIZE","560px"),smallContainerMargin:o.extend("--ftds-modal-small-container-margin","",l.spacing6),mediumContainerTargetWidth:o.create("--ftds-modal-medium-container-target-width","","SIZE","800px"),mediumContainerMargin:o.extend("--ftds-modal-medium-container-margin","",l.spacing6),largeContainerTargetWidth:o.create("--ftds-modal-large-container-target-width","","SIZE","1040px"),largeContainerMargin:o.extend("--ftds-modal-large-container-margin","",l.spacing6),overlayBackgroundColor:o.extend("--ftds-modal-overlay-background-color","",l.colorGray700),overlayOpacity:o.extend("--ftds-modal-overlay-opacity","",l.opacity40),shadow:o.extend("--ftds-modal-shadow","",l.shadowElevation03),bodyBackgroundColor:o.extend("--ftds-modal-body-background-color","",l.colorWhite),bodyColor:o.extend("--ftds-modal-body-color","",d.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ftds-modal-body-horizontal-padding","",l.spacing6),bodyVerticalPadding:o.extend("--ftds-modal-body-vertical-padding","",l.spacing6),bodyVerticalGap:o.extend("--ftds-modal-body-vertical-gap","",l.spacing6),headerBackgroundColor:o.extend("--ftds-modal-header-background-color","",d.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ftds-modal-header-border-color","",d.borderGlobalSubtle),headerColor:o.extend("--ftds-modal-header-color","",d.contentGlobalPrimary),headerLeadingIconColor:o.extend("--ftds-modal-header-leading-icon-color","",d.contentGlobalPrimary),headerVerticalPadding:o.extend("--ftds-modal-header-vertical-padding","",l.spacing1),headerRightPadding:o.extend("--ftds-modal-header-right-padding","",l.spacing1),headerLeftPadding:o.extend("--ftds-modal-header-left-padding","",l.spacing6),headerGap:o.extend("--ftds-modal-header-gap","",l.spacing2),headerBorderBottomWidth:o.create("--ftds-modal-header-border-bottom-width","","SIZE","1px"),borderRadius:o.extend("--ftds-modal-border-radius","",l.borderRadiusM)};var ug={overlayOpacity:o.extend("--ftds-drawer-overlay-opacity","",l.opacity40),shadow:o.extend("--ftds-drawer-shadow","",l.shadowElevation03),bodyColor:o.extend("--ftds-drawer-body-color","",d.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ftds-drawer-body-horizontal-padding","",l.spacing6),bodyVerticalPadding:o.extend("--ftds-drawer-body-vertical-padding","",l.spacing6),bodyGap:o.extend("--ftds-drawer-body-gap","",l.spacing6),bodyBackgroundColor:o.extend("--ftds-drawer-body-background-color","",l.colorWhite),headerBackgroundColor:o.extend("--ftds-drawer-header-background-color","",d.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ftds-drawer-header-border-color","",d.borderGlobalSubtle),headerColor:o.extend("--ftds-drawer-header-color","",d.contentGlobalPrimary),headerTrailingIconColor:o.extend("--ftds-drawer-header-trailing-icon-color","",d.contentGlobalSecondary),headerHeight:o.create("--ftds-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:o.extend("--ftds-drawer-header-horizontal-padding","",l.spacing2),headerBorderWidth:o.create("--ftds-drawer-header-border-width","","SIZE","1px"),headerGap:o.extend("--ftds-drawer-header-gap","",l.spacing3),buttonsBarBackgroundColor:o.extend("--ftds-drawer-buttons-bar-background-color","",d.backgroundGlobalOnSurface),buttonsBarBorderColor:o.extend("--ftds-drawer-buttons-bar-border-color","",d.borderGlobalSubtle),buttonsBarColor:o.extend("--ftds-drawer-buttons-bar-color","",d.contentGlobalPrimary),buttonsBarHorizontalPadding:o.extend("--ftds-drawer-buttons-bar-horizontal-padding","",l.spacing6),buttonsBarVerticalPadding:o.extend("--ftds-drawer-buttons-bar-vertical-padding","",l.spacing4),buttonsBarGap:o.extend("--ftds-drawer-buttons-bar-gap","",l.spacing3),buttonsBarBorderWidth:o.create("--ftds-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:o.create("--ftds-drawer-container-width","","SIZE","66%"),containerMinWidth:o.create("--ftds-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:o.create("--ftds-drawer-container-max-width","","SIZE","1000px"),containerHeight:o.create("--ftds-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:o.extend("--ftds-drawer-overlay-background-color","",l.colorGray700)};var mg={offBorderBottomWidth:o.create("--ftds-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:o.extend("--ftds-tabs-off-hover-state-layer-opacity","",l.opacity8),offDefaultStateLayerOpacity:o.extend("--ftds-tabs-off-default-state-layer-opacity","",l.opacity0),offFocusStateLayerOpacity:o.extend("--ftds-tabs-off-focus-state-layer-opacity","",l.opacity8),offDisabledComponentOpacity:o.extend("--ftds-tabs-off-disabled-component-opacity","",l.opacity40),offColor:o.extend("--ftds-tabs-off-color","",d.contentGlobalSubtle),offStateLayerColor:o.extend("--ftds-tabs-off-state-layer-color","",d.contentGlobalSubtle),offBorderBottomColor:o.extend("--ftds-tabs-off-border-bottom-color","",d.borderGlobalSubtle),activeTabIndicatorHeight:o.create("--ftds-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:o.extend("--ftds-tabs-top-left-border-radius","",l.borderRadiusS),topRightBorderRadius:o.extend("--ftds-tabs-top-right-border-radius","",l.borderRadiusS),withLabelHorizontalPadding:o.extend("--ftds-tabs-with-label-horizontal-padding","",l.spacing4),withLabelVerticalPadding:o.extend("--ftds-tabs-with-label-vertical-padding","",l.spacing3),horizontalGap:o.extend("--ftds-tabs-horizontal-gap","",l.spacing1),verticalGap:o.extend("--ftds-tabs-vertical-gap","",l.spacing1),onHoverStateLayerOpacity:o.extend("--ftds-tabs-on-hover-state-layer-opacity","",l.opacity16),onDefaultStateLayerOpacity:o.extend("--ftds-tabs-on-default-state-layer-opacity","",l.opacity8),onFocusStateLayerOpacity:o.extend("--ftds-tabs-on-focus-state-layer-opacity","",l.opacity16),onActiveStateLayerOpacity:o.extend("--ftds-tabs-on-active-state-layer-opacity","",l.opacity24),onColor:o.extend("--ftds-tabs-on-color","",d.contentActionPrimary),onStateLayerColor:o.extend("--ftds-tabs-on-state-layer-color","",d.contentActionPrimary),onActiveTabIndicatorColor:o.extend("--ftds-tabs-on-active-tab-indicator-color","",d.contentActionPrimary),iconOnlyHorizontalPadding:o.extend("--ftds-tabs-icon-only-horizontal-padding","",l.spacing4),iconOnlyVerticalPadding:o.extend("--ftds-tabs-icon-only-vertical-padding","",l.spacing4),alertTopPadding:o.extend("--ftds-tabs-alert-top-padding","",l.spacing1),alertRightPadding:o.extend("--ftds-tabs-alert-right-padding","",l.spacing05),focusOutlineWidth:o.create("--ftds-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ftds-tabs-focus-focus-ring-color","",d.borderActionFocusRing)};var Cg={largeFieldHorizontalPadding:o.extend("--ftds-text-input-large-field-horizontal-padding","",l.spacing4),largeFieldHorizontalGap:o.extend("--ftds-text-input-large-field-horizontal-gap","",l.spacing3),largeFieldVerticalGap:o.extend("--ftds-text-input-large-field-vertical-gap","",l.spacing05),largeFieldHeight:o.create("--ftds-text-input-large-field-height","","SIZE","50px"),largeFieldIconSize:o.extend("--ftds-text-input-large-field-icon-size","",l.iconSize3),mediumFieldHorizontalPadding:o.extend("--ftds-text-input-medium-field-horizontal-padding","",l.spacing4),mediumFieldHorizontalGap:o.extend("--ftds-text-input-medium-field-horizontal-gap","",l.spacing3),mediumFieldVerticalGap:o.create("--ftds-text-input-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:o.create("--ftds-text-input-medium-field-height","","SIZE","40px"),mediumFieldIconSize:o.extend("--ftds-text-input-medium-field-icon-size","",l.iconSize3),helperHorizontalPadding:o.extend("--ftds-text-input-helper-horizontal-padding","",l.spacing4),helperHorizontalGap:o.extend("--ftds-text-input-helper-horizontal-gap","",l.spacing1),helperIconSize:o.extend("--ftds-text-input-helper-icon-size","",l.iconSize2),borderRadius:o.extend("--ftds-text-input-border-radius","",l.borderRadiusS),backgroundColor:o.extend("--ftds-text-input-background-color","",l.colorWhite),contentValueColor:o.extend("--ftds-text-input-content-value-color","",d.contentGlobalPrimary),trailingIconColor:o.extend("--ftds-text-input-trailing-icon-color","",d.contentGlobalSubtle),labelColor:o.extend("--ftds-text-input-label-color","",d.contentGlobalSubtle),defaultBorderColor:o.extend("--ftds-text-input-default-border-color","",d.borderInputPrimary),defaultHelperTextColor:o.extend("--ftds-text-input-default-helper-text-color","",d.contentGlobalSubtle),defaultBorderWidth:o.create("--ftds-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ftds-text-input-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ftds-text-input-error-border-color","",d.borderErrorPrimary),errorHelperTextColor:o.extend("--ftds-text-input-error-helper-text-color","",d.contentErrorPrimary),errorHelperIconColor:o.extend("--ftds-text-input-error-helper-icon-color","",d.contentErrorIconOnly),warningBorderColor:o.extend("--ftds-text-input-warning-border-color","",d.borderWarningPrimary),warningHelperTextColor:o.extend("--ftds-text-input-warning-helper-text-color","",d.contentWarningPrimary),warningHelperIconColor:o.extend("--ftds-text-input-warning-helper-icon-color","",d.contentWarningIconOnly),warningBorderWidth:o.create("--ftds-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:o.create("--ftds-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ftds-text-input-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineOffset:o.create("--ftds-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ftds-text-input-disabled-component-opacity","",l.opacity40)};var Tg={backgroundColor:o.extend("--ftds-text-area-background-color","",l.colorWhite),contentValueColor:o.extend("--ftds-text-area-content-value-color","",d.contentGlobalPrimary),labelColor:o.extend("--ftds-text-area-label-color","",d.contentGlobalSubtle),defaultBorderColor:o.extend("--ftds-text-area-default-border-color","",d.borderInputPrimary),defaultHelperTextColor:o.extend("--ftds-text-area-default-helper-text-color","",d.contentGlobalSubtle),defaultBorderWidth:o.create("--ftds-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ftds-text-area-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ftds-text-area-error-border-color","",d.borderErrorPrimary),errorHelperTextColor:o.extend("--ftds-text-area-error-helper-text-color","",d.contentErrorPrimary),errorHelperIconColor:o.extend("--ftds-text-area-error-helper-icon-color","",d.contentErrorIconOnly),focusFocusRingColor:o.extend("--ftds-text-area-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineWidth:o.create("--ftds-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:o.create("--ftds-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ftds-text-area-disabled-component-opacity","",l.opacity40),fieldHorizontalLeftPadding:o.extend("--ftds-text-area-field-horizontal-left-padding","",l.spacing4),fieldHorizontalGap:o.extend("--ftds-text-area-field-horizontal-gap","",l.spacing3),fieldVerticalGap:o.extend("--ftds-text-area-field-vertical-gap","",l.spacing05),fieldMinHeight:o.create("--ftds-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:o.extend("--ftds-text-area-helper-horizontal-padding","",l.spacing4),helperHorizontalGap:o.extend("--ftds-text-area-helper-horizontal-gap","",l.spacing1),helperIconSize:o.extend("--ftds-text-area-helper-icon-size","",l.iconSize2),borderRadius:o.extend("--ftds-text-area-border-radius","",l.borderRadiusS)};var Ng={height:o.create("--ftds-floating-menu-height","","SIZE","50px"),horizontalPadding:o.extend("--ftds-floating-menu-horizontal-padding","",l.spacing4),offIconColor:o.extend("--ftds-floating-menu-off-icon-color","",d.contentGlobalPrimary),offColor:o.extend("--ftds-floating-menu-off-color","",d.contentGlobalPrimary),onColor:o.extend("--ftds-floating-menu-on-color","",d.contentActionPrimary),onStateLayerColor:o.extend("--ftds-floating-menu-on-state-layer-color","",d.contentActionPrimary),gap:o.extend("--ftds-floating-menu-gap","",l.spacing3),focusFocusRingColor:o.extend("--ftds-floating-menu-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineWidth:o.create("--ftds-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:o.extend("--ftds-floating-menu-focus-state-layer-opacity","",l.opacity8),hoverStateLayerOpacity:o.extend("--ftds-floating-menu-hover-state-layer-opacity","",l.opacity8),activeStateLayerOpacity:o.extend("--ftds-floating-menu-active-state-layer-opacity","",l.opacity16),disabledComponentOpacity:o.extend("--ftds-floating-menu-disabled-component-opacity","",l.opacity40),iconSize:o.extend("--ftds-floating-menu-icon-size","",l.iconSize3),backgroundColor:o.extend("--ftds-floating-menu-background-color","",d.backgroundGlobalOnSurface),shadow:o.extend("--ftds-floating-menu-shadow","",l.shadowElevation02)};var $g={largeFieldHorizontalPadding:o.extend("--ftds-combobox-single-select-large-field-horizontal-padding","",l.spacing4),largeFieldHorizontalGap:o.extend("--ftds-combobox-single-select-large-field-horizontal-gap","",l.spacing3),largeFieldVerticalGap:o.extend("--ftds-combobox-single-select-large-field-vertical-gap","",l.spacing05),largeFieldHeight:o.create("--ftds-combobox-single-select-large-field-height","","SIZE","50px"),largeFieldIconSize:o.extend("--ftds-combobox-single-select-large-field-icon-size","",l.iconSize3),mediumFieldHorizontalPadding:o.extend("--ftds-combobox-single-select-medium-field-horizontal-padding","",l.spacing4),mediumFieldHorizontalGap:o.extend("--ftds-combobox-single-select-medium-field-horizontal-gap","",l.spacing3),mediumFieldVerticalGap:o.create("--ftds-combobox-single-select-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:o.create("--ftds-combobox-single-select-medium-field-height","","SIZE","40px"),mediumFieldIconSize:o.extend("--ftds-combobox-single-select-medium-field-icon-size","",l.iconSize3),helperHorizontalPadding:o.extend("--ftds-combobox-single-select-helper-horizontal-padding","",l.spacing4),helperHorizontalGap:o.extend("--ftds-combobox-single-select-helper-horizontal-gap","",l.spacing1),helperVerticalGap:o.extend("--ftds-combobox-single-select-helper-vertical-gap","",l.spacing1),helperIconSize:o.extend("--ftds-combobox-single-select-helper-icon-size","",l.iconSize2),menuVerticalGap:o.extend("--ftds-combobox-single-select-menu-vertical-gap","",l.spacing2),borderRadius:o.extend("--ftds-combobox-single-select-border-radius","",l.borderRadiusS),backgroundColor:o.extend("--ftds-combobox-single-select-background-color","",l.colorWhite),labelColor:o.extend("--ftds-combobox-single-select-label-color","",d.contentGlobalSubtle),contentValueColor:o.extend("--ftds-combobox-single-select-content-value-color","",d.contentGlobalPrimary),trailingIconColor:o.extend("--ftds-combobox-single-select-trailing-icon-color","",d.contentGlobalSubtle),defaultBorderColor:o.extend("--ftds-combobox-single-select-default-border-color","",d.borderInputPrimary),defaultHelperTextColor:o.extend("--ftds-combobox-single-select-default-helper-text-color","",d.contentGlobalSubtle),defaultBorderWidth:o.create("--ftds-combobox-single-select-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ftds-combobox-single-select-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ftds-combobox-single-select-error-border-color","",d.borderErrorPrimary),errorHelperTextColor:o.extend("--ftds-combobox-single-select-error-helper-text-color","",d.contentErrorPrimary),warningBorderWidth:o.create("--ftds-combobox-single-select-warning-border-width","","SIZE","2px"),warningBorderColor:o.extend("--ftds-combobox-single-select-warning-border-color","",d.borderWarningPrimary),warningHelperTextColor:o.extend("--ftds-combobox-single-select-warning-helper-text-color","",d.contentWarningPrimary),warningHelperIconColor:o.extend("--ftds-combobox-single-select-warning-helper-icon-color","",d.contentWarningIconOnly),focusOutlineWidth:o.create("--ftds-combobox-single-select-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ftds-combobox-single-select-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineOffset:o.create("--ftds-combobox-single-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ftds-combobox-single-select-disabled-component-opacity","",l.opacity40)};var Hg={backgroundColor:o.extend("--ftds-combobox-multi-select-background-color","",l.colorWhite),labelColor:o.extend("--ftds-combobox-multi-select-label-color","",d.contentGlobalSubtle),trailingIconColor:o.extend("--ftds-combobox-multi-select-trailing-icon-color","",d.contentGlobalSubtle),defaultBorderColor:o.extend("--ftds-combobox-multi-select-default-border-color","",d.borderInputPrimary),defaultHelperTextColor:o.extend("--ftds-combobox-multi-select-default-helper-text-color","",d.contentGlobalSubtle),defaultBorderWidth:o.create("--ftds-combobox-multi-select-default-border-width","","SIZE","1px"),errorBorderColor:o.extend("--ftds-combobox-multi-select-error-border-color","",d.borderErrorPrimary),errorHelperTextColor:o.extend("--ftds-combobox-multi-select-error-helper-text-color","",d.contentErrorPrimary),errorHelperIcon:o.extend("--ftds-combobox-multi-select-error-helper-icon","",d.contentErrorIconOnly),errorBorderWidth:o.create("--ftds-combobox-multi-select-error-border-width","","SIZE","2px"),warningBorderColor:o.extend("--ftds-combobox-multi-select-warning-border-color","",d.borderWarningPrimary),warningHelperTextColor:o.extend("--ftds-combobox-multi-select-warning-helper-text-color","",d.contentWarningPrimary),warningHelperIconColor:o.extend("--ftds-combobox-multi-select-warning-helper-icon-color","",d.contentWarningIconOnly),warningBorderWidth:o.create("--ftds-combobox-multi-select-warning-border-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ftds-combobox-multi-select-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineWidth:o.create("--ftds-combobox-multi-select-focus-outline-width","","SIZE","2px"),focusOutlineOffset:o.create("--ftds-combobox-multi-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ftds-combobox-multi-select-disabled-component-opacity","",l.opacity40),helperHorizontalPadding:o.extend("--ftds-combobox-multi-select-helper-horizontal-padding","",l.spacing4),helperHorizontalGap:o.extend("--ftds-combobox-multi-select-helper-horizontal-gap","",l.spacing1),helperVerticalGap:o.extend("--ftds-combobox-multi-select-helper-vertical-gap","",l.spacing1),helperIconSize:o.extend("--ftds-combobox-multi-select-helper-icon-size","",l.iconSize2),fieldHorizontalPadding:o.extend("--ftds-combobox-multi-select-field-horizontal-padding","",l.spacing4),fieldHorizontalGap:o.extend("--ftds-combobox-multi-select-field-horizontal-gap","",l.spacing3),fieldVerticalGap:o.extend("--ftds-combobox-multi-select-field-vertical-gap","",l.spacing05),fieldIconSize:o.extend("--ftds-combobox-multi-select-field-icon-size","",l.iconSize3),fieldMaxHeight:o.create("--ftds-combobox-multi-select-field-max-height","","SIZE","112px"),contentValuesHorizontalGap:o.extend("--ftds-combobox-multi-select-content-values-horizontal-gap","",l.spacing1),contentValuesVerticalGap:o.extend("--ftds-combobox-multi-select-content-values-vertical-gap","",l.spacing1),borderRadius:o.extend("--ftds-combobox-multi-select-border-radius","",l.borderRadiusS)};var Kg={backgroundColor:o.extend("--ftds-popover-background-color","",d.backgroundGlobalOnSurface),horizontalPadding:o.extend("--ftds-popover-horizontal-padding","",l.spacing6),verticalPadding:o.extend("--ftds-popover-vertical-padding","",l.spacing6),titleColor:o.extend("--ftds-popover-title-color","",d.contentGlobalPrimary),bodyColor:o.extend("--ftds-popover-body-color","",d.contentGlobalSecondary),gap:o.extend("--ftds-popover-gap","",l.spacing2),borderRadius:o.extend("--ftds-popover-border-radius","",l.borderRadiusM),shadow:o.extend("--ftds-popover-shadow","",l.shadowElevation02),maxWidth:o.create("--ftds-popover-max-width","","SIZE","440px"),contentSectionVerticalGap:o.extend("--ftds-popover-content-section-vertical-gap","",l.spacing2),multiSectionVerticalGap:o.extend("--ftds-popover-multi-section-vertical-gap","",l.spacing6)};var Qg={hoverStateLayerOpacity:o.extend("--ftds-collapsible-hover-state-layer-opacity","",l.opacity8),focusStateLayerOpacity:o.extend("--ftds-collapsible-focus-state-layer-opacity","",l.opacity8),focusOutlineWidth:o.create("--ftds-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:o.extend("--ftds-collapsible-focus-focus-ring-color","",d.borderActionFocusRing),activeStateLayerOpacity:o.extend("--ftds-collapsible-active-state-layer-opacity","",l.opacity16),disabledComponentOpacity:o.extend("--ftds-collapsible-disabled-component-opacity","",l.opacity40),horizontalPadding:o.extend("--ftds-collapsible-horizontal-padding","",l.spacing4),verticalPadding:o.extend("--ftds-collapsible-vertical-padding","",l.spacing3),color:o.extend("--ftds-collapsible-color","",d.contentGlobalPrimary),stateLayerColor:o.extend("--ftds-collapsible-state-layer-color","",d.contentGlobalPrimary),backgroundColor:o.extend("--ftds-collapsible-background-color","",d.backgroundGlobalOnSurface),borderColor:o.extend("--ftds-collapsible-border-color","",d.borderGlobalSubtle),iconSize:o.extend("--ftds-collapsible-icon-size","",l.iconSize3)};var oy={groupHorizontalPadding:o.extend("--ftds-switch-group-horizontal-padding","",l.spacing1),groupVerticalPadding:o.extend("--ftds-switch-group-vertical-padding","",l.spacing1),groupGap:o.extend("--ftds-switch-group-gap","",l.spacing1),groupBackgroundColor:o.extend("--ftds-switch-group-background-color","",d.backgroundGlobalSurface),groupBorderColor:o.extend("--ftds-switch-group-border-color","",d.borderGlobalSubtle),groupBorderRadius:o.create("--ftds-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:o.extend("--ftds-switch-label-horizontal-padding","",l.spacing2),labelVerticalPadding:o.extend("--ftds-switch-label-vertical-padding","",l.spacing1),offHoverStateLayerOpacity:o.extend("--ftds-switch-off-hover-state-layer-opacity","",l.opacity8),offFocusStateLayerOpacity:o.extend("--ftds-switch-off-focus-state-layer-opacity","",l.opacity8),offActiveStateLayerOpacity:o.extend("--ftds-switch-off-active-state-layer-opacity","",l.opacity16),offDisabledComponentOpacity:o.extend("--ftds-switch-off-disabled-component-opacity","",l.opacity40),offColor:o.extend("--ftds-switch-off-color","",d.contentGlobalSubtle),offStateLayerColor:o.extend("--ftds-switch-off-state-layer-color","",d.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ftds-switch-on-hover-state-layer-opacity","",l.opacity8),onFocusStateLayerOpacity:o.extend("--ftds-switch-on-focus-state-layer-opacity","",l.opacity8),onActiveStateLayerOpacity:o.extend("--ftds-switch-on-active-state-layer-opacity","",l.opacity16),onDisabledComponentOpacity:o.extend("--ftds-switch-on-disabled-component-opacity","",l.opacity40),onColor:o.extend("--ftds-switch-on-color","",d.contentActionPrimary),onStateLayerColor:o.extend("--ftds-switch-on-state-layer-color","",d.contentActionPrimary),iconHorizontalPadding:o.extend("--ftds-switch-icon-horizontal-padding","",l.spacing1),iconVerticalPadding:o.extend("--ftds-switch-icon-vertical-padding","",l.spacing1),focusOutlineWidth:o.create("--ftds-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ftds-switch-focus-focus-ring-color","",d.borderActionFocusRing),optionBorderRadius:o.extend("--ftds-switch-option-border-radius","",l.borderRadiusS)};var sy={color1Light:o.extend("--ftds-chart-1-light","for area color charts",l.colorBrand40),color1Base:o.extend("--ftds-chart-1-base","for line charts",l.colorBrand0),color2Light:o.extend("--ftds-chart-2-light","for area color charts",l.colorYellow60),color2Base:o.extend("--ftds-chart-2-base","for line charts",l.colorYellow100),color3Light:o.extend("--ftds-chart-3-light","",l.colorUltramarine40),color3Base:o.extend("--ftds-chart-3-base","",l.colorUltramarine70),color4Light:o.extend("--ftds-chart-4-light","",l.colorCyan50),color4Base:o.extend("--ftds-chart-4-base","",l.colorCyan100),color5Light:o.extend("--ftds-chart-5-light","",l.colorRed40),color5Base:o.extend("--ftds-chart-5-base","",l.colorRed60),color6Light:o.extend("--ftds-chart-6-light","",l.colorGreen40),color6Base:o.extend("--ftds-chart-6-base","",l.colorGreen70),color7Light:o.extend("--ftds-chart-7-light","",l.colorOrange70),color7Base:o.extend("--ftds-chart-7-base","",l.colorOrange100),color8Light:o.extend("--ftds-chart-8-light","",l.colorAvocado70),color8Base:o.extend("--ftds-chart-8-base","",l.colorAvocado200),color9Light:o.extend("--ftds-chart-9-light","",l.colorBrown50),color9Base:o.extend("--ftds-chart-9-base","",l.colorBrown200),color10Light:o.extend("--ftds-chart-10-light","",l.colorGray50),color10Base:o.extend("--ftds-chart-10-base","",l.colorGray80),monochrome10:o.extend("--ftds-chart-monochrome-10","",l.colorBrand10),monochrome20:o.extend("--ftds-chart-monochrome-20","",l.colorBrand20),monochrome30:o.extend("--ftds-chart-monochrome-30","",l.colorBrand40),monochrome40:o.extend("--ftds-chart-monochrome-40","",l.colorBrand60),monochrome50:o.extend("--ftds-chart-monochrome-50","",l.colorBrand0),monochrome60:o.extend("--ftds-chart-monochrome-60","",l.colorBrand200),scatterplotQuadrantPopularOldBackgroundColor:o.extend("--ftds-chart-scatterplot-quadrant-popular-old-background-color","",l.colorYellow10),scatterplotQuadrantPopularNewBackgroundColor:o.extend("--ftds-chart-scatterplot-quadrant-popular-new-background-color","",l.colorAvocado10),scatterplotQuadrantUnpopularOldBackgroundColor:o.extend("--ftds-chart-scatterplot-quadrant-unpopular-old-background-color","",l.colorRed10),scatterplotQuadrantUnpopularNewBackgroundColor:o.extend("--ftds-chart-scatterplot-quadrant-unpopular-new-background-color","",l.colorCyan10),scatterplotDatapointInitialDefaultBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-initial-default-background-color","",l.colorBrand70),scatterplotDatapointInitialDefaultBackgroundOpacity:o.extend("--ftds-chart-scatterplot-datapoint-initial-default-background-opacity","",l.opacity48),scatterplotDatapointInitialHoverBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-initial-hover-background-color","",l.colorBrand0),scatterplotDatapointSelectedDefaultBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-selected-default-background-color","",l.colorBrand100),scatterplotDatapointSelectedHoverBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-selected-hover-background-color","",l.colorBrand200),scatterplotDatapointUnselectedDefaultBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-unselected-default-background-color","",l.colorGray60),scatterplotDatapointUnselectedDefaultBackgroundOpacity:o.extend("--ftds-chart-scatterplot-datapoint-unselected-default-background-opacity","",l.opacity48),scatterplotDatapointUnselectedHoverBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-unselected-hover-background-color","",l.colorGray70),scatterplotDatapointHoverHoverRingColor:o.extend("--ftds-chart-scatterplot-datapoint-hover-hover-ring-color","",l.colorCyan200)};var py={color1IconColor:o.extend("--ftds-page-designer-1-icon-color","for area color charts",l.colorCyan0),color1ToolbarColor:o.extend("--ftds-page-designer-1-toolbar-color","for area color charts",l.colorCyan0),color2IconColor:o.extend("--ftds-page-designer-2-icon-color","for area color charts",l.colorBrand0),color2ToolbarColor:o.extend("--ftds-page-designer-2-toolbar-color","for area color charts",l.colorBrand0),color3IconColor:o.extend("--ftds-page-designer-3-icon-color","for area color charts",l.colorYellow200),color3ToolbarColor:o.extend("--ftds-page-designer-3-toolbar-color","for area color charts",l.colorYellow200),color4IconColor:o.extend("--ftds-page-designer-4-icon-color","for area color charts",l.colorUltramarine50),color4ToolbarColor:o.extend("--ftds-page-designer-4-toolbar-color","for area color charts",l.colorUltramarine50),color5IconColor:o.extend("--ftds-page-designer-5-icon-color","for area color charts",l.colorGreen0),color5ToolbarColor:o.extend("--ftds-page-designer-5-toolbar-color","for area color charts",l.colorGreen0),color6IconColor:o.extend("--ftds-page-designer-6-icon-color","for area color charts",l.colorOrange0),color6ToolbarColor:o.extend("--ftds-page-designer-6-toolbar-color","for area color charts",l.colorOrange0),color7IconColor:o.extend("--ftds-page-designer-7-icon-color","for area color charts",l.colorAvocado200),color7ToolbarColor:o.extend("--ftds-page-designer-7-toolbar-color","for area color charts",l.colorAvocado200),color8IconColor:o.extend("--ftds-page-designer-8-icon-color","for area color charts",l.colorBrown0),color8ToolbarColor:o.extend("--ftds-page-designer-8-toolbar-color","for area color charts",l.colorBrown0)};var yy={borderWidth:o.create("--ftds-notice-border-width","","SIZE","1px"),horizontalPadding:o.extend("--ftds-notice-horizontal-padding","",l.spacing3),verticalPadding:o.extend("--ftds-notice-vertical-padding","",l.spacing2),borderRadius:o.extend("--ftds-notice-border-radius","",l.borderRadiusS),gap:o.extend("--ftds-notice-gap","",l.spacing2),iconSize:o.extend("--ftds-notice-icon-size","",l.iconSize3),infoBackgroundColor:o.extend("--ftds-notice-info-background-color","",d.backgroundInfoSubtle),infoBorderColor:o.extend("--ftds-notice-info-border-color","",d.borderInfoSubtle),infoColor:o.extend("--ftds-notice-info-color","",d.contentInfoPrimary),infoIconColor:o.extend("--ftds-notice-info-icon-color","",d.contentInfoIconOnly),warningBackgroundColor:o.extend("--ftds-notice-warning-background-color","",d.backgroundWarningSubtle),warningBorderColor:o.extend("--ftds-notice-warning-border-color","",d.borderWarningSubtle),warningColor:o.extend("--ftds-notice-warning-color","",d.contentWarningPrimary),warningIconColor:o.extend("--ftds-notice-warning-icon-color","",d.contentWarningIconOnly),errorBackgroundColor:o.extend("--ftds-notice-error-background-color","",d.backgroundErrorSubtle),errorBorderColor:o.extend("--ftds-notice-error-border-color","",d.borderErrorSubtle),errorColor:o.extend("--ftds-notice-error-color","",d.contentErrorPrimary),errorIconColor:o.extend("--ftds-notice-error-icon-color","",d.contentErrorIconOnly),successBackgroundColor:o.extend("--ftds-notice-success-background-color","",d.backgroundSuccessSubtle),successBorderColor:o.extend("--ftds-notice-success-border-color","",d.borderSuccessSubtle),successColor:o.extend("--ftds-notice-success-color","",d.contentSuccessPrimary),successIconColor:o.extend("--ftds-notice-success-icon-color","",d.contentSuccessIconOnly),denseHorizontalPadding:o.create("--ftds-notice-dense-horizontal-padding","","SIZE","0px"),denseVerticalPadding:o.create("--ftds-notice-dense-vertical-padding","","SIZE","0px"),denseGap:o.extend("--ftds-notice-dense-gap","",l.spacing1),denseIconSize:o.extend("--ftds-notice-dense-icon-size","",l.iconSize2),denseBorderWidth:o.create("--ftds-notice-dense-border-width","","SIZE","0")};var Sy={offHoverStateLayerOpacity:o.extend("--ftds-toggle-off-hover-state-layer-opacity","",l.opacity16),offFocusStateLayerOpacity:o.extend("--ftds-toggle-off-focus-state-layer-opacity","",l.opacity16),offActiveStateLayerOpacity:o.extend("--ftds-toggle-off-active-state-layer-opacity","",l.opacity24),offDisabledComponentOpacity:o.extend("--ftds-toggle-off-disabled-component-opacity","",l.opacity40),offBackgroundColor:o.extend("--ftds-toggle-off-background-color","",d.contentGlobalSubtle),offIconColor:o.extend("--ftds-toggle-off-icon-color","",d.contentGlobalSubtle),offStateLayerColor:o.extend("--ftds-toggle-off-state-layer-color","",d.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ftds-toggle-on-hover-state-layer-opacity","",l.opacity16),onFocusStateLayerOpacity:o.extend("--ftds-toggle-on-focus-state-layer-opacity","",l.opacity16),onActiveStateLayerOpacity:o.extend("--ftds-toggle-on-active-state-layer-opacity","",l.opacity24),onDisabledComponentOpacity:o.extend("--ftds-toggle-on-disabled-component-opacity","",l.opacity40),onBackgroundColor:o.extend("--ftds-toggle-on-background-color","",d.contentActionPrimary),onStateLayerColor:o.extend("--ftds-toggle-on-state-layer-color","",d.contentActionPrimary),onIconColor:o.extend("--ftds-toggle-on-icon-color","",d.contentActionPrimary),color:o.extend("--ftds-toggle-color","",d.contentGlobalPrimary),focusFocusRingColor:o.extend("--ftds-toggle-focus-focus-ring-color","",d.borderActionFocusRing),gap:o.extend("--ftds-toggle-gap","",l.spacing3)};var Ay={iconSize:o.extend("--ftds-notification-icon-size","",l.iconSize4),leftPadding:o.extend("--ftds-notification-left-padding","",l.spacing5),rightPadding:o.extend("--ftds-notification-right-padding","",l.spacing4),verticalPadding:o.extend("--ftds-notification-vertical-padding","",l.spacing3),infoBackgroundColor:o.extend("--ftds-notification-info-background-color","",d.backgroundInfoSubtle),infoColor:o.extend("--ftds-notification-info-color","",d.contentInfoPrimary),infoIconColor:o.extend("--ftds-notification-info-icon-color","",d.contentInfoIconOnly),infoBorderColor:o.extend("--ftds-notification-info-border-color","",d.borderInfoSubtle),successBackgroundColor:o.extend("--ftds-notification-success-background-color","",d.backgroundSuccessSubtle),successColor:o.extend("--ftds-notification-success-color","",d.contentSuccessPrimary),successIconColor:o.extend("--ftds-notification-success-icon-color","",d.contentSuccessIconOnly),successBorderColor:o.extend("--ftds-notification-success-border-color","",d.borderSuccessSubtle),warningBackgroundColor:o.extend("--ftds-notification-warning-background-color","",d.backgroundWarningSubtle),warningColor:o.extend("--ftds-notification-warning-color","",d.contentWarningPrimary),warningIconColor:o.extend("--ftds-notification-warning-icon-color","",d.contentWarningIconOnly),warningBorderColor:o.extend("--ftds-notification-warning-border-color","",d.borderWarningSubtle),errorBackgroundColor:o.extend("--ftds-notification-error-background-color","",d.backgroundErrorSubtle),errorColor:o.extend("--ftds-notification-error-color","",d.contentErrorPrimary),errorIconColor:o.extend("--ftds-notification-error-icon-color","",d.contentErrorIconOnly),errorBorderColor:o.extend("--ftds-notification-error-border-color","",d.borderErrorSubtle),borderRadius:o.extend("--ftds-notification-border-radius","",l.borderRadiusPill),borderWidth:o.create("--ftds-notification-border-width","","SIZE","1px"),leadingGap:o.extend("--ftds-notification-leading-gap","",l.spacing2),trailingGap:o.extend("--ftds-notification-trailing-gap","",l.spacing8)};var Ly={horizontalPadding:o.extend("--ftds-tooltip-horizontal-padding","",l.spacing2),verticalPadding:o.extend("--ftds-tooltip-vertical-padding","",l.spacing2),borderRadius:o.extend("--ftds-tooltip-border-radius","",l.borderRadiusS),color:o.extend("--ftds-tooltip-color","",d.contentGlobalOnColor),backgroundColor:o.extend("--ftds-tooltip-background-color","",d.contentGlobalPrimary),backgroundOpacity:o.extend("--ftds-tooltip-background-opacity","",l.opacity80),shadow:o.extend("--ftds-tooltip-shadow","",l.shadowElevation02),maxWidth:o.create("--ftds-tooltip-max-width","","SIZE","256px"),gap:o.extend("--ftds-tooltip-gap","",l.spacing05)};var My={verticalPadding:o.extend("--ftds-reorderable-list-vertical-padding","",l.spacing4),gap:o.extend("--ftds-reorderable-list-gap","",l.spacing1),borderRadius:o.extend("--ftds-reorderable-list-border-radius","",l.borderRadiusM),reorderableItemTitleMarginRight:o.extend("--ftds-reorderable-list-reorderable-item-title-margin-right","",l.spacing6),reorderableItemTitleColor:o.extend("--ftds-reorderable-list-reorderable-item-title-color","",d.contentGlobalPrimary),reorderableItemLeftButtonsGroupMarginRight:o.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-margin-right","",l.spacing6),reorderableItemLeftButtonsGroupHorizontalGap:o.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-horizontal-gap","",l.spacing2),reorderableItemRightButtonsGroupHorizontalGap:o.extend("--ftds-reorderable-list-reorderable-item-right-buttons-group-horizontal-gap","",l.spacing2),reorderableItemUsersCountColor:o.extend("--ftds-reorderable-list-reorderable-item-users-count-color","",d.contentGlobalPrimary),reorderableItemUsersCountMarginRight:o.extend("--ftds-reorderable-list-reorderable-item-users-count-margin-right","",l.spacing6),reorderableItemBackgroundColor:o.extend("--ftds-reorderable-list-reorderable-item-background-color","",d.backgroundGlobalOnSurface),reorderableItemWarningMessageGap:o.extend("--ftds-reorderable-list-reorderable-item-warning-message-gap","",l.spacing1),reorderableItemWarningMessageColor:o.extend("--ftds-reorderable-list-reorderable-item-warning-message-color","",d.contentWarningPrimary),reorderableItemWarningMessageIconColor:o.extend("--ftds-reorderable-list-reorderable-item-warning-message-icon-color","",d.contentWarningIconOnly),reorderableItemGripColor:o.extend("--ftds-reorderable-list-reorderable-item-grip-color","",d.contentGlobalSecondary),reorderableItemGripOpacity:o.extend("--ftds-reorderable-list-reorderable-item-grip-opacity","",l.opacity48),boxShadow:o.extend("--ftds-reorderable-list-box-shadow","",l.shadowElevation01),borderWidth:o.create("--ftds-reorderable-list-border-width","","SIZE","1px"),reorderableItemsGap:o.extend("--ftds-reorderable-list-reorderable-items-gap","",l.spacing2),leftPadding:o.extend("--ftds-reorderable-list-left-padding","",l.spacing2),rightPadding:o.extend("--ftds-reorderable-list-right-padding","",l.spacing6),borderColor:o.extend("--ftds-reorderable-list-border-color","",d.borderGlobalPrimary),backgroundColor:o.extend("--ftds-reorderable-list-background-color","",d.backgroundGlobalOnSurfaceDark)};var Uy={menuHorizontalPadding:o.extend("--ftds-date-range-picker-menu-horizontal-padding","",l.spacing4),menuVerticalPadding:o.extend("--ftds-date-range-picker-menu-vertical-padding","",l.spacing4),menuVerticalGap:o.extend("--ftds-date-range-picker-menu-vertical-gap","",l.spacing4),menuButtonsVerticalGap:o.extend("--ftds-date-range-picker-menu-buttons-vertical-gap","",l.spacing2)};var ti;(function(t){t.brand="brand",t.neutral="neutral",t.info="info",t.success="success",t.warning="warning",t.error="error"})(ti||(ti={}));var zr;(function(t){t.large="large",t.medium="medium",t.small="small"})(zr||(zr={}));var Hr=m($());function Us(t,e){let r=wr[t];return Hr.css`
|
|
116
116
|
${e?(0,Hr.unsafeCSS)(e):Hr.css`.ft-typography--${(0,Hr.unsafeCSS)(t)}`} {
|
|
117
117
|
font-family: ${r.fontFamily};
|
|
118
118
|
font-size: ${r.fontSize};
|
|
@@ -122,17 +122,8 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
122
122
|
text-decoration: ${r.textDecoration};
|
|
123
123
|
text-transform: ${r.textCase};
|
|
124
124
|
}
|
|
125
|
-
`}var
|
|
125
|
+
`}var zs=T.FtCssVariableFactory.extend("--ft-typography-font-family","",T.designSystemVariables.titleFont),Ut=T.FtCssVariableFactory.extend("--ft-typography-font-family","",T.designSystemVariables.contentFont),N={fontFamily:Ut,fontSize:T.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:T.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:T.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:T.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:T.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},tr={fontFamily:T.FtCssVariableFactory.extend("--ft-typography-title-font-family","",zs),fontSize:T.FtCssVariableFactory.extend("--ft-typography-title-font-size","",N.fontSize,"20px"),fontWeight:T.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",N.fontWeight,"normal"),letterSpacing:T.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",N.letterSpacing,"0.15px"),lineHeight:T.FtCssVariableFactory.extend("--ft-typography-title-line-height","",N.lineHeight,"1.2"),textTransform:T.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",N.textTransform,"inherit")},rr={fontFamily:T.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",zs),fontSize:T.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",N.fontSize,"14px"),fontWeight:T.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",N.fontWeight,"normal"),letterSpacing:T.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",N.letterSpacing,"0.105px"),lineHeight:T.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",N.lineHeight,"1.7"),textTransform:T.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",N.textTransform,"inherit")},Wr={fontFamily:T.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Ut),fontSize:T.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",N.fontSize,"16px"),fontWeight:T.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",N.fontWeight,"600"),letterSpacing:T.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",N.letterSpacing,"0.144px"),lineHeight:T.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",N.lineHeight,"1.5"),textTransform:T.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",N.textTransform,"inherit")},Gr={fontFamily:T.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Ut),fontSize:T.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",N.fontSize,"14px"),fontWeight:T.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",N.fontWeight,"normal"),letterSpacing:T.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",N.letterSpacing,"0.098px"),lineHeight:T.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",N.lineHeight,"1.7"),textTransform:T.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",N.textTransform,"inherit")},st={fontFamily:T.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Ut),fontSize:T.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",N.fontSize,"16px"),fontWeight:T.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",N.fontWeight,"normal"),letterSpacing:T.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",N.letterSpacing,"0.496px"),lineHeight:T.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",N.lineHeight,"1.5"),textTransform:T.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",N.textTransform,"inherit")},Vr={fontFamily:T.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Ut),fontSize:T.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",N.fontSize,"14px"),fontWeight:T.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",N.fontWeight,"normal"),letterSpacing:T.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",N.letterSpacing,"0.252px"),lineHeight:T.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",N.lineHeight,"1.4"),textTransform:T.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",N.textTransform,"inherit")},_e={fontFamily:T.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Ut),fontSize:T.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",N.fontSize,"12px"),fontWeight:T.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",N.fontWeight,"normal"),letterSpacing:T.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",N.letterSpacing,"0.396px"),lineHeight:T.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",N.lineHeight,"1.33"),textTransform:T.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",N.textTransform,"inherit")},jr={fontFamily:T.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Ut),fontSize:T.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",N.fontSize,"10px"),fontWeight:T.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",N.fontWeight,"normal"),letterSpacing:T.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",N.letterSpacing,"0.33px"),lineHeight:T.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",N.lineHeight,"1.6"),textTransform:T.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",N.textTransform,"inherit")},Kr={fontFamily:T.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Ut),fontSize:T.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",N.fontSize,"10px"),fontWeight:T.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",N.fontWeight,"normal"),letterSpacing:T.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",N.letterSpacing,"1.5px"),lineHeight:T.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",N.lineHeight,"1.6"),textTransform:T.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",N.textTransform,"uppercase")},Ve={fontFamily:T.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Ut),fontSize:T.FtCssVariableFactory.extend("--ft-typography-button-font-size","",N.fontSize,"14px"),fontWeight:T.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",N.fontWeight,"600"),letterSpacing:T.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",N.letterSpacing,"1.246px"),lineHeight:T.FtCssVariableFactory.extend("--ft-typography-button-line-height","",N.lineHeight,"1.15"),textTransform:T.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",N.textTransform,"uppercase")},Hs=lt.css`
|
|
126
126
|
.ft-typography--title {
|
|
127
|
-
font-family: ${er.fontFamily};
|
|
128
|
-
font-size: ${er.fontSize};
|
|
129
|
-
font-weight: ${er.fontWeight};
|
|
130
|
-
letter-spacing: ${er.letterSpacing};
|
|
131
|
-
line-height: ${er.lineHeight};
|
|
132
|
-
text-transform: ${er.textTransform};
|
|
133
|
-
}
|
|
134
|
-
`,Us=lt.css`
|
|
135
|
-
.ft-typography--title-dense {
|
|
136
127
|
font-family: ${tr.fontFamily};
|
|
137
128
|
font-size: ${tr.fontSize};
|
|
138
129
|
font-weight: ${tr.fontWeight};
|
|
@@ -140,7 +131,16 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
140
131
|
line-height: ${tr.lineHeight};
|
|
141
132
|
text-transform: ${tr.textTransform};
|
|
142
133
|
}
|
|
143
|
-
`,
|
|
134
|
+
`,Ws=lt.css`
|
|
135
|
+
.ft-typography--title-dense {
|
|
136
|
+
font-family: ${rr.fontFamily};
|
|
137
|
+
font-size: ${rr.fontSize};
|
|
138
|
+
font-weight: ${rr.fontWeight};
|
|
139
|
+
letter-spacing: ${rr.letterSpacing};
|
|
140
|
+
line-height: ${rr.lineHeight};
|
|
141
|
+
text-transform: ${rr.textTransform};
|
|
142
|
+
}
|
|
143
|
+
`,Gs=lt.css`
|
|
144
144
|
.ft-typography--subtitle1 {
|
|
145
145
|
font-family: ${Wr.fontFamily};
|
|
146
146
|
font-size: ${Wr.fontSize};
|
|
@@ -149,7 +149,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
149
149
|
line-height: ${Wr.lineHeight};
|
|
150
150
|
text-transform: ${Wr.textTransform};
|
|
151
151
|
}
|
|
152
|
-
`,
|
|
152
|
+
`,Vs=lt.css`
|
|
153
153
|
.ft-typography--subtitle2 {
|
|
154
154
|
font-family: ${Gr.fontFamily};
|
|
155
155
|
font-size: ${Gr.fontSize};
|
|
@@ -168,7 +168,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
168
168
|
line-height: ${st.lineHeight};
|
|
169
169
|
text-transform: ${st.textTransform};
|
|
170
170
|
}
|
|
171
|
-
`,
|
|
171
|
+
`,js=lt.css`
|
|
172
172
|
.ft-typography--body2 {
|
|
173
173
|
font-family: ${Vr.fontFamily};
|
|
174
174
|
font-size: ${Vr.fontSize};
|
|
@@ -186,7 +186,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
186
186
|
line-height: ${_e.lineHeight};
|
|
187
187
|
text-transform: ${_e.textTransform};
|
|
188
188
|
}
|
|
189
|
-
`,
|
|
189
|
+
`,Ks=lt.css`
|
|
190
190
|
.ft-typography--breadcrumb {
|
|
191
191
|
font-family: ${jr.fontFamily};
|
|
192
192
|
font-size: ${jr.fontSize};
|
|
@@ -195,7 +195,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
195
195
|
line-height: ${jr.lineHeight};
|
|
196
196
|
text-transform: ${jr.textTransform};
|
|
197
197
|
}
|
|
198
|
-
`,
|
|
198
|
+
`,Zs=lt.css`
|
|
199
199
|
.ft-typography--overline {
|
|
200
200
|
font-family: ${Kr.fontFamily};
|
|
201
201
|
font-size: ${Kr.fontSize};
|
|
@@ -204,7 +204,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
204
204
|
line-height: ${Kr.lineHeight};
|
|
205
205
|
text-transform: ${Kr.textTransform};
|
|
206
206
|
}
|
|
207
|
-
`,
|
|
207
|
+
`,qs=lt.css`
|
|
208
208
|
.ft-typography--button {
|
|
209
209
|
font-family: ${Ve.fontFamily};
|
|
210
210
|
font-size: ${Ve.fontSize};
|
|
@@ -213,11 +213,11 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
213
213
|
line-height: ${Ve.lineHeight};
|
|
214
214
|
text-transform: ${Ve.textTransform};
|
|
215
215
|
}
|
|
216
|
-
`,
|
|
216
|
+
`,Ys=lt.css`
|
|
217
217
|
.ft-typography {
|
|
218
218
|
vertical-align: inherit;
|
|
219
219
|
}
|
|
220
|
-
`,
|
|
220
|
+
`,Xs=[Object.keys(wr).map(t=>Us(t))];var Qs=m($()),Ao=m(R()),ne={color:Ao.FtCssVariableFactory.extend("--ft-loader-color","",Ao.designSystemVariables.colorPrimary),size:Ao.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},Js=Qs.css`
|
|
221
221
|
:host {
|
|
222
222
|
line-height: 0;
|
|
223
223
|
}
|
|
@@ -286,7 +286,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
286
286
|
transform: translate(calc(0.35 * ${ne.size}), 0);
|
|
287
287
|
}
|
|
288
288
|
}
|
|
289
|
-
`;var
|
|
289
|
+
`;var el=m($()),xt=m(R()),Oe={size:xt.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:xt.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",xt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:xt.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",xt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:xt.FtCssVariableFactory.extend("--ft-icon-material-font-family","",xt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:xt.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},tl=[el.css`
|
|
290
290
|
:host, i.ft-icon {
|
|
291
291
|
display: inline-flex;
|
|
292
292
|
align-items: center;
|
|
@@ -334,7 +334,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
334
334
|
.ft-icon--material {
|
|
335
335
|
font-family: ${Oe.materialFontFamily}, "Material Icons", sans-serif;
|
|
336
336
|
}
|
|
337
|
-
`,xt.noTextSelect];var
|
|
337
|
+
`,xt.noTextSelect];var rl=F.FtCssVariableFactory.extend("--ft-button-color","",F.designSystemVariables.colorPrimary),te={backgroundColor:F.FtCssVariableFactory.extend("--ft-button-background-color","",F.designSystemVariables.colorSurface),borderRadius:F.FtCssVariableFactory.extend("--ft-button-border-radius","",F.designSystemVariables.borderRadiusL),color:rl,fontSize:F.FtCssVariableFactory.extend("--ft-button-font-size","",Ve.fontSize),iconSize:F.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:F.FtCssVariableFactory.extend("--ft-button-ripple-color","",rl),verticalPadding:F.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:F.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:F.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:F.FtCssVariableFactory.external(F.designSystemVariables.colorOpacityDisabled,"Design system")},ol=F.FtCssVariableFactory.extend("--ft-button-primary-color","",F.FtCssVariableFactory.extend("--ft-button-color","",F.designSystemVariables.colorOnPrimary)),ea={backgroundColor:F.FtCssVariableFactory.extend("--ft-button-primary-background-color","",F.FtCssVariableFactory.extend("--ft-button-background-color","",F.designSystemVariables.colorPrimary)),color:ol,rippleColor:F.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",ol)},It={borderRadius:F.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",F.FtCssVariableFactory.extend("--ft-button-border-radius","",F.designSystemVariables.borderRadiusM)),verticalPadding:F.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:F.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:F.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},nl=[il.css`
|
|
338
338
|
:host {
|
|
339
339
|
display: inline-block;
|
|
340
340
|
max-width: 100%;
|
|
@@ -420,9 +420,9 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
420
420
|
}
|
|
421
421
|
|
|
422
422
|
.ft-button.ft-button--primary {
|
|
423
|
-
background-color: ${
|
|
424
|
-
--button-internal-color: ${
|
|
425
|
-
${(0,F.setVariable)(O.color,
|
|
423
|
+
background-color: ${ea.backgroundColor};
|
|
424
|
+
--button-internal-color: ${ea.color};
|
|
425
|
+
${(0,F.setVariable)(O.color,ea.rippleColor)};
|
|
426
426
|
}
|
|
427
427
|
|
|
428
428
|
.ft-button:focus {
|
|
@@ -471,7 +471,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
471
471
|
${(0,F.setVariable)(ne.size,te.iconSize)};
|
|
472
472
|
${(0,F.setVariable)(ne.color,"var(--button-internal-color)")};
|
|
473
473
|
}
|
|
474
|
-
`,F.noTextSelect];var de=m(
|
|
474
|
+
`,F.noTextSelect];var de=m(R());var pe={textColor:de.FtCssVariableFactory.extend("--ft-switch-text-color","",de.designSystemVariables.colorOnSurfaceHigh),backgroundColor:de.FtCssVariableFactory.extend("--ft-switch-background-color","",de.designSystemVariables.colorSurface),selectedTextColor:de.FtCssVariableFactory.extend("--ft-switch-selected-text-color","",de.designSystemVariables.colorPrimary),selectedBackgroundColor:de.FtCssVariableFactory.extend("--ft-switch-selected-background-color","",de.designSystemVariables.colorPrimary),borderColor:de.FtCssVariableFactory.extend("--ft-switch-border-color","",de.designSystemVariables.colorOutline),borderRadius:de.FtCssVariableFactory.extend("--ft-switch-border-radius","",de.designSystemVariables.borderRadiusL),fontSize:de.FtCssVariableFactory.extend("--ft-switch-font-size","",Ve.fontSize),iconSize:de.FtCssVariableFactory.create("--ft-switch-icon-size","","SIZE","24px"),iconColor:de.FtCssVariableFactory.extend("--ft-switch-text-color","",de.designSystemVariables.colorOnSurfaceMedium),rippleColor:de.FtCssVariableFactory.extend("--ft-switch-ripple-color","",de.designSystemVariables.colorPrimary),outlineColor:de.FtCssVariableFactory.extend("--ft-switch-outline-color","",de.designSystemVariables.colorPrimary)};var _t={feedbackInputMinWidth:ee.FtCssVariableFactory.create("--ft-reader-feedback-input-min-width","","SIZE","300px"),ratedDateColor:ee.FtCssVariableFactory.external(ee.designSystemVariables.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:ee.FtCssVariableFactory.extend("--ft-reader-feedback-send-feedback-color","",ee.designSystemVariables.colorOnPrimary),sendFeedbackBackgroundColor:ee.FtCssVariableFactory.extend("--ft-reader-feedback-send-feedback-background-color","",ee.designSystemVariables.colorPrimary),filledRatingColor:ee.FtCssVariableFactory.extend("--ft-reader-feedback-filled-rating-color","",ee.designSystemVariables.colorPrimary),emptyRatingColor:ee.FtCssVariableFactory.extend("--ft-reader-feedback-empty-rating-color","",ee.designSystemVariables.colorOnSurfaceMedium),mainTitleFontSize:ee.FtCssVariableFactory.external(tr.fontSize,"Typography"),sectionTitleFontSize:ee.FtCssVariableFactory.external(rr.fontSize,"Typography"),starsBackgroundColor:ee.FtCssVariableFactory.create("--ft-reader-feedback-stars-background-color","","COLOR",ee.designSystemVariables.colorSurface)},sl=al.css`
|
|
475
475
|
.ft-reader-feedback {
|
|
476
476
|
box-sizing: border-box;
|
|
477
477
|
display: flex;
|
|
@@ -527,9 +527,9 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
527
527
|
[part="buttons-container"] {
|
|
528
528
|
align-self: flex-end;
|
|
529
529
|
}
|
|
530
|
-
`;var
|
|
531
|
-
\f\r]`,
|
|
532
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),
|
|
530
|
+
`;var nu=m(cl(),1);var dl;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(dl||(dl={}));var pl;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(pl||(pl={}));var ul;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(ul||(ul={}));var fl;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(fl||(fl={}));var hl;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(hl||(hl={}));var gl;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(gl||(gl={}));var yl;(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.CHATBOT__RATE="CHATBOT__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",t.DOCUMENT__AI_TRANSLATE="DOCUMENT__AI_TRANSLATE",t.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",t.AI__RATE="AI__RATE",t.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",t.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",t.TOPIC__DISPLAY="TOPIC__DISPLAY",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})(yl||(yl={}));var ml;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"})(ml||(ml={}));var bl;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT",t.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",t.LINK_PREVIEW="LINK_PREVIEW"})(bl||(bl={}));var xl;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(xl||(xl={}));var vl;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(vl||(vl={}));var Sl;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Sl||(Sl={}));var ve;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(ve||(ve={}));var Cl;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(Cl||(Cl={}));var Ol;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(Ol||(Ol={}));var wl;(function(t){t.ASC="ASC",t.DESC="DESC"})(wl||(wl={}));var El;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(El||(El={}));var Al;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Al||(Al={}));var Tl;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Tl||(Tl={}));var Rl;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Rl||(Rl={}));var Il;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Il||(Il={}));var _l;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(_l||(_l={}));var Ll;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Ll||(Ll={}));var Nl;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Nl||(Nl={}));var kl;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(kl||(kl={}));var re;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(re||(re={}));var ct;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(ct||(ct={}));var Pl;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(Pl||(Pl={}));var Dl;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Dl||(Dl={}));var Ml;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Ml||(Ml={}));var $l;(function(t){t.USER="USER",t.ASSISTANT="ASSISTANT"})($l||($l={}));var Bl;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Bl||(Bl={}));var Fl;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(Fl||(Fl={}));var iu={[re.PERSONAL_BOOK_SHARE_USER]:[re.PERSONAL_BOOK_USER],[re.HTML_EXPORT_USER]:[re.PERSONAL_BOOK_USER],[re.PDF_EXPORT_USER]:[re.PERSONAL_BOOK_USER],[re.KHUB_ADMIN]:[re.CONTENT_PUBLISHER],[re.ADMIN]:[re.KHUB_ADMIN,re.USERS_ADMIN,re.PORTAL_ADMIN],[re.GENERATIVE_AI_EXPORT_USER]:[re.GENERATIVE_AI_USER]};function Ul(t,e){return t===e||(iu[t]??[]).some(r=>Ul(r,e))}function zt(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(i=>Ul(i,e))}var fa=m(R());var sa=globalThis,ii=sa.trustedTypes,zl=ii?ii.createPolicy("lit-html",{createHTML:t=>t}):void 0,Kl="$lit$",ir=`lit$${Math.random().toFixed(9).slice(2)}$`,Zl="?"+ir,au=`<${Zl}>`,Tr=document,ni=()=>Tr.createComment(""),Ro=t=>t===null||typeof t!="object"&&typeof t!="function",la=Array.isArray,su=t=>la(t)||typeof t?.[Symbol.iterator]=="function",ta=`[
|
|
531
|
+
\f\r]`,To=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Hl=/-->/g,Wl=/>/g,Er=RegExp(`>|${ta}(?:([^\\s"'>=/]+)(${ta}*=${ta}*(?:[^
|
|
532
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Gl=/'/g,Vl=/"/g,ql=/^(?:script|style|textarea|title)$/i,ca=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),Yl=ca(1),Xl=ca(2),Ql=ca(3),Io=Symbol.for("lit-noChange"),Se=Symbol.for("lit-nothing"),jl=new WeakMap,Ar=Tr.createTreeWalker(Tr,129);function Jl(t,e){if(!la(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return zl!==void 0?zl.createHTML(e):e}var lu=(t,e)=>{let r=t.length-1,i=[],n,a=e===2?"<svg>":e===3?"<math>":"",s=To;for(let c=0;c<r;c++){let p=t[c],u,h,g=-1,b=0;for(;b<p.length&&(s.lastIndex=b,h=s.exec(p),h!==null);)b=s.lastIndex,s===To?h[1]==="!--"?s=Hl:h[1]!==void 0?s=Wl:h[2]!==void 0?(ql.test(h[2])&&(n=RegExp("</"+h[2],"g")),s=Er):h[3]!==void 0&&(s=Er):s===Er?h[0]===">"?(s=n??To,g=-1):h[1]===void 0?g=-2:(g=s.lastIndex-h[2].length,u=h[1],s=h[3]===void 0?Er:h[3]==='"'?Vl:Gl):s===Vl||s===Gl?s=Er:s===Hl||s===Wl?s=To:(s=Er,n=void 0);let x=s===Er&&t[c+1].startsWith("/>")?" ":"";a+=s===To?p+au:g>=0?(i.push(u),p.slice(0,g)+Kl+p.slice(g)+ir+x):p+ir+(g===-2?c:x)}return[Jl(t,a+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},_o=class t{constructor({strings:e,_$litType$:r},i){let n;this.parts=[];let a=0,s=0,c=e.length-1,p=this.parts,[u,h]=lu(e,r);if(this.el=t.createElement(u,i),Ar.currentNode=this.el.content,r===2||r===3){let g=this.el.content.firstChild;g.replaceWith(...g.childNodes)}for(;(n=Ar.nextNode())!==null&&p.length<c;){if(n.nodeType===1){if(n.hasAttributes())for(let g of n.getAttributeNames())if(g.endsWith(Kl)){let b=h[s++],x=n.getAttribute(g).split(ir),S=/([.?@])?(.*)/.exec(b);p.push({type:1,index:a,name:S[2],strings:x,ctor:S[1]==="."?oa:S[1]==="?"?ia:S[1]==="@"?na:Qr}),n.removeAttribute(g)}else g.startsWith(ir)&&(p.push({type:6,index:a}),n.removeAttribute(g));if(ql.test(n.tagName)){let g=n.textContent.split(ir),b=g.length-1;if(b>0){n.textContent=ii?ii.emptyScript:"";for(let x=0;x<b;x++)n.append(g[x],ni()),Ar.nextNode(),p.push({type:2,index:++a});n.append(g[b],ni())}}}else if(n.nodeType===8)if(n.data===Zl)p.push({type:2,index:a});else{let g=-1;for(;(g=n.data.indexOf(ir,g+1))!==-1;)p.push({type:7,index:a}),g+=ir.length-1}a++}}static createElement(e,r){let i=Tr.createElement("template");return i.innerHTML=e,i}};function Xr(t,e,r=t,i){if(e===Io)return e;let n=i!==void 0?r._$Co?.[i]:r._$Cl,a=Ro(e)?void 0:e._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(t),n._$AT(t,r,i)),i!==void 0?(r._$Co??=[])[i]=n:r._$Cl=n),n!==void 0&&(e=Xr(t,n._$AS(t,e.values),n,i)),e}var ra=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:i}=this._$AD,n=(e?.creationScope??Tr).importNode(r,!0);Ar.currentNode=n;let a=Ar.nextNode(),s=0,c=0,p=i[0];for(;p!==void 0;){if(s===p.index){let u;p.type===2?u=new ai(a,a.nextSibling,this,e):p.type===1?u=new p.ctor(a,p.name,p.strings,this,e):p.type===6&&(u=new aa(a,this,e)),this._$AV.push(u),p=i[++c]}s!==p?.index&&(a=Ar.nextNode(),s++)}return Ar.currentNode=Tr,n}p(e){let r=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,r),r+=i.strings.length-2):i._$AI(e[r])),r++}},ai=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,i,n){this.type=2,this._$AH=Se,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=Xr(this,e,r),Ro(e)?e===Se||e==null||e===""?(this._$AH!==Se&&this._$AR(),this._$AH=Se):e!==this._$AH&&e!==Io&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):su(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!==Se&&Ro(this._$AH)?this._$AA.nextSibling.data=e:this.T(Tr.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:i}=e,n=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=_o.createElement(Jl(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(r);else{let a=new ra(n,this),s=a.u(this.options);a.p(r),this.T(s),this._$AH=a}}_$AC(e){let r=jl.get(e.strings);return r===void 0&&jl.set(e.strings,r=new _o(e)),r}k(e){la(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,n=0;for(let a of e)n===r.length?r.push(i=new t(this.O(ni()),this.O(ni()),this,this.options)):i=r[n],i._$AI(a),n++;n<r.length&&(this._$AR(i&&i._$AB.nextSibling,n),r.length=n)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e&&e!==this._$AB;){let i=e.nextSibling;e.remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Qr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,n,a){this.type=1,this._$AH=Se,this._$AN=void 0,this.element=e,this.name=r,this._$AM=n,this.options=a,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Se}_$AI(e,r=this,i,n){let a=this.strings,s=!1;if(a===void 0)e=Xr(this,e,r,0),s=!Ro(e)||e!==this._$AH&&e!==Io,s&&(this._$AH=e);else{let c=e,p,u;for(e=a[0],p=0;p<a.length-1;p++)u=Xr(this,c[i+p],r,p),u===Io&&(u=this._$AH[p]),s||=!Ro(u)||u!==this._$AH[p],u===Se?e=Se:e!==Se&&(e+=(u??"")+a[p+1]),this._$AH[p]=u}s&&!n&&this.j(e)}j(e){e===Se?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},oa=class extends Qr{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Se?void 0:e}},ia=class extends Qr{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Se)}},na=class extends Qr{constructor(e,r,i,n,a){super(e,r,i,n,a),this.type=5}_$AI(e,r=this){if((e=Xr(this,e,r,0)??Se)===Io)return;let i=this._$AH,n=e===Se&&i!==Se||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,a=e!==Se&&(i===Se||n);n&&this.element.removeEventListener(this.name,this,i),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},aa=class{constructor(e,r,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){Xr(this,e)}};var cu=sa.litHtmlPolyfillSupport;cu?.(_o,ai),(sa.litHtmlVersions??=[]).push("3.3.0");var tc=Symbol.for(""),du=t=>{if(t?.r===tc)return t?._$litStatic$},Jr=t=>({_$litStatic$:t,r:tc});var ec=new Map,da=t=>(e,...r)=>{let i=r.length,n,a,s=[],c=[],p,u=0,h=!1;for(;u<i;){for(p=e[u];u<i&&(a=r[u],(n=du(a))!==void 0);)p+=n+e[++u],h=!0;u!==i&&c.push(a),s.push(p),u++}if(u===i&&s.push(e[i]),h){let g=s.join("$$lit$$");(e=ec.get(g))===void 0&&(s.raw=s,ec.set(g,e=s)),r=c}return t(e,...r)},eo=da(Yl),Pb=da(Xl),Db=da(Ql);var pa=m(K()),oc=m(R());var Lt;(function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"})(Lt||(Lt={}));var rc=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ue=class extends oc.FtLitElement{constructor(){super(...arguments),this.variant=Lt.body1}render(){return this.element?eo`
|
|
533
533
|
<${Jr(this.element)}
|
|
534
534
|
part="text"
|
|
535
535
|
class="ft-typography ft-typography--${this.variant}">
|
|
@@ -537,7 +537,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
537
537
|
</${Jr(this.element)}>
|
|
538
538
|
`:eo`
|
|
539
539
|
<slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
|
|
540
|
-
`}};ue.styles=[
|
|
540
|
+
`}};ue.styles=[Hs,Ws,Gs,Vs,Zr,js,qr,Ks,Zs,qs,Ys,...Xs];rc([(0,pa.property)()],ue.prototype,"element",void 0);rc([(0,pa.property)()],ue.prototype,"variant",void 0);var ua=m(K()),ac=m(R());var nr;(function(t){t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"})(nr||(nr={}));var to=m($());function pu(t,e){let r=wr[t];return to.css`
|
|
541
541
|
${e?(0,to.unsafeCSS)(e):to.css`.ftds-typography--${(0,to.unsafeCSS)(t)}`} {
|
|
542
542
|
font-family: ${r.fontFamily};
|
|
543
543
|
font-size: ${r.fontSize};
|
|
@@ -547,7 +547,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
547
547
|
text-decoration: ${r.textDecoration};
|
|
548
548
|
text-transform: ${r.textCase};
|
|
549
549
|
}
|
|
550
|
-
`}var
|
|
550
|
+
`}var ic=[Object.keys(wr).map(t=>pu(t))];var nc=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Ht=class extends ac.FtLitElement{constructor(){super(...arguments),this.variant=nr.body2medium}render(){return this.element?eo`
|
|
551
551
|
<${Jr(this.element)}
|
|
552
552
|
part="text"
|
|
553
553
|
class="ftds-typography ftds-typography--${this.variant}">
|
|
@@ -555,18 +555,18 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
555
555
|
</${Jr(this.element)}>
|
|
556
556
|
`:eo`
|
|
557
557
|
<slot part="text" class="ftds-typography ftds-typography--${this.variant}"></slot>
|
|
558
|
-
`}};
|
|
558
|
+
`}};Ht.styles=[...ic];nc([(0,ua.property)()],Ht.prototype,"element",void 0);nc([(0,ua.property)()],Ht.prototype,"variant",void 0);(0,fa.customElement)("ft-typography")(ue);(0,fa.customElement)("ftds-typography")(Ht);var ps=m(R());var Vi=m($()),Mt=m(K()),ap=m(Wt()),qt=m(R());var vo=m($()),Qe=m(K()),So=m(R());var dc=m(R());var lc=m($()),Pe=m(K()),cc=m(Wt()),Lo=m(R());var Ye=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Z=class extends Lo.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new Lo.Debouncer(1e3),this.onTransitionStart=e=>{e.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=e=>{e.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new Lo.Debouncer(10),this.moveRipple=e=>{var r,i;let{x:n,y:a}=this.getCoordinates(e),s=(i=(r=this.ripple)===null||r===void 0?void 0:r.getBoundingClientRect())!==null&&i!==void 0?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(n!=null?n-s.x:s.width/2),this.originY=Math.round(a!=null?a-s.y:s.height/2)},this.startPress=e=>{this.moveRipple(e),this.pressed=!this.isIgnored(e)},this.endPress=()=>{this.pressed=!1},this.startHover=e=>{this.hovered=!this.isIgnored(e)},this.endHover=()=>{this.hovered=!1},this.startFocus=e=>{this.focused=this.isFocusVisible(e?.target)&&!this.isIgnored(e)},this.endFocus=()=>{this.focused=!1}}render(){let e={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return lc.html`
|
|
559
559
|
<style>
|
|
560
560
|
.ft-ripple .ft-ripple--effect {
|
|
561
561
|
left: ${this.originX}px;
|
|
562
562
|
top: ${this.originY}px;
|
|
563
563
|
}
|
|
564
564
|
</style>
|
|
565
|
-
<div class="${(0,
|
|
565
|
+
<div class="${(0,cc.classMap)(e)}">
|
|
566
566
|
<div class="ft-ripple--background"></div>
|
|
567
567
|
<div class="ft-ripple--effect"></div>
|
|
568
568
|
</div>
|
|
569
|
-
`}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var r,i;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,r;let i=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;i&&this.setupFor((r=this.target)!==null&&r!==void 0?r:i)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let r=(...c)=>p=>{c.forEach(u=>window.addEventListener(u,this.endPress,{once:!0})),this.startPress(p)},i=r("mouseup","contextmenu"),n=r("touchend","touchcancel"),a=c=>{["Enter"," "].includes(c.key)&&r("keyup")(c)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",i,s),e.addEventListener("touchstart",n,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",a,s),e.addEventListener("focus",this.startFocus,s),e.addEventListener("blur",this.endFocus,s),e.addEventListener("focusin",this.startFocus,s),e.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,s),e.removeEventListener("mousemove",this.moveRipple,s),e.removeEventListener("mouseleave",this.endHover,s),e.removeEventListener("mousedown",i,s),e.removeEventListener("touchstart",n,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",a,s),e.removeEventListener("focus",this.startFocus,s),e.removeEventListener("blur",this.endFocus,s),e.removeEventListener("focusin",this.startFocus,s),e.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let r=e,i=e,n,a;return r.x!=null?{x:n,y:a}=r:i.touches!=null&&(n=i.touches[0].clientX,a=i.touches[0].clientY),{x:n,y:a}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let r of e.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};Z.elementDefinitions={};Z.styles=
|
|
569
|
+
`}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var r,i;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,r;let i=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;i&&this.setupFor((r=this.target)!==null&&r!==void 0?r:i)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let r=(...c)=>p=>{c.forEach(u=>window.addEventListener(u,this.endPress,{once:!0})),this.startPress(p)},i=r("mouseup","contextmenu"),n=r("touchend","touchcancel"),a=c=>{["Enter"," "].includes(c.key)&&r("keyup")(c)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",i,s),e.addEventListener("touchstart",n,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",a,s),e.addEventListener("focus",this.startFocus,s),e.addEventListener("blur",this.endFocus,s),e.addEventListener("focusin",this.startFocus,s),e.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,s),e.removeEventListener("mousemove",this.moveRipple,s),e.removeEventListener("mouseleave",this.endHover,s),e.removeEventListener("mousedown",i,s),e.removeEventListener("touchstart",n,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",a,s),e.removeEventListener("focus",this.startFocus,s),e.removeEventListener("blur",this.endFocus,s),e.removeEventListener("focusin",this.startFocus,s),e.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let r=e,i=e,n,a;return r.x!=null?{x:n,y:a}=r:i.touches!=null&&(n=i.touches[0].clientX,a=i.touches[0].clientY),{x:n,y:a}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let r of e.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};Z.elementDefinitions={};Z.styles=Bs;Ye([(0,Pe.property)({type:Boolean})],Z.prototype,"primary",void 0);Ye([(0,Pe.property)({type:Boolean})],Z.prototype,"secondary",void 0);Ye([(0,Pe.property)({type:Boolean})],Z.prototype,"unbounded",void 0);Ye([(0,Pe.property)({type:Boolean})],Z.prototype,"activated",void 0);Ye([(0,Pe.property)({type:Boolean})],Z.prototype,"selected",void 0);Ye([(0,Pe.property)({type:Boolean})],Z.prototype,"disabled",void 0);Ye([(0,Pe.state)()],Z.prototype,"hovered",void 0);Ye([(0,Pe.state)()],Z.prototype,"focused",void 0);Ye([(0,Pe.state)()],Z.prototype,"pressed",void 0);Ye([(0,Pe.state)()],Z.prototype,"rippling",void 0);Ye([(0,Pe.state)()],Z.prototype,"originX",void 0);Ye([(0,Pe.state)()],Z.prototype,"originY",void 0);Ye([(0,Pe.query)(".ft-ripple")],Z.prototype,"ripple",void 0);Ye([(0,Pe.query)(".ft-ripple--effect")],Z.prototype,"rippleEffect",void 0);(0,dc.customElement)("ft-ripple")(Z);var np=m(Wt());var Xd=m(R());var Yd=m($()),ft=m(K()),ut=m(R());var pc=m($()),Gt=m(R()),ro={distance:Gt.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:Gt.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:Gt.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:Gt.FtCssVariableFactory.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:Gt.FtCssVariableFactory.extend("--ft-tooltip-border-radius","",Gt.designSystemVariables.borderRadiusS),maxWidth:Gt.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},uc=pc.css`
|
|
570
570
|
.ft-tooltip--container {
|
|
571
571
|
display: block;
|
|
572
572
|
}
|
|
@@ -595,15 +595,15 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
595
595
|
position: relative;
|
|
596
596
|
word-break: break-word;
|
|
597
597
|
}
|
|
598
|
-
`;var dc=["top","right","bottom","left"],cc=["start","end"],ua=dc.reduce((t,e)=>t.concat(e,e+"-"+cc[0],e+"-"+cc[1]),[]),pc=Math.min,uc=Math.max;var cu={left:"right",right:"left",bottom:"top",top:"bottom"},du={start:"end",end:"start"};function fa(t,e,r){return uc(t,pc(e,r))}function si(t,e){return typeof t=="function"?t(e):t}function oo(t){return t.split("-")[0]}function ar(t){return t.split("-")[1]}function ha(t){return t==="x"?"y":"x"}function ga(t){return t==="y"?"height":"width"}function li(t){return["top","bottom"].includes(oo(t))?"y":"x"}function ya(t){return ha(li(t))}function fc(t,e,r){r===void 0&&(r=!1);let i=ar(t),n=ya(t),a=ga(n),s=n==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=pa(s)),[s,pa(s)]}function hc(t){return t.replace(/start|end/g,e=>du[e])}function pa(t){return t.replace(/left|right|bottom|top/g,e=>cu[e])}function pu(t){return{top:0,right:0,bottom:0,left:0,...t}}function gc(t){return typeof t!="number"?pu(t):{top:t,right:t,bottom:t,left:t}}function Tr(t){let{x:e,y:r,width:i,height:n}=t;return{width:i,height:n,top:r,left:e,right:e+i,bottom:r+n,x:e,y:r}}function yc(t,e,r){let{reference:i,floating:n}=t,a=li(e),s=ya(e),c=ga(s),p=oo(e),u=a==="y",h=i.x+i.width/2-n.width/2,g=i.y+i.height/2-n.height/2,b=i[c]/2-n[c]/2,x;switch(p){case"top":x={x:h,y:i.y-n.height};break;case"bottom":x={x:h,y:i.y+i.height};break;case"right":x={x:i.x+i.width,y:g};break;case"left":x={x:i.x-n.width,y:g};break;default:x={x:i.x,y:i.y}}switch(ar(e)){case"start":x[s]-=b*(r&&u?-1:1);break;case"end":x[s]+=b*(r&&u?-1:1);break}return x}var mc=async(t,e,r)=>{let{placement:i="bottom",strategy:n="absolute",middleware:a=[],platform:s}=r,c=a.filter(Boolean),p=await(s.isRTL==null?void 0:s.isRTL(e)),u=await s.getElementRects({reference:t,floating:e,strategy:n}),{x:h,y:g}=yc(u,i,p),b=i,x={},S=0;for(let w=0;w<c.length;w++){let{name:_,fn:I}=c[w],{x:L,y:M,data:H,reset:W}=await I({x:h,y:g,initialPlacement:i,placement:b,strategy:n,middlewareData:x,rects:u,platform:s,elements:{reference:t,floating:e}});h=L??h,g=M??g,x={...x,[_]:{...x[_],...H}},W&&S<=50&&(S++,typeof W=="object"&&(W.placement&&(b=W.placement),W.rects&&(u=W.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:n}):W.rects),{x:h,y:g}=yc(u,b,p)),w=-1)}return{x:h,y:g,placement:b,strategy:n,middlewareData:x}};async function ma(t,e){var r;e===void 0&&(e={});let{x:i,y:n,platform:a,rects:s,elements:c,strategy:p}=t,{boundary:u="clippingAncestors",rootBoundary:h="viewport",elementContext:g="floating",altBoundary:b=!1,padding:x=0}=si(e,t),S=gc(x),_=c[b?g==="floating"?"reference":"floating":g],I=Tr(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(_)))==null||r?_:_.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(c.floating)),boundary:u,rootBoundary:h,strategy:p})),L=g==="floating"?{x:i,y:n,width:s.floating.width,height:s.floating.height}:s.reference,M=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c.floating)),H=await(a.isElement==null?void 0:a.isElement(M))?await(a.getScale==null?void 0:a.getScale(M))||{x:1,y:1}:{x:1,y:1},W=Tr(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:L,offsetParent:M,strategy:p}):L);return{top:(I.top-W.top+S.top)/H.y,bottom:(W.bottom-I.bottom+S.bottom)/H.y,left:(I.left-W.left+S.left)/H.x,right:(W.right-I.right+S.right)/H.x}}function uu(t,e,r){return(t?[...r.filter(n=>ar(n)===t),...r.filter(n=>ar(n)!==t)]:r.filter(n=>oo(n)===n)).filter(n=>t?ar(n)===t||(e?hc(n)!==n:!1):!0)}var ba=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,i,n;let{rects:a,middlewareData:s,placement:c,platform:p,elements:u}=e,{crossAxis:h=!1,alignment:g,allowedPlacements:b=ua,autoAlignment:x=!0,...S}=si(t,e),w=g!==void 0||b===ua?uu(g||null,x,b):b,_=await ma(e,S),I=((r=s.autoPlacement)==null?void 0:r.index)||0,L=w[I];if(L==null)return{};let M=fc(L,a,await(p.isRTL==null?void 0:p.isRTL(u.floating)));if(c!==L)return{reset:{placement:w[0]}};let H=[_[oo(L)],_[M[0]],_[M[1]]],W=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:L,overflows:H}],qe=w[I+1];if(qe)return{data:{index:I+1,overflows:W},reset:{placement:qe}};let Rt=W.map(Ne=>{let y=ar(Ne.placement);return[Ne.placement,y&&h?Ne.overflows.slice(0,2).reduce((v,P)=>v+P,0):Ne.overflows[0],Ne.overflows]}).sort((Ne,y)=>Ne[1]-y[1]),Tt=((n=Rt.filter(Ne=>Ne[2].slice(0,ar(Ne[0])?2:3).every(y=>y<=0))[0])==null?void 0:n[0])||Rt[0][0];return Tt!==c?{data:{index:I+1,overflows:W},reset:{placement:Tt}}:{}}}};var xa=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:i,placement:n}=e,{mainAxis:a=!0,crossAxis:s=!1,limiter:c={fn:_=>{let{x:I,y:L}=_;return{x:I,y:L}}},...p}=si(t,e),u={x:r,y:i},h=await ma(e,p),g=li(oo(n)),b=ha(g),x=u[b],S=u[g];if(a){let _=b==="y"?"top":"left",I=b==="y"?"bottom":"right",L=x+h[_],M=x-h[I];x=fa(L,x,M)}if(s){let _=g==="y"?"top":"left",I=g==="y"?"bottom":"right",L=S+h[_],M=S-h[I];S=fa(L,S,M)}let w=c.fn({...e,[b]:x,[g]:S});return{...w,data:{x:w.x-r,y:w.y-i,enabled:{[b]:a,[g]:s}}}}}};var va=Math.min,io=Math.max,No=Math.round;var Gt=t=>({x:t,y:t});function Vt(t){return xc(t)?(t.nodeName||"").toLowerCase():"#document"}function Xe(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function jt(t){var e;return(e=(xc(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function xc(t){return t instanceof Node||t instanceof Xe(t).Node}function Lt(t){return t instanceof Element||t instanceof Xe(t).Element}function vt(t){return t instanceof HTMLElement||t instanceof Xe(t).HTMLElement}function bc(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Xe(t).ShadowRoot}function no(t){let{overflow:e,overflowX:r,overflowY:i,display:n}=tt(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&!["inline","contents"].includes(n)}function vc(t){return["table","td","th"].includes(Vt(t))}function di(t){let e=pi(),r=tt(t);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!e&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!e&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(i=>(r.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(r.contain||"").includes(i))}function Sc(t){let e=Ir(t);for(;vt(e)&&!ko(e);){if(di(e))return e;e=Ir(e)}return null}function pi(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ko(t){return["html","body","#document"].includes(Vt(t))}function tt(t){return Xe(t).getComputedStyle(t)}function Po(t){return Lt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ir(t){if(Vt(t)==="html")return t;let e=t.assignedSlot||t.parentNode||bc(t)&&t.host||jt(t);return bc(e)?e.host:e}function Cc(t){let e=Ir(t);return ko(e)?t.ownerDocument?t.ownerDocument.body:t.body:vt(e)&&no(e)?e:Cc(e)}function ci(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let n=Cc(t),a=n===((i=t.ownerDocument)==null?void 0:i.body),s=Xe(n);return a?e.concat(s,s.visualViewport||[],no(n)?n:[],s.frameElement&&r?ci(s.frameElement):[]):e.concat(n,ci(n,[],r))}function Ec(t){let e=tt(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,n=vt(t),a=n?t.offsetWidth:r,s=n?t.offsetHeight:i,c=No(r)!==a||No(i)!==s;return c&&(r=a,i=s),{width:r,height:i,$:c}}function Ac(t){return Lt(t)?t:t.contextElement}function ao(t){let e=Ac(t);if(!vt(e))return Gt(1);let r=e.getBoundingClientRect(),{width:i,height:n,$:a}=Ec(e),s=(a?No(r.width):r.width)/i,c=(a?No(r.height):r.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}var gu=Gt(0);function Rc(t){let e=Xe(t);return!pi()||!e.visualViewport?gu:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function yu(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==Xe(t)?!1:e}function Do(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let n=t.getBoundingClientRect(),a=Ac(t),s=Gt(1);e&&(i?Lt(i)&&(s=ao(i)):s=ao(t));let c=yu(a,r,i)?Rc(a):Gt(0),p=(n.left+c.x)/s.x,u=(n.top+c.y)/s.y,h=n.width/s.x,g=n.height/s.y;if(a){let b=Xe(a),x=i&&Lt(i)?Xe(i):i,S=b.frameElement;for(;S&&i&&x!==b;){let w=ao(S),_=S.getBoundingClientRect(),I=tt(S),L=_.left+(S.clientLeft+parseFloat(I.paddingLeft))*w.x,M=_.top+(S.clientTop+parseFloat(I.paddingTop))*w.y;p*=w.x,u*=w.y,h*=w.x,g*=w.y,p+=L,u+=M,S=Xe(S).frameElement}}return Tr({width:h,height:g,x:p,y:u})}function mu(t){let{rect:e,offsetParent:r,strategy:i}=t,n=vt(r),a=jt(r);if(r===a)return e;let s={scrollLeft:0,scrollTop:0},c=Gt(1),p=Gt(0);if((n||!n&&i!=="fixed")&&((Vt(r)!=="body"||no(a))&&(s=Po(r)),vt(r))){let u=Do(r);c=ao(r),p.x=u.x+r.clientLeft,p.y=u.y+r.clientTop}return{width:e.width*c.x,height:e.height*c.y,x:e.x*c.x-s.scrollLeft*c.x+p.x,y:e.y*c.y-s.scrollTop*c.y+p.y}}function bu(t){return Array.from(t.getClientRects())}function Tc(t){return Do(jt(t)).left+Po(t).scrollLeft}function xu(t){let e=jt(t),r=Po(t),i=t.ownerDocument.body,n=io(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),a=io(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight),s=-r.scrollLeft+Tc(t),c=-r.scrollTop;return tt(i).direction==="rtl"&&(s+=io(e.clientWidth,i.clientWidth)-n),{width:n,height:a,x:s,y:c}}function vu(t,e){let r=Xe(t),i=jt(t),n=r.visualViewport,a=i.clientWidth,s=i.clientHeight,c=0,p=0;if(n){a=n.width,s=n.height;let u=pi();(!u||u&&e==="fixed")&&(c=n.offsetLeft,p=n.offsetTop)}return{width:a,height:s,x:c,y:p}}function Su(t,e){let r=Do(t,!0,e==="fixed"),i=r.top+t.clientTop,n=r.left+t.clientLeft,a=vt(t)?ao(t):Gt(1),s=t.clientWidth*a.x,c=t.clientHeight*a.y,p=n*a.x,u=i*a.y;return{width:s,height:c,x:p,y:u}}function Oc(t,e,r){let i;if(e==="viewport")i=vu(t,r);else if(e==="document")i=xu(jt(t));else if(Lt(e))i=Su(e,r);else{let n=Rc(t);i={...e,x:e.x-n.x,y:e.y-n.y}}return Tr(i)}function Ic(t,e){let r=Ir(t);return r===e||!Lt(r)||ko(r)?!1:tt(r).position==="fixed"||Ic(r,e)}function Cu(t,e){let r=e.get(t);if(r)return r;let i=ci(t,[],!1).filter(c=>Lt(c)&&Vt(c)!=="body"),n=null,a=tt(t).position==="fixed",s=a?Ir(t):t;for(;Lt(s)&&!ko(s);){let c=tt(s),p=di(s);!p&&c.position==="fixed"&&(n=null),(a?!p&&!n:!p&&c.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||no(s)&&!p&&Ic(t,s))?i=i.filter(h=>h!==s):n=c,s=Ir(s)}return e.set(t,i),i}function Ou(t){let{element:e,boundary:r,rootBoundary:i,strategy:n}=t,s=[...r==="clippingAncestors"?Cu(e,this._c):[].concat(r),i],c=s[0],p=s.reduce((u,h)=>{let g=Oc(e,h,n);return u.top=io(g.top,u.top),u.right=va(g.right,u.right),u.bottom=va(g.bottom,u.bottom),u.left=io(g.left,u.left),u},Oc(e,c,n));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}}function wu(t){return Ec(t)}function Eu(t,e,r){let i=vt(e),n=jt(e),a=r==="fixed",s=Do(t,!0,a,e),c={scrollLeft:0,scrollTop:0},p=Gt(0);if(i||!i&&!a)if((Vt(e)!=="body"||no(n))&&(c=Po(e)),i){let u=Do(e,!0,a,e);p.x=u.x+e.clientLeft,p.y=u.y+e.clientTop}else n&&(p.x=Tc(n));return{x:s.left+c.scrollLeft-p.x,y:s.top+c.scrollTop-p.y,width:s.width,height:s.height}}function wc(t,e){return!vt(t)||tt(t).position==="fixed"?null:e?e(t):t.offsetParent}function _c(t,e){let r=Xe(t);if(!vt(t))return r;let i=wc(t,e);for(;i&&vc(i)&&tt(i).position==="static";)i=wc(i,e);return i&&(Vt(i)==="html"||Vt(i)==="body"&&tt(i).position==="static"&&!di(i))?r:i||Sc(t)||r}var Au=async function(t){let{reference:e,floating:r,strategy:i}=t,n=this.getOffsetParent||_c,a=this.getDimensions;return{reference:Eu(e,await n(r),i),floating:{x:0,y:0,...await a(r)}}};function Ru(t){return tt(t).direction==="rtl"}var ui={convertOffsetParentRelativeRectToViewportRelativeRect:mu,getDocumentElement:jt,getClippingRect:Ou,getOffsetParent:_c,getElementRects:Au,getClientRects:bu,getDimensions:wu,getScale:ao,isElement:Lt,isRTL:Ru};var Lc=(t,e,r)=>{let i=new Map,n={platform:ui,...r},a={...n.platform,_c:i};return mc(t,e,{...n,platform:a})};function Nc(t){return Tu(t)}function Sa(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Tu(t){for(let e=t;e;e=Sa(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Sa(t);e;e=Sa(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||r.filter!=="none"||e.tagName==="BODY"))return e}return null}async function kc(t,e,r){return Lc(t,e,{platform:{...ui,getOffsetParent:i=>ui.getOffsetParent(i,Nc)},middleware:[xa({crossAxis:!0}),ba({allowedPlacements:[r]})]})}var xo=m(T());var Fd=m(T());var Wc=m($()),De=m(K()),St=m(T());var Pc=m($());var Dc=Pc.css`
|
|
599
|
-
`;var fi=m(T()),Iu="ft-app-info",Nt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Nt.eventName="authentication-change";var _u={session:(t,e)=>{(0,fi.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>E.dispatchEvent(new Nt(e.payload)),0))}},E=fi.FtReduxStore.get({name:Iu,reducers:_u,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 Ca=m(T());var _r=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:i}=E.getState(),n=e??i;if(r&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,n,!0)}static await(e){return new Promise(r=>{let i=t.get(e);if(i)r(i);else{let n=E.subscribe(()=>{i=t.get(e),i&&(n(),r(i))})}})}};var hi=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:_r.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):_r.await()}};var je=class extends hi{constructor(e=!0,r){var i;super(r),this.sortObjectFields=(a,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([c],[p])=>c.localeCompare(p)));let n=this.constructor;n.commonCache=(i=n.commonCache)!==null&&i!==void 0?i:new Ca.CacheRegistry,this.cache=e?n.commonCache:new Ca.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,i)=>0|31*r+i.charCodeAt(0),0))}};var gi=class extends je{async listMyBookmarks(){let e=E.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var Oa=class{addCommand(e,r=!1){E.commands.add(e,r)}consumeCommand(e){return E.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Oa;var dt=m(T());var Mc,so=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},Lu=Symbol("clearAfterUnitTest"),yi=class extends(0,dt.withEventBus)(je){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Mc]=()=>{this.defaultMessages={},this.cache=new dt.CacheRegistry,this.listeners={}},this.currentUiLocale=E.getState().uiLocale,E.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=E.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var i;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let n={...(i=this.defaultMessages[e])!==null&&i!==void 0?i:{},...r};(0,dt.deepEqual)(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,i;return this.fetchContext(e),(i=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(e,r){let i=e.toLowerCase();return this.resolveContext(i)[r]}resolveMessage(e,r,...i){var n;let a=e.toLowerCase(),s=this.resolveContext(a);return new dt.ParametrizedLabelResolver((n=this.defaultMessages[a])!==null&&n!==void 0?n:{},s).resolve(r,...i)}async fetchContext(e){let r=!this.cache.has(e),i;try{i=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(n){!(n instanceof dt.CanceledPromiseError)&&r&&console.error(n)}return i}subscribe(e,r){var i;return e=e.toLowerCase(),this.listeners[e]=(i=this.listeners[e])!==null&&i!==void 0?i:new Set,this.listeners[e].add(r),()=>{var n;return(n=this.listeners[e])===null||n===void 0?void 0:n.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new so({loadedContexts:e})),this.dispatchEvent(new so({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new so({loadedContexts:[e]})),this.dispatchEvent(new so({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>(0,dt.delay)(0).then(()=>i()).catch(()=>null)))}};Mc=Lu;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends yi{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends yi{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var lo=window.FluidTopicsI18nService,mi=window.FluidTopicsCustomI18nService;var $c=m(T()),wa=class{highlightHtml(e,r,i){(0,$c.highlightHtml)(e,r,i)}};window.FluidTopicsHighlightHtmlService=new wa;var bi=class extends je{async listMySearches(){let{session:e}=E.getState();return Ut(e,re.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var Bc=m(T());var Ea=class{isDate(e){var r,i,n,a;return(a=(n=((i=(r=E.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&i!==void 0?i:[]).find(c=>c.key===e))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1}format(e,r){var i,n,a;return Bc.DateFormatter.format(e,(i=r?.locale)!==null&&i!==void 0?i:E.getState().uiLocale,(n=r?.longFormat)!==null&&n!==void 0?n:!1,(a=r?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new Ea;var Fc=m(T());var Mo=class{static get(e,r){var i,n;let a=E.getState(),{lang:s,region:c}=(n=(i=a.defaultLocales)===null||i===void 0?void 0:i.defaultContentLocale)!==null&&n!==void 0?n:{lang:"en",region:"US"};return new Fc.SearchPlaceConverter(a.baseUrl,e??20,a.searchInAllLanguagesAllowed,r??`${s}-${c}`)}};var Aa=class{urlToSearchRequest(e){return Mo.get().parse(e)}searchRequestToUrl(e){return Mo.get().serialize(e)}};window.FluidTopicsUrlService=new Aa;var sr=m(T());var Lr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Lr.eventName="change";var Ra=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))}},Uc=new Ra;var xi=class t extends sr.WithEventBus{static build(){return new t(window.history,Uc,()=>window.location,!1)}constructor(e,r,i,n){var a,s;super(),this.history=e,this.historyStorage=r,this.windowLocation=i,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(a=e.state)===null||a===void 0?void 0:a.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(n)}setCurrentState(e,r=!1){let i=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,i&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,sr.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Lr(this.currentItem())),0)}installProxies(){let e=r=>(i,n,[a,s,c])=>{let p=r(),u={...p===this.currentIndex?this.currentState:void 0,...a,index:p,href:typeof c=="string"?c:(c??this.windowLocation()).href};i.apply(n,[u,s,c]),this.setCurrentState(u,!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 i={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(i)}addHistoryChangeListener(e){this.addEventListener(Lr.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Lr.eventName,e)}currentItem(){return(0,sr.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,sr.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,sr.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 i=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!i)return e;let n=e,a=e+1;for(;this.states.length>a&&!this.isDifferentMajorState(a,i);)this.hasState(a)&&(n=a),a++;return n}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 i;if(!this.hasState(e))return!1;let n=r??this.currentState.majorStateId,a=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;return a==null||a!=n}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=xi.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t)});var co=class{constructor(){this.storeListeners=[]}store(e,r){if(this.isAuthenticated())return;let i=JSON.stringify(r);window.localStorage.setItem(e,i),window.dispatchEvent(new StorageEvent("storage",{key:e,newValue:i,storageArea:window.localStorage}))}get(e){var r,i;if(!this.isAuthenticated())return(i=JSON.parse((r=window.localStorage.getItem(e))!==null&&r!==void 0?r:"null"))!==null&&i!==void 0?i:void 0}addStoreListener(e,r){let i=n=>{n.key===e()&&!this.isAuthenticated()&&r()};this.storeListeners.push(i),window.addEventListener("storage",i)}clearStoreListeners(){this.storeListeners.forEach(e=>window.removeEventListener("storage",e)),this.storeListeners.length=0}isAuthenticated(){let e=E.getState().session;return!!e?.sessionAuthenticated}};var zc=E;function Hc(t,e){var r;return zc.getState().authenticationRequired&&!(!((r=zc.getState().session)===null||r===void 0)&&r.sessionAuthenticated)?Promise.resolve(e):t()}var we=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},oe=class extends St.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=()=>_r.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new St.CacheRegistry,this.cleanSessionDebouncer=new St.Debouncer,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return Wc.html`
|
|
598
|
+
`;var hc=["top","right","bottom","left"],fc=["start","end"],ga=hc.reduce((t,e)=>t.concat(e,e+"-"+fc[0],e+"-"+fc[1]),[]),gc=Math.min,yc=Math.max;var uu={left:"right",right:"left",bottom:"top",top:"bottom"},fu={start:"end",end:"start"};function ya(t,e,r){return yc(t,gc(e,r))}function si(t,e){return typeof t=="function"?t(e):t}function oo(t){return t.split("-")[0]}function ar(t){return t.split("-")[1]}function ma(t){return t==="x"?"y":"x"}function ba(t){return t==="y"?"height":"width"}function li(t){return["top","bottom"].includes(oo(t))?"y":"x"}function xa(t){return ma(li(t))}function mc(t,e,r){r===void 0&&(r=!1);let i=ar(t),n=xa(t),a=ba(n),s=n==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=ha(s)),[s,ha(s)]}function bc(t){return t.replace(/start|end/g,e=>fu[e])}function ha(t){return t.replace(/left|right|bottom|top/g,e=>uu[e])}function hu(t){return{top:0,right:0,bottom:0,left:0,...t}}function xc(t){return typeof t!="number"?hu(t):{top:t,right:t,bottom:t,left:t}}function Rr(t){let{x:e,y:r,width:i,height:n}=t;return{width:i,height:n,top:r,left:e,right:e+i,bottom:r+n,x:e,y:r}}function vc(t,e,r){let{reference:i,floating:n}=t,a=li(e),s=xa(e),c=ba(s),p=oo(e),u=a==="y",h=i.x+i.width/2-n.width/2,g=i.y+i.height/2-n.height/2,b=i[c]/2-n[c]/2,x;switch(p){case"top":x={x:h,y:i.y-n.height};break;case"bottom":x={x:h,y:i.y+i.height};break;case"right":x={x:i.x+i.width,y:g};break;case"left":x={x:i.x-n.width,y:g};break;default:x={x:i.x,y:i.y}}switch(ar(e)){case"start":x[s]-=b*(r&&u?-1:1);break;case"end":x[s]+=b*(r&&u?-1:1);break}return x}var Sc=async(t,e,r)=>{let{placement:i="bottom",strategy:n="absolute",middleware:a=[],platform:s}=r,c=a.filter(Boolean),p=await(s.isRTL==null?void 0:s.isRTL(e)),u=await s.getElementRects({reference:t,floating:e,strategy:n}),{x:h,y:g}=vc(u,i,p),b=i,x={},S=0;for(let w=0;w<c.length;w++){let{name:_,fn:I}=c[w],{x:L,y:M,data:H,reset:W}=await I({x:h,y:g,initialPlacement:i,placement:b,strategy:n,middlewareData:x,rects:u,platform:s,elements:{reference:t,floating:e}});h=L??h,g=M??g,x={...x,[_]:{...x[_],...H}},W&&S<=50&&(S++,typeof W=="object"&&(W.placement&&(b=W.placement),W.rects&&(u=W.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:n}):W.rects),{x:h,y:g}=vc(u,b,p)),w=-1)}return{x:h,y:g,placement:b,strategy:n,middlewareData:x}};async function va(t,e){var r;e===void 0&&(e={});let{x:i,y:n,platform:a,rects:s,elements:c,strategy:p}=t,{boundary:u="clippingAncestors",rootBoundary:h="viewport",elementContext:g="floating",altBoundary:b=!1,padding:x=0}=si(e,t),S=xc(x),_=c[b?g==="floating"?"reference":"floating":g],I=Rr(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(_)))==null||r?_:_.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(c.floating)),boundary:u,rootBoundary:h,strategy:p})),L=g==="floating"?{x:i,y:n,width:s.floating.width,height:s.floating.height}:s.reference,M=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c.floating)),H=await(a.isElement==null?void 0:a.isElement(M))?await(a.getScale==null?void 0:a.getScale(M))||{x:1,y:1}:{x:1,y:1},W=Rr(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:L,offsetParent:M,strategy:p}):L);return{top:(I.top-W.top+S.top)/H.y,bottom:(W.bottom-I.bottom+S.bottom)/H.y,left:(I.left-W.left+S.left)/H.x,right:(W.right-I.right+S.right)/H.x}}function gu(t,e,r){return(t?[...r.filter(n=>ar(n)===t),...r.filter(n=>ar(n)!==t)]:r.filter(n=>oo(n)===n)).filter(n=>t?ar(n)===t||(e?bc(n)!==n:!1):!0)}var Sa=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,i,n;let{rects:a,middlewareData:s,placement:c,platform:p,elements:u}=e,{crossAxis:h=!1,alignment:g,allowedPlacements:b=ga,autoAlignment:x=!0,...S}=si(t,e),w=g!==void 0||b===ga?gu(g||null,x,b):b,_=await va(e,S),I=((r=s.autoPlacement)==null?void 0:r.index)||0,L=w[I];if(L==null)return{};let M=mc(L,a,await(p.isRTL==null?void 0:p.isRTL(u.floating)));if(c!==L)return{reset:{placement:w[0]}};let H=[_[oo(L)],_[M[0]],_[M[1]]],W=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:L,overflows:H}],qe=w[I+1];if(qe)return{data:{index:I+1,overflows:W},reset:{placement:qe}};let Tt=W.map(Ne=>{let y=ar(Ne.placement);return[Ne.placement,y&&h?Ne.overflows.slice(0,2).reduce((v,P)=>v+P,0):Ne.overflows[0],Ne.overflows]}).sort((Ne,y)=>Ne[1]-y[1]),Rt=((n=Tt.filter(Ne=>Ne[2].slice(0,ar(Ne[0])?2:3).every(y=>y<=0))[0])==null?void 0:n[0])||Tt[0][0];return Rt!==c?{data:{index:I+1,overflows:W},reset:{placement:Rt}}:{}}}};var Ca=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:i,placement:n}=e,{mainAxis:a=!0,crossAxis:s=!1,limiter:c={fn:_=>{let{x:I,y:L}=_;return{x:I,y:L}}},...p}=si(t,e),u={x:r,y:i},h=await va(e,p),g=li(oo(n)),b=ma(g),x=u[b],S=u[g];if(a){let _=b==="y"?"top":"left",I=b==="y"?"bottom":"right",L=x+h[_],M=x-h[I];x=ya(L,x,M)}if(s){let _=g==="y"?"top":"left",I=g==="y"?"bottom":"right",L=S+h[_],M=S-h[I];S=ya(L,S,M)}let w=c.fn({...e,[b]:x,[g]:S});return{...w,data:{x:w.x-r,y:w.y-i,enabled:{[b]:a,[g]:s}}}}}};var Oa=Math.min,io=Math.max,No=Math.round;var Vt=t=>({x:t,y:t});function jt(t){return Oc(t)?(t.nodeName||"").toLowerCase():"#document"}function Xe(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Kt(t){var e;return(e=(Oc(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Oc(t){return t instanceof Node||t instanceof Xe(t).Node}function Nt(t){return t instanceof Element||t instanceof Xe(t).Element}function vt(t){return t instanceof HTMLElement||t instanceof Xe(t).HTMLElement}function Cc(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Xe(t).ShadowRoot}function no(t){let{overflow:e,overflowX:r,overflowY:i,display:n}=tt(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&!["inline","contents"].includes(n)}function wc(t){return["table","td","th"].includes(jt(t))}function di(t){let e=pi(),r=tt(t);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!e&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!e&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(i=>(r.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(r.contain||"").includes(i))}function Ec(t){let e=Ir(t);for(;vt(e)&&!ko(e);){if(di(e))return e;e=Ir(e)}return null}function pi(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ko(t){return["html","body","#document"].includes(jt(t))}function tt(t){return Xe(t).getComputedStyle(t)}function Po(t){return Nt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ir(t){if(jt(t)==="html")return t;let e=t.assignedSlot||t.parentNode||Cc(t)&&t.host||Kt(t);return Cc(e)?e.host:e}function Ac(t){let e=Ir(t);return ko(e)?t.ownerDocument?t.ownerDocument.body:t.body:vt(e)&&no(e)?e:Ac(e)}function ci(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let n=Ac(t),a=n===((i=t.ownerDocument)==null?void 0:i.body),s=Xe(n);return a?e.concat(s,s.visualViewport||[],no(n)?n:[],s.frameElement&&r?ci(s.frameElement):[]):e.concat(n,ci(n,[],r))}function Ic(t){let e=tt(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,n=vt(t),a=n?t.offsetWidth:r,s=n?t.offsetHeight:i,c=No(r)!==a||No(i)!==s;return c&&(r=a,i=s),{width:r,height:i,$:c}}function _c(t){return Nt(t)?t:t.contextElement}function ao(t){let e=_c(t);if(!vt(e))return Vt(1);let r=e.getBoundingClientRect(),{width:i,height:n,$:a}=Ic(e),s=(a?No(r.width):r.width)/i,c=(a?No(r.height):r.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}var bu=Vt(0);function Lc(t){let e=Xe(t);return!pi()||!e.visualViewport?bu:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function xu(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==Xe(t)?!1:e}function Do(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let n=t.getBoundingClientRect(),a=_c(t),s=Vt(1);e&&(i?Nt(i)&&(s=ao(i)):s=ao(t));let c=xu(a,r,i)?Lc(a):Vt(0),p=(n.left+c.x)/s.x,u=(n.top+c.y)/s.y,h=n.width/s.x,g=n.height/s.y;if(a){let b=Xe(a),x=i&&Nt(i)?Xe(i):i,S=b.frameElement;for(;S&&i&&x!==b;){let w=ao(S),_=S.getBoundingClientRect(),I=tt(S),L=_.left+(S.clientLeft+parseFloat(I.paddingLeft))*w.x,M=_.top+(S.clientTop+parseFloat(I.paddingTop))*w.y;p*=w.x,u*=w.y,h*=w.x,g*=w.y,p+=L,u+=M,S=Xe(S).frameElement}}return Rr({width:h,height:g,x:p,y:u})}function vu(t){let{rect:e,offsetParent:r,strategy:i}=t,n=vt(r),a=Kt(r);if(r===a)return e;let s={scrollLeft:0,scrollTop:0},c=Vt(1),p=Vt(0);if((n||!n&&i!=="fixed")&&((jt(r)!=="body"||no(a))&&(s=Po(r)),vt(r))){let u=Do(r);c=ao(r),p.x=u.x+r.clientLeft,p.y=u.y+r.clientTop}return{width:e.width*c.x,height:e.height*c.y,x:e.x*c.x-s.scrollLeft*c.x+p.x,y:e.y*c.y-s.scrollTop*c.y+p.y}}function Su(t){return Array.from(t.getClientRects())}function Nc(t){return Do(Kt(t)).left+Po(t).scrollLeft}function Cu(t){let e=Kt(t),r=Po(t),i=t.ownerDocument.body,n=io(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),a=io(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight),s=-r.scrollLeft+Nc(t),c=-r.scrollTop;return tt(i).direction==="rtl"&&(s+=io(e.clientWidth,i.clientWidth)-n),{width:n,height:a,x:s,y:c}}function Ou(t,e){let r=Xe(t),i=Kt(t),n=r.visualViewport,a=i.clientWidth,s=i.clientHeight,c=0,p=0;if(n){a=n.width,s=n.height;let u=pi();(!u||u&&e==="fixed")&&(c=n.offsetLeft,p=n.offsetTop)}return{width:a,height:s,x:c,y:p}}function wu(t,e){let r=Do(t,!0,e==="fixed"),i=r.top+t.clientTop,n=r.left+t.clientLeft,a=vt(t)?ao(t):Vt(1),s=t.clientWidth*a.x,c=t.clientHeight*a.y,p=n*a.x,u=i*a.y;return{width:s,height:c,x:p,y:u}}function Tc(t,e,r){let i;if(e==="viewport")i=Ou(t,r);else if(e==="document")i=Cu(Kt(t));else if(Nt(e))i=wu(e,r);else{let n=Lc(t);i={...e,x:e.x-n.x,y:e.y-n.y}}return Rr(i)}function kc(t,e){let r=Ir(t);return r===e||!Nt(r)||ko(r)?!1:tt(r).position==="fixed"||kc(r,e)}function Eu(t,e){let r=e.get(t);if(r)return r;let i=ci(t,[],!1).filter(c=>Nt(c)&&jt(c)!=="body"),n=null,a=tt(t).position==="fixed",s=a?Ir(t):t;for(;Nt(s)&&!ko(s);){let c=tt(s),p=di(s);!p&&c.position==="fixed"&&(n=null),(a?!p&&!n:!p&&c.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||no(s)&&!p&&kc(t,s))?i=i.filter(h=>h!==s):n=c,s=Ir(s)}return e.set(t,i),i}function Au(t){let{element:e,boundary:r,rootBoundary:i,strategy:n}=t,s=[...r==="clippingAncestors"?Eu(e,this._c):[].concat(r),i],c=s[0],p=s.reduce((u,h)=>{let g=Tc(e,h,n);return u.top=io(g.top,u.top),u.right=Oa(g.right,u.right),u.bottom=Oa(g.bottom,u.bottom),u.left=io(g.left,u.left),u},Tc(e,c,n));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}}function Tu(t){return Ic(t)}function Ru(t,e,r){let i=vt(e),n=Kt(e),a=r==="fixed",s=Do(t,!0,a,e),c={scrollLeft:0,scrollTop:0},p=Vt(0);if(i||!i&&!a)if((jt(e)!=="body"||no(n))&&(c=Po(e)),i){let u=Do(e,!0,a,e);p.x=u.x+e.clientLeft,p.y=u.y+e.clientTop}else n&&(p.x=Nc(n));return{x:s.left+c.scrollLeft-p.x,y:s.top+c.scrollTop-p.y,width:s.width,height:s.height}}function Rc(t,e){return!vt(t)||tt(t).position==="fixed"?null:e?e(t):t.offsetParent}function Pc(t,e){let r=Xe(t);if(!vt(t))return r;let i=Rc(t,e);for(;i&&wc(i)&&tt(i).position==="static";)i=Rc(i,e);return i&&(jt(i)==="html"||jt(i)==="body"&&tt(i).position==="static"&&!di(i))?r:i||Ec(t)||r}var Iu=async function(t){let{reference:e,floating:r,strategy:i}=t,n=this.getOffsetParent||Pc,a=this.getDimensions;return{reference:Ru(e,await n(r),i),floating:{x:0,y:0,...await a(r)}}};function _u(t){return tt(t).direction==="rtl"}var ui={convertOffsetParentRelativeRectToViewportRelativeRect:vu,getDocumentElement:Kt,getClippingRect:Au,getOffsetParent:Pc,getElementRects:Iu,getClientRects:Su,getDimensions:Tu,getScale:ao,isElement:Nt,isRTL:_u};var Dc=(t,e,r)=>{let i=new Map,n={platform:ui,...r},a={...n.platform,_c:i};return Sc(t,e,{...n,platform:a})};function Mc(t){return Lu(t)}function wa(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Lu(t){for(let e=t;e;e=wa(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=wa(t);e;e=wa(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||r.filter!=="none"||e.tagName==="BODY"))return e}return null}async function $c(t,e,r){return Dc(t,e,{platform:{...ui,getOffsetParent:i=>ui.getOffsetParent(i,Mc)},middleware:[Ca({crossAxis:!0}),Sa({allowedPlacements:[r]})]})}var xo=m(R());var Hd=m(R());var jc=m($()),De=m(K()),St=m(R());var Bc=m($());var Fc=Bc.css`
|
|
599
|
+
`;var fi=m(R()),Nu="ft-app-info",kt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};kt.eventName="authentication-change";var ku={session:(t,e)=>{(0,fi.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>E.dispatchEvent(new kt(e.payload)),0))}},E=fi.FtReduxStore.get({name:Nu,reducers:ku,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 Ea=m(R());var _r=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:i}=E.getState(),n=e??i;if(r&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,n,!0)}static await(e){return new Promise(r=>{let i=t.get(e);if(i)r(i);else{let n=E.subscribe(()=>{i=t.get(e),i&&(n(),r(i))})}})}};var hi=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:_r.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):_r.await()}};var je=class extends hi{constructor(e=!0,r){var i;super(r),this.sortObjectFields=(a,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([c],[p])=>c.localeCompare(p)));let n=this.constructor;n.commonCache=(i=n.commonCache)!==null&&i!==void 0?i:new Ea.CacheRegistry,this.cache=e?n.commonCache:new Ea.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,i)=>0|31*r+i.charCodeAt(0),0))}};var gi=class extends je{async listMyBookmarks(){let e=E.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var Aa=class{addCommand(e,r=!1){E.commands.add(e,r)}consumeCommand(e){return E.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Aa;var dt=m(R());var Uc,so=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},Pu=Symbol("clearAfterUnitTest"),yi=class extends(0,dt.withEventBus)(je){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Uc]=()=>{this.defaultMessages={},this.cache=new dt.CacheRegistry,this.listeners={}},this.currentUiLocale=E.getState().uiLocale,E.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=E.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var i;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let n={...(i=this.defaultMessages[e])!==null&&i!==void 0?i:{},...r};(0,dt.deepEqual)(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,i;return this.fetchContext(e),(i=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(e,r){let i=e.toLowerCase();return this.resolveContext(i)[r]}resolveMessage(e,r,...i){var n;let a=e.toLowerCase(),s=this.resolveContext(a);return new dt.ParametrizedLabelResolver((n=this.defaultMessages[a])!==null&&n!==void 0?n:{},s).resolve(r,...i)}async fetchContext(e){let r=!this.cache.has(e),i;try{i=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(n){!(n instanceof dt.CanceledPromiseError)&&r&&console.error(n)}return i}subscribe(e,r){var i;return e=e.toLowerCase(),this.listeners[e]=(i=this.listeners[e])!==null&&i!==void 0?i:new Set,this.listeners[e].add(r),()=>{var n;return(n=this.listeners[e])===null||n===void 0?void 0:n.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new so({loadedContexts:e})),this.dispatchEvent(new so({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new so({loadedContexts:[e]})),this.dispatchEvent(new so({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>(0,dt.delay)(0).then(()=>i()).catch(()=>null)))}};Uc=Pu;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends yi{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends yi{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var lo=window.FluidTopicsI18nService,mi=window.FluidTopicsCustomI18nService;var zc=m(R()),Ta=class{highlightHtml(e,r,i){(0,zc.highlightHtml)(e,r,i)}};window.FluidTopicsHighlightHtmlService=new Ta;var bi=class extends je{async listMySearches(){let{session:e}=E.getState();return zt(e,re.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var Hc=m(R());var Ra=class{isDate(e){var r,i,n,a;return(a=(n=((i=(r=E.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&i!==void 0?i:[]).find(c=>c.key===e))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1}format(e,r){var i,n,a;return Hc.DateFormatter.format(e,(i=r?.locale)!==null&&i!==void 0?i:E.getState().uiLocale,(n=r?.longFormat)!==null&&n!==void 0?n:!1,(a=r?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new Ra;var Wc=m(R());var Mo=class{static get(e,r){var i,n;let a=E.getState(),{lang:s,region:c}=(n=(i=a.defaultLocales)===null||i===void 0?void 0:i.defaultContentLocale)!==null&&n!==void 0?n:{lang:"en",region:"US"};return new Wc.SearchPlaceConverter(a.baseUrl,e??20,a.searchInAllLanguagesAllowed,r??`${s}-${c}`)}};var Ia=class{urlToSearchRequest(e){return Mo.get().parse(e)}searchRequestToUrl(e){return Mo.get().serialize(e)}};window.FluidTopicsUrlService=new Ia;var sr=m(R());var Lr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Lr.eventName="change";var _a=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))}},Gc=new _a;var xi=class t extends sr.WithEventBus{static build(){return new t(window.history,Gc,()=>window.location,!1)}constructor(e,r,i,n){var a,s;super(),this.history=e,this.historyStorage=r,this.windowLocation=i,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(a=e.state)===null||a===void 0?void 0:a.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(n)}setCurrentState(e,r=!1){let i=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,i&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,sr.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Lr(this.currentItem())),0)}installProxies(){let e=r=>(i,n,[a,s,c])=>{let p=r(),u={...p===this.currentIndex?this.currentState:void 0,...a,index:p,href:typeof c=="string"?c:(c??this.windowLocation()).href};i.apply(n,[u,s,c]),this.setCurrentState(u,!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 i={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(i)}addHistoryChangeListener(e){this.addEventListener(Lr.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Lr.eventName,e)}currentItem(){return(0,sr.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,sr.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,sr.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 i=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!i)return e;let n=e,a=e+1;for(;this.states.length>a&&!this.isDifferentMajorState(a,i);)this.hasState(a)&&(n=a),a++;return n}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 i;if(!this.hasState(e))return!1;let n=r??this.currentState.majorStateId,a=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;return a==null||a!=n}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=xi.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t)});var co=class{constructor(){this.storeListeners=[]}store(e,r){if(this.isAuthenticated())return;let i=JSON.stringify(r);window.localStorage.setItem(e,i),window.dispatchEvent(new StorageEvent("storage",{key:e,newValue:i,storageArea:window.localStorage}))}get(e){var r,i;if(!this.isAuthenticated())return(i=JSON.parse((r=window.localStorage.getItem(e))!==null&&r!==void 0?r:"null"))!==null&&i!==void 0?i:void 0}addStoreListener(e,r){let i=n=>{n.key===e()&&!this.isAuthenticated()&&r()};this.storeListeners.push(i),window.addEventListener("storage",i)}clearStoreListeners(){this.storeListeners.forEach(e=>window.removeEventListener("storage",e)),this.storeListeners.length=0}isAuthenticated(){let e=E.getState().session;return!!e?.sessionAuthenticated}};function Vc(t,e){let{authenticationRequired:r,session:i}=E.getState();return r&&!i?.sessionAuthenticated?Promise.resolve(e):t()}var we=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},oe=class extends St.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=()=>_r.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new St.CacheRegistry,this.cleanSessionDebouncer=new St.Debouncer,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return jc.html`
|
|
600
600
|
<slot></slot>
|
|
601
|
-
`}connectedCallback(){super.connectedCallback(),E.addEventListener(Nt.eventName,this.reloadConfiguration)}disconnectedCallback(){E.addEventListener(Nt.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(e){var r,i,n,a,s,c,p;super.update(e),e.has("baseUrl")&&(E.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&E.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&E.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&E.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&E.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&E.actions.noCustom(this.noCustom),e.has("editorMode")&&E.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&E.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&E.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(u=>lo.addContext(u)),e.has("openExternalDocumentInNewTab")&&E.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&E.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&E.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(E.actions.defaultLocales((r=this.localesConfiguration)===null||r===void 0?void 0:r.defaultLocales),E.actions.availableUiLocales((n=(i=this.localesConfiguration)===null||i===void 0?void 0:i.availableUiLocales)!==null&&n!==void 0?n:[]),E.actions.searchInAllLanguagesAllowed((s=(a=this.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),e.has("authenticationRequired")&&E.actions.authenticationRequired(this.authenticationRequired),e.has("availableContentLocales")&&E.actions.availableContentLocales((p=(c=this.availableContentLocales)===null||c===void 0?void 0:c.contentLocales)!==null&&p!==void 0?p:[]),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",()=>Hc(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};oe.elementDefinitions={};oe.styles=Dc;we([(0,De.property)()],oe.prototype,"baseUrl",void 0);we([(0,De.property)()],oe.prototype,"apiIntegrationIdentifier",void 0);we([(0,De.property)()],oe.prototype,"apiIntegrationAppVersion",void 0);we([(0,De.property)()],oe.prototype,"uiLocale",void 0);we([(0,St.jsonProperty)(null)],oe.prototype,"availableUiLocales",void 0);we([(0,St.jsonProperty)(null)],oe.prototype,"metadataConfiguration",void 0);we([(0,De.property)({type:Boolean})],oe.prototype,"editorMode",void 0);we([(0,De.property)({type:Boolean})],oe.prototype,"noCustom",void 0);we([(0,De.property)({type:Boolean})],oe.prototype,"openExternalDocumentInNewTab",void 0);we([(0,De.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],oe.prototype,"noCustomComponent",void 0);we([(0,De.property)({type:Boolean})],oe.prototype,"withManualResources",void 0);we([(0,De.property)({type:Boolean})],oe.prototype,"navigatorOnline",void 0);we([(0,De.property)({type:Boolean})],oe.prototype,"forcedOffline",void 0);we([(0,De.property)({type:Object})],oe.prototype,"apiProvider",void 0);we([(0,De.property)({type:Boolean})],oe.prototype,"authenticationRequired",void 0);we([(0,St.jsonProperty)([])],oe.prototype,"messageContexts",void 0);we([(0,St.jsonProperty)(void 0)],oe.prototype,"session",void 0);we([(0,De.state)()],oe.prototype,"localesConfiguration",void 0);we([(0,De.state)()],oe.prototype,"availableContentLocales",void 0);var Qa=m(K());function Nu(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let r,i,n;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(i=r;i--!==0;)if(!vi(t[i],e[i]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;for(i of t.entries())if(!vi(i[1],e.get(i[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let a=s=>Object.keys(s).filter(c=>s[c]!=null);if(n=a(t),r=n.length,r!==a(e).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,n[i]))return!1;for(i=r;i--!==0;){let s=n[i];if(!vi(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function vi(t,e){try{return Nu(t,e)}catch{return!1}}function $o(t,e){return!vi(t,e)}function Si(t,e){let r=i=>i[t]===!0;return i=>{if(r(i))return i;let n=e(i);return n[t]=!0,n}}var Gc=m(K(),1);var Ta=t=>{let e=t??{};return(r,i)=>{var n;let a={hasChanged:$o,attribute:!1,...e};(0,Gc.property)(a)(r,i);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(i,{selector:(n=e.selector)!==null&&n!==void 0?n:c=>c[i],store:e.store})}};var Ci=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(i=>i.type===e);return r&&(this.queue=this.queue.filter(i=>i!==r)),r}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 Nr=m(K(),1);var Vc=m(K(),1);function jc(t,e){let r=()=>JSON.parse(JSON.stringify(t));return(0,Vc.property)({type:Object,converter:{fromAttribute:i=>{if(i==null)return r();try{return JSON.parse(i)}catch{return r()}},toAttribute:i=>JSON.stringify(i)},hasChanged:$o,...e??{}})}var Oi=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,i)=>{this.resolvePromise=r,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let i=[...this.callbacks];this.callbacks=[];let n=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,a=(r=this.resolvePromise)!==null&&r!==void 0?r:()=>null;this.clearPromise();for(let s of i)try{await s()}catch(c){n(c);return}a(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Zc=m($(),1);var wi=globalThis,ku=wi.ShadowRoot&&(wi.ShadyCSS===void 0||wi.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,x0=Symbol();var Kc=(t,e)=>{if(ku)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let i=document.createElement("style"),n=wi.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=r.cssText,t.appendChild(i)}};var Ei=class extends Zc.LitElement{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([n,a])=>e.registry.define(n,a)));let r={...e.shadowRootOptions,customElements:e.registry},i=this.renderOptions.creationScope=this.attachShadow(r);return Kc(i,e.elementStyles),i}};function qc(t,e,...r){var i;let n=t.querySelector(e);for(let a of r)n=(i=n?.shadowRoot)===null||i===void 0?void 0:i.querySelector(a);return n}var uo=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Jc,Yc=Symbol("constructorPrototype"),Xc=Symbol("constructorName"),ed=Symbol("exportpartsDebouncer"),Qc=Symbol("dynamicDependenciesLoaded"),po=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};po.eventName="exportparts-updated";var kt=class extends Ei{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Jc]=new Oi(5),this.scheduleExportpartsUpdate=()=>{var e,r,i;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(i=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&i!==void 0&&i)&&this[ed].run(()=>{var n,a;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((a=this.exportpartsPrefixes)===null||a===void 0?void 0:a.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[Xc]=this.constructor.name,this[Yc]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Xc]&&Object.setPrototypeOf(this,this[Yc])}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(i){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",i)}let r=this.constructor;r[Qc]||(r[Qc]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(po.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(po.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 po)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:i,shadowPath:n}=this.elementToFocus;if(i!=null){let a=[...n??[],i];r=qc(this.shadowRoot,...a)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,i,n;if(((i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(a){console.error(a,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let a=document.createElement("style");a.classList.add("ft-lit-element--custom-stylesheet"),a.innerHTML=this.customStylesheet,this.shadowRoot.append(a)}}setExportpartsAttribute(e){var r,i,n,a,s,c;let p=b=>b!=null&&b.trim().length>0,u=e.filter(p).map(b=>b.trim());if(u.length===0){this.exportparts=void 0;return}let h=new Set;for(let b of(i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let x=(a=(n=b.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&a!==void 0?a:[],S=(c=(s=b.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(_=>_.split(":")[1]))!==null&&c!==void 0?c:[],w=[...x,...S].filter(p).map(_=>_.trim());for(let _ of w)h.add(_)}if(h.size===0){this.exportparts=void 0;return}let g=[...h.values()].flatMap(b=>u.map(x=>`${b}:${x}--${b}`));this.exportparts=[...this.part,...g].join(", ")}};Jc=ed;uo([(0,Nr.property)()],kt.prototype,"exportpartsPrefix",void 0);uo([jc([])],kt.prototype,"exportpartsPrefixes",void 0);uo([(0,Nr.property)({reflect:!0})],kt.prototype,"exportparts",void 0);uo([(0,Nr.property)()],kt.prototype,"customStylesheet",void 0);uo([(0,Nr.property)()],kt.prototype,"elementToFocus",void 0);uo([(0,Nr.state)()],kt.prototype,"useAdoptedStyleSheets",void 0);function Ai(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Bo=Symbol("internalReduxEventsUnsubscribers"),lr=Symbol("internalStoresUnsubscribers"),kr=Symbol("internalStores"),Pu=Si(Symbol("withRedux"),function(t){var e,r,i;class n extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[i]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(c=>s.has(c))&&this.updateFromStores()}getUnnamedStore(){if(this[kr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[kr].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[kr].get(s)}addStore(s,c){var p;c=(p=c??s.name)!==null&&p!==void 0?p:"default-store",this.unsubscribeFromStore(c),this[kr].set(c,s),this.subscribeToStore(c,s),this.updateFromStores()}removeStore(s){let c=typeof s=="string"?s:s.name;this.unsubscribeFromStore(c),this[kr].delete(c)}setupStores(){this.unsubscribeFromStores(),this[kr].forEach((s,c)=>this.subscribeToStore(c,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,c)=>{let p=this.constructor.getPropertyOptions(c);if(!p?.attribute||!this.hasAttribute(typeof p?.attribute=="string"?p.attribute:c)){let u=this.getStore(s.store);u&&(s.store?this[lr].has(s.store):this[lr].size>0)&&(this[c]=s.selector(u.getState(),this))}})}subscribeToStore(s,c){var p;this[lr].set(s,c.subscribe(()=>this.updateFromStores())),this[Bo].set(s,[]),Ai(c)&&c.eventBus&&((p=this.reduxConstructor.reduxEventListeners)===null||p===void 0||p.forEach((u,h)=>{if(typeof this[h]=="function"&&(!u.store||c.name===u.store)){let g=b=>this[h](b);c.addEventListener(u.eventName,g),this[Bo].get(s).push(()=>c.removeEventListener(u.eventName,g))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[lr].forEach((s,c)=>this.unsubscribeFromStore(c))}unsubscribeFromStore(s){var c;this[lr].has(s)&&this[lr].get(s)(),this[lr].delete(s),(c=this[Bo].get(s))===null||c===void 0||c.forEach(p=>p()),this[Bo].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=lr,r=kr,i=Bo,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),td=class extends Pu(kt){};function pt(t){for(var e=arguments.length,r=Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];if(0)var n,a;throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Kt(t){return!!t&&!!t[ae]}function Ct(t){var e;return!!t&&(function(r){if(!r||typeof r!="object")return!1;var i=Object.getPrototypeOf(r);if(i===null)return!0;var n=Object.hasOwnProperty.call(i,"constructor")&&i.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===Hu}(t)||Array.isArray(t)||!!t[ld]||!!(!((e=t.constructor)===null||e===void 0)&&e[ld])||$a(t)||Ba(t))}function Pr(t,e,r){r===void 0&&(r=!1),go(t)===0?(r?Object.keys:ho)(t).forEach(function(i){r&&typeof i=="symbol"||e(i,t[i],t)}):t.forEach(function(i,n){return e(n,i,t)})}function go(t){var e=t[ae];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:$a(t)?2:Ba(t)?3:0}function fo(t,e){return go(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Du(t,e){return go(t)===2?t.get(e):t[e]}function cd(t,e,r){var i=go(t);i===2?t.set(e,r):i===3?t.add(r):t[e]=r}function dd(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function $a(t){return Uu&&t instanceof Map}function Ba(t){return zu&&t instanceof Set}function cr(t){return t.o||t.t}function Fa(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=fd(t);delete e[ae];for(var r=ho(e),i=0;i<r.length;i++){var n=r[i],a=e[n];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[n]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[n]})}return Object.create(Object.getPrototypeOf(t),e)}function Ua(t,e){return e===void 0&&(e=!1),za(t)||Kt(t)||!Ct(t)||(go(t)>1&&(t.set=t.add=t.clear=t.delete=Mu),Object.freeze(t),e&&Pr(t,function(r,i){return Ua(i,!0)},!0)),t}function Mu(){pt(2)}function za(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Pt(t){var e=Ma[t];return e||pt(18,t),e}function $u(t,e){Ma[t]||(Ma[t]=e)}function ka(){return Uo}function Ia(t,e){e&&(Pt("Patches"),t.u=[],t.s=[],t.v=e)}function Ri(t){Pa(t),t.p.forEach(Bu),t.p=null}function Pa(t){t===Uo&&(Uo=t.l)}function rd(t){return Uo={p:[],l:Uo,h:t,m:!0,_:0}}function Bu(t){var e=t[ae];e.i===0||e.i===1?e.j():e.g=!0}function _a(t,e){e._=e.p.length;var r=e.p[0],i=t!==void 0&&t!==r;return e.h.O||Pt("ES5").S(e,t,i),i?(r[ae].P&&(Ri(e),pt(4)),Ct(t)&&(t=Ti(e,t),e.l||Ii(e,t)),e.u&&Pt("Patches").M(r[ae].t,t,e.u,e.s)):t=Ti(e,r,[]),Ri(e),e.u&&e.v(e.u,e.s),t!==ud?t:void 0}function Ti(t,e,r){if(za(e))return e;var i=e[ae];if(!i)return Pr(e,function(c,p){return od(t,i,e,c,p,r)},!0),e;if(i.A!==t)return e;if(!i.P)return Ii(t,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var n=i.i===4||i.i===5?i.o=Fa(i.k):i.o,a=n,s=!1;i.i===3&&(a=new Set(n),n.clear(),s=!0),Pr(a,function(c,p){return od(t,i,n,c,p,r,s)}),Ii(t,n,!1),r&&t.u&&Pt("Patches").N(i,r,t.u,t.s)}return i.o}function od(t,e,r,i,n,a,s){if(Kt(n)){var c=Ti(t,n,a&&e&&e.i!==3&&!fo(e.R,i)?a.concat(i):void 0);if(cd(r,i,c),!Kt(c))return;t.m=!1}else s&&r.add(n);if(Ct(n)&&!za(n)){if(!t.h.D&&t._<1)return;Ti(t,n),e&&e.A.l||Ii(t,n)}}function Ii(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&Ua(e,r)}function La(t,e){var r=t[ae];return(r?cr(r):t)[e]}function id(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var i=Object.getOwnPropertyDescriptor(r,e);if(i)return i;r=Object.getPrototypeOf(r)}}function dr(t){t.P||(t.P=!0,t.l&&dr(t.l))}function Na(t){t.o||(t.o=Fa(t.t))}function Da(t,e,r){var i=$a(e)?Pt("MapSet").F(e,r):Ba(e)?Pt("MapSet").T(e,r):t.O?function(n,a){var s=Array.isArray(n),c={i:s?1:0,A:a?a.A:ka(),P:!1,I:!1,R:{},l:a,t:n,k:null,o:null,j:null,C:!1},p=c,u=zo;s&&(p=[c],u=Fo);var h=Proxy.revocable(p,u),g=h.revoke,b=h.proxy;return c.k=b,c.j=g,b}(e,r):Pt("ES5").J(e,r);return(r?r.A:ka()).p.push(i),i}function Fu(t){return Kt(t)||pt(22,t),function e(r){if(!Ct(r))return r;var i,n=r[ae],a=go(r);if(n){if(!n.P&&(n.i<4||!Pt("ES5").K(n)))return n.t;n.I=!0,i=nd(r,a),n.I=!1}else i=nd(r,a);return Pr(i,function(s,c){n&&Du(n.t,s)===c||cd(i,s,e(c))}),a===3?new Set(i):i}(t)}function nd(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Fa(t)}function pd(){function t(s,c){var p=a[s];return p?p.enumerable=c:a[s]=p={configurable:!0,enumerable:c,get:function(){var u=this[ae];return zo.get(u,s)},set:function(u){var h=this[ae];zo.set(h,s,u)}},p}function e(s){for(var c=s.length-1;c>=0;c--){var p=s[c][ae];if(!p.P)switch(p.i){case 5:i(p)&&dr(p);break;case 4:r(p)&&dr(p)}}}function r(s){for(var c=s.t,p=s.k,u=ho(p),h=u.length-1;h>=0;h--){var g=u[h];if(g!==ae){var b=c[g];if(b===void 0&&!fo(c,g))return!0;var x=p[g],S=x&&x[ae];if(S?S.t!==b:!dd(x,b))return!0}}var w=!!c[ae];return u.length!==ho(c).length+(w?0:1)}function i(s){var c=s.k;if(c.length!==s.t.length)return!0;var p=Object.getOwnPropertyDescriptor(c,c.length-1);if(p&&!p.get)return!0;for(var u=0;u<c.length;u++)if(!c.hasOwnProperty(u))return!0;return!1}function n(s){s.g&&pt(3,JSON.stringify(cr(s)))}var a={};$u("ES5",{J:function(s,c){var p=Array.isArray(s),u=function(g,b){if(g){for(var x=Array(b.length),S=0;S<b.length;S++)Object.defineProperty(x,""+S,t(S,!0));return x}var w=fd(b);delete w[ae];for(var _=ho(w),I=0;I<_.length;I++){var L=_[I];w[L]=t(L,g||!!w[L].enumerable)}return Object.create(Object.getPrototypeOf(b),w)}(p,s),h={i:p?5:4,A:c?c.A:ka(),P:!1,I:!1,R:{},l:c,t:s,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,ae,{value:h,writable:!0}),u},S:function(s,c,p){p?Kt(c)&&c[ae].A===s&&e(s.p):(s.u&&function u(h){if(h&&typeof h=="object"){var g=h[ae];if(g){var b=g.t,x=g.k,S=g.R,w=g.i;if(w===4)Pr(x,function(H){H!==ae&&(b[H]!==void 0||fo(b,H)?S[H]||u(x[H]):(S[H]=!0,dr(g)))}),Pr(b,function(H){x[H]!==void 0||fo(x,H)||(S[H]=!1,dr(g))});else if(w===5){if(i(g)&&(dr(g),S.length=!0),x.length<b.length)for(var _=x.length;_<b.length;_++)S[_]=!1;else for(var I=b.length;I<x.length;I++)S[I]=!0;for(var L=Math.min(x.length,b.length),M=0;M<L;M++)x.hasOwnProperty(M)||(S[M]=!0),S[M]===void 0&&u(x[M])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?r(s):i(s)}})}var ad,Uo,Ha=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Uu=typeof Map<"u",zu=typeof Set<"u",sd=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",ud=Ha?Symbol.for("immer-nothing"):((ad={})["immer-nothing"]=!0,ad),ld=Ha?Symbol.for("immer-draftable"):"__$immer_draftable",ae=Ha?Symbol.for("immer-state"):"__$immer_state";var Hu=""+Object.prototype.constructor,ho=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,fd=Object.getOwnPropertyDescriptors||function(t){var e={};return ho(t).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)}),e},Ma={},zo={get:function(t,e){if(e===ae)return t;var r=cr(t);if(!fo(r,e))return function(n,a,s){var c,p=id(a,s);return p?"value"in p?p.value:(c=p.get)===null||c===void 0?void 0:c.call(n.k):void 0}(t,r,e);var i=r[e];return t.I||!Ct(i)?i:i===La(t.t,e)?(Na(t),t.o[e]=Da(t.A.h,i,t)):i},has:function(t,e){return e in cr(t)},ownKeys:function(t){return Reflect.ownKeys(cr(t))},set:function(t,e,r){var i=id(cr(t),e);if(i?.set)return i.set.call(t.k,r),!0;if(!t.P){var n=La(cr(t),e),a=n?.[ae];if(a&&a.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(dd(r,n)&&(r!==void 0||fo(t.t,e)))return!0;Na(t),dr(t)}return t.o[e]===r&&(r!==void 0||e in t.o)||Number.isNaN(r)&&Number.isNaN(t.o[e])||(t.o[e]=r,t.R[e]=!0),!0},deleteProperty:function(t,e){return La(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Na(t),dr(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=cr(t),i=Reflect.getOwnPropertyDescriptor(r,e);return i&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:i.enumerable,value:r[e]}},defineProperty:function(){pt(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){pt(12)}},Fo={};Pr(zo,function(t,e){Fo[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Fo.deleteProperty=function(t,e){return Fo.set.call(this,t,e,void 0)},Fo.set=function(t,e,r){return zo.set.call(this,t[0],e,r,t[0])};var Wu=function(){function t(r){var i=this;this.O=sd,this.D=!0,this.produce=function(n,a,s){if(typeof n=="function"&&typeof a!="function"){var c=a;a=n;var p=i;return function(w){var _=this;w===void 0&&(w=c);for(var I=arguments.length,L=Array(I>1?I-1:0),M=1;M<I;M++)L[M-1]=arguments[M];return p.produce(w,function(H){var W;return(W=a).call.apply(W,[_,H].concat(L))})}}var u;if(typeof a!="function"&&pt(6),s!==void 0&&typeof s!="function"&&pt(7),Ct(n)){var h=rd(i),g=Da(i,n,void 0),b=!0;try{u=a(g),b=!1}finally{b?Ri(h):Pa(h)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(w){return Ia(h,s),_a(w,h)},function(w){throw Ri(h),w}):(Ia(h,s),_a(u,h))}if(!n||typeof n!="object"){if((u=a(n))===void 0&&(u=n),u===ud&&(u=void 0),i.D&&Ua(u,!0),s){var x=[],S=[];Pt("Patches").M(n,u,x,S),s(x,S)}return u}pt(21,n)},this.produceWithPatches=function(n,a){if(typeof n=="function")return function(u){for(var h=arguments.length,g=Array(h>1?h-1:0),b=1;b<h;b++)g[b-1]=arguments[b];return i.produceWithPatches(u,function(x){return n.apply(void 0,[x].concat(g))})};var s,c,p=i.produce(n,a,function(u,h){s=u,c=h});return typeof Promise<"u"&&p instanceof Promise?p.then(function(u){return[u,s,c]}):[p,s,c]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=t.prototype;return e.createDraft=function(r){Ct(r)||pt(8),Kt(r)&&(r=Fu(r));var i=rd(this),n=Da(this,r,void 0);return n[ae].C=!0,Pa(i),n},e.finishDraft=function(r,i){var n=r&&r[ae],a=n.A;return Ia(a,i),_a(void 0,a)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!sd&&pt(20),this.O=r},e.applyPatches=function(r,i){var n;for(n=i.length-1;n>=0;n--){var a=i[n];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}n>-1&&(i=i.slice(n+1));var s=Pt("Patches").$;return Kt(r)?s(r,i):this.produce(r,function(c){return s(c,i)})},t}(),rt=new Wu,Gu=rt.produce,P0=rt.produceWithPatches.bind(rt),D0=rt.setAutoFreeze.bind(rt),M0=rt.setUseProxies.bind(rt),$0=rt.applyPatches.bind(rt),B0=rt.createDraft.bind(rt),F0=rt.finishDraft.bind(rt),_i=Gu;function Dr(t){"@babel/helpers - typeof";return Dr=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},Dr(t)}function hd(t,e){if(Dr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,e||"default");if(Dr(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function gd(t){var e=hd(t,"string");return Dr(e)=="symbol"?e:e+""}function yd(t,e,r){return(e=gd(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function md(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,i)}return r}function Wa(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?md(Object(r),!0).forEach(function(i){yd(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):md(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function Fe(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var bd=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Ga=function(){return Math.random().toString(36).substring(7).split("").join(".")},Li={INIT:"@@redux/INIT"+Ga(),REPLACE:"@@redux/REPLACE"+Ga(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Ga()}};function Vu(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function Va(t,e,r){var i;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Fe(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Fe(1));return r(Va)(t,e)}if(typeof t!="function")throw new Error(Fe(2));var n=t,a=e,s=[],c=s,p=!1;function u(){c===s&&(c=s.slice())}function h(){if(p)throw new Error(Fe(3));return a}function g(w){if(typeof w!="function")throw new Error(Fe(4));if(p)throw new Error(Fe(5));var _=!0;return u(),c.push(w),function(){if(_){if(p)throw new Error(Fe(6));_=!1,u();var L=c.indexOf(w);c.splice(L,1),s=null}}}function b(w){if(!Vu(w))throw new Error(Fe(7));if(typeof w.type>"u")throw new Error(Fe(8));if(p)throw new Error(Fe(9));try{p=!0,a=n(a,w)}finally{p=!1}for(var _=s=c,I=0;I<_.length;I++){var L=_[I];L()}return w}function x(w){if(typeof w!="function")throw new Error(Fe(10));n=w,b({type:Li.REPLACE})}function S(){var w,_=g;return w={subscribe:function(L){if(typeof L!="object"||L===null)throw new Error(Fe(11));function M(){L.next&&L.next(h())}M();var H=_(M);return{unsubscribe:H}}},w[bd]=function(){return this},w}return b({type:Li.INIT}),i={dispatch:b,subscribe:g,getState:h,replaceReducer:x},i[bd]=S,i}function ju(t){Object.keys(t).forEach(function(e){var r=t[e],i=r(void 0,{type:Li.INIT});if(typeof i>"u")throw new Error(Fe(12));if(typeof r(void 0,{type:Li.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Fe(13))})}function xd(t){for(var e=Object.keys(t),r={},i=0;i<e.length;i++){var n=e[i];typeof t[n]=="function"&&(r[n]=t[n])}var a=Object.keys(r),s,c;try{ju(r)}catch(p){c=p}return function(u,h){if(u===void 0&&(u={}),c)throw c;if(0)var g;for(var b=!1,x={},S=0;S<a.length;S++){var w=a[S],_=r[w],I=u[w],L=_(I,h);if(typeof L>"u"){var M=h&&h.type;throw new Error(Fe(14))}x[w]=L,b=b||L!==I}return b=b||a.length!==Object.keys(u).length,b?x:u}}function yo(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length===0?function(i){return i}:e.length===1?e[0]:e.reduce(function(i,n){return function(){return i(n.apply(void 0,arguments))}})}function vd(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(i){return function(){var n=i.apply(void 0,arguments),a=function(){throw new Error(Fe(15))},s={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},c=e.map(function(p){return p(s)});return a=yo.apply(void 0,c)(n.dispatch),Wa(Wa({},n),{},{dispatch:a})}}}function Sd(t){var e=function(i){var n=i.dispatch,a=i.getState;return function(s){return function(c){return typeof c=="function"?c(n,a,t):s(c)}}};return e}var Cd=Sd();Cd.withExtraArgument=Sd;var ja=Cd;var Rd=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(i[a]=n[a])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}(),Ku=function(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,n,a,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(u){return function(h){return p([u,h])}}function p(u){if(i)throw new TypeError("Generator is already executing.");for(;r;)try{if(i=1,n&&(a=u[0]&2?n.return:u[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,u[1])).done)return a;switch(n=0,a&&(u=[u[0]&2,a.value]),u[0]){case 0:case 1:a=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,n=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){r.label=u[1];break}if(u[0]===6&&r.label<a[1]){r.label=a[1],a=u;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(u);break}a[2]&&r.ops.pop(),r.trys.pop();continue}u=e.call(t,r)}catch(h){u=[6,h],n=0}finally{i=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},mo=function(t,e){for(var r=0,i=e.length,n=t.length;r<i;r++,n++)t[n]=e[r];return t},Zu=Object.defineProperty,qu=Object.defineProperties,Yu=Object.getOwnPropertyDescriptors,Od=Object.getOwnPropertySymbols,Xu=Object.prototype.hasOwnProperty,Qu=Object.prototype.propertyIsEnumerable,wd=function(t,e,r){return e in t?Zu(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},pr=function(t,e){for(var r in e||(e={}))Xu.call(e,r)&&wd(t,r,e[r]);if(Od)for(var i=0,n=Od(e);i<n.length;i++){var r=n[i];Qu.call(e,r)&&wd(t,r,e[r])}return t},Ka=function(t,e){return qu(t,Yu(e))},Ju=function(t,e,r){return new Promise(function(i,n){var a=function(p){try{c(r.next(p))}catch(u){n(u)}},s=function(p){try{c(r.throw(p))}catch(u){n(u)}},c=function(p){return p.done?i(p.value):Promise.resolve(p.value).then(a,s)};c((r=r.apply(t,e)).next())})};var ef=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?yo:yo.apply(null,arguments)},oS=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function tf(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return e===r}var rf=function(t){Rd(e,t);function e(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var n=t.apply(this,r)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,mo([void 0],r[0].concat(this)))):new(e.bind.apply(e,mo([void 0],r.concat(this))))},e}(Array),of=function(t){Rd(e,t);function e(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var n=t.apply(this,r)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,mo([void 0],r[0].concat(this)))):new(e.bind.apply(e,mo([void 0],r.concat(this))))},e}(Array);function Ya(t){return Ct(t)?_i(t,function(){}):t}function nf(t){return typeof t=="boolean"}function af(){return function(e){return sf(e)}}function sf(t){t===void 0&&(t={});var e=t.thunk,r=e===void 0?!0:e,i=t.immutableCheck,n=i===void 0?!0:i,a=t.serializableCheck,s=a===void 0?!0:a,c=new rf;if(r&&(nf(r)?c.push(ja):c.push(ja.withExtraArgument(r.extraArgument))),0){if(n)var p;if(s)var u}return c}var Za=!0;function Td(t){var e=af(),r=t||{},i=r.reducer,n=i===void 0?void 0:i,a=r.middleware,s=a===void 0?e():a,c=r.devTools,p=c===void 0?!0:c,u=r.preloadedState,h=u===void 0?void 0:u,g=r.enhancers,b=g===void 0?void 0:g,x;if(typeof n=="function")x=n;else if(tf(n))x=xd(n);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var S=s;if(typeof S=="function"&&(S=S(e),!Za&&!Array.isArray(S)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Za&&S.some(function(H){return typeof H!="function"}))throw new Error("each middleware provided to configureStore must be a function");var w=vd.apply(void 0,S),_=yo;p&&(_=ef(pr({trace:!Za},typeof p=="object"&&p)));var I=new of(w),L=I;Array.isArray(b)?L=mo([w],b):typeof b=="function"&&(L=b(I));var M=_.apply(void 0,L);return Va(x,h,M)}function ur(t,e){function r(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(e){var a=e.apply(void 0,i);if(!a)throw new Error("prepareAction did not return an object");return pr(pr({type:t,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:t,payload:i[0]}}return r.toString=function(){return""+t},r.type=t,r.match=function(i){return i.type===t},r}function Id(t){var e={},r=[],i,n={addCase:function(a,s){var c=typeof a=="string"?a:a.type;if(c in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[c]=s,n},addMatcher:function(a,s){return r.push({matcher:a,reducer:s}),n},addDefaultCase:function(a){return i=a,n}};return t(n),[e,r,i]}function lf(t){return typeof t=="function"}function cf(t,e,r,i){r===void 0&&(r=[]);var n=typeof e=="function"?Id(e):[e,r,i],a=n[0],s=n[1],c=n[2],p;if(lf(t))p=function(){return Ya(t())};else{var u=Ya(t);p=function(){return u}}function h(g,b){g===void 0&&(g=p());var x=mo([a[b.type]],s.filter(function(S){var w=S.matcher;return w(b)}).map(function(S){var w=S.reducer;return w}));return x.filter(function(S){return!!S}).length===0&&(x=[c]),x.reduce(function(S,w){if(w)if(Kt(S)){var _=S,I=w(_,b);return I===void 0?S:I}else{if(Ct(S))return _i(S,function(L){return w(L,b)});var I=w(S,b);if(I===void 0){if(S===null)return S;throw Error("A case reducer on a non-draftable value must not return undefined")}return I}return S},g)}return h.getInitialState=p,h}function df(t,e){return t+"/"+e}function _d(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof t.initialState=="function"?t.initialState:Ya(t.initialState),i=t.reducers||{},n=Object.keys(i),a={},s={},c={};n.forEach(function(h){var g=i[h],b=df(e,h),x,S;"reducer"in g?(x=g.reducer,S=g.prepare):x=g,a[h]=x,s[b]=x,c[h]=S?ur(b,S):ur(b)});function p(){var h=typeof t.extraReducers=="function"?Id(t.extraReducers):[t.extraReducers],g=h[0],b=g===void 0?{}:g,x=h[1],S=x===void 0?[]:x,w=h[2],_=w===void 0?void 0:w,I=pr(pr({},b),s);return cf(r,function(L){for(var M in I)L.addCase(M,I[M]);for(var H=0,W=S;H<W.length;H++){var qe=W[H];L.addMatcher(qe.matcher,qe.reducer)}_&&L.addDefaultCase(_)})}var u;return{name:e,reducer:function(h,g){return u||(u=p()),u(h,g)},actions:c,caseReducers:a,getInitialState:function(){return u||(u=p()),u.getInitialState()}}}var pf="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",uf=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=pf[Math.random()*64|0];return e},ff=["name","message","stack","code"],qa=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),Ed=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),hf=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,i=ff;r<i.length;r++){var n=i[r];typeof t[n]=="string"&&(e[n]=t[n])}return e}return{message:String(t)}},sS=function(){function t(e,r,i){var n=ur(e+"/fulfilled",function(h,g,b,x){return{payload:h,meta:Ka(pr({},x||{}),{arg:b,requestId:g,requestStatus:"fulfilled"})}}),a=ur(e+"/pending",function(h,g,b){return{payload:void 0,meta:Ka(pr({},b||{}),{arg:g,requestId:h,requestStatus:"pending"})}}),s=ur(e+"/rejected",function(h,g,b,x,S){return{payload:x,error:(i&&i.serializeError||hf)(h||"Rejected"),meta:Ka(pr({},S||{}),{arg:b,requestId:g,rejectedWithValue:!!x,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),c=!1,p=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 u(h){return function(g,b,x){var S=i?.idGenerator?i.idGenerator(h):uf(),w=new p,_,I=!1;function L(H){_=H,w.abort()}var M=function(){return Ju(this,null,function(){var H,W,qe,Rt,Ge,Tt,Ne;return Ku(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),Rt=(H=i?.condition)==null?void 0:H.call(i,h,{getState:b,extra:x}),yf(Rt)?[4,Rt]:[3,2];case 1:Rt=y.sent(),y.label=2;case 2:if(Rt===!1||w.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return I=!0,Ge=new Promise(function(v,P){return w.signal.addEventListener("abort",function(){return P({name:"AbortError",message:_||"Aborted"})})}),g(a(S,h,(W=i?.getPendingMeta)==null?void 0:W.call(i,{requestId:S,arg:h},{getState:b,extra:x}))),[4,Promise.race([Ge,Promise.resolve(r(h,{dispatch:g,getState:b,extra:x,requestId:S,signal:w.signal,abort:L,rejectWithValue:function(v,P){return new qa(v,P)},fulfillWithValue:function(v,P){return new Ed(v,P)}})).then(function(v){if(v instanceof qa)throw v;return v instanceof Ed?n(v.payload,S,h,v.meta):n(v,S,h)})])];case 3:return qe=y.sent(),[3,5];case 4:return Tt=y.sent(),qe=Tt instanceof qa?s(null,S,h,Tt.payload,Tt.meta):s(Tt,S,h),[3,5];case 5:return Ne=i&&!i.dispatchConditionRejection&&s.match(qe)&&qe.meta.condition,Ne||g(qe),[2,qe]}})})}();return Object.assign(M,{abort:L,requestId:S,arg:h,unwrap:function(){return M.then(gf)}})}}return Object.assign(u,{pending:a,rejected:s,fulfilled:n,typePrefix:e})}return t.withTypes=function(){return t},t}();function gf(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function yf(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Ld="listener",Nd="completed",kd="cancelled",lS="task-"+kd,cS="task-"+Nd,dS=Ld+"-"+kd,pS=Ld+"-"+Nd;var Xa="listenerMiddleware";var uS=ur(Xa+"/add"),fS=ur(Xa+"/removeAll"),hS=ur(Xa+"/remove");var Ad,gS=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Ad||(Ad=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},mf=function(t){return function(e){setTimeout(e,t)}},yS=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:mf(10);pd();var bf=Si(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,i,n){this.eventBus.addEventListener(r,i,n)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,i,n){this.eventBus.removeEventListener(r,i,n)}}}),Ni=class extends bf(Object){};window.ftReduxStores||(window.ftReduxStores={});var Pd=class t extends Ni{static get(e){var r;let i=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,a=window.ftReduxStores[i];if(Ai(a))return a;if(n==null)return;let s=_d({...n,reducers:(r=n.reducers)!==null&&r!==void 0?r:{}}),c=Td({reducer:(p,u)=>u.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__")?{...p,...u.overwrites}:s.reducer(p,u)});return window.ftReduxStores[n.name]=new t(s,c,n.eventBus)}constructor(e,r,i){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new Ci;let n=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,s,c)=>{let p=s,u=a[p];return u?(...h)=>{let g=u(...h.map(n));return this.reduxStore.dispatch(g),g}:h=>{this.setState({[p]:n(h)})}}}),this.eventBus=i??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var ki=class{static format(e,r,i,n){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(i,n)):this.getIntlDateTime(e,r,i,n)}static getMomentDateFormat(e,r){return e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,i,n){let a=typeof e=="string"?new Date(e):e,s=new Intl.DateTimeFormat(r,{dateStyle:i?"medium":"short"}).format(a);if(!n)return s;let c=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(a);return`${s} ${c}`}static getTimezoneAsString(){let e=i=>String(Math.floor(i)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var Dd=m(T()),Pi=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},HS=(0,Dd.applyMixinOnce)(Symbol("withDateFormat"),function(t){class e extends t{constructor(...i){super(i),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(E)}dateFormatOptionsChanged(i){return i.has("metadataDescriptors")||i.has("useLongDateFormat")||i.has("useDateTimeFormat")||i.has("uiLocale")}getDateFormatter(i){var n,a;return((a=(n=this.metadataDescriptors.find(c=>c.key===i))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1)?c=>ki.format(c,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Pi([(0,Qa.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Pi([(0,Qa.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Pi([Ta({store:E.name,selector:r=>{var i,n;return(n=(i=r.metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&n!==void 0?n:[]}})],e.prototype,"metadataDescriptors",void 0),Pi([Ta({store:E.name})],e.prototype,"uiLocale",void 0),e});var $i=m(T());var Di=class extends je{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=E.getState().session;return!!e?.sessionAuthenticated}};var Mi=class extends je{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=E.getState().session;return!!e?.sessionAuthenticated}};var xf="ft-user-assets",vf={setAssetCount:(t,e)=>{let{userAssetType:r,count:i}=e.payload.assetCount;t.assetCounts.allAsset[r]=i},clearAssetCount:t=>{Object.values(ct).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let r=e.payload.mapId;t.assetCounts.bookmarkByMap[r]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:r,mapId:i,asset:n}=e.payload;es(t,r,[...Ja(t,r),n]),Md(t,r,1,i),$d(t,n)},editAsset:(t,e)=>{let{assetType:r,asset:i}=e.payload;es(t,r,Ja(t,r).map(n=>n.id===i.id?i:n)),$d(t,i)},removeAsset:(t,e)=>{let{assetType:r,mapId:i,assetId:n}=e.payload;es(t,r,Ja(t,r).filter(a=>a.id!==n)),Md(t,r,-1,i)}},Bd={[ct.SEARCHES]:"savedSearches",[ct.BOOKMARKS]:"bookmarks",[ct.BOOKS]:void 0,[ct.COLLECTIONS]:void 0},Ja=(t,e)=>{var r;let i=Bd[e];return i?(r=t[i])!==null&&r!==void 0?r:[]:[]},es=(t,e,r)=>{let i=Bd[e];i&&(t[i]=r)},Md=(t,e,r,i)=>{let n=t.assetCounts.allAsset[e];if(n!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,n+r),e===ct.BOOKMARKS&&i)){let a=t.assetCounts.bookmarkByMap[i];t.assetCounts.bookmarkByMap[i]=Math.max(0,a+r)}},$d=(t,e)=>{let r=t.assetLabels.map(n=>n.title),i=e.labels.filter(n=>!r.includes(n)).map(n=>({title:n}));t.assetLabels.push(...i)},ot=$i.FtReduxStore.get({name:xf,reducers:vf,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(ct).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),ts=class{constructor(e=new Di,r=new Mi){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=E.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new gi,this.savedSearchesService=new bi,E.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=E.getState();(0,$i.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(),ot.actions.clearAssetCount(),ot.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),ot.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),ot.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();ot.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();ot.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&ot.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&ot.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(ot.getState().assetCounts.bookmarkByMap).length!==0;e===ct.BOOKMARKS&&r&&ot.actions.clearBookmarkCountByMap(),ot.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;ot.actions.bookmarks(r)}}},rs=new ts;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=rs);(0,Fd.customElement)("ft-app-context")(oe);var Ud=m(K());var os=class{fromLocalizableLabel(e){return e.type=="PLAIN_TEXT"?{message:e.text}:{key:e.key,custom:e.type=="LOCALIZED_CUSTOM",context:e.context,message:e.key}}fromAttribute(e){if(e!=null)try{return JSON.parse(e)}catch{if(this.isI18nKey(e)){let[i,n]=e.split(".");return{context:i,key:n,custom:!0,message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},bo=new os;var Sf=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Wo=Symbol("i18nAttributes"),zd=Symbol("i18nListAttributes"),Go=Symbol("i18nProperties"),Bi=Symbol("i18nContexts"),Ho=Symbol("i18nUnsubs"),fr=(0,xo.applyMixinOnce)(Symbol("withI18n"),function(t){var e,r;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[r]=new Map}getI18nService(a){return a??this.useCustomMessageContexts?mi:lo}i18n(a){let{context:s,key:c,message:p}=a,{custom:u,args:h,argsProvider:g}=a;if(s&&c){this.hasI18nContext(s)||this.addI18nContext(s,void 0,u);let b=h??(g?g(this):[]);return this.getI18nService(u).resolveMessage(s,c,...b)}return p}async awaitI18n(a){let{context:s,custom:c}=a;return s&&await this.getI18nService(c).prepareContext(s),this.i18n(a)}customI18n(a,s){if(bo.isI18nKey(a)){let[c,p]=a.split(".");return this.i18n({custom:!0,context:c,key:p,...s})||a}return a}firstUpdated(a){super.firstUpdated(a),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(a){super.update(a),this.updateI18nAttributes((s,c,p)=>a.has(c)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(a){this.updateI18nAttributes((s,c,p)=>{var u;return((u=p?.context)===null||u===void 0?void 0:u.toLowerCase())===a}),this.updateI18nProperties(s=>s.context.toLowerCase()===a),this.requestUpdate()}updateI18nAttributes(a){var s,c;let p=this,u=(h,g,b)=>b?.context&&b.key&&a(h,g,b)?{...b,message:this.i18n({context:b.context,key:b.key,custom:b.custom,...h})}:b;(s=this[Wo])===null||s===void 0||s.forEach((h,g)=>p[g]=u(h,g,p[g])),(c=this[zd])===null||c===void 0||c.forEach((h,g)=>{var b;return p[g]=(b=p[g])===null||b===void 0?void 0:b.map(x=>u(h,g,x))})}updateI18nProperties(a){var s;(s=this[Go])===null||s===void 0||s.forEach((c,p)=>{a(c,p)&&(this[p]=this.i18n(c))})}addI18nMessages(a,s,c){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(a,s,c)}addI18nContext(a,s,c){let p=(typeof a=="string"?a:a.name).toLowerCase();c=typeof a=="string"?c:a.custom,this[Bi].set(p,{isCustomContext:c}),this[Ho].has(p)||this[Ho].set(p,this.getI18nService(c).subscribe(p,()=>this.onI18nUpdate(p))),this.getI18nService(c).prepareContext(p,s)}hasI18nContext(a){return this[Bi].has(a.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Bi].forEach((a,s)=>this.addI18nContext(s,void 0,a.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Ho].forEach(a=>a()),this[Ho].clear()}}return e=Bi,r=Ho,Sf([(0,Ud.property)({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),Fi=class extends fr(xo.FtLitElement){},Ui=class extends fr(xo.FtLitElementRedux){};var Hd=m(T());var is=class{fromAttribute(e){if(!e)return[];try{let r=JSON.parse(e);return Array.isArray(r)?r.map(i=>typeof i=="string"?bo.fromAttribute(i):i):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},Cf=new is;var Wd=(t,e)=>(r,i)=>{var n;r.constructor.createProperty(i,{type:Object,hasChanged:Hd.hasChanged,converter:bo,...e}),r[Wo]=(n=r[Wo])!==null&&n!==void 0?n:new Map,r[Wo].set(i,t??{})};var jd=m(T());var zi=m($()),Hi=m(K()),Wi=m(T());var Gd=m($());var Vd=Gd.css`
|
|
601
|
+
`}connectedCallback(){super.connectedCallback(),E.addEventListener(kt.eventName,this.reloadConfiguration)}disconnectedCallback(){E.addEventListener(kt.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(e){var r,i,n,a,s,c,p;super.update(e),e.has("baseUrl")&&(E.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&E.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&E.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&E.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&E.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&E.actions.noCustom(this.noCustom),e.has("editorMode")&&E.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&E.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&E.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(u=>lo.addContext(u)),e.has("openExternalDocumentInNewTab")&&E.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&E.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&E.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(E.actions.defaultLocales((r=this.localesConfiguration)===null||r===void 0?void 0:r.defaultLocales),E.actions.availableUiLocales((n=(i=this.localesConfiguration)===null||i===void 0?void 0:i.availableUiLocales)!==null&&n!==void 0?n:[]),E.actions.searchInAllLanguagesAllowed((s=(a=this.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),e.has("authenticationRequired")&&E.actions.authenticationRequired(this.authenticationRequired),e.has("availableContentLocales")&&E.actions.availableContentLocales((p=(c=this.availableContentLocales)===null||c===void 0?void 0:c.contentLocales)!==null&&p!==void 0?p:[]),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",()=>Vc(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};oe.elementDefinitions={};oe.styles=Fc;we([(0,De.property)()],oe.prototype,"baseUrl",void 0);we([(0,De.property)()],oe.prototype,"apiIntegrationIdentifier",void 0);we([(0,De.property)()],oe.prototype,"apiIntegrationAppVersion",void 0);we([(0,De.property)()],oe.prototype,"uiLocale",void 0);we([(0,St.jsonProperty)(null)],oe.prototype,"availableUiLocales",void 0);we([(0,St.jsonProperty)(null)],oe.prototype,"metadataConfiguration",void 0);we([(0,De.property)({type:Boolean})],oe.prototype,"editorMode",void 0);we([(0,De.property)({type:Boolean})],oe.prototype,"noCustom",void 0);we([(0,De.property)({type:Boolean})],oe.prototype,"openExternalDocumentInNewTab",void 0);we([(0,De.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],oe.prototype,"noCustomComponent",void 0);we([(0,De.property)({type:Boolean})],oe.prototype,"withManualResources",void 0);we([(0,De.property)({type:Boolean})],oe.prototype,"navigatorOnline",void 0);we([(0,De.property)({type:Boolean})],oe.prototype,"forcedOffline",void 0);we([(0,De.property)({type:Object})],oe.prototype,"apiProvider",void 0);we([(0,De.property)({type:Boolean})],oe.prototype,"authenticationRequired",void 0);we([(0,St.jsonProperty)([])],oe.prototype,"messageContexts",void 0);we([(0,St.jsonProperty)(void 0)],oe.prototype,"session",void 0);we([(0,De.state)()],oe.prototype,"localesConfiguration",void 0);we([(0,De.state)()],oe.prototype,"availableContentLocales",void 0);var ts=m(K());function Du(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let r,i,n;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(i=r;i--!==0;)if(!vi(t[i],e[i]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;for(i of t.entries())if(!vi(i[1],e.get(i[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let a=s=>Object.keys(s).filter(c=>s[c]!=null);if(n=a(t),r=n.length,r!==a(e).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,n[i]))return!1;for(i=r;i--!==0;){let s=n[i];if(!vi(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function vi(t,e){try{return Du(t,e)}catch{return!1}}function $o(t,e){return!vi(t,e)}function Si(t,e){let r=i=>i[t]===!0;return i=>{if(r(i))return i;let n=e(i);return n[t]=!0,n}}var Kc=m(K(),1);var La=t=>{let e=t??{};return(r,i)=>{var n;let a={hasChanged:$o,attribute:!1,...e};(0,Kc.property)(a)(r,i);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(i,{selector:(n=e.selector)!==null&&n!==void 0?n:c=>c[i],store:e.store})}};var Ci=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(i=>i.type===e);return r&&(this.queue=this.queue.filter(i=>i!==r)),r}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 Nr=m(K(),1);var Zc=m(K(),1);function qc(t,e){let r=()=>JSON.parse(JSON.stringify(t));return(0,Zc.property)({type:Object,converter:{fromAttribute:i=>{if(i==null)return r();try{return JSON.parse(i)}catch{return r()}},toAttribute:i=>JSON.stringify(i)},hasChanged:$o,...e??{}})}var Oi=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,i)=>{this.resolvePromise=r,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let i=[...this.callbacks];this.callbacks=[];let n=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,a=(r=this.resolvePromise)!==null&&r!==void 0?r:()=>null;this.clearPromise();for(let s of i)try{await s()}catch(c){n(c);return}a(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Xc=m($(),1);var wi=globalThis,Mu=wi.ShadowRoot&&(wi.ShadyCSS===void 0||wi.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,C0=Symbol();var Yc=(t,e)=>{if(Mu)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let i=document.createElement("style"),n=wi.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=r.cssText,t.appendChild(i)}};var Ei=class extends Xc.LitElement{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([n,a])=>e.registry.define(n,a)));let r={...e.shadowRootOptions,customElements:e.registry},i=this.renderOptions.creationScope=this.attachShadow(r);return Yc(i,e.elementStyles),i}};function Qc(t,e,...r){var i;let n=t.querySelector(e);for(let a of r)n=(i=n?.shadowRoot)===null||i===void 0?void 0:i.querySelector(a);return n}var uo=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},rd,Jc=Symbol("constructorPrototype"),ed=Symbol("constructorName"),od=Symbol("exportpartsDebouncer"),td=Symbol("dynamicDependenciesLoaded"),po=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};po.eventName="exportparts-updated";var Pt=class extends Ei{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[rd]=new Oi(5),this.scheduleExportpartsUpdate=()=>{var e,r,i;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(i=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&i!==void 0&&i)&&this[od].run(()=>{var n,a;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((a=this.exportpartsPrefixes)===null||a===void 0?void 0:a.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[ed]=this.constructor.name,this[Jc]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[ed]&&Object.setPrototypeOf(this,this[Jc])}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(i){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",i)}let r=this.constructor;r[td]||(r[td]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(po.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(po.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 po)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:i,shadowPath:n}=this.elementToFocus;if(i!=null){let a=[...n??[],i];r=Qc(this.shadowRoot,...a)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,i,n;if(((i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(a){console.error(a,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let a=document.createElement("style");a.classList.add("ft-lit-element--custom-stylesheet"),a.innerHTML=this.customStylesheet,this.shadowRoot.append(a)}}setExportpartsAttribute(e){var r,i,n,a,s,c;let p=b=>b!=null&&b.trim().length>0,u=e.filter(p).map(b=>b.trim());if(u.length===0){this.exportparts=void 0;return}let h=new Set;for(let b of(i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let x=(a=(n=b.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&a!==void 0?a:[],S=(c=(s=b.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(_=>_.split(":")[1]))!==null&&c!==void 0?c:[],w=[...x,...S].filter(p).map(_=>_.trim());for(let _ of w)h.add(_)}if(h.size===0){this.exportparts=void 0;return}let g=[...h.values()].flatMap(b=>u.map(x=>`${b}:${x}--${b}`));this.exportparts=[...this.part,...g].join(", ")}};rd=od;uo([(0,Nr.property)()],Pt.prototype,"exportpartsPrefix",void 0);uo([qc([])],Pt.prototype,"exportpartsPrefixes",void 0);uo([(0,Nr.property)({reflect:!0})],Pt.prototype,"exportparts",void 0);uo([(0,Nr.property)()],Pt.prototype,"customStylesheet",void 0);uo([(0,Nr.property)()],Pt.prototype,"elementToFocus",void 0);uo([(0,Nr.state)()],Pt.prototype,"useAdoptedStyleSheets",void 0);function Ai(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Bo=Symbol("internalReduxEventsUnsubscribers"),lr=Symbol("internalStoresUnsubscribers"),kr=Symbol("internalStores"),$u=Si(Symbol("withRedux"),function(t){var e,r,i;class n extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[i]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(c=>s.has(c))&&this.updateFromStores()}getUnnamedStore(){if(this[kr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[kr].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[kr].get(s)}addStore(s,c){var p;c=(p=c??s.name)!==null&&p!==void 0?p:"default-store",this.unsubscribeFromStore(c),this[kr].set(c,s),this.subscribeToStore(c,s),this.updateFromStores()}removeStore(s){let c=typeof s=="string"?s:s.name;this.unsubscribeFromStore(c),this[kr].delete(c)}setupStores(){this.unsubscribeFromStores(),this[kr].forEach((s,c)=>this.subscribeToStore(c,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,c)=>{let p=this.constructor.getPropertyOptions(c);if(!p?.attribute||!this.hasAttribute(typeof p?.attribute=="string"?p.attribute:c)){let u=this.getStore(s.store);u&&(s.store?this[lr].has(s.store):this[lr].size>0)&&(this[c]=s.selector(u.getState(),this))}})}subscribeToStore(s,c){var p;this[lr].set(s,c.subscribe(()=>this.updateFromStores())),this[Bo].set(s,[]),Ai(c)&&c.eventBus&&((p=this.reduxConstructor.reduxEventListeners)===null||p===void 0||p.forEach((u,h)=>{if(typeof this[h]=="function"&&(!u.store||c.name===u.store)){let g=b=>this[h](b);c.addEventListener(u.eventName,g),this[Bo].get(s).push(()=>c.removeEventListener(u.eventName,g))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[lr].forEach((s,c)=>this.unsubscribeFromStore(c))}unsubscribeFromStore(s){var c;this[lr].has(s)&&this[lr].get(s)(),this[lr].delete(s),(c=this[Bo].get(s))===null||c===void 0||c.forEach(p=>p()),this[Bo].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=lr,r=kr,i=Bo,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),id=class extends $u(Pt){};function pt(t){for(var e=arguments.length,r=Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];if(0)var n,a;throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Zt(t){return!!t&&!!t[ae]}function Ct(t){var e;return!!t&&(function(r){if(!r||typeof r!="object")return!1;var i=Object.getPrototypeOf(r);if(i===null)return!0;var n=Object.hasOwnProperty.call(i,"constructor")&&i.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===Vu}(t)||Array.isArray(t)||!!t[pd]||!!(!((e=t.constructor)===null||e===void 0)&&e[pd])||Ua(t)||za(t))}function Pr(t,e,r){r===void 0&&(r=!1),go(t)===0?(r?Object.keys:ho)(t).forEach(function(i){r&&typeof i=="symbol"||e(i,t[i],t)}):t.forEach(function(i,n){return e(n,i,t)})}function go(t){var e=t[ae];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Ua(t)?2:za(t)?3:0}function fo(t,e){return go(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Bu(t,e){return go(t)===2?t.get(e):t[e]}function ud(t,e,r){var i=go(t);i===2?t.set(e,r):i===3?t.add(r):t[e]=r}function fd(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Ua(t){return Wu&&t instanceof Map}function za(t){return Gu&&t instanceof Set}function cr(t){return t.o||t.t}function Ha(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=yd(t);delete e[ae];for(var r=ho(e),i=0;i<r.length;i++){var n=r[i],a=e[n];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[n]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[n]})}return Object.create(Object.getPrototypeOf(t),e)}function Wa(t,e){return e===void 0&&(e=!1),Ga(t)||Zt(t)||!Ct(t)||(go(t)>1&&(t.set=t.add=t.clear=t.delete=Fu),Object.freeze(t),e&&Pr(t,function(r,i){return Wa(i,!0)},!0)),t}function Fu(){pt(2)}function Ga(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Dt(t){var e=Fa[t];return e||pt(18,t),e}function Uu(t,e){Fa[t]||(Fa[t]=e)}function Ma(){return Uo}function Na(t,e){e&&(Dt("Patches"),t.u=[],t.s=[],t.v=e)}function Ti(t){$a(t),t.p.forEach(zu),t.p=null}function $a(t){t===Uo&&(Uo=t.l)}function nd(t){return Uo={p:[],l:Uo,h:t,m:!0,_:0}}function zu(t){var e=t[ae];e.i===0||e.i===1?e.j():e.g=!0}function ka(t,e){e._=e.p.length;var r=e.p[0],i=t!==void 0&&t!==r;return e.h.O||Dt("ES5").S(e,t,i),i?(r[ae].P&&(Ti(e),pt(4)),Ct(t)&&(t=Ri(e,t),e.l||Ii(e,t)),e.u&&Dt("Patches").M(r[ae].t,t,e.u,e.s)):t=Ri(e,r,[]),Ti(e),e.u&&e.v(e.u,e.s),t!==gd?t:void 0}function Ri(t,e,r){if(Ga(e))return e;var i=e[ae];if(!i)return Pr(e,function(c,p){return ad(t,i,e,c,p,r)},!0),e;if(i.A!==t)return e;if(!i.P)return Ii(t,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var n=i.i===4||i.i===5?i.o=Ha(i.k):i.o,a=n,s=!1;i.i===3&&(a=new Set(n),n.clear(),s=!0),Pr(a,function(c,p){return ad(t,i,n,c,p,r,s)}),Ii(t,n,!1),r&&t.u&&Dt("Patches").N(i,r,t.u,t.s)}return i.o}function ad(t,e,r,i,n,a,s){if(Zt(n)){var c=Ri(t,n,a&&e&&e.i!==3&&!fo(e.R,i)?a.concat(i):void 0);if(ud(r,i,c),!Zt(c))return;t.m=!1}else s&&r.add(n);if(Ct(n)&&!Ga(n)){if(!t.h.D&&t._<1)return;Ri(t,n),e&&e.A.l||Ii(t,n)}}function Ii(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&Wa(e,r)}function Pa(t,e){var r=t[ae];return(r?cr(r):t)[e]}function sd(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var i=Object.getOwnPropertyDescriptor(r,e);if(i)return i;r=Object.getPrototypeOf(r)}}function dr(t){t.P||(t.P=!0,t.l&&dr(t.l))}function Da(t){t.o||(t.o=Ha(t.t))}function Ba(t,e,r){var i=Ua(e)?Dt("MapSet").F(e,r):za(e)?Dt("MapSet").T(e,r):t.O?function(n,a){var s=Array.isArray(n),c={i:s?1:0,A:a?a.A:Ma(),P:!1,I:!1,R:{},l:a,t:n,k:null,o:null,j:null,C:!1},p=c,u=zo;s&&(p=[c],u=Fo);var h=Proxy.revocable(p,u),g=h.revoke,b=h.proxy;return c.k=b,c.j=g,b}(e,r):Dt("ES5").J(e,r);return(r?r.A:Ma()).p.push(i),i}function Hu(t){return Zt(t)||pt(22,t),function e(r){if(!Ct(r))return r;var i,n=r[ae],a=go(r);if(n){if(!n.P&&(n.i<4||!Dt("ES5").K(n)))return n.t;n.I=!0,i=ld(r,a),n.I=!1}else i=ld(r,a);return Pr(i,function(s,c){n&&Bu(n.t,s)===c||ud(i,s,e(c))}),a===3?new Set(i):i}(t)}function ld(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Ha(t)}function hd(){function t(s,c){var p=a[s];return p?p.enumerable=c:a[s]=p={configurable:!0,enumerable:c,get:function(){var u=this[ae];return zo.get(u,s)},set:function(u){var h=this[ae];zo.set(h,s,u)}},p}function e(s){for(var c=s.length-1;c>=0;c--){var p=s[c][ae];if(!p.P)switch(p.i){case 5:i(p)&&dr(p);break;case 4:r(p)&&dr(p)}}}function r(s){for(var c=s.t,p=s.k,u=ho(p),h=u.length-1;h>=0;h--){var g=u[h];if(g!==ae){var b=c[g];if(b===void 0&&!fo(c,g))return!0;var x=p[g],S=x&&x[ae];if(S?S.t!==b:!fd(x,b))return!0}}var w=!!c[ae];return u.length!==ho(c).length+(w?0:1)}function i(s){var c=s.k;if(c.length!==s.t.length)return!0;var p=Object.getOwnPropertyDescriptor(c,c.length-1);if(p&&!p.get)return!0;for(var u=0;u<c.length;u++)if(!c.hasOwnProperty(u))return!0;return!1}function n(s){s.g&&pt(3,JSON.stringify(cr(s)))}var a={};Uu("ES5",{J:function(s,c){var p=Array.isArray(s),u=function(g,b){if(g){for(var x=Array(b.length),S=0;S<b.length;S++)Object.defineProperty(x,""+S,t(S,!0));return x}var w=yd(b);delete w[ae];for(var _=ho(w),I=0;I<_.length;I++){var L=_[I];w[L]=t(L,g||!!w[L].enumerable)}return Object.create(Object.getPrototypeOf(b),w)}(p,s),h={i:p?5:4,A:c?c.A:Ma(),P:!1,I:!1,R:{},l:c,t:s,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,ae,{value:h,writable:!0}),u},S:function(s,c,p){p?Zt(c)&&c[ae].A===s&&e(s.p):(s.u&&function u(h){if(h&&typeof h=="object"){var g=h[ae];if(g){var b=g.t,x=g.k,S=g.R,w=g.i;if(w===4)Pr(x,function(H){H!==ae&&(b[H]!==void 0||fo(b,H)?S[H]||u(x[H]):(S[H]=!0,dr(g)))}),Pr(b,function(H){x[H]!==void 0||fo(x,H)||(S[H]=!1,dr(g))});else if(w===5){if(i(g)&&(dr(g),S.length=!0),x.length<b.length)for(var _=x.length;_<b.length;_++)S[_]=!1;else for(var I=b.length;I<x.length;I++)S[I]=!0;for(var L=Math.min(x.length,b.length),M=0;M<L;M++)x.hasOwnProperty(M)||(S[M]=!0),S[M]===void 0&&u(x[M])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?r(s):i(s)}})}var cd,Uo,Va=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Wu=typeof Map<"u",Gu=typeof Set<"u",dd=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",gd=Va?Symbol.for("immer-nothing"):((cd={})["immer-nothing"]=!0,cd),pd=Va?Symbol.for("immer-draftable"):"__$immer_draftable",ae=Va?Symbol.for("immer-state"):"__$immer_state";var Vu=""+Object.prototype.constructor,ho=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,yd=Object.getOwnPropertyDescriptors||function(t){var e={};return ho(t).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)}),e},Fa={},zo={get:function(t,e){if(e===ae)return t;var r=cr(t);if(!fo(r,e))return function(n,a,s){var c,p=sd(a,s);return p?"value"in p?p.value:(c=p.get)===null||c===void 0?void 0:c.call(n.k):void 0}(t,r,e);var i=r[e];return t.I||!Ct(i)?i:i===Pa(t.t,e)?(Da(t),t.o[e]=Ba(t.A.h,i,t)):i},has:function(t,e){return e in cr(t)},ownKeys:function(t){return Reflect.ownKeys(cr(t))},set:function(t,e,r){var i=sd(cr(t),e);if(i?.set)return i.set.call(t.k,r),!0;if(!t.P){var n=Pa(cr(t),e),a=n?.[ae];if(a&&a.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(fd(r,n)&&(r!==void 0||fo(t.t,e)))return!0;Da(t),dr(t)}return t.o[e]===r&&(r!==void 0||e in t.o)||Number.isNaN(r)&&Number.isNaN(t.o[e])||(t.o[e]=r,t.R[e]=!0),!0},deleteProperty:function(t,e){return Pa(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Da(t),dr(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=cr(t),i=Reflect.getOwnPropertyDescriptor(r,e);return i&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:i.enumerable,value:r[e]}},defineProperty:function(){pt(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){pt(12)}},Fo={};Pr(zo,function(t,e){Fo[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Fo.deleteProperty=function(t,e){return Fo.set.call(this,t,e,void 0)},Fo.set=function(t,e,r){return zo.set.call(this,t[0],e,r,t[0])};var ju=function(){function t(r){var i=this;this.O=dd,this.D=!0,this.produce=function(n,a,s){if(typeof n=="function"&&typeof a!="function"){var c=a;a=n;var p=i;return function(w){var _=this;w===void 0&&(w=c);for(var I=arguments.length,L=Array(I>1?I-1:0),M=1;M<I;M++)L[M-1]=arguments[M];return p.produce(w,function(H){var W;return(W=a).call.apply(W,[_,H].concat(L))})}}var u;if(typeof a!="function"&&pt(6),s!==void 0&&typeof s!="function"&&pt(7),Ct(n)){var h=nd(i),g=Ba(i,n,void 0),b=!0;try{u=a(g),b=!1}finally{b?Ti(h):$a(h)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(w){return Na(h,s),ka(w,h)},function(w){throw Ti(h),w}):(Na(h,s),ka(u,h))}if(!n||typeof n!="object"){if((u=a(n))===void 0&&(u=n),u===gd&&(u=void 0),i.D&&Wa(u,!0),s){var x=[],S=[];Dt("Patches").M(n,u,x,S),s(x,S)}return u}pt(21,n)},this.produceWithPatches=function(n,a){if(typeof n=="function")return function(u){for(var h=arguments.length,g=Array(h>1?h-1:0),b=1;b<h;b++)g[b-1]=arguments[b];return i.produceWithPatches(u,function(x){return n.apply(void 0,[x].concat(g))})};var s,c,p=i.produce(n,a,function(u,h){s=u,c=h});return typeof Promise<"u"&&p instanceof Promise?p.then(function(u){return[u,s,c]}):[p,s,c]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=t.prototype;return e.createDraft=function(r){Ct(r)||pt(8),Zt(r)&&(r=Hu(r));var i=nd(this),n=Ba(this,r,void 0);return n[ae].C=!0,$a(i),n},e.finishDraft=function(r,i){var n=r&&r[ae],a=n.A;return Na(a,i),ka(void 0,a)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!dd&&pt(20),this.O=r},e.applyPatches=function(r,i){var n;for(n=i.length-1;n>=0;n--){var a=i[n];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}n>-1&&(i=i.slice(n+1));var s=Dt("Patches").$;return Zt(r)?s(r,i):this.produce(r,function(c){return s(c,i)})},t}(),rt=new ju,Ku=rt.produce,$0=rt.produceWithPatches.bind(rt),B0=rt.setAutoFreeze.bind(rt),F0=rt.setUseProxies.bind(rt),U0=rt.applyPatches.bind(rt),z0=rt.createDraft.bind(rt),H0=rt.finishDraft.bind(rt),_i=Ku;function Dr(t){"@babel/helpers - typeof";return Dr=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},Dr(t)}function md(t,e){if(Dr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,e||"default");if(Dr(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function bd(t){var e=md(t,"string");return Dr(e)=="symbol"?e:e+""}function xd(t,e,r){return(e=bd(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function vd(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,i)}return r}function ja(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?vd(Object(r),!0).forEach(function(i){xd(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):vd(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function Fe(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var Sd=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Ka=function(){return Math.random().toString(36).substring(7).split("").join(".")},Li={INIT:"@@redux/INIT"+Ka(),REPLACE:"@@redux/REPLACE"+Ka(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Ka()}};function Zu(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function Za(t,e,r){var i;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Fe(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Fe(1));return r(Za)(t,e)}if(typeof t!="function")throw new Error(Fe(2));var n=t,a=e,s=[],c=s,p=!1;function u(){c===s&&(c=s.slice())}function h(){if(p)throw new Error(Fe(3));return a}function g(w){if(typeof w!="function")throw new Error(Fe(4));if(p)throw new Error(Fe(5));var _=!0;return u(),c.push(w),function(){if(_){if(p)throw new Error(Fe(6));_=!1,u();var L=c.indexOf(w);c.splice(L,1),s=null}}}function b(w){if(!Zu(w))throw new Error(Fe(7));if(typeof w.type>"u")throw new Error(Fe(8));if(p)throw new Error(Fe(9));try{p=!0,a=n(a,w)}finally{p=!1}for(var _=s=c,I=0;I<_.length;I++){var L=_[I];L()}return w}function x(w){if(typeof w!="function")throw new Error(Fe(10));n=w,b({type:Li.REPLACE})}function S(){var w,_=g;return w={subscribe:function(L){if(typeof L!="object"||L===null)throw new Error(Fe(11));function M(){L.next&&L.next(h())}M();var H=_(M);return{unsubscribe:H}}},w[Sd]=function(){return this},w}return b({type:Li.INIT}),i={dispatch:b,subscribe:g,getState:h,replaceReducer:x},i[Sd]=S,i}function qu(t){Object.keys(t).forEach(function(e){var r=t[e],i=r(void 0,{type:Li.INIT});if(typeof i>"u")throw new Error(Fe(12));if(typeof r(void 0,{type:Li.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Fe(13))})}function Cd(t){for(var e=Object.keys(t),r={},i=0;i<e.length;i++){var n=e[i];typeof t[n]=="function"&&(r[n]=t[n])}var a=Object.keys(r),s,c;try{qu(r)}catch(p){c=p}return function(u,h){if(u===void 0&&(u={}),c)throw c;if(0)var g;for(var b=!1,x={},S=0;S<a.length;S++){var w=a[S],_=r[w],I=u[w],L=_(I,h);if(typeof L>"u"){var M=h&&h.type;throw new Error(Fe(14))}x[w]=L,b=b||L!==I}return b=b||a.length!==Object.keys(u).length,b?x:u}}function yo(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length===0?function(i){return i}:e.length===1?e[0]:e.reduce(function(i,n){return function(){return i(n.apply(void 0,arguments))}})}function Od(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(i){return function(){var n=i.apply(void 0,arguments),a=function(){throw new Error(Fe(15))},s={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},c=e.map(function(p){return p(s)});return a=yo.apply(void 0,c)(n.dispatch),ja(ja({},n),{},{dispatch:a})}}}function wd(t){var e=function(i){var n=i.dispatch,a=i.getState;return function(s){return function(c){return typeof c=="function"?c(n,a,t):s(c)}}};return e}var Ed=wd();Ed.withExtraArgument=wd;var qa=Ed;var _d=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(i[a]=n[a])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}(),Yu=function(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,n,a,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(u){return function(h){return p([u,h])}}function p(u){if(i)throw new TypeError("Generator is already executing.");for(;r;)try{if(i=1,n&&(a=u[0]&2?n.return:u[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,u[1])).done)return a;switch(n=0,a&&(u=[u[0]&2,a.value]),u[0]){case 0:case 1:a=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,n=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){r.label=u[1];break}if(u[0]===6&&r.label<a[1]){r.label=a[1],a=u;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(u);break}a[2]&&r.ops.pop(),r.trys.pop();continue}u=e.call(t,r)}catch(h){u=[6,h],n=0}finally{i=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},mo=function(t,e){for(var r=0,i=e.length,n=t.length;r<i;r++,n++)t[n]=e[r];return t},Xu=Object.defineProperty,Qu=Object.defineProperties,Ju=Object.getOwnPropertyDescriptors,Ad=Object.getOwnPropertySymbols,ef=Object.prototype.hasOwnProperty,tf=Object.prototype.propertyIsEnumerable,Td=function(t,e,r){return e in t?Xu(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},pr=function(t,e){for(var r in e||(e={}))ef.call(e,r)&&Td(t,r,e[r]);if(Ad)for(var i=0,n=Ad(e);i<n.length;i++){var r=n[i];tf.call(e,r)&&Td(t,r,e[r])}return t},Ya=function(t,e){return Qu(t,Ju(e))},rf=function(t,e,r){return new Promise(function(i,n){var a=function(p){try{c(r.next(p))}catch(u){n(u)}},s=function(p){try{c(r.throw(p))}catch(u){n(u)}},c=function(p){return p.done?i(p.value):Promise.resolve(p.value).then(a,s)};c((r=r.apply(t,e)).next())})};var of=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?yo:yo.apply(null,arguments)},aS=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function nf(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return e===r}var af=function(t){_d(e,t);function e(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var n=t.apply(this,r)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,mo([void 0],r[0].concat(this)))):new(e.bind.apply(e,mo([void 0],r.concat(this))))},e}(Array),sf=function(t){_d(e,t);function e(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var n=t.apply(this,r)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,mo([void 0],r[0].concat(this)))):new(e.bind.apply(e,mo([void 0],r.concat(this))))},e}(Array);function Ja(t){return Ct(t)?_i(t,function(){}):t}function lf(t){return typeof t=="boolean"}function cf(){return function(e){return df(e)}}function df(t){t===void 0&&(t={});var e=t.thunk,r=e===void 0?!0:e,i=t.immutableCheck,n=i===void 0?!0:i,a=t.serializableCheck,s=a===void 0?!0:a,c=new af;if(r&&(lf(r)?c.push(qa):c.push(qa.withExtraArgument(r.extraArgument))),0){if(n)var p;if(s)var u}return c}var Xa=!0;function Ld(t){var e=cf(),r=t||{},i=r.reducer,n=i===void 0?void 0:i,a=r.middleware,s=a===void 0?e():a,c=r.devTools,p=c===void 0?!0:c,u=r.preloadedState,h=u===void 0?void 0:u,g=r.enhancers,b=g===void 0?void 0:g,x;if(typeof n=="function")x=n;else if(nf(n))x=Cd(n);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var S=s;if(typeof S=="function"&&(S=S(e),!Xa&&!Array.isArray(S)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Xa&&S.some(function(H){return typeof H!="function"}))throw new Error("each middleware provided to configureStore must be a function");var w=Od.apply(void 0,S),_=yo;p&&(_=of(pr({trace:!Xa},typeof p=="object"&&p)));var I=new sf(w),L=I;Array.isArray(b)?L=mo([w],b):typeof b=="function"&&(L=b(I));var M=_.apply(void 0,L);return Za(x,h,M)}function ur(t,e){function r(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(e){var a=e.apply(void 0,i);if(!a)throw new Error("prepareAction did not return an object");return pr(pr({type:t,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:t,payload:i[0]}}return r.toString=function(){return""+t},r.type=t,r.match=function(i){return i.type===t},r}function Nd(t){var e={},r=[],i,n={addCase:function(a,s){var c=typeof a=="string"?a:a.type;if(c in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[c]=s,n},addMatcher:function(a,s){return r.push({matcher:a,reducer:s}),n},addDefaultCase:function(a){return i=a,n}};return t(n),[e,r,i]}function pf(t){return typeof t=="function"}function uf(t,e,r,i){r===void 0&&(r=[]);var n=typeof e=="function"?Nd(e):[e,r,i],a=n[0],s=n[1],c=n[2],p;if(pf(t))p=function(){return Ja(t())};else{var u=Ja(t);p=function(){return u}}function h(g,b){g===void 0&&(g=p());var x=mo([a[b.type]],s.filter(function(S){var w=S.matcher;return w(b)}).map(function(S){var w=S.reducer;return w}));return x.filter(function(S){return!!S}).length===0&&(x=[c]),x.reduce(function(S,w){if(w)if(Zt(S)){var _=S,I=w(_,b);return I===void 0?S:I}else{if(Ct(S))return _i(S,function(L){return w(L,b)});var I=w(S,b);if(I===void 0){if(S===null)return S;throw Error("A case reducer on a non-draftable value must not return undefined")}return I}return S},g)}return h.getInitialState=p,h}function ff(t,e){return t+"/"+e}function kd(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof t.initialState=="function"?t.initialState:Ja(t.initialState),i=t.reducers||{},n=Object.keys(i),a={},s={},c={};n.forEach(function(h){var g=i[h],b=ff(e,h),x,S;"reducer"in g?(x=g.reducer,S=g.prepare):x=g,a[h]=x,s[b]=x,c[h]=S?ur(b,S):ur(b)});function p(){var h=typeof t.extraReducers=="function"?Nd(t.extraReducers):[t.extraReducers],g=h[0],b=g===void 0?{}:g,x=h[1],S=x===void 0?[]:x,w=h[2],_=w===void 0?void 0:w,I=pr(pr({},b),s);return uf(r,function(L){for(var M in I)L.addCase(M,I[M]);for(var H=0,W=S;H<W.length;H++){var qe=W[H];L.addMatcher(qe.matcher,qe.reducer)}_&&L.addDefaultCase(_)})}var u;return{name:e,reducer:function(h,g){return u||(u=p()),u(h,g)},actions:c,caseReducers:a,getInitialState:function(){return u||(u=p()),u.getInitialState()}}}var hf="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",gf=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=hf[Math.random()*64|0];return e},yf=["name","message","stack","code"],Qa=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),Rd=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),mf=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,i=yf;r<i.length;r++){var n=i[r];typeof t[n]=="string"&&(e[n]=t[n])}return e}return{message:String(t)}},dS=function(){function t(e,r,i){var n=ur(e+"/fulfilled",function(h,g,b,x){return{payload:h,meta:Ya(pr({},x||{}),{arg:b,requestId:g,requestStatus:"fulfilled"})}}),a=ur(e+"/pending",function(h,g,b){return{payload:void 0,meta:Ya(pr({},b||{}),{arg:g,requestId:h,requestStatus:"pending"})}}),s=ur(e+"/rejected",function(h,g,b,x,S){return{payload:x,error:(i&&i.serializeError||mf)(h||"Rejected"),meta:Ya(pr({},S||{}),{arg:b,requestId:g,rejectedWithValue:!!x,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),c=!1,p=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 u(h){return function(g,b,x){var S=i?.idGenerator?i.idGenerator(h):gf(),w=new p,_,I=!1;function L(H){_=H,w.abort()}var M=function(){return rf(this,null,function(){var H,W,qe,Tt,Ge,Rt,Ne;return Yu(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),Tt=(H=i?.condition)==null?void 0:H.call(i,h,{getState:b,extra:x}),xf(Tt)?[4,Tt]:[3,2];case 1:Tt=y.sent(),y.label=2;case 2:if(Tt===!1||w.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return I=!0,Ge=new Promise(function(v,P){return w.signal.addEventListener("abort",function(){return P({name:"AbortError",message:_||"Aborted"})})}),g(a(S,h,(W=i?.getPendingMeta)==null?void 0:W.call(i,{requestId:S,arg:h},{getState:b,extra:x}))),[4,Promise.race([Ge,Promise.resolve(r(h,{dispatch:g,getState:b,extra:x,requestId:S,signal:w.signal,abort:L,rejectWithValue:function(v,P){return new Qa(v,P)},fulfillWithValue:function(v,P){return new Rd(v,P)}})).then(function(v){if(v instanceof Qa)throw v;return v instanceof Rd?n(v.payload,S,h,v.meta):n(v,S,h)})])];case 3:return qe=y.sent(),[3,5];case 4:return Rt=y.sent(),qe=Rt instanceof Qa?s(null,S,h,Rt.payload,Rt.meta):s(Rt,S,h),[3,5];case 5:return Ne=i&&!i.dispatchConditionRejection&&s.match(qe)&&qe.meta.condition,Ne||g(qe),[2,qe]}})})}();return Object.assign(M,{abort:L,requestId:S,arg:h,unwrap:function(){return M.then(bf)}})}}return Object.assign(u,{pending:a,rejected:s,fulfilled:n,typePrefix:e})}return t.withTypes=function(){return t},t}();function bf(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function xf(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Pd="listener",Dd="completed",Md="cancelled",pS="task-"+Md,uS="task-"+Dd,fS=Pd+"-"+Md,hS=Pd+"-"+Dd;var es="listenerMiddleware";var gS=ur(es+"/add"),yS=ur(es+"/removeAll"),mS=ur(es+"/remove");var Id,bS=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Id||(Id=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},vf=function(t){return function(e){setTimeout(e,t)}},xS=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:vf(10);hd();var Sf=Si(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,i,n){this.eventBus.addEventListener(r,i,n)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,i,n){this.eventBus.removeEventListener(r,i,n)}}}),Ni=class extends Sf(Object){};window.ftReduxStores||(window.ftReduxStores={});var $d=class t extends Ni{static get(e){var r;let i=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,a=window.ftReduxStores[i];if(Ai(a))return a;if(n==null)return;let s=kd({...n,reducers:(r=n.reducers)!==null&&r!==void 0?r:{}}),c=Ld({reducer:(p,u)=>u.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__")?{...p,...u.overwrites}:s.reducer(p,u)});return window.ftReduxStores[n.name]=new t(s,c,n.eventBus)}constructor(e,r,i){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new Ci;let n=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,s,c)=>{let p=s,u=a[p];return u?(...h)=>{let g=u(...h.map(n));return this.reduxStore.dispatch(g),g}:h=>{this.setState({[p]:n(h)})}}}),this.eventBus=i??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var ki=class{static format(e,r,i,n){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(i,n)):this.getIntlDateTime(e,r,i,n)}static getMomentDateFormat(e,r){return e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,i,n){let a=typeof e=="string"?new Date(e):e,s=new Intl.DateTimeFormat(r,{dateStyle:i?"medium":"short"}).format(a);if(!n)return s;let c=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(a);return`${s} ${c}`}static getTimezoneAsString(){let e=i=>String(Math.floor(i)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var Bd=m(R()),Pi=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},VS=(0,Bd.applyMixinOnce)(Symbol("withDateFormat"),function(t){class e extends t{constructor(...i){super(i),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(E)}dateFormatOptionsChanged(i){return i.has("metadataDescriptors")||i.has("useLongDateFormat")||i.has("useDateTimeFormat")||i.has("uiLocale")}getDateFormatter(i){var n,a;return((a=(n=this.metadataDescriptors.find(c=>c.key===i))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1)?c=>ki.format(c,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Pi([(0,ts.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Pi([(0,ts.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Pi([La({store:E.name,selector:r=>{var i,n;return(n=(i=r.metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&n!==void 0?n:[]}})],e.prototype,"metadataDescriptors",void 0),Pi([La({store:E.name})],e.prototype,"uiLocale",void 0),e});var $i=m(R());var Di=class extends je{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=E.getState().session;return!!e?.sessionAuthenticated}};var Mi=class extends je{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=E.getState().session;return!!e?.sessionAuthenticated}};var Cf="ft-user-assets",Of={setAssetCount:(t,e)=>{let{userAssetType:r,count:i}=e.payload.assetCount;t.assetCounts.allAsset[r]=i},clearAssetCount:t=>{Object.values(ct).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let r=e.payload.mapId;t.assetCounts.bookmarkByMap[r]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:r,mapId:i,asset:n}=e.payload;os(t,r,[...rs(t,r),n]),Fd(t,r,1,i),Ud(t,n)},editAsset:(t,e)=>{let{assetType:r,asset:i}=e.payload;os(t,r,rs(t,r).map(n=>n.id===i.id?i:n)),Ud(t,i)},removeAsset:(t,e)=>{let{assetType:r,mapId:i,assetId:n}=e.payload;os(t,r,rs(t,r).filter(a=>a.id!==n)),Fd(t,r,-1,i)}},zd={[ct.SEARCHES]:"savedSearches",[ct.BOOKMARKS]:"bookmarks",[ct.BOOKS]:void 0,[ct.COLLECTIONS]:void 0},rs=(t,e)=>{var r;let i=zd[e];return i?(r=t[i])!==null&&r!==void 0?r:[]:[]},os=(t,e,r)=>{let i=zd[e];i&&(t[i]=r)},Fd=(t,e,r,i)=>{let n=t.assetCounts.allAsset[e];if(n!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,n+r),e===ct.BOOKMARKS&&i)){let a=t.assetCounts.bookmarkByMap[i];t.assetCounts.bookmarkByMap[i]=Math.max(0,a+r)}},Ud=(t,e)=>{let r=t.assetLabels.map(n=>n.title),i=e.labels.filter(n=>!r.includes(n)).map(n=>({title:n}));t.assetLabels.push(...i)},ot=$i.FtReduxStore.get({name:Cf,reducers:Of,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(ct).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),is=class{constructor(e=new Di,r=new Mi){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=E.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new gi,this.savedSearchesService=new bi,E.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=E.getState();(0,$i.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(),ot.actions.clearAssetCount(),ot.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),ot.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),ot.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();ot.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();ot.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&ot.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&ot.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(ot.getState().assetCounts.bookmarkByMap).length!==0;e===ct.BOOKMARKS&&r&&ot.actions.clearBookmarkCountByMap(),ot.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;ot.actions.bookmarks(r)}}},ns=new is;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=ns);(0,Hd.customElement)("ft-app-context")(oe);var Wd=m(K());var as=class{fromLocalizableLabel(e){return e.type=="PLAIN_TEXT"?{message:e.text}:{key:e.key,custom:e.type=="LOCALIZED_CUSTOM",context:e.context,message:e.key}}fromAttribute(e){if(e!=null)try{return JSON.parse(e)}catch{if(this.isI18nKey(e)){let[i,n]=e.split(".");return{context:i,key:n,custom:!0,message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},bo=new as;var wf=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Wo=Symbol("i18nAttributes"),Gd=Symbol("i18nListAttributes"),Go=Symbol("i18nProperties"),Bi=Symbol("i18nContexts"),Ho=Symbol("i18nUnsubs"),fr=(0,xo.applyMixinOnce)(Symbol("withI18n"),function(t){var e,r;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[r]=new Map}getI18nService(a){return a??this.useCustomMessageContexts?mi:lo}i18n(a){let{context:s,key:c,message:p}=a,{custom:u,args:h,argsProvider:g}=a;if(s&&c){this.hasI18nContext(s)||this.addI18nContext(s,void 0,u);let b=h??(g?g(this):[]);return this.getI18nService(u).resolveMessage(s,c,...b)}return p}async awaitI18n(a){let{context:s,custom:c}=a;return s&&await this.getI18nService(c).prepareContext(s),this.i18n(a)}customI18n(a,s){if(bo.isI18nKey(a)){let[c,p]=a.split(".");return this.i18n({custom:!0,context:c,key:p,...s})||a}return a}firstUpdated(a){super.firstUpdated(a),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(a){super.update(a),this.updateI18nAttributes((s,c,p)=>a.has(c)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(a){this.updateI18nAttributes((s,c,p)=>{var u;return((u=p?.context)===null||u===void 0?void 0:u.toLowerCase())===a}),this.updateI18nProperties(s=>s.context.toLowerCase()===a),this.requestUpdate()}updateI18nAttributes(a){var s,c;let p=this,u=(h,g,b)=>b?.context&&b.key&&a(h,g,b)?{...b,message:this.i18n({context:b.context,key:b.key,custom:b.custom,...h})}:b;(s=this[Wo])===null||s===void 0||s.forEach((h,g)=>p[g]=u(h,g,p[g])),(c=this[Gd])===null||c===void 0||c.forEach((h,g)=>{var b;return p[g]=(b=p[g])===null||b===void 0?void 0:b.map(x=>u(h,g,x))})}updateI18nProperties(a){var s;(s=this[Go])===null||s===void 0||s.forEach((c,p)=>{a(c,p)&&(this[p]=this.i18n(c))})}addI18nMessages(a,s,c){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(a,s,c)}addI18nContext(a,s,c){let p=(typeof a=="string"?a:a.name).toLowerCase();c=typeof a=="string"?c:a.custom,this[Bi].set(p,{isCustomContext:c}),this[Ho].has(p)||this[Ho].set(p,this.getI18nService(c).subscribe(p,()=>this.onI18nUpdate(p))),this.getI18nService(c).prepareContext(p,s)}hasI18nContext(a){return this[Bi].has(a.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Bi].forEach((a,s)=>this.addI18nContext(s,void 0,a.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Ho].forEach(a=>a()),this[Ho].clear()}}return e=Bi,r=Ho,wf([(0,Wd.property)({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),Fi=class extends fr(xo.FtLitElement){},Ui=class extends fr(xo.FtLitElementRedux){};var Vd=m(R());var ss=class{fromAttribute(e){if(!e)return[];try{let r=JSON.parse(e);return Array.isArray(r)?r.map(i=>typeof i=="string"?bo.fromAttribute(i):i):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},Ef=new ss;var jd=(t,e)=>(r,i)=>{var n;r.constructor.createProperty(i,{type:Object,hasChanged:Vd.hasChanged,converter:bo,...e}),r[Wo]=(n=r[Wo])!==null&&n!==void 0?n:new Map,r[Wo].set(i,t??{})};var qd=m(R());var zi=m($()),Hi=m(K()),Wi=m(R());var Kd=m($());var Zd=Kd.css`
|
|
602
602
|
`;var Vo=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Ot=class extends Ui{constructor(){super(),this.editorMode=!1,this.addStore(E)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":zi.nothing:zi.html`
|
|
603
603
|
<span class="ft-i18n">
|
|
604
604
|
${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
|
|
605
605
|
</span>
|
|
606
|
-
`}update(e){var r;super.update(e),["context","key","defaultMessage"].some(i=>e.has(i))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};Ot.elementDefinitions={};Ot.styles=
|
|
606
|
+
`}update(e){var r;super.update(e),["context","key","defaultMessage"].some(i=>e.has(i))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};Ot.elementDefinitions={};Ot.styles=Zd;Vo([(0,Wi.redux)()],Ot.prototype,"editorMode",void 0);Vo([(0,Hi.property)()],Ot.prototype,"context",void 0);Vo([(0,Hi.property)()],Ot.prototype,"key",void 0);Vo([(0,Wi.jsonProperty)([])],Ot.prototype,"args",void 0);Vo([(0,Hi.property)()],Ot.prototype,"defaultMessage",void 0);var hr=class t{static build(e){return new t(e)}static buildCustom(e){return new t(e,!0)}static fromGwt(e){return new t(e)}get service(){return this.custom?mi:lo}constructor(e,r=!1){this.name=e,this.custom=r,this.properties=new Proxy({},{get:(i,n)=>{let a=n;return s=>({context:this.name,key:a,custom:this.custom,args:typeof s=="function"?void 0:s,argsProvider:typeof s=="function"?s:void 0})}}),this.messages=new Proxy({},{get:(i,n)=>(...a)=>this.service.resolveMessage(this.name,n,...a)}),this.rawMessages=new Proxy({},{get:(i,n)=>this.service.resolveRawMessage(this.name,n)}),this.keys=new Proxy({},{get:(i,n)=>()=>n}),this.attributes=new Proxy({},{get:(i,n)=>()=>({context:this.name,key:n,message:this.service.resolveRawMessage(this.name,n)})})}};var Gi=(t,e)=>(r,i)=>{var n,a;r.constructor.createProperty(i,e??{attribute:!1,type:String});let s={...t,key:(n=t.key)!==null&&n!==void 0?n:i};r[Go]=(a=r[Go])!==null&&a!==void 0?a:new Map,r[Go].set(i,s)};(0,qd.customElement)("ft-i18n")(Ot);var wt=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},fe=class extends Fi{constructor(){super(...arguments),this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.ignoreMatchingElements=[],this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new ut.Debouncer,this.revealDebouncer=new ut.Debouncer,this.onTouch=e=>{this.isIgnored(e)||(this.show(),setTimeout(()=>window.addEventListener("touchstart",r=>{r.composedPath().includes(this.container)||this.onOut(r)},{once:!0}),100))},this.onHover=e=>{this.isIgnored(e)||this.show()},this.onFocusIn=e=>{!this.isIgnored(e)&&window.FluidTopicsA11yHints.isKeyboardNavigation&&window.FluidTopicsA11yHints.lastPressedKey==="Tab"&&this.show()},this.onOut=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())},this.onClick=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())}}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){var e,r;return Yd.html`
|
|
607
607
|
<div part="container"
|
|
608
608
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}">
|
|
609
609
|
<slot part="slot"></slot>
|
|
@@ -612,18 +612,18 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
612
612
|
?hidden=${!this.visible}>
|
|
613
613
|
<div part="tooltip-content" class="ft-tooltip--content">
|
|
614
614
|
<slot name="text"></slot>
|
|
615
|
-
<ft-typography variant="${
|
|
615
|
+
<ft-typography variant="${Lt.caption}" ?hidden=${!(!((e=this.text)===null||e===void 0)&&e.message)}>
|
|
616
616
|
${(r=this.text)===null||r===void 0?void 0:r.message}
|
|
617
617
|
</ft-typography>
|
|
618
618
|
</div>
|
|
619
619
|
</div>
|
|
620
620
|
</div>
|
|
621
|
-
`}setupFor(e){this.eventsTarget!==e&&(this.removeHandlers(),this.eventsTarget=e,this.eventsTarget.addEventListener("mouseenter",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseenter",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(e){e.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(r=>e.has(r))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,r){let i=this.manual;this.manual=!0;let n=this.text;this.text={message:e},await this.show(r),this.text=n,this.manual=i}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",kc(this.slottedElement,this.tooltip,this.position).then(({x:e,y:r})=>{this.tooltip&&(this.tooltip.style.left=`${e}px`,this.tooltip.style.top=`${r}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${ut.designSystemVariables.transitionDuration}, left ${ut.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}isIgnored(e){return this.manual||(0,ut.eventPathContainsMatchingElement)(e,this.ignoreMatchingElements,this.eventsTarget)}};fe.elementDefinitions={"ft-typography":ue};fe.styles=lc;wt([Wd()],fe.prototype,"text",void 0);wt([(0,ft.property)({type:Boolean})],fe.prototype,"manual",void 0);wt([(0,ft.property)({type:Boolean})],fe.prototype,"inline",void 0);wt([(0,ut.numberProperty)()],fe.prototype,"delay",void 0);wt([(0,ft.property)()],fe.prototype,"position",void 0);wt([(0,ut.jsonProperty)([])],fe.prototype,"ignoreMatchingElements",void 0);wt([(0,ft.queryAssignedNodes)()],fe.prototype,"slotNodes",void 0);wt([(0,ft.query)(".ft-tooltip--container")],fe.prototype,"container",void 0);wt([(0,ft.query)(".ft-tooltip")],fe.prototype,"tooltip",void 0);wt([(0,ft.query)(".ft-tooltip--content")],fe.prototype,"tooltipContent",void 0);wt([(0,ft.state)()],fe.prototype,"visible",void 0);(0,Zd.customElement)("ft-tooltip")(fe);var Jd=m(T());var jo=m($()),gr=m(K()),Xd=m(T()),Qd=m(Yd());var Mr;(function(t){t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.BOOKS="",t.MENU="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.HOME="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.EXPORT="",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.USER="",t.EXTLINK="",t.CALENDAR="",t.OFFLINE="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.STAR_PLAIN="",t.TOPICS="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN="",t.ADMIN_KHUB="",t.ADMIN_THEME="",t.ADMIN_USERS="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.INFO="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.FACET_HAS_DESCENDANT="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.THIN_ARROW="",t.SIGN_IN="",t.LOGOUT="",t.TRANSLATE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.ARTICLE="",t.COLUMNS="",t.ANALYTICS="",t.COLLECTIONS="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SEARCH_IN_PUBLICATION="",t.COPY_TO_CLIPBOARD="",t.SHARED_PBK="",t.ATTACHMENTS="",t.STRIPE_ARROW_LEFT="",t.STRIPE_ARROW_RIGHT="",t.FILTERS="",t.DOT="",t.MINUS="",t.PLUS="",t.MAILS_AND_NOTIFICATIONS="",t.SAVE="",t.LOCKER="",t.ADMIN_INTEGRATION="",t.SYNC="",t.TAG="",t.BOOK_PLAIN="",t.UPLOAD="",t.ONLINE="",t.TAG_PLAIN="",t.ACCOUNT_SETTINGS="",t.PRINT="",t.DEFAULT_ROLES="",t.SHORTCUT_MENU="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.PAUSE="",t.PLAY="",t.ADMIN_PORTAL="",t.STAR="",t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.FEEDBACK_PLAIN="",t.RATE_PLAIN="",t.RATE="",t.OFFLINE_SETTINGS="",t.MY_COLLECTIONS="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.RESET="",t.MY_LIBRARY="",t.UNSTRUCTURED_DOC="",t.CONTEXTUAL="",t.THIN_ARROW_UP="",t.ARROW_RIGHT_TO_LINE="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.LINE_CHART="",t.STACKED_CHART="",t.CHART_BAR_STACKED="",t.CHART_BAR_GROUPED="",t.EYE_SLASH="",t.X_MARK="",t.EXPAND_WIDE="",t.PIP="",t.PIP_WIDE="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.EXTLINK_LIGHT="",t.CLONE="",t.CLONE_LINK_SIMPLE="",t.CHART_BAR_NORMALIZED="",t.CONSUMER="",t.OCTAGON_XMARK="",t.HOURGLASS_HALF="",t.CLOCK="",t.CLOCK_THREE="",t.CALENDAR_DAY="",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="",t.WAND_MAGIC_SPARKLES="",t.PAPER_PLANE="",t.CIRCLE_STOP="",t.ARROW_ROTATE_RIGHT="",t.ARROWS_ROTATE="",t.ALIGN_RIGHT="",t.FORMAT_CLEAR="",t.ALIGN_CENTER="",t.ALIGN_LEFT="",t.PALETTE="",t.BOLD="",t.ITALIC="",t.UNDERLINE="",t.STRIKETHROUGH="",t.LINK_SIMPLE_SLASH="",t.LINK_SIMPLE="",t.ROUTE="",t.CIRCLE_USER_SLASH="",t.CIRCLE_USER_CHECK="",t.LIST_MAGNIFYING_GLASS="",t.MEDAL="",t.THUMBS_UP_THUMBS_DOWN_SOLID="",t.ARROW_TURN_DOWN_RIGHT="",t.FLASK="",t.LOCK_KEYHOLE_OPEN_SOLID="",t.HOURGLASS_END="",t.CIRCLE_QUESTION="",t.GRIP_LINES_SOLID="",t.TRANSLATE_SPARKLE_SOLID="",t.CODE="",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",t.PAPER_PLANE_SLASH="",t.COMPRESS="",t.EXPAND="",t.ARROW_ROTATE_LEFT="",t.EYE="",t.SHARE="󨃱",t.MOBILE_SMALL="",t.SPARKLES="",t.HAND_SOLID="",t.CLOCK_SOLID="",t.CONTEXT_MENU_CURSOR="",t.LANGUAGE_SLASH="",t.MAGNIFYING_GLASS_FLOPPY_DISK="",t.CABINET_FILING_FLOPPY_DISK="",t.BOOKMARK_SLASH="",t.CIRCLE_PAUSE="",t.CIRCLE_PLAY="",t.CIRCLE_STOP_PLAIN="",t.CLOUD_ARROW_DOWN="",t.SHARE_NODES="",t.BELL="",t.BELL_SLASH="",t.FILE="",t.HAND="",t.SQUARE_INFO_SOLID="",t.FILE_CODE="",t.BOX_CODE=""})(Mr||(Mr={}));var A;(function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""})(A||(A={}));var tO=new Map([...["abw"].map(t=>[t,A.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(t=>[t,A.AUDIO]),...["avi"].map(t=>[t,A.AVI]),...["chm","xhs"].map(t=>[t,A.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(t=>[t,A.CODE]),...["csv"].map(t=>[t,A.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,A.DITA]),...["epub"].map(t=>[t,A.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,A.EXCEL]),...["flac"].map(t=>[t,A.FLAC]),...["gif"].map(t=>[t,A.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,A.GZIP]),...["html","htm","xhtml"].map(t=>[t,A.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(t=>[t,A.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,A.JPEG]),...["json"].map(t=>[t,A.JSON]),...["m4a","m4p"].map(t=>[t,A.M4A]),...["mov","qt"].map(t=>[t,A.MOV]),...["mp3"].map(t=>[t,A.MP3]),...["mp4","m4v"].map(t=>[t,A.MP4]),...["ogg","oga"].map(t=>[t,A.OGG]),...["pdf","ps"].map(t=>[t,A.PDF]),...["png"].map(t=>[t,A.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,A.POWERPOINT]),...["rar"].map(t=>[t,A.RAR]),...["stp"].map(t=>[t,A.STP]),...["txt","rtf","md","mdown"].map(t=>[t,A.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(t=>[t,A.VIDEO]),...["wav"].map(t=>[t,A.WAV]),...["wma"].map(t=>[t,A.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,A.WORD]),...["xml","xsl","rdf"].map(t=>[t,A.XML]),...["yaml","yml","x-yaml"].map(t=>[t,A.YAML]),...["zip"].map(t=>[t,A.ZIP])]);var rO={[A.ABW]:"#91ABC6",[A.AUDIO]:"#1795E3",[A.AVI]:"#E63324",[A.CHM]:"#71C3EB",[A.CODE]:"#71C3EB",[A.CSV]:"#1F7345",[A.DITA]:"#71C3EB",[A.EPUB]:"#85B926",[A.EXCEL]:"#1F7345",[A.FLAC]:"#1795E3",[A.GIF]:"#59B031",[A.GZIP]:"#F8AB36",[A.HTML]:"#71C3EB",[A.IMAGE]:"#59B031",[A.JPEG]:"#59B031",[A.JSON]:"#71C3EB",[A.M4A]:"#1795E3",[A.MOV]:"#E63324",[A.MP3]:"#1795E3",[A.MP4]:"#E63324",[A.OGG]:"#1795E3",[A.PDF]:"#E44948",[A.PNG]:"#59B031",[A.POWERPOINT]:"#B54A2B",[A.RAR]:"#F8AB36",[A.STP]:"#3764B1",[A.TEXT]:"#3162AB",[A.UNKNOWN]:"#999999",[A.VIDEO]:"#E63324",[A.WAV]:"#1795E3",[A.WMA]:"#1795E3",[A.WORD]:"#3162AB",[A.XML]:"#71C3EB",[A.YAML]:"#71C3EB",[A.ZIP]:"#F8AB36"};var Ue;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(Ue||(Ue={}));var Ko=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},he=class extends Xd.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=jo.nothing}render(){let e=this.variant&&Object.values(Ue).includes(this.variant)?this.variant:Ue.fluid_topics,r=e!==Ue.material||!!this.value;return jo.html`
|
|
621
|
+
`}setupFor(e){this.eventsTarget!==e&&(this.removeHandlers(),this.eventsTarget=e,this.eventsTarget.addEventListener("mouseenter",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseenter",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(e){e.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(r=>e.has(r))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,r){let i=this.manual;this.manual=!0;let n=this.text;this.text={message:e},await this.show(r),this.text=n,this.manual=i}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",$c(this.slottedElement,this.tooltip,this.position).then(({x:e,y:r})=>{this.tooltip&&(this.tooltip.style.left=`${e}px`,this.tooltip.style.top=`${r}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${ut.designSystemVariables.transitionDuration}, left ${ut.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}isIgnored(e){return this.manual||(0,ut.eventPathContainsMatchingElement)(e,this.ignoreMatchingElements,this.eventsTarget)}};fe.elementDefinitions={"ft-typography":ue};fe.styles=uc;wt([jd()],fe.prototype,"text",void 0);wt([(0,ft.property)({type:Boolean})],fe.prototype,"manual",void 0);wt([(0,ft.property)({type:Boolean})],fe.prototype,"inline",void 0);wt([(0,ut.numberProperty)()],fe.prototype,"delay",void 0);wt([(0,ft.property)()],fe.prototype,"position",void 0);wt([(0,ut.jsonProperty)([])],fe.prototype,"ignoreMatchingElements",void 0);wt([(0,ft.queryAssignedNodes)()],fe.prototype,"slotNodes",void 0);wt([(0,ft.query)(".ft-tooltip--container")],fe.prototype,"container",void 0);wt([(0,ft.query)(".ft-tooltip")],fe.prototype,"tooltip",void 0);wt([(0,ft.query)(".ft-tooltip--content")],fe.prototype,"tooltipContent",void 0);wt([(0,ft.state)()],fe.prototype,"visible",void 0);(0,Xd.customElement)("ft-tooltip")(fe);var rp=m(R());var jo=m($()),gr=m(K()),ep=m(R()),tp=m(Jd());var Mr;(function(t){t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.BOOKS="",t.MENU="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.HOME="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.EXPORT="",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.USER="",t.EXTLINK="",t.CALENDAR="",t.OFFLINE="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.STAR_PLAIN="",t.TOPICS="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN="",t.ADMIN_KHUB="",t.ADMIN_THEME="",t.ADMIN_USERS="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.INFO="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.FACET_HAS_DESCENDANT="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.THIN_ARROW="",t.SIGN_IN="",t.LOGOUT="",t.TRANSLATE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.ARTICLE="",t.COLUMNS="",t.ANALYTICS="",t.COLLECTIONS="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SEARCH_IN_PUBLICATION="",t.COPY_TO_CLIPBOARD="",t.SHARED_PBK="",t.ATTACHMENTS="",t.STRIPE_ARROW_LEFT="",t.STRIPE_ARROW_RIGHT="",t.FILTERS="",t.DOT="",t.MINUS="",t.PLUS="",t.MAILS_AND_NOTIFICATIONS="",t.SAVE="",t.LOCKER="",t.ADMIN_INTEGRATION="",t.SYNC="",t.TAG="",t.BOOK_PLAIN="",t.UPLOAD="",t.ONLINE="",t.TAG_PLAIN="",t.ACCOUNT_SETTINGS="",t.PRINT="",t.DEFAULT_ROLES="",t.SHORTCUT_MENU="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.PAUSE="",t.PLAY="",t.ADMIN_PORTAL="",t.STAR="",t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.FEEDBACK_PLAIN="",t.RATE_PLAIN="",t.RATE="",t.OFFLINE_SETTINGS="",t.MY_COLLECTIONS="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.RESET="",t.MY_LIBRARY="",t.UNSTRUCTURED_DOC="",t.CONTEXTUAL="",t.THIN_ARROW_UP="",t.ARROW_RIGHT_TO_LINE="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.LINE_CHART="",t.STACKED_CHART="",t.CHART_BAR_STACKED="",t.CHART_BAR_GROUPED="",t.EYE_SLASH="",t.X_MARK="",t.EXPAND_WIDE="",t.PIP="",t.PIP_WIDE="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.EXTLINK_LIGHT="",t.CLONE="",t.CLONE_LINK_SIMPLE="",t.CHART_BAR_NORMALIZED="",t.CONSUMER="",t.OCTAGON_XMARK="",t.HOURGLASS_HALF="",t.CLOCK="",t.CLOCK_THREE="",t.CALENDAR_DAY="",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="",t.WAND_MAGIC_SPARKLES="",t.PAPER_PLANE="",t.CIRCLE_STOP="",t.ARROW_ROTATE_RIGHT="",t.ARROWS_ROTATE="",t.ALIGN_RIGHT="",t.FORMAT_CLEAR="",t.ALIGN_CENTER="",t.ALIGN_LEFT="",t.PALETTE="",t.BOLD="",t.ITALIC="",t.UNDERLINE="",t.STRIKETHROUGH="",t.LINK_SIMPLE_SLASH="",t.LINK_SIMPLE="",t.ROUTE="",t.CIRCLE_USER_SLASH="",t.CIRCLE_USER_CHECK="",t.LIST_MAGNIFYING_GLASS="",t.MEDAL="",t.THUMBS_UP_THUMBS_DOWN_SOLID="",t.ARROW_TURN_DOWN_RIGHT="",t.FLASK="",t.LOCK_KEYHOLE_OPEN_SOLID="",t.HOURGLASS_END="",t.CIRCLE_QUESTION="",t.GRIP_LINES_SOLID="",t.TRANSLATE_SPARKLE_SOLID="",t.CODE="",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",t.PAPER_PLANE_SLASH="",t.COMPRESS="",t.EXPAND="",t.ARROW_ROTATE_LEFT="",t.EYE="",t.SHARE="󨃱",t.MOBILE_SMALL="",t.SPARKLES="",t.HAND_SOLID="",t.CLOCK_SOLID="",t.CONTEXT_MENU_CURSOR="",t.LANGUAGE_SLASH="",t.MAGNIFYING_GLASS_FLOPPY_DISK="",t.CABINET_FILING_FLOPPY_DISK="",t.BOOKMARK_SLASH="",t.CIRCLE_PAUSE="",t.CIRCLE_PLAY="",t.CIRCLE_STOP_PLAIN="",t.CLOUD_ARROW_DOWN="",t.SHARE_NODES="",t.BELL="",t.BELL_SLASH="",t.FILE="",t.HAND="",t.SQUARE_INFO_SOLID="",t.FILE_CODE="",t.BOX_CODE=""})(Mr||(Mr={}));var A;(function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""})(A||(A={}));var iO=new Map([...["abw"].map(t=>[t,A.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(t=>[t,A.AUDIO]),...["avi"].map(t=>[t,A.AVI]),...["chm","xhs"].map(t=>[t,A.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(t=>[t,A.CODE]),...["csv"].map(t=>[t,A.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,A.DITA]),...["epub"].map(t=>[t,A.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,A.EXCEL]),...["flac"].map(t=>[t,A.FLAC]),...["gif"].map(t=>[t,A.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,A.GZIP]),...["html","htm","xhtml"].map(t=>[t,A.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(t=>[t,A.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,A.JPEG]),...["json"].map(t=>[t,A.JSON]),...["m4a","m4p"].map(t=>[t,A.M4A]),...["mov","qt"].map(t=>[t,A.MOV]),...["mp3"].map(t=>[t,A.MP3]),...["mp4","m4v"].map(t=>[t,A.MP4]),...["ogg","oga"].map(t=>[t,A.OGG]),...["pdf","ps"].map(t=>[t,A.PDF]),...["png"].map(t=>[t,A.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,A.POWERPOINT]),...["rar"].map(t=>[t,A.RAR]),...["stp"].map(t=>[t,A.STP]),...["txt","rtf","md","mdown"].map(t=>[t,A.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(t=>[t,A.VIDEO]),...["wav"].map(t=>[t,A.WAV]),...["wma"].map(t=>[t,A.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,A.WORD]),...["xml","xsl","rdf"].map(t=>[t,A.XML]),...["yaml","yml","x-yaml"].map(t=>[t,A.YAML]),...["zip"].map(t=>[t,A.ZIP])]);var nO={[A.ABW]:"#91ABC6",[A.AUDIO]:"#1795E3",[A.AVI]:"#E63324",[A.CHM]:"#71C3EB",[A.CODE]:"#71C3EB",[A.CSV]:"#1F7345",[A.DITA]:"#71C3EB",[A.EPUB]:"#85B926",[A.EXCEL]:"#1F7345",[A.FLAC]:"#1795E3",[A.GIF]:"#59B031",[A.GZIP]:"#F8AB36",[A.HTML]:"#71C3EB",[A.IMAGE]:"#59B031",[A.JPEG]:"#59B031",[A.JSON]:"#71C3EB",[A.M4A]:"#1795E3",[A.MOV]:"#E63324",[A.MP3]:"#1795E3",[A.MP4]:"#E63324",[A.OGG]:"#1795E3",[A.PDF]:"#E44948",[A.PNG]:"#59B031",[A.POWERPOINT]:"#B54A2B",[A.RAR]:"#F8AB36",[A.STP]:"#3764B1",[A.TEXT]:"#3162AB",[A.UNKNOWN]:"#999999",[A.VIDEO]:"#E63324",[A.WAV]:"#1795E3",[A.WMA]:"#1795E3",[A.WORD]:"#3162AB",[A.XML]:"#71C3EB",[A.YAML]:"#71C3EB",[A.ZIP]:"#F8AB36"};var Ue;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(Ue||(Ue={}));var Ko=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},he=class extends ep.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=jo.nothing}render(){let e=this.variant&&Object.values(Ue).includes(this.variant)?this.variant:Ue.fluid_topics,r=e!==Ue.material||!!this.value;return jo.html`
|
|
622
622
|
<i class="ft-icon ft-icon--${e} ft-no-text-select" part="icon icon-${e}">
|
|
623
|
-
${(0,
|
|
623
|
+
${(0,tp.unsafeHTML)(this.resolvedIcon)}
|
|
624
624
|
<slot ?hidden=${r}></slot>
|
|
625
625
|
</i>
|
|
626
|
-
`}getTextContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&r!==void 0?r:""}update(e){super.update(e),["value","variant"].some(r=>e.has(r))&&this.resolveIcon()}resolveIcon(){var e,r;let i=this.value||this.getTextContent();switch(this.variant){case Ue.file_format:this.resolvedIcon=(e=A[i.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:i;break;case Ue.material:this.resolvedIcon=this.value||jo.nothing;break;default:this.resolvedIcon=(r=Mr[i.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:i;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};he.elementDefinitions={};he.styles=
|
|
626
|
+
`}getTextContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&r!==void 0?r:""}update(e){super.update(e),["value","variant"].some(r=>e.has(r))&&this.resolveIcon()}resolveIcon(){var e,r;let i=this.value||this.getTextContent();switch(this.variant){case Ue.file_format:this.resolvedIcon=(e=A[i.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:i;break;case Ue.material:this.resolvedIcon=this.value||jo.nothing;break;default:this.resolvedIcon=(r=Mr[i.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:i;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};he.elementDefinitions={};he.styles=tl;Ko([(0,gr.property)()],he.prototype,"variant",void 0);Ko([(0,gr.property)()],he.prototype,"value",void 0);Ko([(0,gr.property)({reflect:!0,attribute:"aria-hidden"})],he.prototype,"ariaHidden",void 0);Ko([(0,gr.state)()],he.prototype,"resolvedIcon",void 0);Ko([(0,gr.query)("slot")],he.prototype,"slottedContent",void 0);(0,rp.customElement)("ft-icon")(he);var op=m($()),Ke=m(R());var Ee={borderRadiusLeft:Ke.FtCssVariableFactory.extend("--ft-switch-option-border-radius-left","",Ke.designSystemVariables.borderRadiusL),borderRadiusRight:Ke.FtCssVariableFactory.extend("--ft-switch-option-border-radius-right","",Ke.designSystemVariables.borderRadiusL),borderWidthLeft:Ke.FtCssVariableFactory.create("--ft-switch-option-border-width-left","","SIZE","1px"),borderWidthRight:Ke.FtCssVariableFactory.create("--ft-switch-option-border-width-right","","SIZE","1px"),borderWidthVertical:Ke.FtCssVariableFactory.create("--ft-switch-option-border-width-vertical","","SIZE","1px")},ip=op.css`
|
|
627
627
|
.ft-switch-option {
|
|
628
628
|
position: relative;
|
|
629
629
|
display: inline-block;
|
|
@@ -711,8 +711,8 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
711
711
|
.ft-switch-option--selected ft-icon {
|
|
712
712
|
color: ${pe.selectedTextColor};
|
|
713
713
|
}
|
|
714
|
-
`;var Et=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},
|
|
715
|
-
<label part="label" for="input" class="${(0,
|
|
714
|
+
`;var Et=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ls=class extends CustomEvent{constructor(e){super("option-change-by-user",{detail:e,bubbles:!0,composed:!0})}},cs=class extends CustomEvent{constructor(e){super("option-change",{detail:e,bubbles:!0,composed:!0})}},ge=class extends So.FtLitElement{constructor(){super(...arguments),this.value="",this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1,this.unselectable=!1,this.isFocused=!1}focus(){this.input.focus()}update(e){super.update(e),e.has("selected")&&this.dispatchEvent(new cs(this.selected))}render(){let e={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon,"ft-switch-option--selected":this.selected,"ft-switch-option--focused":this.isFocused};return this.addTooltip(vo.html`
|
|
715
|
+
<label part="label" for="input" class="${(0,np.classMap)(e)}"
|
|
716
716
|
@click=${this.onChange}>
|
|
717
717
|
<div class="ft-switch-option--content">
|
|
718
718
|
<ft-ripple part="ripple" class="ft-switch-option--ripple"></ft-ripple>
|
|
@@ -733,16 +733,16 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
733
733
|
position="${this.tooltipPosition}">
|
|
734
734
|
${e}
|
|
735
735
|
</ft-tooltip>
|
|
736
|
-
`}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",this.onFocusout)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusout",this.onFocusout)}onFocusout(){this.isFocused=!1}onChange(){this.selected=this.unselectable?!this.selected:!0,this.dispatchEvent(new
|
|
736
|
+
`}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",this.onFocusout)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusout",this.onFocusout)}onFocusout(){this.isFocused=!1}onChange(){this.selected=this.unselectable?!this.selected:!0,this.dispatchEvent(new ls(this.selected))}getLabel(){return this.label||this.getTextContent()}resolveIcon(){return this.icon?vo.html`
|
|
737
737
|
<ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
|
|
738
|
-
`:vo.nothing}getTextContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&r!==void 0?r:""}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}};ge.elementDefinitions={"ft-ripple":Z,"ft-typography":ue,"ft-tooltip":fe,"ft-icon":he};ge.styles=[So.safariEllipsisFix,
|
|
739
|
-
<div @keydown=${this.onKeyDown} tabindex="-1" class="${(0,
|
|
738
|
+
`:vo.nothing}getTextContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&r!==void 0?r:""}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}};ge.elementDefinitions={"ft-ripple":Z,"ft-typography":ue,"ft-tooltip":fe,"ft-icon":he};ge.styles=[So.safariEllipsisFix,ip];Et([(0,Qe.property)()],ge.prototype,"value",void 0);Et([(0,Qe.property)()],ge.prototype,"icon",void 0);Et([(0,Qe.property)()],ge.prototype,"iconVariant",void 0);Et([(0,Qe.property)()],ge.prototype,"label",void 0);Et([(0,Qe.property)()],ge.prototype,"tooltipPosition",void 0);Et([(0,Qe.property)({type:Boolean,reflect:!0})],ge.prototype,"selected",void 0);Et([(0,Qe.property)({type:Boolean})],ge.prototype,"trailingIcon",void 0);Et([(0,Qe.property)({type:Boolean})],ge.prototype,"unselectable",void 0);Et([(0,Qe.query)(".ft-switch-option--content slot")],ge.prototype,"slottedContent",void 0);Et([(0,Qe.query)(".ft-switch-option--input")],ge.prototype,"input",void 0);Et([(0,Qe.state)()],ge.prototype,"isFocused",void 0);var $r=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ds=class extends CustomEvent{constructor(e){super("change",{detail:e})}},Ze=class extends qt.FtLitElement{constructor(){super(...arguments),this.dense=!1,this.unselectable=!1,this.displayFocusWhenUsingKeyboard=!1,this.options=[]}get value(){var e;return(e=this.selectedOption)===null||e===void 0?void 0:e.value}update(e){super.update(e),e.has("selectedOption")&&this.updateOptions(),e.has("unselectable")&&this.options.forEach(r=>r.unselectable=this.unselectable)}render(){let e={"ft-switch":!0,"ft-switch--dense":this.dense};return Vi.html`
|
|
739
|
+
<div @keydown=${this.onKeyDown} tabindex="-1" class="${(0,ap.classMap)(e)}" role="radiogroup" aria-label="${this.label}">
|
|
740
740
|
<slot @slotchange=${this.onSlotchange}
|
|
741
741
|
@option-change=${this.onOptionChangeByScript}
|
|
742
742
|
@option-change-by-user=${this.onOptionChangeByUser}
|
|
743
743
|
></slot>
|
|
744
744
|
</div>
|
|
745
|
-
`}onKeyDown(e){let r;(e.key=="ArrowDown"||e.key=="ArrowRight")&&(r=this.selectedOption?this.options.indexOf(this.selectedOption)+1:0),(e.key=="ArrowUp"||e.key=="ArrowLeft")&&(r=this.selectedOption?this.options.indexOf(this.selectedOption)-1:this.options.length-1),e.code=="Space"&&(r=this.options.indexOf(e.target)),r!=null&&(e.preventDefault(),this.options[this.fixIndex(r)].focus(),this.displayFocusWhenUsingKeyboard=!0,this.options[this.fixIndex(r)].selected=!0)}fixIndex(e){return e<0?this.options.length-1:e>this.options.length-1?0:e}onSlotchange(){var e;this.options=[],(e=this.slottedContent)===null||e===void 0||e.assignedElements().forEach(r=>{r instanceof ge&&this.registerOption(r)}),this.selectedOption=this.options.find(r=>r.selected)}registerOption(e){var r;(r=e.shadowRoot)===null||r===void 0||r.querySelectorAll("input").forEach(i=>{i.setAttribute("tabindex","-1")}),e.setAttribute("tabindex","0"),e.unselectable=this.unselectable,this.options.push(e)}onOptionChangeByScript(e){e.stopPropagation();let r=e.target;this.onOptionChange(r)}onOptionChangeByUser(e){var r;e.stopPropagation(),this.displayFocusWhenUsingKeyboard=!1,this.onOptionChange(e.target),this.dispatchEvent(new
|
|
745
|
+
`}onKeyDown(e){let r;(e.key=="ArrowDown"||e.key=="ArrowRight")&&(r=this.selectedOption?this.options.indexOf(this.selectedOption)+1:0),(e.key=="ArrowUp"||e.key=="ArrowLeft")&&(r=this.selectedOption?this.options.indexOf(this.selectedOption)-1:this.options.length-1),e.code=="Space"&&(r=this.options.indexOf(e.target)),r!=null&&(e.preventDefault(),this.options[this.fixIndex(r)].focus(),this.displayFocusWhenUsingKeyboard=!0,this.options[this.fixIndex(r)].selected=!0)}fixIndex(e){return e<0?this.options.length-1:e>this.options.length-1?0:e}onSlotchange(){var e;this.options=[],(e=this.slottedContent)===null||e===void 0||e.assignedElements().forEach(r=>{r instanceof ge&&this.registerOption(r)}),this.selectedOption=this.options.find(r=>r.selected)}registerOption(e){var r;(r=e.shadowRoot)===null||r===void 0||r.querySelectorAll("input").forEach(i=>{i.setAttribute("tabindex","-1")}),e.setAttribute("tabindex","0"),e.unselectable=this.unselectable,this.options.push(e)}onOptionChangeByScript(e){e.stopPropagation();let r=e.target;this.onOptionChange(r)}onOptionChangeByUser(e){var r;e.stopPropagation(),this.displayFocusWhenUsingKeyboard=!1,this.onOptionChange(e.target),this.dispatchEvent(new ds((r=this.selectedOption)===null||r===void 0?void 0:r.value))}onOptionChange(e){e.selected?this.selectedOption=e:this.selectedOption=this.options.find(r=>r.selected)}private(e){e.selected?this.selectedOption=e:this.selectedOption=this.options.find(r=>r.selected)}focus(){this.ftSwitchDiv.focus()}updateOptions(){this.options.forEach(e=>{e.selected=e===this.selectedOption,this.displayFocusWhenUsingKeyboard&&(e.isFocused=e===this.selectedOption)})}};Ze.elementDefinitions={};Ze.styles=Vi.css`
|
|
746
746
|
:host {
|
|
747
747
|
display: inline-block;
|
|
748
748
|
}
|
|
@@ -758,25 +758,25 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
758
758
|
}
|
|
759
759
|
|
|
760
760
|
.ft-switch slot::slotted(ft-switch-option) {
|
|
761
|
-
${(0,
|
|
762
|
-
${(0,
|
|
763
|
-
${(0,
|
|
761
|
+
${(0,qt.setVariable)(Ee.borderRadiusLeft,"0")};
|
|
762
|
+
${(0,qt.setVariable)(Ee.borderRadiusRight,"0")};
|
|
763
|
+
${(0,qt.setVariable)(Ee.borderWidthLeft,"0")};
|
|
764
764
|
}
|
|
765
765
|
|
|
766
766
|
.ft-switch slot::slotted(ft-switch-option:first-child) {
|
|
767
|
-
${(0,
|
|
768
|
-
${(0,
|
|
767
|
+
${(0,qt.setVariable)(Ee.borderRadiusLeft,pe.borderRadius)};
|
|
768
|
+
${(0,qt.setVariable)(Ee.borderWidthLeft,"1px")};
|
|
769
769
|
}
|
|
770
770
|
|
|
771
771
|
.ft-switch slot::slotted(ft-switch-option:last-child) {
|
|
772
|
-
${(0,
|
|
772
|
+
${(0,qt.setVariable)(Ee.borderRadiusRight,pe.borderRadius)};
|
|
773
773
|
}
|
|
774
774
|
|
|
775
775
|
.ft-switch--dense slot::slotted(ft-switch-option) {
|
|
776
776
|
--switch-internal-vertical-padding: 2px;
|
|
777
777
|
--switch-internal-horizontal-padding: 4px;
|
|
778
778
|
}
|
|
779
|
-
`;$r([(0,
|
|
779
|
+
`;$r([(0,Mt.property)({type:Boolean})],Ze.prototype,"dense",void 0);$r([(0,Mt.property)({type:Boolean})],Ze.prototype,"unselectable",void 0);$r([(0,Mt.property)()],Ze.prototype,"label",void 0);$r([(0,Mt.query)(".ft-switch slot")],Ze.prototype,"slottedContent",void 0);$r([(0,Mt.state)()],Ze.prototype,"selectedOption",void 0);$r([(0,Mt.state)()],Ze.prototype,"displayFocusWhenUsingKeyboard",void 0);$r([(0,Mt.query)(".ft-switch")],Ze.prototype,"ftSwitchDiv",void 0);(0,ps.customElement)("ft-switch")(Ze);(0,ps.customElement)("ft-switch-option")(ge);var Op=m(R());var Yi=m($()),ht=m(K()),Cp=m(Wt()),Xi=m(R());var dp=m(R());var Ki=m($()),it=m(K()),Zi=m(R());var lp=m($()),Co=m(R()),sp={colorOutline:Co.FtCssVariableFactory.external(Co.designSystemVariables.colorOutline,"Design system"),colorOnSurfaceMedium:Co.FtCssVariableFactory.external(Co.designSystemVariables.colorOnSurfaceMedium,"Design system")},cp=lp.css`
|
|
780
780
|
:host {
|
|
781
781
|
display: block;
|
|
782
782
|
}
|
|
@@ -787,15 +787,15 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
787
787
|
|
|
788
788
|
ft-icon {
|
|
789
789
|
transform: rotate(-45deg);
|
|
790
|
-
color: ${
|
|
790
|
+
color: ${sp.colorOutline};
|
|
791
791
|
}
|
|
792
792
|
|
|
793
793
|
.ft-resizer--dragging ft-icon,
|
|
794
794
|
.ft-resizer:hover ft-icon,
|
|
795
795
|
[role="button"][aria-pressed="true"] ft-icon{
|
|
796
|
-
color: ${
|
|
796
|
+
color: ${sp.colorOnSurfaceMedium};
|
|
797
797
|
}
|
|
798
|
-
`;var
|
|
798
|
+
`;var $t=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ji=class extends CustomEvent{constructor(e,r){super("resize",{detail:{width:e,height:r}})}},Le=class extends Zi.FtLitElement{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=Ue.material,this.cursor="nwse-resize",this.ariaLabel="",this.dragging=!1,this.isAriaPressed=!1,this.fixedWidth=0,this.fixedHeight=0,this.startX=0,this.startY=0,this.doDragFromMouse=e=>this.doDrag(e.clientX,e.clientY),this.doDragFromTouch=e=>this.doDrag(e.touches[0].clientX,e.touches[0].clientY),this.stopDrag=()=>{this.dragging=!1,document.removeEventListener("mousemove",this.doDragFromMouse,!1),document.removeEventListener("mouseup",this.stopDrag,!1),document.removeEventListener("touchmove",this.doDragFromTouch,!1),document.removeEventListener("touchend",this.stopDrag,!1),document.removeEventListener("touchcancel",this.stopDrag,!1)}}render(){return Ki.html`
|
|
799
799
|
<style>
|
|
800
800
|
.ft-resizer {
|
|
801
801
|
cursor: ${(0,Ki.unsafeCSS)(this.cursor)}
|
|
@@ -810,7 +810,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
810
810
|
@keydown="${this.initKeydownPress}">
|
|
811
811
|
<ft-icon .variant="${this.iconVariant}" .value="${this.icon}" focusable="false" aria-hidden="true"></ft-icon>
|
|
812
812
|
</div>
|
|
813
|
-
`}initDragFromMouse(e){this.initDrag(e.clientX,e.clientY)}initDragFromTouch(e){e.preventDefault(),e.stopPropagation(),this.initDrag(e.touches[0].clientX,e.touches[0].clientY)}initKeydownPress(e){let r=e.key;if(["Enter","Space","Escape","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(r)&&(e.preventDefault(),e.stopPropagation()),this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,r==="Enter"||r==="Space"){let n=e.currentTarget;this.isAriaPressed=!this.isAriaPressed,n.setAttribute("aria-pressed",this.isAriaPressed.toString())}else r==="Escape"&&(this.isAriaPressed=!1);this.isAriaPressed&&(r==="ArrowLeft"?this.fixedWidth-=10:r==="ArrowRight"?this.fixedWidth+=10:r==="ArrowUp"?this.fixedHeight-=10:r==="ArrowDown"&&(this.fixedHeight+=10)),this.dispatchEvent(new ji(this.fixedWidth,this.fixedHeight))}initDrag(e,r){this.dragging=!0,this.startX=e,this.startY=r,this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,this.installDocumentEventListeners()}installDocumentEventListeners(){document.addEventListener("mousemove",this.doDragFromMouse,!1),document.addEventListener("mouseup",this.stopDrag,!1),document.addEventListener("touchmove",this.doDragFromTouch,!1),document.addEventListener("touchend",this.stopDrag,!1),document.addEventListener("touchcancel",this.stopDrag,!1)}doDrag(e,r){let i=this.fixedWidth+e-this.startX,n=this.fixedHeight+r-this.startY;this.dispatchEvent(new ji(i,n))}};Le.elementDefinitions={"ft-icon":he};Le.styles=[Zi.noTextSelect,
|
|
813
|
+
`}initDragFromMouse(e){this.initDrag(e.clientX,e.clientY)}initDragFromTouch(e){e.preventDefault(),e.stopPropagation(),this.initDrag(e.touches[0].clientX,e.touches[0].clientY)}initKeydownPress(e){let r=e.key;if(["Enter","Space","Escape","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(r)&&(e.preventDefault(),e.stopPropagation()),this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,r==="Enter"||r==="Space"){let n=e.currentTarget;this.isAriaPressed=!this.isAriaPressed,n.setAttribute("aria-pressed",this.isAriaPressed.toString())}else r==="Escape"&&(this.isAriaPressed=!1);this.isAriaPressed&&(r==="ArrowLeft"?this.fixedWidth-=10:r==="ArrowRight"?this.fixedWidth+=10:r==="ArrowUp"?this.fixedHeight-=10:r==="ArrowDown"&&(this.fixedHeight+=10)),this.dispatchEvent(new ji(this.fixedWidth,this.fixedHeight))}initDrag(e,r){this.dragging=!0,this.startX=e,this.startY=r,this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,this.installDocumentEventListeners()}installDocumentEventListeners(){document.addEventListener("mousemove",this.doDragFromMouse,!1),document.addEventListener("mouseup",this.stopDrag,!1),document.addEventListener("touchmove",this.doDragFromTouch,!1),document.addEventListener("touchend",this.stopDrag,!1),document.addEventListener("touchcancel",this.stopDrag,!1)}doDrag(e,r){let i=this.fixedWidth+e-this.startX,n=this.fixedHeight+r-this.startY;this.dispatchEvent(new ji(i,n))}};Le.elementDefinitions={"ft-icon":he};Le.styles=[Zi.noTextSelect,cp];$t([(0,it.property)({type:Number})],Le.prototype,"initialWidth",void 0);$t([(0,it.property)({type:Number})],Le.prototype,"initialHeight",void 0);$t([(0,it.property)()],Le.prototype,"icon",void 0);$t([(0,it.property)()],Le.prototype,"iconVariant",void 0);$t([(0,it.property)()],Le.prototype,"cursor",void 0);$t([(0,it.property)()],Le.prototype,"ariaLabel",void 0);$t([(0,it.state)()],Le.prototype,"dragging",void 0);$t([(0,it.state)()],Le.prototype,"isAriaPressed",void 0);$t([(0,it.eventOptions)({passive:!0})],Le.prototype,"initDragFromMouse",null);$t([(0,it.eventOptions)({passive:!0})],Le.prototype,"initDragFromTouch",null);(0,dp.customElement)("ft-resizer")(Le);var gs=m(R());var qi=m(K());var pp=m($()),ie=m(R());var k={fontSize:ie.FtCssVariableFactory.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:ie.FtCssVariableFactory.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:ie.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:ie.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:ie.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:ie.FtCssVariableFactory.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:ie.FtCssVariableFactory.extend("--ft-input-label-border-color","",ie.designSystemVariables.colorOutline),textColor:ie.FtCssVariableFactory.extend("--ft-input-label-text-color","",ie.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:ie.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color","",ie.designSystemVariables.colorOnSurfaceDisabled),backgroundColor:ie.FtCssVariableFactory.extend("--ft-input-label-background-color","",ie.designSystemVariables.colorSurface),borderRadius:ie.FtCssVariableFactory.extend("--ft-input-label-border-radius","",ie.designSystemVariables.borderRadiusS),colorError:ie.FtCssVariableFactory.external(ie.designSystemVariables.colorError,"Design system")},up=pp.css`
|
|
814
814
|
.ft-input-label {
|
|
815
815
|
position: absolute;
|
|
816
816
|
inset: 0;
|
|
@@ -932,23 +932,23 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
932
932
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
|
|
933
933
|
border-top: none;
|
|
934
934
|
}
|
|
935
|
-
`;var
|
|
936
|
-
<div class="${(0,
|
|
937
|
-
${
|
|
935
|
+
`;var us=m($()),fs=m(K());function fp(t,e,r){return t?e(t):r?.(t)}var gp=m(Wt()),yp=m(R()),hp=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Yt=class extends yp.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1}get inputLabelClasses(){return{}}render(){return us.html`
|
|
936
|
+
<div class="${(0,gp.classMap)(this.inputLabelClasses)}">
|
|
937
|
+
${fp(this.text,()=>us.html`
|
|
938
938
|
<div class="ft-input-label--text ft-typography--caption">
|
|
939
939
|
<label class="ft-input-label--floating-text">${this.text}</label>
|
|
940
940
|
<span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
|
|
941
941
|
</div>
|
|
942
942
|
`)}
|
|
943
943
|
</div>
|
|
944
|
-
`}};
|
|
944
|
+
`}};Yt.elementDefinitions={};hp([(0,fs.property)({type:String})],Yt.prototype,"text",void 0);hp([(0,fs.property)({type:Boolean})],Yt.prototype,"raised",void 0);var hs=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},nt=class extends Yt{constructor(){super(...arguments),this.outlined=!1,this.error=!1,this.disabled=!1}get inputLabelClasses(){return{"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error}}};nt.elementDefinitions={};nt.styles=[qr,up];hs([(0,qi.property)({type:Boolean})],nt.prototype,"outlined",void 0);hs([(0,qi.property)({type:Boolean})],nt.prototype,"error",void 0);hs([(0,qi.property)({type:Boolean})],nt.prototype,"disabled",void 0);var xp=m(R());var mp=m($());var Ce=m(R()),ze={fontSize:Ce.FtCssVariableFactory.extend("--ft-input-label-font-size","",Or.fontSize),fontSizeRaised:Ce.FtCssVariableFactory.extend("--ft-input-label-font-size-raised","",er.fontSize),lineHeight:Ce.FtCssVariableFactory.extend("--ft-input-label-line-height","",er.lineHeight),color:Ce.FtCssVariableFactory.extend("--ft-input-label-color","",Ce.semantic.contentGlobalSubtle),largeFieldHeight:Ce.FtCssVariableFactory.create("--ft-input-label-large-height","","SIZE","50px"),largeFieldVerticalGap:Ce.FtCssVariableFactory.extend("--ft-input-label-large-field-vertical-gap","",l.spacing05),largeFieldHorizontalPadding:Ce.FtCssVariableFactory.extend("--ft-input-label-large-field-horizontal-padding","",l.spacing4),mediumFieldHeight:Ce.FtCssVariableFactory.create("--ft-input-label-medium-height","","SIZE","40px"),mediumFieldVerticalGap:Ce.FtCssVariableFactory.create("--ft-input-label-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHorizontalPadding:Ce.FtCssVariableFactory.extend("--ft-input-label-medium-field-horizontal-padding","",l.spacing4),additionalPaddingLeft:Ce.FtCssVariableFactory.create("--ft-input-label-additional-padding-left","","SIZE","0px"),additionalPaddingRight:Ce.FtCssVariableFactory.create("--ft-input-label-additional-padding-right","","SIZE","0px")},bp=[mp.css`
|
|
945
945
|
|
|
946
946
|
:root {
|
|
947
947
|
--field-height: ${ze.largeFieldHeight};
|
|
948
948
|
--field-vertical-gap: ${ze.largeFieldVerticalGap};
|
|
949
949
|
--field-horizontal-padding: ${ze.largeFieldHorizontalPadding};
|
|
950
950
|
|
|
951
|
-
--typo-caption-height: calc(${
|
|
951
|
+
--typo-caption-height: calc(${er.lineHeight} * ${er.fontSize});
|
|
952
952
|
--typo-body-height: calc(${Or.lineHeight} * ${Or.fontSize});
|
|
953
953
|
--caption-label-and-value-combined-height: calc(var(--field-vertical-gap) + var(--typo-caption-height) + var(--typo-body-height));
|
|
954
954
|
--input-content-vertical-padding: calc((var(--field-height) - var(--caption-label-and-value-combined-height)) / 2);
|
|
@@ -1023,7 +1023,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1023
1023
|
top: var(--input-content-vertical-padding);
|
|
1024
1024
|
}
|
|
1025
1025
|
|
|
1026
|
-
`];var Zo=class extends(0,
|
|
1026
|
+
`];var Zo=class extends(0,xp.toFtdsBase)(Yt){get inputLabelClasses(){return{"ft-input-label":!0,"ft-input-label--raised":this.raised,...this.getDesignSystemBaseClasses()}}};Zo.styles=[qr,bp];(0,gs.customElement)("ft-input-label")(nt);(0,gs.customElement)("ftds-input-label")(Zo);var vp=m($()),q=m(R());var Q={fontSize:q.FtCssVariableFactory.create("--ft-text-area-font-size","","SIZE","14px"),labelSize:q.FtCssVariableFactory.create("--ft-text-area-label-size","","SIZE","11px"),verticalSpacing:q.FtCssVariableFactory.create("--ft-text-area-vertical-spacing","","SIZE","4px"),horizontalSpacing:q.FtCssVariableFactory.create("--ft-text-area-horizontal-spacing","","SIZE","16px"),helperColor:q.FtCssVariableFactory.extend("--ft-text-area-helper-color","",q.designSystemVariables.colorOnSurfaceMedium),colorPrimary:q.FtCssVariableFactory.external(q.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:q.FtCssVariableFactory.external(q.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:q.FtCssVariableFactory.external(q.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:q.FtCssVariableFactory.external(q.designSystemVariables.borderRadiusS,"Design system"),colorError:q.FtCssVariableFactory.external(q.designSystemVariables.colorError,"Design system")},Sp=vp.css`
|
|
1027
1027
|
*:focus {
|
|
1028
1028
|
outline: none;
|
|
1029
1029
|
}
|
|
@@ -1123,7 +1123,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1123
1123
|
position: absolute;
|
|
1124
1124
|
bottom: 0;
|
|
1125
1125
|
}
|
|
1126
|
-
`;var
|
|
1126
|
+
`;var Xt=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Me=class extends(0,Xi.toFtFormComponent)(Xi.FtLitElement){constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.height=50,this.focused=!1}render(){let e={"ft-text-area":!0,"ft-text-area--filled":!this.outlined,"ft-text-area--outlined":this.outlined,"ft-text-area--disabled":this.disabled,"ft-text-area--has-value":!!this.value,"ft-text-area--no-label":!this.label,"ft-text-area--in-error":this.error};return Yi.html`
|
|
1127
1127
|
<style>
|
|
1128
1128
|
.ft-text-area--main-panel {
|
|
1129
1129
|
height: calc(4 * ${Q.verticalSpacing} + ${Q.labelSize} + ${Q.fontSize} + ${this.height}px);
|
|
@@ -1133,7 +1133,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1133
1133
|
right: ${this.textarea!=null?this.textarea.offsetWidth-this.textarea.clientWidth:0}px;
|
|
1134
1134
|
}
|
|
1135
1135
|
</style>
|
|
1136
|
-
<div class="${(0,
|
|
1136
|
+
<div class="${(0,Cp.classMap)(e)}">
|
|
1137
1137
|
<div class="ft-text-area--main-panel">
|
|
1138
1138
|
<ft-input-label text="${this.label}"
|
|
1139
1139
|
?disabled=${this.disabled}
|
|
@@ -1168,14 +1168,14 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1168
1168
|
${this.helper}
|
|
1169
1169
|
</ft-typography>`:void 0}
|
|
1170
1170
|
</div>
|
|
1171
|
-
`}setValue(e,r=!1){this.value=e,this.setFormValue(e),r&&(this.dispatchEvent(new CustomEvent("live-change",{detail:this.value})),this.dispatchEvent(new CustomEvent("change",{detail:this.value})))}onKeyDown(e){(e.key==="Enter"||e.key===" ")&&e.stopPropagation()}updateValueFromInputField(){this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var e;this.value=((e=this.textarea)===null||e===void 0?void 0:e.value)||"",this.setFormValue(this.value),this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onResize(e){e.detail.height>=50&&(this.height=e.detail.height)}};Me.elementDefinitions={"ft-input-label":nt,"ft-resizer":Le,"ft-ripple":Z,"ft-typography":ue};Me.styles=[Zr,
|
|
1171
|
+
`}setValue(e,r=!1){this.value=e,this.setFormValue(e),r&&(this.dispatchEvent(new CustomEvent("live-change",{detail:this.value})),this.dispatchEvent(new CustomEvent("change",{detail:this.value})))}onKeyDown(e){(e.key==="Enter"||e.key===" ")&&e.stopPropagation()}updateValueFromInputField(){this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var e;this.value=((e=this.textarea)===null||e===void 0?void 0:e.value)||"",this.setFormValue(this.value),this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onResize(e){e.detail.height>=50&&(this.height=e.detail.height)}};Me.elementDefinitions={"ft-input-label":nt,"ft-resizer":Le,"ft-ripple":Z,"ft-typography":ue};Me.styles=[Zr,Sp];Xt([(0,ht.property)({type:String})],Me.prototype,"label",void 0);Xt([(0,ht.property)({reflect:!0})],Me.prototype,"value",void 0);Xt([(0,ht.property)({type:String})],Me.prototype,"helper",void 0);Xt([(0,ht.property)({type:Boolean})],Me.prototype,"outlined",void 0);Xt([(0,ht.property)({type:Boolean})],Me.prototype,"disabled",void 0);Xt([(0,ht.property)({type:Boolean})],Me.prototype,"error",void 0);Xt([(0,ht.property)({type:Number,reflect:!0})],Me.prototype,"height",void 0);Xt([(0,ht.query)("textarea")],Me.prototype,"textarea",void 0);Xt([(0,ht.state)()],Me.prototype,"focused",void 0);(0,Op.customElement)("ft-text-area")(Me);var Vp=m(ys());var bs=m(R());var qo=m(K()),Rp=m(R());var mr=m(R());var Tp=m(R());var Ep=m($()),Ap=m(R());var Br=class extends Ap.FtLitElement{render(){return Ep.html`
|
|
1172
1172
|
<div class="ft-loader">
|
|
1173
1173
|
<div></div>
|
|
1174
1174
|
<div></div>
|
|
1175
1175
|
<div></div>
|
|
1176
1176
|
<div></div>
|
|
1177
1177
|
</div>
|
|
1178
|
-
`}};Br.styles=
|
|
1178
|
+
`}};Br.styles=Js;(0,Tp.customElement)("ft-loader")(Br);var yr=m($()),ms=m(Wt()),ye=m(K());var Fr=t=>t??Se;var Ae=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Y=class extends(0,mr.toFtFormComponent)(mr.FtLitElement){get buttonClasses(){return{}}get typographyVariant(){return""}constructor(){super(),this.href=void 0,this.target=void 0,this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.ariaLabel=null,this.ariaHasPopup=null,this.ariaPressed=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.addEventListener("click",e=>{var r;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((r=this.form)===null||r===void 0||r.requestSubmit())})}render(){var e,r,i;let n=yr.html`
|
|
1179
1179
|
<ft-ripple part="ripple"
|
|
1180
1180
|
?disabled=${this.isDisabled()}
|
|
1181
1181
|
?activated=${this.activated}
|
|
@@ -1192,14 +1192,14 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1192
1192
|
<a href="${a}"
|
|
1193
1193
|
target="${(e=this.target)!==null&&e!==void 0?e:"_self"}"
|
|
1194
1194
|
part="button"
|
|
1195
|
-
class="${(0,
|
|
1195
|
+
class="${(0,ms.classMap)(this.buttonClasses)}"
|
|
1196
1196
|
aria-label="${(r=this.ariaLabel)!==null&&r!==void 0?r:this.getLabel()}"
|
|
1197
1197
|
?disabled=${this.isDisabled()}>
|
|
1198
1198
|
${n}
|
|
1199
1199
|
</a>
|
|
1200
1200
|
`:yr.html`
|
|
1201
1201
|
<button part="button"
|
|
1202
|
-
class="${(0,
|
|
1202
|
+
class="${(0,ms.classMap)(this.buttonClasses)}"
|
|
1203
1203
|
aria-label="${(i=this.ariaLabel)!==null&&i!==void 0?i:this.getLabel()}"
|
|
1204
1204
|
aria-haspopup="${Fr(this.ariaHasPopup)}"
|
|
1205
1205
|
aria-pressed="${Fr(this.ariaPressed)}"
|
|
@@ -1217,7 +1217,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1217
1217
|
<ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
|
|
1218
1218
|
`:yr.html`
|
|
1219
1219
|
<slot part="icon" name="icon"></slot>
|
|
1220
|
-
`}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}showTooltip(){var e;(e=this.tooltip)===null||e===void 0||e.show()}showTemporaryTooltip(e,r){var i;return(i=this.tooltip)===null||i===void 0?void 0:i.showTemporaryText(e,r)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,mr.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};Y.elementDefinitions={"ft-ripple":Z,"ft-tooltip":fe,"ft-icon":he,"ft-loader":Br};Ae([(0,ye.property)()],Y.prototype,"href",void 0);Ae([(0,ye.property)()],Y.prototype,"target",void 0);Ae([(0,ye.property)()],Y.prototype,"type",void 0);Ae([(0,ye.property)({type:Boolean})],Y.prototype,"disabled",void 0);Ae([(0,ye.property)()],Y.prototype,"label",void 0);Ae([(0,ye.property)()],Y.prototype,"icon",void 0);Ae([(0,ye.property)()],Y.prototype,"iconVariant",void 0);Ae([(0,ye.property)({type:Boolean})],Y.prototype,"trailingIcon",void 0);Ae([(0,ye.property)({type:Boolean})],Y.prototype,"loading",void 0);Ae([(0,ye.property)({attribute:"aria-label"})],Y.prototype,"ariaLabel",void 0);Ae([(0,ye.property)()],Y.prototype,"ariaHasPopup",void 0);Ae([(0,ye.property)({attribute:"aria-pressed"})],Y.prototype,"ariaPressed",void 0);Ae([(0,ye.property)()],Y.prototype,"tooltipPosition",void 0);Ae([(0,ye.property)({type:Boolean})],Y.prototype,"hideTooltip",void 0);Ae([(0,ye.property)({type:Boolean})],Y.prototype,"forceTooltip",void 0);Ae([(0,ye.property)({type:Boolean})],Y.prototype,"activated",void 0);Ae([(0,ye.query)(".ft-button")],Y.prototype,"button",void 0);Ae([(0,ye.query)(".ft-button--label slot")],Y.prototype,"slottedContent",void 0);Ae([(0,ye.query)("[part=tooltip]")],Y.prototype,"tooltip",void 0);var Qi=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},gt=class extends Y{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return
|
|
1220
|
+
`}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}showTooltip(){var e;(e=this.tooltip)===null||e===void 0||e.show()}showTemporaryTooltip(e,r){var i;return(i=this.tooltip)===null||i===void 0?void 0:i.showTemporaryText(e,r)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,mr.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};Y.elementDefinitions={"ft-ripple":Z,"ft-tooltip":fe,"ft-icon":he,"ft-loader":Br};Ae([(0,ye.property)()],Y.prototype,"href",void 0);Ae([(0,ye.property)()],Y.prototype,"target",void 0);Ae([(0,ye.property)()],Y.prototype,"type",void 0);Ae([(0,ye.property)({type:Boolean})],Y.prototype,"disabled",void 0);Ae([(0,ye.property)()],Y.prototype,"label",void 0);Ae([(0,ye.property)()],Y.prototype,"icon",void 0);Ae([(0,ye.property)()],Y.prototype,"iconVariant",void 0);Ae([(0,ye.property)({type:Boolean})],Y.prototype,"trailingIcon",void 0);Ae([(0,ye.property)({type:Boolean})],Y.prototype,"loading",void 0);Ae([(0,ye.property)({attribute:"aria-label"})],Y.prototype,"ariaLabel",void 0);Ae([(0,ye.property)()],Y.prototype,"ariaHasPopup",void 0);Ae([(0,ye.property)({attribute:"aria-pressed"})],Y.prototype,"ariaPressed",void 0);Ae([(0,ye.property)()],Y.prototype,"tooltipPosition",void 0);Ae([(0,ye.property)({type:Boolean})],Y.prototype,"hideTooltip",void 0);Ae([(0,ye.property)({type:Boolean})],Y.prototype,"forceTooltip",void 0);Ae([(0,ye.property)({type:Boolean})],Y.prototype,"activated",void 0);Ae([(0,ye.query)(".ft-button")],Y.prototype,"button",void 0);Ae([(0,ye.query)(".ft-button--label slot")],Y.prototype,"slottedContent",void 0);Ae([(0,ye.query)("[part=tooltip]")],Y.prototype,"tooltip",void 0);var Qi=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},gt=class extends Y{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return Lt.button}};gt.elementDefinitions={...Y.elementDefinitions,"ft-or-ftds-typography":ue};gt.styles=[Rp.safariEllipsisFix,nl];Qi([(0,qo.property)({type:Boolean})],gt.prototype,"primary",void 0);Qi([(0,qo.property)({type:Boolean})],gt.prototype,"outlined",void 0);Qi([(0,qo.property)({type:Boolean})],gt.prototype,"dense",void 0);Qi([(0,qo.property)({type:Boolean})],gt.prototype,"round",void 0);var Yo=m(K()),en=m(R());var Ip=m($()),C=m(R());var Af={...f,iconOnlyScale:C.FtCssVariableFactory.create("--ft-button-icon-only-scale","","NUMBER","1")},_p=[Ip.css`
|
|
1221
1221
|
:host {
|
|
1222
1222
|
display: inline-block;
|
|
1223
1223
|
max-width: 100%;
|
|
@@ -1300,7 +1300,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1300
1300
|
}
|
|
1301
1301
|
|
|
1302
1302
|
.ft-button.ft-button--icon-only ft-icon {
|
|
1303
|
-
transform: scale(${
|
|
1303
|
+
transform: scale(${Af.iconOnlyScale});
|
|
1304
1304
|
}
|
|
1305
1305
|
|
|
1306
1306
|
/** Brand Primary styles **/
|
|
@@ -1687,7 +1687,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1687
1687
|
.ftds--size-small.ft-button--icon-only {
|
|
1688
1688
|
width: ${f.smallIconOnlyWidth};
|
|
1689
1689
|
}
|
|
1690
|
-
`,C.noTextSelect];var Ji=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a}
|
|
1690
|
+
`,C.noTextSelect];var Ji=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Bt=class extends(0,en.toFtdsBase)(Y){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=ti.brand,this.iconVariant=Ue.fluid_topics}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon,"ft-button--round":this.round,...this.getDesignSystemBaseClasses()}}get typographyVariant(){switch(this.size){case zr.large:return nr.body2medium;case zr.medium:return nr.caption1medium;case zr.small:return nr.caption2medium}}};Bt.elementDefinitions={...Y.elementDefinitions,"ft-or-ftds-typography":Ht};Bt.styles=[en.safariEllipsisFix,_p];Ji([(0,Yo.property)({type:Boolean})],Bt.prototype,"primary",void 0);Ji([(0,Yo.property)({type:Boolean})],Bt.prototype,"secondary",void 0);Ji([(0,Yo.property)({type:Boolean})],Bt.prototype,"tertiary",void 0);Ji([(0,Yo.property)({type:Boolean})],Bt.prototype,"round",void 0);(0,bs.customElement)("ft-button")(gt);(0,bs.customElement)("ftds-button")(Bt);var j=hr.build("integratedFeedbackComponent"),Lp={starsRating:"{0} stars","starsRating[\\=1]":"1 star",like:"Like",dislike:"Dislike",dichotomousYes:"Yes",dichotomousNo:"No",notRated:"Not rated",ratedNow:"Rated now",ratedToday:"Rated today",ratedOn:"Rated on {0, date}",feedbackInputLabel:"How can we improve it?",feedbackfromEmail:"Your email",feedbackfromEmailInvalid:"Please enter a valid email address",okButton:"Send feedback",cancelButton:"Cancel",moreOptionsButton:"More options",feedbackSuccess:"Feedback successfully sent. Thank you!",feedbackFailure:"Failed to send feedback. Please try again later.",ratingSuccess:"Rating successfully sent. Thank you!",ratingFailure:"Failed to send rating. Please try again later.",mapFeedbackMainTitle:"Send feedback",mapRatingSectionTitle:"Rate this document",mapDichotomousRatingSectionTitle:"Did it solve your problem?",mapFeedbackSectionTitle:"Write your review",topicFeedbackMainTitle:"Send feedback",topicRatingSectionTitle:"Rate this content",topicDichotomousRatingSectionTitle:"Did this content solve your problem?",topicFeedbackSectionTitle:"Write your review"};var vs=m(R());var Te=m($()),z=m(K()),Bp=m(ys()),Fp=m(Wt());var br=m(R());var Np=m($()),D=m(R());var U={fontSize:D.FtCssVariableFactory.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:D.FtCssVariableFactory.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:D.FtCssVariableFactory.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:D.FtCssVariableFactory.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:D.FtCssVariableFactory.extend("--ft-text-field-helper-color","",D.designSystemVariables.colorOnSurfaceMedium),colorPrimary:D.FtCssVariableFactory.external(D.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:D.FtCssVariableFactory.external(D.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:D.FtCssVariableFactory.external(D.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:D.FtCssVariableFactory.external(D.designSystemVariables.borderRadiusS,"Design system"),colorError:D.FtCssVariableFactory.external(D.designSystemVariables.colorError,"Design system"),prefixColor:D.FtCssVariableFactory.extend("--ft-text-field-prefix-color","",D.designSystemVariables.colorOnSurfaceMedium),iconColor:D.FtCssVariableFactory.extend("--ft-text-field-icon-color","",D.designSystemVariables.colorOnSurfaceMedium),floatingZIndex:D.FtCssVariableFactory.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),backgroundColor:D.FtCssVariableFactory.extend("--ft-text-field-background-color","",D.designSystemVariables.colorSurface),colorOutline:D.FtCssVariableFactory.external(D.designSystemVariables.colorOutline,"Design system"),elevation02:D.FtCssVariableFactory.external(D.designSystemVariables.elevation02,"Design system"),suggestSize:D.FtCssVariableFactory.create("--ft-text-field-suggest-size","","SIZE","300px")},kp=Np.css`
|
|
1691
1691
|
*:focus {
|
|
1692
1692
|
outline: none;
|
|
1693
1693
|
}
|
|
@@ -1846,7 +1846,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1846
1846
|
.ft-text-field--with-password ft-icon:hover {
|
|
1847
1847
|
cursor: pointer;
|
|
1848
1848
|
}
|
|
1849
|
-
`;var
|
|
1849
|
+
`;var Mp=m(R()),Xo=m($()),Ur=m(K());var Pp=m($());var Dp=Pp.css`
|
|
1850
1850
|
.ft-text-field-suggestion {
|
|
1851
1851
|
position: relative;
|
|
1852
1852
|
padding: 8px 16px;
|
|
@@ -1882,8 +1882,8 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1882
1882
|
slot {
|
|
1883
1883
|
pointer-events: none;
|
|
1884
1884
|
}
|
|
1885
|
-
`;var
|
|
1886
|
-
<div class="${(0
|
|
1885
|
+
`;var $p=m(Wt()),tn=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},xs=class extends CustomEvent{constructor(e){super("suggestion-selected",{detail:e,bubbles:!0,composed:!0})}},yt=class extends Mp.FtLitElement{render(){let e={"ft-text-field-suggestion":!0,"ft-text-field-suggestion--with-helper":!!this.helper};return Xo.html`
|
|
1886
|
+
<div class="${(0,$p.classMap)(e)}"
|
|
1887
1887
|
tabindex="-1"
|
|
1888
1888
|
@keydown=${this.onKeyDown}
|
|
1889
1889
|
@click=${this.confirmSuggestion}>
|
|
@@ -1898,8 +1898,8 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1898
1898
|
<slot></slot>
|
|
1899
1899
|
</ft-typography>
|
|
1900
1900
|
</div>
|
|
1901
|
-
`}focus(e){var r;(r=this.container)===null||r===void 0||r.focus(e)}click(){var e;(e=this.container)===null||e===void 0||e.click()}confirmSuggestion(){this.dispatchEvent(new
|
|
1902
|
-
<div class="${(0,
|
|
1901
|
+
`}focus(e){var r;(r=this.container)===null||r===void 0||r.focus(e)}click(){var e;(e=this.container)===null||e===void 0||e.click()}confirmSuggestion(){this.dispatchEvent(new xs(this.getValue()))}getValue(){return this.value||this.getTextContent()}getTextContent(){return this.assignedNodes.map(e=>e.textContent).join("").trim()}onKeyDown(e){["Enter"," "].includes(e.key)&&(e.preventDefault(),e.stopPropagation(),this.confirmSuggestion())}};yt.elementDefinitions={"ft-ripple":Z,"ft-typography":ue,"ft-icon":he};yt.styles=Dp;tn([(0,Ur.property)()],yt.prototype,"value",void 0);tn([(0,Ur.property)()],yt.prototype,"helper",void 0);tn([(0,Ur.query)(".ft-text-field-suggestion")],yt.prototype,"container",void 0);tn([(0,Ur.queryAssignedNodes)()],yt.prototype,"assignedNodes",void 0);var rn=class extends CustomEvent{constructor(e){super("live-change",{detail:e})}},on=class extends CustomEvent{constructor(e){super("change",{detail:e})}},nn=class extends CustomEvent{constructor(e){super("invalid",{detail:e})}};var V=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},B=class extends(0,br.toFtFormComponent)(br.FtLitElement){constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.prefix=null,this.passwordHiddenIcon=Mr.EYE_SLASH,this.passwordRevealedIcon=Mr.EYE,this.filterSuggestions=!1,this.password=!1,this.focused=!1,this.inputValid=!0,this.hidePassword=!0,this.hideSuggestions=!1,this.visibleSuggestions=[],this.providedSuggestions=[]}get value(){return this._value||""}set value(e){this.setInternalValue(e||""),this.dispatchedValue=e||""}setInternalValue(e){let r=this._value;this._value=e||"",this.setFormValue(this._value),this.requestUpdate("value",r)}focus(){var e;(e=this.input)===null||e===void 0||e.focus()}blur(){var e;(e=this.input)===null||e===void 0||e.blur()}render(){var e;let r={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--with-label":!!this.label,"ft-text-field--in-error":!this.inputValid||this.error,"ft-text-field--fixed":this.fixedMenuPosition,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--hide-suggestions":!this.suggestionsShouldBeDisplayed(),"ft-text-field--raised-label":this.focused||this.value!="","ft-text-field--with-icon":!!this.icon,"ft-text-field--with-password":this.isPasswordField()},i=this.suggestionsProvider&&this.value&&this.value!=""&&!this.providedSuggestions.map(c=>c.label).includes(this.value),a=!this.suggestionsProvider&&this.filterSuggestions&&this.value&&this.value!=""||i,s=this.inputValid?this.helper:(e=this.input)===null||e===void 0?void 0:e.validationMessage;return Te.html`
|
|
1902
|
+
<div class="${(0,Fp.classMap)(r)}">
|
|
1903
1903
|
<div class="ft-text-field--main-panel"
|
|
1904
1904
|
@keydown=${this.handleKeyboardNavigation}
|
|
1905
1905
|
@focusout=${this.onMainPanelBlur}>
|
|
@@ -1907,16 +1907,16 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1907
1907
|
?disabled=${this.disabled}
|
|
1908
1908
|
?outlined=${this.outlined}
|
|
1909
1909
|
?raised=${this.focused||this.value!=""}
|
|
1910
|
-
?error=${this.error}></ft-input-label>
|
|
1910
|
+
?error=${!this.inputValid||this.error}></ft-input-label>
|
|
1911
1911
|
<div class="ft-text-field--input-panel">
|
|
1912
|
-
${this.outlined?
|
|
1912
|
+
${this.outlined?Te.nothing:Te.html`
|
|
1913
1913
|
<ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
|
|
1914
1914
|
`}
|
|
1915
|
-
${this.prefix?
|
|
1915
|
+
${this.prefix?Te.html`
|
|
1916
1916
|
<ft-typography class="ft-text-field--prefix" variant="body1">
|
|
1917
1917
|
${this.prefix}
|
|
1918
1918
|
</ft-typography>
|
|
1919
|
-
`:
|
|
1919
|
+
`:Te.nothing}
|
|
1920
1920
|
<input type="${this.resolveInputType()}"
|
|
1921
1921
|
name="${Fr(this.name)}"
|
|
1922
1922
|
maxlength="${Fr(this.maxLength||void 0)}"
|
|
@@ -1928,54 +1928,56 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1928
1928
|
.value=${this.value}
|
|
1929
1929
|
@click=${this.handleClick}
|
|
1930
1930
|
@keyup=${this.handleInput}
|
|
1931
|
-
@focus=${this.onFocus}
|
|
1931
|
+
@focus=${this.onFocus}
|
|
1932
|
+
/>
|
|
1932
1933
|
${this.renderIcon()}
|
|
1933
1934
|
</div>
|
|
1934
1935
|
<div class="ft-text-field--suggestions"
|
|
1935
1936
|
@suggestion-selected=${this.onSuggestionSelected}>
|
|
1936
1937
|
${this.renderSuggestions()}
|
|
1937
|
-
${
|
|
1938
|
+
${a?Te.html`
|
|
1938
1939
|
<ft-text-field-suggestion class="ft-text-field-suggestion--new-value" helper="${this.suggestionsHelper}">
|
|
1939
1940
|
${this.value}
|
|
1940
1941
|
</ft-text-field-suggestion>
|
|
1941
|
-
`:
|
|
1942
|
+
`:Te.nothing}
|
|
1942
1943
|
</div>
|
|
1943
1944
|
</div>
|
|
1944
|
-
${
|
|
1945
|
-
<ft-typography class="ft-text-field--helper-text" variant="caption">
|
|
1946
|
-
${
|
|
1945
|
+
${s?Te.html`
|
|
1946
|
+
<ft-typography class="ft-text-field--helper-text" variant="${Lt.caption}">
|
|
1947
|
+
${s}
|
|
1947
1948
|
</ft-typography>
|
|
1948
|
-
`:
|
|
1949
|
+
`:Te.nothing}
|
|
1949
1950
|
</div>
|
|
1950
|
-
`}resolveInputType(){var e;return this.isPasswordField()?this.hidePassword?"password":"text":(e=this.type)!==null&&e!==void 0?e:"text"}renderSuggestions(){return this.suggestionsProvider?
|
|
1951
|
-
${(0,
|
|
1951
|
+
`}resolveInputType(){var e;return this.isPasswordField()?this.hidePassword?"password":"text":(e=this.type)!==null&&e!==void 0?e:"text"}renderSuggestions(){return this.suggestionsProvider?Te.html`
|
|
1952
|
+
${(0,Bp.repeat)(this.providedSuggestions,e=>Te.html`
|
|
1952
1953
|
<ft-text-field-suggestion value="${e.value}" @click=${r=>this.onSuggestionClick(r,e.clickHandler)}>
|
|
1953
|
-
${e.icon?
|
|
1954
|
+
${e.icon?Te.html`
|
|
1954
1955
|
<ft-icon .value=${e.icon}></ft-icon>
|
|
1955
|
-
`:
|
|
1956
|
+
`:Te.nothing}
|
|
1956
1957
|
${e.label}
|
|
1957
|
-
</ft-text-field-suggestion
|
|
1958
|
-
|
|
1958
|
+
</ft-text-field-suggestion>
|
|
1959
|
+
`)}
|
|
1960
|
+
`:Te.html`
|
|
1959
1961
|
<slot @slotchange=${()=>this.filterSuggestionsIfNeeded()}></slot>
|
|
1960
|
-
`}onSuggestionClick(e,r){r&&(e.preventDefault(),r(e))}renderPasswordIcon(){return
|
|
1962
|
+
`}onSuggestionClick(e,r){r&&(e.preventDefault(),r(e))}renderPasswordIcon(){return Te.html`
|
|
1961
1963
|
<ft-icon class="ft-text-field--icon"
|
|
1962
1964
|
.variant=${this.iconVariant}
|
|
1963
1965
|
.value=${this.hidePassword?this.passwordHiddenIcon:this.passwordRevealedIcon}
|
|
1964
1966
|
@click=${()=>this.togglePasswordVisibility()}></ft-icon>
|
|
1965
|
-
`}renderIcon(){return this.isPasswordField()?this.renderPasswordIcon():this.icon?
|
|
1967
|
+
`}renderIcon(){return this.isPasswordField()?this.renderPasswordIcon():this.icon?Te.html`
|
|
1966
1968
|
<ft-icon class="ft-text-field--icon"
|
|
1967
1969
|
.variant=${this.iconVariant}
|
|
1968
1970
|
.value=${this.icon}
|
|
1969
1971
|
@click=${()=>{var e;return(e=this.input)===null||e===void 0?void 0:e.focus()}}></ft-icon>
|
|
1970
|
-
`:Re.nothing}update(e){super.update(e),(e.has("value")||e.has("filterSuggestions")||e.has("suggestionsProvider"))&&this.updateSuggestions(),e.has("value")&&e.get("value")!=null&&(this.hideSuggestions=!1),e.has("dispatchedValue")&&e.get("dispatchedValue")!=null&&(this.hideSuggestions=!0)}async updateSuggestions(){this.suggestionsProvider?this.providedSuggestions=await this.suggestionsProvider(this.value):this.filterSuggestionsIfNeeded()}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.slottedSuggestions.forEach(e=>e.hidden=!e.getValue().toLowerCase().includes(this.value.toLowerCase())),this.visibleSuggestions=this.slottedSuggestions.filter(e=>!e.hidden)):this.visibleSuggestions=this.slottedSuggestions,this.newValueSuggestion&&(this.visibleSuggestions=[...this.visibleSuggestions,this.newValueSuggestion]),this.hideSuggestions=this.visibleSuggestions.length<=0}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0&&this.setSuggestionPosition(),e.has("value")&&this.suggestionsProvider&&(this.visibleSuggestions=[...this.providedSuggestionsInDom]),e.has("autocomplete")&&this.setupWatchAutofill(),this.suggestionsShouldBeDisplayed()&&this.setSuggestionPosition()}setupWatchAutofill(){var e;this.clearWatchAutofill(),((e=this.autocomplete)!==null&&e!==void 0?e:"off")!=="off"&&(this.watchAutofillInterval=setInterval(()=>{var r,i,n;!((r=this.input)===null||r===void 0)&&r.matches(":autofill")&&this.dispatchedValue!==((i=this.input)===null||i===void 0?void 0:i.value)&&this.setValue((n=this.input)===null||n===void 0?void 0:n.value,!0)},200))}clearWatchAutofill(){this.watchAutofillInterval&&clearInterval(this.watchAutofillInterval)}connectedCallback(){super.connectedCallback(),this.setupWatchAutofill()}disconnectedCallback(){super.disconnectedCallback(),this.clearWatchAutofill()}setValue(e,r=!1){this.value!==e&&(this.setInternalValue(e),this.dispatchEvent(new CustomEvent("live-change",{detail:e}))),r&&this.dispatchedValue!==e&&(this.dispatchedValue=e,this.dispatchEvent(new CustomEvent("change",{detail:e})))}handleInput(e){var r;let i=((r=this.input)===null||r===void 0?void 0:r.value)||"";this.setValue(i,e.key=="Escape"||e.key=="Enter")}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(e){var r;if(e.key==="ArrowDown"||e.key==="ArrowUp"){e.preventDefault(),e.stopPropagation(),this.hideSuggestions=!1;let i=this.visibleSuggestions.findIndex(a=>a.matches(":focus-within")),n;e.key==="ArrowDown"?n=i<this.visibleSuggestions.length-1?i+1:0:n=i>0?i-1:this.visibleSuggestions.length-1,(r=this.visibleSuggestions[n])===null||r===void 0||r.focus()}(e.key=="Escape"||e.key=="Enter")&&(this.hideSuggestions=!0)}onSuggestionSelected(e){var r;this.setValue(e.detail,!0),(r=this.input)===null||r===void 0||r.focus(),setTimeout(()=>this.hideSuggestions=!0,0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var e,r;!((e=this.mainPanel)===null||e===void 0)&&e.matches(":focus-within")||(this.focused=!1,this.setValue(((r=this.input)===null||r===void 0?void 0:r.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}isPasswordField(){return this.password||this.type==="password"}setSuggestionPosition(){this.suggestionsContainer.style.width=this.mainPanel.getBoundingClientRect().width+"px";let e=["bottom","top"];(0,br.computeOffsetAutoPosition)(this.mainPanel,this.suggestionsContainer,"bottom",e,"fixed","--text-field-internal-suggest-size",0).then(({x:r,y:i})=>{this.suggestionsContainer.style.left=`${r}px`,this.suggestionsContainer.style.top=`${i}px`})}suggestionsShouldBeDisplayed(){return!this.hideSuggestions&&(this.visibleSuggestions.length||this.providedSuggestions.length)}};B.elementDefinitions={"ft-input-label":nt,"ft-ripple":Z,"ft-typography":ue,"ft-icon":he,"ft-text-field-suggestion":yt};B.styles=[Zr,br.noTextInputDefaultClearButton,_p];j([(0,z.property)()],B.prototype,"label",void 0);j([(0,z.property)({noAccessor:!0})],B.prototype,"value",null);j([(0,z.state)()],B.prototype,"dispatchedValue",void 0);j([(0,z.property)()],B.prototype,"helper",void 0);j([(0,z.property)()],B.prototype,"suggestionsHelper",void 0);j([(0,z.property)({type:Boolean})],B.prototype,"outlined",void 0);j([(0,z.property)({type:Boolean})],B.prototype,"disabled",void 0);j([(0,z.property)({type:Boolean})],B.prototype,"error",void 0);j([(0,z.property)({type:Boolean})],B.prototype,"fixedMenuPosition",void 0);j([(0,z.property)()],B.prototype,"prefix",void 0);j([(0,z.property)()],B.prototype,"icon",void 0);j([(0,z.property)()],B.prototype,"name",void 0);j([(0,z.property)()],B.prototype,"type",void 0);j([(0,z.property)()],B.prototype,"passwordHiddenIcon",void 0);j([(0,z.property)()],B.prototype,"passwordRevealedIcon",void 0);j([(0,z.property)()],B.prototype,"iconVariant",void 0);j([(0,z.property)({type:Boolean})],B.prototype,"filterSuggestions",void 0);j([(0,z.property)({type:Number})],B.prototype,"maxLength",void 0);j([(0,z.property)({type:Boolean})],B.prototype,"password",void 0);j([(0,z.property)({type:String})],B.prototype,"autocomplete",void 0);j([(0,z.property)({attribute:!1})],B.prototype,"suggestionsProvider",void 0);j([(0,z.state)()],B.prototype,"focused",void 0);j([(0,z.state)()],B.prototype,"hidePassword",void 0);j([(0,z.state)()],B.prototype,"hideSuggestions",void 0);j([(0,z.state)()],B.prototype,"visibleSuggestions",void 0);j([(0,z.state)()],B.prototype,"providedSuggestions",void 0);j([(0,z.query)(".ft-text-field--main-panel")],B.prototype,"mainPanel",void 0);j([(0,z.query)(".ft-text-field--input")],B.prototype,"input",void 0);j([(0,z.query)(".ft-text-field-suggestion--new-value")],B.prototype,"newValueSuggestion",void 0);j([(0,z.query)(".ft-text-field--suggestions")],B.prototype,"suggestionsContainer",void 0);j([(0,z.queryAll)("ft-text-field-suggestion")],B.prototype,"providedSuggestionsInDom",void 0);j([(0,z.queryAssignedElements)({selector:"ft-text-field-suggestion"})],B.prototype,"slottedSuggestions",void 0);(0,ms.customElement)("ft-text-field")(B);(0,ms.customElement)("ft-text-field-suggestion")(yt);var zp=m(T());var Qo=m($()),xr=m(K()),Je=m(T());var At=m(T());var $p=m(T()),wf={setTranslationDestinationLanguage:(t,e)=>{t.translation.destinationLanguage=e.payload},setTranslationSourceLanguage:(t,e)=>{t.translation.sourceLanguage=e.payload},setTranslationProfileId:(t,e)=>{t.translation.profileId=e.payload},setTranslationLoading:(t,e)=>{t.translation.isLoading=e.payload},setTranslationError:(t,e)=>{t.translation.isError=e.payload},setTopicsRating:(t,e)=>{for(let r in e.payload)t.topicsRating[r]=e.payload[r]},setLinkPreviewDialogId:(t,e)=>{t.linkPreviewDialogId=e.payload}},Bp=t=>$p.FtReduxStore.get({name:"ft-reader-"+t,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:wf});var bs=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,i){return e.flatMap(n=>{var a;return n.pageConfiguration&&this.registerPage(this.buildPage(n,i)),n.tocId==null?this.extractPagesToc(n.children,r,i):[{tocId:n.tocId,title:(a=n.title)!==null&&a!==void 0?a:"",untranslatedTitle:n.untranslatedTitle,depth:r,children:this.extractPagesToc(n.children,r+1,n.tocId)}]})}convertNodes(e,r,i){return e.flatMap(n=>{var a,s,c;if(n.tocId==null)return[...this.convertSectionNodes((a=n.pageToc)!==null&&a!==void 0?a:[],r,n.tocId),...this.convertNodes(n.children,r,n.tocId)];let p=(s=n.prettyUrl)===null||s===void 0?void 0:s.replace(/^\//,""),u={tocId:n.tocId,contentId:n.contentId,title:n.title,untranslatedTitle:n.untranslatedTitle,hasRating:n.hasRating,origin:n.origin,prettyUrl:p,depth:r,parentTocId:i,children:[]};this.register(u);let h=this.convertSectionNodes((c=n.pageToc)!==null&&c!==void 0?c:[],r+1,n.tocId),g=this.convertNodes(n.children,r+1,u.tocId);return u.children=[...h,...g],[u]})}convertSectionNodes(e,r,i){return e.flatMap(n=>{var a;let s=(a=n.prettyUrl)===null||a===void 0?void 0:a.replace(/^\//,""),c={...n,prettyUrl:s,depth:r,parentTocId:i,children:[]};return this.register(c),c.children=this.convertSectionNodes(n.children,r+1,n.tocId),[c]})}buildPage(e,r){var i,n,a,s,c,p;let u={number:this.pages.length+1,title:(i=e.title)!==null&&i!==void 0?i:"",untranslatedTitle:e.untranslatedTitle,rootTocId:(n=e.tocId)!==null&&n!==void 0?n:"root",toc:((a=e.pageToc)!==null&&a!==void 0?a:[]).map(b=>this.nodeByTocId[b.tocId]),topics:[],hiddenTopics:[],breadcrumb:r?this.buildBreadcrumb(this.nodeByTocId[r]):[]},h=(b,x)=>(x?u.topics:u.hiddenTopics).push(b),g=(c=(s=e.pageConfiguration)===null||s===void 0?void 0:s.parentsVisibility)!==null&&c!==void 0?c:[];return u.breadcrumb.forEach((b,x)=>{h(b,g[x])}),e.tocId&&h(e.tocId,e.pageConfiguration.isVisible),u.topics.push(...this.tocIds((p=e.pageToc)!==null&&p!==void 0?p:[])),u}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}},rn=class{convertPaginatedToc(e,r){return new bs(e,r).build()}};var on=class extends je{get mapId(){return this._mapId}set mapId(e){e!==this._mapId&&this.clear(),this._mapId=e}constructor(e,r,i){super(!1,r),this.converter=e,this._mapId=i,this.initCache()}async withMapId(e){return this._mapId?e(this._mapId):void 0}initCache(){this.cache.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 Ut((r=(e=E.getState().session)===null||e===void 0?void 0:e.profile.roles)!==null&&r!==void 0?r:[],"RATING_USER")?this.withMapId(n=>this.fetchMapRating(n)):Promise.resolve()})}clear(){this.cache.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 i;return(i=this.getEnrichedTocNow(r))===null||i===void 0?void 0:i.nodeByTocId[e]}getTocNodeNowByUrl(e,r){var i,n;let a=this.getMapNow(r);return a?.prettyUrl==e||`${a?.id}/root`===e?(i=this.getEnrichedTocNow(r))===null||i===void 0?void 0:i.toc[0]:(n=this.getEnrichedTocNow(r))===null||n===void 0?void 0:n.nodeByUrl[e]}async getPage(e,r){let i=await this.getEnrichedToc(r);return i.pages[e-1]||i.pages[0]}async getPageByTocId(e,r){let i=await this.getEnrichedToc(r);return i.pageByTocId[e]||i.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,i){return this.cache.get("topic-relatives-"+[e,r,...i].join("-"),()=>this.fetchRelativesForTopicInMap(e,r,i))}getAttachmentDownloadLink(e){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(e).content}?download=true&locationValue=reader`)}getLink(e,r,i){let n=this.getNavigationData(e,r,i),a=this.getReaderLinkPrefix()+(n.prettyUrl?n.prettyUrl:`${n.mapId}/${n.tocId}`),s=new URL(a,this.api.tenantBaseUrl);return n.page!=null&&s.searchParams.set("page",`${n.page}`),n.prettyUrlDuplicated&&s.searchParams.set("tocId",n.tocId),n.section!=null&&s.searchParams.set("section",n.section),s.href}getNavigationData(e,r,i,n){var a,s;e=e||"root";let c=this.getEnrichedTocNow(n),p=c?.pageByTocId[e],u=c?.nodeByTocId[e],h=u?.prettyUrl;return{mapId:this.mapId,tocId:e,topicTitle:(a=u?.title)!==null&&a!==void 0?a:"",untranslatedTopicTitle:u?.untranslatedTitle,page:r&&p&&p.number!==r?r:void 0,prettyUrl:h?.replace(/^r\//,""),prettyUrlDuplicated:(s=c?.duplicatedPrettyUrls.has(h??""))!==null&&s!==void 0?s:!1,section:i}}async getAccurateNavigationData(e,r,i,n){return await this.getEnrichedToc(n),this.getNavigationData(e,r,i,n)}getRatingSummary(){return this.cache.get("ratingSummary")}reloadRating(){return this.cache.clear("ratingSummary"),this.getRatingSummary()}getMapRating(){return this.getRatingSummary().then(e=>e?.publication)}getTopicRating(e){return this.getRatingSummary().then(r=>{var i;return r?{type:r.topics.type,rating:(i=r.topics)===null||i===void 0?void 0:i.ratings.find(n=>n.tocId===e)}:void 0})}rateMap(e,r){return this.makeRateMapRequest(e,r).then(()=>this.clearRatingIfNecessary())}unrateMap(){return this.makeUnrateMapRequest().then(()=>this.clearRatingIfNecessary())}sendMapFeedback(e,r){return this.makeMapFeedbackRequest(e,r)}rateTopic(e,r,i){return this.makeRateTopicRequest(e,r,i).then(()=>this.clearRatingIfNecessary())}unrateTopic(e){return this.makeUnrateTopicRequest(e).then(()=>this.clearRatingIfNecessary())}async clearRatingIfNecessary(){let e=E.getState().session;e?.sessionAuthenticated&&this.cache.clear("ratingSummary")}sendTopicFeedback(e,r,i){return this.makeTopicFeedbackRequest(e,r,i)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(e,r){let i=this.getTocNodeNow(e,r),n=[{tocId:i.tocId,title:i.title,untranslatedTitle:i.untranslatedTitle}],a=this.getTocNodeNow(i.parentTocId,r);for(;a;)n.unshift({tocId:a.tocId,title:a.title,untranslatedTitle:a.untranslatedTitle}),a=this.getTocNodeNow(a.parentTocId,r);return n}isFeatureAccessible(e,{session:r}){var i;if(!this.isFeatureAvailable(e))return!1;switch(e){case at.FEEDBACK:return Ut(r??[],re.FEEDBACK_USER);case at.RATING:return Ut(r??[],re.RATING_USER);case at.PRINT:return Ut(r??[],re.PRINT_USER);case at.BOOKMARK:return!!r?.sessionAuthenticated;case at.COLLECTIONS:return Ut(r??[],re.COLLECTION_USER);case at.PERSONAL_BOOKS:return Ut(r??[],re.PERSONAL_BOOK_USER)&&!(!((i=this.getMapNow())===null||i===void 0)&&i.pbkConfidential);default:return!1}}makeAbsolute(e){return this.api.makeAbsolute(e)}};var nn=class t extends on{static async build(e){return new t(new rn,void 0,e)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(e,r){let i=await this.api.getMap(e,r);return this.fingerprint=i.fingerprint,i}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 i={query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",metadataFilters:[{key:e,valueFilter:{negative:!1,values:r}}],sort:[],facets:[]};return this.api.search(i)}fetchRelativesForTopicInMap(e,r,i){let n={query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",metadataFilters:[{key:r,valueFilter:{negative:!1,values:i}},{key:"ft:publicationId",valueFilter:{negative:!1,values:[e]}}],sort:[],facets:[]};return this.api.search(n)}makeMapFeedbackRequest(e,r){return this.api.sendMapFeedback(this.mapId,e,r)}makeRateMapRequest(e,r){return this.api.rateMap(this.mapId,e,r)}makeRateTopicRequest(e,r,i){return this.api.rateTopic(this.mapId,e,r,i)}makeTopicFeedbackRequest(e,r,i){return this.api.sendTopicFeedback(this.mapId,e,r,i)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(e){return this.api.unrateTopic(this.mapId,e)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(e){return!0}};var an=class t{static build(e,r){return new t(Bp(e.trim()||"context"),r??nn.build)}loaded(){return(0,At.waitUntil)(()=>this._loaded)}constructor(e,r,i){this.store=e,this.clusteringHelperProvider=i,this.metadataForSwitchToRelatives=new Set,this._loaded=!1,this.loadDebouncer=new At.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,At.waitFor)(()=>this.service)}async navigateToTopic(e,r,i){await this.loaded();let n=await this.awaitService(),a=await(i!=null?n.getPage(i,this.getTranslationSettings()):n.getPageByTocId(e??"root",this.getTranslationSettings()));this.store.actions.currentPage(a);let s=this.resolveValidNonRootTocId(e,a);this.store.actions.scrollTarget({tocId:s,section:r}),this.store.getState().visibleTopics[0]!==s&&this.store.actions.visibleTopics([])}resolveValidNonRootTocId(e,r){var i,n,a;let s=(i=e==="root"?void 0:e)!==null&&i!==void 0?i:r.rootTocId;return r.topics.includes(s)?s:(a=(n=r.topics[0])!==null&&n!==void 0?n:r.hiddenTopics[0])!==null&&a!==void 0?a:"root"}async navigateToPage(e){await this.loaded();let i=await(await this.awaitService()).getPage(e,this.getTranslationSettings());this.store.actions.currentPage(i)}scrollDone(){this.store.actions.scrollTarget({})}async load(){var e;!((e=this.service)===null||e===void 0)&&e.mapId&&this.store.getState().map==null&&await this.loadDebouncer.run(()=>this.fetchData(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,i,n,a,s;try{e&&this.setTranslationLoading(!0);let c=p=>{throw e&&this.setTranslationError(!0),p};await Promise.all([this.loadConfiguration(),(r=this.service)===null||r===void 0?void 0:r.getMap(e).then(p=>this.store.actions.map(p)).catch(c),(i=this.service)===null||i===void 0?void 0:i.getToc(e).then(p=>this.store.actions.toc(p)).catch(c),(n=this.service)===null||n===void 0?void 0:n.getPagesToc(e).then(p=>this.store.actions.pagesToc(p)).catch(c),(a=this.service)===null||a===void 0?void 0:a.getPaginationConfiguration().then(p=>this.store.actions.paginationConfiguration(p)).catch(c),(s=this.service)===null||s===void 0?void 0:s.getTranslationError(e).then(p=>this.setTranslationError(p))]),this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives(),this._loaded=!0,e&&this.setTranslationLoading(!1)}catch(c){this.errorHandler&&!(c instanceof At.CanceledPromiseError)&&this.errorHandler(c)}}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 i=(e=this.store.getState().map)===null||e===void 0?void 0:e.metadata.filter(n=>{var a;return n.key==((a=this.store.getState().configuration)===null||a===void 0?void 0:a.relativePivotMetadata)}).flatMap(n=>n.values);i!==void 0&&i.length>0?(r=this.service)===null||r===void 0||r.getRelativesForDocument(this.store.getState().configuration.relativePivotMetadata,i).then(n=>{let a=n.results.flatMap(s=>s.entries);this.store.actions.relatives(a),this.updateClusteringHelper()}):this.updateClusteringHelper()}updateClusteringHelper(){this.clusteringHelper=this.createClusteringHelper(),this.clusteringHelper&&this.store.dispatchEvent(new Event(Eo.clusteringHelperCreated))}createClusteringHelper(){var e,r;if(this.clusteringHelperProvider)return this.clusteringHelperProvider();let i=this.store.getState().relatives;if(i){let n=i.find(s=>{var c;return((c=s.map)===null||c===void 0?void 0:c.mapId)==this.store.getState().mapId}),a=(r=(e=E.getState().metadataConfiguration)===null||e===void 0?void 0:e.descriptors)!==null&&r!==void 0?r:[];return new At.ClusteringHelper(i,n,this.metadataForSwitchToRelatives,a)}}async navigateToRelativeTopicIfFound(e){var r,i,n;await this.loaded();let a=await(0,At.waitFor)(()=>{var u;return(u=this.store.getState().configuration)===null||u===void 0?void 0:u.relativeTopicPivotMetadata}),s=this.store.getState().mapId,p=await(await this.awaitService()).getRelativesForTopicInMap(s,a,[e]);if(!((n=(i=(r=p?.results)===null||r===void 0?void 0:r[0])===null||i===void 0?void 0:i.entries)===null||n===void 0)&&n[0]){let u=p.results[0].entries[0].topic.tocId;return await this.navigateToTopic(u),!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.setLinkPreviewDialogId(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 i=await((r=this.service)===null||r===void 0?void 0:r.getTopicRating(e));i&&this.store.actions.setTopicsRating({[e]:i})}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,i){return this.service.getAccurateNavigationData(e,r?.number,i?.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,i;let n=this.getTranslationSettings();return n?(r=this.service)===null||r===void 0?void 0:r.getTranslatedTopicContent(e,n).then(a=>(a.isTranslationError&&this.setTranslationError(!0),a.content)):(i=this.service)===null||i===void 0?void 0:i.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(Eo.mapAttachmentsUpdate))}};var Fp=m($());var Up=Fp.css`
|
|
1971
|
-
`;var
|
|
1972
|
+
`:Te.nothing}update(e){super.update(e),(e.has("value")||e.has("filterSuggestions")||e.has("suggestionsProvider"))&&this.updateSuggestions(),e.has("value")&&e.get("value")!=null&&(this.hideSuggestions=!1),e.has("dispatchedValue")&&e.get("dispatchedValue")!=null&&(this.hideSuggestions=!0)}async updateSuggestions(){this.suggestionsProvider?this.providedSuggestions=await this.suggestionsProvider(this.value):this.filterSuggestionsIfNeeded()}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.slottedSuggestions.forEach(e=>e.hidden=!e.getValue().toLowerCase().includes(this.value.toLowerCase())),this.visibleSuggestions=this.slottedSuggestions.filter(e=>!e.hidden)):this.visibleSuggestions=this.slottedSuggestions,this.newValueSuggestion&&(this.visibleSuggestions=[...this.visibleSuggestions,this.newValueSuggestion]),this.hideSuggestions=this.visibleSuggestions.length<=0}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0&&this.setSuggestionPosition(),e.has("value")&&this.suggestionsProvider&&(this.visibleSuggestions=[...this.providedSuggestionsInDom]),e.has("autocomplete")&&this.setupWatchAutofill(),this.suggestionsShouldBeDisplayed()&&this.setSuggestionPosition()}setupWatchAutofill(){var e;this.clearWatchAutofill(),((e=this.autocomplete)!==null&&e!==void 0?e:"off")!=="off"&&(this.watchAutofillInterval=setInterval(()=>{var r,i,n;!((r=this.input)===null||r===void 0)&&r.matches(":autofill")&&this.dispatchedValue!==((i=this.input)===null||i===void 0?void 0:i.value)&&this.setValue((n=this.input)===null||n===void 0?void 0:n.value,!0)},200))}clearWatchAutofill(){this.watchAutofillInterval&&clearInterval(this.watchAutofillInterval)}connectedCallback(){super.connectedCallback(),this.setupWatchAutofill()}disconnectedCallback(){super.disconnectedCallback(),this.clearWatchAutofill()}setValue(e,r=!1){var i,n;this.value!==e&&(this.inputValid=!0,this.setInternalValue(e),this.dispatchEvent(new rn(e))),r&&this.dispatchedValue!==e&&(this.inputValid=(n=(i=this.input)===null||i===void 0?void 0:i.checkValidity())!==null&&n!==void 0?n:!0,this.inputValid?(this.dispatchedValue=e,this.dispatchEvent(new on(e))):this.dispatchEvent(new nn(this.input.validationMessage)))}handleInput(e){var r;let i=((r=this.input)===null||r===void 0?void 0:r.value)||"";this.setValue(i,e.key=="Escape"||e.key=="Enter")}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(e){var r;if(e.key==="ArrowDown"||e.key==="ArrowUp"){e.preventDefault(),e.stopPropagation(),this.hideSuggestions=!1;let i=this.visibleSuggestions.findIndex(a=>a.matches(":focus-within")),n;e.key==="ArrowDown"?n=i<this.visibleSuggestions.length-1?i+1:0:n=i>0?i-1:this.visibleSuggestions.length-1,(r=this.visibleSuggestions[n])===null||r===void 0||r.focus()}(e.key=="Escape"||e.key=="Enter")&&(this.hideSuggestions=!0)}onSuggestionSelected(e){var r;this.setValue(e.detail,!0),(r=this.input)===null||r===void 0||r.focus(),setTimeout(()=>this.hideSuggestions=!0,0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var e,r;!((e=this.mainPanel)===null||e===void 0)&&e.matches(":focus-within")||(this.focused=!1,this.setValue(((r=this.input)===null||r===void 0?void 0:r.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}isPasswordField(){return this.password||this.type==="password"}setSuggestionPosition(){this.suggestionsContainer.style.width=this.mainPanel.getBoundingClientRect().width+"px";let e=["bottom","top"];(0,br.computeOffsetAutoPosition)(this.mainPanel,this.suggestionsContainer,"bottom",e,"fixed","--text-field-internal-suggest-size",0).then(({x:r,y:i})=>{this.suggestionsContainer.style.left=`${r}px`,this.suggestionsContainer.style.top=`${i}px`})}suggestionsShouldBeDisplayed(){return!this.hideSuggestions&&(this.visibleSuggestions.length||this.providedSuggestions.length)}};B.elementDefinitions={"ft-input-label":nt,"ft-ripple":Z,"ft-typography":ue,"ft-icon":he,"ft-text-field-suggestion":yt};B.styles=[Zr,br.noTextInputDefaultClearButton,kp];V([(0,z.property)()],B.prototype,"label",void 0);V([(0,z.property)({noAccessor:!0})],B.prototype,"value",null);V([(0,z.state)()],B.prototype,"dispatchedValue",void 0);V([(0,z.property)()],B.prototype,"helper",void 0);V([(0,z.property)()],B.prototype,"suggestionsHelper",void 0);V([(0,z.property)({type:Boolean})],B.prototype,"outlined",void 0);V([(0,z.property)({type:Boolean})],B.prototype,"disabled",void 0);V([(0,z.property)({type:Boolean})],B.prototype,"error",void 0);V([(0,z.property)({type:Boolean})],B.prototype,"fixedMenuPosition",void 0);V([(0,z.property)()],B.prototype,"prefix",void 0);V([(0,z.property)()],B.prototype,"icon",void 0);V([(0,z.property)()],B.prototype,"name",void 0);V([(0,z.property)()],B.prototype,"type",void 0);V([(0,z.property)()],B.prototype,"passwordHiddenIcon",void 0);V([(0,z.property)()],B.prototype,"passwordRevealedIcon",void 0);V([(0,z.property)()],B.prototype,"iconVariant",void 0);V([(0,z.property)({type:Boolean})],B.prototype,"filterSuggestions",void 0);V([(0,z.property)({type:Number})],B.prototype,"maxLength",void 0);V([(0,z.property)({type:Boolean})],B.prototype,"password",void 0);V([(0,z.property)({type:String})],B.prototype,"autocomplete",void 0);V([(0,z.property)({attribute:!1})],B.prototype,"suggestionsProvider",void 0);V([(0,z.state)()],B.prototype,"focused",void 0);V([(0,z.state)()],B.prototype,"inputValid",void 0);V([(0,z.state)()],B.prototype,"hidePassword",void 0);V([(0,z.state)()],B.prototype,"hideSuggestions",void 0);V([(0,z.state)()],B.prototype,"visibleSuggestions",void 0);V([(0,z.state)()],B.prototype,"providedSuggestions",void 0);V([(0,z.query)(".ft-text-field--main-panel")],B.prototype,"mainPanel",void 0);V([(0,z.query)(".ft-text-field--input")],B.prototype,"input",void 0);V([(0,z.query)(".ft-text-field-suggestion--new-value")],B.prototype,"newValueSuggestion",void 0);V([(0,z.query)(".ft-text-field--suggestions")],B.prototype,"suggestionsContainer",void 0);V([(0,z.queryAll)("ft-text-field-suggestion")],B.prototype,"providedSuggestionsInDom",void 0);V([(0,z.queryAssignedElements)({selector:"ft-text-field-suggestion"})],B.prototype,"slottedSuggestions",void 0);(0,vs.customElement)("ft-text-field")(B);(0,vs.customElement)("ft-text-field-suggestion")(yt);var Gp=m(R());var Qo=m($()),xr=m(K()),Je=m(R());var At=m(R());var Up=m(R()),Tf={setTranslationDestinationLanguage:(t,e)=>{t.translation.destinationLanguage=e.payload},setTranslationSourceLanguage:(t,e)=>{t.translation.sourceLanguage=e.payload},setTranslationProfileId:(t,e)=>{t.translation.profileId=e.payload},setTranslationLoading:(t,e)=>{t.translation.isLoading=e.payload},setTranslationError:(t,e)=>{t.translation.isError=e.payload},setTopicsRating:(t,e)=>{for(let r in e.payload)t.topicsRating[r]=e.payload[r]},setLinkPreviewDialogId:(t,e)=>{t.linkPreviewDialogId=e.payload}},zp=t=>Up.FtReduxStore.get({name:"ft-reader-"+t,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:Tf});var Ss=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,i){return e.flatMap(n=>{var a;return n.pageConfiguration&&this.registerPage(this.buildPage(n,i)),n.tocId==null?this.extractPagesToc(n.children,r,i):[{tocId:n.tocId,title:(a=n.title)!==null&&a!==void 0?a:"",untranslatedTitle:n.untranslatedTitle,depth:r,children:this.extractPagesToc(n.children,r+1,n.tocId)}]})}convertNodes(e,r,i){return e.flatMap(n=>{var a,s,c;if(n.tocId==null)return[...this.convertSectionNodes((a=n.pageToc)!==null&&a!==void 0?a:[],r,n.tocId),...this.convertNodes(n.children,r,n.tocId)];let p=(s=n.prettyUrl)===null||s===void 0?void 0:s.replace(/^\//,""),u={tocId:n.tocId,contentId:n.contentId,title:n.title,untranslatedTitle:n.untranslatedTitle,hasRating:n.hasRating,origin:n.origin,prettyUrl:p,depth:r,parentTocId:i,children:[]};this.register(u);let h=this.convertSectionNodes((c=n.pageToc)!==null&&c!==void 0?c:[],r+1,n.tocId),g=this.convertNodes(n.children,r+1,u.tocId);return u.children=[...h,...g],[u]})}convertSectionNodes(e,r,i){return e.flatMap(n=>{var a;let s=(a=n.prettyUrl)===null||a===void 0?void 0:a.replace(/^\//,""),c={...n,prettyUrl:s,depth:r,parentTocId:i,children:[]};return this.register(c),c.children=this.convertSectionNodes(n.children,r+1,n.tocId),[c]})}buildPage(e,r){var i,n,a,s,c,p;let u={number:this.pages.length+1,title:(i=e.title)!==null&&i!==void 0?i:"",untranslatedTitle:e.untranslatedTitle,rootTocId:(n=e.tocId)!==null&&n!==void 0?n:"root",toc:((a=e.pageToc)!==null&&a!==void 0?a:[]).map(b=>this.nodeByTocId[b.tocId]),topics:[],hiddenTopics:[],breadcrumb:r?this.buildBreadcrumb(this.nodeByTocId[r]):[]},h=(b,x)=>(x?u.topics:u.hiddenTopics).push(b),g=(c=(s=e.pageConfiguration)===null||s===void 0?void 0:s.parentsVisibility)!==null&&c!==void 0?c:[];return u.breadcrumb.forEach((b,x)=>{h(b,g[x])}),e.tocId&&h(e.tocId,e.pageConfiguration.isVisible),u.topics.push(...this.tocIds((p=e.pageToc)!==null&&p!==void 0?p:[])),u}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}},an=class{convertPaginatedToc(e,r){return new Ss(e,r).build()}};var sn=class extends je{get mapId(){return this._mapId}set mapId(e){e!==this._mapId&&this.clear(),this._mapId=e}constructor(e,r,i){super(!1,r),this.converter=e,this._mapId=i,this.initCache()}async withMapId(e){return this._mapId?e(this._mapId):void 0}initCache(){this.cache.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 zt((r=(e=E.getState().session)===null||e===void 0?void 0:e.profile.roles)!==null&&r!==void 0?r:[],"RATING_USER")?this.withMapId(n=>this.fetchMapRating(n)):Promise.resolve()})}clear(){this.cache.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 i;return(i=this.getEnrichedTocNow(r))===null||i===void 0?void 0:i.nodeByTocId[e]}getTocNodeNowByUrl(e,r){var i,n;let a=this.getMapNow(r);return a?.prettyUrl==e||`${a?.id}/root`===e?(i=this.getEnrichedTocNow(r))===null||i===void 0?void 0:i.toc[0]:(n=this.getEnrichedTocNow(r))===null||n===void 0?void 0:n.nodeByUrl[e]}async getPage(e,r){let i=await this.getEnrichedToc(r);return i.pages[e-1]||i.pages[0]}async getPageByTocId(e,r){let i=await this.getEnrichedToc(r);return i.pageByTocId[e]||i.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,i){return this.cache.get("topic-relatives-"+[e,r,...i].join("-"),()=>this.fetchRelativesForTopicInMap(e,r,i))}getAttachmentDownloadLink(e){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(e).content}?download=true&locationValue=reader`)}getLink(e,r,i){let n=this.getNavigationData(e,r,i),a=this.getReaderLinkPrefix()+(n.prettyUrl?n.prettyUrl:`${n.mapId}/${n.tocId}`),s=new URL(a,this.api.tenantBaseUrl);return n.page!=null&&s.searchParams.set("page",`${n.page}`),n.prettyUrlDuplicated&&s.searchParams.set("tocId",n.tocId),n.section!=null&&s.searchParams.set("section",n.section),s.href}getNavigationData(e,r,i,n){var a,s;e=e||"root";let c=this.getEnrichedTocNow(n),p=c?.pageByTocId[e],u=c?.nodeByTocId[e],h=u?.prettyUrl;return{mapId:this.mapId,tocId:e,topicTitle:(a=u?.title)!==null&&a!==void 0?a:"",untranslatedTopicTitle:u?.untranslatedTitle,page:r&&p&&p.number!==r?r:void 0,prettyUrl:h?.replace(/^r\//,""),prettyUrlDuplicated:(s=c?.duplicatedPrettyUrls.has(h??""))!==null&&s!==void 0?s:!1,section:i}}async getAccurateNavigationData(e,r,i,n){return await this.getEnrichedToc(n),this.getNavigationData(e,r,i,n)}getRatingSummary(){return this.cache.get("ratingSummary")}reloadRating(){return this.cache.clear("ratingSummary"),this.getRatingSummary()}getMapRating(){return this.getRatingSummary().then(e=>e?.publication)}getTopicRating(e){return this.getRatingSummary().then(r=>{var i;return r?{type:r.topics.type,rating:(i=r.topics)===null||i===void 0?void 0:i.ratings.find(n=>n.tocId===e)}:void 0})}rateMap(e,r){return this.makeRateMapRequest(e,r).then(()=>this.clearRatingIfNecessary())}unrateMap(){return this.makeUnrateMapRequest().then(()=>this.clearRatingIfNecessary())}sendMapFeedback(e,r){return this.makeMapFeedbackRequest(e,r)}rateTopic(e,r,i){return this.makeRateTopicRequest(e,r,i).then(()=>this.clearRatingIfNecessary())}unrateTopic(e){return this.makeUnrateTopicRequest(e).then(()=>this.clearRatingIfNecessary())}async clearRatingIfNecessary(){let e=E.getState().session;e?.sessionAuthenticated&&this.cache.clear("ratingSummary")}sendTopicFeedback(e,r,i){return this.makeTopicFeedbackRequest(e,r,i)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(e,r){let i=this.getTocNodeNow(e,r),n=[{tocId:i.tocId,title:i.title,untranslatedTitle:i.untranslatedTitle}],a=this.getTocNodeNow(i.parentTocId,r);for(;a;)n.unshift({tocId:a.tocId,title:a.title,untranslatedTitle:a.untranslatedTitle}),a=this.getTocNodeNow(a.parentTocId,r);return n}isFeatureAccessible(e,{session:r}){var i;if(!this.isFeatureAvailable(e))return!1;switch(e){case at.FEEDBACK:return zt(r??[],re.FEEDBACK_USER);case at.RATING:return zt(r??[],re.RATING_USER);case at.PRINT:return zt(r??[],re.PRINT_USER);case at.BOOKMARK:return!!r?.sessionAuthenticated;case at.COLLECTIONS:return zt(r??[],re.COLLECTION_USER);case at.PERSONAL_BOOKS:return zt(r??[],re.PERSONAL_BOOK_USER)&&!(!((i=this.getMapNow())===null||i===void 0)&&i.pbkConfidential);default:return!1}}makeAbsolute(e){return this.api.makeAbsolute(e)}};var ln=class t extends sn{static async build(e){return new t(new an,void 0,e)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(e,r){let i=await this.api.getMap(e,r);return this.fingerprint=i.fingerprint,i}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 i={query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",metadataFilters:[{key:e,valueFilter:{negative:!1,values:r}}],sort:[],facets:[]};return this.api.search(i)}fetchRelativesForTopicInMap(e,r,i){let n={query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",metadataFilters:[{key:r,valueFilter:{negative:!1,values:i}},{key:"ft:publicationId",valueFilter:{negative:!1,values:[e]}}],sort:[],facets:[]};return this.api.search(n)}makeMapFeedbackRequest(e,r){return this.api.sendMapFeedback(this.mapId,e,r)}makeRateMapRequest(e,r){return this.api.rateMap(this.mapId,e,r)}makeRateTopicRequest(e,r,i){return this.api.rateTopic(this.mapId,e,r,i)}makeTopicFeedbackRequest(e,r,i){return this.api.sendTopicFeedback(this.mapId,e,r,i)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(e){return this.api.unrateTopic(this.mapId,e)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(e){return!0}};var cn=class t{static build(e,r){return new t(zp(e.trim()||"context"),r??ln.build)}loaded(){return(0,At.waitUntil)(()=>this._loaded)}constructor(e,r,i){this.store=e,this.clusteringHelperProvider=i,this.metadataForSwitchToRelatives=new Set,this._loaded=!1,this.loadDebouncer=new At.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,At.waitFor)(()=>this.service)}async navigateToTopic(e,r,i){await this.loaded();let n=await this.awaitService(),a=await(i!=null?n.getPage(i,this.getTranslationSettings()):n.getPageByTocId(e??"root",this.getTranslationSettings()));this.store.actions.currentPage(a);let s=this.resolveValidNonRootTocId(e,a);this.store.actions.scrollTarget({tocId:s,section:r}),this.store.getState().visibleTopics[0]!==s&&this.store.actions.visibleTopics([])}resolveValidNonRootTocId(e,r){var i,n,a;let s=(i=e==="root"?void 0:e)!==null&&i!==void 0?i:r.rootTocId;return r.topics.includes(s)?s:(a=(n=r.topics[0])!==null&&n!==void 0?n:r.hiddenTopics[0])!==null&&a!==void 0?a:"root"}async navigateToPage(e){await this.loaded();let i=await(await this.awaitService()).getPage(e,this.getTranslationSettings());this.store.actions.currentPage(i)}scrollDone(){this.store.actions.scrollTarget({})}async load(){var e;!((e=this.service)===null||e===void 0)&&e.mapId&&this.store.getState().map==null&&await this.loadDebouncer.run(()=>this.fetchData(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,i,n,a,s;try{e&&this.setTranslationLoading(!0);let c=p=>{throw e&&this.setTranslationError(!0),p};await Promise.all([this.loadConfiguration(),(r=this.service)===null||r===void 0?void 0:r.getMap(e).then(p=>this.store.actions.map(p)).catch(c),(i=this.service)===null||i===void 0?void 0:i.getToc(e).then(p=>this.store.actions.toc(p)).catch(c),(n=this.service)===null||n===void 0?void 0:n.getPagesToc(e).then(p=>this.store.actions.pagesToc(p)).catch(c),(a=this.service)===null||a===void 0?void 0:a.getPaginationConfiguration().then(p=>this.store.actions.paginationConfiguration(p)).catch(c),(s=this.service)===null||s===void 0?void 0:s.getTranslationError(e).then(p=>this.setTranslationError(p))]),this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives(),this._loaded=!0,e&&this.setTranslationLoading(!1)}catch(c){this.errorHandler&&!(c instanceof At.CanceledPromiseError)&&this.errorHandler(c)}}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 i=(e=this.store.getState().map)===null||e===void 0?void 0:e.metadata.filter(n=>{var a;return n.key==((a=this.store.getState().configuration)===null||a===void 0?void 0:a.relativePivotMetadata)}).flatMap(n=>n.values);i!==void 0&&i.length>0?(r=this.service)===null||r===void 0||r.getRelativesForDocument(this.store.getState().configuration.relativePivotMetadata,i).then(n=>{let a=n.results.flatMap(s=>s.entries);this.store.actions.relatives(a),this.updateClusteringHelper()}):this.updateClusteringHelper()}updateClusteringHelper(){this.clusteringHelper=this.createClusteringHelper(),this.clusteringHelper&&this.store.dispatchEvent(new Event(Eo.clusteringHelperCreated))}createClusteringHelper(){var e,r;if(this.clusteringHelperProvider)return this.clusteringHelperProvider();let i=this.store.getState().relatives;if(i){let n=i.find(s=>{var c;return((c=s.map)===null||c===void 0?void 0:c.mapId)==this.store.getState().mapId}),a=(r=(e=E.getState().metadataConfiguration)===null||e===void 0?void 0:e.descriptors)!==null&&r!==void 0?r:[];return new At.ClusteringHelper(i,n,this.metadataForSwitchToRelatives,a)}}async navigateToRelativeTopicIfFound(e){var r,i,n;await this.loaded();let a=await(0,At.waitFor)(()=>{var u;return(u=this.store.getState().configuration)===null||u===void 0?void 0:u.relativeTopicPivotMetadata}),s=this.store.getState().mapId,p=await(await this.awaitService()).getRelativesForTopicInMap(s,a,[e]);if(!((n=(i=(r=p?.results)===null||r===void 0?void 0:r[0])===null||i===void 0?void 0:i.entries)===null||n===void 0)&&n[0]){let u=p.results[0].entries[0].topic.tocId;return await this.navigateToTopic(u),!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.setLinkPreviewDialogId(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 i=await((r=this.service)===null||r===void 0?void 0:r.getTopicRating(e));i&&this.store.actions.setTopicsRating({[e]:i})}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,i){return this.service.getAccurateNavigationData(e,r?.number,i?.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,i;let n=this.getTranslationSettings();return n?(r=this.service)===null||r===void 0?void 0:r.getTranslatedTopicContent(e,n).then(a=>(a.isTranslationError&&this.setTranslationError(!0),a.content)):(i=this.service)===null||i===void 0?void 0:i.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(Eo.mapAttachmentsUpdate))}};var Hp=m($());var Wp=Hp.css`
|
|
1973
|
+
`;var dn=class extends CustomEvent{constructor(e,r){super("ft-reader-map-loaded",{detail:{map:e,toc:r}})}},pn=class extends CustomEvent{constructor(e,r){super("ft-reader-visible-topics-change",{detail:{visibleTopics:r}})}},un=class extends CustomEvent{constructor(e){super("ft-reader-navigation-done",{detail:e})}},fn=class extends CustomEvent{constructor(e){super("ft-reader-load-error",{detail:e})}},hn=class extends Event{constructor(){super("ft-reader-map-not-found")}},gn=class extends Event{constructor(){super("ft-reader-map-unauthorized")}},yn=class extends Event{constructor(){super("ft-reader-map-forbidden")}},mn=class extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}};var bn=class{constructor(e){this.stateManager=e}searchInDocument(e){this.stateManager.setSearchInDocumentQuery(e??"")}};var et=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Rf=t=>e=>+(e??"NaN")>0?+e:t,Re=class extends Je.FtLitElementRedux{constructor(){super(),this.visibleTopics=[],this.updateConfiguration=()=>{this.stateManager.reloadConfiguration()},this.scrollToTargetDebouncer=new Je.Debouncer(5),this.navigationDebouncer=new Je.Debouncer(10),this.mapLoadedEventDebouncer=new Je.Debouncer(50),this.addStore(E)}render(){return Qo.html`
|
|
1972
1974
|
${this.importStyleIfNeeded()}
|
|
1973
1975
|
<slot @register-ft-reader-component=${this.registerComponent}></slot>
|
|
1974
1976
|
`}importStyleIfNeeded(){var e,r;let i=(e=this.stateManager.service)===null||e===void 0?void 0:e.themeStylesheet();return!i||window.location.href.startsWith((r=this.baseUrl)!==null&&r!==void 0?r:"")?Qo.nothing:Qo.html`
|
|
1975
1977
|
<style>
|
|
1976
1978
|
@import "${i}"
|
|
1977
1979
|
</style>
|
|
1978
|
-
`}get stateManager(){return this._stateManager==null&&(this._stateManager=
|
|
1980
|
+
`}get stateManager(){return this._stateManager==null&&(this._stateManager=cn.build(this.id||(""+Math.round(Math.random()*999e3)).padStart(6,"0"),this.readerServiceProvider),this._stateManager.errorHandler=e=>this.handleLoadError(e),this.addStore(this.stateManager.store,"reader")),this._stateManager}connectedCallback(){super.connectedCallback(),this.stateManager.setMapId(this.mapId),this.stateManager.awaitService().then(e=>{let r=e.fontsStylesheet();if(r&&!window.location.href.startsWith(this.baseUrl)&&!document.querySelector(`head link[href="${r}"]`)){let i=document.createElement("link");i.setAttribute("rel","stylesheet"),i.setAttribute("href",r),document.head.append(i)}window.FluidTopicsReaderService=new bn(this.stateManager)}),E.addEventListener(kt.eventName,this.updateConfiguration)}disconnectedCallback(){super.disconnectedCallback(),E.addEventListener(kt.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,i;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 n=e.get("scrollTarget");n?.tocId!=null&&this.scrollToTargetDebouncer.run(()=>this.stateManager.getAccurateNavigationData(n.tocId,this.currentPage,n).then(a=>this.dispatchEvent(new un(a))))}(e.has("visibleTopics")||e.has("scrollTarget"))&&((i=this.scrollTarget)===null||i===void 0?void 0:i.tocId)==null&&Promise.all(this.visibleTopics.map(n=>this.stateManager.getAccurateNavigationData(n,this.currentPage))).then(n=>{let a=n.filter(s=>s!=null&&s.topicTitle!=="").map(s=>({tocId:s.tocId,title:s.topicTitle,page:s.page,prettyUrl:s.prettyUrl,prettyUrlDuplicated:s.prettyUrlDuplicated,breadcrumb:this.stateManager.buildBreadcrumb(s.tocId)}));this.dispatchEvent(new pn(this.map,a))})}clear(){this.stateManager.clear()}async reload(){await this.stateManager.reload()}async navigateToTarget(){await this.stateManager.loaded(),await this.navigationDebouncer.run(async()=>{this.topicPivot!=null?!await this.stateManager.navigateToRelativeTopicIfFound(this.topicPivot)&&this.lastNotifiedNotFoundRelative!==this.mapId+this.topicPivot?(this.dispatchEvent(new mn),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 gn):r.status===403?this.dispatchEvent(new yn):r.status===404?this.dispatchEvent(new hn):this.dispatchEvent(new fn(e))}reloadBookmarks(){ns.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 dn(this.map,this.toc))})}};Re.styles=Wp;et([(0,Je.redux)({store:E.name})],Re.prototype,"baseUrl",void 0);et([(0,Je.redux)({store:E.name})],Re.prototype,"session",void 0);et([(0,xr.property)()],Re.prototype,"mapId",void 0);et([(0,xr.property)()],Re.prototype,"tocId",void 0);et([(0,xr.property)()],Re.prototype,"section",void 0);et([(0,xr.property)()],Re.prototype,"topicPivot",void 0);et([(0,xr.property)()],Re.prototype,"searchInDocumentQuery",void 0);et([(0,xr.property)({type:Number,converter:{fromAttribute:Rf()}})],Re.prototype,"page",void 0);et([(0,Je.redux)({store:"reader"})],Re.prototype,"map",void 0);et([(0,Je.redux)({store:"reader"})],Re.prototype,"toc",void 0);et([(0,Je.redux)({store:"reader"})],Re.prototype,"visibleTopics",void 0);et([(0,Je.redux)({store:"reader"})],Re.prototype,"currentPage",void 0);et([(0,Je.redux)({store:"reader"})],Re.prototype,"scrollTarget",void 0);et([(0,xr.property)({attribute:!1})],Re.prototype,"readerServiceProvider",void 0);(0,Gp.customElement)("ft-reader-context")(Re);var xn=class extends CustomEvent{constructor(e){super("send-feedback",{detail:e})}},vn=class extends CustomEvent{constructor(e){super("ft-reader-topic-feedback",{composed:!0,bubbles:!0,detail:e})}},Sn=class extends CustomEvent{constructor(e){super("ft-reader-feedback",{composed:!0,bubbles:!0,detail:e})}},Cn=class extends CustomEvent{constructor(e){super("ft-reader-mailer-topic-feedback",{composed:!0,bubbles:!0,detail:{topic:e}})}},On=class extends CustomEvent{constructor(){super("ft-reader-mailer-map-feedback",{composed:!0,bubbles:!0})}};var Ie=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},J=class extends fr(Qt){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.ratingAllowed=!1,this.from="",this.feedbackMessage="",this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.addI18nContext(j,Lp)}get canAccessFeedback(){var e;return(e=this.service)===null||e===void 0?void 0:e.isFeatureAccessible(at.FEEDBACK,{session:this.session})}get canRateThisContent(){var e;return((e=this.service)===null||e===void 0?void 0:e.isFeatureAccessible(at.RATING,{session:this.session}))&&this.ratingAllowed&&this.configuredRatingType!=ve.NO_RATING}get configuredRatingType(){var e,r;return(r=(e=this.ratingSummary)===null||e===void 0?void 0:e.type)!==null&&r!==void 0?r:ve.NO_RATING}get ratingTypeOfDoneRatingOfThisContent(){var e,r,i;return(i=(r=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||r===void 0?void 0:r.type)!==null&&i!==void 0?i:ve.NO_RATING}get ratingValue(){var e,r,i;return(i=(r=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||r===void 0?void 0:r.value)!==null&&i!==void 0?i:-1}get ratingDate(){var e,r;let i=(r=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||r===void 0?void 0:r.date;return typeof i=="string"?(0,wn.parseDate)(i):i}render(){return!this.canAccessFeedback&&!this.canRateThisContent?me.nothing:me.html`
|
|
1979
1981
|
<div class="ft-reader-feedback">
|
|
1980
1982
|
${this.hideTitle?me.nothing:me.html`
|
|
1981
1983
|
<ft-typography variant="title" part="main-title">
|
|
@@ -1995,11 +1997,11 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1995
1997
|
${this.renderRatingDate()}
|
|
1996
1998
|
</ft-typography>
|
|
1997
1999
|
</div>
|
|
1998
|
-
`:me.nothing}renderRatingDate(){let e=this.ratingDate;if(e==null)return
|
|
2000
|
+
`:me.nothing}renderRatingDate(){let e=this.ratingDate;if(e==null)return j.messages.notRated();if(e.getTime()>new Date().getTime()-6e4)return j.messages.ratedNow();let r=new Date().toLocaleDateString(),i=e.toLocaleDateString();return r===i?j.messages.ratedToday():j.messages.ratedOn(e)}renderRating(){switch(this.configuredRatingType){case ve.STARS:return me.html`
|
|
1999
2001
|
<div class="ft-reader-feedback--stars" part="rating rating-stars">
|
|
2000
|
-
${(0,
|
|
2002
|
+
${(0,Vp.repeat)(new Array(5),(a,s)=>s,(a,s)=>{let c=this.ratingTypeOfDoneRatingOfThisContent===ve.STARS&&this.ratingValue>s,p=s+1;return me.html`
|
|
2001
2003
|
<ft-button round part="rating-stars-${p}"
|
|
2002
|
-
label="${
|
|
2004
|
+
label="${j.messages.starsRating(p)}"
|
|
2003
2005
|
tooltipPosition="top"
|
|
2004
2006
|
.iconVariant=${this.iconVariant}
|
|
2005
2007
|
icon="${c?this.filledStarIcon:this.emptyStarIcon}"
|
|
@@ -2018,14 +2020,14 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2018
2020
|
.iconVariant=${this.iconVariant}
|
|
2019
2021
|
icon="${r?this.filledLikeIcon:this.emptyLikeIcon}"
|
|
2020
2022
|
role="radio">
|
|
2021
|
-
${
|
|
2023
|
+
${j.messages.like()}
|
|
2022
2024
|
</ft-switch-option>
|
|
2023
2025
|
<ft-switch-option .value=${0}
|
|
2024
2026
|
?selected=${e}
|
|
2025
2027
|
.iconVariant=${this.iconVariant}
|
|
2026
2028
|
icon="${e?this.filledDislikeIcon:this.emptyDislikeIcon}"
|
|
2027
2029
|
role="radio">
|
|
2028
|
-
${
|
|
2030
|
+
${j.messages.dislike()}
|
|
2029
2031
|
</ft-switch-option>
|
|
2030
2032
|
</ft-switch>
|
|
2031
2033
|
`;case ve.DICHOTOMOUS:let i=this.ratingTypeOfDoneRatingOfThisContent===ve.DICHOTOMOUS&&this.ratingValue===0,n=this.ratingTypeOfDoneRatingOfThisContent===ve.DICHOTOMOUS&&this.ratingValue===1;return me.html`
|
|
@@ -2034,11 +2036,11 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2034
2036
|
part="rating rating-dichotomous">
|
|
2035
2037
|
<ft-switch-option .value=${1}
|
|
2036
2038
|
?selected=${n}>
|
|
2037
|
-
${
|
|
2039
|
+
${j.messages.dichotomousYes()}
|
|
2038
2040
|
</ft-switch-option>
|
|
2039
2041
|
<ft-switch-option .value=${0}
|
|
2040
2042
|
?selected=${i}>
|
|
2041
|
-
${
|
|
2043
|
+
${j.messages.dichotomousNo()}
|
|
2042
2044
|
</ft-switch-option>
|
|
2043
2045
|
</ft-switch>
|
|
2044
2046
|
`}return me.nothing}rate(e){(e??-1)!==this.ratingValue&&this.dispatchEvent(new CustomEvent("rate",{detail:e}))}renderFeedbackSection(){var e,r,i,n,a;if(this.canAccessFeedback){let s=this.feedbackMailLinkBuilder(this.feedbackMessage),c=me.html`
|
|
@@ -2047,7 +2049,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2047
2049
|
class="ft-reader-feedback--send-feedback"
|
|
2048
2050
|
?disabled=${!this.feedbackMessage||!this.validFromEmail()}
|
|
2049
2051
|
part="send-feedback">
|
|
2050
|
-
${
|
|
2052
|
+
${j.messages.okButton()}
|
|
2051
2053
|
</ft-button>
|
|
2052
2054
|
`;s&&(c=me.html`
|
|
2053
2055
|
<a class="ft-reader-feedback--feedback-link" href="${s}">
|
|
@@ -2059,7 +2061,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2059
2061
|
class="ft-reader-feedback--more-options"
|
|
2060
2062
|
@click="${this.onOpenMoreDetails}"
|
|
2061
2063
|
part="more-options">
|
|
2062
|
-
${
|
|
2064
|
+
${j.messages.moreOptionsButton()}
|
|
2063
2065
|
</ft-button>
|
|
2064
2066
|
`:me.nothing;return me.html`
|
|
2065
2067
|
<form class="ft-reader-feedback--feedback" part="feedback-container" autocomplete="on"
|
|
@@ -2070,15 +2072,15 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2070
2072
|
${((n=(i=this.session)===null||i===void 0?void 0:i.profile)===null||n===void 0?void 0:n.userId)==null&&(!((a=this.configuration)===null||a===void 0)&&a.mailsSentByFluidTopicsForUnauthenticatedUsers)?me.html`
|
|
2071
2073
|
<ft-text-field outlined name="email" type="email" autocomplete="email"
|
|
2072
2074
|
class="ft-reader-feedback--from-input"
|
|
2073
|
-
label=${
|
|
2075
|
+
label=${j.messages.feedbackfromEmail()}
|
|
2074
2076
|
@change=${u=>this.from=u.detail.trim()}
|
|
2075
2077
|
?error=${this.from&&!this.validFromEmail()}
|
|
2076
|
-
helper=${this.from&&!this.validFromEmail()?
|
|
2078
|
+
helper=${this.from&&!this.validFromEmail()?j.messages.feedbackfromEmailInvalid():""}
|
|
2077
2079
|
/>
|
|
2078
2080
|
`:me.nothing}
|
|
2079
2081
|
<ft-text-area outlined
|
|
2080
2082
|
class="ft-reader-feedback--feedback-input" part="feedback-input"
|
|
2081
|
-
label="${
|
|
2083
|
+
label="${j.messages.feedbackInputLabel()}"
|
|
2082
2084
|
@live-change=${u=>this.feedbackMessage=u.detail.trim()}
|
|
2083
2085
|
></ft-text-area>
|
|
2084
2086
|
<div part="buttons-container">
|
|
@@ -2086,7 +2088,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2086
2088
|
${c}
|
|
2087
2089
|
</div>
|
|
2088
2090
|
</form>
|
|
2089
|
-
`}return me.nothing}onFormSubmitEvent(e,r){e.preventDefault(),r?this.onMailerFeedbackSent():this.sendFeedback()}validFromEmail(){var e,r,i;let n=/^[a-zA-Z0-9_+&*-]+(?:\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/;return!(((r=(e=this.session)===null||e===void 0?void 0:e.profile)===null||r===void 0?void 0:r.userId)==null&&(!((i=this.configuration)===null||i===void 0)&&i.mailsSentByFluidTopicsForUnauthenticatedUsers))||n.test(this.from)}sendFeedback(){var e;this.dispatchEvent(new
|
|
2091
|
+
`}return me.nothing}onFormSubmitEvent(e,r){e.preventDefault(),r?this.onMailerFeedbackSent():this.sendFeedback()}validFromEmail(){var e,r,i;let n=/^[a-zA-Z0-9_+&*-]+(?:\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/;return!(((r=(e=this.session)===null||e===void 0?void 0:e.profile)===null||r===void 0?void 0:r.userId)==null&&(!((i=this.configuration)===null||i===void 0)&&i.mailsSentByFluidTopicsForUnauthenticatedUsers))||n.test(this.from)}sendFeedback(){var e;this.dispatchEvent(new xn({message:this.feedbackInput.value,...((e=this.configuration)===null||e===void 0?void 0:e.mailsSentByFluidTopicsForUnauthenticatedUsers)&&{from:this.from}}))}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("mailer-feedback"))}onOpenMoreDetails(){this.dispatchEvent(new CustomEvent("open-more-options"))}clearFeedbackInput(){setTimeout(()=>this.feedbackInput.setValue("",!0),0)}};J.elementDefinitions={"ft-button":gt,"ft-typography":ue,"ft-switch":Ze,"ft-switch-option":ge,"ft-text-area":Me,"ft-text-field":B};J.styles=sl;Ie([(0,be.property)({type:Boolean})],J.prototype,"editorMode",void 0);Ie([(0,be.property)({type:Boolean})],J.prototype,"hideTitle",void 0);Ie([(0,be.property)({type:Boolean})],J.prototype,"withMoreOptionsButton",void 0);Ie([(0,be.property)({type:Boolean})],J.prototype,"ratingAllowed",void 0);Ie([(0,be.property)({attribute:!1})],J.prototype,"i18nProperties",void 0);Ie([(0,be.property)({attribute:!1})],J.prototype,"ratingSummary",void 0);Ie([(0,be.property)({attribute:!1})],J.prototype,"session",void 0);Ie([(0,be.query)(".ft-reader-feedback--feedback-input")],J.prototype,"feedbackInput",void 0);Ie([(0,be.state)()],J.prototype,"from",void 0);Ie([(0,be.state)()],J.prototype,"feedbackMessage",void 0);Ie([(0,be.property)()],J.prototype,"iconVariant",void 0);Ie([(0,be.property)()],J.prototype,"emptyStarIcon",void 0);Ie([(0,be.property)()],J.prototype,"filledStarIcon",void 0);Ie([(0,be.property)()],J.prototype,"emptyLikeIcon",void 0);Ie([(0,be.property)()],J.prototype,"filledLikeIcon",void 0);Ie([(0,be.property)()],J.prototype,"emptyDislikeIcon",void 0);Ie([(0,be.property)()],J.prototype,"filledDislikeIcon",void 0);Ie([(0,wn.redux)({store:"reader",selector:t=>{var e;return(e=t.configuration)===null||e===void 0?void 0:e.feedback}})],J.prototype,"configuration",void 0);Ie([(0,be.property)()],J.prototype,"feedbackMailLinkBuilder",void 0);var Oo=hr.fromGwt("server");var wo=class{constructor(){this.subject="",this.url="",this.subjectMetadata="",this.bodyMetadata="",this.isAuthenticated=!1}update(e,r,i,n,a){var s;this.subject=e,this.url=r,this.configuration=n,this.isAuthenticated=a,this.subjectMetadata=this.filterMetadata(i,n.subjectMetadataIds).map(c=>"["+c.values[c.values.length-1]+"]").join(""),this.bodyMetadata=this.filterMetadata(i,(s=n.bodyMetadataIds)!==null&&s!==void 0?s:[]).map(c=>"["+c.values.join(", ")+"]").join(" ")}filterMetadata(e,r){return r.map(i=>e.find(n=>n.key===i)).filter(i=>i!=null&&i.values.length>0)}shouldUseMailer(){var e,r;let i=this.isAuthenticated&&!(!((e=this.configuration)===null||e===void 0)&&e.mailsSentByFluidTopics),n=!this.isAuthenticated&&!(!((r=this.configuration)===null||r===void 0)&&r.mailsSentByFluidTopicsForUnauthenticatedUsers);return i||n}build(e){var r;if(e!=null&&e.length===0||!this.shouldUseMailer())return;let i=encodeURIComponent(this.subject+" "+this.subjectMetadata),n=encodeURIComponent(`
|
|
2090
2092
|
${this.bodyMetadata}
|
|
2091
2093
|
${this.url}
|
|
2092
2094
|
_________________________________________________________________
|
|
@@ -2094,7 +2096,7 @@ _________________________________________________________________
|
|
|
2094
2096
|
${e??""}
|
|
2095
2097
|
|
|
2096
2098
|
_________________________________________________________________
|
|
2097
|
-
${Oo.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configuration)===null||r===void 0?void 0:r.recipients.join(",")}?subject=${i}&body=${n}`}};var vr=hr.build("inDesignerFeedbackComponent"),
|
|
2099
|
+
${Oo.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configuration)===null||r===void 0?void 0:r.recipients.join(",")}?subject=${i}&body=${n}`}};var vr=hr.build("inDesignerFeedbackComponent"),En={feedbackAndRatingDisabledInEditor:"Feedback and ratings performed here are not taken into account."};var $e=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},se=class extends fr(Qt){constructor(e=new co){super(),this.guestStorage=e,this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=Ue.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new wo,this.i18nProperties={feedbackMainTitle:j.properties.mapFeedbackMainTitle(),ratingSectionTitle:j.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:j.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:j.properties.mapFeedbackSectionTitle()},this.loadGuestRating=()=>{let r=this.guestStorage.get(this.guestRatingKey());r&&(this.ratingSummary=r)},this.guestRatingKey=()=>{var r;return"ft-reader-map-feedback-guest-rating-"+((r=this.map)===null||r===void 0?void 0:r.id)},this.sendRatingDebouncer=new He.Debouncer(500),this.addStore(E)}render(){return jp.html`
|
|
2098
2100
|
<ft-reader-feedback
|
|
2099
2101
|
ratingAllowed
|
|
2100
2102
|
.i18nProperties=${this.i18nProperties}
|
|
@@ -2112,11 +2114,11 @@ ${Oo.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
|
|
|
2112
2114
|
.filledDislikeIcon=${this.filledDislikeIcon}
|
|
2113
2115
|
.feedbackMailLinkBuilder=${e=>this.feedbackLinkBuilder.build(e)}
|
|
2114
2116
|
@rate=${this.rate}
|
|
2115
|
-
@send-feedback
|
|
2116
|
-
@mailer-feedback
|
|
2117
|
-
@open-more-options
|
|
2117
|
+
@send-feedback=${this.sendFeedback}
|
|
2118
|
+
@mailer-feedback=${this.onMailerFeedbackSent}
|
|
2119
|
+
@open-more-options=${this.openMoreOptions}
|
|
2118
2120
|
></ft-reader-feedback>
|
|
2119
|
-
`}willUpdate(e){var r,i,n,a,s;super.willUpdate(e),e.has("map")&&this.map&&((r=this.stateManager)===null||r===void 0||r.fetchMapRating()),e.has("editorMode")&&this.editorMode&&this.addI18nContext(vr,
|
|
2121
|
+
`}willUpdate(e){var r,i,n,a,s;super.willUpdate(e),e.has("map")&&this.map&&((r=this.stateManager)===null||r===void 0||r.fetchMapRating()),e.has("editorMode")&&this.editorMode&&this.addI18nContext(vr,En),["map","configuration","user","mailSubject"].some(c=>e.has(c))&&this.map&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,(n=(i=this.service)===null||i===void 0?void 0:i.getLink())!==null&&n!==void 0?n:"",this.map.metadata,this.configuration,((s=(a=this.session)===null||a===void 0?void 0:a.profile)===null||s===void 0?void 0:s.userId)!=null),["session","map"].some(c=>e.has(c))&&this.session&&this.map&&this.loadGuestRating()}connectedCallback(){super.connectedCallback(),this.guestStorage.addStoreListener(this.guestRatingKey,this.loadGuestRating)}disconnectedCallback(){super.disconnectedCallback(),this.guestStorage.clearStoreListeners()}async fetchRatingSummary(){var e;await((e=this.stateManager)===null||e===void 0?void 0:e.fetchMapRating())}rate(e){this.ratingSummary&&(this.ratingSummary={...this.ratingSummary,rating:e.detail==null?void 0:{type:this.ratingSummary.type,value:e.detail,date:new Date}},this.guestStorage.store(this.guestRatingKey(),this.ratingSummary),this.sendRatingDebouncer.run(()=>this.sendRating(e.detail)))}async sendRating(e){var r,i,n,a;if(!this.editorMode&&this.ratingSummary){try{e==null?await((r=this.service)===null||r===void 0?void 0:r.unrateMap()):await((i=this.service)===null||i===void 0?void 0:i.rateMap((n=this.ratingSummary)===null||n===void 0?void 0:n.type,e))}catch{this.dispatchEvent(new He.FtNotificationEvent({type:"error",message:j.messages.ratingFailure()}))}await((a=this.stateManager)===null||a===void 0?void 0:a.fetchMapRating())}else this.editorMode&&this.dispatchEvent(new He.FtNotificationEvent({type:"info",message:vr.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(e){var r;try{this.editorMode?this.dispatchEvent(new He.FtNotificationEvent({type:"info",message:vr.messages.feedbackAndRatingDisabledInEditor()})):(await((r=this.service)===null||r===void 0?void 0:r.sendMapFeedback(e.detail.message,e.detail.from)),this.dispatchEvent(new He.FtNotificationEvent({type:"info",message:j.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new He.FtNotificationEvent({type:"error",message:j.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new On)}openMoreOptions(){var e,r,i;this.dispatchEvent(new Sn({mapId:this.map.id,mapTitle:this.map.title,mapMetadata:((e=this.map)===null||e===void 0?void 0:e.metadata)||[],ratingType:((r=this.ratingSummary)===null||r===void 0?void 0:r.type)||ve.NO_RATING,ratingValue:(i=this.ratingSummary)===null||i===void 0?void 0:i.rating}))}};se.elementDefinitions={"ft-reader-feedback":J};se.storedRatingIfAuthenticated=(t,e)=>{var r,i;return!((r=e.session)===null||r===void 0)&&r.sessionAuthenticated?t.mapRating:(i=e.ratingSummary)!==null&&i!==void 0?i:t.mapRating};$e([(0,He.redux)({store:E.name})],se.prototype,"session",void 0);$e([(0,He.redux)({store:"reader"})],se.prototype,"map",void 0);$e([(0,He.redux)({store:E.name})],se.prototype,"editorMode",void 0);$e([(0,He.redux)({store:"reader",selector:t=>{var e;return(e=t.configuration)===null||e===void 0?void 0:e.feedback}})],se.prototype,"configuration",void 0);$e([(0,He.redux)({store:"reader",selector:se.storedRatingIfAuthenticated})],se.prototype,"ratingSummary",void 0);$e([(0,mt.property)({type:Boolean})],se.prototype,"hideTitle",void 0);$e([(0,mt.property)({type:Boolean})],se.prototype,"withMoreOptionsButton",void 0);$e([(0,mt.property)()],se.prototype,"iconVariant",void 0);$e([(0,mt.property)()],se.prototype,"emptyStarIcon",void 0);$e([(0,mt.property)()],se.prototype,"filledStarIcon",void 0);$e([(0,mt.property)()],se.prototype,"emptyLikeIcon",void 0);$e([(0,mt.property)()],se.prototype,"filledLikeIcon",void 0);$e([(0,mt.property)()],se.prototype,"emptyDislikeIcon",void 0);$e([(0,mt.property)()],se.prototype,"filledDislikeIcon",void 0);$e([(0,mt.query)("ft-reader-feedback")],se.prototype,"readerFeedback",void 0);$e([Gi(Oo.properties["mail.map_feedback.subject"](t=>{var e;return[(e=t.map)===null||e===void 0?void 0:e.title]}))],se.prototype,"mailSubject",void 0);$e([(0,He.reduxEventListener)({eventName:"rating-changed"})],se.prototype,"fetchRatingSummary",null);var Zp=m($()),bt=m(K()),We=m(R());var An=m(K()),Kp=m(R());var Cs=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ws=class extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}},Os=Symbol("registerInterval"),If=(0,Kp.applyMixinOnce)(Symbol("toFtReaderTopicComponent"),function(t){var e;class r extends t{constructor(){super(...arguments),this.disableContextInteractions=!1,this.headingLevelsShift=0,this[e]=0}connectedCallback(){super.connectedCallback(),this[Os]=window.setInterval(()=>this.tryToRegisterToTopicContext(),50)}tryToRegisterToTopicContext(){this.tocNode!=null?window.clearInterval(this[Os]):this.dispatchEvent(new ws)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return e=Os,Cs([(0,An.state)()],r.prototype,"tocNode",void 0),Cs([(0,An.state)()],r.prototype,"disableContextInteractions",void 0),Cs([(0,An.state)()],r.prototype,"headingLevelsShift",void 0),r}),Tn=class extends If(Qt){};var Be=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},le=class extends fr(Tn){constructor(e=new co){super(),this.guestStorage=e,this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=Ue.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new wo,this.i18nProperties={feedbackMainTitle:j.properties.topicFeedbackMainTitle(),ratingSectionTitle:j.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:j.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:j.properties.topicFeedbackSectionTitle()},this.loadGuestRating=()=>{let r=this.guestStorage.get(this.guestRatingKey());r&&(this.ratingSummary=r)},this.guestRatingKey=()=>{var r;return"ft-reader-topic-feedback-guest-rating-"+((r=this.tocNode)===null||r===void 0?void 0:r.tocId)},this.sendRatingDebouncer=new We.Debouncer(500),this.addStore(E)}render(){var e;return Zp.html`
|
|
2120
2122
|
<ft-reader-feedback
|
|
2121
2123
|
.i18nProperties=${this.i18nProperties}
|
|
2122
2124
|
?ratingAllowed=${(e=this.tocNode)===null||e===void 0?void 0:e.hasRating}
|
|
@@ -2134,11 +2136,11 @@ ${Oo.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
|
|
|
2134
2136
|
.filledDislikeIcon=${this.filledDislikeIcon}
|
|
2135
2137
|
.feedbackMailLinkBuilder=${r=>this.feedbackLinkBuilder.build(r)}
|
|
2136
2138
|
@rate=${this.rate}
|
|
2137
|
-
@send-feedback
|
|
2138
|
-
@mailer-feedback
|
|
2139
|
-
@open-more-options
|
|
2139
|
+
@send-feedback=${this.sendFeedback}
|
|
2140
|
+
@mailer-feedback=${this.onMailerFeedbackSent}
|
|
2141
|
+
@open-more-options=${this.openMoreOptions}
|
|
2140
2142
|
></ft-reader-feedback>
|
|
2141
|
-
`}willUpdate(e){var r,i,n,a,s;super.willUpdate(e),["tocNode","user"].some(c=>e.has(c))&&this.tocNode&&((r=this.stateManager)===null||r===void 0||r.fetchTopicRating(this.tocNode.tocId)),e.has("editorMode")&&this.editorMode&&this.addI18nContext(vr,
|
|
2143
|
+
`}willUpdate(e){var r,i,n,a,s;super.willUpdate(e),["tocNode","user"].some(c=>e.has(c))&&this.tocNode&&((r=this.stateManager)===null||r===void 0||r.fetchTopicRating(this.tocNode.tocId)),e.has("editorMode")&&this.editorMode&&this.addI18nContext(vr,En),["map","tocNode","configuration","user","mailSubject"].some(c=>e.has(c))&&this.map&&this.tocNode&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,(n=(i=this.service)===null||i===void 0?void 0:i.getLink(this.tocNode.tocId))!==null&&n!==void 0?n:"",this.map.metadata,this.configuration,((s=(a=this.session)===null||a===void 0?void 0:a.profile)===null||s===void 0?void 0:s.userId)!=null),["session","tocNode"].some(c=>e.has(c))&&this.session&&this.tocNode&&this.loadGuestRating()}connectedCallback(){super.connectedCallback(),this.guestStorage.addStoreListener(this.guestRatingKey,this.loadGuestRating)}disconnectedCallback(){super.disconnectedCallback(),this.guestStorage.clearStoreListeners()}async fetchRatingSummary(){var e;await((e=this.stateManager)===null||e===void 0?void 0:e.fetchTopicRating(this.tocNode.tocId))}rate(e){this.ratingSummary&&this.tocNode&&(this.ratingSummary={...this.ratingSummary,rating:e.detail==null?void 0:{tocId:this.tocNode.tocId,type:this.ratingSummary.type,value:e.detail,date:new Date}},this.guestStorage.store(this.guestRatingKey(),this.ratingSummary),this.sendRatingDebouncer.run(()=>this.sendRating(e.detail)))}async sendRating(e){var r,i,n,a;if(!this.editorMode&&this.ratingSummary&&this.tocNode){try{e==null?await((r=this.service)===null||r===void 0?void 0:r.unrateTopic(this.tocNode.tocId)):await((i=this.service)===null||i===void 0?void 0:i.rateTopic(this.tocNode.tocId,(n=this.ratingSummary)===null||n===void 0?void 0:n.type,e))}catch{this.dispatchEvent(new We.FtNotificationEvent({type:"error",message:j.messages.ratingFailure()}))}await((a=this.stateManager)===null||a===void 0?void 0:a.fetchTopicRating(this.tocNode.tocId))}else this.editorMode&&this.dispatchEvent(new We.FtNotificationEvent({type:"info",message:vr.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(e){var r;try{!this.editorMode&&this.tocNode?(await((r=this.service)===null||r===void 0?void 0:r.sendTopicFeedback(this.tocNode.tocId,e.detail.message,e.detail.from)),this.dispatchEvent(new We.FtNotificationEvent({type:"info",message:j.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new We.FtNotificationEvent({type:"info",message:vr.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new We.FtNotificationEvent({type:"error",message:j.messages.feedbackFailure()}))}}onMailerFeedbackSent(){let e=this.tocNode;this.dispatchEvent(new Cn(e))}openMoreOptions(){var e,r,i,n,a,s,c,p;this.dispatchEvent(new vn({mapId:this.map.id,mapTitle:this.map.title,tocId:this.tocNode.tocId,topicTitle:this.tocNode.title,topicUrl:(r=(e=this.service)===null||e===void 0?void 0:e.getLink(this.tocNode.tocId))!==null&&r!==void 0?r:"",mapMetadata:((i=this.map)===null||i===void 0?void 0:i.metadata)||[],breadcrumb:((a=(n=this.stateManager)===null||n===void 0?void 0:n.service)===null||a===void 0?void 0:a.buildBreadcrumb(this.tocNode.tocId))||[],ratingType:(!((s=this.tocNode)===null||s===void 0)&&s.hasRating?(c=this.ratingSummary)===null||c===void 0?void 0:c.type:ve.NO_RATING)||ve.NO_RATING,ratingValue:(p=this.ratingSummary)===null||p===void 0?void 0:p.rating}))}};le.elementDefinitions={"ft-reader-feedback":J};le.storedRatingIfAuthenticated=(t,e)=>{var r,i,n,a;let s=t.topicsRating[(i=(r=e.tocNode)===null||r===void 0?void 0:r.tocId)!==null&&i!==void 0?i:""];return!((n=e.session)===null||n===void 0)&&n.sessionAuthenticated?s:(a=e.ratingSummary)!==null&&a!==void 0?a:s};Be([(0,We.redux)({store:E.name})],le.prototype,"session",void 0);Be([(0,We.redux)({store:"reader"})],le.prototype,"map",void 0);Be([(0,We.redux)({store:E.name})],le.prototype,"editorMode",void 0);Be([(0,We.redux)({store:"reader",selector:t=>{var e;return(e=t.configuration)===null||e===void 0?void 0:e.feedback}})],le.prototype,"configuration",void 0);Be([(0,We.redux)({store:"reader",selector:le.storedRatingIfAuthenticated})],le.prototype,"ratingSummary",void 0);Be([(0,bt.property)({type:Boolean})],le.prototype,"hideTitle",void 0);Be([(0,bt.property)({type:Boolean})],le.prototype,"withMoreOptionsButton",void 0);Be([(0,bt.property)()],le.prototype,"iconVariant",void 0);Be([(0,bt.property)()],le.prototype,"emptyStarIcon",void 0);Be([(0,bt.property)()],le.prototype,"filledStarIcon",void 0);Be([(0,bt.property)()],le.prototype,"emptyLikeIcon",void 0);Be([(0,bt.property)()],le.prototype,"filledLikeIcon",void 0);Be([(0,bt.property)()],le.prototype,"emptyDislikeIcon",void 0);Be([(0,bt.property)()],le.prototype,"filledDislikeIcon",void 0);Be([(0,bt.query)("ft-reader-feedback")],le.prototype,"readerFeedback",void 0);Be([Gi(Oo.properties["mail.feedback.subject"](t=>{var e,r;return[(e=t.tocNode)===null||e===void 0?void 0:e.title,(r=t.map)===null||r===void 0?void 0:r.title]}))],le.prototype,"mailSubject",void 0);Be([(0,We.reduxEventListener)({eventName:"rating-changed"})],le.prototype,"fetchRatingSummary",null);(0,Es.customElement)("ft-reader-map-feedback")(se);(0,Es.customElement)("ft-reader-topic-feedback")(le);})();
|
|
2142
2144
|
/*! Bundled license information:
|
|
2143
2145
|
|
|
2144
2146
|
lit-html/lit-html.js:
|