@fluid-topics/ft-viewer 2.1.11 → 2.1.14
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-viewer.light.js +43 -43
- package/build/ft-viewer.min.js +93 -93
- package/package.json +7 -7
package/build/ft-viewer.light.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
"use strict";(()=>{var au=Object.create;var $o=Object.defineProperty;var lu=Object.getOwnPropertyDescriptor;var cu=Object.getOwnPropertyNames;var uu=Object.getPrototypeOf,du=Object.prototype.hasOwnProperty;var Pt=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}};var pu=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of cu(t))!du.call(e,i)&&i!==r&&$o(e,i,{get:()=>t[i],enumerable:!(n=lu(t,i))||n.enumerable});return e};var h=(e,t,r)=>(r=e!=null?au(uu(e)):{},pu(t||!e||!e.__esModule?$o(r,"default",{value:e,enumerable:!0}):r,e));var A=Pt((Fd,Ho)=>{Ho.exports=ftGlobals.wcUtils});var N=Pt((Wd,jo)=>{jo.exports=ftGlobals.litDecorators});var T=Pt((mp,Wo)=>{Wo.exports=ftGlobals.lit});var eo=Pt((Sv,Ka)=>{Ka.exports=ftGlobals.litRepeat});var mo=Pt((rg,Tl)=>{Tl.exports=ftGlobals.litUnsafeHTML});var ko=Pt((Ab,$c)=>{$c.exports=ftGlobals.litClassMap});var su=h(A());var Vo=h(A()),Fo=h(N());var ke=class extends Event{constructor(t,r,n,i){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=r,this.callback=n,this.subscribe=i??!1}};var Mt=class{constructor(t,r,n,i){if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(o,s)=>{this.unsubscribe&&(this.unsubscribe!==s&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=o,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(o,s)),this.unsubscribe=s},this.host=t,r.context!==void 0){let o=r;this.context=o.context,this.callback=o.callback,this.subscribe=o.subscribe??!1}else this.context=r,this.callback=n,this.subscribe=i??!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new ke(this.context,this.host,this.t,this.subscribe))}};var Yr=class{get value(){return this.o}set value(t){this.setValue(t)}setValue(t,r=!1){let n=r||!Object.is(t,this.o);this.o=t,n&&this.updateObservers()}constructor(t){this.subscriptions=new Map,this.updateObservers=()=>{for(let[r,{disposer:n}]of this.subscriptions)r(this.o,n)},t!==void 0&&(this.value=t)}addCallback(t,r,n){if(!n)return void t(this.value);this.subscriptions.has(t)||this.subscriptions.set(t,{disposer:()=>{this.subscriptions.delete(t)},consumerHost:r});let{disposer:i}=this.subscriptions.get(t);t(this.value,i)}clearCallbacks(){this.subscriptions.clear()}};var vi=class extends Event{constructor(t,r){super("context-provider",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=r}},Dt=class extends Yr{constructor(t,r,n){super(r.context!==void 0?r.initialValue:n),this.onContextRequest=i=>{if(i.context!==this.context)return;let o=i.contextTarget??i.composedPath()[0];o!==this.host&&(i.stopPropagation(),this.addCallback(i.callback,o,i.subscribe))},this.onProviderRequest=i=>{if(i.context!==this.context||(i.contextTarget??i.composedPath()[0])===this.host)return;let o=new Set;for(let[s,{consumerHost:a}]of this.subscriptions)o.has(s)||(o.add(s),a.dispatchEvent(new ke(this.context,a,s,!0)));i.stopPropagation()},this.host=t,r.context!==void 0?this.context=r.context:this.context=r,this.attachListeners(),this.host.addController?.(this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new vi(this.context,this.host))}};var xr=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=t=>{let r=this.pendingContextRequests.get(t.context);if(r===void 0)return;this.pendingContextRequests.delete(t.context);let{requests:n}=r;for(let{elementRef:i,callbackRef:o}of n){let s=i.deref(),a=o.deref();s===void 0||a===void 0||s.dispatchEvent(new ke(t.context,s,a,!0))}},this.onContextRequest=t=>{if(t.subscribe!==!0)return;let r=t.contextTarget??t.composedPath()[0],n=t.callback,i=this.pendingContextRequests.get(t.context);i===void 0&&this.pendingContextRequests.set(t.context,i={callbacks:new WeakMap,requests:[]});let o=i.callbacks.get(r);o===void 0&&i.callbacks.set(r,o=new WeakSet),o.has(n)||(o.add(n),i.requests.push({elementRef:new WeakRef(r),callbackRef:new WeakRef(n)}))}}attach(t){t.addEventListener("context-request",this.onContextRequest),t.addEventListener("context-provider",this.onContextProvider)}detach(t){t.removeEventListener("context-request",this.onContextRequest),t.removeEventListener("context-provider",this.onContextProvider)}};function br({context:e}){return(t,r)=>{let n=new WeakMap;if(typeof r=="object")return{get(){return t.get.call(this)},set(i){return n.get(this).setValue(i),t.set.call(this,i)},init(i){return n.set(this,new Dt(this,{context:e,initialValue:i})),i}};{t.constructor.addInitializer((s=>{n.set(s,new Dt(s,{context:e}))}));let i=Object.getOwnPropertyDescriptor(t,r),o;if(i===void 0){let s=new WeakMap;o={get(){return s.get(this)},set(a){n.get(this).setValue(a),s.set(this,a)},configurable:!0,enumerable:!0}}else{let s=i.set;o={...i,set(a){n.get(this).setValue(a),s?.call(this,a)}}}return void Object.defineProperty(t,r,o)}}}function Ar({context:e,subscribe:t}){return(r,n)=>{typeof n=="object"?n.addInitializer((function(){new Mt(this,{context:e,callback:i=>{r.set.call(this,i)},subscribe:t})})):r.constructor.addInitializer((i=>{new Mt(i,{context:e,callback:o=>{i[n]=o},subscribe:t})}))}}var fu=function(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,r,o):s(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},gi=Symbol("asset-viewer-state-manager"),oe=(0,Vo.applyMixinOnce)(Symbol("toFtAssetViewerComponent"),function(e){class t extends e{willUpdate(n){super.willUpdate(n),n.has("viewerStateManager")&&(this.viewerStateManager?this.addStore(this.viewerStateManager.store,"viewer"):this.removeStore("viewer"))}connectedCallback(){super.connectedCallback(),this.viewerStateManager&&this.addStore(this.viewerStateManager.store,"viewer")}disconnectedCallback(){super.disconnectedCallback(),this.removeStore("viewer")}}return fu([Ar({context:gi,subscribe:!0}),(0,Fo.state)()],t.prototype,"viewerStateManager",void 0),t});var Ba=h(T()),Kt=h(A());var zo=h(A()),hu={setZoom:(e,t)=>{e.contentModifiers.zoom=t.payload},setRotation:(e,t)=>{e.contentModifiers.rotation=t.payload}},Xr=e=>zo.FtReduxStore.get({name:"ft-viewer-"+e,initialState:{documentId:void 0,document:void 0,assetId:void 0,origin:void 0,descriptor:void 0,contentModifiers:{zoom:void 0,rotation:0},watermark:void 0},reducers:hu});var Ko=h(A()),It=class extends Ko.FtStateManager{constructor(t){super(),this.store=t}setZoom(t){this.store.actions.setZoom(t)}setRotation(t){this.store.actions.setRotation(t)}};var Fi=h(N());var Go=h(N(),1);var yi=e=>t=>{window.customElements.get(e)||window.customElements.define(e,t)};function qo(e,t){return(0,Go.property)({type:Object,converter:{fromAttribute:r=>{if(r==null)return Er(e);try{return JSON.parse(r)}catch{return Er(e)}},toAttribute:r=>JSON.stringify(r)},hasChanged:Sr,...t??{}})}function mu(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;let r,n;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!Zr(e[n],t[n]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;for(n of e.entries())if(!Zr(n[1],t.get(n[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();let i=s=>Object.keys(s).filter(a=>s[a]!=null),o=i(e);if(r=o.length,r!==i(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){let s=o[n];if(!Zr(e[s],t[s]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function Zr(e,t){try{return mu(e,t)}catch{return!1}}function Sr(e,t){return!Zr(e,t)}function Er(e){return typeof window.structuredClone=="function"?structuredClone(e):e!=null?JSON.parse(JSON.stringify(e)):e}function Jr(e,t){let r=n=>n[e]===!0;return n=>{if(r(n))return n;let i=t(n);return i[e]=!0,i}}var Yo=h(N(),1);var xi=e=>{let t=e??{};return(r,n)=>{var i;let o={hasChanged:Sr,attribute:!1,...t};(0,Yo.property)(o)(r,n);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(i=t.selector)!==null&&i!==void 0?i:(a=>a[n]),store:t.store})}};var Qr=class{constructor(){this.queue=[]}add(t,r=!1){r&&this.clear(t.type),this.queue.push(t)}consume(t){let r=this.queue.find(n=>n.type===t);return r&&(this.queue=this.queue.filter(n=>n!==r)),r}clear(t){typeof t=="string"?this.queue=this.queue.filter(r=>r.type!==t):this.queue=this.queue.filter(r=>!t.test(r.type))}};var ut=h(N(),1);var en=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,r){return this.callbacks=[t],this.debounce(r)}queue(t,r){return this.callbacks.push(t),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((r,n)=>{this.resolvePromise=r,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,r;let n=[...this.callbacks];this.callbacks=[];let i=(t=this.rejectPromise)!==null&&t!==void 0?t:(()=>null),o=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let s of n)try{await s()}catch(a){i(a);return}o(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Zo=h(T(),1);var tn=globalThis,vu=tn.ShadowRoot&&(tn.ShadyCSS===void 0||tn.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;var Xo=(e,t)=>{if(vu)e.adoptedStyleSheets=t.map((r=>r instanceof CSSStyleSheet?r:r.styleSheet));else for(let r of t){let n=document.createElement("style"),i=tn.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,e.appendChild(n)}};var rn=class extends Zo.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let t=this.scopedRegistryConstructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,t.defineScopedElements(t.elementDefinitions));let r={...t.shadowRootOptions,customElements:t.registry},n=this.renderOptions.creationScope=this.attachShadow(r);return Xo(n,t.elementStyles),n}static canDefineScopedElement(t){return!!this.registry&&!this.registry.get(t)}static defineScopedElements(t){Object.entries(t).forEach(([r,n])=>this.defineScopedElement(r,n))}static defineScopedElement(t,r){yi(t)(r),this.canDefineScopedElement(t)&&this.registry.define(t,r)}canDefineScopedElement(t){return this.scopedRegistryConstructor.canDefineScopedElement(t)}defineScopedElements(t){this.scopedRegistryConstructor.defineScopedElements(t)}defineScopedElement(t,r){this.scopedRegistryConstructor.defineScopedElement(t,r)}};function Jo(e,t,...r){var n;let i=e.querySelector(t);for(let o of r)i=(n=i?.shadowRoot)===null||n===void 0?void 0:n.querySelector(o);return i}var Ut=function(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,r,o):s(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},rs,Qo=Symbol("constructorPrototype"),es=Symbol("constructorName"),ns=Symbol("exportpartsDebouncer"),ts=Symbol("dynamicDependenciesLoaded"),kt=class e extends CustomEvent{constructor(){super(e.eventName,{bubbles:!0})}};kt.eventName="exportparts-updated";var Te=class extends rn{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[rs]=new en(5),this.scheduleExportpartsUpdate=()=>{var t,r,n;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(n=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&n!==void 0&&n)&&this[ns].run(()=>{var i,o;!((i=this.exportpartsPrefix)===null||i===void 0)&&i.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[es]=this.constructor.name,this[Qo]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[es]&&Object.setPrototypeOf(this,this[Qo])}connectedCallback(){var t;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(n){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",n)}let r=this.constructor;r[ts]||(r[ts]=!0,this.importDynamicDependencies()),(t=this.shadowRoot)===null||t===void 0||t.addEventListener(kt.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.shadowRoot)===null||t===void 0||t.removeEventListener(kt.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.focusElementToFocus(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate(),t.has("exportparts")&&this.dispatchEvent(new kt)})}contentAvailableCallback(t){}focusElementToFocus(t){if(t.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:n,shadowPath:i}=this.elementToFocus;if(n!=null){let o=[...i??[],n];r=Jo(this.shadowRoot,...o)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){var r,n,i;if(((n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(o=>o.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((i=this.customStylesheet)!==null&&i!==void 0?i:"")}catch(o){console.error(o,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let o=document.createElement("style");o.classList.add("ft-lit-element--custom-stylesheet"),o.innerHTML=this.customStylesheet,this.shadowRoot.append(o)}}setExportpartsAttribute(t){var r,n,i,o,s,a;let l=p=>p!=null&&p.trim().length>0,c=t.filter(l).map(p=>p.trim());if(c.length===0){this.exportparts=void 0;return}let u=new Set;for(let p of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let f=(o=(i=p.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&o!==void 0?o:[],m=(a=(s=p.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(x=>x.split(":")[1]))!==null&&a!==void 0?a:[],v=[...f,...m].filter(l).map(x=>x.trim());for(let x of v)u.add(x)}if(u.size===0){this.exportparts=void 0;return}let d=[...u.values()].flatMap(p=>c.map(f=>`${p}:${f}--${p}`));this.exportparts=[...this.part,...d].join(", ")}};rs=ns;Ut([(0,ut.property)()],Te.prototype,"exportpartsPrefix",void 0);Ut([qo([])],Te.prototype,"exportpartsPrefixes",void 0);Ut([(0,ut.property)({reflect:!0})],Te.prototype,"exportparts",void 0);Ut([(0,ut.property)()],Te.prototype,"customStylesheet",void 0);Ut([(0,ut.property)()],Te.prototype,"elementToFocus",void 0);Ut([(0,ut.state)()],Te.prototype,"useAdoptedStyleSheets",void 0);function nn(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var wr=Symbol("internalReduxEventsUnsubscribers"),qe=Symbol("internalStoresUnsubscribers"),dt=Symbol("internalStores"),gu=Jr(Symbol("withRedux"),function(e){var t,r,n;class i extends e{constructor(){super(...arguments),this[t]=new Map,this[r]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(a=>s.has(a))&&this.updateFromStores()}getUnnamedStore(){if(this[dt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[dt].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[dt].get(s)}addStore(s,a){var l;a=(l=a??s.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[dt].set(a,s),this.subscribeToStore(a,s),this.updateFromStores()}removeStore(s){let a=typeof s=="string"?s:s.name;this.unsubscribeFromStore(a),this[dt].delete(a)}setupStores(){this.unsubscribeFromStores(),this[dt].forEach((s,a)=>this.subscribeToStore(a,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,a)=>{let l=this.constructor.getPropertyOptions(a);if(!l?.attribute||!this.hasAttribute(typeof l?.attribute=="string"?l.attribute:a)){let c=this.getStore(s.store);c&&(s.store?this[qe].has(s.store):this[qe].size>0)&&(this[a]=s.selector(c.getState(),this))}})}subscribeToStore(s,a){var l;this[qe].set(s,a.subscribe(()=>this.updateFromStores())),this[wr].set(s,[]),nn(a)&&a.eventBus&&((l=this.reduxConstructor.reduxEventListeners)===null||l===void 0||l.forEach((c,u)=>{if(typeof this[u]=="function"&&(!c.store||a.name===c.store)){let d=p=>this[u](p);a.addEventListener(c.eventName,d),this[wr].get(s).push(()=>a.removeEventListener(c.eventName,d))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[qe].forEach((s,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(s){var a;this[qe].has(s)&&this[qe].get(s)(),this[qe].delete(s),(a=this[wr].get(s))===null||a===void 0||a.forEach(l=>l()),this[wr].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return t=qe,r=dt,n=wr,i.reduxProperties=new Map,i.reduxReactiveProperties=new Set,i.reduxEventListeners=new Map,i}),is=class extends gu(Te){};function se(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(0)var i,o;throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map((function(s){return"'"+s+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Ue(e){return!!e&&!!e[_]}function ge(e){var t;return!!e&&((function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===Cu})(e)||Array.isArray(e)||!!e[ds]||!!(!((t=e.constructor)===null||t===void 0)&&t[ds])||_i(e)||Ri(e))}function pt(e,t,r){r===void 0&&(r=!1),jt(e)===0?(r?Object.keys:Ht)(e).forEach((function(n){r&&typeof n=="symbol"||t(n,e[n],e)})):e.forEach((function(n,i){return t(i,n,e)}))}function jt(e){var t=e[_];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:_i(e)?2:Ri(e)?3:0}function $t(e,t){return jt(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function yu(e,t){return jt(e)===2?e.get(t):e[t]}function ps(e,t,r){var n=jt(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function fs(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function _i(e){return Su&&e instanceof Map}function Ri(e){return wu&&e instanceof Set}function Ye(e){return e.o||e.t}function Li(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=vs(e);delete t[_];for(var r=Ht(t),n=0;n<r.length;n++){var i=r[n],o=t[i];o.writable===!1&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function Ni(e,t){return t===void 0&&(t=!1),Pi(e)||Ue(e)||!ge(e)||(jt(e)>1&&(e.set=e.add=e.clear=e.delete=xu),Object.freeze(e),t&&pt(e,(function(r,n){return Ni(n,!0)}),!0)),e}function xu(){se(2)}function Pi(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function _e(e){var t=Ti[e];return t||se(18,e),t}function bu(e,t){Ti[e]||(Ti[e]=t)}function wi(){return Or}function bi(e,t){t&&(_e("Patches"),e.u=[],e.s=[],e.v=t)}function on(e){Ci(e),e.p.forEach(Au),e.p=null}function Ci(e){e===Or&&(Or=e.l)}function os(e){return Or={p:[],l:Or,h:e,m:!0,_:0}}function Au(e){var t=e[_];t.i===0||t.i===1?t.j():t.g=!0}function Ai(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||_e("ES5").S(t,e,n),n?(r[_].P&&(on(t),se(4)),ge(e)&&(e=sn(t,e),t.l||an(t,e)),t.u&&_e("Patches").M(r[_].t,e,t.u,t.s)):e=sn(t,r,[]),on(t),t.u&&t.v(t.u,t.s),e!==ms?e:void 0}function sn(e,t,r){if(Pi(t))return t;var n=t[_];if(!n)return pt(t,(function(a,l){return ss(e,n,t,a,l,r)}),!0),t;if(n.A!==e)return t;if(!n.P)return an(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=Li(n.k):n.o,o=i,s=!1;n.i===3&&(o=new Set(i),i.clear(),s=!0),pt(o,(function(a,l){return ss(e,n,i,a,l,r,s)})),an(e,i,!1),r&&e.u&&_e("Patches").N(n,r,e.u,e.s)}return n.o}function ss(e,t,r,n,i,o,s){if(Ue(i)){var a=sn(e,i,o&&t&&t.i!==3&&!$t(t.R,n)?o.concat(n):void 0);if(ps(r,n,a),!Ue(a))return;e.m=!1}else s&&r.add(i);if(ge(i)&&!Pi(i)){if(!e.h.D&&e._<1)return;sn(e,i),t&&t.A.l||an(e,i)}}function an(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&Ni(t,r)}function Ei(e,t){var r=e[_];return(r?Ye(r):e)[t]}function as(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function Xe(e){e.P||(e.P=!0,e.l&&Xe(e.l))}function Si(e){e.o||(e.o=Li(e.t))}function Oi(e,t,r){var n=_i(t)?_e("MapSet").F(t,r):Ri(t)?_e("MapSet").T(t,r):e.O?(function(i,o){var s=Array.isArray(i),a={i:s?1:0,A:o?o.A:wi(),P:!1,I:!1,R:{},l:o,t:i,k:null,o:null,j:null,C:!1},l=a,c=Tr;s&&(l=[a],c=Cr);var u=Proxy.revocable(l,c),d=u.revoke,p=u.proxy;return a.k=p,a.j=d,p})(t,r):_e("ES5").J(t,r);return(r?r.A:wi()).p.push(n),n}function Eu(e){return Ue(e)||se(22,e),(function t(r){if(!ge(r))return r;var n,i=r[_],o=jt(r);if(i){if(!i.P&&(i.i<4||!_e("ES5").K(i)))return i.t;i.I=!0,n=ls(r,o),i.I=!1}else n=ls(r,o);return pt(n,(function(s,a){i&&yu(i.t,s)===a||ps(n,s,t(a))})),o===3?new Set(n):n})(e)}function ls(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Li(e)}function hs(){function e(s,a){var l=o[s];return l?l.enumerable=a:o[s]=l={configurable:!0,enumerable:a,get:function(){var c=this[_];return Tr.get(c,s)},set:function(c){var u=this[_];Tr.set(u,s,c)}},l}function t(s){for(var a=s.length-1;a>=0;a--){var l=s[a][_];if(!l.P)switch(l.i){case 5:n(l)&&Xe(l);break;case 4:r(l)&&Xe(l)}}}function r(s){for(var a=s.t,l=s.k,c=Ht(l),u=c.length-1;u>=0;u--){var d=c[u];if(d!==_){var p=a[d];if(p===void 0&&!$t(a,d))return!0;var f=l[d],m=f&&f[_];if(m?m.t!==p:!fs(f,p))return!0}}var v=!!a[_];return c.length!==Ht(a).length+(v?0:1)}function n(s){var a=s.k;if(a.length!==s.t.length)return!0;var l=Object.getOwnPropertyDescriptor(a,a.length-1);if(l&&!l.get)return!0;for(var c=0;c<a.length;c++)if(!a.hasOwnProperty(c))return!0;return!1}function i(s){s.g&&se(3,JSON.stringify(Ye(s)))}var o={};bu("ES5",{J:function(s,a){var l=Array.isArray(s),c=(function(d,p){if(d){for(var f=Array(p.length),m=0;m<p.length;m++)Object.defineProperty(f,""+m,e(m,!0));return f}var v=vs(p);delete v[_];for(var x=Ht(v),b=0;b<x.length;b++){var E=x[b];v[E]=e(E,d||!!v[E].enumerable)}return Object.create(Object.getPrototypeOf(p),v)})(l,s),u={i:l?5:4,A:a?a.A:wi(),P:!1,I:!1,R:{},l:a,t:s,k:c,o:null,g:!1,C:!1};return Object.defineProperty(c,_,{value:u,writable:!0}),c},S:function(s,a,l){l?Ue(a)&&a[_].A===s&&t(s.p):(s.u&&(function c(u){if(u&&typeof u=="object"){var d=u[_];if(d){var p=d.t,f=d.k,m=d.R,v=d.i;if(v===4)pt(f,(function(O){O!==_&&(p[O]!==void 0||$t(p,O)?m[O]||c(f[O]):(m[O]=!0,Xe(d)))})),pt(p,(function(O){f[O]!==void 0||$t(f,O)||(m[O]=!1,Xe(d))}));else if(v===5){if(n(d)&&(Xe(d),m.length=!0),f.length<p.length)for(var x=f.length;x<p.length;x++)m[x]=!1;else for(var b=p.length;b<f.length;b++)m[b]=!0;for(var E=Math.min(f.length,p.length),C=0;C<E;C++)f.hasOwnProperty(C)||(m[C]=!0),m[C]===void 0&&c(f[C])}}}})(s.p[0]),t(s.p))},K:function(s){return s.i===4?r(s):n(s)}})}var cs,Or,Mi=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Su=typeof Map<"u",wu=typeof Set<"u",us=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",ms=Mi?Symbol.for("immer-nothing"):((cs={})["immer-nothing"]=!0,cs),ds=Mi?Symbol.for("immer-draftable"):"__$immer_draftable",_=Mi?Symbol.for("immer-state"):"__$immer_state";var Cu=""+Object.prototype.constructor,Ht=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,vs=Object.getOwnPropertyDescriptors||function(e){var t={};return Ht(e).forEach((function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)})),t},Ti={},Tr={get:function(e,t){if(t===_)return e;var r=Ye(e);if(!$t(r,t))return(function(i,o,s){var a,l=as(o,s);return l?"value"in l?l.value:(a=l.get)===null||a===void 0?void 0:a.call(i.k):void 0})(e,r,t);var n=r[t];return e.I||!ge(n)?n:n===Ei(e.t,t)?(Si(e),e.o[t]=Oi(e.A.h,n,e)):n},has:function(e,t){return t in Ye(e)},ownKeys:function(e){return Reflect.ownKeys(Ye(e))},set:function(e,t,r){var n=as(Ye(e),t);if(n?.set)return n.set.call(e.k,r),!0;if(!e.P){var i=Ei(Ye(e),t),o=i?.[_];if(o&&o.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(fs(r,i)&&(r!==void 0||$t(e.t,t)))return!0;Si(e),Xe(e)}return e.o[t]===r&&(r!==void 0||t in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[t])||(e.o[t]=r,e.R[t]=!0),!0},deleteProperty:function(e,t){return Ei(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,Si(e),Xe(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=Ye(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty:function(){se(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){se(12)}},Cr={};pt(Tr,(function(e,t){Cr[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Cr.deleteProperty=function(e,t){return Cr.set.call(this,e,t,void 0)},Cr.set=function(e,t,r){return Tr.set.call(this,e[0],t,r,e[0])};var Ou=(function(){function e(r){var n=this;this.O=us,this.D=!0,this.produce=function(i,o,s){if(typeof i=="function"&&typeof o!="function"){var a=o;o=i;var l=n;return function(v){var x=this;v===void 0&&(v=a);for(var b=arguments.length,E=Array(b>1?b-1:0),C=1;C<b;C++)E[C-1]=arguments[C];return l.produce(v,(function(O){var k;return(k=o).call.apply(k,[x,O].concat(E))}))}}var c;if(typeof o!="function"&&se(6),s!==void 0&&typeof s!="function"&&se(7),ge(i)){var u=os(n),d=Oi(n,i,void 0),p=!0;try{c=o(d),p=!1}finally{p?on(u):Ci(u)}return typeof Promise<"u"&&c instanceof Promise?c.then((function(v){return bi(u,s),Ai(v,u)}),(function(v){throw on(u),v})):(bi(u,s),Ai(c,u))}if(!i||typeof i!="object"){if((c=o(i))===void 0&&(c=i),c===ms&&(c=void 0),n.D&&Ni(c,!0),s){var f=[],m=[];_e("Patches").M(i,c,f,m),s(f,m)}return c}se(21,i)},this.produceWithPatches=function(i,o){if(typeof i=="function")return function(c){for(var u=arguments.length,d=Array(u>1?u-1:0),p=1;p<u;p++)d[p-1]=arguments[p];return n.produceWithPatches(c,(function(f){return i.apply(void 0,[f].concat(d))}))};var s,a,l=n.produce(i,o,(function(c,u){s=c,a=u}));return typeof Promise<"u"&&l instanceof Promise?l.then((function(c){return[c,s,a]})):[l,s,a]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var t=e.prototype;return t.createDraft=function(r){ge(r)||se(8),Ue(r)&&(r=Eu(r));var n=os(this),i=Oi(this,r,void 0);return i[_].C=!0,Ci(n),i},t.finishDraft=function(r,n){var i=r&&r[_],o=i.A;return bi(o,n),Ai(void 0,o)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!us&&se(20),this.O=r},t.applyPatches=function(r,n){var i;for(i=n.length-1;i>=0;i--){var o=n[i];if(o.path.length===0&&o.op==="replace"){r=o.value;break}}i>-1&&(n=n.slice(i+1));var s=_e("Patches").$;return Ue(r)?s(r,n):this.produce(r,(function(a){return s(a,n)}))},e})(),te=new Ou,Tu=te.produce,Vp=te.produceWithPatches.bind(te),Fp=te.setAutoFreeze.bind(te),Wp=te.setUseProxies.bind(te),zp=te.applyPatches.bind(te),Kp=te.createDraft.bind(te),Gp=te.finishDraft.bind(te),ln=Tu;function ft(e){"@babel/helpers - typeof";return ft=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ft(e)}function gs(e,t){if(ft(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ft(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ys(e){var t=gs(e,"string");return ft(t)=="symbol"?t:t+""}function xs(e,t,r){return(t=ys(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bs(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Di(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bs(Object(r),!0).forEach(function(n){xs(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bs(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function K(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var As=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),Ii=function(){return Math.random().toString(36).substring(7).split("").join(".")},cn={INIT:"@@redux/INIT"+Ii(),REPLACE:"@@redux/REPLACE"+Ii(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Ii()}};function _u(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function ki(e,t,r){var n;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(K(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(K(1));return r(ki)(e,t)}if(typeof e!="function")throw new Error(K(2));var i=e,o=t,s=[],a=s,l=!1;function c(){a===s&&(a=s.slice())}function u(){if(l)throw new Error(K(3));return o}function d(v){if(typeof v!="function")throw new Error(K(4));if(l)throw new Error(K(5));var x=!0;return c(),a.push(v),function(){if(x){if(l)throw new Error(K(6));x=!1,c();var E=a.indexOf(v);a.splice(E,1),s=null}}}function p(v){if(!_u(v))throw new Error(K(7));if(typeof v.type>"u")throw new Error(K(8));if(l)throw new Error(K(9));try{l=!0,o=i(o,v)}finally{l=!1}for(var x=s=a,b=0;b<x.length;b++){var E=x[b];E()}return v}function f(v){if(typeof v!="function")throw new Error(K(10));i=v,p({type:cn.REPLACE})}function m(){var v,x=d;return v={subscribe:function(E){if(typeof E!="object"||E===null)throw new Error(K(11));function C(){E.next&&E.next(u())}C();var O=x(C);return{unsubscribe:O}}},v[As]=function(){return this},v}return p({type:cn.INIT}),n={dispatch:p,subscribe:d,getState:u,replaceReducer:f},n[As]=m,n}function Ru(e){Object.keys(e).forEach(function(t){var r=e[t],n=r(void 0,{type:cn.INIT});if(typeof n>"u")throw new Error(K(12));if(typeof r(void 0,{type:cn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(K(13))})}function Es(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var i=t[n];typeof e[i]=="function"&&(r[i]=e[i])}var o=Object.keys(r),s,a;try{Ru(r)}catch(l){a=l}return function(c,u){if(c===void 0&&(c={}),a)throw a;if(0)var d;for(var p=!1,f={},m=0;m<o.length;m++){var v=o[m],x=r[v],b=c[v],E=x(b,u);if(typeof E>"u"){var C=u&&u.type;throw new Error(K(14))}f[v]=E,p=p||E!==b}return p=p||o.length!==Object.keys(c).length,p?f:c}}function Bt(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function Ss(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return function(){var i=n.apply(void 0,arguments),o=function(){throw new Error(K(15))},s={getState:i.getState,dispatch:function(){return o.apply(void 0,arguments)}},a=t.map(function(l){return l(s)});return o=Bt.apply(void 0,a)(i.dispatch),Di(Di({},i),{},{dispatch:o})}}}function ws(e){var t=function(n){var i=n.dispatch,o=n.getState;return function(s){return function(a){return typeof a=="function"?a(i,o,e):s(a)}}};return t}var Cs=ws();Cs.withExtraArgument=ws;var Ui=Cs;var Ls=(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),Lu=function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(c){return function(u){return l([c,u])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,i=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){r.label=c[1];break}if(c[0]===6&&r.label<o[1]){r.label=o[1],o=c;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(c);break}o[2]&&r.ops.pop(),r.trys.pop();continue}c=t.call(e,r)}catch(u){c=[6,u],i=0}finally{n=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},Vt=function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e},Nu=Object.defineProperty,Pu=Object.defineProperties,Mu=Object.getOwnPropertyDescriptors,Os=Object.getOwnPropertySymbols,Du=Object.prototype.hasOwnProperty,Iu=Object.prototype.propertyIsEnumerable,Ts=function(e,t,r){return t in e?Nu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},Ze=function(e,t){for(var r in t||(t={}))Du.call(t,r)&&Ts(e,r,t[r]);if(Os)for(var n=0,i=Os(t);n<i.length;n++){var r=i[n];Iu.call(t,r)&&Ts(e,r,t[r])}return e},$i=function(e,t){return Pu(e,Mu(t))},ku=function(e,t,r){return new Promise(function(n,i){var o=function(l){try{a(r.next(l))}catch(c){i(c)}},s=function(l){try{a(r.throw(l))}catch(c){i(c)}},a=function(l){return l.done?n(l.value):Promise.resolve(l.value).then(o,s)};a((r=r.apply(e,t)).next())})};var Uu=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Bt:Bt.apply(null,arguments)},pf=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function $u(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var r=t;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return t===r}function Je(e,t){function r(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(t){var o=t.apply(void 0,n);if(!o)throw new Error("prepareAction did not return an object");return Ze(Ze({type:e,payload:o.payload},"meta"in o&&{meta:o.meta}),"error"in o&&{error:o.error})}return{type:e,payload:n[0]}}return r.toString=function(){return""+e},r.type=e,r.match=function(n){return n.type===e},r}var Hu=(function(e){Ls(t,e);function t(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=e.apply(this,r)||this;return Object.setPrototypeOf(i,t.prototype),i}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,Vt([void 0],r[0].concat(this)))):new(t.bind.apply(t,Vt([void 0],r.concat(this))))},t})(Array),ju=(function(e){Ls(t,e);function t(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=e.apply(this,r)||this;return Object.setPrototypeOf(i,t.prototype),i}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,Vt([void 0],r[0].concat(this)))):new(t.bind.apply(t,Vt([void 0],r.concat(this))))},t})(Array);function Bi(e){return ge(e)?ln(e,function(){}):e}function Bu(e){return typeof e=="boolean"}function Vu(){return function(t){return Fu(t)}}function Fu(e){e===void 0&&(e={});var t=e.thunk,r=t===void 0?!0:t,n=e.immutableCheck,i=n===void 0?!0:n,o=e.serializableCheck,s=o===void 0?!0:o,a=e.actionCreatorCheck,l=a===void 0?!0:a,c=new Hu;if(r&&(Bu(r)?c.push(Ui):c.push(Ui.withExtraArgument(r.extraArgument))),0){if(i)var u;if(s)var d;if(l)var p}return c}var Hi=!0;function Ns(e){var t=Vu(),r=e||{},n=r.reducer,i=n===void 0?void 0:n,o=r.middleware,s=o===void 0?t():o,a=r.devTools,l=a===void 0?!0:a,c=r.preloadedState,u=c===void 0?void 0:c,d=r.enhancers,p=d===void 0?void 0:d,f;if(typeof i=="function")f=i;else if($u(i))f=Es(i);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 m=s;if(typeof m=="function"&&(m=m(t),!Hi&&!Array.isArray(m)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Hi&&m.some(function(O){return typeof O!="function"}))throw new Error("each middleware provided to configureStore must be a function");var v=Ss.apply(void 0,m),x=Bt;l&&(x=Uu(Ze({trace:!Hi},typeof l=="object"&&l)));var b=new ju(v),E=b;Array.isArray(p)?E=Vt([v],p):typeof p=="function"&&(E=p(b));var C=x.apply(void 0,E);return ki(f,u,C)}function Ps(e){var t={},r=[],n,i={addCase:function(o,s){var a=typeof o=="string"?o:o.type;if(!a)throw new Error("`builder.addCase` cannot be called with an empty action type");if(a in t)throw new Error("`builder.addCase` cannot be called with two reducers for the same action type");return t[a]=s,i},addMatcher:function(o,s){return r.push({matcher:o,reducer:s}),i},addDefaultCase:function(o){return n=o,i}};return e(i),[t,r,n]}function Wu(e){return typeof e=="function"}function zu(e,t,r,n){r===void 0&&(r=[]);var i=typeof t=="function"?Ps(t):[t,r,n],o=i[0],s=i[1],a=i[2],l;if(Wu(e))l=function(){return Bi(e())};else{var c=Bi(e);l=function(){return c}}function u(d,p){d===void 0&&(d=l());var f=Vt([o[p.type]],s.filter(function(m){var v=m.matcher;return v(p)}).map(function(m){var v=m.reducer;return v}));return f.filter(function(m){return!!m}).length===0&&(f=[a]),f.reduce(function(m,v){if(v)if(Ue(m)){var x=m,b=v(x,p);return b===void 0?m:b}else{if(ge(m))return ln(m,function(E){return v(E,p)});var b=v(m,p);if(b===void 0){if(m===null)return m;throw Error("A case reducer on a non-draftable value must not return undefined")}return b}return m},d)}return u.getInitialState=l,u}function Ku(e,t){return e+"/"+t}function Ms(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof e.initialState=="function"?e.initialState:Bi(e.initialState),n=e.reducers||{},i=Object.keys(n),o={},s={},a={};i.forEach(function(u){var d=n[u],p=Ku(t,u),f,m;"reducer"in d?(f=d.reducer,m=d.prepare):f=d,o[u]=f,s[p]=f,a[u]=m?Je(p,m):Je(p)});function l(){var u=typeof e.extraReducers=="function"?Ps(e.extraReducers):[e.extraReducers],d=u[0],p=d===void 0?{}:d,f=u[1],m=f===void 0?[]:f,v=u[2],x=v===void 0?void 0:v,b=Ze(Ze({},p),s);return zu(r,function(E){for(var C in b)E.addCase(C,b[C]);for(var O=0,k=m;O<k.length;O++){var M=k[O];E.addMatcher(M.matcher,M.reducer)}x&&E.addDefaultCase(x)})}var c;return{name:t,reducer:function(u,d){return c||(c=l()),c(u,d)},actions:a,caseReducers:o,getInitialState:function(){return c||(c=l()),c.getInitialState()}}}var Gu="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",qu=function(e){e===void 0&&(e=21);for(var t="",r=e;r--;)t+=Gu[Math.random()*64|0];return t},Yu=["name","message","stack","code"],ji=(function(){function e(t,r){this.payload=t,this.meta=r}return e})(),_s=(function(){function e(t,r){this.payload=t,this.meta=r}return e})(),Xu=function(e){if(typeof e=="object"&&e!==null){for(var t={},r=0,n=Yu;r<n.length;r++){var i=n[r];typeof e[i]=="string"&&(t[i]=e[i])}return t}return{message:String(e)}},vf=(function(){function e(t,r,n){var i=Je(t+"/fulfilled",function(u,d,p,f){return{payload:u,meta:$i(Ze({},f||{}),{arg:p,requestId:d,requestStatus:"fulfilled"})}}),o=Je(t+"/pending",function(u,d,p){return{payload:void 0,meta:$i(Ze({},p||{}),{arg:d,requestId:u,requestStatus:"pending"})}}),s=Je(t+"/rejected",function(u,d,p,f,m){return{payload:f,error:(n&&n.serializeError||Xu)(u||"Rejected"),meta:$i(Ze({},m||{}),{arg:p,requestId:d,rejectedWithValue:!!f,requestStatus:"rejected",aborted:u?.name==="AbortError",condition:u?.name==="ConditionError"})}}),a=!1,l=typeof AbortController<"u"?AbortController:(function(){function u(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return u.prototype.abort=function(){},u})();function c(u){return function(d,p,f){var m=n?.idGenerator?n.idGenerator(u):qu(),v=new l,x,b=!1;function E(O){x=O,v.abort()}var C=(function(){return ku(this,null,function(){var O,k,M,Ke,mi,Ge,Q;return Lu(this,function(ie){switch(ie.label){case 0:return ie.trys.push([0,4,,5]),Ke=(O=n?.condition)==null?void 0:O.call(n,u,{getState:p,extra:f}),Ju(Ke)?[4,Ke]:[3,2];case 1:Ke=ie.sent(),ie.label=2;case 2:if(Ke===!1||v.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return b=!0,mi=new Promise(function(ee,ct){return v.signal.addEventListener("abort",function(){return ct({name:"AbortError",message:x||"Aborted"})})}),d(o(m,u,(k=n?.getPendingMeta)==null?void 0:k.call(n,{requestId:m,arg:u},{getState:p,extra:f}))),[4,Promise.race([mi,Promise.resolve(r(u,{dispatch:d,getState:p,extra:f,requestId:m,signal:v.signal,abort:E,rejectWithValue:function(ee,ct){return new ji(ee,ct)},fulfillWithValue:function(ee,ct){return new _s(ee,ct)}})).then(function(ee){if(ee instanceof ji)throw ee;return ee instanceof _s?i(ee.payload,m,u,ee.meta):i(ee,m,u)})])];case 3:return M=ie.sent(),[3,5];case 4:return Ge=ie.sent(),M=Ge instanceof ji?s(null,m,u,Ge.payload,Ge.meta):s(Ge,m,u),[3,5];case 5:return Q=n&&!n.dispatchConditionRejection&&s.match(M)&&M.meta.condition,Q||d(M),[2,M]}})})})();return Object.assign(C,{abort:E,requestId:m,arg:u,unwrap:function(){return C.then(Zu)}})}}return Object.assign(c,{pending:o,rejected:s,fulfilled:i,typePrefix:t})}return e.withTypes=function(){return e},e})();function Zu(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Ju(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Ds="listener",Is="completed",ks="cancelled",gf="task-"+ks,yf="task-"+Is,xf=Ds+"-"+ks,bf=Ds+"-"+Is;var Vi="listenerMiddleware";var Af=Je(Vi+"/add"),Ef=Je(Vi+"/removeAll"),Sf=Je(Vi+"/remove");var Rs,wf=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(Rs||(Rs=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},Qu=function(e){return function(t){setTimeout(t,e)}},Cf=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Qu(10);hs();var ed=Jr(Symbol("withEventBus"),function(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(r,n,i){this.eventBus.addEventListener(r,n,i)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,n,i){this.eventBus.removeEventListener(r,n,i)}}}),un=class extends ed(Object){};window.ftReduxStores||(window.ftReduxStores={});var Us=class e extends un{static get(t){var r;let n=typeof t=="string"?t:t.name,i=typeof t=="string"?void 0:t,o=window.ftReduxStores[n];if(nn(o))return o;if(i==null)return;let s=Ms({...i,reducers:(r=i.reducers)!==null&&r!==void 0?r:{}}),a=Ns({reducer:(l,c)=>{if(c.type==="CLEAR_FT_REDUX_STORE"){let u=Er(s.getInitialState());for(let d of c.keeping)u[d]=(l??u)[d];return u}else if(typeof c.type=="string"&&c.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...l,...c.overwrites};return s.reducer(l,c)}});return window.ftReduxStores[i.name]=new e(s,a,i.eventBus)}constructor(t,r,n){super(),this.reduxSlice=t,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new Qr;let i=o=>o!=null?JSON.parse(JSON.stringify(o)):o;this.actions=new Proxy(this.reduxSlice.actions,{get:(o,s,a)=>{let l=s,c=o[l];return c?(...u)=>{let d=c(...u.map(i));return this.reduxStore.dispatch(d),d}:u=>{this.setState({[l]:i(u)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...t){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:t})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var dn=class{static format(t,r,n,i,o){return window.moment?window.moment(t).locale(r).format(this.getMomentDateFormat(n,i,!!o)):this.getIntlDateTime(t,r,n,i,!!o)}static getMomentDateFormat(t,r,n){return n?"LT":t?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(t,r,n,i,o){let s=typeof t=="string"?new Date(t):t,a=new Intl.DateTimeFormat(r,{dateStyle:n?"medium":"short"}).format(s),l=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(s);return o?l:i?`${a} ${l}`:a}static getTimezoneAsString(){let t=n=>String(Math.floor(n)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${t(Math.abs(r)/60)}:${t(Math.abs(r)%60)}`}};var pn=h(A()),td="ft-app-info",Re=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};Re.eventName="authentication-change";var _r=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};_r.eventName="ui-locale-changed";var rd={session:(e,t)=>{(0,pn.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>w.dispatchEvent(new Re(t.payload)),0))}},w=pn.FtReduxStore.get({name:td,reducers:rd,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],availableContentLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,searchLanguageSetsUiLanguage:!1,uiLanguageSetsSearchLanguage:!1,uiLanguageSetsReaderLanguage:!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 $s=h(A()),fn=function(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,r,o):s(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},Qf=(0,$s.applyMixinOnce)(Symbol("withDateFormat"),function(e){class t extends e{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(w)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var i,o;return((o=(i=this.metadataDescriptors.find(a=>a.key===n))===null||i===void 0?void 0:i.date)!==null&&o!==void 0?o:!1)?a=>dn.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return fn([(0,Fi.property)({type:Boolean})],t.prototype,"useLongDateFormat",void 0),fn([(0,Fi.property)({type:Boolean})],t.prototype,"useDateTimeFormat",void 0),fn([xi({store:w.name,selector:r=>{var n,i;return(i=(n=r.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&i!==void 0?i:[]}})],t.prototype,"metadataDescriptors",void 0),fn([xi({store:w.name})],t.prototype,"uiLocale",void 0),t});var Hs;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(Hs||(Hs={}));var js;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(js||(js={}));var Bs;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(Bs||(Bs={}));var Vs;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(Vs||(Vs={}));var Fs;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Fs||(Fs={}));var Ws;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(Ws||(Ws={}));var zs;(function(e){e.OFFICIAL="OFFICIAL",e.AI="AI"})(zs||(zs={}));var Ks;(function(e){e.BOOKMARK__CREATE="BOOKMARK__CREATE",e.BOOKMARK__DELETE="BOOKMARK__DELETE",e.CASE_DEFLECTION__START="CASE_DEFLECTION__START",e.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",e.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",e.CHATBOT__RATE="CHATBOT__RATE",e.COLLECTION__CREATE="COLLECTION__CREATE",e.COLLECTION__UPDATE="COLLECTION__UPDATE",e.COLLECTION__DELETE="COLLECTION__DELETE",e.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",e.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",e.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",e.DOCUMENT__PRINT="DOCUMENT__PRINT",e.DOCUMENT__PROCESS="DOCUMENT__PROCESS",e.DOCUMENT__RATE="DOCUMENT__RATE",e.DOCUMENT__SEARCH="DOCUMENT__SEARCH",e.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",e.DOCUMENT__UNRATE="DOCUMENT__UNRATE",e.FEEDBACK__SEND="FEEDBACK__SEND",e.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",e.AI__RATE="AI__RATE",e.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",e.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",e.KHUB__PROCESS="KHUB__PROCESS",e.KHUB__SEARCH="KHUB__SEARCH",e.LABELS__DOWNLOAD="LABELS__DOWNLOAD",e.LINK__SHARE="LINK__SHARE",e.PAGE__DISPLAY="PAGE__DISPLAY",e.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",e.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",e.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",e.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",e.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",e.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",e.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",e.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",e.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",e.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",e.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",e.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",e.TOPIC__RATE="TOPIC__RATE",e.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",e.TOPIC__UNRATE="TOPIC__UNRATE",e.USER__LOGIN="USER__LOGIN",e.USER__LOGOUT="USER__LOGOUT",e.HEARTBEAT="HEARTBEAT"})(Ks||(Ks={}));var Gs;(function(e){e.STANDARD="STANDARD",e.STRUCTURAL="STRUCTURAL"})(Gs||(Gs={}));var qs;(function(e){e.THIRD_PARTY="THIRD_PARTY",e.OFF_THE_GRID="OFF_THE_GRID",e.CONTENT_PACKAGER="CONTENT_PACKAGER",e.PAGES="PAGES",e.DESIGNED_READER="DESIGNED_READER"})(qs||(qs={}));var Ys;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT",e.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",e.LINK_PREVIEW="LINK_PREVIEW",e.UD_VIEWER="UD_VIEWER",e.ASSET_VIEWER="ASSET_VIEWER"})(Ys||(Ys={}));var Xs;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(Xs||(Xs={}));var Zs;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(Zs||(Zs={}));var Js;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(Js||(Js={}));var Qs;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(Qs||(Qs={}));var ea;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR",e.CUSTOM="CUSTOM"})(ea||(ea={}));var ta;(function(e){e.OPTIONAL="OPTIONAL",e.MANDATORY="MANDATORY"})(ta||(ta={}));var ra;(function(e){e.ASC="ASC",e.DESC="DESC"})(ra||(ra={}));var na;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(na||(na={}));var ia;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(ia||(ia={}));var oa;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(oa||(oa={}));var sa;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(sa||(sa={}));var aa;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(aa||(aa={}));var la;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(la||(la={}));var ca;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.HTML_PACKAGE="HTML_PACKAGE",e.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(ca||(ca={}));var ua;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(ua||(ua={}));var da;(function(e){e.PLAIN_TEXT="PLAIN_TEXT",e.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",e.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(da||(da={}));var D;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",e.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN"})(D||(D={}));var ae;(function(e){e.SEARCHES="SEARCHES",e.BOOKMARKS="BOOKMARKS",e.BOOKS="BOOKS",e.COLLECTIONS="COLLECTIONS"})(ae||(ae={}));var pa;(function(e){e.UNAUTHENTICATED="UNAUTHENTICATED",e.USER_INCOMPLETE="USER_INCOMPLETE",e.MFA_REQUIRED="MFA_REQUIRED",e.AUTHENTICATED="AUTHENTICATED"})(pa||(pa={}));var fa;(function(e){e.UNREACHABLE="UNREACHABLE",e.UNAUTHORIZED="UNAUTHORIZED",e.FORBIDDEN="FORBIDDEN",e.INCOMPATIBLE="INCOMPATIBLE",e.FAILED="FAILED",e.OK="OK"})(fa||(fa={}));var ha;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(ha||(ha={}));var ma;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SUMMARY="SUMMARY",e.SEMANTIC_SEARCH="SEMANTIC_SEARCH",e.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",e.DOCUMENTATION="DOCUMENTATION",e.OTHER="OTHER"})(ma||(ma={}));var va;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SLOW="SLOW",e.OTHER="OTHER"})(va||(va={}));var ga;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(ga||(ga={}));var ya;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(ya||(ya={}));var xa;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(xa||(xa={}));var ba;(function(e){e.IN_PROGRESS="IN_PROGRESS",e.ERROR="ERROR",e.DONE="DONE"})(ba||(ba={}));var Aa;(function(e){e.HTML="HTML",e.MARKDOWN="MARKDOWN"})(Aa||(Aa={}));var Ea;(function(e){e.SOURCES="SOURCES",e.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",e.VOCABULARIES="VOCABULARIES",e.METADATA="METADATA",e.PRETTY_URL="PRETTY_URL",e.ACCESS_RULE="ACCESS_RULE",e.DESIGNED_PAGES="DESIGNED_PAGES",e.THEME_STUDIO="THEME_STUDIO",e.PORTAL_GENERAL="PORTAL_GENERAL",e.ASSETS="ASSETS",e.CODE_LIBRARY="CODE_LIBRARY",e.THEME="THEME",e.CONTENT_STYLES="CONTENT_STYLES",e.HOMEPAGE="HOMEPAGE",e.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",e.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",e.PORTAL_METADATA="PORTAL_METADATA",e.LANGUAGES="LANGUAGES",e.PRINT_TEMPLATES="PRINT_TEMPLATES",e.OFFLINE="OFFLINE",e.CUSTOM_JS="CUSTOM_JS",e.CONFIDENTIALITY="CONFIDENTIALITY",e.NOTIFICATIONS="NOTIFICATIONS"})(Ea||(Ea={}));var hn;(function(e){e.MAP="MAP",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(hn||(hn={}));var nd={[D.PERSONAL_BOOK_SHARE_USER]:[D.PERSONAL_BOOK_USER],[D.HTML_EXPORT_USER]:[D.PERSONAL_BOOK_USER],[D.PDF_EXPORT_USER]:[D.PERSONAL_BOOK_USER],[D.KHUB_ADMIN]:[D.CONTENT_PUBLISHER],[D.ADMIN]:[D.KHUB_ADMIN,D.USERS_ADMIN,D.PORTAL_ADMIN,D.BEHAVIOR_DATA_USER],[D.GENERATIVE_AI_EXPORT_USER]:[D.GENERATIVE_AI_USER]};function Sa(e,t){return e===t||(nd[e]??[]).some(r=>Sa(r,t))}function wa(e,t){return e==null?!1:(Array.isArray(e)?e:Array.isArray(e.roles)?e.roles:Array.isArray(e.profile?.roles)?e.profile.roles:[]).some(n=>Sa(n,t))}var xn=h(A());var Wi=h(A());var le=class e{static get(t){let{baseUrl:r,apiIntegrationIdentifier:n}=w.getState(),i=t??n;if(r&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,i,!0)}static await(t){return new Promise(r=>{let n=e.get(t);if(n)r(n);else{let i=w.subscribe(()=>{n=e.get(t),n&&(i(),r(n))})}})}};var Ft=class{constructor(t){this.overrideApi=t}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:le.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):le.await()}};var B=class extends Ft{constructor(t=!0,r){var n;super(r),this.sortObjectFields=(o,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([a],[l])=>a.localeCompare(l)));let i=this.constructor;i.commonCache=(n=i.commonCache)!==null&&n!==void 0?n:new Wi.CacheRegistry,this.cache=t?i.commonCache:new Wi.CacheRegistry}clearCache(){this.cache.clearAll()}hash(t){return String(Array.from(JSON.stringify(t,this.sortObjectFields)).reduce((r,n)=>0|31*r+n.charCodeAt(0),0))}};var mn=class extends B{async listMySearches(){let{session:t}=w.getState();return wa(t,D.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),300*1e3):[]}};var vn=class extends B{async listMyBookmarks(){let t=w.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),300*1e3):[]}};var gn=class extends B{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(t){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${t}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(t){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${t}`),this.CACHE_DURATION)}isAuthenticated(){let t=w.getState().session;return!!t?.sessionAuthenticated}};var yn=class extends B{constructor(){super(...arguments),this.CACHE_DURATION=180*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 t=w.getState().session;return!!t?.sessionAuthenticated}};var id="ft-user-assets",od={setAssetCount:(e,t)=>{let{userAssetType:r,count:n}=t.payload.assetCount;e.assetCounts.allAsset[r]=n},clearAssetCount:e=>{Object.values(ae).forEach(t=>{e.assetCounts.allAsset[t]=void 0})},setBookmarkCountByMap:(e,t)=>{let r=t.payload.mapId;e.assetCounts.bookmarkByMap[r]=t.payload.count},clearBookmarkCountByMap:e=>{e.assetCounts.bookmarkByMap={}},addAsset:(e,t)=>{let{assetType:r,mapId:n,asset:i}=t.payload;Ki(e,r,[...zi(e,r),i]),Ca(e,r,1,n),Oa(e,i)},editAsset:(e,t)=>{let{assetType:r,asset:n}=t.payload;Ki(e,r,zi(e,r).map(i=>i.id===n.id?n:i)),Oa(e,n)},removeAsset:(e,t)=>{let{assetType:r,mapId:n,assetId:i}=t.payload;Ki(e,r,zi(e,r).filter(o=>o.id!==i)),Ca(e,r,-1,n)}},Ta={[ae.SEARCHES]:"savedSearches",[ae.BOOKMARKS]:"bookmarks",[ae.BOOKS]:void 0,[ae.COLLECTIONS]:void 0},zi=(e,t)=>{var r;let n=Ta[t];return n?(r=e[n])!==null&&r!==void 0?r:[]:[]},Ki=(e,t,r)=>{let n=Ta[t];n&&(e[n]=r)},Ca=(e,t,r,n)=>{let i=e.assetCounts.allAsset[t];if(i!==void 0&&(e.assetCounts.allAsset[t]=Math.max(0,i+r),t===ae.BOOKMARKS&&n)){let o=e.assetCounts.bookmarkByMap[n];e.assetCounts.bookmarkByMap[n]=Math.max(0,o+r)}},Oa=(e,t)=>{let r=e.assetLabels.map(i=>i.title),n=t.labels.filter(i=>!r.includes(i)).map(i=>({title:i}));e.assetLabels.push(...n)},q=xn.FtReduxStore.get({name:id,reducers:od,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(ae).map(e=>[e,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Gi=class{constructor(t=new gn,r=new yn){this.assetCountsService=t,this.assetLabelsService=r,this.currentSession=w.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new vn,this.savedSearchesService=new mn,w.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:r}=w.getState();(0,xn.deepEqual)((t=this.currentSession)===null||t===void 0?void 0:t.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),q.actions.clearAssetCount(),q.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),q.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),q.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();q.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let t=await this.assetLabelsService.getUserAssetLabels();q.actions.assetLabels(t)}async loadAssetCount(t){let r=await this.assetCountsService.getUserAssetCount(t);r&&q.getState().assetCounts.allAsset[t]!==r.count&&q.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(t){let r=await this.assetCountsService.getUserBookmarkCountByMap(t);r&&q.getState().assetCounts.bookmarkByMap[t]!==r.count&&q.actions.setBookmarkCountByMap({count:r.count,mapId:t})}async reloadAssetCount(t){this.assetCountsService.clearCache();let r=Object.keys(q.getState().assetCounts.bookmarkByMap).length!==0;t===ae.BOOKMARKS&&r&&q.actions.clearBookmarkCountByMap(),q.getState().assetCounts.allAsset[t]!==void 0&&await this.loadAssetCount(t)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let r=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;q.actions.bookmarks(r)}}},sd=new Gi;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=sd);var qi=class{addCommand(t,r=!1){w.commands.add(t,r)}consumeCommand(t){return w.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new qi;var ce=h(A());var _a,Wt=class extends CustomEvent{constructor(t){super("ft-i18n-context-loaded",{detail:t})}},ad=Symbol("clearAfterUnitTest"),bn=class extends(0,ce.withEventBus)(B){constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[_a]=()=>{this.defaultMessages={},this.cache=new ce.CacheRegistry,this.listeners={}},this.currentUiLocale=w.getState().uiLocale,w.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=w.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let r=t.name.toLowerCase();this.cache.setFinal(r,t),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,r){var n;if(t=t.toLowerCase(),r&&Object.keys(r).length>0){let i={...(n=this.defaultMessages[t])!==null&&n!==void 0?n:{},...r};(0,ce.deepEqual)(this.defaultMessages[t],i)||(this.defaultMessages[t]=i,await this.notify(t))}return this.fetchContext(t)}resolveContext(t){var r,n;return this.fetchContext(t),(n=(r=this.cache.getNow(t))===null||r===void 0?void 0:r.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(t,r){let n=t.toLowerCase();return this.resolveContext(n)[r]}resolveMessage(t,r,...n){var i;let o=t.toLowerCase(),s=this.resolveContext(o);return new ce.ParametrizedLabelResolver((i=this.defaultMessages[o])!==null&&i!==void 0?i:{},s).resolve(r,...n)}async fetchContext(t){let r=!this.cache.has(t),n;try{n=await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t)),r&&await this.notify(t)}catch(i){!(i instanceof ce.CanceledPromiseError)&&r&&console.error(i)}return n}subscribe(t,r){var n;return t=t.toLowerCase(),this.listeners[t]=(n=this.listeners[t])!==null&&n!==void 0?n:new Set,this.listeners[t].add(r),()=>{var i;return(i=this.listeners[t])===null||i===void 0?void 0:i.delete(r)}}async notifyAll(){let t=Object.keys(this.listeners);document.body.dispatchEvent(new Wt({loadedContexts:t})),this.dispatchEvent(new Wt({loadedContexts:t})),await Promise.all(t.map(r=>this.notify(r,!1)))}async notify(t,r=!0){r&&(document.body.dispatchEvent(new Wt({loadedContexts:[t]})),this.dispatchEvent(new Wt({loadedContexts:[t]}))),this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(n=>(0,ce.delay)(0).then(()=>n()).catch(()=>null)))}};_a=ad;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends bn{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends bn{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var zt=window.FluidTopicsI18nService,An=window.FluidTopicsCustomI18nService;var Ra=h(A()),Yi=class{highlightHtml(t,r,n){(0,Ra.highlightHtml)(t,r,n)}};window.FluidTopicsHighlightHtmlService=new Yi;var La=h(A());var Xi=class{isDate(t){var r,n,i,o;return(o=(i=((n=(r=w.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(a=>a.key===t))===null||i===void 0?void 0:i.date)!==null&&o!==void 0?o:!1}format(t,r){var n,i,o,s;if(t==null)return"";try{return La.DateFormatter.format(t,(n=r?.locale)!==null&&n!==void 0?n:w.getState().uiLocale,(i=r?.longFormat)!==null&&i!==void 0?i:!1,(o=r?.withTime)!==null&&o!==void 0?o:!1,(s=r?.onlyTime)!==null&&s!==void 0?s:!1)}catch(a){throw console.error(`Date ${JSON.stringify(t)} is not valid`,a),a}}};window.FluidTopicsDateService=new Xi;var Na=h(A());var Rr=class{static get(t,r){var n,i;let o=w.getState(),{lang:s,region:a}=(i=(n=o.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&i!==void 0?i:{lang:"en",region:"US"};return new Na.SearchPlaceConverter(o.baseUrl,t??20,o.searchInAllLanguagesAllowed,r??`${s}-${a}`)}};var Zi=class{urlToSearchRequest(t){return Rr.get().parse(t)}searchRequestToUrl(t){return Rr.get().serialize(t)}};window.FluidTopicsUrlService=new Zi;var $e=h(A());var ht=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{currentItem:t}})}};ht.eventName="change";var Ji=class{itemName(t){return`fluid-topics-history-item-${t}`}get(t){let r=sessionStorage.getItem(this.itemName(t));return r?JSON.parse(r):void 0}set(t,r){sessionStorage.setItem(this.itemName(t),JSON.stringify(r))}},Pa=new Ji;var En=class e extends $e.WithEventBus{static build(){return new e(window.history,Pa,()=>window.location,!1)}constructor(t,r,n,i){var o,s;super(),this.history=t,this.historyStorage=r,this.windowLocation=n,this.states=[],this.realPushState=t.pushState,this.realReplaceState=t.replaceState,this.initialIndex=(s=(o=t.state)===null||o===void 0?void 0:o.index)!==null&&s!==void 0?s:t.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(i)}setCurrentState(t,r=!1){let n=r&&this.currentIndex===t.index-1;this.currentState={...this.buildCurrentState(),...t},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,$e.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new ht(this.currentItem())),0)}installProxies(){let t=r=>(n,i,[o,s,a])=>{let l=r(),c={...l===this.currentIndex?this.currentState:void 0,...o,index:l,href:typeof a=="string"?a:(a??this.windowLocation()).href};n.apply(i,[c,s,a]),this.setCurrentState(c,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:t(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:t(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",t=>this.setCurrentState(t.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(t){for(let r=this.history.length-1;r>=0;r--)t?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(t){var r;let n={...this.buildCurrentState(),...t,index:this.currentIndex,title:(r=t?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(t){this.addEventListener(ht.eventName,t)}removeHistoryChangeListener(t){this.removeEventListener(ht.eventName,t)}currentItem(){return(0,$e.deepCopy)(this.currentState)}back(){let t=this.previousDifferentMajorPosition();t>=0?this.history.go(t-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,$e.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(t){let r=this.states.filter(n=>!!n).filter(n=>n.index<this.currentIndex).reverse();return(0,$e.deepCopy)(r.find(n=>t(n)))}previousDifferentMajorPosition(){let t=this.currentIndex>0?this.currentIndex-1:0;for(;t>0&&!this.isDifferentMajorState(t);)t--;return t}forward(){let t=this.nextMajorPosition();t&&t<this.states.length?this.history.go(t-this.currentIndex):this.history.forward()}forwardItem(){let t=this.nextMajorPosition();if(t)return(0,$e.deepCopy)(this.states[t])}nextMajorPosition(){let t=this.currentIndex;if(!(t>=this.states.length)){do t++;while(t<this.states.length&&!this.isDifferentMajorState(t));return this.getHigherPositionInTheSameState(t)}}getHigherPositionInTheSameState(t){var r;let n=(r=this.states[t])===null||r===void 0?void 0:r.majorStateId;if(!n)return t;let i=t,o=t+1;for(;this.states.length>o&&!this.isDifferentMajorState(o,n);)this.hasState(o)&&(i=o),o++;return i}buildCurrentState(){var t,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(t=this.history.state)===null||t===void 0?void 0:t.title)!==null&&r!==void 0?r:document.title}}hasState(t){return this.states[t]!=null}isDifferentMajorState(t,r){var n;if(!this.hasState(t))return!1;let i=r??this.currentState.majorStateId,o=(n=this.states[t])===null||n===void 0?void 0:n.majorStateId;return o==null||o!=i}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=En.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:e=>window.FluidTopicsInternalHistoryService.backwardItemMatching(e),addHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(e),removeHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(e)});var Ma=h(T());var Da=Ma.css`
|
|
2
|
-
`;var
|
|
1
|
+
"use strict";(()=>{var lu=Object.create;var Uo=Object.defineProperty;var cu=Object.getOwnPropertyDescriptor;var uu=Object.getOwnPropertyNames;var du=Object.getPrototypeOf,pu=Object.prototype.hasOwnProperty;var Pt=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}};var fu=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of uu(t))!pu.call(e,i)&&i!==r&&Uo(e,i,{get:()=>t[i],enumerable:!(n=cu(t,i))||n.enumerable});return e};var f=(e,t,r)=>(r=e!=null?lu(du(e)):{},fu(t||!e||!e.__esModule?Uo(r,"default",{value:e,enumerable:!0}):r,e));var A=Pt((Wd,$o)=>{$o.exports=ftGlobals.wcUtils});var N=Pt((zd,Ho)=>{Ho.exports=ftGlobals.litDecorators});var T=Pt((vp,Fo)=>{Fo.exports=ftGlobals.lit});var eo=Pt((wv,za)=>{za.exports=ftGlobals.litRepeat});var mo=Pt((ng,Tl)=>{Tl.exports=ftGlobals.litUnsafeHTML});var Io=Pt((Eb,Hc)=>{Hc.exports=ftGlobals.litClassMap});var au=f(A());var Bo=f(A()),Vo=f(N());var ke=class extends Event{constructor(t,r,n,i){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=r,this.callback=n,this.subscribe=i??!1}};var Mt=class{constructor(t,r,n,i){if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(o,s)=>{this.unsubscribe&&(this.unsubscribe!==s&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=o,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(o,s)),this.unsubscribe=s},this.host=t,r.context!==void 0){let o=r;this.context=o.context,this.callback=o.callback,this.subscribe=o.subscribe??!1}else this.context=r,this.callback=n,this.subscribe=i??!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new ke(this.context,this.host,this.t,this.subscribe))}};var Yr=class{get value(){return this.o}set value(t){this.setValue(t)}setValue(t,r=!1){let n=r||!Object.is(t,this.o);this.o=t,n&&this.updateObservers()}constructor(t){this.subscriptions=new Map,this.updateObservers=()=>{for(let[r,{disposer:n}]of this.subscriptions)r(this.o,n)},t!==void 0&&(this.value=t)}addCallback(t,r,n){if(!n)return void t(this.value);this.subscriptions.has(t)||this.subscriptions.set(t,{disposer:()=>{this.subscriptions.delete(t)},consumerHost:r});let{disposer:i}=this.subscriptions.get(t);t(this.value,i)}clearCallbacks(){this.subscriptions.clear()}};var vi=class extends Event{constructor(t,r){super("context-provider",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=r}},Dt=class extends Yr{constructor(t,r,n){super(r.context!==void 0?r.initialValue:n),this.onContextRequest=i=>{if(i.context!==this.context)return;let o=i.contextTarget??i.composedPath()[0];o!==this.host&&(i.stopPropagation(),this.addCallback(i.callback,o,i.subscribe))},this.onProviderRequest=i=>{if(i.context!==this.context||(i.contextTarget??i.composedPath()[0])===this.host)return;let o=new Set;for(let[s,{consumerHost:a}]of this.subscriptions)o.has(s)||(o.add(s),a.dispatchEvent(new ke(this.context,a,s,!0)));i.stopPropagation()},this.host=t,r.context!==void 0?this.context=r.context:this.context=r,this.attachListeners(),this.host.addController?.(this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new vi(this.context,this.host))}};var yr=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=t=>{let r=this.pendingContextRequests.get(t.context);if(r===void 0)return;this.pendingContextRequests.delete(t.context);let{requests:n}=r;for(let{elementRef:i,callbackRef:o}of n){let s=i.deref(),a=o.deref();s===void 0||a===void 0||s.dispatchEvent(new ke(t.context,s,a,!0))}},this.onContextRequest=t=>{if(t.subscribe!==!0)return;let r=t.contextTarget??t.composedPath()[0],n=t.callback,i=this.pendingContextRequests.get(t.context);i===void 0&&this.pendingContextRequests.set(t.context,i={callbacks:new WeakMap,requests:[]});let o=i.callbacks.get(r);o===void 0&&i.callbacks.set(r,o=new WeakSet),o.has(n)||(o.add(n),i.requests.push({elementRef:new WeakRef(r),callbackRef:new WeakRef(n)}))}}attach(t){t.addEventListener("context-request",this.onContextRequest),t.addEventListener("context-provider",this.onContextProvider)}detach(t){t.removeEventListener("context-request",this.onContextRequest),t.removeEventListener("context-provider",this.onContextProvider)}};function xr({context:e}){return(t,r)=>{let n=new WeakMap;if(typeof r=="object")return{get(){return t.get.call(this)},set(i){return n.get(this).setValue(i),t.set.call(this,i)},init(i){return n.set(this,new Dt(this,{context:e,initialValue:i})),i}};{t.constructor.addInitializer((s=>{n.set(s,new Dt(s,{context:e}))}));let i=Object.getOwnPropertyDescriptor(t,r),o;if(i===void 0){let s=new WeakMap;o={get(){return s.get(this)},set(a){n.get(this).setValue(a),s.set(this,a)},configurable:!0,enumerable:!0}}else{let s=i.set;o={...i,set(a){n.get(this).setValue(a),s?.call(this,a)}}}return void Object.defineProperty(t,r,o)}}}function br({context:e,subscribe:t}){return(r,n)=>{typeof n=="object"?n.addInitializer((function(){new Mt(this,{context:e,callback:i=>{r.set.call(this,i)},subscribe:t})})):r.constructor.addInitializer((i=>{new Mt(i,{context:e,callback:o=>{i[n]=o},subscribe:t})}))}}var hu=function(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,r,o):s(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},gi=Symbol("asset-viewer-state-manager"),oe=(0,Bo.applyMixinOnce)(Symbol("toFtAssetViewerComponent"),function(e){class t extends e{willUpdate(n){super.willUpdate(n),n.has("viewerStateManager")&&(this.viewerStateManager?this.addStore(this.viewerStateManager.store,"viewer"):this.removeStore("viewer"))}connectedCallback(){super.connectedCallback(),this.viewerStateManager&&this.addStore(this.viewerStateManager.store,"viewer")}disconnectedCallback(){super.disconnectedCallback(),this.removeStore("viewer")}}return hu([br({context:gi,subscribe:!0}),(0,Vo.state)()],t.prototype,"viewerStateManager",void 0),t});var ja=f(T()),Kt=f(A());var Wo=f(A()),mu={setZoom:(e,t)=>{e.contentModifiers.zoom=t.payload},setRotation:(e,t)=>{e.contentModifiers.rotation=t.payload}},Xr=e=>Wo.FtReduxStore.get({name:"ft-viewer-"+e,initialState:{documentId:void 0,document:void 0,assetId:void 0,origin:void 0,descriptor:void 0,contentModifiers:{zoom:void 0,rotation:0},watermark:void 0},reducers:mu});var zo=f(A()),It=class extends zo.FtStateManager{constructor(t){super(),this.store=t}setZoom(t){this.store.actions.setZoom(t)}setRotation(t){this.store.actions.setRotation(t)}};var Fi=f(N());var Ko=f(N(),1);var yi=e=>t=>{window.customElements.get(e)||window.customElements.define(e,t)};function Go(e,t){return(0,Ko.property)({type:Object,converter:{fromAttribute:r=>{if(r==null)return Ar(e);try{return JSON.parse(r)}catch{return Ar(e)}},toAttribute:r=>JSON.stringify(r)},hasChanged:Er,...t??{}})}function vu(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;let r,n;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!Zr(e[n],t[n]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;for(n of e.entries())if(!Zr(n[1],t.get(n[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();let i=s=>Object.keys(s).filter(a=>s[a]!=null),o=i(e);if(r=o.length,r!==i(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){let s=o[n];if(!Zr(e[s],t[s]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function Zr(e,t){try{return vu(e,t)}catch{return!1}}function Er(e,t){return!Zr(e,t)}function Ar(e){return typeof window.structuredClone=="function"?structuredClone(e):e!=null?JSON.parse(JSON.stringify(e)):e}function Jr(e,t){let r=n=>n[e]===!0;return n=>{if(r(n))return n;let i=t(n);return i[e]=!0,i}}var qo=f(N(),1);var xi=e=>{let t=e??{};return(r,n)=>{var i;let o={hasChanged:Er,attribute:!1,...t};(0,qo.property)(o)(r,n);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(i=t.selector)!==null&&i!==void 0?i:(a=>a[n]),store:t.store})}};var Qr=class{constructor(){this.queue=[]}add(t,r=!1){r&&this.clear(t.type),this.queue.push(t)}consume(t){let r=this.queue.find(n=>n.type===t);return r&&(this.queue=this.queue.filter(n=>n!==r)),r}clear(t){typeof t=="string"?this.queue=this.queue.filter(r=>r.type!==t):this.queue=this.queue.filter(r=>!t.test(r.type))}};var ut=f(N(),1);var en=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,r){return this.callbacks=[t],this.debounce(r)}queue(t,r){return this.callbacks.push(t),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((r,n)=>{this.resolvePromise=r,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,r;let n=[...this.callbacks];this.callbacks=[];let i=(t=this.rejectPromise)!==null&&t!==void 0?t:(()=>null),o=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let s of n)try{await s()}catch(a){i(a);return}o(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Xo=f(T(),1);var tn=globalThis,gu=tn.ShadowRoot&&(tn.ShadyCSS===void 0||tn.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;var Yo=(e,t)=>{if(gu)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of t){let n=document.createElement("style"),i=tn.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,e.appendChild(n)}};var rn=class extends Xo.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let t=this.scopedRegistryConstructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,t.defineScopedElements(t.elementDefinitions));let r={...t.shadowRootOptions,customElements:t.registry},n=this.renderOptions.creationScope=this.attachShadow(r);return Yo(n,t.elementStyles),n}static canDefineScopedElement(t){return!!this.registry&&!this.registry.get(t)}static defineScopedElements(t){Object.entries(t).forEach(([r,n])=>this.defineScopedElement(r,n))}static defineScopedElement(t,r){yi(t)(r),this.canDefineScopedElement(t)&&this.registry.define(t,r)}canDefineScopedElement(t){return this.scopedRegistryConstructor.canDefineScopedElement(t)}defineScopedElements(t){this.scopedRegistryConstructor.defineScopedElements(t)}defineScopedElement(t,r){this.scopedRegistryConstructor.defineScopedElement(t,r)}};function Zo(e,t,...r){var n;let i=e.querySelector(t);for(let o of r)i=(n=i?.shadowRoot)===null||n===void 0?void 0:n.querySelector(o);return i}var Ut=function(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,r,o):s(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},ts,Jo=Symbol("constructorPrototype"),Qo=Symbol("constructorName"),rs=Symbol("exportpartsDebouncer"),es=Symbol("dynamicDependenciesLoaded"),kt=class e extends CustomEvent{constructor(){super(e.eventName,{bubbles:!0})}};kt.eventName="exportparts-updated";var Te=class extends rn{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[ts]=new en(5),this.scheduleExportpartsUpdate=()=>{var t,r,n;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(n=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&n!==void 0&&n)&&this[rs].run(()=>{var i,o;!((i=this.exportpartsPrefix)===null||i===void 0)&&i.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[Qo]=this.constructor.name,this[Jo]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Qo]&&Object.setPrototypeOf(this,this[Jo])}connectedCallback(){var t;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(n){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",n)}let r=this.constructor;r[es]||(r[es]=!0,this.importDynamicDependencies()),(t=this.shadowRoot)===null||t===void 0||t.addEventListener(kt.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.shadowRoot)===null||t===void 0||t.removeEventListener(kt.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.focusElementToFocus(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate(),t.has("exportparts")&&this.dispatchEvent(new kt)})}contentAvailableCallback(t){}focusElementToFocus(t){if(t.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:n,shadowPath:i}=this.elementToFocus;if(n!=null){let o=[...i??[],n];r=Zo(this.shadowRoot,...o)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){var r,n,i;if(((n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(o=>o.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((i=this.customStylesheet)!==null&&i!==void 0?i:"")}catch(o){console.error(o,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let o=document.createElement("style");o.classList.add("ft-lit-element--custom-stylesheet"),o.innerHTML=this.customStylesheet,this.shadowRoot.append(o)}}setExportpartsAttribute(t){var r,n,i,o,s,a;let l=p=>p!=null&&p.trim().length>0,c=t.filter(l).map(p=>p.trim());if(c.length===0){this.exportparts=void 0;return}let u=new Set;for(let p of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let h=(o=(i=p.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&o!==void 0?o:[],m=(a=(s=p.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(x=>x.split(":")[1]))!==null&&a!==void 0?a:[],v=[...h,...m].filter(l).map(x=>x.trim());for(let x of v)u.add(x)}if(u.size===0){this.exportparts=void 0;return}let d=[...u.values()].flatMap(p=>c.map(h=>`${p}:${h}--${p}`));this.exportparts=[...this.part,...d].join(", ")}};ts=rs;Ut([(0,ut.property)()],Te.prototype,"exportpartsPrefix",void 0);Ut([Go([])],Te.prototype,"exportpartsPrefixes",void 0);Ut([(0,ut.property)({reflect:!0})],Te.prototype,"exportparts",void 0);Ut([(0,ut.property)()],Te.prototype,"customStylesheet",void 0);Ut([(0,ut.property)()],Te.prototype,"elementToFocus",void 0);Ut([(0,ut.state)()],Te.prototype,"useAdoptedStyleSheets",void 0);function nn(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var Sr=Symbol("internalReduxEventsUnsubscribers"),qe=Symbol("internalStoresUnsubscribers"),dt=Symbol("internalStores"),yu=Jr(Symbol("withRedux"),function(e){var t,r,n;class i extends e{constructor(){super(...arguments),this[t]=new Map,this[r]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(a=>s.has(a))&&this.updateFromStores()}getUnnamedStore(){if(this[dt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[dt].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[dt].get(s)}addStore(s,a){var l;a=(l=a??s.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[dt].set(a,s),this.subscribeToStore(a,s),this.updateFromStores()}removeStore(s){let a=typeof s=="string"?s:s.name;this.unsubscribeFromStore(a),this[dt].delete(a)}setupStores(){this.unsubscribeFromStores(),this[dt].forEach((s,a)=>this.subscribeToStore(a,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,a)=>{let l=this.constructor.getPropertyOptions(a);if(!l?.attribute||!this.hasAttribute(typeof l?.attribute=="string"?l.attribute:a)){let c=this.getStore(s.store);c&&(s.store?this[qe].has(s.store):this[qe].size>0)&&(this[a]=s.selector(c.getState(),this))}})}subscribeToStore(s,a){var l;this[qe].set(s,a.subscribe(()=>this.updateFromStores())),this[Sr].set(s,[]),nn(a)&&a.eventBus&&((l=this.reduxConstructor.reduxEventListeners)===null||l===void 0||l.forEach((c,u)=>{if(typeof this[u]=="function"&&(!c.store||a.name===c.store)){let d=p=>this[u](p);a.addEventListener(c.eventName,d),this[Sr].get(s).push(()=>a.removeEventListener(c.eventName,d))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[qe].forEach((s,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(s){var a;this[qe].has(s)&&this[qe].get(s)(),this[qe].delete(s),(a=this[Sr].get(s))===null||a===void 0||a.forEach(l=>l()),this[Sr].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return t=qe,r=dt,n=Sr,i.reduxProperties=new Map,i.reduxReactiveProperties=new Set,i.reduxEventListeners=new Map,i}),ns=class extends yu(Te){};function se(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(0)var i,o;throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map((function(s){return"'"+s+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Ue(e){return!!e&&!!e[_]}function ge(e){var t;return!!e&&((function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===Ou})(e)||Array.isArray(e)||!!e[us]||!!(!((t=e.constructor)===null||t===void 0)&&t[us])||_i(e)||Ri(e))}function pt(e,t,r){r===void 0&&(r=!1),jt(e)===0?(r?Object.keys:Ht)(e).forEach((function(n){r&&typeof n=="symbol"||t(n,e[n],e)})):e.forEach((function(n,i){return t(i,n,e)}))}function jt(e){var t=e[_];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:_i(e)?2:Ri(e)?3:0}function $t(e,t){return jt(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function xu(e,t){return jt(e)===2?e.get(t):e[t]}function ds(e,t,r){var n=jt(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function ps(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function _i(e){return wu&&e instanceof Map}function Ri(e){return Cu&&e instanceof Set}function Ye(e){return e.o||e.t}function Li(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=ms(e);delete t[_];for(var r=Ht(t),n=0;n<r.length;n++){var i=r[n],o=t[i];o.writable===!1&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function Ni(e,t){return t===void 0&&(t=!1),Pi(e)||Ue(e)||!ge(e)||(jt(e)>1&&(e.set=e.add=e.clear=e.delete=bu),Object.freeze(e),t&&pt(e,(function(r,n){return Ni(n,!0)}),!0)),e}function bu(){se(2)}function Pi(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function _e(e){var t=Ti[e];return t||se(18,e),t}function Au(e,t){Ti[e]||(Ti[e]=t)}function wi(){return Cr}function bi(e,t){t&&(_e("Patches"),e.u=[],e.s=[],e.v=t)}function on(e){Ci(e),e.p.forEach(Eu),e.p=null}function Ci(e){e===Cr&&(Cr=e.l)}function is(e){return Cr={p:[],l:Cr,h:e,m:!0,_:0}}function Eu(e){var t=e[_];t.i===0||t.i===1?t.j():t.g=!0}function Ai(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||_e("ES5").S(t,e,n),n?(r[_].P&&(on(t),se(4)),ge(e)&&(e=sn(t,e),t.l||an(t,e)),t.u&&_e("Patches").M(r[_].t,e,t.u,t.s)):e=sn(t,r,[]),on(t),t.u&&t.v(t.u,t.s),e!==hs?e:void 0}function sn(e,t,r){if(Pi(t))return t;var n=t[_];if(!n)return pt(t,(function(a,l){return os(e,n,t,a,l,r)}),!0),t;if(n.A!==e)return t;if(!n.P)return an(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=Li(n.k):n.o,o=i,s=!1;n.i===3&&(o=new Set(i),i.clear(),s=!0),pt(o,(function(a,l){return os(e,n,i,a,l,r,s)})),an(e,i,!1),r&&e.u&&_e("Patches").N(n,r,e.u,e.s)}return n.o}function os(e,t,r,n,i,o,s){if(Ue(i)){var a=sn(e,i,o&&t&&t.i!==3&&!$t(t.R,n)?o.concat(n):void 0);if(ds(r,n,a),!Ue(a))return;e.m=!1}else s&&r.add(i);if(ge(i)&&!Pi(i)){if(!e.h.D&&e._<1)return;sn(e,i),t&&t.A.l||an(e,i)}}function an(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&Ni(t,r)}function Ei(e,t){var r=e[_];return(r?Ye(r):e)[t]}function ss(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function Xe(e){e.P||(e.P=!0,e.l&&Xe(e.l))}function Si(e){e.o||(e.o=Li(e.t))}function Oi(e,t,r){var n=_i(t)?_e("MapSet").F(t,r):Ri(t)?_e("MapSet").T(t,r):e.O?(function(i,o){var s=Array.isArray(i),a={i:s?1:0,A:o?o.A:wi(),P:!1,I:!1,R:{},l:o,t:i,k:null,o:null,j:null,C:!1},l=a,c=Or;s&&(l=[a],c=wr);var u=Proxy.revocable(l,c),d=u.revoke,p=u.proxy;return a.k=p,a.j=d,p})(t,r):_e("ES5").J(t,r);return(r?r.A:wi()).p.push(n),n}function Su(e){return Ue(e)||se(22,e),(function t(r){if(!ge(r))return r;var n,i=r[_],o=jt(r);if(i){if(!i.P&&(i.i<4||!_e("ES5").K(i)))return i.t;i.I=!0,n=as(r,o),i.I=!1}else n=as(r,o);return pt(n,(function(s,a){i&&xu(i.t,s)===a||ds(n,s,t(a))})),o===3?new Set(n):n})(e)}function as(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Li(e)}function fs(){function e(s,a){var l=o[s];return l?l.enumerable=a:o[s]=l={configurable:!0,enumerable:a,get:function(){var c=this[_];return Or.get(c,s)},set:function(c){var u=this[_];Or.set(u,s,c)}},l}function t(s){for(var a=s.length-1;a>=0;a--){var l=s[a][_];if(!l.P)switch(l.i){case 5:n(l)&&Xe(l);break;case 4:r(l)&&Xe(l)}}}function r(s){for(var a=s.t,l=s.k,c=Ht(l),u=c.length-1;u>=0;u--){var d=c[u];if(d!==_){var p=a[d];if(p===void 0&&!$t(a,d))return!0;var h=l[d],m=h&&h[_];if(m?m.t!==p:!ps(h,p))return!0}}var v=!!a[_];return c.length!==Ht(a).length+(v?0:1)}function n(s){var a=s.k;if(a.length!==s.t.length)return!0;var l=Object.getOwnPropertyDescriptor(a,a.length-1);if(l&&!l.get)return!0;for(var c=0;c<a.length;c++)if(!a.hasOwnProperty(c))return!0;return!1}function i(s){s.g&&se(3,JSON.stringify(Ye(s)))}var o={};Au("ES5",{J:function(s,a){var l=Array.isArray(s),c=(function(d,p){if(d){for(var h=Array(p.length),m=0;m<p.length;m++)Object.defineProperty(h,""+m,e(m,!0));return h}var v=ms(p);delete v[_];for(var x=Ht(v),b=0;b<x.length;b++){var E=x[b];v[E]=e(E,d||!!v[E].enumerable)}return Object.create(Object.getPrototypeOf(p),v)})(l,s),u={i:l?5:4,A:a?a.A:wi(),P:!1,I:!1,R:{},l:a,t:s,k:c,o:null,g:!1,C:!1};return Object.defineProperty(c,_,{value:u,writable:!0}),c},S:function(s,a,l){l?Ue(a)&&a[_].A===s&&t(s.p):(s.u&&(function c(u){if(u&&typeof u=="object"){var d=u[_];if(d){var p=d.t,h=d.k,m=d.R,v=d.i;if(v===4)pt(h,(function(O){O!==_&&(p[O]!==void 0||$t(p,O)?m[O]||c(h[O]):(m[O]=!0,Xe(d)))})),pt(p,(function(O){h[O]!==void 0||$t(h,O)||(m[O]=!1,Xe(d))}));else if(v===5){if(n(d)&&(Xe(d),m.length=!0),h.length<p.length)for(var x=h.length;x<p.length;x++)m[x]=!1;else for(var b=p.length;b<h.length;b++)m[b]=!0;for(var E=Math.min(h.length,p.length),C=0;C<E;C++)h.hasOwnProperty(C)||(m[C]=!0),m[C]===void 0&&c(h[C])}}}})(s.p[0]),t(s.p))},K:function(s){return s.i===4?r(s):n(s)}})}var ls,Cr,Mi=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",wu=typeof Map<"u",Cu=typeof Set<"u",cs=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",hs=Mi?Symbol.for("immer-nothing"):((ls={})["immer-nothing"]=!0,ls),us=Mi?Symbol.for("immer-draftable"):"__$immer_draftable",_=Mi?Symbol.for("immer-state"):"__$immer_state";var Ou=""+Object.prototype.constructor,Ht=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,ms=Object.getOwnPropertyDescriptors||function(e){var t={};return Ht(e).forEach((function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)})),t},Ti={},Or={get:function(e,t){if(t===_)return e;var r=Ye(e);if(!$t(r,t))return(function(i,o,s){var a,l=ss(o,s);return l?"value"in l?l.value:(a=l.get)===null||a===void 0?void 0:a.call(i.k):void 0})(e,r,t);var n=r[t];return e.I||!ge(n)?n:n===Ei(e.t,t)?(Si(e),e.o[t]=Oi(e.A.h,n,e)):n},has:function(e,t){return t in Ye(e)},ownKeys:function(e){return Reflect.ownKeys(Ye(e))},set:function(e,t,r){var n=ss(Ye(e),t);if(n?.set)return n.set.call(e.k,r),!0;if(!e.P){var i=Ei(Ye(e),t),o=i?.[_];if(o&&o.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(ps(r,i)&&(r!==void 0||$t(e.t,t)))return!0;Si(e),Xe(e)}return e.o[t]===r&&(r!==void 0||t in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[t])||(e.o[t]=r,e.R[t]=!0),!0},deleteProperty:function(e,t){return Ei(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,Si(e),Xe(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=Ye(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty:function(){se(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){se(12)}},wr={};pt(Or,(function(e,t){wr[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),wr.deleteProperty=function(e,t){return wr.set.call(this,e,t,void 0)},wr.set=function(e,t,r){return Or.set.call(this,e[0],t,r,e[0])};var Tu=(function(){function e(r){var n=this;this.O=cs,this.D=!0,this.produce=function(i,o,s){if(typeof i=="function"&&typeof o!="function"){var a=o;o=i;var l=n;return function(v){var x=this;v===void 0&&(v=a);for(var b=arguments.length,E=Array(b>1?b-1:0),C=1;C<b;C++)E[C-1]=arguments[C];return l.produce(v,(function(O){var k;return(k=o).call.apply(k,[x,O].concat(E))}))}}var c;if(typeof o!="function"&&se(6),s!==void 0&&typeof s!="function"&&se(7),ge(i)){var u=is(n),d=Oi(n,i,void 0),p=!0;try{c=o(d),p=!1}finally{p?on(u):Ci(u)}return typeof Promise<"u"&&c instanceof Promise?c.then((function(v){return bi(u,s),Ai(v,u)}),(function(v){throw on(u),v})):(bi(u,s),Ai(c,u))}if(!i||typeof i!="object"){if((c=o(i))===void 0&&(c=i),c===hs&&(c=void 0),n.D&&Ni(c,!0),s){var h=[],m=[];_e("Patches").M(i,c,h,m),s(h,m)}return c}se(21,i)},this.produceWithPatches=function(i,o){if(typeof i=="function")return function(c){for(var u=arguments.length,d=Array(u>1?u-1:0),p=1;p<u;p++)d[p-1]=arguments[p];return n.produceWithPatches(c,(function(h){return i.apply(void 0,[h].concat(d))}))};var s,a,l=n.produce(i,o,(function(c,u){s=c,a=u}));return typeof Promise<"u"&&l instanceof Promise?l.then((function(c){return[c,s,a]})):[l,s,a]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var t=e.prototype;return t.createDraft=function(r){ge(r)||se(8),Ue(r)&&(r=Su(r));var n=is(this),i=Oi(this,r,void 0);return i[_].C=!0,Ci(n),i},t.finishDraft=function(r,n){var i=r&&r[_],o=i.A;return bi(o,n),Ai(void 0,o)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!cs&&se(20),this.O=r},t.applyPatches=function(r,n){var i;for(i=n.length-1;i>=0;i--){var o=n[i];if(o.path.length===0&&o.op==="replace"){r=o.value;break}}i>-1&&(n=n.slice(i+1));var s=_e("Patches").$;return Ue(r)?s(r,n):this.produce(r,(function(a){return s(a,n)}))},e})(),te=new Tu,_u=te.produce,Fp=te.produceWithPatches.bind(te),Wp=te.setAutoFreeze.bind(te),zp=te.setUseProxies.bind(te),Kp=te.applyPatches.bind(te),Gp=te.createDraft.bind(te),qp=te.finishDraft.bind(te),ln=_u;function ft(e){"@babel/helpers - typeof";return ft=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ft(e)}function vs(e,t){if(ft(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ft(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function gs(e){var t=vs(e,"string");return ft(t)=="symbol"?t:t+""}function ys(e,t,r){return(t=gs(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xs(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Di(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xs(Object(r),!0).forEach(function(n){ys(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xs(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function K(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var bs=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),Ii=function(){return Math.random().toString(36).substring(7).split("").join(".")},cn={INIT:"@@redux/INIT"+Ii(),REPLACE:"@@redux/REPLACE"+Ii(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Ii()}};function Ru(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function ki(e,t,r){var n;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(K(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(K(1));return r(ki)(e,t)}if(typeof e!="function")throw new Error(K(2));var i=e,o=t,s=[],a=s,l=!1;function c(){a===s&&(a=s.slice())}function u(){if(l)throw new Error(K(3));return o}function d(v){if(typeof v!="function")throw new Error(K(4));if(l)throw new Error(K(5));var x=!0;return c(),a.push(v),function(){if(x){if(l)throw new Error(K(6));x=!1,c();var E=a.indexOf(v);a.splice(E,1),s=null}}}function p(v){if(!Ru(v))throw new Error(K(7));if(typeof v.type>"u")throw new Error(K(8));if(l)throw new Error(K(9));try{l=!0,o=i(o,v)}finally{l=!1}for(var x=s=a,b=0;b<x.length;b++){var E=x[b];E()}return v}function h(v){if(typeof v!="function")throw new Error(K(10));i=v,p({type:cn.REPLACE})}function m(){var v,x=d;return v={subscribe:function(E){if(typeof E!="object"||E===null)throw new Error(K(11));function C(){E.next&&E.next(u())}C();var O=x(C);return{unsubscribe:O}}},v[bs]=function(){return this},v}return p({type:cn.INIT}),n={dispatch:p,subscribe:d,getState:u,replaceReducer:h},n[bs]=m,n}function Lu(e){Object.keys(e).forEach(function(t){var r=e[t],n=r(void 0,{type:cn.INIT});if(typeof n>"u")throw new Error(K(12));if(typeof r(void 0,{type:cn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(K(13))})}function As(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var i=t[n];typeof e[i]=="function"&&(r[i]=e[i])}var o=Object.keys(r),s,a;try{Lu(r)}catch(l){a=l}return function(c,u){if(c===void 0&&(c={}),a)throw a;if(0)var d;for(var p=!1,h={},m=0;m<o.length;m++){var v=o[m],x=r[v],b=c[v],E=x(b,u);if(typeof E>"u"){var C=u&&u.type;throw new Error(K(14))}h[v]=E,p=p||E!==b}return p=p||o.length!==Object.keys(c).length,p?h:c}}function Bt(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function Es(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return function(){var i=n.apply(void 0,arguments),o=function(){throw new Error(K(15))},s={getState:i.getState,dispatch:function(){return o.apply(void 0,arguments)}},a=t.map(function(l){return l(s)});return o=Bt.apply(void 0,a)(i.dispatch),Di(Di({},i),{},{dispatch:o})}}}function Ss(e){var t=function(n){var i=n.dispatch,o=n.getState;return function(s){return function(a){return typeof a=="function"?a(i,o,e):s(a)}}};return t}var ws=Ss();ws.withExtraArgument=Ss;var Ui=ws;var Rs=(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),Nu=function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(c){return function(u){return l([c,u])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,i=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){r.label=c[1];break}if(c[0]===6&&r.label<o[1]){r.label=o[1],o=c;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(c);break}o[2]&&r.ops.pop(),r.trys.pop();continue}c=t.call(e,r)}catch(u){c=[6,u],i=0}finally{n=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},Vt=function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e},Pu=Object.defineProperty,Mu=Object.defineProperties,Du=Object.getOwnPropertyDescriptors,Cs=Object.getOwnPropertySymbols,Iu=Object.prototype.hasOwnProperty,ku=Object.prototype.propertyIsEnumerable,Os=function(e,t,r){return t in e?Pu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},Ze=function(e,t){for(var r in t||(t={}))Iu.call(t,r)&&Os(e,r,t[r]);if(Cs)for(var n=0,i=Cs(t);n<i.length;n++){var r=i[n];ku.call(t,r)&&Os(e,r,t[r])}return e},$i=function(e,t){return Mu(e,Du(t))},Uu=function(e,t,r){return new Promise(function(n,i){var o=function(l){try{a(r.next(l))}catch(c){i(c)}},s=function(l){try{a(r.throw(l))}catch(c){i(c)}},a=function(l){return l.done?n(l.value):Promise.resolve(l.value).then(o,s)};a((r=r.apply(e,t)).next())})};var $u=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Bt:Bt.apply(null,arguments)},ff=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function Hu(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var r=t;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return t===r}function Je(e,t){function r(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(t){var o=t.apply(void 0,n);if(!o)throw new Error("prepareAction did not return an object");return Ze(Ze({type:e,payload:o.payload},"meta"in o&&{meta:o.meta}),"error"in o&&{error:o.error})}return{type:e,payload:n[0]}}return r.toString=function(){return""+e},r.type=e,r.match=function(n){return n.type===e},r}var ju=(function(e){Rs(t,e);function t(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=e.apply(this,r)||this;return Object.setPrototypeOf(i,t.prototype),i}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,Vt([void 0],r[0].concat(this)))):new(t.bind.apply(t,Vt([void 0],r.concat(this))))},t})(Array),Bu=(function(e){Rs(t,e);function t(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=e.apply(this,r)||this;return Object.setPrototypeOf(i,t.prototype),i}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,Vt([void 0],r[0].concat(this)))):new(t.bind.apply(t,Vt([void 0],r.concat(this))))},t})(Array);function Bi(e){return ge(e)?ln(e,function(){}):e}function Vu(e){return typeof e=="boolean"}function Fu(){return function(t){return Wu(t)}}function Wu(e){e===void 0&&(e={});var t=e.thunk,r=t===void 0?!0:t,n=e.immutableCheck,i=n===void 0?!0:n,o=e.serializableCheck,s=o===void 0?!0:o,a=e.actionCreatorCheck,l=a===void 0?!0:a,c=new ju;if(r&&(Vu(r)?c.push(Ui):c.push(Ui.withExtraArgument(r.extraArgument))),0){if(i)var u;if(s)var d;if(l)var p}return c}var Hi=!0;function Ls(e){var t=Fu(),r=e||{},n=r.reducer,i=n===void 0?void 0:n,o=r.middleware,s=o===void 0?t():o,a=r.devTools,l=a===void 0?!0:a,c=r.preloadedState,u=c===void 0?void 0:c,d=r.enhancers,p=d===void 0?void 0:d,h;if(typeof i=="function")h=i;else if(Hu(i))h=As(i);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 m=s;if(typeof m=="function"&&(m=m(t),!Hi&&!Array.isArray(m)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Hi&&m.some(function(O){return typeof O!="function"}))throw new Error("each middleware provided to configureStore must be a function");var v=Es.apply(void 0,m),x=Bt;l&&(x=$u(Ze({trace:!Hi},typeof l=="object"&&l)));var b=new Bu(v),E=b;Array.isArray(p)?E=Vt([v],p):typeof p=="function"&&(E=p(b));var C=x.apply(void 0,E);return ki(h,u,C)}function Ns(e){var t={},r=[],n,i={addCase:function(o,s){var a=typeof o=="string"?o:o.type;if(!a)throw new Error("`builder.addCase` cannot be called with an empty action type");if(a in t)throw new Error("`builder.addCase` cannot be called with two reducers for the same action type");return t[a]=s,i},addMatcher:function(o,s){return r.push({matcher:o,reducer:s}),i},addDefaultCase:function(o){return n=o,i}};return e(i),[t,r,n]}function zu(e){return typeof e=="function"}function Ku(e,t,r,n){r===void 0&&(r=[]);var i=typeof t=="function"?Ns(t):[t,r,n],o=i[0],s=i[1],a=i[2],l;if(zu(e))l=function(){return Bi(e())};else{var c=Bi(e);l=function(){return c}}function u(d,p){d===void 0&&(d=l());var h=Vt([o[p.type]],s.filter(function(m){var v=m.matcher;return v(p)}).map(function(m){var v=m.reducer;return v}));return h.filter(function(m){return!!m}).length===0&&(h=[a]),h.reduce(function(m,v){if(v)if(Ue(m)){var x=m,b=v(x,p);return b===void 0?m:b}else{if(ge(m))return ln(m,function(E){return v(E,p)});var b=v(m,p);if(b===void 0){if(m===null)return m;throw Error("A case reducer on a non-draftable value must not return undefined")}return b}return m},d)}return u.getInitialState=l,u}function Gu(e,t){return e+"/"+t}function Ps(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof e.initialState=="function"?e.initialState:Bi(e.initialState),n=e.reducers||{},i=Object.keys(n),o={},s={},a={};i.forEach(function(u){var d=n[u],p=Gu(t,u),h,m;"reducer"in d?(h=d.reducer,m=d.prepare):h=d,o[u]=h,s[p]=h,a[u]=m?Je(p,m):Je(p)});function l(){var u=typeof e.extraReducers=="function"?Ns(e.extraReducers):[e.extraReducers],d=u[0],p=d===void 0?{}:d,h=u[1],m=h===void 0?[]:h,v=u[2],x=v===void 0?void 0:v,b=Ze(Ze({},p),s);return Ku(r,function(E){for(var C in b)E.addCase(C,b[C]);for(var O=0,k=m;O<k.length;O++){var M=k[O];E.addMatcher(M.matcher,M.reducer)}x&&E.addDefaultCase(x)})}var c;return{name:t,reducer:function(u,d){return c||(c=l()),c(u,d)},actions:a,caseReducers:o,getInitialState:function(){return c||(c=l()),c.getInitialState()}}}var qu="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Yu=function(e){e===void 0&&(e=21);for(var t="",r=e;r--;)t+=qu[Math.random()*64|0];return t},Xu=["name","message","stack","code"],ji=(function(){function e(t,r){this.payload=t,this.meta=r}return e})(),Ts=(function(){function e(t,r){this.payload=t,this.meta=r}return e})(),Zu=function(e){if(typeof e=="object"&&e!==null){for(var t={},r=0,n=Xu;r<n.length;r++){var i=n[r];typeof e[i]=="string"&&(t[i]=e[i])}return t}return{message:String(e)}},gf=(function(){function e(t,r,n){var i=Je(t+"/fulfilled",function(u,d,p,h){return{payload:u,meta:$i(Ze({},h||{}),{arg:p,requestId:d,requestStatus:"fulfilled"})}}),o=Je(t+"/pending",function(u,d,p){return{payload:void 0,meta:$i(Ze({},p||{}),{arg:d,requestId:u,requestStatus:"pending"})}}),s=Je(t+"/rejected",function(u,d,p,h,m){return{payload:h,error:(n&&n.serializeError||Zu)(u||"Rejected"),meta:$i(Ze({},m||{}),{arg:p,requestId:d,rejectedWithValue:!!h,requestStatus:"rejected",aborted:u?.name==="AbortError",condition:u?.name==="ConditionError"})}}),a=!1,l=typeof AbortController<"u"?AbortController:(function(){function u(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return u.prototype.abort=function(){},u})();function c(u){return function(d,p,h){var m=n?.idGenerator?n.idGenerator(u):Yu(),v=new l,x,b=!1;function E(O){x=O,v.abort()}var C=(function(){return Uu(this,null,function(){var O,k,M,Ke,mi,Ge,Q;return Nu(this,function(ie){switch(ie.label){case 0:return ie.trys.push([0,4,,5]),Ke=(O=n?.condition)==null?void 0:O.call(n,u,{getState:p,extra:h}),Qu(Ke)?[4,Ke]:[3,2];case 1:Ke=ie.sent(),ie.label=2;case 2:if(Ke===!1||v.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return b=!0,mi=new Promise(function(ee,ct){return v.signal.addEventListener("abort",function(){return ct({name:"AbortError",message:x||"Aborted"})})}),d(o(m,u,(k=n?.getPendingMeta)==null?void 0:k.call(n,{requestId:m,arg:u},{getState:p,extra:h}))),[4,Promise.race([mi,Promise.resolve(r(u,{dispatch:d,getState:p,extra:h,requestId:m,signal:v.signal,abort:E,rejectWithValue:function(ee,ct){return new ji(ee,ct)},fulfillWithValue:function(ee,ct){return new Ts(ee,ct)}})).then(function(ee){if(ee instanceof ji)throw ee;return ee instanceof Ts?i(ee.payload,m,u,ee.meta):i(ee,m,u)})])];case 3:return M=ie.sent(),[3,5];case 4:return Ge=ie.sent(),M=Ge instanceof ji?s(null,m,u,Ge.payload,Ge.meta):s(Ge,m,u),[3,5];case 5:return Q=n&&!n.dispatchConditionRejection&&s.match(M)&&M.meta.condition,Q||d(M),[2,M]}})})})();return Object.assign(C,{abort:E,requestId:m,arg:u,unwrap:function(){return C.then(Ju)}})}}return Object.assign(c,{pending:o,rejected:s,fulfilled:i,typePrefix:t})}return e.withTypes=function(){return e},e})();function Ju(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Qu(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Ms="listener",Ds="completed",Is="cancelled",yf="task-"+Is,xf="task-"+Ds,bf=Ms+"-"+Is,Af=Ms+"-"+Ds;var Vi="listenerMiddleware";var Ef=Je(Vi+"/add"),Sf=Je(Vi+"/removeAll"),wf=Je(Vi+"/remove");var _s,Cf=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(_s||(_s=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},ed=function(e){return function(t){setTimeout(t,e)}},Of=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:ed(10);fs();var td=Jr(Symbol("withEventBus"),function(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(r,n,i){this.eventBus.addEventListener(r,n,i)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,n,i){this.eventBus.removeEventListener(r,n,i)}}}),un=class extends td(Object){};window.ftReduxStores||(window.ftReduxStores={});var ks=class e extends un{static get(t){var r;let n=typeof t=="string"?t:t.name,i=typeof t=="string"?void 0:t,o=window.ftReduxStores[n];if(nn(o))return o;if(i==null)return;let s=Ps({...i,reducers:(r=i.reducers)!==null&&r!==void 0?r:{}}),a=Ls({reducer:(l,c)=>{if(c.type==="CLEAR_FT_REDUX_STORE"){let u=Ar(s.getInitialState());for(let d of c.keeping)u[d]=(l??u)[d];return u}else if(typeof c.type=="string"&&c.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...l,...c.overwrites};return s.reducer(l,c)}});return window.ftReduxStores[i.name]=new e(s,a,i.eventBus)}constructor(t,r,n){super(),this.reduxSlice=t,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new Qr;let i=o=>o!=null?JSON.parse(JSON.stringify(o)):o;this.actions=new Proxy(this.reduxSlice.actions,{get:(o,s,a)=>{let l=s,c=o[l];return c?(...u)=>{let d=c(...u.map(i));return this.reduxStore.dispatch(d),d}:u=>{this.setState({[l]:i(u)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...t){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:t})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var dn=class{static format(t,r,n,i,o){return window.moment?window.moment(t).locale(r).format(this.getMomentDateFormat(n,i,!!o)):this.getIntlDateTime(t,r,n,i,!!o)}static getMomentDateFormat(t,r,n){return n?"LT":t?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(t,r,n,i,o){let s=typeof t=="string"?new Date(t):t,a=new Intl.DateTimeFormat(r,{dateStyle:n?"medium":"short"}).format(s),l=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(s);return o?l:i?`${a} ${l}`:a}static getTimezoneAsString(){let t=n=>String(Math.floor(n)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${t(Math.abs(r)/60)}:${t(Math.abs(r)%60)}`}};var pn=f(A()),rd="ft-app-info",Re=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};Re.eventName="authentication-change";var Tr=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};Tr.eventName="ui-locale-changed";var nd={session:(e,t)=>{(0,pn.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>w.dispatchEvent(new Re(t.payload)),0))}},w=pn.FtReduxStore.get({name:rd,reducers:nd,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],availableContentLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,searchLanguageSetsUiLanguage:!1,uiLanguageSetsSearchLanguage:!1,uiLanguageSetsReaderLanguage:!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 Us=f(A()),fn=function(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,r,o):s(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},eh=(0,Us.applyMixinOnce)(Symbol("withDateFormat"),function(e){class t extends e{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(w)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var i,o;return((o=(i=this.metadataDescriptors.find(a=>a.key===n))===null||i===void 0?void 0:i.date)!==null&&o!==void 0?o:!1)?a=>dn.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return fn([(0,Fi.property)({type:Boolean})],t.prototype,"useLongDateFormat",void 0),fn([(0,Fi.property)({type:Boolean})],t.prototype,"useDateTimeFormat",void 0),fn([xi({store:w.name,selector:r=>{var n,i;return(i=(n=r.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&i!==void 0?i:[]}})],t.prototype,"metadataDescriptors",void 0),fn([xi({store:w.name})],t.prototype,"uiLocale",void 0),t});var $s;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})($s||($s={}));var Hs;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(Hs||(Hs={}));var js;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(js||(js={}));var Bs;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(Bs||(Bs={}));var Vs;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Vs||(Vs={}));var Fs;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(Fs||(Fs={}));var Ws;(function(e){e.OFFICIAL="OFFICIAL",e.AI="AI"})(Ws||(Ws={}));var zs;(function(e){e.BOOKMARK__CREATE="BOOKMARK__CREATE",e.BOOKMARK__DELETE="BOOKMARK__DELETE",e.CASE_DEFLECTION__START="CASE_DEFLECTION__START",e.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",e.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",e.CHATBOT__RATE="CHATBOT__RATE",e.COLLECTION__CREATE="COLLECTION__CREATE",e.COLLECTION__UPDATE="COLLECTION__UPDATE",e.COLLECTION__DELETE="COLLECTION__DELETE",e.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",e.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",e.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",e.DOCUMENT__PRINT="DOCUMENT__PRINT",e.DOCUMENT__PROCESS="DOCUMENT__PROCESS",e.DOCUMENT__RATE="DOCUMENT__RATE",e.DOCUMENT__SEARCH="DOCUMENT__SEARCH",e.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",e.DOCUMENT__UNRATE="DOCUMENT__UNRATE",e.FEEDBACK__SEND="FEEDBACK__SEND",e.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",e.AI__RATE="AI__RATE",e.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",e.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",e.KHUB__PROCESS="KHUB__PROCESS",e.KHUB__SEARCH="KHUB__SEARCH",e.LABELS__DOWNLOAD="LABELS__DOWNLOAD",e.LINK__SHARE="LINK__SHARE",e.PAGE__DISPLAY="PAGE__DISPLAY",e.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",e.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",e.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",e.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",e.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",e.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",e.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",e.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",e.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",e.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",e.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",e.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",e.TOPIC__RATE="TOPIC__RATE",e.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",e.TOPIC__UNRATE="TOPIC__UNRATE",e.USER__LOGIN="USER__LOGIN",e.USER__LOGOUT="USER__LOGOUT",e.HEARTBEAT="HEARTBEAT"})(zs||(zs={}));var Ks;(function(e){e.STANDARD="STANDARD",e.STRUCTURAL="STRUCTURAL"})(Ks||(Ks={}));var Gs;(function(e){e.THIRD_PARTY="THIRD_PARTY",e.OFF_THE_GRID="OFF_THE_GRID",e.CONTENT_PACKAGER="CONTENT_PACKAGER",e.PAGES="PAGES",e.DESIGNED_READER="DESIGNED_READER"})(Gs||(Gs={}));var qs;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT",e.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",e.LINK_PREVIEW="LINK_PREVIEW",e.UD_VIEWER="UD_VIEWER",e.ASSET_VIEWER="ASSET_VIEWER"})(qs||(qs={}));var Ys;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(Ys||(Ys={}));var Xs;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(Xs||(Xs={}));var Zs;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(Zs||(Zs={}));var Js;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(Js||(Js={}));var Qs;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR",e.CUSTOM="CUSTOM"})(Qs||(Qs={}));var ea;(function(e){e.OPTIONAL="OPTIONAL",e.MANDATORY="MANDATORY"})(ea||(ea={}));var ta;(function(e){e.ASC="ASC",e.DESC="DESC"})(ta||(ta={}));var ra;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(ra||(ra={}));var na;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(na||(na={}));var ia;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(ia||(ia={}));var oa;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(oa||(oa={}));var sa;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(sa||(sa={}));var aa;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(aa||(aa={}));var la;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.HTML_PACKAGE="HTML_PACKAGE",e.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(la||(la={}));var ca;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(ca||(ca={}));var ua;(function(e){e.PLAIN_TEXT="PLAIN_TEXT",e.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",e.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(ua||(ua={}));var D;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",e.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN"})(D||(D={}));var ae;(function(e){e.SEARCHES="SEARCHES",e.BOOKMARKS="BOOKMARKS",e.BOOKS="BOOKS",e.COLLECTIONS="COLLECTIONS"})(ae||(ae={}));var da;(function(e){e.UNAUTHENTICATED="UNAUTHENTICATED",e.USER_INCOMPLETE="USER_INCOMPLETE",e.MFA_REQUIRED="MFA_REQUIRED",e.AUTHENTICATED="AUTHENTICATED"})(da||(da={}));var pa;(function(e){e.UNREACHABLE="UNREACHABLE",e.UNAUTHORIZED="UNAUTHORIZED",e.FORBIDDEN="FORBIDDEN",e.INCOMPATIBLE="INCOMPATIBLE",e.FAILED="FAILED",e.OK="OK"})(pa||(pa={}));var fa;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(fa||(fa={}));var ha;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SUMMARY="SUMMARY",e.SEMANTIC_SEARCH="SEMANTIC_SEARCH",e.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",e.DOCUMENTATION="DOCUMENTATION",e.OTHER="OTHER"})(ha||(ha={}));var ma;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SLOW="SLOW",e.OTHER="OTHER"})(ma||(ma={}));var va;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(va||(va={}));var ga;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(ga||(ga={}));var ya;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(ya||(ya={}));var xa;(function(e){e.IN_PROGRESS="IN_PROGRESS",e.ERROR="ERROR",e.DONE="DONE"})(xa||(xa={}));var ba;(function(e){e.HTML="HTML",e.MARKDOWN="MARKDOWN"})(ba||(ba={}));var Aa;(function(e){e.SOURCES="SOURCES",e.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",e.VOCABULARIES="VOCABULARIES",e.METADATA="METADATA",e.PRETTY_URL="PRETTY_URL",e.ACCESS_RULE="ACCESS_RULE",e.DESIGNED_PAGES="DESIGNED_PAGES",e.THEME_STUDIO="THEME_STUDIO",e.PORTAL_GENERAL="PORTAL_GENERAL",e.ASSETS="ASSETS",e.CODE_LIBRARY="CODE_LIBRARY",e.THEME="THEME",e.CONTENT_STYLES="CONTENT_STYLES",e.HOMEPAGE="HOMEPAGE",e.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",e.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",e.PORTAL_METADATA="PORTAL_METADATA",e.LANGUAGES="LANGUAGES",e.PRINT_TEMPLATES="PRINT_TEMPLATES",e.OFFLINE="OFFLINE",e.CUSTOM_JS="CUSTOM_JS",e.CONFIDENTIALITY="CONFIDENTIALITY",e.NOTIFICATIONS="NOTIFICATIONS"})(Aa||(Aa={}));var hn;(function(e){e.MAP="MAP",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(hn||(hn={}));var id={[D.PERSONAL_BOOK_SHARE_USER]:[D.PERSONAL_BOOK_USER],[D.HTML_EXPORT_USER]:[D.PERSONAL_BOOK_USER],[D.PDF_EXPORT_USER]:[D.PERSONAL_BOOK_USER],[D.KHUB_ADMIN]:[D.CONTENT_PUBLISHER],[D.ADMIN]:[D.KHUB_ADMIN,D.USERS_ADMIN,D.PORTAL_ADMIN,D.BEHAVIOR_DATA_USER],[D.GENERATIVE_AI_EXPORT_USER]:[D.GENERATIVE_AI_USER]};function Ea(e,t){return e===t||(id[e]??[]).some(r=>Ea(r,t))}function Sa(e,t){return e==null?!1:(Array.isArray(e)?e:Array.isArray(e.roles)?e.roles:Array.isArray(e.profile?.roles)?e.profile.roles:[]).some(n=>Ea(n,t))}var xn=f(A());var Wi=f(A());var le=class e{static get(t){let{baseUrl:r,apiIntegrationIdentifier:n}=w.getState(),i=t??n;if(r&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,i,!0)}static await(t){return new Promise(r=>{let n=e.get(t);if(n)r(n);else{let i=w.subscribe(()=>{n=e.get(t),n&&(i(),r(n))})}})}};var Ft=class{constructor(t){this.overrideApi=t}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:le.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):le.await()}};var B=class extends Ft{constructor(t=!0,r){var n;super(r),this.sortObjectFields=(o,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([a],[l])=>a.localeCompare(l)));let i=this.constructor;i.commonCache=(n=i.commonCache)!==null&&n!==void 0?n:new Wi.CacheRegistry,this.cache=t?i.commonCache:new Wi.CacheRegistry}clearCache(){this.cache.clearAll()}hash(t){return String(Array.from(JSON.stringify(t,this.sortObjectFields)).reduce((r,n)=>0|31*r+n.charCodeAt(0),0))}};var mn=class extends B{async listMySearches(){let{session:t}=w.getState();return Sa(t,D.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),300*1e3):[]}};var vn=class extends B{async listMyBookmarks(){let t=w.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),300*1e3):[]}};var gn=class extends B{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(t){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${t}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(t){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${t}`),this.CACHE_DURATION)}isAuthenticated(){let t=w.getState().session;return!!t?.sessionAuthenticated}};var yn=class extends B{constructor(){super(...arguments),this.CACHE_DURATION=180*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 t=w.getState().session;return!!t?.sessionAuthenticated}};var od="ft-user-assets",sd={setAssetCount:(e,t)=>{let{userAssetType:r,count:n}=t.payload.assetCount;e.assetCounts.allAsset[r]=n},clearAssetCount:e=>{Object.values(ae).forEach(t=>{e.assetCounts.allAsset[t]=void 0})},setBookmarkCountByMap:(e,t)=>{let r=t.payload.mapId;e.assetCounts.bookmarkByMap[r]=t.payload.count},clearBookmarkCountByMap:e=>{e.assetCounts.bookmarkByMap={}},addAsset:(e,t)=>{let{assetType:r,mapId:n,asset:i}=t.payload;Ki(e,r,[...zi(e,r),i]),wa(e,r,1,n),Ca(e,i)},editAsset:(e,t)=>{let{assetType:r,asset:n}=t.payload;Ki(e,r,zi(e,r).map(i=>i.id===n.id?n:i)),Ca(e,n)},removeAsset:(e,t)=>{let{assetType:r,mapId:n,assetId:i}=t.payload;Ki(e,r,zi(e,r).filter(o=>o.id!==i)),wa(e,r,-1,n)}},Oa={[ae.SEARCHES]:"savedSearches",[ae.BOOKMARKS]:"bookmarks",[ae.BOOKS]:void 0,[ae.COLLECTIONS]:void 0},zi=(e,t)=>{var r;let n=Oa[t];return n?(r=e[n])!==null&&r!==void 0?r:[]:[]},Ki=(e,t,r)=>{let n=Oa[t];n&&(e[n]=r)},wa=(e,t,r,n)=>{let i=e.assetCounts.allAsset[t];if(i!==void 0&&(e.assetCounts.allAsset[t]=Math.max(0,i+r),t===ae.BOOKMARKS&&n)){let o=e.assetCounts.bookmarkByMap[n];e.assetCounts.bookmarkByMap[n]=Math.max(0,o+r)}},Ca=(e,t)=>{let r=e.assetLabels.map(i=>i.title),n=t.labels.filter(i=>!r.includes(i)).map(i=>({title:i}));e.assetLabels.push(...n)},q=xn.FtReduxStore.get({name:od,reducers:sd,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(ae).map(e=>[e,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Gi=class{constructor(t=new gn,r=new yn){this.assetCountsService=t,this.assetLabelsService=r,this.currentSession=w.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new vn,this.savedSearchesService=new mn,w.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:r}=w.getState();(0,xn.deepEqual)((t=this.currentSession)===null||t===void 0?void 0:t.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),q.actions.clearAssetCount(),q.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),q.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),q.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();q.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let t=await this.assetLabelsService.getUserAssetLabels();q.actions.assetLabels(t)}async loadAssetCount(t){let r=await this.assetCountsService.getUserAssetCount(t);r&&q.getState().assetCounts.allAsset[t]!==r.count&&q.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(t){let r=await this.assetCountsService.getUserBookmarkCountByMap(t);r&&q.getState().assetCounts.bookmarkByMap[t]!==r.count&&q.actions.setBookmarkCountByMap({count:r.count,mapId:t})}async reloadAssetCount(t){this.assetCountsService.clearCache();let r=Object.keys(q.getState().assetCounts.bookmarkByMap).length!==0;t===ae.BOOKMARKS&&r&&q.actions.clearBookmarkCountByMap(),q.getState().assetCounts.allAsset[t]!==void 0&&await this.loadAssetCount(t)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let r=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;q.actions.bookmarks(r)}}},ad=new Gi;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=ad);var qi=class{addCommand(t,r=!1){w.commands.add(t,r)}consumeCommand(t){return w.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new qi;var ce=f(A());var Ta,Wt=class extends CustomEvent{constructor(t){super("ft-i18n-context-loaded",{detail:t})}},ld=Symbol("clearAfterUnitTest"),bn=class extends(0,ce.withEventBus)(B){constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Ta]=()=>{this.defaultMessages={},this.cache=new ce.CacheRegistry,this.listeners={}},this.currentUiLocale=w.getState().uiLocale,w.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=w.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let r=t.name.toLowerCase();this.cache.setFinal(r,t),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,r){var n;if(t=t.toLowerCase(),r&&Object.keys(r).length>0){let i={...(n=this.defaultMessages[t])!==null&&n!==void 0?n:{},...r};(0,ce.deepEqual)(this.defaultMessages[t],i)||(this.defaultMessages[t]=i,await this.notify(t))}return this.fetchContext(t)}resolveContext(t){var r,n;return this.fetchContext(t),(n=(r=this.cache.getNow(t))===null||r===void 0?void 0:r.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(t,r){let n=t.toLowerCase();return this.resolveContext(n)[r]}resolveMessage(t,r,...n){var i;let o=t.toLowerCase(),s=this.resolveContext(o);return new ce.ParametrizedLabelResolver((i=this.defaultMessages[o])!==null&&i!==void 0?i:{},s).resolve(r,...n)}async fetchContext(t){let r=!this.cache.has(t),n;try{n=await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t)),r&&await this.notify(t)}catch(i){!(i instanceof ce.CanceledPromiseError)&&r&&console.error(i)}return n}subscribe(t,r){var n;return t=t.toLowerCase(),this.listeners[t]=(n=this.listeners[t])!==null&&n!==void 0?n:new Set,this.listeners[t].add(r),()=>{var i;return(i=this.listeners[t])===null||i===void 0?void 0:i.delete(r)}}async notifyAll(){let t=Object.keys(this.listeners);document.body.dispatchEvent(new Wt({loadedContexts:t})),this.dispatchEvent(new Wt({loadedContexts:t})),await Promise.all(t.map(r=>this.notify(r,!1)))}async notify(t,r=!0){r&&(document.body.dispatchEvent(new Wt({loadedContexts:[t]})),this.dispatchEvent(new Wt({loadedContexts:[t]}))),this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(n=>(0,ce.delay)(0).then(()=>n()).catch(()=>null)))}};Ta=ld;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends bn{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends bn{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var zt=window.FluidTopicsI18nService,An=window.FluidTopicsCustomI18nService;var _a=f(A()),Yi=class{highlightHtml(t,r,n){(0,_a.highlightHtml)(t,r,n)}};window.FluidTopicsHighlightHtmlService=new Yi;var Ra=f(A());var Xi=class{isDate(t){var r,n,i,o;return(o=(i=((n=(r=w.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(a=>a.key===t))===null||i===void 0?void 0:i.date)!==null&&o!==void 0?o:!1}format(t,r){var n,i,o,s;if(t==null)return"";try{return Ra.DateFormatter.format(t,(n=r?.locale)!==null&&n!==void 0?n:w.getState().uiLocale,(i=r?.longFormat)!==null&&i!==void 0?i:!1,(o=r?.withTime)!==null&&o!==void 0?o:!1,(s=r?.onlyTime)!==null&&s!==void 0?s:!1)}catch(a){throw console.error(`Date ${JSON.stringify(t)} is not valid`,a),a}}};window.FluidTopicsDateService=new Xi;var La=f(A());var _r=class{static get(t,r){var n,i;let o=w.getState(),{lang:s,region:a}=(i=(n=o.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&i!==void 0?i:{lang:"en",region:"US"};return new La.SearchPlaceConverter(o.baseUrl,t??20,o.searchInAllLanguagesAllowed,r??`${s}-${a}`)}};var Zi=class{urlToSearchRequest(t){return _r.get().parse(t)}searchRequestToUrl(t){return _r.get().serialize(t)}};window.FluidTopicsUrlService=new Zi;var $e=f(A());var ht=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{currentItem:t}})}};ht.eventName="change";var Ji=class{itemName(t){return`fluid-topics-history-item-${t}`}get(t){let r=sessionStorage.getItem(this.itemName(t));return r?JSON.parse(r):void 0}set(t,r){sessionStorage.setItem(this.itemName(t),JSON.stringify(r))}},Na=new Ji;var En=class e extends $e.WithEventBus{static build(){return new e(window.history,Na,()=>window.location,!1)}constructor(t,r,n,i){var o,s;super(),this.history=t,this.historyStorage=r,this.windowLocation=n,this.states=[],this.realPushState=t.pushState,this.realReplaceState=t.replaceState,this.initialIndex=(s=(o=t.state)===null||o===void 0?void 0:o.index)!==null&&s!==void 0?s:t.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(i)}setCurrentState(t,r=!1){let n=r&&this.currentIndex===t.index-1;this.currentState={...this.buildCurrentState(),...t},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,$e.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new ht(this.currentItem())),0)}installProxies(){let t=r=>(n,i,[o,s,a])=>{let l=r(),c={...l===this.currentIndex?this.currentState:void 0,...o,index:l,href:typeof a=="string"?a:(a??this.windowLocation()).href};n.apply(i,[c,s,a]),this.setCurrentState(c,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:t(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:t(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",t=>this.setCurrentState(t.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(t){for(let r=this.history.length-1;r>=0;r--)t?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(t){var r;let n={...this.buildCurrentState(),...t,index:this.currentIndex,title:(r=t?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(t){this.addEventListener(ht.eventName,t)}removeHistoryChangeListener(t){this.removeEventListener(ht.eventName,t)}currentItem(){return(0,$e.deepCopy)(this.currentState)}back(){let t=this.previousDifferentMajorPosition();t>=0?this.history.go(t-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,$e.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(t){let r=this.states.filter(n=>!!n).filter(n=>n.index<this.currentIndex).reverse();return(0,$e.deepCopy)(r.find(n=>t(n)))}previousDifferentMajorPosition(){let t=this.currentIndex>0?this.currentIndex-1:0;for(;t>0&&!this.isDifferentMajorState(t);)t--;return t}forward(){let t=this.nextMajorPosition();t&&t<this.states.length?this.history.go(t-this.currentIndex):this.history.forward()}forwardItem(){let t=this.nextMajorPosition();if(t)return(0,$e.deepCopy)(this.states[t])}nextMajorPosition(){let t=this.currentIndex;if(!(t>=this.states.length)){do t++;while(t<this.states.length&&!this.isDifferentMajorState(t));return this.getHigherPositionInTheSameState(t)}}getHigherPositionInTheSameState(t){var r;let n=(r=this.states[t])===null||r===void 0?void 0:r.majorStateId;if(!n)return t;let i=t,o=t+1;for(;this.states.length>o&&!this.isDifferentMajorState(o,n);)this.hasState(o)&&(i=o),o++;return i}buildCurrentState(){var t,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(t=this.history.state)===null||t===void 0?void 0:t.title)!==null&&r!==void 0?r:document.title}}hasState(t){return this.states[t]!=null}isDifferentMajorState(t,r){var n;if(!this.hasState(t))return!1;let i=r??this.currentState.majorStateId,o=(n=this.states[t])===null||n===void 0?void 0:n.majorStateId;return o==null||o!=i}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=En.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:e=>window.FluidTopicsInternalHistoryService.backwardItemMatching(e),addHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(e),removeHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(e)});var Pa=f(T());var Ma=Pa.css`
|
|
2
|
+
`;var ka=f(T()),re=f(N()),vt=f(A());var mt=f(A());function Da(e,t){let{authenticationRequired:r,session:n}=w.getState();return r&&!n?.sessionAuthenticated?Promise.resolve(t):e()}var Sn=class extends Ft{async updateUiLocale(t){return(await this.awaitApi).updateUiLocale(t)}};var Qi=class e extends mt.FtStateManager{static build(t){return new e(w,t)}constructor(t,r){super(),this.store=t,this.cache=new mt.CacheRegistry,this.withManualResources=!0,this.localesConfiguration=null,this.userLocaleService=new Sn,this.cleanSessionDebouncer=new mt.Debouncer,this.reloadDebouncer=new mt.Debouncer(500),this.apiProvider=r??(()=>le.get())}setWithManualResources(t){this.withManualResources=t,this.updateIfNeeded()}async initService(){this.store.addEventListener(Re.eventName,this.reloadConfiguration)}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.store.getState().session==null&&this.updateSession(),this.store.getState().metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration(),(this.store.getState().availableContentLocales==null||this.store.getState().availableContentLocales.length==0)&&this.updateAvailableContentLocales())}async updateSession(){let t=await this.cache.get("session",async()=>{let r=await this.apiProvider().getCurrentSession();return r.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.setSession(void 0)},r.idleTimeoutInMillis),r});this.setSession(t)}async updateMetadataConfiguration(){this.setMetadataConfiguration(await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration()))}async updateLocalesConfiguration(){this.setLocalesConfiguration(await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration()))}async updateAvailableContentLocales(){var t;let r=await this.cache.get("availableContentLocales",()=>Da(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((t=r.contentLocales)!==null&&t!==void 0?t:[])}reloadConfiguration(){var t;(t=this.cache)===null||t===void 0||t.clear("availableContentLocales"),typeof this.updateAvailableContentLocales=="function"&&this.updateAvailableContentLocales()}setBaseUrl(t){this.store.actions.baseUrl(t),window.fluidTopicsBaseUrl=t}setApiIntegrationIdentifier(t){this.store.actions.apiIntegrationIdentifier(t)}setApiIntegrationAppVersion(t){this.store.actions.apiIntegrationAppVersion(t)}setUiLocale(t){this.store.actions.uiLocale(t)}setLocalesConfiguration(t){var r,n,i,o,s;this.localesConfiguration=t,this.store.actions.defaultLocales(this.localesConfiguration.defaultLocales),this.store.actions.availableUiLocales((r=this.localesConfiguration.availableUiLocales)!==null&&r!==void 0?r:[]),this.store.actions.searchInAllLanguagesAllowed((n=this.localesConfiguration.allLanguagesAllowed)!==null&&n!==void 0?n:!1),this.store.actions.searchLanguageSetsUiLanguage((i=this.localesConfiguration.searchLanguageSetsUiLanguage)!==null&&i!==void 0?i:!1),this.store.actions.uiLanguageSetsSearchLanguage((o=this.localesConfiguration.uiLanguageSetsSearchLanguage)!==null&&o!==void 0?o:!1),this.store.actions.uiLanguageSetsReaderLanguage((s=this.localesConfiguration.uiLanguageSetsReaderLanguage)!==null&&s!==void 0?s:!1),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(t){this.store.actions.availableContentLocales(t),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(t){this.userLocaleService.updateUiLocale({uiLocale:t}).then(r=>{r.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new Tr(r)))}).catch(()=>{})}setMetadataConfiguration(t){this.store.actions.metadataConfiguration(t),setTimeout(()=>this.updateIfNeeded())}setNoCustom(t){this.store.actions.noCustom(t)}setEditorMode(t){this.store.actions.editorMode(t)}setNoCustomComponent(t){this.store.actions.noCustomComponent(t)}setSession(t){this.store.actions.session(t),setTimeout(()=>this.updateIfNeeded())}setOpenExternalDocumentInNewTab(t){this.store.actions.openExternalDocumentInNewTab(t)}setNavigatorOnline(t){this.store.actions.navigatorOnline(t)}setForcedOffline(t){this.store.actions.forcedOffline(t)}setAuthenticationRequired(t){this.store.actions.authenticationRequired(t)}},Ia=Qi.build();var G=function(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,r,o):s(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},R=class extends vt.FtLitElementRedux{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.authenticationRequired=!1,this.messageContexts=[],this.stateManager=Ia,this.contextRoot=new yr}render(){return ka.html`
|
|
3
3
|
<slot></slot>
|
|
4
|
-
`}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.contextRoot.detach(document.body)}update(t){var r;super.update(t),t.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),t.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),t.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),t.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),t.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),t.has("session")&&this.stateManager.setSession(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(n=>zt.addContext(n)),t.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),t.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),t.has("withManualResources")&&((r=this.stateManager)===null||r===void 0||r.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};R.elementDefinitions={};R.styles=
|
|
4
|
+
`}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.contextRoot.detach(document.body)}update(t){var r;super.update(t),t.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),t.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),t.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),t.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),t.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),t.has("session")&&this.stateManager.setSession(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(n=>zt.addContext(n)),t.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),t.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),t.has("withManualResources")&&((r=this.stateManager)===null||r===void 0||r.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};R.elementDefinitions={};R.styles=Ma;G([(0,re.property)()],R.prototype,"baseUrl",void 0);G([(0,re.property)()],R.prototype,"apiIntegrationIdentifier",void 0);G([(0,re.property)()],R.prototype,"apiIntegrationAppVersion",void 0);G([(0,re.property)()],R.prototype,"uiLocale",void 0);G([(0,vt.jsonProperty)(null)],R.prototype,"availableUiLocales",void 0);G([(0,vt.jsonProperty)(null)],R.prototype,"metadataConfiguration",void 0);G([(0,re.property)({type:Boolean})],R.prototype,"editorMode",void 0);G([(0,re.property)({type:Boolean})],R.prototype,"noCustom",void 0);G([(0,re.property)({type:Boolean})],R.prototype,"openExternalDocumentInNewTab",void 0);G([(0,re.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],R.prototype,"noCustomComponent",void 0);G([(0,re.property)({type:Boolean})],R.prototype,"withManualResources",void 0);G([(0,re.property)({type:Boolean})],R.prototype,"navigatorOnline",void 0);G([(0,re.property)({type:Boolean})],R.prototype,"forcedOffline",void 0);G([(0,re.property)({type:Boolean})],R.prototype,"authenticationRequired",void 0);G([(0,vt.jsonProperty)([])],R.prototype,"messageContexts",void 0);G([(0,vt.jsonProperty)(void 0)],R.prototype,"session",void 0);var $a=f(A());var Ua={"ft-app-context":R};(0,$a.customElements)(Ua);var Ha=f(A()),Qe;(function(e){e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.MAP_ATTACHMENT="MAP_ATTACHMENT",e.UD_ATTACHMENT="UD_ATTACHMENT",e.RESOURCE="RESOURCE"})(Qe||(Qe={}));var Le;(function(e){e.FIT_TO_CONTAINER="fit-to-container",e.ZOOM_REAL_SIZE="zoom-real-size",e.ZOOM_IN="zoom-in",e.ZOOM_OUT="zoom-out",e.ROTATE_LEFT="rotate-left",e.ROTATE_RIGHT="rotate-right"})(Le||(Le={}));var gt=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:(0,Ha.deepCopy)(t),composed:!0,bubbles:!0})}};gt.eventName="ft-viewer-loaded";var wn=class extends B{getAsset(t,r,n){let i={[Qe.MAP_ATTACHMENT]:()=>this.api.getMapAttachment(t,r),[Qe.UD_ATTACHMENT]:()=>this.api.getUdAttachment(t,r),[Qe.RESOURCE]:()=>this.api.getMapResource(t,r)};return this.cache.get(r,i[n])}};var Cn=class e extends It{static build(t){return new e(Xr(t),new wn)}constructor(t,r){super(t),this.store=t,this.service=r}async load(){let{documentId:t,assetId:r,origin:n}=this.store.getState();if(t&&r&&n){let i=await this.service.getAsset(t,r,n);this.store.actions.document(i.holder),this.store.actions.descriptor({id:i.id,portalUrl:i.portalUrl,filename:i.filename,fingerprint:i.fingerprint,displayName:i.displayName,alt:i.displayName,mimeType:i.mimeType,size:i.size,viewableInCurrentBrowser:i.viewableInCurrentBrowser,contentUrl:i.contentUrl}),this.store.actions.watermark(i.watermark)}}clear(){this.store.clearKeeping("documentId","assetId","origin")}reload(){return this.clear(),this.load()}async init(t,r,n){return this.store.actions.documentId(t),this.store.actions.assetId(r),this.store.actions.origin(n),await this.reload(),this.store.getState()}};var On=f(N());var Rr=function(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,r,o):s(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},He=class extends Kt.FtLitElementRedux{constructor(){super(...arguments),this.viewerStateManager=Cn.build(this.id||(0,Kt.randomId)(6))}render(){return ja.html`
|
|
5
5
|
<slot></slot>
|
|
6
|
-
`}willUpdate(t){super.willUpdate(t),(t.has("documentId")||t.has("assetId")||t.has("origin"))&&this.initStateManager()}async initStateManager(){let t=await this.viewerStateManager.init(this.documentId,this.assetId,this.origin);this.documentId&&this.assetId&&this.origin&&this.dispatchEvent(new gt(t))}connectedCallback(){super.connectedCallback(),this.addStore(w)}onAuthenticationChange(){this.viewerStateManager.reload()}};
|
|
6
|
+
`}willUpdate(t){super.willUpdate(t),(t.has("documentId")||t.has("assetId")||t.has("origin"))&&this.initStateManager()}async initStateManager(){let t=await this.viewerStateManager.init(this.documentId,this.assetId,this.origin);this.documentId&&this.assetId&&this.origin&&this.dispatchEvent(new gt(t))}connectedCallback(){super.connectedCallback(),this.addStore(w)}onAuthenticationChange(){this.viewerStateManager.reload()}};Rr([(0,On.property)()],He.prototype,"documentId",void 0);Rr([(0,On.property)()],He.prototype,"assetId",void 0);Rr([(0,On.property)()],He.prototype,"origin",void 0);Rr([xr({context:gi})],He.prototype,"viewerStateManager",void 0);Rr([(0,Kt.reduxEventListener)({eventName:Re.eventName})],He.prototype,"onAuthenticationChange",null);var Ba=f(A()),Y=class extends Ba.FtLitElementRedux{};var xe=f(T()),Et=f(A()),be=f(N());var Va=f(T()),Fa=f(A()),cd={position:Fa.FtCssVariableFactory.create("--ft-content-watermark-position","Position property of the watermark container","POSITION","sticky")},Wa=Va.css`
|
|
7
7
|
:host {
|
|
8
8
|
position: absolute;
|
|
9
9
|
top: 0;
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
.ft-watermark-container {
|
|
17
|
-
position: ${
|
|
17
|
+
position: ${cd.position};
|
|
18
18
|
top: 0;
|
|
19
19
|
text-align: center;
|
|
20
20
|
}
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
.ft-watermark {
|
|
23
23
|
z-index: 79;
|
|
24
24
|
}
|
|
25
|
-
`;var or=
|
|
26
|
-
\f\r]`,
|
|
27
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Xa=/'/g,Za=/"/g,tl=/^(?:script|style|textarea|title)$/i,co=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),rl=co(1),nl=co(2),il=co(3),Mr=Symbol.for("lit-noChange"),j=Symbol.for("lit-nothing"),Ja=new WeakMap,xt=bt.createTreeWalker(bt,129);function ol(e,t){if(!lo(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ga!==void 0?Ga.createHTML(t):t}var dd=(e,t)=>{let r=e.length-1,n=[],i,o=t===2?"<svg>":t===3?"<math>":"",s=Nr;for(let a=0;a<r;a++){let l=e[a],c,u,d=-1,p=0;for(;p<l.length&&(s.lastIndex=p,u=s.exec(l),u!==null);)p=s.lastIndex,s===Nr?u[1]==="!--"?s=qa:u[1]!==void 0?s=Ya:u[2]!==void 0?(tl.test(u[2])&&(i=RegExp("</"+u[2],"g")),s=yt):u[3]!==void 0&&(s=yt):s===yt?u[0]===">"?(s=i??Nr,d=-1):u[1]===void 0?d=-2:(d=s.lastIndex-u[2].length,c=u[1],s=u[3]===void 0?yt:u[3]==='"'?Za:Xa):s===Za||s===Xa?s=yt:s===qa||s===Ya?s=Nr:(s=yt,i=void 0);let f=s===yt&&e[a+1].startsWith("/>")?" ":"";o+=s===Nr?l+cd:d>=0?(n.push(c),l.slice(0,d)+Qa+l.slice(d)+et+f):l+et+(d===-2?a:f)}return[ol(e,o+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]},Dr=class e{constructor({strings:t,_$litType$:r},n){let i;this.parts=[];let o=0,s=0,a=t.length-1,l=this.parts,[c,u]=dd(t,r);if(this.el=e.createElement(c,n),xt.currentNode=this.el.content,r===2||r===3){let d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(i=xt.nextNode())!==null&&l.length<a;){if(i.nodeType===1){if(i.hasAttributes())for(let d of i.getAttributeNames())if(d.endsWith(Qa)){let p=u[s++],f=i.getAttribute(d).split(et),m=/([.?@])?(.*)/.exec(p);l.push({type:1,index:o,name:m[2],strings:f,ctor:m[1]==="."?no:m[1]==="?"?io:m[1]==="@"?oo:qt}),i.removeAttribute(d)}else d.startsWith(et)&&(l.push({type:6,index:o}),i.removeAttribute(d));if(tl.test(i.tagName)){let d=i.textContent.split(et),p=d.length-1;if(p>0){i.textContent=Tn?Tn.emptyScript:"";for(let f=0;f<p;f++)i.append(d[f],_n()),xt.nextNode(),l.push({type:2,index:++o});i.append(d[p],_n())}}}else if(i.nodeType===8)if(i.data===el)l.push({type:2,index:o});else{let d=-1;for(;(d=i.data.indexOf(et,d+1))!==-1;)l.push({type:7,index:o}),d+=et.length-1}o++}}static createElement(t,r){let n=bt.createElement("template");return n.innerHTML=t,n}};function Gt(e,t,r=e,n){if(t===Mr)return t;let i=n!==void 0?r._$Co?.[n]:r._$Cl,o=Pr(t)?void 0:t._$litDirective$;return i?.constructor!==o&&(i?._$AO?.(!1),o===void 0?i=void 0:(i=new o(e),i._$AT(e,r,n)),n!==void 0?(r._$Co??=[])[n]=i:r._$Cl=i),i!==void 0&&(t=Gt(e,i._$AS(e,t.values),i,n)),t}var ro=class{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:r},parts:n}=this._$AD,i=(t?.creationScope??bt).importNode(r,!0);xt.currentNode=i;let o=xt.nextNode(),s=0,a=0,l=n[0];for(;l!==void 0;){if(s===l.index){let c;l.type===2?c=new Rn(o,o.nextSibling,this,t):l.type===1?c=new l.ctor(o,l.name,l.strings,this,t):l.type===6&&(c=new so(o,this,t)),this._$AV.push(c),l=n[++a]}s!==l?.index&&(o=xt.nextNode(),s++)}return xt.currentNode=bt,i}p(t){let r=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,r),r+=n.strings.length-2):n._$AI(t[r])),r++}},Rn=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,n,i){this.type=2,this._$AH=j,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=n,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,r=this._$AM;return r!==void 0&&t?.nodeType===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=Gt(this,t,r),Pr(t)?t===j||t==null||t===""?(this._$AH!==j&&this._$AR(),this._$AH=j):t!==this._$AH&&t!==Mr&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):ud(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==j&&Pr(this._$AH)?this._$AA.nextSibling.data=t:this.T(bt.createTextNode(t)),this._$AH=t}$(t){let{values:r,_$litType$:n}=t,i=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=Dr.createElement(ol(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===i)this._$AH.p(r);else{let o=new ro(i,this),s=o.u(this.options);o.p(r),this.T(s),this._$AH=o}}_$AC(t){let r=Ja.get(t.strings);return r===void 0&&Ja.set(t.strings,r=new Dr(t)),r}k(t){lo(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,i=0;for(let o of t)i===r.length?r.push(n=new e(this.O(_n()),this.O(_n()),this,this.options)):n=r[i],n._$AI(o),i++;i<r.length&&(this._$AR(n&&n._$AB.nextSibling,i),r.length=i)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);t&&t!==this._$AB;){let n=t.nextSibling;t.remove(),t=n}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},qt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,n,i,o){this.type=1,this._$AH=j,this._$AN=void 0,this.element=t,this.name=r,this._$AM=i,this.options=o,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=j}_$AI(t,r=this,n,i){let o=this.strings,s=!1;if(o===void 0)t=Gt(this,t,r,0),s=!Pr(t)||t!==this._$AH&&t!==Mr,s&&(this._$AH=t);else{let a=t,l,c;for(t=o[0],l=0;l<o.length-1;l++)c=Gt(this,a[n+l],r,l),c===Mr&&(c=this._$AH[l]),s||=!Pr(c)||c!==this._$AH[l],c===j?t=j:t!==j&&(t+=(c??"")+o[l+1]),this._$AH[l]=c}s&&!i&&this.j(t)}j(t){t===j?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},no=class extends qt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===j?void 0:t}},io=class extends qt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==j)}},oo=class extends qt{constructor(t,r,n,i,o){super(t,r,n,i,o),this.type=5}_$AI(t,r=this){if((t=Gt(this,t,r,0)??j)===Mr)return;let n=this._$AH,i=t===j&&n!==j||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,o=t!==j&&(n===j||i);i&&this.element.removeEventListener(this.name,this,n),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},so=class{constructor(t,r,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){Gt(this,t)}};var pd=ao.litHtmlPolyfillSupport;pd?.(Dr,Rn),(ao.litHtmlVersions??=[]).push("3.3.0");var al=Symbol.for(""),fd=e=>{if(e?.r===al)return e?._$litStatic$},uo=e=>({_$litStatic$:e,r:al});var sl=new Map,po=e=>(t,...r)=>{let n=r.length,i,o,s=[],a=[],l,c=0,u=!1;for(;c<n;){for(l=t[c];c<n&&(o=r[c],(i=fd(o))!==void 0);)l+=i+t[++c],u=!0;c!==n&&a.push(o),s.push(l),c++}if(c===n&&s.push(t[n]),u){let d=s.join("$$lit$$");(t=sl.get(d))===void 0&&(s.raw=s,sl.set(d,t=s)),r=a}return e(t,...r)},fo=po(rl),Ov=po(nl),Tv=po(il);var ho=h(N()),bl=h(A());var X;(function(e){e.title="title",e.title_dense="title-dense",e.subtitle1="subtitle1",e.subtitle2="subtitle2",e.body1="body1",e.body2="body2",e.caption="caption",e.breadcrumb="breadcrumb",e.overline="overline",e.button="button"})(X||(X={}));var ue=h(T()),y=h(A()),ll=y.FtCssVariableFactory.extend("--ft-typography-font-family","",y.designSystemVariables.titleFont),je=y.FtCssVariableFactory.extend("--ft-typography-font-family","",y.designSystemVariables.contentFont),S={fontFamily:je,fontSize:y.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:y.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:y.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:y.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:y.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Yt={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-title-font-family","",ll),fontSize:y.FtCssVariableFactory.extend("--ft-typography-title-font-size","",S.fontSize,"20px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",S.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",S.letterSpacing,"0.15px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-title-line-height","",S.lineHeight,"1.2"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",S.textTransform,"inherit")},Xt={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",ll),fontSize:y.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",S.fontSize,"14px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",S.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",S.letterSpacing,"0.105px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",S.lineHeight,"1.7"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",S.textTransform,"inherit")},Zt={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",je),fontSize:y.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",S.fontSize,"16px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",S.fontWeight,"600"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",S.letterSpacing,"0.144px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",S.lineHeight,"1.5"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",S.textTransform,"inherit")},Jt={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",je),fontSize:y.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",S.fontSize,"14px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",S.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",S.letterSpacing,"0.098px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",S.lineHeight,"1.7"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",S.textTransform,"inherit")},Qt={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",je),fontSize:y.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",S.fontSize,"16px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",S.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",S.letterSpacing,"0.496px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",S.lineHeight,"1.5"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",S.textTransform,"inherit")},er={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",je),fontSize:y.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",S.fontSize,"14px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",S.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",S.letterSpacing,"0.252px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",S.lineHeight,"1.4"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",S.textTransform,"inherit")},tr={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",je),fontSize:y.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",S.fontSize,"12px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",S.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",S.letterSpacing,"0.396px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",S.lineHeight,"1.33"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",S.textTransform,"inherit")},rr={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",je),fontSize:y.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",S.fontSize,"10px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",S.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",S.letterSpacing,"0.33px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",S.lineHeight,"1.6"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",S.textTransform,"inherit")},nr={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",je),fontSize:y.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",S.fontSize,"10px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",S.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",S.letterSpacing,"1.5px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",S.lineHeight,"1.6"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",S.textTransform,"uppercase")},ir={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-button-font-family","",je),fontSize:y.FtCssVariableFactory.extend("--ft-typography-button-font-size","",S.fontSize,"14px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",S.fontWeight,"600"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",S.letterSpacing,"1.246px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-button-line-height","",S.lineHeight,"1.15"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",S.textTransform,"uppercase")},cl=ue.css`
|
|
25
|
+
`;var or=f(T()),At=f(N());var Sl=f(eo()),wl=f(A());var ao=globalThis,Ka=e=>e,Tn=ao.trustedTypes,Ga=Tn?Tn.createPolicy("lit-html",{createHTML:e=>e}):void 0,Qa="$lit$",et=`lit$${Math.random().toFixed(9).slice(2)}$`,el="?"+et,ud=`<${el}>`,bt=document,_n=()=>bt.createComment(""),Nr=e=>e===null||typeof e!="object"&&typeof e!="function",lo=Array.isArray,dd=e=>lo(e)||typeof e?.[Symbol.iterator]=="function",to=`[
|
|
26
|
+
\f\r]`,Lr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,qa=/-->/g,Ya=/>/g,yt=RegExp(`>|${to}(?:([^\\s"'>=/]+)(${to}*=${to}*(?:[^
|
|
27
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Xa=/'/g,Za=/"/g,tl=/^(?:script|style|textarea|title)$/i,co=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),rl=co(1),nl=co(2),il=co(3),Pr=Symbol.for("lit-noChange"),j=Symbol.for("lit-nothing"),Ja=new WeakMap,xt=bt.createTreeWalker(bt,129);function ol(e,t){if(!lo(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ga!==void 0?Ga.createHTML(t):t}var pd=(e,t)=>{let r=e.length-1,n=[],i,o=t===2?"<svg>":t===3?"<math>":"",s=Lr;for(let a=0;a<r;a++){let l=e[a],c,u,d=-1,p=0;for(;p<l.length&&(s.lastIndex=p,u=s.exec(l),u!==null);)p=s.lastIndex,s===Lr?u[1]==="!--"?s=qa:u[1]!==void 0?s=Ya:u[2]!==void 0?(tl.test(u[2])&&(i=RegExp("</"+u[2],"g")),s=yt):u[3]!==void 0&&(s=yt):s===yt?u[0]===">"?(s=i??Lr,d=-1):u[1]===void 0?d=-2:(d=s.lastIndex-u[2].length,c=u[1],s=u[3]===void 0?yt:u[3]==='"'?Za:Xa):s===Za||s===Xa?s=yt:s===qa||s===Ya?s=Lr:(s=yt,i=void 0);let h=s===yt&&e[a+1].startsWith("/>")?" ":"";o+=s===Lr?l+ud:d>=0?(n.push(c),l.slice(0,d)+Qa+l.slice(d)+et+h):l+et+(d===-2?a:h)}return[ol(e,o+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]},Mr=class e{constructor({strings:t,_$litType$:r},n){let i;this.parts=[];let o=0,s=0,a=t.length-1,l=this.parts,[c,u]=pd(t,r);if(this.el=e.createElement(c,n),xt.currentNode=this.el.content,r===2||r===3){let d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(i=xt.nextNode())!==null&&l.length<a;){if(i.nodeType===1){if(i.hasAttributes())for(let d of i.getAttributeNames())if(d.endsWith(Qa)){let p=u[s++],h=i.getAttribute(d).split(et),m=/([.?@])?(.*)/.exec(p);l.push({type:1,index:o,name:m[2],strings:h,ctor:m[1]==="."?no:m[1]==="?"?io:m[1]==="@"?oo:qt}),i.removeAttribute(d)}else d.startsWith(et)&&(l.push({type:6,index:o}),i.removeAttribute(d));if(tl.test(i.tagName)){let d=i.textContent.split(et),p=d.length-1;if(p>0){i.textContent=Tn?Tn.emptyScript:"";for(let h=0;h<p;h++)i.append(d[h],_n()),xt.nextNode(),l.push({type:2,index:++o});i.append(d[p],_n())}}}else if(i.nodeType===8)if(i.data===el)l.push({type:2,index:o});else{let d=-1;for(;(d=i.data.indexOf(et,d+1))!==-1;)l.push({type:7,index:o}),d+=et.length-1}o++}}static createElement(t,r){let n=bt.createElement("template");return n.innerHTML=t,n}};function Gt(e,t,r=e,n){if(t===Pr)return t;let i=n!==void 0?r._$Co?.[n]:r._$Cl,o=Nr(t)?void 0:t._$litDirective$;return i?.constructor!==o&&(i?._$AO?.(!1),o===void 0?i=void 0:(i=new o(e),i._$AT(e,r,n)),n!==void 0?(r._$Co??=[])[n]=i:r._$Cl=i),i!==void 0&&(t=Gt(e,i._$AS(e,t.values),i,n)),t}var ro=class{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:r},parts:n}=this._$AD,i=(t?.creationScope??bt).importNode(r,!0);xt.currentNode=i;let o=xt.nextNode(),s=0,a=0,l=n[0];for(;l!==void 0;){if(s===l.index){let c;l.type===2?c=new Rn(o,o.nextSibling,this,t):l.type===1?c=new l.ctor(o,l.name,l.strings,this,t):l.type===6&&(c=new so(o,this,t)),this._$AV.push(c),l=n[++a]}s!==l?.index&&(o=xt.nextNode(),s++)}return xt.currentNode=bt,i}p(t){let r=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,r),r+=n.strings.length-2):n._$AI(t[r])),r++}},Rn=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,n,i){this.type=2,this._$AH=j,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=n,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,r=this._$AM;return r!==void 0&&t?.nodeType===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=Gt(this,t,r),Nr(t)?t===j||t==null||t===""?(this._$AH!==j&&this._$AR(),this._$AH=j):t!==this._$AH&&t!==Pr&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):dd(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==j&&Nr(this._$AH)?this._$AA.nextSibling.data=t:this.T(bt.createTextNode(t)),this._$AH=t}$(t){let{values:r,_$litType$:n}=t,i=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=Mr.createElement(ol(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===i)this._$AH.p(r);else{let o=new ro(i,this),s=o.u(this.options);o.p(r),this.T(s),this._$AH=o}}_$AC(t){let r=Ja.get(t.strings);return r===void 0&&Ja.set(t.strings,r=new Mr(t)),r}k(t){lo(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,i=0;for(let o of t)i===r.length?r.push(n=new e(this.O(_n()),this.O(_n()),this,this.options)):n=r[i],n._$AI(o),i++;i<r.length&&(this._$AR(n&&n._$AB.nextSibling,i),r.length=i)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);t!==this._$AB;){let n=Ka(t).nextSibling;Ka(t).remove(),t=n}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},qt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,n,i,o){this.type=1,this._$AH=j,this._$AN=void 0,this.element=t,this.name=r,this._$AM=i,this.options=o,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=j}_$AI(t,r=this,n,i){let o=this.strings,s=!1;if(o===void 0)t=Gt(this,t,r,0),s=!Nr(t)||t!==this._$AH&&t!==Pr,s&&(this._$AH=t);else{let a=t,l,c;for(t=o[0],l=0;l<o.length-1;l++)c=Gt(this,a[n+l],r,l),c===Pr&&(c=this._$AH[l]),s||=!Nr(c)||c!==this._$AH[l],c===j?t=j:t!==j&&(t+=(c??"")+o[l+1]),this._$AH[l]=c}s&&!i&&this.j(t)}j(t){t===j?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},no=class extends qt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===j?void 0:t}},io=class extends qt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==j)}},oo=class extends qt{constructor(t,r,n,i,o){super(t,r,n,i,o),this.type=5}_$AI(t,r=this){if((t=Gt(this,t,r,0)??j)===Pr)return;let n=this._$AH,i=t===j&&n!==j||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,o=t!==j&&(n===j||i);i&&this.element.removeEventListener(this.name,this,n),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},so=class{constructor(t,r,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){Gt(this,t)}};var fd=ao.litHtmlPolyfillSupport;fd?.(Mr,Rn),(ao.litHtmlVersions??=[]).push("3.3.3");var al=Symbol.for(""),hd=e=>{if(e?.r===al)return e?._$litStatic$},uo=e=>({_$litStatic$:e,r:al});var sl=new Map,po=e=>(t,...r)=>{let n=r.length,i,o,s=[],a=[],l,c=0,u=!1;for(;c<n;){for(l=t[c];c<n&&(o=r[c],(i=hd(o))!==void 0);)l+=i+t[++c],u=!0;c!==n&&a.push(o),s.push(l),c++}if(c===n&&s.push(t[n]),u){let d=s.join("$$lit$$");(t=sl.get(d))===void 0&&(s.raw=s,sl.set(d,t=s)),r=a}return e(t,...r)},fo=po(rl),Tv=po(nl),_v=po(il);var ho=f(N()),bl=f(A());var X;(function(e){e.title="title",e.title_dense="title-dense",e.subtitle1="subtitle1",e.subtitle2="subtitle2",e.body1="body1",e.body2="body2",e.caption="caption",e.breadcrumb="breadcrumb",e.overline="overline",e.button="button"})(X||(X={}));var ue=f(T()),y=f(A()),ll=y.FtCssVariableFactory.extend("--ft-typography-font-family","",y.designSystemVariables.titleFont),je=y.FtCssVariableFactory.extend("--ft-typography-font-family","",y.designSystemVariables.contentFont),S={fontFamily:je,fontSize:y.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:y.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:y.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:y.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:y.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Yt={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-title-font-family","",ll),fontSize:y.FtCssVariableFactory.extend("--ft-typography-title-font-size","",S.fontSize,"20px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",S.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",S.letterSpacing,"0.15px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-title-line-height","",S.lineHeight,"1.2"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",S.textTransform,"inherit")},Xt={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",ll),fontSize:y.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",S.fontSize,"14px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",S.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",S.letterSpacing,"0.105px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",S.lineHeight,"1.7"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",S.textTransform,"inherit")},Zt={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",je),fontSize:y.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",S.fontSize,"16px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",S.fontWeight,"600"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",S.letterSpacing,"0.144px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",S.lineHeight,"1.5"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",S.textTransform,"inherit")},Jt={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",je),fontSize:y.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",S.fontSize,"14px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",S.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",S.letterSpacing,"0.098px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",S.lineHeight,"1.7"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",S.textTransform,"inherit")},Qt={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",je),fontSize:y.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",S.fontSize,"16px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",S.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",S.letterSpacing,"0.496px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",S.lineHeight,"1.5"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",S.textTransform,"inherit")},er={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",je),fontSize:y.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",S.fontSize,"14px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",S.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",S.letterSpacing,"0.252px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",S.lineHeight,"1.4"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",S.textTransform,"inherit")},tr={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",je),fontSize:y.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",S.fontSize,"12px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",S.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",S.letterSpacing,"0.396px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",S.lineHeight,"1.33"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",S.textTransform,"inherit")},rr={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",je),fontSize:y.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",S.fontSize,"10px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",S.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",S.letterSpacing,"0.33px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",S.lineHeight,"1.6"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",S.textTransform,"inherit")},nr={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",je),fontSize:y.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",S.fontSize,"10px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",S.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",S.letterSpacing,"1.5px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",S.lineHeight,"1.6"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",S.textTransform,"uppercase")},ir={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-button-font-family","",je),fontSize:y.FtCssVariableFactory.extend("--ft-typography-button-font-size","",S.fontSize,"14px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",S.fontWeight,"600"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",S.letterSpacing,"1.246px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-button-line-height","",S.lineHeight,"1.15"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",S.textTransform,"uppercase")},cl=ue.css`
|
|
28
28
|
.ft-typography--title {
|
|
29
29
|
font-family: ${Yt.fontFamily};
|
|
30
30
|
font-size: ${Yt.fontSize};
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
</${uo(this.element)}>
|
|
128
128
|
`:fo`
|
|
129
129
|
<slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
|
|
130
|
-
`}};V.styles=[cl,ul,dl,pl,Ln,fl,hl,ml,vl,gl,yl];xl([(0,ho.property)()],V.prototype,"element",void 0);xl([(0,ho.property)()],V.prototype,"variant",void 0);var El=
|
|
130
|
+
`}};V.styles=[cl,ul,dl,pl,Ln,fl,hl,ml,vl,gl,yl];xl([(0,ho.property)()],V.prototype,"element",void 0);xl([(0,ho.property)()],V.prototype,"variant",void 0);var El=f(A());var Al={"ft-typography":V};(0,El.customElements)(Al);var Nn=function(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,r,o):s(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},ye=class extends wl.FtLitElement{constructor(){super(...arguments),this.height=0,this.resizeObserver=new ResizeObserver(([t])=>{this.height=Math.min(t.contentRect.height,t.contentRect.width)})}render(){var t,r,n;return this.watermark?or.html`
|
|
131
131
|
<style>
|
|
132
132
|
.ft-watermark {
|
|
133
133
|
height: ${this.height}px;
|
|
@@ -146,7 +146,7 @@
|
|
|
146
146
|
</text>
|
|
147
147
|
</svg>
|
|
148
148
|
</div>
|
|
149
|
-
`:or.nothing}updated(t){if(super.updated(t),t.has("watermark")&&this.watermark){let r=this.svg.getBBox({stroke:!0});this.svg.setAttribute("viewBox",r.x+" "+r.y+" "+r.width+" "+r.height)}t.has("heightReference")&&this.heightReference&&(this.resizeObserver.disconnect(),this.resizeObserver.observe(this.heightReference))}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.disconnect()}};ye.styles=[
|
|
149
|
+
`:or.nothing}updated(t){if(super.updated(t),t.has("watermark")&&this.watermark){let r=this.svg.getBBox({stroke:!0});this.svg.setAttribute("viewBox",r.x+" "+r.y+" "+r.width+" "+r.height)}t.has("heightReference")&&this.heightReference&&(this.resizeObserver.disconnect(),this.resizeObserver.observe(this.heightReference))}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.disconnect()}};ye.styles=[Wa,Ln];Nn([(0,At.query)(".ft-watermark")],ye.prototype,"svg",void 0);Nn([(0,At.property)({attribute:!1})],ye.prototype,"watermark",void 0);Nn([(0,At.property)({attribute:!1})],ye.prototype,"heightReference",void 0);Nn([(0,At.state)()],ye.prototype,"height",void 0);var Ol=f(A());var Cl={"ft-content-watermark":ye};(0,Ol.customElements)(Cl);var _l=f(mo()),ne=function(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,r,o):s(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},P=class extends(0,Et.withConditionalVisibility)(Y){constructor(){super(...arguments),this.viewerType="none",this.inlineSvgAllowed=!1}render(){return xe.html`
|
|
150
150
|
${this.renderContent()}
|
|
151
151
|
<ft-content-watermark part="watermark"
|
|
152
152
|
.watermark=${this.watermark}
|
|
@@ -213,12 +213,12 @@
|
|
|
213
213
|
max-height: 100%;
|
|
214
214
|
border: none;
|
|
215
215
|
}
|
|
216
|
-
`;ne([(0,Et.redux)({store:"viewer"})],P.prototype,"descriptor",void 0);ne([(0,be.state)()],P.prototype,"viewerType",void 0);ne([(0,be.state)()],P.prototype,"inlineSvgAllowed",void 0);ne([(0,Et.redux)({store:"viewer",selector:({contentModifiers:e})=>e.zoom})],P.prototype,"zoom",void 0);ne([(0,Et.redux)({store:"viewer",selector:({contentModifiers:e})=>e.rotation})],P.prototype,"rotation",void 0);ne([(0,Et.redux)({store:"viewer"})],P.prototype,"watermark",void 0);ne([(0,be.query)("img")],P.prototype,"image",void 0);ne([(0,be.query)("svg")],P.prototype,"svg",void 0);ne([(0,be.query)(".image-viewer")],P.prototype,"imageViewer",void 0);ne([(0,be.query)(".image-container")],P.prototype,"imageContainer",void 0);ne([(0,be.state)()],P.prototype,"imageHeight",void 0);ne([(0,be.state)()],P.prototype,"imageWidth",void 0);ne([(0,be.state)()],P.prototype,"svgContent",void 0);var Pn=class extends oe(P){};var lt=
|
|
217
|
-
`;var kn=
|
|
216
|
+
`;ne([(0,Et.redux)({store:"viewer"})],P.prototype,"descriptor",void 0);ne([(0,be.state)()],P.prototype,"viewerType",void 0);ne([(0,be.state)()],P.prototype,"inlineSvgAllowed",void 0);ne([(0,Et.redux)({store:"viewer",selector:({contentModifiers:e})=>e.zoom})],P.prototype,"zoom",void 0);ne([(0,Et.redux)({store:"viewer",selector:({contentModifiers:e})=>e.rotation})],P.prototype,"rotation",void 0);ne([(0,Et.redux)({store:"viewer"})],P.prototype,"watermark",void 0);ne([(0,be.query)("img")],P.prototype,"image",void 0);ne([(0,be.query)("svg")],P.prototype,"svg",void 0);ne([(0,be.query)(".image-viewer")],P.prototype,"imageViewer",void 0);ne([(0,be.query)(".image-container")],P.prototype,"imageContainer",void 0);ne([(0,be.state)()],P.prototype,"imageHeight",void 0);ne([(0,be.state)()],P.prototype,"imageWidth",void 0);ne([(0,be.state)()],P.prototype,"svgContent",void 0);var Pn=class extends oe(P){};var lt=f(N());var De=f(A()),dr=f(T());var tt=class e{static build(t){return new e(t)}static buildCustom(t){return new e(t,!0)}static fromGwt(t){return new e(t)}get service(){return this.custom?An:zt}constructor(t,r=!1){this.name=t,this.custom=r,this.properties=new Proxy({},{get:(n,i)=>{let o=i;return s=>({context:this.name,key:o,custom:this.custom,args:typeof s=="function"?void 0:s,argsProvider:typeof s=="function"?s:void 0})}}),this.messages=new Proxy({},{get:(n,i)=>(...o)=>this.service.resolveMessage(this.name,i,...o)}),this.rawMessages=new Proxy({},{get:(n,i)=>this.service.resolveRawMessage(this.name,i)}),this.keys=new Proxy({},{get:(n,i)=>()=>i}),this.attributes=new Proxy({},{get:(n,i)=>()=>({context:this.name,key:i,message:this.service.resolveRawMessage(this.name,i)})})}};var ar=f(A());var Rl=f(N());var vo=class{fromLocalizableLabel(t){return t.type=="PLAIN_TEXT"?{message:t.text}:{key:t.key,custom:t.type=="LOCALIZED_CUSTOM",context:t.context,message:t.key}}fromAttribute(t){if(t!=null)try{return JSON.parse(t)}catch{if(this.isI18nKey(t)){let[r,n]=t.split(".");return{context:r,key:n,custom:r!=="officialContext",message:""}}return{message:t}}}toAttribute(t){if(t!=null)return JSON.stringify(t)}isI18nKey(t){return t.match(/^[\w-]+\.[\w-]+$/)}},sr=new vo;var md=function(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,r,o):s(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},Ir=Symbol("i18nAttributes"),Ll=Symbol("i18nListAttributes"),Nl=Symbol("i18nProperties"),Mn=Symbol("i18nContexts"),Dr=Symbol("i18nUnsubs"),rt=(0,ar.applyMixinOnce)(Symbol("withI18n"),function(e){var t,r;class n extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[t]=new Map,this[r]=new Map}getI18nService(o){return o??this.useCustomMessageContexts?An:zt}i18n(o){let{context:s,key:a,message:l}=o,{custom:c,args:u,argsProvider:d}=o;if(s&&a){this.hasI18nContext(s)||this.addI18nContext(s,void 0,c);let p=u??(d?d(this):[]);return this.getI18nService(c).resolveMessage(s,a,...p)}return l}async awaitI18n(o){let{context:s,custom:a}=o;return s&&await this.getI18nService(a).prepareContext(s),this.i18n(o)}customI18n(o,s){if(sr.isI18nKey(o)){let[a,l]=o.split(".");return this.i18n({custom:!0,context:a,key:l,...s})||o}return o}firstUpdated(o){super.firstUpdated(o),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(o){super.update(o),this.updateI18nAttributes((s,a,l)=>o.has(a)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(o){this.updateI18nAttributes((s,a,l)=>{var c;return((c=l?.context)===null||c===void 0?void 0:c.toLowerCase())===o}),this.updateI18nProperties(s=>s.context.toLowerCase()===o),this.requestUpdate()}updateI18nAttributes(o){var s,a;let l=this,c=(u,d,p)=>p?.context&&p.key&&o(u,d,p)?{...p,message:this.i18n({context:p.context,key:p.key,custom:p.custom,...u})}:p;(s=this[Ir])===null||s===void 0||s.forEach((u,d)=>l[d]=c(u,d,l[d])),(a=this[Ll])===null||a===void 0||a.forEach((u,d)=>{var p;return l[d]=(p=l[d])===null||p===void 0?void 0:p.map(h=>c(u,d,h))})}updateI18nProperties(o){var s;(s=this[Nl])===null||s===void 0||s.forEach((a,l)=>{o(a,l)&&(this[l]=this.i18n(a))})}addI18nMessages(o,s,a){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(o,s,a)}addI18nContext(o,s,a){let l=(typeof o=="string"?o:o.name).toLowerCase();a=typeof o=="string"?a:o.custom,this[Mn].set(l,{isCustomContext:a}),this[Dr].has(l)||this[Dr].set(l,this.getI18nService(a).subscribe(l,()=>this.onI18nUpdate(l))),this.getI18nService(a).prepareContext(l,s)}hasI18nContext(o){return this[Mn].has(o.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Mn].forEach((o,s)=>this.addI18nContext(s,void 0,o.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Dr].forEach(o=>o()),this[Dr].clear()}}return t=Mn,r=Dr,md([(0,Rl.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}),Dn=class extends rt(ar.FtLitElement){},In=class extends rt(ar.FtLitElementRedux){};var Pl=f(T());var Ml=Pl.css`
|
|
217
|
+
`;var kn=f(T()),Un=f(N()),$n=f(A());var kr=function(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,r,o):s(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},Ae=class extends In{constructor(){super(),this.editorMode=!1,this.addStore(w)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":kn.nothing:kn.html`
|
|
218
218
|
<span class="ft-i18n">
|
|
219
219
|
${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
|
|
220
220
|
</span>
|
|
221
|
-
`}update(t){var r;super.update(t),["context","key","defaultMessage"].some(n=>t.has(n))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};Ae.elementDefinitions={};Ae.styles=Ml;
|
|
221
|
+
`}update(t){var r;super.update(t),["context","key","defaultMessage"].some(n=>t.has(n))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};Ae.elementDefinitions={};Ae.styles=Ml;kr([(0,$n.redux)()],Ae.prototype,"editorMode",void 0);kr([(0,Un.property)()],Ae.prototype,"context",void 0);kr([(0,Un.property)()],Ae.prototype,"key",void 0);kr([(0,$n.jsonProperty)([])],Ae.prototype,"args",void 0);kr([(0,Un.property)()],Ae.prototype,"defaultMessage",void 0);var Il=f(A());var Dl={"ft-i18n":Ae};(0,Il.customElements)(Dl);var kl=f(T()),Ee=f(A()),de={size:Ee.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:Ee.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",Ee.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:Ee.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",Ee.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:Ee.FtCssVariableFactory.extend("--ft-icon-material-font-family","",Ee.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:Ee.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Ul=[kl.css`
|
|
222
222
|
:host, i.ft-icon {
|
|
223
223
|
display: inline-flex;
|
|
224
224
|
align-items: center;
|
|
@@ -266,12 +266,12 @@
|
|
|
266
266
|
.ft-icon--material {
|
|
267
267
|
font-family: ${de.materialFontFamily}, "Material Icons", sans-serif;
|
|
268
268
|
}
|
|
269
|
-
`,Ee.noTextSelect];var Ne;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(Ne||(Ne={}));var $r=h(T()),nt=h(N()),$l=h(A()),Hl=h(mo());var Se;(function(e){e.ADD_TO_PBK="",e.ALERT="",e.ADD_ALERT="",e.BACK_TO_SEARCH="",e.ADD_BOOKMARK="",e.BOOKMARK="",e.BOOKS="",e.MENU="",e.DOWNLOAD="",e.EDIT="",e.FEEDBACK="",e.HOME="",e.MODIFY_PBK="",e.SCHEDULED="",e.SEARCH="",e.EXPORT="",e.TOC="",e.WRITE_UGC="",e.TRASH="",e.USER="",e.EXTLINK="",e.CALENDAR="",e.OFFLINE="",e.BOOK="",e.DOWNLOAD_PLAIN="",e.CHECK="",e.STAR_PLAIN="",e.TOPICS="",e.DISC="",e.CIRCLE="",e.SHARED="",e.SORT_UNSORTED="",e.SORT_UP="",e.SORT_DOWN="",e.WORKING="",e.CLOSE="",e.ZOOM_OUT="",e.ZOOM_IN="",e.ZOOM_REALSIZE="",e.ZOOM_FULLSCREEN="",e.ADMIN_RESTRICTED="",e.ADMIN="",e.ADMIN_KHUB="",e.ADMIN_THEME="",e.ADMIN_USERS="",e.WARNING="",e.CONTEXT="",e.SEARCH_HOME="",e.STEPS="",e.ICON_EXPAND="",e.ICON_COLLAPSE="",e.INFO="",e.MINUS_PLAIN="",e.PLUS_PLAIN="",e.FACET_HAS_DESCENDANT="",e.TRIANGLE_BOTTOM="",e.TRIANGLE_LEFT="",e.TRIANGLE_RIGHT="",e.TRIANGLE_TOP="",e.THIN_ARROW="",e.SIGN_IN="",e.LOGOUT="",e.TRANSLATE="",e.CLOSE_PLAIN="",e.CHECK_PLAIN="",e.ARTICLE="",e.COLUMNS="",e.ANALYTICS="",e.COLLECTIONS="",e.ARROW_DOWN="",e.ARROW_LEFT="",e.ARROW_RIGHT="",e.ARROW_UP="",e.SEARCH_IN_PUBLICATION="",e.COPY_TO_CLIPBOARD="",e.SHARED_PBK="",e.ATTACHMENTS="",e.STRIPE_ARROW_LEFT="",e.STRIPE_ARROW_RIGHT="",e.FILTERS="",e.DOT="",e.MINUS="",e.PLUS="",e.MAILS_AND_NOTIFICATIONS="",e.SAVE="",e.LOCKER="",e.ADMIN_INTEGRATION="",e.SYNC="",e.TAG="",e.BOOK_PLAIN="",e.UPLOAD="",e.ONLINE="",e.TAG_PLAIN="",e.ACCOUNT_SETTINGS="",e.PRINT="",e.DEFAULT_ROLES="",e.SHORTCUT_MENU="",e.RELATIVES_PLAIN="",e.RELATIVES="",e.PAUSE="",e.PLAY="",e.ADMIN_PORTAL="",e.STAR="",e.THUMBS_DOWN="",e.THUMBS_DOWN_PLAIN="",e.THUMBS_UP="",e.THUMBS_UP_PLAIN="",e.FEEDBACK_PLAIN="",e.RATE_PLAIN="",e.RATE="",e.OFFLINE_SETTINGS="",e.MY_COLLECTIONS="",e.THIN_ARROW_LEFT="",e.THIN_ARROW_RIGHT="",e.RESET="",e.MY_LIBRARY="",e.UNSTRUCTURED_DOC="",e.CONTEXTUAL="",e.THIN_ARROW_UP="",e.ARROW_RIGHT_TO_LINE="",e.DESKTOP="",e.TABLET_LANDSCAPE="",e.TABLET_PORTRAIT="",e.MOBILE_LANDSCAPE="",e.MOBILE_PORTRAIT="",e.DIAGRAM_SUNBURST="",e.DIAGRAM_SANKEY="",e.COMMENT_QUESTION="",e.COMMENT_QUESTION_PLAIN="",e.MESSAGE_BOT="",e.CHART_SIMPLE="",e.BARS_PROGRESS="",e.BOOK_OPEN_GEAR="",e.BOOK_OPEN_GEAR_SLASH="",e.LINE_CHART="",e.STACKED_CHART="",e.CHART_BAR_STACKED="",e.CHART_BAR_GROUPED="",e.EYE_SLASH="",e.X_MARK="",e.EXPAND_WIDE="",e.PIP="",e.PIP_WIDE="",e.LIFE_RING="",e.GLOBE="",e.PIGGY_BANK="",e.EXTLINK_LIGHT="",e.CLONE="",e.CLONE_LINK_SIMPLE="",e.CHART_BAR_NORMALIZED="",e.CONSUMER="",e.OCTAGON_XMARK="",e.HOURGLASS_HALF="",e.CLOCK="",e.CLOCK_THREE="",e.CALENDAR_DAY="",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="",e.WAND_MAGIC_SPARKLES="",e.PAPER_PLANE="",e.CIRCLE_STOP="",e.ARROW_ROTATE_RIGHT="",e.ARROWS_ROTATE="",e.ALIGN_RIGHT="",e.FORMAT_CLEAR="",e.ALIGN_CENTER="",e.ALIGN_LEFT="",e.PALETTE="",e.BOLD="",e.ITALIC="",e.UNDERLINE="",e.STRIKETHROUGH="",e.LINK_SIMPLE_SLASH="",e.LINK_SIMPLE="",e.ROUTE="",e.CIRCLE_USER_SLASH="",e.CIRCLE_USER_CHECK="",e.LIST_MAGNIFYING_GLASS="",e.MEDAL="",e.THUMBS_UP_THUMBS_DOWN_SOLID="",e.ARROW_TURN_DOWN_RIGHT="",e.FLASK="",e.LOCK_KEYHOLE_OPEN_SOLID="",e.HOURGLASS_END="",e.CIRCLE_QUESTION="",e.GRIP_LINES_SOLID="",e.TRANSLATE_SPARKLE_SOLID="",e.CODE="",e.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",e.PAPER_PLANE_SLASH="",e.COMPRESS="",e.EXPAND="",e.ARROW_ROTATE_LEFT="",e.MOBILE_SMALL="",e.SPARKLES="",e.HAND_SOLID="",e.CLOCK_SOLID="",e.CONTEXT_MENU_CURSOR="",e.LANGUAGE_SLASH="",e.MAGNIFYING_GLASS_FLOPPY_DISK="",e.CABINET_FILING_FLOPPY_DISK="",e.BOOKMARK_SLASH="",e.CIRCLE_PAUSE="",e.CIRCLE_PLAY="",e.CIRCLE_STOP_PLAIN="",e.CIRCLE_ARROW_DOWN="",e.SHARE_NODES="",e.BELL="",e.BELL_SLASH="",e.FILE="",e.HAND="",e.SQUARE_INFO_SOLID="",e.FILE_CODE="",e.BOX_CODE="",e.TOPICS_SOLID="",e.PHOTO_FILM="",e.HYPHEN_SOLID="",e.CROSSHAIRS="",e.PERSON_CHALKBOARD="",e.CIRCLE_ARROW_DOWN_SLASH="",e.BOOK_OPEN_COVER="",e.LIGHTBULB="",e.MESSAGE_BOT_AGENTIC_SOLID="",e.CHART_LINE_USER="",e.SERVER_CIRCLE_ARROW_DOWN="",e.EYE="",e.SHARE="󨃱"})(Se||(Se={}));var g;(function(e){e.UNKNOWN="",e.ABW="",e.AUDIO="",e.AVI="",e.CHM="",e.CODE="",e.CSV="",e.DITA="",e.EPUB="",e.EXCEL="",e.FLAC="",e.GIF="",e.GZIP="",e.HTML="",e.IMAGE="",e.JPEG="",e.JSON="",e.M4A="",e.MOV="",e.MP3="",e.MP4="",e.OGG="",e.PDF="",e.PNG="",e.POWERPOINT="",e.RAR="",e.STP="",e.TEXT="",e.VIDEO="",e.WAV="",e.WMA="",e.WORD="",e.XML="",e.YAML="",e.ZIP=""})(g||(g={}));var go=new Map([...["abw"].map(e=>[e,g.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(e=>[e,g.AUDIO]),...["avi"].map(e=>[e,g.AVI]),...["chm","xhs"].map(e=>[e,g.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(e=>[e,g.CODE]),...["csv"].map(e=>[e,g.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,g.DITA]),...["epub"].map(e=>[e,g.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,g.EXCEL]),...["flac"].map(e=>[e,g.FLAC]),...["gif"].map(e=>[e,g.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,g.GZIP]),...["html","htm","xhtml"].map(e=>[e,g.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(e=>[e,g.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,g.JPEG]),...["json"].map(e=>[e,g.JSON]),...["m4a","m4p"].map(e=>[e,g.M4A]),...["mov","qt"].map(e=>[e,g.MOV]),...["mp3"].map(e=>[e,g.MP3]),...["mp4","m4v"].map(e=>[e,g.MP4]),...["ogg","oga"].map(e=>[e,g.OGG]),...["pdf","ps"].map(e=>[e,g.PDF]),...["png"].map(e=>[e,g.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,g.POWERPOINT]),...["rar"].map(e=>[e,g.RAR]),...["stp"].map(e=>[e,g.STP]),...["txt","rtf","md","mdown"].map(e=>[e,g.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(e=>[e,g.VIDEO]),...["wav"].map(e=>[e,g.WAV]),...["wma"].map(e=>[e,g.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,g.WORD]),...["xml","xsl","rdf"].map(e=>[e,g.XML]),...["yaml","yml","x-yaml"].map(e=>[e,g.YAML]),...["zip"].map(e=>[e,g.ZIP])]),md=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);function Hn(e,t){var r,n,i,o;e=(e??"").toLowerCase(),t=(t??"").toLowerCase();let[s,a]=(((r=md.get(e))!==null&&r!==void 0?r:e)+"/").split("/");return(o=(i=(n=go.get(a))!==null&&n!==void 0?n:go.get(t))!==null&&i!==void 0?i:go.get(s))!==null&&o!==void 0?o:g.UNKNOWN}var yo={[g.ABW]:"#91ABC6",[g.AUDIO]:"#1795E3",[g.AVI]:"#E63324",[g.CHM]:"#71C3EB",[g.CODE]:"#71C3EB",[g.CSV]:"#1F7345",[g.DITA]:"#71C3EB",[g.EPUB]:"#85B926",[g.EXCEL]:"#1F7345",[g.FLAC]:"#1795E3",[g.GIF]:"#59B031",[g.GZIP]:"#F8AB36",[g.HTML]:"#71C3EB",[g.IMAGE]:"#59B031",[g.JPEG]:"#59B031",[g.JSON]:"#71C3EB",[g.M4A]:"#1795E3",[g.MOV]:"#E63324",[g.MP3]:"#1795E3",[g.MP4]:"#E63324",[g.OGG]:"#1795E3",[g.PDF]:"#E44948",[g.PNG]:"#59B031",[g.POWERPOINT]:"#B54A2B",[g.RAR]:"#F8AB36",[g.STP]:"#3764B1",[g.TEXT]:"#3162AB",[g.UNKNOWN]:"#999999",[g.VIDEO]:"#E63324",[g.WAV]:"#1795E3",[g.WMA]:"#1795E3",[g.WORD]:"#3162AB",[g.XML]:"#71C3EB",[g.YAML]:"#71C3EB",[g.ZIP]:"#F8AB36"};var Hr=function(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,r,o):s(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},F=class extends $l.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=$r.nothing}render(){let t=this.variant&&Object.values(Ne).includes(this.variant)?this.variant:Ne.fluid_topics,r=t!==Ne.material||!!this.value;return $r.html`
|
|
269
|
+
`,Ee.noTextSelect];var Ne;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(Ne||(Ne={}));var Ur=f(T()),nt=f(N()),$l=f(A()),Hl=f(mo());var Se;(function(e){e.ADD_TO_PBK="",e.ALERT="",e.ADD_ALERT="",e.BACK_TO_SEARCH="",e.ADD_BOOKMARK="",e.BOOKMARK="",e.BOOKS="",e.MENU="",e.DOWNLOAD="",e.EDIT="",e.FEEDBACK="",e.HOME="",e.MODIFY_PBK="",e.SCHEDULED="",e.SEARCH="",e.EXPORT="",e.TOC="",e.WRITE_UGC="",e.TRASH="",e.USER="",e.EXTLINK="",e.CALENDAR="",e.OFFLINE="",e.BOOK="",e.DOWNLOAD_PLAIN="",e.CHECK="",e.STAR_PLAIN="",e.TOPICS="",e.DISC="",e.CIRCLE="",e.SHARED="",e.SORT_UNSORTED="",e.SORT_UP="",e.SORT_DOWN="",e.WORKING="",e.CLOSE="",e.ZOOM_OUT="",e.ZOOM_IN="",e.ZOOM_REALSIZE="",e.ZOOM_FULLSCREEN="",e.ADMIN_RESTRICTED="",e.ADMIN="",e.ADMIN_KHUB="",e.ADMIN_THEME="",e.ADMIN_USERS="",e.WARNING="",e.CONTEXT="",e.SEARCH_HOME="",e.STEPS="",e.ICON_EXPAND="",e.ICON_COLLAPSE="",e.INFO="",e.MINUS_PLAIN="",e.PLUS_PLAIN="",e.FACET_HAS_DESCENDANT="",e.TRIANGLE_BOTTOM="",e.TRIANGLE_LEFT="",e.TRIANGLE_RIGHT="",e.TRIANGLE_TOP="",e.THIN_ARROW="",e.SIGN_IN="",e.LOGOUT="",e.TRANSLATE="",e.CLOSE_PLAIN="",e.CHECK_PLAIN="",e.ARTICLE="",e.COLUMNS="",e.ANALYTICS="",e.COLLECTIONS="",e.ARROW_DOWN="",e.ARROW_LEFT="",e.ARROW_RIGHT="",e.ARROW_UP="",e.SEARCH_IN_PUBLICATION="",e.COPY_TO_CLIPBOARD="",e.SHARED_PBK="",e.ATTACHMENTS="",e.STRIPE_ARROW_LEFT="",e.STRIPE_ARROW_RIGHT="",e.FILTERS="",e.DOT="",e.MINUS="",e.PLUS="",e.MAILS_AND_NOTIFICATIONS="",e.SAVE="",e.LOCKER="",e.ADMIN_INTEGRATION="",e.SYNC="",e.TAG="",e.BOOK_PLAIN="",e.UPLOAD="",e.ONLINE="",e.TAG_PLAIN="",e.ACCOUNT_SETTINGS="",e.PRINT="",e.DEFAULT_ROLES="",e.SHORTCUT_MENU="",e.RELATIVES_PLAIN="",e.RELATIVES="",e.PAUSE="",e.PLAY="",e.ADMIN_PORTAL="",e.STAR="",e.THUMBS_DOWN="",e.THUMBS_DOWN_PLAIN="",e.THUMBS_UP="",e.THUMBS_UP_PLAIN="",e.FEEDBACK_PLAIN="",e.RATE_PLAIN="",e.RATE="",e.OFFLINE_SETTINGS="",e.MY_COLLECTIONS="",e.THIN_ARROW_LEFT="",e.THIN_ARROW_RIGHT="",e.RESET="",e.MY_LIBRARY="",e.UNSTRUCTURED_DOC="",e.CONTEXTUAL="",e.THIN_ARROW_UP="",e.ARROW_RIGHT_TO_LINE="",e.DESKTOP="",e.TABLET_LANDSCAPE="",e.TABLET_PORTRAIT="",e.MOBILE_LANDSCAPE="",e.MOBILE_PORTRAIT="",e.DIAGRAM_SUNBURST="",e.DIAGRAM_SANKEY="",e.COMMENT_QUESTION="",e.COMMENT_QUESTION_PLAIN="",e.MESSAGE_BOT="",e.CHART_SIMPLE="",e.BARS_PROGRESS="",e.BOOK_OPEN_GEAR="",e.BOOK_OPEN_GEAR_SLASH="",e.LINE_CHART="",e.STACKED_CHART="",e.CHART_BAR_STACKED="",e.CHART_BAR_GROUPED="",e.EYE_SLASH="",e.X_MARK="",e.EXPAND_WIDE="",e.PIP="",e.PIP_WIDE="",e.LIFE_RING="",e.GLOBE="",e.PIGGY_BANK="",e.EXTLINK_LIGHT="",e.CLONE="",e.CLONE_LINK_SIMPLE="",e.CHART_BAR_NORMALIZED="",e.CONSUMER="",e.OCTAGON_XMARK="",e.HOURGLASS_HALF="",e.CLOCK="",e.CLOCK_THREE="",e.CALENDAR_DAY="",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="",e.WAND_MAGIC_SPARKLES="",e.PAPER_PLANE="",e.CIRCLE_STOP="",e.ARROW_ROTATE_RIGHT="",e.ARROWS_ROTATE="",e.ALIGN_RIGHT="",e.FORMAT_CLEAR="",e.ALIGN_CENTER="",e.ALIGN_LEFT="",e.PALETTE="",e.BOLD="",e.ITALIC="",e.UNDERLINE="",e.STRIKETHROUGH="",e.LINK_SIMPLE_SLASH="",e.LINK_SIMPLE="",e.ROUTE="",e.CIRCLE_USER_SLASH="",e.CIRCLE_USER_CHECK="",e.LIST_MAGNIFYING_GLASS="",e.MEDAL="",e.THUMBS_UP_THUMBS_DOWN_SOLID="",e.ARROW_TURN_DOWN_RIGHT="",e.FLASK="",e.LOCK_KEYHOLE_OPEN_SOLID="",e.HOURGLASS_END="",e.CIRCLE_QUESTION="",e.GRIP_LINES_SOLID="",e.TRANSLATE_SPARKLE_SOLID="",e.CODE="",e.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",e.PAPER_PLANE_SLASH="",e.COMPRESS="",e.EXPAND="",e.ARROW_ROTATE_LEFT="",e.MOBILE_SMALL="",e.SPARKLES="",e.HAND_SOLID="",e.CLOCK_SOLID="",e.CONTEXT_MENU_CURSOR="",e.LANGUAGE_SLASH="",e.MAGNIFYING_GLASS_FLOPPY_DISK="",e.CABINET_FILING_FLOPPY_DISK="",e.BOOKMARK_SLASH="",e.CIRCLE_PAUSE="",e.CIRCLE_PLAY="",e.CIRCLE_STOP_PLAIN="",e.CIRCLE_ARROW_DOWN="",e.SHARE_NODES="",e.BELL="",e.BELL_SLASH="",e.FILE="",e.HAND="",e.SQUARE_INFO_SOLID="",e.FILE_CODE="",e.BOX_CODE="",e.TOPICS_SOLID="",e.PHOTO_FILM="",e.HYPHEN_SOLID="",e.CROSSHAIRS="",e.PERSON_CHALKBOARD="",e.CIRCLE_ARROW_DOWN_SLASH="",e.BOOK_OPEN_COVER="",e.LIGHTBULB="",e.MESSAGE_BOT_AGENTIC_SOLID="",e.CHART_LINE_USER="",e.SERVER_CIRCLE_ARROW_DOWN="",e.EYE="",e.SHARE="󨃱"})(Se||(Se={}));var g;(function(e){e.UNKNOWN="",e.ABW="",e.AUDIO="",e.AVI="",e.CHM="",e.CODE="",e.CSV="",e.DITA="",e.EPUB="",e.EXCEL="",e.FLAC="",e.GIF="",e.GZIP="",e.HTML="",e.IMAGE="",e.JPEG="",e.JSON="",e.M4A="",e.MOV="",e.MP3="",e.MP4="",e.OGG="",e.PDF="",e.PNG="",e.POWERPOINT="",e.RAR="",e.STP="",e.TEXT="",e.VIDEO="",e.WAV="",e.WMA="",e.WORD="",e.XML="",e.YAML="",e.ZIP=""})(g||(g={}));var go=new Map([...["abw"].map(e=>[e,g.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(e=>[e,g.AUDIO]),...["avi"].map(e=>[e,g.AVI]),...["chm","xhs"].map(e=>[e,g.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(e=>[e,g.CODE]),...["csv"].map(e=>[e,g.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,g.DITA]),...["epub"].map(e=>[e,g.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,g.EXCEL]),...["flac"].map(e=>[e,g.FLAC]),...["gif"].map(e=>[e,g.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,g.GZIP]),...["html","htm","xhtml"].map(e=>[e,g.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(e=>[e,g.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,g.JPEG]),...["json"].map(e=>[e,g.JSON]),...["m4a","m4p"].map(e=>[e,g.M4A]),...["mov","qt"].map(e=>[e,g.MOV]),...["mp3"].map(e=>[e,g.MP3]),...["mp4","m4v"].map(e=>[e,g.MP4]),...["ogg","oga"].map(e=>[e,g.OGG]),...["pdf","ps"].map(e=>[e,g.PDF]),...["png"].map(e=>[e,g.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,g.POWERPOINT]),...["rar"].map(e=>[e,g.RAR]),...["stp"].map(e=>[e,g.STP]),...["txt","rtf","md","mdown"].map(e=>[e,g.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(e=>[e,g.VIDEO]),...["wav"].map(e=>[e,g.WAV]),...["wma"].map(e=>[e,g.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,g.WORD]),...["xml","xsl","rdf"].map(e=>[e,g.XML]),...["yaml","yml","x-yaml"].map(e=>[e,g.YAML]),...["zip"].map(e=>[e,g.ZIP])]),vd=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);function Hn(e,t){var r,n,i,o;e=(e??"").toLowerCase(),t=(t??"").toLowerCase();let[s,a]=(((r=vd.get(e))!==null&&r!==void 0?r:e)+"/").split("/");return(o=(i=(n=go.get(a))!==null&&n!==void 0?n:go.get(t))!==null&&i!==void 0?i:go.get(s))!==null&&o!==void 0?o:g.UNKNOWN}var yo={[g.ABW]:"#91ABC6",[g.AUDIO]:"#1795E3",[g.AVI]:"#E63324",[g.CHM]:"#71C3EB",[g.CODE]:"#71C3EB",[g.CSV]:"#1F7345",[g.DITA]:"#71C3EB",[g.EPUB]:"#85B926",[g.EXCEL]:"#1F7345",[g.FLAC]:"#1795E3",[g.GIF]:"#59B031",[g.GZIP]:"#F8AB36",[g.HTML]:"#71C3EB",[g.IMAGE]:"#59B031",[g.JPEG]:"#59B031",[g.JSON]:"#71C3EB",[g.M4A]:"#1795E3",[g.MOV]:"#E63324",[g.MP3]:"#1795E3",[g.MP4]:"#E63324",[g.OGG]:"#1795E3",[g.PDF]:"#E44948",[g.PNG]:"#59B031",[g.POWERPOINT]:"#B54A2B",[g.RAR]:"#F8AB36",[g.STP]:"#3764B1",[g.TEXT]:"#3162AB",[g.UNKNOWN]:"#999999",[g.VIDEO]:"#E63324",[g.WAV]:"#1795E3",[g.WMA]:"#1795E3",[g.WORD]:"#3162AB",[g.XML]:"#71C3EB",[g.YAML]:"#71C3EB",[g.ZIP]:"#F8AB36"};var $r=function(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,r,o):s(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},F=class extends $l.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=Ur.nothing}render(){let t=this.variant&&Object.values(Ne).includes(this.variant)?this.variant:Ne.fluid_topics,r=t!==Ne.material||!!this.value;return Ur.html`
|
|
270
270
|
<i class="ft-icon ft-icon--${t} ft-no-text-select" part="icon icon-${t}">
|
|
271
271
|
${(0,Hl.unsafeHTML)(this.resolvedIcon)}
|
|
272
272
|
<slot ?hidden=${r}></slot>
|
|
273
273
|
</i>
|
|
274
|
-
`}getTextContent(){var t,r;return(r=(t=this.slottedContent)===null||t===void 0?void 0:t.assignedNodes().map(n=>n.textContent).join("").trim())!==null&&r!==void 0?r:""}update(t){super.update(t),["value","variant"].some(r=>t.has(r))&&this.resolveIcon()}resolveIcon(){var t,r;let n=this.value||this.getTextContent();switch(this.variant){case Ne.file_format:this.resolvedIcon=(t=g[n.replace("-","_").toUpperCase()])!==null&&t!==void 0?t:n;break;case Ne.material:this.resolvedIcon=this.value
|
|
274
|
+
`}getTextContent(){var t,r;return(r=(t=this.slottedContent)===null||t===void 0?void 0:t.assignedNodes().map(n=>n.textContent).join("").trim())!==null&&r!==void 0?r:""}update(t){super.update(t),["value","variant"].some(r=>t.has(r))&&this.resolveIcon()}resolveIcon(){var t,r;let n=this.value||this.getTextContent();switch(this.variant){case Ne.file_format:this.resolvedIcon=(t=g[n.replace("-","_").toUpperCase()])!==null&&t!==void 0?t:n;break;case Ne.material:this.resolvedIcon=this.value||Ur.nothing;break;default:this.resolvedIcon=(r=Se[n.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:n;break}}firstUpdated(t){super.firstUpdated(t),setTimeout(()=>this.resolveIcon())}};F.elementDefinitions={};F.styles=Ul;$r([(0,nt.property)()],F.prototype,"variant",void 0);$r([(0,nt.property)()],F.prototype,"value",void 0);$r([(0,nt.property)({reflect:!0,attribute:"aria-hidden"})],F.prototype,"ariaHidden",void 0);$r([(0,nt.state)()],F.prototype,"resolvedIcon",void 0);$r([(0,nt.query)("slot")],F.prototype,"slottedContent",void 0);var Bl=f(A());var jl={"ft-icon":F};(0,Bl.customElements)(jl);var Ec=f(T()),me=f(N()),he=f(A());var Vl=f(T()),it=f(A()),Hr={distance:it.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:it.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:it.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:it.FtCssVariableFactory.extend("--ft-tooltip-border-radius","",it.designSystemVariables.borderRadiusS),maxWidth:it.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},Fl=Vl.css`
|
|
275
275
|
.ft-tooltip--container {
|
|
276
276
|
display: block;
|
|
277
277
|
}
|
|
@@ -289,20 +289,20 @@
|
|
|
289
289
|
box-sizing: border-box;
|
|
290
290
|
overflow: hidden;
|
|
291
291
|
width: max-content;
|
|
292
|
-
max-width: ${
|
|
292
|
+
max-width: ${Hr.maxWidth};
|
|
293
293
|
text-align: center;
|
|
294
|
-
padding: ${
|
|
294
|
+
padding: ${Hr.distance};
|
|
295
295
|
}
|
|
296
296
|
|
|
297
297
|
.ft-tooltip--content {
|
|
298
298
|
padding: 4px 8px;
|
|
299
|
-
border-radius: ${
|
|
300
|
-
background-color: ${
|
|
301
|
-
color: ${
|
|
299
|
+
border-radius: ${Hr.borderRadiusS};
|
|
300
|
+
background-color: ${Hr.backgroundColor};
|
|
301
|
+
color: ${Hr.color};
|
|
302
302
|
position: relative;
|
|
303
303
|
word-break: break-word;
|
|
304
304
|
}
|
|
305
|
-
`;var zl=["top","right","bottom","left"],Wl=["start","end"],bo=zl.reduce((e,t)=>e.concat(t,t+"-"+Wl[0],t+"-"+Wl[1]),[]),Br=Math.min,ot=Math.max,Vr=Math.round;var we=e=>({x:e,y:e}),vd={left:"right",right:"left",bottom:"top",top:"bottom"};function Ao(e,t,r){return ot(e,Br(t,r))}function jn(e,t){return typeof e=="function"?e(t):e}function lr(e){return e.split("-")[0]}function st(e){return e.split("-")[1]}function Eo(e){return e==="x"?"y":"x"}function So(e){return e==="y"?"height":"width"}function Bn(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function wo(e){return Eo(Bn(e))}function Kl(e,t,r){r===void 0&&(r=!1);let n=st(e),i=wo(e),o=So(i),s=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=xo(s)),[s,xo(s)]}function Gl(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}function xo(e){let t=lr(e);return vd[t]+e.slice(t.length)}function gd(e){return{top:0,right:0,bottom:0,left:0,...e}}function ql(e){return typeof e!="number"?gd(e):{top:e,right:e,bottom:e,left:e}}function St(e){let{x:t,y:r,width:n,height:i}=e;return{width:n,height:i,top:r,left:t,right:t+n,bottom:r+i,x:t,y:r}}function Yl(e,t,r){let{reference:n,floating:i}=e,o=Bn(t),s=wo(t),a=So(s),l=lr(t),c=o==="y",u=n.x+n.width/2-i.width/2,d=n.y+n.height/2-i.height/2,p=n[a]/2-i[a]/2,f;switch(l){case"top":f={x:u,y:n.y-i.height};break;case"bottom":f={x:u,y:n.y+n.height};break;case"right":f={x:n.x+n.width,y:d};break;case"left":f={x:n.x-i.width,y:d};break;default:f={x:n.x,y:n.y}}switch(st(t)){case"start":f[s]-=p*(r&&c?-1:1);break;case"end":f[s]+=p*(r&&c?-1:1);break}return f}async function Xl(e,t){var r;t===void 0&&(t={});let{x:n,y:i,platform:o,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:f=0}=jn(t,e),m=ql(f),x=a[p?d==="floating"?"reference":"floating":d],b=St(await o.getClippingRect({element:(r=await(o.isElement==null?void 0:o.isElement(x)))==null||r?x:x.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),E=d==="floating"?{x:n,y:i,width:s.floating.width,height:s.floating.height}:s.reference,C=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),O=await(o.isElement==null?void 0:o.isElement(C))?await(o.getScale==null?void 0:o.getScale(C))||{x:1,y:1}:{x:1,y:1},k=St(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:E,offsetParent:C,strategy:l}):E);return{top:(b.top-k.top+m.top)/O.y,bottom:(k.bottom-b.bottom+m.bottom)/O.y,left:(b.left-k.left+m.left)/O.x,right:(k.right-b.right+m.right)/O.x}}var yd=50,Zl=async(e,t,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:s}=r,a=s.detectOverflow?s:{...s,detectOverflow:Xl},l=await(s.isRTL==null?void 0:s.isRTL(t)),c=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Yl(c,n,l),p=n,f=0,m={};for(let v=0;v<o.length;v++){let x=o[v];if(!x)continue;let{name:b,fn:E}=x,{x:C,y:O,data:k,reset:M}=await E({x:u,y:d,initialPlacement:n,placement:p,strategy:i,middlewareData:m,rects:c,platform:a,elements:{reference:e,floating:t}});u=C??u,d=O??d,m[b]={...m[b],...k},M&&f<yd&&(f++,typeof M=="object"&&(M.placement&&(p=M.placement),M.rects&&(c=M.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):M.rects),{x:u,y:d}=Yl(c,p,l)),v=-1)}return{x:u,y:d,placement:p,strategy:i,middlewareData:m}};function xd(e,t,r){return(e?[...r.filter(i=>st(i)===e),...r.filter(i=>st(i)!==e)]:r.filter(i=>lr(i)===i)).filter(i=>e?st(i)===e||(t?Gl(i)!==i:!1):!0)}var Jl=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,n,i;let{rects:o,middlewareData:s,placement:a,platform:l,elements:c}=t,{crossAxis:u=!1,alignment:d,allowedPlacements:p=bo,autoAlignment:f=!0,...m}=jn(e,t),v=d!==void 0||p===bo?xd(d||null,f,p):p,x=await l.detectOverflow(t,m),b=((r=s.autoPlacement)==null?void 0:r.index)||0,E=v[b];if(E==null)return{};let C=Kl(E,o,await(l.isRTL==null?void 0:l.isRTL(c.floating)));if(a!==E)return{reset:{placement:v[0]}};let O=[x[lr(E)],x[C[0]],x[C[1]]],k=[...((n=s.autoPlacement)==null?void 0:n.overflows)||[],{placement:E,overflows:O}],M=v[b+1];if(M)return{data:{index:b+1,overflows:k},reset:{placement:M}};let Ke=k.map(Q=>{let ie=st(Q.placement);return[Q.placement,ie&&u?Q.overflows.slice(0,2).reduce((ee,ct)=>ee+ct,0):Q.overflows[0],Q.overflows]}).sort((Q,ie)=>Q[1]-ie[1]),Ge=((i=Ke.filter(Q=>Q[2].slice(0,st(Q[0])?2:3).every(ie=>ie<=0))[0])==null?void 0:i[0])||Ke[0][0];return Ge!==a?{data:{index:b+1,overflows:k},reset:{placement:Ge}}:{}}}};var Ql=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:n,placement:i,platform:o}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:b=>{let{x:E,y:C}=b;return{x:E,y:C}}},...c}=jn(e,t),u={x:r,y:n},d=await o.detectOverflow(t,c),p=Bn(lr(i)),f=Eo(p),m=u[f],v=u[p];if(s){let b=f==="y"?"top":"left",E=f==="y"?"bottom":"right",C=m+d[b],O=m-d[E];m=Ao(C,m,O)}if(a){let b=p==="y"?"top":"left",E=p==="y"?"bottom":"right",C=v+d[b],O=v-d[E];v=Ao(C,v,O)}let x=l.fn({...t,[f]:m,[p]:v});return{...x,data:{x:x.x-r,y:x.y-n,enabled:{[f]:s,[p]:a}}}}}};function Fn(){return typeof window<"u"}function Ct(e){return tc(e)?(e.nodeName||"").toLowerCase():"#document"}function Z(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Pe(e){var t;return(t=(tc(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function tc(e){return Fn()?e instanceof Node||e instanceof Z(e).Node:!1}function pe(e){return Fn()?e instanceof Element||e instanceof Z(e).Element:!1}function Me(e){return Fn()?e instanceof HTMLElement||e instanceof Z(e).HTMLElement:!1}function ec(e){return!Fn()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Z(e).ShadowRoot}function cr(e){let{overflow:t,overflowX:r,overflowY:n,display:i}=fe(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&i!=="inline"&&i!=="contents"}function rc(e){return/^(table|td|th)$/.test(Ct(e))}function Fr(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var bd=/transform|translate|scale|rotate|perspective|filter/,Ad=/paint|layout|strict|content/,wt=e=>!!e&&e!=="none",Co;function ur(e){let t=pe(e)?fe(e):e;return wt(t.transform)||wt(t.translate)||wt(t.scale)||wt(t.rotate)||wt(t.perspective)||!Wn()&&(wt(t.backdropFilter)||wt(t.filter))||bd.test(t.willChange||"")||Ad.test(t.contain||"")}function nc(e){let t=Be(e);for(;Me(t)&&!Ot(t);){if(ur(t))return t;if(Fr(t))return null;t=Be(t)}return null}function Wn(){return Co==null&&(Co=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Co}function Ot(e){return/^(html|body|#document)$/.test(Ct(e))}function fe(e){return Z(e).getComputedStyle(e)}function Wr(e){return pe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Be(e){if(Ct(e)==="html")return e;let t=e.assignedSlot||e.parentNode||ec(e)&&e.host||Pe(e);return ec(t)?t.host:t}function ic(e){let t=Be(e);return Ot(t)?e.ownerDocument?e.ownerDocument.body:e.body:Me(t)&&cr(t)?t:ic(t)}function Vn(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);let i=ic(e),o=i===((n=e.ownerDocument)==null?void 0:n.body),s=Z(i);if(o){let a=zn(s);return t.concat(s,s.visualViewport||[],cr(i)?i:[],a&&r?Vn(a):[])}else return t.concat(i,Vn(i,[],r))}function zn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function lc(e){let t=fe(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,i=Me(e),o=i?e.offsetWidth:r,s=i?e.offsetHeight:n,a=Vr(r)!==o||Vr(n)!==s;return a&&(r=o,n=s),{width:r,height:n,$:a}}function cc(e){return pe(e)?e:e.contextElement}function dr(e){let t=cc(e);if(!Me(t))return we(1);let r=t.getBoundingClientRect(),{width:n,height:i,$:o}=lc(t),s=(o?Vr(r.width):r.width)/n,a=(o?Vr(r.height):r.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}var Ed=we(0);function uc(e){let t=Z(e);return!Wn()||!t.visualViewport?Ed:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Sd(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Z(e)?!1:t}function zr(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);let i=e.getBoundingClientRect(),o=cc(e),s=we(1);t&&(n?pe(n)&&(s=dr(n)):s=dr(e));let a=Sd(o,r,n)?uc(o):we(0),l=(i.left+a.x)/s.x,c=(i.top+a.y)/s.y,u=i.width/s.x,d=i.height/s.y;if(o){let p=Z(o),f=n&&pe(n)?Z(n):n,m=p,v=zn(m);for(;v&&n&&f!==m;){let x=dr(v),b=v.getBoundingClientRect(),E=fe(v),C=b.left+(v.clientLeft+parseFloat(E.paddingLeft))*x.x,O=b.top+(v.clientTop+parseFloat(E.paddingTop))*x.y;l*=x.x,c*=x.y,u*=x.x,d*=x.y,l+=C,c+=O,m=Z(v),v=zn(m)}}return St({width:u,height:d,x:l,y:c})}function Kn(e,t){let r=Wr(e).scrollLeft;return t?t.left+r:zr(Pe(e)).left+r}function dc(e,t){let r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-Kn(e,r),i=r.top+t.scrollTop;return{x:n,y:i}}function wd(e){let{elements:t,rect:r,offsetParent:n,strategy:i}=e,o=i==="fixed",s=Pe(n),a=t?Fr(t.floating):!1;if(n===s||a&&o)return r;let l={scrollLeft:0,scrollTop:0},c=we(1),u=we(0),d=Me(n);if((d||!d&&!o)&&((Ct(n)!=="body"||cr(s))&&(l=Wr(n)),d)){let f=zr(n);c=dr(n),u.x=f.x+n.clientLeft,u.y=f.y+n.clientTop}let p=s&&!d&&!o?dc(s,l):we(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:r.y*c.y-l.scrollTop*c.y+u.y+p.y}}function Cd(e){return Array.from(e.getClientRects())}function Od(e){let t=Pe(e),r=Wr(e),n=e.ownerDocument.body,i=ot(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),o=ot(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),s=-r.scrollLeft+Kn(e),a=-r.scrollTop;return fe(n).direction==="rtl"&&(s+=ot(t.clientWidth,n.clientWidth)-i),{width:i,height:o,x:s,y:a}}var oc=25;function Td(e,t){let r=Z(e),n=Pe(e),i=r.visualViewport,o=n.clientWidth,s=n.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;let u=Wn();(!u||u&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}let c=Kn(n);if(c<=0){let u=n.ownerDocument,d=u.body,p=getComputedStyle(d),f=u.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,m=Math.abs(n.clientWidth-d.clientWidth-f);m<=oc&&(o-=m)}else c<=oc&&(o+=c);return{width:o,height:s,x:a,y:l}}function _d(e,t){let r=zr(e,!0,t==="fixed"),n=r.top+e.clientTop,i=r.left+e.clientLeft,o=Me(e)?dr(e):we(1),s=e.clientWidth*o.x,a=e.clientHeight*o.y,l=i*o.x,c=n*o.y;return{width:s,height:a,x:l,y:c}}function sc(e,t,r){let n;if(t==="viewport")n=Td(e,r);else if(t==="document")n=Od(Pe(e));else if(pe(t))n=_d(t,r);else{let i=uc(e);n={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return St(n)}function pc(e,t){let r=Be(e);return r===t||!pe(r)||Ot(r)?!1:fe(r).position==="fixed"||pc(r,t)}function Rd(e,t){let r=t.get(e);if(r)return r;let n=Vn(e,[],!1).filter(a=>pe(a)&&Ct(a)!=="body"),i=null,o=fe(e).position==="fixed",s=o?Be(e):e;for(;pe(s)&&!Ot(s);){let a=fe(s),l=ur(s);!l&&a.position==="fixed"&&(i=null),(o?!l&&!i:!l&&a.position==="static"&&!!i&&(i.position==="absolute"||i.position==="fixed")||cr(s)&&!l&&pc(e,s))?n=n.filter(u=>u!==s):i=a,s=Be(s)}return t.set(e,n),n}function Ld(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e,s=[...r==="clippingAncestors"?Fr(t)?[]:Rd(t,this._c):[].concat(r),n],a=sc(t,s[0],i),l=a.top,c=a.right,u=a.bottom,d=a.left;for(let p=1;p<s.length;p++){let f=sc(t,s[p],i);l=ot(f.top,l),c=Br(f.right,c),u=Br(f.bottom,u),d=ot(f.left,d)}return{width:c-d,height:u-l,x:d,y:l}}function Nd(e){let{width:t,height:r}=lc(e);return{width:t,height:r}}function Pd(e,t,r){let n=Me(t),i=Pe(t),o=r==="fixed",s=zr(e,!0,o,t),a={scrollLeft:0,scrollTop:0},l=we(0);function c(){l.x=Kn(i)}if(n||!n&&!o)if((Ct(t)!=="body"||cr(i))&&(a=Wr(t)),n){let f=zr(t,!0,o,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}else i&&c();o&&!n&&i&&c();let u=i&&!n&&!o?dc(i,a):we(0),d=s.left+a.scrollLeft-l.x-u.x,p=s.top+a.scrollTop-l.y-u.y;return{x:d,y:p,width:s.width,height:s.height}}function Oo(e){return fe(e).position==="static"}function ac(e,t){if(!Me(e)||fe(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Pe(e)===r&&(r=r.ownerDocument.body),r}function fc(e,t){let r=Z(e);if(Fr(e))return r;if(!Me(e)){let i=Be(e);for(;i&&!Ot(i);){if(pe(i)&&!Oo(i))return i;i=Be(i)}return r}let n=ac(e,t);for(;n&&rc(n)&&Oo(n);)n=ac(n,t);return n&&Ot(n)&&Oo(n)&&!ur(n)?r:n||nc(e)||r}var Md=async function(e){let t=this.getOffsetParent||fc,r=this.getDimensions,n=await r(e.floating);return{reference:Pd(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Dd(e){return fe(e).direction==="rtl"}var Gn={convertOffsetParentRelativeRectToViewportRelativeRect:wd,getDocumentElement:Pe,getClippingRect:Ld,getOffsetParent:fc,getElementRects:Md,getClientRects:Cd,getDimensions:Nd,getScale:dr,isElement:pe,isRTL:Dd};var hc=Jl,mc=Ql;var vc=(e,t,r)=>{let n=new Map,i={platform:Gn,...r},o={...i.platform,_c:n};return Zl(e,t,{...i,platform:o})};function gc(e){return Id(e)}function To(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function Id(e){for(let t=e;t;t=To(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=To(e);t;t=To(t)){if(!(t instanceof Element))continue;let r=getComputedStyle(t);if(r.display!=="contents"&&(r.position!=="static"||ur(r)||t.tagName==="BODY"))return t}return null}async function yc(e,t,r){let n;return typeof r=="object"?n=r:n={placement:r},vc(e,t,{strategy:n.strategy,platform:{...Gn,getOffsetParent:i=>Gn.getOffsetParent(i,gc)},middleware:[mc({crossAxis:!0}),hc({allowedPlacements:[n.placement]})]})}var xc=h(A());var _o=class{fromAttribute(t){if(!t)return[];try{let r=JSON.parse(t);return Array.isArray(r)?r.map(n=>typeof n=="string"?sr.fromAttribute(n):n):[]}catch{return[]}}toAttribute(t){if(t!=null)return JSON.stringify(t)}},kd=new _o;var bc=(e,t)=>(r,n)=>{var i;r.constructor.createProperty(n,{type:Object,hasChanged:xc.hasChanged,converter:sr,...t}),r[kr]=(i=r[kr])!==null&&i!==void 0?i:new Map,r[kr].set(n,e??{})};var Ce=function(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,r,o):s(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},U=class extends Dn{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 he.Debouncer,this.revealDebouncer=new he.Debouncer,this.onTouch=t=>{this.isIgnored(t)||(this.show(),setTimeout(()=>window.addEventListener("touchstart",r=>{r.composedPath().includes(this.container)||this.onOut(r)},{once:!0}),100))},this.onHover=t=>{this.isIgnored(t)||this.show()},this.onFocusIn=t=>{!this.isIgnored(t)&&window.FluidTopicsA11yHints.isKeyboardNavigation&&window.FluidTopicsA11yHints.lastPressedKey==="Tab"&&this.show()},this.onOut=t=>{this.isIgnored(t)||(this.revealDebouncer.cancel(),this.hide())},this.onClick=t=>{this.isIgnored(t)||(this.revealDebouncer.cancel(),this.hide())}}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){var t,r;return Ac.html`
|
|
305
|
+
`;var zl=["top","right","bottom","left"],Wl=["start","end"],bo=zl.reduce((e,t)=>e.concat(t,t+"-"+Wl[0],t+"-"+Wl[1]),[]),jr=Math.min,ot=Math.max,Br=Math.round;var we=e=>({x:e,y:e}),gd={left:"right",right:"left",bottom:"top",top:"bottom"};function Kl(e,t,r){return ot(e,jr(t,r))}function jn(e,t){return typeof e=="function"?e(t):e}function Vr(e){return e.split("-")[0]}function st(e){return e.split("-")[1]}function Ao(e){return e==="x"?"y":"x"}function Eo(e){return e==="y"?"height":"width"}function Bn(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function So(e){return Ao(Bn(e))}function Gl(e,t,r){r===void 0&&(r=!1);let n=st(e),i=So(e),o=Eo(i),s=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=xo(s)),[s,xo(s)]}function ql(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}function xo(e){let t=Vr(e);return gd[t]+e.slice(t.length)}function yd(e){var t,r,n,i;return{top:(t=e.top)!=null?t:0,right:(r=e.right)!=null?r:0,bottom:(n=e.bottom)!=null?n:0,left:(i=e.left)!=null?i:0}}function Yl(e){return typeof e!="number"?yd(e):{top:e,right:e,bottom:e,left:e}}function St(e){let{x:t,y:r,width:n,height:i}=e;return{width:n,height:i,top:r,left:t,right:t+n,bottom:r+i,x:t,y:r}}function Xl(e,t,r){let{reference:n,floating:i}=e,o=Bn(t),s=So(t),a=Eo(s),l=Vr(t),c=o==="y",u=n.x+n.width/2-i.width/2,d=n.y+n.height/2-i.height/2,p=n[a]/2-i[a]/2,h;switch(l){case"top":h={x:u,y:n.y-i.height};break;case"bottom":h={x:u,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:d};break;case"left":h={x:n.x-i.width,y:d};break;default:h={x:n.x,y:n.y}}let m=st(t);return m&&(h[s]+=p*(m==="end"?1:-1)*(r&&c?-1:1)),h}async function Zl(e,t){var r;t===void 0&&(t={});let{x:n,y:i,platform:o,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:h=0}=jn(t,e),m=Yl(h),x=a[p?d==="floating"?"reference":"floating":d],b=St(await o.getClippingRect({element:(r=await(o.isElement==null?void 0:o.isElement(x)))==null||r?x:x.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),E=d==="floating"?{x:n,y:i,width:s.floating.width,height:s.floating.height}:s.reference,C=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),O=await(o.isElement==null?void 0:o.isElement(C))&&await(o.getScale==null?void 0:o.getScale(C))||{x:1,y:1},k=St(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:E,offsetParent:C,strategy:l}):E);return{top:(b.top-k.top+m.top)/O.y,bottom:(k.bottom-b.bottom+m.bottom)/O.y,left:(b.left-k.left+m.left)/O.x,right:(k.right-b.right+m.right)/O.x}}var xd=50,Jl=async(e,t,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:s}=r,a=s.detectOverflow?s:{...s,detectOverflow:Zl},l=await(s.isRTL==null?void 0:s.isRTL(t)),c=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Xl(c,n,l),p=n,h=0,m={};for(let v=0;v<o.length;v++){let x=o[v];if(!x)continue;let{name:b,fn:E}=x,{x:C,y:O,data:k,reset:M}=await E({x:u,y:d,initialPlacement:n,placement:p,strategy:i,middlewareData:m,rects:c,platform:a,elements:{reference:e,floating:t}});u=C??u,d=O??d,m[b]={...m[b],...k},M&&h<xd&&(h++,typeof M=="object"&&(M.placement&&(p=M.placement),M.rects&&(c=M.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):M.rects),{x:u,y:d}=Xl(c,p,l)),v=-1)}return{x:u,y:d,placement:p,strategy:i,middlewareData:m}};function bd(e,t,r){return(e?[...r.filter(i=>st(i)===e),...r.filter(i=>st(i)!==e)]:r.filter(i=>Vr(i)===i)).filter(i=>e?st(i)===e||(t?ql(i)!==i:!1):!0)}var Ql=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,n,i;let{rects:o,middlewareData:s,placement:a,platform:l,elements:c}=t,{crossAxis:u=!1,alignment:d,allowedPlacements:p=bo,autoAlignment:h=!0,...m}=jn(e,t),v=d!==void 0||p===bo?bd(d||null,h,p):p,x=((r=s.autoPlacement)==null?void 0:r.index)||0,b=v[x];if(b==null)return{};if(a!==b)return{reset:{placement:v[0]}};let E=await l.detectOverflow(t,m),C=Gl(b,o,await(l.isRTL==null?void 0:l.isRTL(c.floating))),O=[E[Vr(b)],E[C[0]],E[C[1]]],k=[...((n=s.autoPlacement)==null?void 0:n.overflows)||[],{placement:b,overflows:O}],M=v[x+1];if(M)return{data:{index:x+1,overflows:k},reset:{placement:M}};let Ke=k.map(Q=>{let ie=st(Q.placement);return[Q.placement,ie&&u?Q.overflows.slice(0,2).reduce((ee,ct)=>ee+ct,0):Q.overflows[0],Q.overflows]}).sort((Q,ie)=>Q[1]-ie[1]),Ge=((i=Ke.filter(Q=>Q[2].slice(0,st(Q[0])?2:3).every(ie=>ie<=0))[0])==null?void 0:i[0])||Ke[0][0];return Ge!==a?{data:{index:x+1,overflows:k},reset:{placement:Ge}}:{}}}};var ec=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:n,placement:i,platform:o}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:E=>{let{x:C,y:O}=E;return{x:C,y:O}}},...c}=jn(e,t),u={x:r,y:n},d=await o.detectOverflow(t,c),p=Bn(i),h=Ao(p),m=u[h],v=u[p],x=(E,C)=>Kl(C+d[E==="y"?"top":"left"],C,C-d[E==="y"?"bottom":"right"]);s&&(m=x(h,m)),a&&(v=x(p,v));let b=l.fn({...t,[h]:m,[p]:v});return{...b,data:{x:b.x-r,y:b.y-n,enabled:{[h]:s,[p]:a}}}}}};function Fn(){return typeof window<"u"}function Ct(e){return rc(e)?(e.nodeName||"").toLowerCase():"#document"}function Z(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Pe(e){var t;return(t=(rc(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function rc(e){return Fn()?e instanceof Node||e instanceof Z(e).Node:!1}function pe(e){return Fn()?e instanceof Element||e instanceof Z(e).Element:!1}function Me(e){return Fn()?e instanceof HTMLElement||e instanceof Z(e).HTMLElement:!1}function tc(e){return!Fn()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Z(e).ShadowRoot}function lr(e){let{overflow:t,overflowX:r,overflowY:n,display:i}=fe(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&i!=="inline"&&i!=="contents"}function nc(e){return/^(table|td|th)$/.test(Ct(e))}function Fr(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var Ad=/transform|translate|scale|rotate|perspective|filter/,Ed=/paint|layout|strict|content/,wt=e=>!!e&&e!=="none",wo;function cr(e){let t=pe(e)?fe(e):e;return wt(t.transform)||wt(t.translate)||wt(t.scale)||wt(t.rotate)||wt(t.perspective)||!Wn()&&(wt(t.backdropFilter)||wt(t.filter))||Ad.test(t.willChange||"")||Ed.test(t.contain||"")}function ic(e){let t=Be(e);for(;Me(t)&&!Ot(t);){if(cr(t))return t;if(Fr(t))return null;t=Be(t)}return null}function Wn(){return wo==null&&(wo=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),wo}function Ot(e){return/^(html|body|#document)$/.test(Ct(e))}function fe(e){return Z(e).getComputedStyle(e)}function Wr(e){return pe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Be(e){if(Ct(e)==="html")return e;let t=e.assignedSlot||e.parentNode||tc(e)&&e.host||Pe(e);return tc(t)?t.host:t}function oc(e){let t=Be(e);return Ot(t)?(e.ownerDocument||e).body:Me(t)&&lr(t)?t:oc(t)}function Vn(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);let i=oc(e),o=i===((n=e.ownerDocument)==null?void 0:n.body),s=Z(i);if(o){let a=zn(s);return t.concat(s,s.visualViewport||[],lr(i)?i:[],a&&r?Vn(a):[])}else return t.concat(i,Vn(i,[],r))}function zn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function cc(e){let t=fe(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,i=Me(e),o=i?e.offsetWidth:r,s=i?e.offsetHeight:n,a=Br(r)!==o||Br(n)!==s;return a&&(r=o,n=s),{width:r,height:n,$:a}}function uc(e){return pe(e)?e:e.contextElement}function ur(e){let t=uc(e);if(!Me(t))return we(1);let r=t.getBoundingClientRect(),{width:n,height:i,$:o}=cc(t),s=(o?Br(r.width):r.width)/n,a=(o?Br(r.height):r.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}var Sd=we(0);function dc(e){let t=Z(e);return!Wn()||!t.visualViewport?Sd:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function wd(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Z(e)?!1:t}function zr(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);let i=e.getBoundingClientRect(),o=uc(e),s=we(1);t&&(n?pe(n)&&(s=ur(n)):s=ur(e));let a=wd(o,r,n)?dc(o):we(0),l=(i.left+a.x)/s.x,c=(i.top+a.y)/s.y,u=i.width/s.x,d=i.height/s.y;if(o){let p=Z(o),h=n&&pe(n)?Z(n):n,m=p,v=zn(m);for(;v&&n&&h!==m;){let x=ur(v),b=v.getBoundingClientRect(),E=fe(v),C=b.left+(v.clientLeft+parseFloat(E.paddingLeft))*x.x,O=b.top+(v.clientTop+parseFloat(E.paddingTop))*x.y;l*=x.x,c*=x.y,u*=x.x,d*=x.y,l+=C,c+=O,m=Z(v),v=zn(m)}}return St({width:u,height:d,x:l,y:c})}function Kn(e,t){let r=Wr(e).scrollLeft;return t?t.left+r:zr(Pe(e)).left+r}function pc(e,t){let r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-Kn(e,r),i=r.top+t.scrollTop;return{x:n,y:i}}function Cd(e){let{elements:t,rect:r,offsetParent:n,strategy:i}=e,o=i==="fixed",s=Pe(n),a=t?Fr(t.floating):!1;if(n===s||a&&o)return r;let l={scrollLeft:0,scrollTop:0},c=we(1),u=we(0),d=Me(n);if((d||!d&&!o)&&((Ct(n)!=="body"||lr(s))&&(l=Wr(n)),d)){let h=zr(n);c=ur(n),u.x=h.x+n.clientLeft,u.y=h.y+n.clientTop}let p=s&&!d&&!o?pc(s,l):we(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:r.y*c.y-l.scrollTop*c.y+u.y+p.y}}function Od(e){return Array.from(e.getClientRects())}function Td(e){let t=Pe(e),r=Wr(e),n=e.ownerDocument.body,i=ot(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),o=ot(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),s=-r.scrollLeft+Kn(e),a=-r.scrollTop;return fe(n).direction==="rtl"&&(s+=ot(t.clientWidth,n.clientWidth)-i),{width:i,height:o,x:s,y:a}}var sc=25;function _d(e,t){let r=Z(e),n=Pe(e),i=r.visualViewport,o=n.clientWidth,s=n.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;let u=Wn();(!u||u&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}let c=Kn(n);if(c<=0){let u=n.ownerDocument,d=u.body,p=getComputedStyle(d),h=u.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,m=Math.abs(n.clientWidth-d.clientWidth-h);m<=sc&&(o-=m)}else c<=sc&&(o+=c);return{width:o,height:s,x:a,y:l}}function Rd(e,t){let r=zr(e,!0,t==="fixed"),n=r.top+e.clientTop,i=r.left+e.clientLeft,o=Me(e)?ur(e):we(1),s=e.clientWidth*o.x,a=e.clientHeight*o.y,l=i*o.x,c=n*o.y;return{width:s,height:a,x:l,y:c}}function ac(e,t,r){let n;if(t==="viewport")n=_d(e,r);else if(t==="document")n=Td(Pe(e));else if(pe(t))n=Rd(t,r);else{let i=dc(e);n={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return St(n)}function fc(e,t){let r=Be(e);return r===t||!pe(r)||Ot(r)?!1:fe(r).position==="fixed"||fc(r,t)}function Ld(e,t){let r=t.get(e);if(r)return r;let n=Vn(e,[],!1).filter(a=>pe(a)&&Ct(a)!=="body"),i=null,o=fe(e).position==="fixed",s=o?Be(e):e;for(;pe(s)&&!Ot(s);){let a=fe(s),l=cr(s);!l&&a.position==="fixed"&&(i=null),(o?!l&&!i:!l&&a.position==="static"&&!!i&&(i.position==="absolute"||i.position==="fixed")||lr(s)&&!l&&fc(e,s))?n=n.filter(u=>u!==s):i=a,s=Be(s)}return t.set(e,n),n}function Nd(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e,s=[...r==="clippingAncestors"?Fr(t)?[]:Ld(t,this._c):[].concat(r),n],a=ac(t,s[0],i),l=a.top,c=a.right,u=a.bottom,d=a.left;for(let p=1;p<s.length;p++){let h=ac(t,s[p],i);l=ot(h.top,l),c=jr(h.right,c),u=jr(h.bottom,u),d=ot(h.left,d)}return{width:c-d,height:u-l,x:d,y:l}}function Pd(e){let{width:t,height:r}=cc(e);return{width:t,height:r}}function Md(e,t,r){let n=Me(t),i=Pe(t),o=r==="fixed",s=zr(e,!0,o,t),a={scrollLeft:0,scrollTop:0},l=we(0);function c(){l.x=Kn(i)}if(n||!n&&!o)if((Ct(t)!=="body"||lr(i))&&(a=Wr(t)),n){let h=zr(t,!0,o,t);l.x=h.x+t.clientLeft,l.y=h.y+t.clientTop}else i&&c();o&&!n&&i&&c();let u=i&&!n&&!o?pc(i,a):we(0),d=s.left+a.scrollLeft-l.x-u.x,p=s.top+a.scrollTop-l.y-u.y;return{x:d,y:p,width:s.width,height:s.height}}function Co(e){return fe(e).position==="static"}function lc(e,t){if(!Me(e)||fe(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Pe(e)===r&&(r=r.ownerDocument.body),r}function hc(e,t){let r=Z(e);if(Fr(e))return r;if(!Me(e)){let i=Be(e);for(;i&&!Ot(i);){if(pe(i)&&!Co(i))return i;i=Be(i)}return r}let n=lc(e,t);for(;n&&nc(n)&&Co(n);)n=lc(n,t);return n&&Ot(n)&&Co(n)&&!cr(n)?r:n||ic(e)||r}var Dd=async function(e){let t=this.getOffsetParent||hc,r=this.getDimensions,n=await r(e.floating);return{reference:Md(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Id(e){return fe(e).direction==="rtl"}var Gn={convertOffsetParentRelativeRectToViewportRelativeRect:Cd,getDocumentElement:Pe,getClippingRect:Nd,getOffsetParent:hc,getElementRects:Dd,getClientRects:Od,getDimensions:Pd,getScale:ur,isElement:pe,isRTL:Id};var mc=Ql,vc=ec;var gc=(e,t,r)=>{let n=new Map,i={platform:Gn,...r},o={...i.platform,_c:n};return Jl(e,t,{...i,platform:o})};function yc(e){return kd(e)}function Oo(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function kd(e){for(let t=e;t;t=Oo(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=Oo(e);t;t=Oo(t)){if(!(t instanceof Element))continue;let r=getComputedStyle(t);if(r.display!=="contents"&&(r.position!=="static"||cr(r)||t.tagName==="BODY"))return t}return null}async function xc(e,t,r){let n;return typeof r=="object"?n=r:n={placement:r},gc(e,t,{strategy:n.strategy,platform:{...Gn,getOffsetParent:i=>Gn.getOffsetParent(i,yc)},middleware:[vc({crossAxis:!0}),mc({allowedPlacements:[n.placement]})]})}var bc=f(A());var To=class{fromAttribute(t){if(!t)return[];try{let r=JSON.parse(t);return Array.isArray(r)?r.map(n=>typeof n=="string"?sr.fromAttribute(n):n):[]}catch{return[]}}toAttribute(t){if(t!=null)return JSON.stringify(t)}},Ud=new To;var Ac=(e,t)=>(r,n)=>{var i;r.constructor.createProperty(n,{type:Object,hasChanged:bc.hasChanged,converter:sr,...t}),r[Ir]=(i=r[Ir])!==null&&i!==void 0?i:new Map,r[Ir].set(n,e??{})};var Ce=function(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,r,o):s(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},U=class extends Dn{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 he.Debouncer,this.revealDebouncer=new he.Debouncer,this.onTouch=t=>{this.isIgnored(t)||(this.show(),setTimeout(()=>window.addEventListener("touchstart",r=>{r.composedPath().includes(this.container)||this.onOut(r)},{once:!0}),100))},this.onHover=t=>{this.isIgnored(t)||this.show()},this.onFocusIn=t=>{!this.isIgnored(t)&&window.FluidTopicsA11yHints.isKeyboardNavigation&&window.FluidTopicsA11yHints.lastPressedKey==="Tab"&&this.show()},this.onOut=t=>{this.isIgnored(t)||(this.revealDebouncer.cancel(),this.hide())},this.onClick=t=>{this.isIgnored(t)||(this.revealDebouncer.cancel(),this.hide())}}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){var t,r;return Ec.html`
|
|
306
306
|
<div part="container"
|
|
307
307
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}">
|
|
308
308
|
<slot part="slot"></slot>
|
|
@@ -317,13 +317,13 @@
|
|
|
317
317
|
</div>
|
|
318
318
|
</div>
|
|
319
319
|
</div>
|
|
320
|
-
`}setupFor(t){this.eventsTarget!==t&&(this.removeHandlers(),this.eventsTarget=t,this.eventsTarget.addEventListener("mouseover",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("mouseover",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(t){var r,n;t.has("visible")&&(this.visible?(this.resetTooltipContent(),(r=this.tooltip)===null||r===void 0||r.showPopover()):(n=this.tooltip)===null||n===void 0||n.hidePopover()),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some(r=>t.has(r))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(t){this.visible=!0,t!=null&&await this.hideDebounce.run(()=>{this.hide()},t)}async showTemporaryText(t,r){let n=this.manual;this.manual=!0;let i=this.text;this.text={message:t},await this.show(r),this.text=i,this.manual=n}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var t;return((t=this.slotNodes)!==null&&t!==void 0?t:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&
|
|
320
|
+
`}setupFor(t){this.eventsTarget!==t&&(this.removeHandlers(),this.eventsTarget=t,this.eventsTarget.addEventListener("mouseover",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("mouseover",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(t){var r,n;t.has("visible")&&(this.visible?(this.resetTooltipContent(),(r=this.tooltip)===null||r===void 0||r.showPopover()):(n=this.tooltip)===null||n===void 0||n.hidePopover()),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some(r=>t.has(r))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(t){this.visible=!0,t!=null&&await this.hideDebounce.run(()=>{this.hide()},t)}async showTemporaryText(t,r){let n=this.manual;this.manual=!0;let i=this.text;this.text={message:t},await this.show(r),this.text=i,this.manual=n}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var t;return((t=this.slotNodes)!==null&&t!==void 0?t:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&xc(this.slottedElement,this.tooltip,{placement:this.position,strategy:"fixed"}).then(({x:t,y:r})=>{this.tooltip&&(this.tooltip.style.transform=`translate(${t}px,${r}px)`)}),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${he.designSystemVariables.transitionDuration}, left ${he.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}isIgnored(t){return this.manual||(0,he.eventPathContainsMatchingElement)(t,this.ignoreMatchingElements,this.eventsTarget)}};U.elementDefinitions={"ft-typography":V};U.styles=Fl;Ce([Ac()],U.prototype,"text",void 0);Ce([(0,me.property)({type:Boolean})],U.prototype,"manual",void 0);Ce([(0,me.property)({type:Boolean})],U.prototype,"inline",void 0);Ce([(0,he.numberProperty)()],U.prototype,"delay",void 0);Ce([(0,me.property)()],U.prototype,"position",void 0);Ce([(0,he.jsonProperty)([])],U.prototype,"ignoreMatchingElements",void 0);Ce([(0,me.queryAssignedNodes)()],U.prototype,"slotNodes",void 0);Ce([(0,me.query)(".ft-tooltip--container")],U.prototype,"container",void 0);Ce([(0,me.query)(".ft-tooltip")],U.prototype,"tooltip",void 0);Ce([(0,me.query)(".ft-tooltip--content")],U.prototype,"tooltipContent",void 0);Ce([(0,me.state)()],U.prototype,"visible",void 0);var wc=f(A());var Sc={"ft-tooltip":U};(0,wc.customElements)(Sc);var at=tt.build("designedViewer"),Cc={fitToContainerAriaLabel:"Fill available space",zoomRealSizeAriaLabel:"Display content at original size",zoomInAriaLabel:"Zoom in",zoomOutAriaLabel:"Zoom out",rotateLeftAriaLabel:"Rotate left",rotateRightAriaLabel:"Rotate right"};var Ve=function(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,r,o):s(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},W=class extends(0,De.withConditionalVisibility)(rt(Y)){constructor(){super(...arguments),this.disabled=!1,this.tabindex=0,this.role="button",this.ariaLabel="",this.control=Le.FIT_TO_CONTAINER,this.controlDefinitions={[Le.FIT_TO_CONTAINER]:{ariaLabel:()=>at.messages.fitToContainerAriaLabel(),icon:Se.ZOOM_FULLSCREEN,run:()=>{var t;return(t=this.viewerStateManager)===null||t===void 0?void 0:t.setZoom(void 0)}},[Le.ZOOM_REAL_SIZE]:{ariaLabel:()=>at.messages.zoomRealSizeAriaLabel(),icon:Se.ZOOM_REALSIZE,run:()=>{var t;return(t=this.viewerStateManager)===null||t===void 0?void 0:t.setZoom(1)}},[Le.ZOOM_IN]:{ariaLabel:()=>at.messages.zoomInAriaLabel(),icon:Se.ZOOM_IN,disabled:()=>{var t;return((t=this.zoom)!==null&&t!==void 0?t:1)>20},run:()=>{var t,r;return(t=this.viewerStateManager)===null||t===void 0?void 0:t.setZoom(((r=this.zoom)!==null&&r!==void 0?r:1)*1.2)}},[Le.ZOOM_OUT]:{ariaLabel:()=>at.messages.zoomOutAriaLabel(),icon:Se.ZOOM_OUT,disabled:()=>{var t;return((t=this.zoom)!==null&&t!==void 0?t:1)<.05},run:()=>{var t,r;return(t=this.viewerStateManager)===null||t===void 0?void 0:t.setZoom(((r=this.zoom)!==null&&r!==void 0?r:1)/1.2)}},[Le.ROTATE_LEFT]:{ariaLabel:()=>at.messages.rotateLeftAriaLabel(),icon:Se.ARROW_ROTATE_LEFT,run:()=>{var t;return(t=this.viewerStateManager)===null||t===void 0?void 0:t.setRotation(this.rotation-90)}},[Le.ROTATE_RIGHT]:{ariaLabel:()=>at.messages.rotateRightAriaLabel(),icon:Se.ARROW_ROTATE_RIGHT,run:()=>{var t;return(t=this.viewerStateManager)===null||t===void 0?void 0:t.setRotation(this.rotation+90)}}},this.modifyContent=()=>{var t;(t=this.controlDefinitions[this.control])===null||t===void 0||t.run()}}render(){var t;return this.isVisible?dr.html`
|
|
321
321
|
<slot>
|
|
322
322
|
<ft-tooltip text="${this.ariaLabel}">
|
|
323
323
|
<ft-icon value="${(t=this.controlDefinitions[this.control])===null||t===void 0?void 0:t.icon}"></ft-icon>
|
|
324
324
|
</ft-tooltip>
|
|
325
325
|
</slot>
|
|
326
|
-
`:
|
|
326
|
+
`:dr.nothing}willUpdate(t){var r,n,i,o;super.willUpdate(t),this.updateAriaLabel(),this.disabled=(i=(n=(r=this.controlDefinitions[this.control])===null||r===void 0?void 0:r.disabled)===null||n===void 0?void 0:n.call(r))!==null&&i!==void 0?i:!1,this.isVisible=!!(!((o=this.descriptor)===null||o===void 0)&&o.viewableInCurrentBrowser)&&this.descriptor.mimeType.startsWith("image/")}onI18nUpdate(t){super.onI18nUpdate(t),this.updateAriaLabel()}updateAriaLabel(){var t;this.ariaLabel=(t=this.controlDefinitions[this.control])===null||t===void 0?void 0:t.ariaLabel()}connectedCallback(){super.connectedCallback(),this.addI18nContext(at,Cc),this.updateComplete.then(()=>{var t;return(t=this.tooltip)===null||t===void 0?void 0:t.setupFor(this)}),this.addEventListener("click",this.modifyContent)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.modifyContent)}};W.elementDefinitions={"ft-icon":F,"ft-tooltip":U};W.styles=dr.css`
|
|
327
327
|
:host {
|
|
328
328
|
display: inline-block;
|
|
329
329
|
opacity: 1;
|
|
@@ -357,37 +357,37 @@
|
|
|
357
357
|
background-color: hsl(from ${De.designSystemVariables.colorPrimary} h s calc(l + 30));
|
|
358
358
|
}
|
|
359
359
|
}
|
|
360
|
-
`;Ve([(0,lt.property)({type:Boolean,reflect:!0})],W.prototype,"disabled",void 0);Ve([(0,lt.property)({reflect:!0})],W.prototype,"tabindex",void 0);Ve([(0,lt.property)({reflect:!0})],W.prototype,"role",void 0);Ve([(0,lt.property)({reflect:!0,attribute:"aria-label"})],W.prototype,"ariaLabel",void 0);Ve([(0,lt.property)()],W.prototype,"control",void 0);Ve([(0,De.redux)({store:"viewer"})],W.prototype,"descriptor",void 0);Ve([(0,De.redux)({store:"viewer",selector:({contentModifiers:e})=>e.zoom})],W.prototype,"zoom",void 0);Ve([(0,De.redux)({store:"viewer",selector:({contentModifiers:e})=>e.rotation})],W.prototype,"rotation",void 0);Ve([(0,lt.query)("ft-tooltip")],W.prototype,"tooltip",void 0);var qn=class extends oe(W){};var
|
|
360
|
+
`;Ve([(0,lt.property)({type:Boolean,reflect:!0})],W.prototype,"disabled",void 0);Ve([(0,lt.property)({reflect:!0})],W.prototype,"tabindex",void 0);Ve([(0,lt.property)({reflect:!0})],W.prototype,"role",void 0);Ve([(0,lt.property)({reflect:!0,attribute:"aria-label"})],W.prototype,"ariaLabel",void 0);Ve([(0,lt.property)()],W.prototype,"control",void 0);Ve([(0,De.redux)({store:"viewer"})],W.prototype,"descriptor",void 0);Ve([(0,De.redux)({store:"viewer",selector:({contentModifiers:e})=>e.zoom})],W.prototype,"zoom",void 0);Ve([(0,De.redux)({store:"viewer",selector:({contentModifiers:e})=>e.rotation})],W.prototype,"rotation",void 0);Ve([(0,lt.query)("ft-tooltip")],W.prototype,"tooltip",void 0);var qn=class extends oe(W){};var Oc=f(A()),pr=f(T());var $d=function(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,r,o):s(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},Fe=class extends Y{render(){return this.filename?pr.html`
|
|
361
361
|
<ft-typography variant="${X.body1}" part="filename">
|
|
362
362
|
${this.filename}
|
|
363
363
|
</ft-typography>
|
|
364
|
-
`:
|
|
364
|
+
`:pr.nothing}};Fe.elementDefinitions={"ft-typography":V};Fe.styles=pr.css`
|
|
365
365
|
[part="filename"]::part(text) {
|
|
366
366
|
margin: unset;
|
|
367
367
|
}
|
|
368
|
-
|
|
368
|
+
`;$d([(0,Oc.redux)({store:"viewer",selector:({descriptor:e})=>e?.filename})],Fe.prototype,"filename",void 0);var Yn=class extends oe(Fe){};var Tc=f(A()),fr=f(T());var Hd=function(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,r,o):s(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},Tt=class extends Y{render(){return this.displayName?fr.html`
|
|
369
369
|
<ft-typography variant="${X.title}" part="display-name" element="h2">
|
|
370
370
|
${this.displayName}
|
|
371
371
|
</ft-typography>
|
|
372
|
-
`:
|
|
372
|
+
`:fr.nothing}};Tt.elementDefinitions={"ft-typography":V};Tt.styles=fr.css`
|
|
373
373
|
[part="display-name"]::part(text) {
|
|
374
374
|
margin: unset;
|
|
375
375
|
}
|
|
376
|
-
|
|
376
|
+
`;Hd([(0,Tc.redux)({store:"viewer",selector:({descriptor:e})=>e?.displayName})],Tt.prototype,"displayName",void 0);var Xn=class extends oe(Tt){};var Kr=f(A()),Zn=f(T());var _c=function(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,r,o):s(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},We=class extends Y{render(){var t,r;return this.mimeType?Zn.html`
|
|
377
377
|
<ft-icon part="icon"
|
|
378
378
|
variant="${Ne.file_format}"
|
|
379
379
|
value="${Hn(this.mimeType,(0,Kr.last)((r=(t=this.filename)===null||t===void 0?void 0:t.split("."))!==null&&r!==void 0?r:[]))}"></ft-icon>
|
|
380
|
-
`:Zn.nothing}};We.elementDefinitions={"ft-icon":F};
|
|
380
|
+
`:Zn.nothing}};We.elementDefinitions={"ft-icon":F};_c([(0,Kr.redux)({store:"viewer",selector:({descriptor:e})=>e?.mimeType})],We.prototype,"mimeType",void 0);_c([(0,Kr.redux)({store:"viewer",selector:({descriptor:e})=>e?.filename})],We.prototype,"filename",void 0);var Jn=class extends oe(We){};var Rc=f(A()),hr=f(T());var jd=function(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,r,o):s(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},ze=class extends Y{render(){return this.documentTitle?hr.html`
|
|
381
381
|
<ft-typography variant="${X.title}" part="title" element="h1">
|
|
382
382
|
${this.documentTitle}
|
|
383
383
|
</ft-typography>
|
|
384
|
-
`:
|
|
384
|
+
`:hr.nothing}};ze.elementDefinitions={"ft-typography":V};ze.styles=hr.css`
|
|
385
385
|
[part="title"]::part(text) {
|
|
386
386
|
margin: unset;
|
|
387
387
|
}
|
|
388
|
-
`;
|
|
388
|
+
`;jd([(0,Rc.redux)({store:"viewer",selector:({document:e})=>e?.title})],ze.prototype,"documentTitle",void 0);var Qn=class extends oe(ze){};var Nc=f(T()),Pc=f(N());var mr=f(A());var ei=class extends B{getDocument(t){return this.cache.get(t,()=>this.api.getUnstructuredDocument(t))}getAttachments(t){return this.cache.get(`${t}-attachments`,()=>this.api.getUdAttachments(t))}getAttachmentDownloadLink(t,r){return this.makeAbsolute(`${this.api.endpoints.khub.documents.documentId(t).attachments.attachmentId(r).content}?download=true&locationValue=viewer`)}makeAbsolute(t){return this.api.makeAbsolute(t)}async getDocumentRating(t){}async rateDocument(t,r,n){}async unrateDocument(t){}async sendDocumentFeedback(t,r){}};var ti=class e extends It{static build(t){return new e(Xr(t),new ei)}constructor(t,r){super(t),this.store=t,this.service=r,t.actions.origin(Qe.UNSTRUCTURED_DOCUMENT)}async load(){var t,r;let{documentId:n}=this.store.getState();if(n){let i=await this.service.getDocument(n);this.store.actions.document({type:hn.UNSTRUCTURED_DOCUMENT,id:i.id,lang:(t=i.lang)!==null&&t!==void 0?t:"en-US",title:i.title,metadata:i.metadata,portalUrl:i.viewerUrl});let o=await le.await();this.store.actions.descriptor({id:i.id,portalUrl:i.viewerUrl,filename:i.filename,fingerprint:i.lastEdition,displayName:i.title,alt:(r=i.description)!==null&&r!==void 0?r:i.title,mimeType:i.mimeType,size:0,viewableInCurrentBrowser:i.viewableInCurrentBrowser,contentUrl:o.makeAbsolute(i.contentApiEndpoint)}),this.store.actions.watermark(i.watermark)}return this.store.getState()}clear(){this.store.clearKeeping("documentId","origin")}reload(){return this.clear(),this.load()}setDocumentId(t){return this.store.actions.documentId(t),this.reload()}};var ri=f(A()),_o=f(N());var Lc=function(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,r,o):s(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},Ro=Symbol("ud-viewer-state-manager"),ve=(0,ri.applyMixinOnce)(Symbol("toFtUdViewerComponent"),function(e){class t extends e{constructor(){super(...arguments),this.neededUdvRequests=[]}get service(){var n;return(n=this.viewerStateManager)===null||n===void 0?void 0:n.service}willUpdate(n){var i,o,s;super.willUpdate(n),n.has("viewerStateManager")&&(this.unregisterFromUdvStateManager(n.get("viewerStateManager")),this.registerToUdvStateManager(this.viewerStateManager)),n.has("neededUdvRequests")&&((i=this.viewerStateManager)===null||i===void 0||i.unregisterComponent(this,(o=n.get("neededUdvRequests"))!==null&&o!==void 0?o:[]),(s=this.viewerStateManager)===null||s===void 0||s.registerComponent(this,this.neededUdvRequests))}registerToUdvStateManager(n){n&&(n.registerComponent(this,this.neededUdvRequests),this.addStore(n.store,"viewer"))}unregisterFromUdvStateManager(n){n&&(n.unregisterComponent(this,this.neededUdvRequests),this.removeStore("viewer"))}connectedCallback(){super.connectedCallback(),this.registerToUdvStateManager(this.viewerStateManager)}disconnectedCallback(){super.disconnectedCallback(),this.unregisterFromUdvStateManager(this.viewerStateManager)}}return Lc([br({context:Ro,subscribe:!0}),(0,_o.state)()],t.prototype,"viewerStateManager",void 0),Lc([(0,_o.state)({hasChanged:ri.hasChanged})],t.prototype,"neededUdvRequests",void 0),t});var Lo=function(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,r,o):s(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},_t=class extends mr.FtLitElementRedux{constructor(){super(...arguments),this.viewerStateManager=ti.build(this.id||(0,mr.randomId)(6))}render(){return Nc.html`
|
|
389
389
|
<slot></slot>
|
|
390
|
-
`}willUpdate(t){super.willUpdate(t),t.has("documentId")&&this.initStateManager()}async initStateManager(){let t=await this.viewerStateManager.setDocumentId(this.documentId);this.documentId&&this.dispatchEvent(new gt(t))}connectedCallback(){super.connectedCallback(),this.addStore(w)}onAuthenticationChange(){this.viewerStateManager.reload()}};
|
|
390
|
+
`}willUpdate(t){super.willUpdate(t),t.has("documentId")&&this.initStateManager()}async initStateManager(){let t=await this.viewerStateManager.setDocumentId(this.documentId);this.documentId&&this.dispatchEvent(new gt(t))}connectedCallback(){super.connectedCallback(),this.addStore(w)}onAuthenticationChange(){this.viewerStateManager.reload()}};Lo([(0,Pc.property)()],_t.prototype,"documentId",void 0);Lo([xr({context:Ro})],_t.prototype,"viewerStateManager",void 0);Lo([(0,mr.reduxEventListener)({eventName:Re.eventName})],_t.prototype,"onAuthenticationChange",null);var Mc;(function(e){e.RATING="RATING"})(Mc||(Mc={}));var ni;(function(e){e.udAttachmentsUpdate="ud-attachments-update"})(ni||(ni={}));var ii=class extends ve(P){};var oi=class extends ve(W){};var si=class extends ve(Fe){};var ai=class extends ve(ze){};var li=class extends ve(We){};var hi=f(A());var $=f(A()),Dc={itemsGap:$.FtCssVariableFactory.create("--ft-reader-attachments-items-gap","","SIZE","8px"),itemPadding:$.FtCssVariableFactory.create("--ft-reader-attachments-item-padding","","SIZE","8px"),itemBorderWidth:$.FtCssVariableFactory.create("--ft-reader-attachments-item-border-width","","SIZE","1px"),itemBorderColor:$.FtCssVariableFactory.extend("--ft-reader-attachments-item-border-color","",$.designSystemVariables.colorOutline),itemBorderRadius:$.FtCssVariableFactory.extend("--ft-reader-attachments-item-border-radius","",$.designSystemVariables.borderRadiusS),itemBackgroundColor:$.FtCssVariableFactory.extend("--ft-reader-attachments-item-background-color","",$.designSystemVariables.colorSurface),itemTextColor:$.FtCssVariableFactory.extend("--ft-reader-attachments-item-text-color","",$.designSystemVariables.colorOnSurfaceMedium),itemHoverBackgroundColor:$.FtCssVariableFactory.extend("--ft-reader-attachments-item-hover-background-color","",$.designSystemVariables.colorPrimary),itemHoverTextColor:$.FtCssVariableFactory.extend("--ft-reader-attachments-item-hover-text-color","",$.designSystemVariables.colorOnSurfaceHigh),fileFormatIconSize:$.FtCssVariableFactory.create("--ft-reader-attachments-file-format-icon-size","","SIZE","30px"),downloadIconSize:$.FtCssVariableFactory.create("--ft-reader-attachments-down-icon-size","","SIZE","20px")};var fi=f(A());var ui=f(A()),Uc=f(N());var ci;(function(e){e.clusteringHelperCreated="clustering-helper-created",e.mapAttachmentsUpdate="map-attachments-update",e.visibleTopicChange="visible-topic-change",e.requestedTopicNotFound="requested-topic-not-found"})(ci||(ci={}));var Ic;(function(e){e.FEEDBACK="FEEDBACK",e.RATING="RATING",e.PRINT="PRINT",e.BOOKMARK="BOOKMARK",e.COLLECTIONS="COLLECTIONS",e.PERSONAL_BOOKS="PERSONAL_BOOKS"})(Ic||(Ic={}));var Bd=function(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,r,o):s(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},Po=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},No=Symbol("registerInterval"),Mo=(0,ui.applyMixinOnce)(Symbol("toFtReaderComponent"),function(e){var t;class r extends e{constructor(){super(...arguments),this[t]=0}setReaderStateManager(i){this.clearStateManager(),this.stateManager=i,this.addStore(i.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var i;return(i=this.stateManager)===null||i===void 0?void 0:i.service}connectedCallback(){super.connectedCallback(),this[No]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[No]):this.dispatchEvent(new Po)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return t=No,Bd([(0,Uc.state)()],r.prototype,"stateManager",void 0),r}),kc=class extends Mo(ui.FtLitElementRedux){};var Do=tt.build("designedReaderAttachments"),$c={download:"Download \u201C{0}\u201D"};var Rt=f(T()),vr=f(N()),gr=f(A()),Zc=f(eo());var Jc=f(Io());var Gc=f(T()),z=f(N()),qc=f(Io()),Gr=f(A());var zc=f(T()),I=f(A()),jc=I.FtCssVariableFactory.extend("--ft-ripple-color","",I.designSystemVariables.colorContent),Ie={color:jc,backgroundColor:I.FtCssVariableFactory.extend("--ft-ripple-background-color","",jc),opacityContentOnSurfacePressed:I.FtCssVariableFactory.external(I.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:I.FtCssVariableFactory.external(I.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:I.FtCssVariableFactory.external(I.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:I.FtCssVariableFactory.external(I.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:I.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},Bc=I.FtCssVariableFactory.extend("--ft-ripple-color","",I.designSystemVariables.colorPrimary),Vc={color:Bc,backgroundColor:I.FtCssVariableFactory.extend("--ft-ripple-background-color","",Bc)},Fc=I.FtCssVariableFactory.extend("--ft-ripple-color","",I.designSystemVariables.colorSecondary),Wc={color:Fc,backgroundColor:I.FtCssVariableFactory.extend("--ft-ripple-background-color","",Fc)},Kc=zc.css`
|
|
391
391
|
:host {
|
|
392
392
|
display: contents;
|
|
393
393
|
}
|
|
@@ -442,19 +442,19 @@
|
|
|
442
442
|
}
|
|
443
443
|
|
|
444
444
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
445
|
-
background-color: ${
|
|
445
|
+
background-color: ${Wc.backgroundColor};
|
|
446
446
|
}
|
|
447
447
|
|
|
448
448
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
449
|
-
background-color: ${
|
|
449
|
+
background-color: ${Wc.color};
|
|
450
450
|
}
|
|
451
451
|
|
|
452
452
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
453
|
-
background-color: ${
|
|
453
|
+
background-color: ${Vc.backgroundColor};
|
|
454
454
|
}
|
|
455
455
|
|
|
456
456
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
457
|
-
background-color: ${
|
|
457
|
+
background-color: ${Vc.color};
|
|
458
458
|
}
|
|
459
459
|
|
|
460
460
|
.ft-ripple .ft-ripple--background {
|
|
@@ -499,20 +499,20 @@
|
|
|
499
499
|
opacity: ${Ie.opacityContentOnSurfacePressed};
|
|
500
500
|
transform: translate(-50%, -50%) scale(1);
|
|
501
501
|
}
|
|
502
|
-
`;var J=function(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,r,o):s(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},L=class extends Gr.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 Gr.Debouncer(1e3),this.onTransitionStart=t=>{t.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=t=>{t.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new Gr.Debouncer(10),this.moveRipple=t=>{var r,n;let{x:i,y:o}=this.getCoordinates(t),s=(n=(r=this.ripple)===null||r===void 0?void 0:r.getBoundingClientRect())!==null&&n!==void 0?n:{x:0,y:0,width:0,height:0};this.originX=Math.round(i!=null?i-s.x:s.width/2),this.originY=Math.round(o!=null?o-s.y:s.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(t?.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return
|
|
502
|
+
`;var J=function(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,r,o):s(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},L=class extends Gr.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 Gr.Debouncer(1e3),this.onTransitionStart=t=>{t.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=t=>{t.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new Gr.Debouncer(10),this.moveRipple=t=>{var r,n;let{x:i,y:o}=this.getCoordinates(t),s=(n=(r=this.ripple)===null||r===void 0?void 0:r.getBoundingClientRect())!==null&&n!==void 0?n:{x:0,y:0,width:0,height:0};this.originX=Math.round(i!=null?i-s.x:s.width/2),this.originY=Math.round(o!=null?o-s.y:s.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(t?.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return Gc.html`
|
|
503
503
|
<style>
|
|
504
504
|
.ft-ripple .ft-ripple--effect {
|
|
505
505
|
left: ${this.originX}px;
|
|
506
506
|
top: ${this.originY}px;
|
|
507
507
|
}
|
|
508
508
|
</style>
|
|
509
|
-
<div class="${(0,
|
|
509
|
+
<div class="${(0,qc.classMap)(t)}">
|
|
510
510
|
<div class="ft-ripple--background"></div>
|
|
511
511
|
<div class="ft-ripple--effect"></div>
|
|
512
512
|
</div>
|
|
513
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var r,n;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(n=this.target)===null||n===void 0||n.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var t,r;let n=(t=this.shadowRoot)===null||t===void 0?void 0:t.host.parentElement;n&&this.setupFor((r=this.target)!==null&&r!==void 0?r:n)}forceFocusUpdate(){var t;!((t=this.target)===null||t===void 0)&&t.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");let r=(...a)=>l=>{a.forEach(c=>window.addEventListener(c,this.endPress,{once:!0})),this.startPress(l)},n=r("mouseup","contextmenu"),i=r("touchend","touchcancel"),o=a=>{["Enter"," "].includes(a.key)&&r("keyup")(a)},s={passive:!0};t.addEventListener("mouseover",this.startHover,s),t.addEventListener("mousemove",this.moveRipple,s),t.addEventListener("mouseleave",this.endHover,s),t.addEventListener("mousedown",n,s),t.addEventListener("touchstart",i,s),t.addEventListener("touchmove",this.moveRipple,s),t.addEventListener("keydown",o,s),t.addEventListener("focus",this.startFocus,s),t.addEventListener("blur",this.endFocus,s),t.addEventListener("focusin",this.startFocus,s),t.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,s),t.removeEventListener("mousemove",this.moveRipple,s),t.removeEventListener("mouseleave",this.endHover,s),t.removeEventListener("mousedown",n,s),t.removeEventListener("touchstart",i,s),t.removeEventListener("touchmove",this.moveRipple,s),t.removeEventListener("keydown",o,s),t.removeEventListener("focus",this.startFocus,s),t.removeEventListener("blur",this.endFocus,s),t.removeEventListener("focusin",this.startFocus,s),t.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){let r=t,n=t,i,o;return r.x!=null?{x:i,y:o}=r:n.touches!=null&&(i=n.touches[0].clientX,o=n.touches[0].clientY),{x:i,y:o}}isFocusVisible(t){return t instanceof HTMLElement?t.matches(":focus-visible"):!0}isIgnored(t){if(this.disabled)return!0;if(t!=null)for(let r of t.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};L.elementDefinitions={};L.styles=
|
|
514
|
-
<div part="container" class="${(0,
|
|
515
|
-
${(0,
|
|
513
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var r,n;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(n=this.target)===null||n===void 0||n.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var t,r;let n=(t=this.shadowRoot)===null||t===void 0?void 0:t.host.parentElement;n&&this.setupFor((r=this.target)!==null&&r!==void 0?r:n)}forceFocusUpdate(){var t;!((t=this.target)===null||t===void 0)&&t.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");let r=(...a)=>l=>{a.forEach(c=>window.addEventListener(c,this.endPress,{once:!0})),this.startPress(l)},n=r("mouseup","contextmenu"),i=r("touchend","touchcancel"),o=a=>{["Enter"," "].includes(a.key)&&r("keyup")(a)},s={passive:!0};t.addEventListener("mouseover",this.startHover,s),t.addEventListener("mousemove",this.moveRipple,s),t.addEventListener("mouseleave",this.endHover,s),t.addEventListener("mousedown",n,s),t.addEventListener("touchstart",i,s),t.addEventListener("touchmove",this.moveRipple,s),t.addEventListener("keydown",o,s),t.addEventListener("focus",this.startFocus,s),t.addEventListener("blur",this.endFocus,s),t.addEventListener("focusin",this.startFocus,s),t.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,s),t.removeEventListener("mousemove",this.moveRipple,s),t.removeEventListener("mouseleave",this.endHover,s),t.removeEventListener("mousedown",n,s),t.removeEventListener("touchstart",i,s),t.removeEventListener("touchmove",this.moveRipple,s),t.removeEventListener("keydown",o,s),t.removeEventListener("focus",this.startFocus,s),t.removeEventListener("blur",this.endFocus,s),t.removeEventListener("focusin",this.startFocus,s),t.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){let r=t,n=t,i,o;return r.x!=null?{x:i,y:o}=r:n.touches!=null&&(i=n.touches[0].clientX,o=n.touches[0].clientY),{x:i,y:o}}isFocusVisible(t){return t instanceof HTMLElement?t.matches(":focus-visible"):!0}isIgnored(t){if(this.disabled)return!0;if(t!=null)for(let r of t.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};L.elementDefinitions={};L.styles=Kc;J([(0,z.property)({type:Boolean})],L.prototype,"primary",void 0);J([(0,z.property)({type:Boolean})],L.prototype,"secondary",void 0);J([(0,z.property)({type:Boolean})],L.prototype,"unbounded",void 0);J([(0,z.property)({type:Boolean})],L.prototype,"activated",void 0);J([(0,z.property)({type:Boolean})],L.prototype,"selected",void 0);J([(0,z.property)({type:Boolean})],L.prototype,"disabled",void 0);J([(0,z.state)()],L.prototype,"hovered",void 0);J([(0,z.state)()],L.prototype,"focused",void 0);J([(0,z.state)()],L.prototype,"pressed",void 0);J([(0,z.state)()],L.prototype,"rippling",void 0);J([(0,z.state)()],L.prototype,"originX",void 0);J([(0,z.state)()],L.prototype,"originY",void 0);J([(0,z.query)(".ft-ripple")],L.prototype,"ripple",void 0);J([(0,z.query)(".ft-ripple--effect")],L.prototype,"rippleEffect",void 0);var Xc=f(A());var Yc={"ft-ripple":L};(0,Xc.customElements)(Yc);var di=function(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,r,o):s(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},Vd={"attachment-viewed":{label:"Opening attachment",defaultEventName:"attachment-open",defaultComponentId:"ft-reader-attachments"},"attachment-downloaded":{label:"Downloading attachment",defaultEventName:"attachment-download",defaultComponentId:"ft-reader-attachments"}},Oe=class extends(0,gr.withAnalytics)(gr.FtLitElementRedux,Vd){constructor(){super(...arguments),this.hideFileFormatIcon=!1,this.hideFilename=!1,this.hideDownloadIcon=!1}render(){if(this.canRender()){let t={"hide-file-format-icon":this.hideFileFormatIcon,"hide-filename":this.hideFilename,"hide-download-icon":this.hideDownloadIcon};return Rt.html`
|
|
514
|
+
<div part="container" class="${(0,Jc.classMap)(t)}">
|
|
515
|
+
${(0,Zc.repeat)(this.attachments,r=>r.id,r=>{var n;let i=Hn(r.mimeType,(0,gr.last)(r.file.split(".")));return Rt.html`
|
|
516
516
|
<div part="attachment">
|
|
517
517
|
<a part="viewer-link" href="${this.getAttachmentViewerLink(r)}"
|
|
518
518
|
aria-label="${this.getAttachmentAriaLabel(r)}"
|
|
@@ -537,7 +537,7 @@
|
|
|
537
537
|
</div>
|
|
538
538
|
`})}
|
|
539
539
|
</div>
|
|
540
|
-
`}return Rt.nothing}getAttachmentAriaLabel(t){var r;let n=t.name,i=t.file;if(n===i)return i;let o=(r=i.includes(".")?i.split(".").pop():t.mimeType)!==null&&r!==void 0?r:"";return n+" "+o}canRender(){var t,r;return((r=(t=this.attachments)===null||t===void 0?void 0:t.length)!==null&&r!==void 0?r:0)>0}getAttachmentDownloadLink(t){throw new Error("Not implemented")}getAttachmentDownloadLinkAriaLabel(t){throw new Error("Not implemented")}getAttachmentViewerLink(t){throw new Error("Not implemented")}};Oe.elementDefinitions={"ft-icon":F,"ft-ripple":L,"ft-typography":V};di([(0,
|
|
540
|
+
`}return Rt.nothing}getAttachmentAriaLabel(t){var r;let n=t.name,i=t.file;if(n===i)return i;let o=(r=i.includes(".")?i.split(".").pop():t.mimeType)!==null&&r!==void 0?r:"";return n+" "+o}canRender(){var t,r;return((r=(t=this.attachments)===null||t===void 0?void 0:t.length)!==null&&r!==void 0?r:0)>0}getAttachmentDownloadLink(t){throw new Error("Not implemented")}getAttachmentDownloadLinkAriaLabel(t){throw new Error("Not implemented")}getAttachmentViewerLink(t){throw new Error("Not implemented")}};Oe.elementDefinitions={"ft-icon":F,"ft-ripple":L,"ft-typography":V};di([(0,vr.property)({type:Boolean})],Oe.prototype,"hideFileFormatIcon",void 0);di([(0,vr.property)({type:Boolean})],Oe.prototype,"hideFilename",void 0);di([(0,vr.property)({type:Boolean})],Oe.prototype,"hideDownloadIcon",void 0);di([(0,vr.state)()],Oe.prototype,"attachments",void 0);var Qc=f(T()),qr=f(A());function pi(e){return Qc.css`
|
|
541
541
|
[part="container"] {
|
|
542
542
|
display: flex;
|
|
543
543
|
flex-direction: column;
|
|
@@ -604,7 +604,7 @@
|
|
|
604
604
|
.hide-download-icon [part="download-link"] {
|
|
605
605
|
display: none;
|
|
606
606
|
}
|
|
607
|
-
`}var
|
|
607
|
+
`}var eu=function(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,r,o):s(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},Lt=class extends Mo(rt(Oe)){constructor(){super(),this.addI18nContext(Do,$c)}update(t){super.update(t),t.has("map")&&this.updateAttachments()}updateAttachments(){var t;this.map?(t=this.service)===null||t===void 0||t.getAttachments().then(r=>this.attachments=r):this.attachments=void 0}getAttachmentDownloadLink(t){var r,n;return(n=(r=this.service)===null||r===void 0?void 0:r.getAttachmentDownloadLink(t.id))!==null&&n!==void 0?n:""}getAttachmentDownloadLinkAriaLabel(t){return Do.messages.download(this.getAttachmentAriaLabel(t))}getAttachmentViewerLink(t){var r,n;return(r=this.service)===null||r===void 0?void 0:r.makeAbsolute((n=t.viewerUrl)!==null&&n!==void 0?n:"")}};Lt.styles=pi(Dc);eu([(0,fi.redux)({store:"reader"})],Lt.prototype,"map",void 0);eu([(0,fi.reduxEventListener)({eventName:ci.mapAttachmentsUpdate})],Lt.prototype,"updateAttachments",null);var ru=f(A());var tu={"ft-reader-attachments":Lt};(0,ru.customElements)(tu);var H=f(A()),nu={itemsGap:H.FtCssVariableFactory.create("--ft-ud-viewer-attachments-items-gap","","SIZE","8px"),itemPadding:H.FtCssVariableFactory.create("--ft-ud-viewer-attachments-item-padding","","SIZE","8px"),itemBorderWidth:H.FtCssVariableFactory.create("--ft-ud-viewer-attachments-item-border-width","","SIZE","1px"),itemBorderColor:H.FtCssVariableFactory.extend("--ft-ud-viewer-attachments-item-border-color","",H.designSystemVariables.colorOutline),itemBorderRadius:H.FtCssVariableFactory.extend("--ft-ud-viewer-attachments-item-border-radius","",H.designSystemVariables.borderRadiusS),itemBackgroundColor:H.FtCssVariableFactory.extend("--ft-ud-viewer-attachments-item-background-color","",H.designSystemVariables.colorSurface),itemTextColor:H.FtCssVariableFactory.extend("--ft-ud-viewer-attachments-item-text-color","",H.designSystemVariables.colorOnSurfaceMedium),itemHoverBackgroundColor:H.FtCssVariableFactory.extend("--ft-ud-viewer-attachments-item-hover-background-color","",H.designSystemVariables.colorPrimary),itemHoverTextColor:H.FtCssVariableFactory.extend("--ft-ud-viewer-attachments-item-hover-text-color","",H.designSystemVariables.colorOnSurfaceHigh),fileFormatIconSize:H.FtCssVariableFactory.create("--ft-ud-viewer-attachments-file-format-icon-size","","SIZE","30px"),downloadIconSize:H.FtCssVariableFactory.create("--ft-ud-viewer-attachments-down-icon-size","","SIZE","20px")};var ko=tt.build("designedUdViewer"),iu={download:"Download {0}"};var ou=function(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,r,o):s(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},Nt=class extends ve(rt(Oe)){constructor(){super(),this.addI18nContext(ko,iu)}update(t){super.update(t),t.has("document")&&this.updateAttachments()}updateAttachments(){var t;this.document?(t=this.service)===null||t===void 0||t.getAttachments(this.document.id).then(r=>this.attachments=r):this.attachments=void 0}canRender(){return!!this.document&&super.canRender()}getAttachmentDownloadLink(t){var r,n;return(n=(r=this.service)===null||r===void 0?void 0:r.getAttachmentDownloadLink(this.document.id,t.id))!==null&&n!==void 0?n:""}getAttachmentDownloadLinkAriaLabel(t){return ko.messages.download(this.getAttachmentAriaLabel(t))}getAttachmentViewerLink(t){var r,n;return(r=this.service)===null||r===void 0?void 0:r.makeAbsolute((n=t.viewerUrl)!==null&&n!==void 0?n:"")}};Nt.styles=pi(nu);ou([(0,hi.redux)({store:"viewer"})],Nt.prototype,"document",void 0);ou([(0,hi.reduxEventListener)({eventName:ni.udAttachmentsUpdate})],Nt.prototype,"updateAttachments",null);var su={"ft-asset-viewer-content":Pn,"ft-asset-viewer-content-control":qn,"ft-asset-viewer-context":He,"ft-asset-viewer-document-title":Qn,"ft-asset-viewer-filename":Yn,"ft-asset-viewer-mime-type-icon":Jn,"ft-asset-viewer-title":Xn,"ft-ud-viewer-attachments":Nt,"ft-ud-viewer-content":ii,"ft-ud-viewer-content-control":oi,"ft-ud-viewer-context":_t,"ft-ud-viewer-filename":si,"ft-ud-viewer-mime-type-icon":li,"ft-ud-viewer-title":ai};(0,au.customElements)(su);})();
|
|
608
608
|
/*! Bundled license information:
|
|
609
609
|
|
|
610
610
|
@lit/context/lib/context-request-event.js:
|