@fluid-topics/ft-page-layout 1.2.8 → 1.2.10

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.
@@ -665,19 +665,19 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
665
665
  </div>
666
666
  </div>
667
667
  </div>
668
- `}updated(e){e.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(r=>e.has(r))&&this.visible&&this.positionTooltip()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",Gi(this.slottedElement,this.tooltip,this.position).then(({x:e,y:r})=>{this.tooltip&&(this.tooltip.style.left=`${e}px`,this.tooltip.style.top=`${r}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout(()=>window.addEventListener("touchstart",e=>{e.composedPath().includes(this.container)||this.onOut()},{once:!0}),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(e,r){return Math.max(e,Math.min(0,-r))}};j.elementDefinitions={"ft-typography":Z};j.styles=Si;yt([(0,et.property)()],j.prototype,"text",void 0);yt([(0,et.property)({type:Boolean})],j.prototype,"manual",void 0);yt([(0,et.property)({type:Boolean})],j.prototype,"inline",void 0);yt([(0,et.property)({type:Number})],j.prototype,"delay",void 0);yt([(0,et.property)()],j.prototype,"position",void 0);yt([(0,et.queryAssignedNodes)()],j.prototype,"slotNodes",void 0);yt([(0,et.query)(".ft-tooltip--container")],j.prototype,"container",void 0);yt([(0,et.query)(".ft-tooltip")],j.prototype,"tooltip",void 0);yt([(0,et.query)(".ft-tooltip--content")],j.prototype,"tooltipContent",void 0);yt([(0,et.state)()],j.prototype,"visible",void 0);yt([(0,et.eventOptions)({passive:!0})],j.prototype,"onTouch",null);yt([(0,et.eventOptions)({passive:!0})],j.prototype,"onHover",null);yt([(0,et.eventOptions)({passive:!0})],j.prototype,"onOut",null);yt([(0,et.eventOptions)({passive:!0})],j.prototype,"onClick",null);(0,Vi.customElement)("ft-tooltip")(j);var Xi=g(L());var So=g(_()),Re=g(Y()),qi=g(L()),Yi=g(Zi());var Jt;(function(o){o.ADD_TO_PBK="&#xe800;",o.ALERT="&#xe801;",o.ADD_ALERT="&#xe802;",o.BACK_TO_SEARCH="&#xe803;",o.ADD_BOOKMARK="&#xe804;",o.BOOKMARK="&#xe805;",o.BOOKS="&#xe806;",o.MENU="&#xe807;",o.DOWNLOAD="&#xe808;",o.EDIT="&#xe809;",o.FEEDBACK="&#xe80a;",o.HOME="&#xe80b;",o.MODIFY_PBK="&#xe80c;",o.SCHEDULED="&#xe80d;",o.SEARCH="&#xe80e;",o.EXPORT="&#xe80f;",o.TOC="&#xe810;",o.WRITE_UGC="&#xe811;",o.TRASH="&#xe812;",o.USER="&#xe813;",o.EXTLINK="&#xe814;",o.CALENDAR="&#xe815;",o.OFFLINE="&#xe816;",o.BOOK="&#xe817;",o.DOWNLOAD_PLAIN="&#xe818;",o.CHECK="&#xe819;",o.STAR_PLAIN="&#xe900;",o.TOPICS="&#xe901;",o.DISC="&#xe902;",o.CIRCLE="&#xe903;",o.SHARED="&#xe904;",o.SORT_UNSORTED="&#xe905;",o.SORT_UP="&#xe906;",o.SORT_DOWN="&#xe907;",o.WORKING="&#xe908;",o.CLOSE="&#xe909;",o.ZOOM_OUT="&#xe90a;",o.ZOOM_IN="&#xe90b;",o.ZOOM_REALSIZE="&#xe90c;",o.ZOOM_FULLSCREEN="&#xe90d;",o.ADMIN_RESTRICTED="&#xe90e;",o.ADMIN="&#xe90f;",o.ADMIN_KHUB="&#xe910;",o.ADMIN_THEME="&#xe911;",o.ADMIN_USERS="&#xe912;",o.WARNING="&#xe913;",o.CONTEXT="&#xe914;",o.SEARCH_HOME="&#xe915;",o.STEPS="&#xe916;",o.ICON_EXPAND="&#xe917;",o.ICON_COLLAPSE="&#xe918;",o.INFO="&#xe919;",o.MINUS_PLAIN="&#xe91a;",o.PLUS_PLAIN="&#xe91b;",o.FACET_HAS_DESCENDANT="&#xe91c;",o.TRIANGLE_BOTTOM="&#xe91d;",o.TRIANGLE_LEFT="&#xe91e;",o.TRIANGLE_RIGHT="&#xe91f;",o.TRIANGLE_TOP="&#xe920;",o.THIN_ARROW="&#xe921;",o.SIGN_IN="&#xe922;",o.LOGOUT="&#xe923;",o.TRANSLATE="&#xe924;",o.CLOSE_PLAIN="&#xe925;",o.CHECK_PLAIN="&#xe926;",o.ARTICLE="&#xe927;",o.COLUMNS="&#xe928;",o.ANALYTICS="&#xe929;",o.COLLECTIONS="&#xe92a;",o.ARROW_DOWN="&#xe92b;",o.ARROW_LEFT="&#xe92c;",o.ARROW_RIGHT="&#xe92d;",o.ARROW_UP="&#xe92e;",o.SEARCH_IN_PUBLICATION="&#xe92f;",o.COPY_TO_CLIPBOARD="&#xe930;",o.SHARED_PBK="&#xe931;",o.ATTACHMENTS="&#xe932;",o.STRIPE_ARROW_LEFT="&#xe933;",o.STRIPE_ARROW_RIGHT="&#xe934;",o.FILTERS="&#xe935;",o.DOT="&#xe936;",o.MINUS="&#xe937;",o.PLUS="&#xe938;",o.MAILS_AND_NOTIFICATIONS="&#xe939;",o.SAVE="&#xe93a;",o.LOCKER="&#xe93b;",o.ADMIN_INTEGRATION="&#xe93c;",o.SYNC="&#xe93d;",o.TAG="&#xe93e;",o.BOOK_PLAIN="&#xe93f;",o.UPLOAD="&#xe940;",o.ONLINE="&#xe941;",o.TAG_PLAIN="&#xe942;",o.ACCOUNT_SETTINGS="&#xe943;",o.PRINT="&#xe944;",o.DEFAULT_ROLES="&#xe945;",o.SHORTCUT_MENU="&#xe946;",o.RELATIVES_PLAIN="&#xe947;",o.RELATIVES="&#xe948;",o.PAUSE="&#xe949;",o.PLAY="&#xe94a;",o.ADMIN_PORTAL="&#xe94b;",o.STAR="&#xe94c;",o.THUMBS_DOWN="&#xe94d;",o.THUMBS_DOWN_PLAIN="&#xe94e;",o.THUMBS_UP="&#xe94f;",o.THUMBS_UP_PLAIN="&#xe950;",o.FEEDBACK_PLAIN="&#xe951;",o.RATE_PLAIN="&#xe952;",o.RATE="&#xe953;",o.OFFLINE_SETTINGS="&#xe954;",o.MY_COLLECTIONS="&#xe955;",o.THIN_ARROW_LEFT="&#xe956;",o.THIN_ARROW_RIGHT="&#xe957;",o.RESET="&#xe958;",o.MY_LIBRARY="&#xe959;",o.UNSTRUCTURED_DOC="&#xe95a;",o.CONTEXTUAL="&#xe95b;",o.THIN_ARROW_UP="&#xe95c;",o.ARROW_RIGHT_TO_LINE="&#xe95d;",o.DESKTOP="&#xe95e;",o.TABLET_LANDSCAPE="&#xe95f;",o.TABLET_PORTRAIT="&#xe960;",o.MOBILE_LANDSCAPE="&#xe961;",o.MOBILE_PORTRAIT="&#xe962;",o.DIAGRAM_SUNBURST="&#xe963;",o.DIAGRAM_SANKEY="&#xe964;",o.COMMENT_QUESTION="&#xe965;",o.COMMENT_QUESTION_PLAIN="&#xe966;",o.MESSAGE_BOT="&#xe967;",o.CHART_SIMPLE="&#xe968;",o.BARS_PROGRESS="&#xe969;",o.BOOK_OPEN_GEAR="&#xe96a;",o.BOOK_OPEN_GEAR_SLASH="&#xe96b;",o.LINE_CHART="&#xe96c;",o.STACKED_CHART="&#xe96d;",o.CHART_BAR_STACKED="&#xe96e;",o.CHART_BAR_GROUPED="&#xe96f;",o.EYE_SLASH="&#xe970;",o.X_MARK="&#xe971;",o.EXPAND_WIDE="&#xe972;",o.PIP="&#xe973;",o.PIP_WIDE="&#xe974;",o.LIFE_RING="&#xe975;",o.GLOBE="&#xe976;",o.PIGGY_BANK="&#xe977;",o.EXTLINK_LIGHT="&#xe978;",o.CLONE="&#xe979;",o.CLONE_LINK_SIMPLE="&#xe97a;",o.CHART_BAR_NORMALIZED="&#xe97b;",o.CONSUMER="&#xe97c;",o.OCTAGON_XMARK="&#xe97d;",o.HOURGLASS_HALF="&#xe97e;",o.CLOCK="&#xe97f;",o.CLOCK_THREE="&#xe97f;",o.CALENDAR_DAY="&#xe980;",o.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",o.WAND_MAGIC_SPARKLES="&#xe982;",o.PAPER_PLANE="&#xe983;",o.CIRCLE_STOP="&#xe984;",o.ARROW_ROTATE_RIGHT="&#xe985;",o.ARROWS_ROTATE="&#xe986;",o.ALIGN_RIGHT="&#xe987;",o.FORMAT_CLEAR="&#xe988;",o.ALIGN_CENTER="&#xe989;",o.ALIGN_LEFT="&#xe98a;",o.PALETTE="&#xe98b;",o.BOLD="&#xe98c;",o.ITALIC="&#xe98d;",o.UNDERLINE="&#xe98e;",o.STRIKETHROUGH="&#xe98f;",o.LINK_SIMPLE_SLASH="&#xe990;",o.LINK_SIMPLE="&#xe991;",o.ROUTE="&#xe992;",o.CIRCLE_USER_SLASH="&#xe993;",o.CIRCLE_USER_CHECK="&#xe994;",o.LIST_MAGNIFYING_GLASS="&#xe995;",o.MEDAL="&#xe996;",o.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",o.ARROW_TURN_DOWN_RIGHT="&#xe998;",o.FLASK="&#xe999;",o.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",o.HOURGLASS_END="&#xe99b;",o.CIRCLE_QUESTION="&#xe99c;",o.EYE="&#xf06e;",o.SHARE="&#xe80f1;",o.GRIP_LINES_SOLID="&#xe99d;",o.TRANSLATE_SPARKLE_SOLID="&#xe99e;",o.CODE="&#xe99f;"})(Jt||(Jt={}));var O;(function(o){o.UNKNOWN="&#xe90a;",o.ABW="&#xe900;",o.AUDIO="&#xe901;",o.AVI="&#xe902;",o.CHM="&#xe904;",o.CODE="&#xe905;",o.CSV="&#xe903;",o.DITA="&#xe906;",o.EPUB="&#xe907;",o.EXCEL="&#xe908;",o.FLAC="&#xe909;",o.GIF="&#xe90b;",o.GZIP="&#xe90c;",o.HTML="&#xe90d;",o.IMAGE="&#xe90e;",o.JPEG="&#xe90f;",o.JSON="&#xe910;",o.M4A="&#xe911;",o.MOV="&#xe912;",o.MP3="&#xe913;",o.MP4="&#xe914;",o.OGG="&#xe915;",o.PDF="&#xe916;",o.PNG="&#xe917;",o.POWERPOINT="&#xe918;",o.RAR="&#xe91a;",o.STP="&#xe91b;",o.TEXT="&#xe91c;",o.VIDEO="&#xe91e;",o.WAV="&#xe91f;",o.WMA="&#xe920;",o.WORD="&#xe921;",o.XML="&#xe922;",o.YAML="&#xe919;",o.ZIP="&#xe923;"})(O||(O={}));var dy=new Map([...["abw"].map(o=>[o,O.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(o=>[o,O.AUDIO]),...["avi"].map(o=>[o,O.AVI]),...["chm","xhs"].map(o=>[o,O.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(o=>[o,O.CODE]),...["csv"].map(o=>[o,O.CSV]),...["dita","ditamap","ditaval"].map(o=>[o,O.DITA]),...["epub"].map(o=>[o,O.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(o=>[o,O.EXCEL]),...["flac"].map(o=>[o,O.FLAC]),...["gif"].map(o=>[o,O.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(o=>[o,O.GZIP]),...["html","htm","xhtml"].map(o=>[o,O.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(o=>[o,O.IMAGE]),...["jpeg","jpg","jpe"].map(o=>[o,O.JPEG]),...["json"].map(o=>[o,O.JSON]),...["m4a","m4p"].map(o=>[o,O.M4A]),...["mov","qt"].map(o=>[o,O.MOV]),...["mp3"].map(o=>[o,O.MP3]),...["mp4","m4v"].map(o=>[o,O.MP4]),...["ogg","oga"].map(o=>[o,O.OGG]),...["pdf","ps"].map(o=>[o,O.PDF]),...["png"].map(o=>[o,O.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(o=>[o,O.POWERPOINT]),...["rar"].map(o=>[o,O.RAR]),...["stp"].map(o=>[o,O.STP]),...["txt","rtf","md","mdown"].map(o=>[o,O.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(o=>[o,O.VIDEO]),...["wav"].map(o=>[o,O.WAV]),...["wma"].map(o=>[o,O.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(o=>[o,O.WORD]),...["xml","xsl","rdf"].map(o=>[o,O.XML]),...["yaml","yml","x-yaml"].map(o=>[o,O.YAML]),...["zip"].map(o=>[o,O.ZIP])]);var py={[O.ABW]:"#91ABC6",[O.AUDIO]:"#1795E3",[O.AVI]:"#E63324",[O.CHM]:"#71C3EB",[O.CODE]:"#71C3EB",[O.CSV]:"#1F7345",[O.DITA]:"#71C3EB",[O.EPUB]:"#85B926",[O.EXCEL]:"#1F7345",[O.FLAC]:"#1795E3",[O.GIF]:"#59B031",[O.GZIP]:"#F8AB36",[O.HTML]:"#71C3EB",[O.IMAGE]:"#59B031",[O.JPEG]:"#59B031",[O.JSON]:"#71C3EB",[O.M4A]:"#1795E3",[O.MOV]:"#E63324",[O.MP3]:"#1795E3",[O.MP4]:"#E63324",[O.OGG]:"#1795E3",[O.PDF]:"#E44948",[O.PNG]:"#59B031",[O.POWERPOINT]:"#B54A2B",[O.RAR]:"#F8AB36",[O.STP]:"#3764B1",[O.TEXT]:"#3162AB",[O.UNKNOWN]:"#999999",[O.VIDEO]:"#E63324",[O.WAV]:"#1795E3",[O.WMA]:"#1795E3",[O.WORD]:"#3162AB",[O.XML]:"#71C3EB",[O.YAML]:"#71C3EB",[O.ZIP]:"#F8AB36"};var mt;(function(o){o.fluid_topics="fluid-topics",o.file_format="file-format",o.material="material"})(mt||(mt={}));var Go=function(o,e,r,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,r,n);else for(var s=o.length-1;s>=0;s--)(l=o[s])&&(i=(a<3?l(i):a>3?l(e,r,i):l(e,r))||i);return a>3&&i&&Object.defineProperty(e,r,i),i},rt=class extends qi.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=So.nothing}render(){let e=this.variant&&Object.values(mt).includes(this.variant)?this.variant:mt.fluid_topics,r=e!==mt.material||!!this.value;return So.html`
668
+ `}updated(e){e.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(r=>e.has(r))&&this.visible&&this.positionTooltip()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",Gi(this.slottedElement,this.tooltip,this.position).then(({x:e,y:r})=>{this.tooltip&&(this.tooltip.style.left=`${e}px`,this.tooltip.style.top=`${r}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout(()=>window.addEventListener("touchstart",e=>{e.composedPath().includes(this.container)||this.onOut()},{once:!0}),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(e,r){return Math.max(e,Math.min(0,-r))}};j.elementDefinitions={"ft-typography":Z};j.styles=Si;yt([(0,et.property)()],j.prototype,"text",void 0);yt([(0,et.property)({type:Boolean})],j.prototype,"manual",void 0);yt([(0,et.property)({type:Boolean})],j.prototype,"inline",void 0);yt([(0,et.property)({type:Number})],j.prototype,"delay",void 0);yt([(0,et.property)()],j.prototype,"position",void 0);yt([(0,et.queryAssignedNodes)()],j.prototype,"slotNodes",void 0);yt([(0,et.query)(".ft-tooltip--container")],j.prototype,"container",void 0);yt([(0,et.query)(".ft-tooltip")],j.prototype,"tooltip",void 0);yt([(0,et.query)(".ft-tooltip--content")],j.prototype,"tooltipContent",void 0);yt([(0,et.state)()],j.prototype,"visible",void 0);yt([(0,et.eventOptions)({passive:!0})],j.prototype,"onTouch",null);yt([(0,et.eventOptions)({passive:!0})],j.prototype,"onHover",null);yt([(0,et.eventOptions)({passive:!0})],j.prototype,"onOut",null);yt([(0,et.eventOptions)({passive:!0})],j.prototype,"onClick",null);(0,Vi.customElement)("ft-tooltip")(j);var Xi=g(L());var So=g(_()),Re=g(Y()),qi=g(L()),Yi=g(Zi());var Jt;(function(o){o.ADD_TO_PBK="&#xe800;",o.ALERT="&#xe801;",o.ADD_ALERT="&#xe802;",o.BACK_TO_SEARCH="&#xe803;",o.ADD_BOOKMARK="&#xe804;",o.BOOKMARK="&#xe805;",o.BOOKS="&#xe806;",o.MENU="&#xe807;",o.DOWNLOAD="&#xe808;",o.EDIT="&#xe809;",o.FEEDBACK="&#xe80a;",o.HOME="&#xe80b;",o.MODIFY_PBK="&#xe80c;",o.SCHEDULED="&#xe80d;",o.SEARCH="&#xe80e;",o.EXPORT="&#xe80f;",o.TOC="&#xe810;",o.WRITE_UGC="&#xe811;",o.TRASH="&#xe812;",o.USER="&#xe813;",o.EXTLINK="&#xe814;",o.CALENDAR="&#xe815;",o.OFFLINE="&#xe816;",o.BOOK="&#xe817;",o.DOWNLOAD_PLAIN="&#xe818;",o.CHECK="&#xe819;",o.STAR_PLAIN="&#xe900;",o.TOPICS="&#xe901;",o.DISC="&#xe902;",o.CIRCLE="&#xe903;",o.SHARED="&#xe904;",o.SORT_UNSORTED="&#xe905;",o.SORT_UP="&#xe906;",o.SORT_DOWN="&#xe907;",o.WORKING="&#xe908;",o.CLOSE="&#xe909;",o.ZOOM_OUT="&#xe90a;",o.ZOOM_IN="&#xe90b;",o.ZOOM_REALSIZE="&#xe90c;",o.ZOOM_FULLSCREEN="&#xe90d;",o.ADMIN_RESTRICTED="&#xe90e;",o.ADMIN="&#xe90f;",o.ADMIN_KHUB="&#xe910;",o.ADMIN_THEME="&#xe911;",o.ADMIN_USERS="&#xe912;",o.WARNING="&#xe913;",o.CONTEXT="&#xe914;",o.SEARCH_HOME="&#xe915;",o.STEPS="&#xe916;",o.ICON_EXPAND="&#xe917;",o.ICON_COLLAPSE="&#xe918;",o.INFO="&#xe919;",o.MINUS_PLAIN="&#xe91a;",o.PLUS_PLAIN="&#xe91b;",o.FACET_HAS_DESCENDANT="&#xe91c;",o.TRIANGLE_BOTTOM="&#xe91d;",o.TRIANGLE_LEFT="&#xe91e;",o.TRIANGLE_RIGHT="&#xe91f;",o.TRIANGLE_TOP="&#xe920;",o.THIN_ARROW="&#xe921;",o.SIGN_IN="&#xe922;",o.LOGOUT="&#xe923;",o.TRANSLATE="&#xe924;",o.CLOSE_PLAIN="&#xe925;",o.CHECK_PLAIN="&#xe926;",o.ARTICLE="&#xe927;",o.COLUMNS="&#xe928;",o.ANALYTICS="&#xe929;",o.COLLECTIONS="&#xe92a;",o.ARROW_DOWN="&#xe92b;",o.ARROW_LEFT="&#xe92c;",o.ARROW_RIGHT="&#xe92d;",o.ARROW_UP="&#xe92e;",o.SEARCH_IN_PUBLICATION="&#xe92f;",o.COPY_TO_CLIPBOARD="&#xe930;",o.SHARED_PBK="&#xe931;",o.ATTACHMENTS="&#xe932;",o.STRIPE_ARROW_LEFT="&#xe933;",o.STRIPE_ARROW_RIGHT="&#xe934;",o.FILTERS="&#xe935;",o.DOT="&#xe936;",o.MINUS="&#xe937;",o.PLUS="&#xe938;",o.MAILS_AND_NOTIFICATIONS="&#xe939;",o.SAVE="&#xe93a;",o.LOCKER="&#xe93b;",o.ADMIN_INTEGRATION="&#xe93c;",o.SYNC="&#xe93d;",o.TAG="&#xe93e;",o.BOOK_PLAIN="&#xe93f;",o.UPLOAD="&#xe940;",o.ONLINE="&#xe941;",o.TAG_PLAIN="&#xe942;",o.ACCOUNT_SETTINGS="&#xe943;",o.PRINT="&#xe944;",o.DEFAULT_ROLES="&#xe945;",o.SHORTCUT_MENU="&#xe946;",o.RELATIVES_PLAIN="&#xe947;",o.RELATIVES="&#xe948;",o.PAUSE="&#xe949;",o.PLAY="&#xe94a;",o.ADMIN_PORTAL="&#xe94b;",o.STAR="&#xe94c;",o.THUMBS_DOWN="&#xe94d;",o.THUMBS_DOWN_PLAIN="&#xe94e;",o.THUMBS_UP="&#xe94f;",o.THUMBS_UP_PLAIN="&#xe950;",o.FEEDBACK_PLAIN="&#xe951;",o.RATE_PLAIN="&#xe952;",o.RATE="&#xe953;",o.OFFLINE_SETTINGS="&#xe954;",o.MY_COLLECTIONS="&#xe955;",o.THIN_ARROW_LEFT="&#xe956;",o.THIN_ARROW_RIGHT="&#xe957;",o.RESET="&#xe958;",o.MY_LIBRARY="&#xe959;",o.UNSTRUCTURED_DOC="&#xe95a;",o.CONTEXTUAL="&#xe95b;",o.THIN_ARROW_UP="&#xe95c;",o.ARROW_RIGHT_TO_LINE="&#xe95d;",o.DESKTOP="&#xe95e;",o.TABLET_LANDSCAPE="&#xe95f;",o.TABLET_PORTRAIT="&#xe960;",o.MOBILE_LANDSCAPE="&#xe961;",o.MOBILE_PORTRAIT="&#xe962;",o.DIAGRAM_SUNBURST="&#xe963;",o.DIAGRAM_SANKEY="&#xe964;",o.COMMENT_QUESTION="&#xe965;",o.COMMENT_QUESTION_PLAIN="&#xe966;",o.MESSAGE_BOT="&#xe967;",o.CHART_SIMPLE="&#xe968;",o.BARS_PROGRESS="&#xe969;",o.BOOK_OPEN_GEAR="&#xe96a;",o.BOOK_OPEN_GEAR_SLASH="&#xe96b;",o.LINE_CHART="&#xe96c;",o.STACKED_CHART="&#xe96d;",o.CHART_BAR_STACKED="&#xe96e;",o.CHART_BAR_GROUPED="&#xe96f;",o.EYE_SLASH="&#xe970;",o.X_MARK="&#xe971;",o.EXPAND_WIDE="&#xe972;",o.PIP="&#xe973;",o.PIP_WIDE="&#xe974;",o.LIFE_RING="&#xe975;",o.GLOBE="&#xe976;",o.PIGGY_BANK="&#xe977;",o.EXTLINK_LIGHT="&#xe978;",o.CLONE="&#xe979;",o.CLONE_LINK_SIMPLE="&#xe97a;",o.CHART_BAR_NORMALIZED="&#xe97b;",o.CONSUMER="&#xe97c;",o.OCTAGON_XMARK="&#xe97d;",o.HOURGLASS_HALF="&#xe97e;",o.CLOCK="&#xe97f;",o.CLOCK_THREE="&#xe97f;",o.CALENDAR_DAY="&#xe980;",o.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",o.WAND_MAGIC_SPARKLES="&#xe982;",o.PAPER_PLANE="&#xe983;",o.CIRCLE_STOP="&#xe984;",o.ARROW_ROTATE_RIGHT="&#xe985;",o.ARROWS_ROTATE="&#xe986;",o.ALIGN_RIGHT="&#xe987;",o.FORMAT_CLEAR="&#xe988;",o.ALIGN_CENTER="&#xe989;",o.ALIGN_LEFT="&#xe98a;",o.PALETTE="&#xe98b;",o.BOLD="&#xe98c;",o.ITALIC="&#xe98d;",o.UNDERLINE="&#xe98e;",o.STRIKETHROUGH="&#xe98f;",o.LINK_SIMPLE_SLASH="&#xe990;",o.LINK_SIMPLE="&#xe991;",o.ROUTE="&#xe992;",o.CIRCLE_USER_SLASH="&#xe993;",o.CIRCLE_USER_CHECK="&#xe994;",o.LIST_MAGNIFYING_GLASS="&#xe995;",o.MEDAL="&#xe996;",o.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",o.ARROW_TURN_DOWN_RIGHT="&#xe998;",o.FLASK="&#xe999;",o.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",o.HOURGLASS_END="&#xe99b;",o.CIRCLE_QUESTION="&#xe99c;",o.EYE="&#xf06e;",o.SHARE="&#xe80f1;",o.GRIP_LINES_SOLID="&#xe99d;",o.TRANSLATE_SPARKLE_SOLID="&#xe99e;",o.CODE="&#xe99f;"})(Jt||(Jt={}));var O;(function(o){o.UNKNOWN="&#xe90a;",o.ABW="&#xe900;",o.AUDIO="&#xe901;",o.AVI="&#xe902;",o.CHM="&#xe904;",o.CODE="&#xe905;",o.CSV="&#xe903;",o.DITA="&#xe906;",o.EPUB="&#xe907;",o.EXCEL="&#xe908;",o.FLAC="&#xe909;",o.GIF="&#xe90b;",o.GZIP="&#xe90c;",o.HTML="&#xe90d;",o.IMAGE="&#xe90e;",o.JPEG="&#xe90f;",o.JSON="&#xe910;",o.M4A="&#xe911;",o.MOV="&#xe912;",o.MP3="&#xe913;",o.MP4="&#xe914;",o.OGG="&#xe915;",o.PDF="&#xe916;",o.PNG="&#xe917;",o.POWERPOINT="&#xe918;",o.RAR="&#xe91a;",o.STP="&#xe91b;",o.TEXT="&#xe91c;",o.VIDEO="&#xe91e;",o.WAV="&#xe91f;",o.WMA="&#xe920;",o.WORD="&#xe921;",o.XML="&#xe922;",o.YAML="&#xe919;",o.ZIP="&#xe923;"})(O||(O={}));var dy=new Map([...["abw"].map(o=>[o,O.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(o=>[o,O.AUDIO]),...["avi"].map(o=>[o,O.AVI]),...["chm","xhs"].map(o=>[o,O.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(o=>[o,O.CODE]),...["csv"].map(o=>[o,O.CSV]),...["dita","ditamap","ditaval"].map(o=>[o,O.DITA]),...["epub"].map(o=>[o,O.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(o=>[o,O.EXCEL]),...["flac"].map(o=>[o,O.FLAC]),...["gif"].map(o=>[o,O.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(o=>[o,O.GZIP]),...["html","htm","xhtml"].map(o=>[o,O.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(o=>[o,O.IMAGE]),...["jpeg","jpg","jpe"].map(o=>[o,O.JPEG]),...["json"].map(o=>[o,O.JSON]),...["m4a","m4p"].map(o=>[o,O.M4A]),...["mov","qt"].map(o=>[o,O.MOV]),...["mp3"].map(o=>[o,O.MP3]),...["mp4","m4v"].map(o=>[o,O.MP4]),...["ogg","oga"].map(o=>[o,O.OGG]),...["pdf","ps"].map(o=>[o,O.PDF]),...["png"].map(o=>[o,O.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(o=>[o,O.POWERPOINT]),...["rar"].map(o=>[o,O.RAR]),...["stp"].map(o=>[o,O.STP]),...["txt","rtf","md","mdown"].map(o=>[o,O.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(o=>[o,O.VIDEO]),...["wav"].map(o=>[o,O.WAV]),...["wma"].map(o=>[o,O.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(o=>[o,O.WORD]),...["xml","xsl","rdf"].map(o=>[o,O.XML]),...["yaml","yml","x-yaml"].map(o=>[o,O.YAML]),...["zip"].map(o=>[o,O.ZIP])]);var py={[O.ABW]:"#91ABC6",[O.AUDIO]:"#1795E3",[O.AVI]:"#E63324",[O.CHM]:"#71C3EB",[O.CODE]:"#71C3EB",[O.CSV]:"#1F7345",[O.DITA]:"#71C3EB",[O.EPUB]:"#85B926",[O.EXCEL]:"#1F7345",[O.FLAC]:"#1795E3",[O.GIF]:"#59B031",[O.GZIP]:"#F8AB36",[O.HTML]:"#71C3EB",[O.IMAGE]:"#59B031",[O.JPEG]:"#59B031",[O.JSON]:"#71C3EB",[O.M4A]:"#1795E3",[O.MOV]:"#E63324",[O.MP3]:"#1795E3",[O.MP4]:"#E63324",[O.OGG]:"#1795E3",[O.PDF]:"#E44948",[O.PNG]:"#59B031",[O.POWERPOINT]:"#B54A2B",[O.RAR]:"#F8AB36",[O.STP]:"#3764B1",[O.TEXT]:"#3162AB",[O.UNKNOWN]:"#999999",[O.VIDEO]:"#E63324",[O.WAV]:"#1795E3",[O.WMA]:"#1795E3",[O.WORD]:"#3162AB",[O.XML]:"#71C3EB",[O.YAML]:"#71C3EB",[O.ZIP]:"#F8AB36"};var mt;(function(o){o.fluid_topics="fluid-topics",o.file_format="file-format",o.material="material"})(mt||(mt={}));var Go=function(o,e,r,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,r,n);else for(var s=o.length-1;s>=0;s--)(l=o[s])&&(i=(a<3?l(i):a>3?l(e,r,i):l(e,r))||i);return a>3&&i&&Object.defineProperty(e,r,i),i},nt=class extends qi.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=So.nothing}render(){let e=this.variant&&Object.values(mt).includes(this.variant)?this.variant:mt.fluid_topics,r=e!==mt.material||!!this.value;return So.html`
669
669
  <i class="ft-icon ft-icon--${e}" part="icon icon-${e}">
670
670
  ${(0,Yi.unsafeHTML)(this.resolvedIcon)}
671
671
  <slot ?hidden=${r}></slot>
672
672
  </i>
673
- `}get textContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(n=>n.textContent).join("").trim())!==null&&r!==void 0?r:""}update(e){super.update(e),["value","variant"].some(r=>e.has(r))&&this.resolveIcon()}resolveIcon(){var e,r;let n=this.value||this.textContent;switch(this.variant){case mt.file_format:this.resolvedIcon=(e=O[n.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:n;break;case mt.material:this.resolvedIcon=this.value||So.nothing;break;default:this.resolvedIcon=(r=Jt[n.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:n;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};rt.elementDefinitions={};rt.styles=fi;Go([(0,Re.property)()],rt.prototype,"variant",void 0);Go([(0,Re.property)()],rt.prototype,"value",void 0);Go([(0,Re.state)()],rt.prototype,"resolvedIcon",void 0);Go([(0,Re.query)("slot")],rt.prototype,"slottedContent",void 0);(0,Xi.customElement)("ft-icon")(rt);var tc=g(L());var Ji=g(_()),Qi=g(L());var Le=class extends Qi.FtLitElement{render(){return Ji.html`
673
+ `}get textContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(n=>n.textContent).join("").trim())!==null&&r!==void 0?r:""}update(e){super.update(e),["value","variant"].some(r=>e.has(r))&&this.resolveIcon()}resolveIcon(){var e,r;let n=this.value||this.textContent;switch(this.variant){case mt.file_format:this.resolvedIcon=(e=O[n.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:n;break;case mt.material:this.resolvedIcon=this.value||So.nothing;break;default:this.resolvedIcon=(r=Jt[n.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:n;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};nt.elementDefinitions={};nt.styles=fi;Go([(0,Re.property)()],nt.prototype,"variant",void 0);Go([(0,Re.property)()],nt.prototype,"value",void 0);Go([(0,Re.state)()],nt.prototype,"resolvedIcon",void 0);Go([(0,Re.query)("slot")],nt.prototype,"slottedContent",void 0);(0,Xi.customElement)("ft-icon")(nt);var tc=g(L());var Ji=g(_()),Qi=g(L());var Le=class extends Qi.FtLitElement{render(){return Ji.html`
674
674
  <div class="ft-loader">
675
675
  <div></div>
676
676
  <div></div>
677
677
  <div></div>
678
678
  <div></div>
679
679
  </div>
680
- `}};Le.styles=di;(0,tc.customElement)("ft-loader")(Le);var de=g(_()),Jr=g(ae()),nt=g(Y()),it=function(o,e,r,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,r,n);else for(var s=o.length-1;s>=0;s--)(l=o[s])&&(i=(a<3?l(i):a>3?l(e,r,i):l(e,r))||i);return a>3&&i&&Object.defineProperty(e,r,i),i},U=class extends(0,pe.toFtFormComponent)(pe.FtLitElement,"button"){get buttonClasses(){return{}}get typographyVariant(){return""}constructor(){super(),this.href=void 0,this.target=void 0,this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.ariaLabel=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.addEventListener("click",e=>{var r;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((r=this.form)===null||r===void 0||r.requestSubmit())})}render(){var e,r,n;let a=de.html`
680
+ `}};Le.styles=di;(0,tc.customElement)("ft-loader")(Le);var de=g(_()),Jr=g(ae()),ot=g(Y()),it=function(o,e,r,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,r,n);else for(var s=o.length-1;s>=0;s--)(l=o[s])&&(i=(a<3?l(i):a>3?l(e,r,i):l(e,r))||i);return a>3&&i&&Object.defineProperty(e,r,i),i},H=class extends(0,pe.toFtFormComponent)(pe.FtLitElement,"button"){get buttonClasses(){return{}}get typographyVariant(){return""}constructor(){super(),this.href=void 0,this.target=void 0,this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.ariaLabel=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.addEventListener("click",e=>{var r;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((r=this.form)===null||r===void 0||r.requestSubmit())})}render(){var e,r,n;let a=de.html`
681
681
  <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
682
682
  <ft-typography part="label"
683
683
  variant=${this.typographyVariant}
@@ -714,7 +714,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
714
714
  <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
715
715
  `:de.html`
716
716
  <slot part="icon" name="icon"></slot>
717
- `}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}click(){var e;(e=this.button)===null||e===void 0||e.click()}getLabel(){return this.label||this.textContent}get textContent(){return(0,pe.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};U.elementDefinitions={"ft-ripple":M,"ft-tooltip":j,"ft-typography":Z,"ft-icon":rt,"ft-loader":Le};it([(0,nt.property)()],U.prototype,"href",void 0);it([(0,nt.property)()],U.prototype,"target",void 0);it([(0,nt.property)({type:String,reflect:!0})],U.prototype,"role",void 0);it([(0,nt.property)()],U.prototype,"type",void 0);it([(0,nt.property)({type:Boolean})],U.prototype,"disabled",void 0);it([(0,nt.property)()],U.prototype,"label",void 0);it([(0,nt.property)()],U.prototype,"icon",void 0);it([(0,nt.property)()],U.prototype,"iconVariant",void 0);it([(0,nt.property)({type:Boolean})],U.prototype,"trailingIcon",void 0);it([(0,nt.property)({type:Boolean})],U.prototype,"loading",void 0);it([(0,nt.property)({attribute:"aria-label"})],U.prototype,"ariaLabel",void 0);it([(0,nt.property)()],U.prototype,"tooltipPosition",void 0);it([(0,nt.property)({type:Boolean})],U.prototype,"hideTooltip",void 0);it([(0,nt.property)({type:Boolean})],U.prototype,"forceTooltip",void 0);it([(0,nt.query)(".ft-button")],U.prototype,"button",void 0);it([(0,nt.query)(".ft-button--label slot")],U.prototype,"slottedContent",void 0);var jo=function(o,e,r,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,r,n);else for(var s=o.length-1;s>=0;s--)(l=o[s])&&(i=(a<3?l(i):a>3?l(e,r,i):l(e,r))||i);return a>3&&i&&Object.defineProperty(e,r,i),i},_t=class extends U{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}};_t.styles=[ec.safariEllipsisFix,mi];jo([(0,Co.property)({type:Boolean})],_t.prototype,"primary",void 0);jo([(0,Co.property)({type:Boolean})],_t.prototype,"outlined",void 0);jo([(0,Co.property)({type:Boolean})],_t.prototype,"dense",void 0);jo([(0,Co.property)({type:Boolean})],_t.prototype,"round",void 0);var Oo=g(Y());var Ko=g(L());var oc=g(_()),v=g(L());var rc=[oc.css`
717
+ `}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}focusWithoutTooltip(){var e;this.setTooltipManual(!0),(e=this.button)===null||e===void 0||e.focus(),this.setTooltipManual(!1)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}getLabel(){return this.label||this.textContent}get textContent(){return(0,pe.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};H.elementDefinitions={"ft-ripple":M,"ft-tooltip":j,"ft-typography":Z,"ft-icon":nt,"ft-loader":Le};it([(0,ot.property)()],H.prototype,"href",void 0);it([(0,ot.property)()],H.prototype,"target",void 0);it([(0,ot.property)({type:String,reflect:!0})],H.prototype,"role",void 0);it([(0,ot.property)()],H.prototype,"type",void 0);it([(0,ot.property)({type:Boolean})],H.prototype,"disabled",void 0);it([(0,ot.property)()],H.prototype,"label",void 0);it([(0,ot.property)()],H.prototype,"icon",void 0);it([(0,ot.property)()],H.prototype,"iconVariant",void 0);it([(0,ot.property)({type:Boolean})],H.prototype,"trailingIcon",void 0);it([(0,ot.property)({type:Boolean})],H.prototype,"loading",void 0);it([(0,ot.property)({attribute:"aria-label"})],H.prototype,"ariaLabel",void 0);it([(0,ot.property)()],H.prototype,"tooltipPosition",void 0);it([(0,ot.property)({type:Boolean})],H.prototype,"hideTooltip",void 0);it([(0,ot.property)({type:Boolean})],H.prototype,"forceTooltip",void 0);it([(0,ot.query)(".ft-button")],H.prototype,"button",void 0);it([(0,ot.query)(".ft-button--label slot")],H.prototype,"slottedContent",void 0);it([(0,ot.query)("[part=tooltip]")],H.prototype,"tooltip",void 0);var jo=function(o,e,r,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,r,n);else for(var s=o.length-1;s>=0;s--)(l=o[s])&&(i=(a<3?l(i):a>3?l(e,r,i):l(e,r))||i);return a>3&&i&&Object.defineProperty(e,r,i),i},_t=class extends H{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}};_t.styles=[ec.safariEllipsisFix,mi];jo([(0,Co.property)({type:Boolean})],_t.prototype,"primary",void 0);jo([(0,Co.property)({type:Boolean})],_t.prototype,"outlined",void 0);jo([(0,Co.property)({type:Boolean})],_t.prototype,"dense",void 0);jo([(0,Co.property)({type:Boolean})],_t.prototype,"round",void 0);var Oo=g(Y());var Ko=g(L());var oc=g(_()),v=g(L());var rc=[oc.css`
718
718
  :host {
719
719
  display: inline-block;
720
720
  max-width: 100%;
@@ -1180,7 +1180,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
1180
1180
  .ftds--size-small.ft-button--icon-only {
1181
1181
  width: ${u.smallIconOnlyWidth};
1182
1182
  }
1183
- `,v.noTextSelect];var Vo=function(o,e,r,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,r,n);else for(var s=o.length-1;s>=0;s--)(l=o[s])&&(i=(a<3?l(i):a>3?l(e,r,i):l(e,r))||i);return a>3&&i&&Object.defineProperty(e,r,i),i},Ct=class extends(0,Ko.toFtdsBase)(U){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=Bt.brand,this.iconVariant=mt.fluid_topics}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon,"ft-button--round":this.round,...this.getDesignSystemBaseClasses()}}get typographyVariant(){switch(this.size){case K.large:return J.body2medium;case K.medium:return J.caption1medium;case K.small:return J.caption2medium}}};Ct.styles=[Ko.safariEllipsisFix,rc];Vo([(0,Oo.property)({type:Boolean})],Ct.prototype,"primary",void 0);Vo([(0,Oo.property)({type:Boolean})],Ct.prototype,"secondary",void 0);Vo([(0,Oo.property)({type:Boolean})],Ct.prototype,"tertiary",void 0);Vo([(0,Oo.property)({type:Boolean})],Ct.prototype,"round",void 0);(0,Qr.customElement)("ft-button")(_t);(0,Qr.customElement)("ftds-button")(Ct);var nc=g(_());var ac=nc.css`
1183
+ `,v.noTextSelect];var Vo=function(o,e,r,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,r,n);else for(var s=o.length-1;s>=0;s--)(l=o[s])&&(i=(a<3?l(i):a>3?l(e,r,i):l(e,r))||i);return a>3&&i&&Object.defineProperty(e,r,i),i},Ct=class extends(0,Ko.toFtdsBase)(H){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=Bt.brand,this.iconVariant=mt.fluid_topics}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon,"ft-button--round":this.round,...this.getDesignSystemBaseClasses()}}get typographyVariant(){switch(this.size){case K.large:return J.body2medium;case K.medium:return J.caption1medium;case K.small:return J.caption2medium}}};Ct.styles=[Ko.safariEllipsisFix,rc];Vo([(0,Oo.property)({type:Boolean})],Ct.prototype,"primary",void 0);Vo([(0,Oo.property)({type:Boolean})],Ct.prototype,"secondary",void 0);Vo([(0,Oo.property)({type:Boolean})],Ct.prototype,"tertiary",void 0);Vo([(0,Oo.property)({type:Boolean})],Ct.prototype,"round",void 0);(0,Qr.customElement)("ft-button")(_t);(0,Qr.customElement)("ftds-button")(Ct);var nc=g(_());var ac=nc.css`
1184
1184
  :host {
1185
1185
  position: relative;
1186
1186
  display: inline-block;
@@ -1192,7 +1192,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
1192
1192
 
1193
1193
  .ftds-popover--container {
1194
1194
  position: absolute;
1195
- z-index: 2;
1195
+ z-index: 100;
1196
1196
  display: block;
1197
1197
  margin: auto;
1198
1198
  }
@@ -1259,7 +1259,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
1259
1259
  .ftds-popover--wrapper-positioned {
1260
1260
  visibility: visible;
1261
1261
  }
1262
- `;var ic=g(ae());var Ot=function(o,e,r,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,r,n);else for(var s=o.length-1;s>=0;s--)(l=o[s])&&(i=(a<3?l(i):a>3?l(e,r,i):l(e,r))||i);return a>3&&i&&Object.defineProperty(e,r,i),i},q=class extends Xe.FtLitElement{constructor(){super(...arguments),this.heading="",this.closeButtonLabel="close info",this.openButtonLabel="more info",this.openButtonTooltipPosition="bottom",this.opened=!1,this.hidden=!1,this.openButtonSize=K.medium,this.openButtonFamily=Bt.info,this.watchFocusIn=e=>{e.composedPath().includes(this.popoverWrapper)||this.close()},this.watchEscapeKey=e=>{e.key==="Escape"&&this.closeAndFocusOpeningButton()},this.closeAndFocusOpeningButton=()=>{this.close(),this.openingButton.focus()}}render(){let e={"ftds-popover":!0,"ftds-popover--opened":this.opened};return this.hidden?Qt.nothing:Qt.html`
1262
+ `;var ic=g(ae());var Ot=function(o,e,r,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,r,n);else for(var s=o.length-1;s>=0;s--)(l=o[s])&&(i=(a<3?l(i):a>3?l(e,r,i):l(e,r))||i);return a>3&&i&&Object.defineProperty(e,r,i),i},q=class extends Xe.FtLitElement{constructor(){super(...arguments),this.popoverOpenTriggeredWithKeyboard=!1,this.heading="",this.closeButtonLabel="close info",this.openButtonLabel="more info",this.openButtonTooltipPosition="bottom",this.opened=!1,this.hidden=!1,this.openButtonSize=K.medium,this.openButtonFamily=Bt.info,this.watchFocusIn=e=>{e.composedPath().includes(this.popoverWrapper)||this.close()},this.watchEscapeKey=e=>{e.key==="Escape"&&(this.close(),this.openingButton.focus())},this.closeAndFocusOpeningButton=e=>{this.close(),e.pointerType?this.openingButton.focusWithoutTooltip():this.openingButton.focus()}}render(){let e={"ftds-popover":!0,"ftds-popover--opened":this.opened};return this.hidden?Qt.nothing:Qt.html`
1263
1263
  <div part="container" class="${(0,ic.classMap)(e)}">
1264
1264
  <ftds-button @focusin="${this.close}"
1265
1265
  part="opening-button"
@@ -1302,7 +1302,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
1302
1302
  <div class="ftds-popover--heading" part="heading" id="ftds-popover-heading">
1303
1303
  <ft-typography element="span" variant="body-2-semibold">${this.heading}</ft-typography>
1304
1304
  </div>
1305
- `:Qt.nothing}updated(e){super.updated(e),e.has("opened")&&(this.opened?setTimeout(()=>{this.positionWrapper(),document.addEventListener("keydown",this.watchEscapeKey),document.addEventListener("focusin",this.watchFocusIn)},0):(document.removeEventListener("keydown",this.watchEscapeKey),document.removeEventListener("focusin",this.watchFocusIn)))}close(){this.opened=!1,this.dispatchEvent(new CustomEvent("opened-changed",{detail:{opened:!1}}))}open(){this.opened=!0,this.dispatchEvent(new CustomEvent("opened-changed",{detail:{opened:!0}}))}hasTextLinkContent(){return(0,Xe.unslotText)(this.slottedLinkContent).trim().length>0}async positionWrapper(){this.popoverWrapper.classList.remove("ftds-popover--wrapper-positioned"),this.popoverWrapper.style.left="",this.popoverWrapper.style.top="";let e=this.openingButton,r=["right-start","bottom-end","right-end","left-start","left-end","top-start","top-end"],{x:n,y:a}=await(0,Xe.computeFlipOffsetPosition)(e,this.popoverWrapper,"bottom-start",r,"fixed");this.popoverWrapper.style.left=`${n}px`,this.popoverWrapper.style.top=`${a}px`,this.popoverWrapper.classList.add("ftds-popover--wrapper-positioned"),this.popoverLinkTypography.hidden=!this.hasTextLinkContent(),this.closingButton.focus()}};q.elementDefinitions={"ft-typography":Z,"ftds-button":Ct};q.styles=ac;Ot([(0,st.property)({type:String})],q.prototype,"heading",void 0);Ot([(0,st.property)({type:String})],q.prototype,"closeButtonLabel",void 0);Ot([(0,st.property)({type:String})],q.prototype,"openButtonLabel",void 0);Ot([(0,st.property)({type:String})],q.prototype,"openButtonTooltipPosition",void 0);Ot([(0,st.property)({type:Boolean})],q.prototype,"opened",void 0);Ot([(0,st.property)({type:Boolean})],q.prototype,"hidden",void 0);Ot([(0,st.property)({type:K})],q.prototype,"openButtonSize",void 0);Ot([(0,st.property)({type:Bt})],q.prototype,"openButtonFamily",void 0);Ot([(0,st.query)("[part=opening-button]")],q.prototype,"openingButton",void 0);Ot([(0,st.query)("[part=closing-button]")],q.prototype,"closingButton",void 0);Ot([(0,st.query)("[part=wrapper]")],q.prototype,"popoverWrapper",void 0);Ot([(0,st.query)("[part=popover-link]")],q.prototype,"slottedLinkContent",void 0);Ot([(0,st.query)("[part=popover-link-typography]")],q.prototype,"popoverLinkTypography",void 0);(0,cc.customElement)("ftds-popover")(q);var rn=g(L());var qo=g(_()),dt=g(Y()),fc=g(ae()),Je=g(L());var Zo=g(_()),k=g(L());var lc=k.FtCssVariableFactory.extend("--ft-chip-color","",k.designSystemVariables.colorOnSurface),It={backgroundColor:k.FtCssVariableFactory.extend("--ft-chip-background-color","",k.designSystemVariables.colorSurface),color:lc,fontSize:k.FtCssVariableFactory.extend("--ft-chip-font-size","",Mt.fontSize),iconSize:k.FtCssVariableFactory.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:k.FtCssVariableFactory.create("--ft-chip-border-radius","","SIZE",""),rippleColor:k.FtCssVariableFactory.extend("--ft-chip-ripple-color","",lc),horizontalPadding:k.FtCssVariableFactory.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:k.FtCssVariableFactory.create("--ft-chip-vertical-padding","","SIZE","6px"),borderColor:k.FtCssVariableFactory.extend("--ft-chip-border-color","",k.designSystemVariables.colorOutline),opacityDisabled:k.FtCssVariableFactory.external(k.designSystemVariables.colorOpacityDisabled,"Design system")},sc=k.FtCssVariableFactory.extend("--ft-chip-highlighted-color","",k.FtCssVariableFactory.extend("--ft-chip-color","",k.designSystemVariables.colorOnPrimary)),tn={backgroundColor:k.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color","",k.FtCssVariableFactory.extend("--ft-chip-background-color","",k.designSystemVariables.colorPrimary)),color:sc,rippleColor:k.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color","",sc)},dc={horizontalPadding:k.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:k.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},pc=[k.noTextSelect,Zo.css`
1305
+ `:Qt.nothing}updated(e){super.updated(e),e.has("opened")&&(this.opened?setTimeout(()=>{this.positionWrapper(),document.addEventListener("keydown",this.watchEscapeKey),document.addEventListener("focusin",this.watchFocusIn)},0):(document.removeEventListener("keydown",this.watchEscapeKey),document.removeEventListener("focusin",this.watchFocusIn)))}close(){this.opened=!1,this.dispatchEvent(new CustomEvent("opened-changed",{detail:{opened:!1}}))}open(e){this.popoverOpenTriggeredWithKeyboard=!e.pointerType,this.opened=!0,this.dispatchEvent(new CustomEvent("opened-changed",{detail:{opened:!0}}))}hasTextLinkContent(){return(0,Xe.unslotText)(this.slottedLinkContent).trim().length>0}async positionWrapper(){this.popoverWrapper.classList.remove("ftds-popover--wrapper-positioned"),this.popoverWrapper.style.left="",this.popoverWrapper.style.top="";let e=this.openingButton,r=["right-start","bottom-end","right-end","left-start","left-end","top-start","top-end"],{x:n,y:a}=await(0,Xe.computeFlipOffsetPosition)(e,this.popoverWrapper,"bottom-start",r,"fixed");this.popoverWrapper.style.left=`${n}px`,this.popoverWrapper.style.top=`${a}px`,this.popoverWrapper.classList.add("ftds-popover--wrapper-positioned"),this.popoverLinkTypography.hidden=!this.hasTextLinkContent(),this.popoverOpenTriggeredWithKeyboard?this.closingButton.focus():this.closingButton.focusWithoutTooltip()}};q.elementDefinitions={"ft-typography":Z,"ftds-button":Ct};q.styles=ac;Ot([(0,st.property)({type:String})],q.prototype,"heading",void 0);Ot([(0,st.property)({type:String})],q.prototype,"closeButtonLabel",void 0);Ot([(0,st.property)({type:String})],q.prototype,"openButtonLabel",void 0);Ot([(0,st.property)({type:String})],q.prototype,"openButtonTooltipPosition",void 0);Ot([(0,st.property)({type:Boolean})],q.prototype,"opened",void 0);Ot([(0,st.property)({type:Boolean})],q.prototype,"hidden",void 0);Ot([(0,st.property)({type:K})],q.prototype,"openButtonSize",void 0);Ot([(0,st.property)({type:Bt})],q.prototype,"openButtonFamily",void 0);Ot([(0,st.query)("[part=opening-button]")],q.prototype,"openingButton",void 0);Ot([(0,st.query)("[part=closing-button]")],q.prototype,"closingButton",void 0);Ot([(0,st.query)("[part=wrapper]")],q.prototype,"popoverWrapper",void 0);Ot([(0,st.query)("[part=popover-link]")],q.prototype,"slottedLinkContent",void 0);Ot([(0,st.query)("[part=popover-link-typography]")],q.prototype,"popoverLinkTypography",void 0);(0,cc.customElement)("ftds-popover")(q);var rn=g(L());var qo=g(_()),dt=g(Y()),fc=g(ae()),Je=g(L());var Zo=g(_()),k=g(L());var lc=k.FtCssVariableFactory.extend("--ft-chip-color","",k.designSystemVariables.colorOnSurface),It={backgroundColor:k.FtCssVariableFactory.extend("--ft-chip-background-color","",k.designSystemVariables.colorSurface),color:lc,fontSize:k.FtCssVariableFactory.extend("--ft-chip-font-size","",Mt.fontSize),iconSize:k.FtCssVariableFactory.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:k.FtCssVariableFactory.create("--ft-chip-border-radius","","SIZE",""),rippleColor:k.FtCssVariableFactory.extend("--ft-chip-ripple-color","",lc),horizontalPadding:k.FtCssVariableFactory.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:k.FtCssVariableFactory.create("--ft-chip-vertical-padding","","SIZE","6px"),borderColor:k.FtCssVariableFactory.extend("--ft-chip-border-color","",k.designSystemVariables.colorOutline),opacityDisabled:k.FtCssVariableFactory.external(k.designSystemVariables.colorOpacityDisabled,"Design system")},sc=k.FtCssVariableFactory.extend("--ft-chip-highlighted-color","",k.FtCssVariableFactory.extend("--ft-chip-color","",k.designSystemVariables.colorOnPrimary)),tn={backgroundColor:k.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color","",k.FtCssVariableFactory.extend("--ft-chip-background-color","",k.designSystemVariables.colorPrimary)),color:sc,rippleColor:k.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color","",sc)},dc={horizontalPadding:k.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:k.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},pc=[k.noTextSelect,Zo.css`
1306
1306
  :host {
1307
1307
  display: inline-block;
1308
1308
  max-width: 100%;
@@ -1440,7 +1440,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
1440
1440
  .ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
1441
1441
  order: -1;
1442
1442
  }
1443
- `];var wt=function(o,e,r,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,r,n);else for(var s=o.length-1;s>=0;s--)(l=o[s])&&(i=(a<3?l(i):a>3?l(e,r,i):l(e,r))||i);return a>3&&i&&Object.defineProperty(e,r,i),i},Yo=class extends CustomEvent{constructor(){super("icon-click")}},ot=class extends Je.FtLitElement{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.icon=void 0,this.trailingIcon=!1}render(){let e={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":Je.isSafari};return qo.html`
1443
+ `];var wt=function(o,e,r,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,r,n);else for(var s=o.length-1;s>=0;s--)(l=o[s])&&(i=(a<3?l(i):a>3?l(e,r,i):l(e,r))||i);return a>3&&i&&Object.defineProperty(e,r,i),i},Yo=class extends CustomEvent{constructor(){super("icon-click")}},rt=class extends Je.FtLitElement{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.icon=void 0,this.trailingIcon=!1}render(){let e={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":Je.isSafari};return qo.html`
1444
1444
  <div class="${(0,fc.classMap)(e)}"
1445
1445
  aria-label="${this.getLabel()}"
1446
1446
  tabindex="${this.interactionsOnChip?0:-1}"
@@ -1466,7 +1466,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
1466
1466
  <div class="ft-chip--icon-container ft-no-text-select" part="icon-container">
1467
1467
  <ft-icon .variant=${this.iconVariant} .value="${this.internalIcon}" part="icon"></ft-icon>
1468
1468
  </div>
1469
- `}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new Yo))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new Yo))}getLabel(){return this.label||this.textContent}get textContent(){return(0,Je.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};ot.elementDefinitions={"ft-ripple":M,"ft-typography":Z,"ft-icon":rt,"ft-button":_t};ot.styles=pc;wt([(0,dt.property)({type:Boolean})],ot.prototype,"highlighted",void 0);wt([(0,dt.property)({type:Boolean})],ot.prototype,"removable",void 0);wt([(0,dt.property)({type:Boolean})],ot.prototype,"disabled",void 0);wt([(0,dt.property)({type:Boolean})],ot.prototype,"clickable",void 0);wt([(0,dt.property)({type:Boolean})],ot.prototype,"iconClickable",void 0);wt([(0,dt.property)({type:Boolean})],ot.prototype,"dense",void 0);wt([(0,dt.property)({type:Boolean})],ot.prototype,"multiLine",void 0);wt([(0,dt.property)()],ot.prototype,"label",void 0);wt([(0,dt.property)()],ot.prototype,"iconLabel",void 0);wt([(0,dt.property)()],ot.prototype,"icon",void 0);wt([(0,dt.property)()],ot.prototype,"iconVariant",void 0);wt([(0,dt.property)({type:Boolean})],ot.prototype,"trailingIcon",void 0);wt([(0,dt.query)("ft-typography slot")],ot.prototype,"slottedContent",void 0);var Pe=g(_()),Ie=g(Y()),yc=g(ae()),Xo=g(L());var uc=g(_());var en=g(L());var hc=[uc.css`
1469
+ `}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new Yo))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new Yo))}getLabel(){return this.label||this.textContent}get textContent(){return(0,Je.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};rt.elementDefinitions={"ft-ripple":M,"ft-typography":Z,"ft-icon":nt,"ft-button":_t};rt.styles=pc;wt([(0,dt.property)({type:Boolean})],rt.prototype,"highlighted",void 0);wt([(0,dt.property)({type:Boolean})],rt.prototype,"removable",void 0);wt([(0,dt.property)({type:Boolean})],rt.prototype,"disabled",void 0);wt([(0,dt.property)({type:Boolean})],rt.prototype,"clickable",void 0);wt([(0,dt.property)({type:Boolean})],rt.prototype,"iconClickable",void 0);wt([(0,dt.property)({type:Boolean})],rt.prototype,"dense",void 0);wt([(0,dt.property)({type:Boolean})],rt.prototype,"multiLine",void 0);wt([(0,dt.property)()],rt.prototype,"label",void 0);wt([(0,dt.property)()],rt.prototype,"iconLabel",void 0);wt([(0,dt.property)()],rt.prototype,"icon",void 0);wt([(0,dt.property)()],rt.prototype,"iconVariant",void 0);wt([(0,dt.property)({type:Boolean})],rt.prototype,"trailingIcon",void 0);wt([(0,dt.query)("ft-typography slot")],rt.prototype,"slottedContent",void 0);var Pe=g(_()),Ie=g(Y()),yc=g(ae()),Xo=g(L());var uc=g(_());var en=g(L());var hc=[uc.css`
1470
1470
  :host {
1471
1471
  display: inline-block;
1472
1472
  max-width: 100%;
@@ -1596,7 +1596,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
1596
1596
  size=${this.resolveButtonSize()}
1597
1597
  part="icon-button"
1598
1598
  ></ftds-button>
1599
- `:Pe.nothing}resolveButtonSize(){switch(this.size){case K.large:return K.medium;case K.medium:case K.small:return K.small}}getLabel(){return this.label||this.textContent}get textContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(n=>n.textContent).join("").trim())!==null&&r!==void 0?r:""}onSlotchange(){this.requestUpdate()}dispatchRemoveEvent(){this.dispatchEvent(new on)}typographyVariant(){switch(this.size){case K.large:return J.body2medium;case K.medium:return J.caption1medium;case K.small:return J.caption2medium}}};Et.elementDefinitions={"ft-typography":Z,"ft-icon":rt,"ftds-button":Ct};Et.styles=hc;wo([(0,Ie.property)({type:Boolean})],Et.prototype,"removable",void 0);wo([(0,Ie.property)()],Et.prototype,"removeButtonLabel",void 0);wo([(0,Ie.property)()],Et.prototype,"label",void 0);wo([(0,Ie.property)()],Et.prototype,"icon",void 0);wo([(0,Ie.query)("ft-typography slot")],Et.prototype,"slottedContent",void 0);(0,rn.customElement)("ft-chip")(ot);(0,rn.customElement)("ftds-chip")(Et);var xc=g(L());var Jo=g(_()),to=g(Y()),bc=g(ae()),eo=g(L());var mc=g(_());var Qe=g(L()),gc=mc.css`
1599
+ `:Pe.nothing}resolveButtonSize(){switch(this.size){case K.large:return K.medium;case K.medium:case K.small:return K.small}}getLabel(){return this.label||this.textContent}get textContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(n=>n.textContent).join("").trim())!==null&&r!==void 0?r:""}onSlotchange(){this.requestUpdate()}dispatchRemoveEvent(){this.dispatchEvent(new on)}typographyVariant(){switch(this.size){case K.large:return J.body2medium;case K.medium:return J.caption1medium;case K.small:return J.caption2medium}}};Et.elementDefinitions={"ft-typography":Z,"ft-icon":nt,"ftds-button":Ct};Et.styles=hc;wo([(0,Ie.property)({type:Boolean})],Et.prototype,"removable",void 0);wo([(0,Ie.property)()],Et.prototype,"removeButtonLabel",void 0);wo([(0,Ie.property)()],Et.prototype,"label",void 0);wo([(0,Ie.property)()],Et.prototype,"icon",void 0);wo([(0,Ie.query)("ft-typography slot")],Et.prototype,"slottedContent",void 0);(0,rn.customElement)("ft-chip")(rt);(0,rn.customElement)("ftds-chip")(Et);var xc=g(L());var Jo=g(_()),to=g(Y()),bc=g(ae()),eo=g(L());var mc=g(_());var Qe=g(L()),gc=mc.css`
1600
1600
 
1601
1601
  .ftds-link {
1602
1602
  display: inline-flex;
@@ -1703,11 +1703,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
1703
1703
  `}resolveIcon(){return this.target===Qo.BLANK?Jo.html`
1704
1704
  <ft-icon aria-label="${this.openInNewTabLabel}" part="icon" .variant="${mt.fluid_topics}" .value="${this.icon}">
1705
1705
  </ft-icon>
1706
- `:Jo.html``}get resolveVariantClasses(){return{["ftds-link--variant-"+this.variant]:!0}}onSlotchange(){this.requestUpdate()}};Nt.elementDefinitions={"ft-typography":Z,"ft-icon":rt};Nt.styles=[eo.safariEllipsisFix,gc];Eo([(0,to.property)()],Nt.prototype,"href",void 0);Eo([(0,to.property)()],Nt.prototype,"variant",void 0);Eo([(0,to.property)({type:Boolean})],Nt.prototype,"underlined",void 0);Eo([(0,to.property)()],Nt.prototype,"openInNewTabLabel",void 0);Eo([(0,to.property)()],Nt.prototype,"target",void 0);(0,xc.customElement)("ftds-link")(Nt);var vl=g(L());var wr=g(_()),Er=g(Y()),Nr=g(L());var vc=g(_());var Sc=vc.css`
1706
+ `:Jo.html``}get resolveVariantClasses(){return{["ftds-link--variant-"+this.variant]:!0}}onSlotchange(){this.requestUpdate()}};Nt.elementDefinitions={"ft-typography":Z,"ft-icon":nt};Nt.styles=[eo.safariEllipsisFix,gc];Eo([(0,to.property)()],Nt.prototype,"href",void 0);Eo([(0,to.property)()],Nt.prototype,"variant",void 0);Eo([(0,to.property)({type:Boolean})],Nt.prototype,"underlined",void 0);Eo([(0,to.property)()],Nt.prototype,"openInNewTabLabel",void 0);Eo([(0,to.property)()],Nt.prototype,"target",void 0);(0,xc.customElement)("ftds-link")(Nt);var vl=g(L());var wr=g(_()),Er=g(Y()),Nr=g(L());var vc=g(_());var Sc=vc.css`
1707
1707
  `;var Or=g(L());var gl=g(L());var Nc=g(_()),gt=g(Y()),Wt=g(L());var Cc=g(_());var Oc=Cc.css`
1708
1708
  `;var tr=g(L()),os="ft-app-info",nn=class extends CustomEvent{constructor(e){super("authentication-change",{detail:e})}},rs={session:(o,e)=>{(0,tr.deepEqual)(o.session,e.payload)||(o.session=e.payload,setTimeout(()=>P.dispatchEvent(new nn(e.payload)),0))}},P=tr.FtReduxStore.get({name:os,reducers:rs,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,metadataConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1}});var ue=g(L());var an=g(L());var $e=class o{static get(e){let{baseUrl:r,apiIntegrationIdentifier:n}=P.getState(),a=e??n;if(r&&a&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,a,!0)}static await(e){return new Promise(r=>{let n=o.get(e);if(n)r(n);else{let a=P.subscribe(()=>{n=o.get(e),n&&(a(),r(n))})}})}};var fe=class{constructor(e=!0,r){var n;this.overrideApi=r;let a=this.constructor;a.commonCache=(n=a.commonCache)!==null&&n!==void 0?n:new an.CacheRegistry,this.cache=e?a.commonCache:new an.CacheRegistry}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:$e.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):$e.await()}clearCache(){this.cache.clearAll()}};var wc,ns=Symbol("clearAfterUnitTest"),er=class extends fe{constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[wc]=()=>{this.defaultMessages={},this.cache=new ue.CacheRegistry,this.listeners={}},this.currentUiLocale=P.getState().uiLocale,P.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=P.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var n;if(e=e.toLowerCase(),Object.keys(r).length>0){let a={...(n=this.defaultMessages[e])!==null&&n!==void 0?n:{},...r};(0,ue.deepEqual)(this.defaultMessages[e],a)||(this.defaultMessages[e]=a,await this.notify(e))}await this.fetchContext(e)}resolveContext(e){var r,n;return this.fetchContext(e),(n=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(e,r){let n=e.toLowerCase();return this.resolveContext(n)[r]}resolveMessage(e,r,...n){var a;let i=e.toLowerCase(),l=this.resolveContext(i);return new ue.ParametrizedLabelResolver((a=this.defaultMessages[i])!==null&&a!==void 0?a:{},l).resolve(r,...n)}async fetchContext(e){if(!this.cache.has(e))try{await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),await this.notify(e)}catch(r){console.error(r)}}subscribe(e,r){var n;return e=e.toLowerCase(),this.listeners[e]=(n=this.listeners[e])!==null&&n!==void 0?n:new Set,this.listeners[e].add(r),()=>{var a;return(a=this.listeners[e])===null||a===void 0?void 0:a.delete(r)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map(e=>this.notify(e)))}async notify(e){this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(r=>(0,ue.delay)(0).then(()=>r()).catch(()=>null)))}};wc=ns;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends er{constructor(){super(async(o,e)=>(await this.awaitApi).getFluidTopicsMessageContext(o,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends er{constructor(){super(async(o,e)=>(await this.awaitApi).getCustomMessageContext(o,e))}});var ke=window.FluidTopicsI18nService,Ec=window.FluidTopicsCustomI18nService;var ct=function(o,e,r,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,r,n);else for(var s=o.length-1;s>=0;s--)(l=o[s])&&(i=(a<3?l(i):a>3?l(e,r,i):l(e,r))||i);return a>3&&i&&Object.defineProperty(e,r,i),i},V=class extends Wt.FtLitElement{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.apiProvider=()=>$e.get(),this.messageContexts=[],this.cache=new Wt.CacheRegistry,this.cleanSessionDebouncer=new Wt.Debouncer}render(){return Nc.html`
1709
1709
  <slot></slot>
1710
- `}update(e){var r,n,a,i,l;super.update(e),e.has("baseUrl")&&(P.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&P.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("uiLocale")&&P.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&P.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&P.actions.noCustom(this.noCustom),e.has("editorMode")&&P.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&P.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&P.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(s=>ke.addContext(s)),e.has("openExternalDocumentInNewTab")&&P.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&P.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&P.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(P.actions.defaultLocales((r=this.localesConfiguration)===null||r===void 0?void 0:r.defaultLocales),P.actions.availableUiLocales((a=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&a!==void 0?a:[]),P.actions.searchInAllLanguagesAllowed((l=(i=this.localesConfiguration)===null||i===void 0?void 0:i.allLanguagesAllowed)!==null&&l!==void 0?l:!1)),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let e=await this.apiProvider().getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},e.idleTimeoutInMillis),e})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}};V.elementDefinitions={};V.styles=Oc;ct([(0,gt.property)()],V.prototype,"baseUrl",void 0);ct([(0,gt.property)()],V.prototype,"apiIntegrationIdentifier",void 0);ct([(0,gt.property)()],V.prototype,"uiLocale",void 0);ct([(0,Wt.jsonProperty)(null)],V.prototype,"availableUiLocales",void 0);ct([(0,Wt.jsonProperty)(null)],V.prototype,"metadataConfiguration",void 0);ct([(0,gt.property)({type:Boolean})],V.prototype,"editorMode",void 0);ct([(0,gt.property)({type:Boolean})],V.prototype,"noCustom",void 0);ct([(0,gt.property)({type:Boolean})],V.prototype,"openExternalDocumentInNewTab",void 0);ct([(0,gt.property)({converter:{fromAttribute(o){return o==="false"?!1:o==="true"||(o??!1)}}})],V.prototype,"noCustomComponent",void 0);ct([(0,gt.property)({type:Boolean})],V.prototype,"withManualResources",void 0);ct([(0,gt.property)({type:Boolean})],V.prototype,"navigatorOnline",void 0);ct([(0,gt.property)({type:Boolean})],V.prototype,"forcedOffline",void 0);ct([(0,gt.property)({type:Object})],V.prototype,"apiProvider",void 0);ct([(0,Wt.jsonProperty)([])],V.prototype,"messageContexts",void 0);ct([(0,Wt.jsonProperty)(void 0)],V.prototype,"session",void 0);ct([(0,gt.state)()],V.prototype,"localesConfiguration",void 0);var js=g(Y());function as(o,e){if(o===e)return!0;if(o&&e&&typeof o=="object"&&typeof e=="object"){if(o.constructor!==e.constructor)return!1;var r,n,a;if(Array.isArray(o)){if(r=o.length,r!=e.length)return!1;for(n=r;n--!==0;)if(!or(o[n],e[n]))return!1;return!0}if(o instanceof Map&&e instanceof Map){if(o.size!==e.size)return!1;for(n of o.entries())if(!e.has(n[0]))return!1;for(n of o.entries())if(!or(n[1],e.get(n[0])))return!1;return!0}if(o instanceof Set&&e instanceof Set){if(o.size!==e.size)return!1;for(n of o.entries())if(!e.has(n[0]))return!1;return!0}if(o.constructor===RegExp)return o.source===e.source&&o.flags===e.flags;if(o.valueOf!==Object.prototype.valueOf)return o.valueOf()===e.valueOf();if(a=Object.keys(o),r=a.length,r!==Object.keys(e).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,a[n]))return!1;for(n=r;n--!==0;){var i=a[n];if(!or(o[i],e[i]))return!1}return!0}return o!==o&&e!==e}function or(o,e){try{return as(o,e)}catch{return!1}}function cn(o,e){return!or(o,e)}var is=g(Y(),1);var rr=class{constructor(){this.queue=[]}add(e,r=!1){r&&(this.queue=this.queue.filter(n=>n.type!==e.type)),this.queue.push(e)}consume(e){let r=this.queue.find(n=>n.type===e);return r&&(this.queue=this.queue.filter(n=>n!==r)),r}};var No=g(Y(),1);var Ac=g(Y(),1);function Rc(o,e){let r=()=>JSON.parse(JSON.stringify(o));return(0,Ac.property)({type:Object,converter:{fromAttribute:n=>{if(n==null)return r();try{return JSON.parse(n)}catch{return r()}},toAttribute:n=>JSON.stringify(n)},hasChanged:cn,...e??{}})}var nr=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,n)=>{this.resolvePromise=r,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let n=[...this.callbacks];this.callbacks=[];let a=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,i=(r=this.resolvePromise)!==null&&r!==void 0?r:()=>null;this.clearPromise();for(let l of n)try{await l()}catch(s){a(s);return}i(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Pc=g(_(),1);var ar=window,cs=ar.ShadowRoot&&(ar.ShadyCSS===void 0||ar.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,$g=Symbol();var Lc=(o,e)=>{cs?o.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):e.forEach(r=>{let n=document.createElement("style"),a=ar.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=r.cssText,o.appendChild(n)})};var ir=class extends Pc.LitElement{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([a,i])=>e.registry.define(a,i)));let r={...e.shadowRootOptions,customElements:e.registry},n=this.renderOptions.creationScope=this.attachShadow(r);return Lc(n,e.elementStyles),n}};var cr=function(o,e,r,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,r,n);else for(var s=o.length-1;s>=0;s--)(l=o[s])&&(i=(a<3?l(i):a>3?l(e,r,i):l(e,r))||i);return a>3&&i&&Object.defineProperty(e,r,i),i},Bc,Ic=Symbol("constructorPrototype"),$c=Symbol("constructorName"),Tc=Symbol("exportpartsDebouncer"),kc=Symbol("dynamicDependenciesLoaded"),he=class extends ir{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Bc]=new nr(5),this[$c]=this.constructor.name,this[Ic]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[$c]&&Object.setPrototypeOf(this,this[Ic])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(r){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",r)}let e=this.constructor;e[kc]||(e[kc]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate()})}contentAvailableCallback(e){}applyCustomStylesheet(e){var r,n,a;if(((n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(i=>i.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((a=this.customStylesheet)!==null&&a!==void 0?a:"")}catch(i){console.error(i,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let i=document.createElement("style");i.classList.add("ft-lit-element--custom-stylesheet"),i.innerHTML=this.customStylesheet,this.shadowRoot.append(i)}}scheduleExportpartsUpdate(){var e,r,n;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(n=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&n!==void 0&&n)&&this[Tc].run(()=>{var a,i;!((a=this.exportpartsPrefix)===null||a===void 0)&&a.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((i=this.exportpartsPrefixes)===null||i===void 0?void 0:i.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(e){var r,n,a,i,l,s;let f=m=>m!=null&&m.trim().length>0,p=e.filter(f).map(m=>m.trim());if(p.length===0){this.removeAttribute("exportparts");return}let h=new Set;for(let m of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let x=(i=(a=m.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&i!==void 0?i:[],b=(s=(l=m.getAttribute("exportparts"))===null||l===void 0?void 0:l.split(",").map(S=>S.split(":")[1]))!==null&&s!==void 0?s:[];new Array(...x,...b).filter(f).map(S=>S.trim()).forEach(S=>h.add(S))}if(h.size===0){this.removeAttribute("exportparts");return}let y=[...h.values()].flatMap(m=>p.map(x=>`${m}:${x}--${m}`));this.setAttribute("exportparts",[...this.part,...y].join(", "))}};Bc=Tc;cr([(0,No.property)()],he.prototype,"exportpartsPrefix",void 0);cr([Rc([])],he.prototype,"exportpartsPrefixes",void 0);cr([(0,No.property)()],he.prototype,"customStylesheet",void 0);cr([(0,No.state)()],he.prototype,"useAdoptedStyleSheets",void 0);function Ao(o){var e;return(e=o?.isFtReduxStore)!==null&&e!==void 0?e:!1}var _c,Wc,Dc,lr=Symbol("internalReduxEventsUnsubscribers"),ye=Symbol("internalStoresUnsubscribers"),Be=Symbol("internalStores"),Ro=class extends he{constructor(){super(...arguments),this[_c]=new Map,this[Wc]=new Map,this[Dc]=[]}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(r=>e.has(r))&&this.updateFromStores()}getUnnamedStore(){if(this[Be].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Be].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[Be].get(e)}addStore(e,r){var n;r=(n=r??(Ao(e)?e.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(r),this.setupStore(r,e)}removeStore(e){let r=typeof e=="string"?e:e.name;this.unsubscribeFromStore(r),this[Be].delete(r)}setupStore(e,r){this[Be].set(e,r),this.subscribeToStore(e,r),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Be].forEach((e,r)=>this.subscribeToStore(r,e)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((e,r)=>{let n=this.constructor.getPropertyOptions(r);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:r)){let a=this.getStore(e.store);a&&(e.store?this[ye].has(e.store):this[ye].size>0)&&(this[r]=e.selector(a.getState(),this))}})}subscribeToStore(e,r){var n;this[ye].set(e,r.subscribe(()=>this.updateFromStores())),Ao(r)&&r.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((a,i)=>{if(typeof this[i]=="function"&&(!a.store||r.name===a.store)){let l=s=>this[i](s);r.addEventListener(a.eventName,l),this[lr].push(()=>r.removeEventListener(a.eventName,l))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[ye].forEach((e,r)=>this.unsubscribeFromStore(r)),this[lr].forEach(e=>e()),this[lr]=[]}unsubscribeFromStore(e){this[ye].has(e)&&this[ye].get(e)(),this[ye].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};_c=ye,Wc=Be,Dc=lr;Ro.reduxProperties=new Map;Ro.reduxReactiveProperties=new Set;Ro.reduxEventListeners=new Map;function $t(o){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];if(0)var a,i;throw Error("[Immer] minified error nr: "+o+(r.length?" "+r.map(function(l){return"'"+l+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function te(o){return!!o&&!!o[H]}function Dt(o){var e;return!!o&&(function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===ys}(o)||Array.isArray(o)||!!o[jc]||!!(!((e=o.constructor)===null||e===void 0)&&e[jc])||mn(o)||gn(o))}function Te(o,e,r){r===void 0&&(r=!1),no(o)===0?(r?Object.keys:ro)(o).forEach(function(n){r&&typeof n=="symbol"||e(n,o[n],o)}):o.forEach(function(n,a){return e(a,n,o)})}function no(o){var e=o[H];return e?e.i>3?e.i-4:e.i:Array.isArray(o)?1:mn(o)?2:gn(o)?3:0}function oo(o,e){return no(o)===2?o.has(e):Object.prototype.hasOwnProperty.call(o,e)}function ls(o,e){return no(o)===2?o.get(e):o[e]}function Vc(o,e,r){var n=no(o);n===2?o.set(e,r):n===3?o.add(r):o[e]=r}function Kc(o,e){return o===e?o!==0||1/o==1/e:o!=o&&e!=e}function mn(o){return us&&o instanceof Map}function gn(o){return hs&&o instanceof Set}function me(o){return o.o||o.t}function bn(o){if(Array.isArray(o))return Array.prototype.slice.call(o);var e=Yc(o);delete e[H];for(var r=ro(e),n=0;n<r.length;n++){var a=r[n],i=e[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(e[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:o[a]})}return Object.create(Object.getPrototypeOf(o),e)}function xn(o,e){return e===void 0&&(e=!1),vn(o)||te(o)||!Dt(o)||(no(o)>1&&(o.set=o.add=o.clear=o.delete=ss),Object.freeze(o),e&&Te(o,function(r,n){return xn(n,!0)},!0)),o}function ss(){$t(2)}function vn(o){return o==null||typeof o!="object"||Object.isFrozen(o)}function Gt(o){var e=yn[o];return e||$t(18,o),e}function ds(o,e){yn[o]||(yn[o]=e)}function fn(){return Po}function ln(o,e){e&&(Gt("Patches"),o.u=[],o.s=[],o.v=e)}function sr(o){un(o),o.p.forEach(ps),o.p=null}function un(o){o===Po&&(Po=o.l)}function zc(o){return Po={p:[],l:Po,h:o,m:!0,_:0}}function ps(o){var e=o[H];e.i===0||e.i===1?e.j():e.g=!0}function sn(o,e){e._=e.p.length;var r=e.p[0],n=o!==void 0&&o!==r;return e.h.O||Gt("ES5").S(e,o,n),n?(r[H].P&&(sr(e),$t(4)),Dt(o)&&(o=dr(e,o),e.l||pr(e,o)),e.u&&Gt("Patches").M(r[H].t,o,e.u,e.s)):o=dr(e,r,[]),sr(e),e.u&&e.v(e.u,e.s),o!==qc?o:void 0}function dr(o,e,r){if(vn(e))return e;var n=e[H];if(!n)return Te(e,function(s,f){return Mc(o,n,e,s,f,r)},!0),e;if(n.A!==o)return e;if(!n.P)return pr(o,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=bn(n.k):n.o,i=a,l=!1;n.i===3&&(i=new Set(a),a.clear(),l=!0),Te(i,function(s,f){return Mc(o,n,a,s,f,r,l)}),pr(o,a,!1),r&&o.u&&Gt("Patches").N(n,r,o.u,o.s)}return n.o}function Mc(o,e,r,n,a,i,l){if(te(a)){var s=dr(o,a,i&&e&&e.i!==3&&!oo(e.R,n)?i.concat(n):void 0);if(Vc(r,n,s),!te(s))return;o.m=!1}else l&&r.add(a);if(Dt(a)&&!vn(a)){if(!o.h.D&&o._<1)return;dr(o,a),e&&e.A.l||pr(o,a)}}function pr(o,e,r){r===void 0&&(r=!1),!o.l&&o.h.D&&o.m&&xn(e,r)}function dn(o,e){var r=o[H];return(r?me(r):o)[e]}function Hc(o,e){if(e in o)for(var r=Object.getPrototypeOf(o);r;){var n=Object.getOwnPropertyDescriptor(r,e);if(n)return n;r=Object.getPrototypeOf(r)}}function ge(o){o.P||(o.P=!0,o.l&&ge(o.l))}function pn(o){o.o||(o.o=bn(o.t))}function hn(o,e,r){var n=mn(e)?Gt("MapSet").F(e,r):gn(e)?Gt("MapSet").T(e,r):o.O?function(a,i){var l=Array.isArray(a),s={i:l?1:0,A:i?i.A:fn(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},f=s,p=Io;l&&(f=[s],p=Lo);var h=Proxy.revocable(f,p),y=h.revoke,m=h.proxy;return s.k=m,s.j=y,m}(e,r):Gt("ES5").J(e,r);return(r?r.A:fn()).p.push(n),n}function fs(o){return te(o)||$t(22,o),function e(r){if(!Dt(r))return r;var n,a=r[H],i=no(r);if(a){if(!a.P&&(a.i<4||!Gt("ES5").K(a)))return a.t;a.I=!0,n=Uc(r,i),a.I=!1}else n=Uc(r,i);return Te(n,function(l,s){a&&ls(a.t,l)===s||Vc(n,l,e(s))}),i===3?new Set(n):n}(o)}function Uc(o,e){switch(e){case 2:return new Map(o);case 3:return Array.from(o)}return bn(o)}function Zc(){function o(l,s){var f=i[l];return f?f.enumerable=s:i[l]=f={configurable:!0,enumerable:s,get:function(){var p=this[H];return Io.get(p,l)},set:function(p){var h=this[H];Io.set(h,l,p)}},f}function e(l){for(var s=l.length-1;s>=0;s--){var f=l[s][H];if(!f.P)switch(f.i){case 5:n(f)&&ge(f);break;case 4:r(f)&&ge(f)}}}function r(l){for(var s=l.t,f=l.k,p=ro(f),h=p.length-1;h>=0;h--){var y=p[h];if(y!==H){var m=s[y];if(m===void 0&&!oo(s,y))return!0;var x=f[y],b=x&&x[H];if(b?b.t!==m:!Kc(x,m))return!0}}var S=!!s[H];return p.length!==ro(s).length+(S?0:1)}function n(l){var s=l.k;if(s.length!==l.t.length)return!0;var f=Object.getOwnPropertyDescriptor(s,s.length-1);if(f&&!f.get)return!0;for(var p=0;p<s.length;p++)if(!s.hasOwnProperty(p))return!0;return!1}function a(l){l.g&&$t(3,JSON.stringify(me(l)))}var i={};ds("ES5",{J:function(l,s){var f=Array.isArray(l),p=function(y,m){if(y){for(var x=Array(m.length),b=0;b<m.length;b++)Object.defineProperty(x,""+b,o(b,!0));return x}var S=Yc(m);delete S[H];for(var R=ro(S),E=0;E<R.length;E++){var N=R[E];S[N]=o(N,y||!!S[N].enumerable)}return Object.create(Object.getPrototypeOf(m),S)}(f,l),h={i:f?5:4,A:s?s.A:fn(),P:!1,I:!1,R:{},l:s,t:l,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,H,{value:h,writable:!0}),p},S:function(l,s,f){f?te(s)&&s[H].A===l&&e(l.p):(l.u&&function p(h){if(h&&typeof h=="object"){var y=h[H];if(y){var m=y.t,x=y.k,b=y.R,S=y.i;if(S===4)Te(x,function(T){T!==H&&(m[T]!==void 0||oo(m,T)?b[T]||p(x[T]):(b[T]=!0,ge(y)))}),Te(m,function(T){x[T]!==void 0||oo(x,T)||(b[T]=!1,ge(y))});else if(S===5){if(n(y)&&(ge(y),b.length=!0),x.length<m.length)for(var R=x.length;R<m.length;R++)b[R]=!1;else for(var E=m.length;E<x.length;E++)b[E]=!0;for(var N=Math.min(x.length,m.length),I=0;I<N;I++)x.hasOwnProperty(I)||(b[I]=!0),b[I]===void 0&&p(x[I])}}}}(l.p[0]),e(l.p))},K:function(l){return l.i===4?r(l):n(l)}})}var Fc,Po,Sn=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",us=typeof Map<"u",hs=typeof Set<"u",Gc=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",qc=Sn?Symbol.for("immer-nothing"):((Fc={})["immer-nothing"]=!0,Fc),jc=Sn?Symbol.for("immer-draftable"):"__$immer_draftable",H=Sn?Symbol.for("immer-state"):"__$immer_state";var ys=""+Object.prototype.constructor,ro=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(o){return Object.getOwnPropertyNames(o).concat(Object.getOwnPropertySymbols(o))}:Object.getOwnPropertyNames,Yc=Object.getOwnPropertyDescriptors||function(o){var e={};return ro(o).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(o,r)}),e},yn={},Io={get:function(o,e){if(e===H)return o;var r=me(o);if(!oo(r,e))return function(a,i,l){var s,f=Hc(i,l);return f?"value"in f?f.value:(s=f.get)===null||s===void 0?void 0:s.call(a.k):void 0}(o,r,e);var n=r[e];return o.I||!Dt(n)?n:n===dn(o.t,e)?(pn(o),o.o[e]=hn(o.A.h,n,o)):n},has:function(o,e){return e in me(o)},ownKeys:function(o){return Reflect.ownKeys(me(o))},set:function(o,e,r){var n=Hc(me(o),e);if(n?.set)return n.set.call(o.k,r),!0;if(!o.P){var a=dn(me(o),e),i=a?.[H];if(i&&i.t===r)return o.o[e]=r,o.R[e]=!1,!0;if(Kc(r,a)&&(r!==void 0||oo(o.t,e)))return!0;pn(o),ge(o)}return o.o[e]===r&&(r!==void 0||e in o.o)||Number.isNaN(r)&&Number.isNaN(o.o[e])||(o.o[e]=r,o.R[e]=!0),!0},deleteProperty:function(o,e){return dn(o.t,e)!==void 0||e in o.t?(o.R[e]=!1,pn(o),ge(o)):delete o.R[e],o.o&&delete o.o[e],!0},getOwnPropertyDescriptor:function(o,e){var r=me(o),n=Reflect.getOwnPropertyDescriptor(r,e);return n&&{writable:!0,configurable:o.i!==1||e!=="length",enumerable:n.enumerable,value:r[e]}},defineProperty:function(){$t(11)},getPrototypeOf:function(o){return Object.getPrototypeOf(o.t)},setPrototypeOf:function(){$t(12)}},Lo={};Te(Io,function(o,e){Lo[o]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Lo.deleteProperty=function(o,e){return Lo.set.call(this,o,e,void 0)},Lo.set=function(o,e,r){return Io.set.call(this,o[0],e,r,o[0])};var ms=function(){function o(r){var n=this;this.O=Gc,this.D=!0,this.produce=function(a,i,l){if(typeof a=="function"&&typeof i!="function"){var s=i;i=a;var f=n;return function(S){var R=this;S===void 0&&(S=s);for(var E=arguments.length,N=Array(E>1?E-1:0),I=1;I<E;I++)N[I-1]=arguments[I];return f.produce(S,function(T){var W;return(W=i).call.apply(W,[R,T].concat(N))})}}var p;if(typeof i!="function"&&$t(6),l!==void 0&&typeof l!="function"&&$t(7),Dt(a)){var h=zc(n),y=hn(n,a,void 0),m=!0;try{p=i(y),m=!1}finally{m?sr(h):un(h)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(S){return ln(h,l),sn(S,h)},function(S){throw sr(h),S}):(ln(h,l),sn(p,h))}if(!a||typeof a!="object"){if((p=i(a))===void 0&&(p=a),p===qc&&(p=void 0),n.D&&xn(p,!0),l){var x=[],b=[];Gt("Patches").M(a,p,x,b),l(x,b)}return p}$t(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(p){for(var h=arguments.length,y=Array(h>1?h-1:0),m=1;m<h;m++)y[m-1]=arguments[m];return n.produceWithPatches(p,function(x){return a.apply(void 0,[x].concat(y))})};var l,s,f=n.produce(a,i,function(p,h){l=p,s=h});return typeof Promise<"u"&&f instanceof Promise?f.then(function(p){return[p,l,s]}):[f,l,s]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=o.prototype;return e.createDraft=function(r){Dt(r)||$t(8),te(r)&&(r=fs(r));var n=zc(this),a=hn(this,r,void 0);return a[H].C=!0,un(n),a},e.finishDraft=function(r,n){var a=r&&r[H],i=a.A;return ln(i,n),sn(void 0,i)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!Gc&&$t(20),this.O=r},e.applyPatches=function(r,n){var a;for(a=n.length-1;a>=0;a--){var i=n[a];if(i.path.length===0&&i.op==="replace"){r=i.value;break}}a>-1&&(n=n.slice(a+1));var l=Gt("Patches").$;return te(r)?l(r,n):this.produce(r,function(s){return l(s,n)})},o}(),At=new ms,gs=At.produce,Gg=At.produceWithPatches.bind(At),jg=At.setAutoFreeze.bind(At),Vg=At.setUseProxies.bind(At),Kg=At.applyPatches.bind(At),Zg=At.createDraft.bind(At),qg=At.finishDraft.bind(At),fr=gs;function be(o){"@babel/helpers - typeof";return be=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},be(o)}function Cn(o,e){if(be(o)!=="object"||o===null)return o;var r=o[Symbol.toPrimitive];if(r!==void 0){var n=r.call(o,e||"default");if(be(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(o)}function On(o){var e=Cn(o,"string");return be(e)==="symbol"?e:String(e)}function wn(o,e,r){return e=On(e),e in o?Object.defineProperty(o,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):o[e]=r,o}function Xc(o,e){var r=Object.keys(o);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(o);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(o,a).enumerable})),r.push.apply(r,n)}return r}function ur(o){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Xc(Object(r),!0).forEach(function(n){wn(o,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(r)):Xc(Object(r)).forEach(function(n){Object.defineProperty(o,n,Object.getOwnPropertyDescriptor(r,n))})}return o}function lt(o){return"Minified Redux error #"+o+"; visit https://redux.js.org/Errors?code="+o+" for the full message or use the non-minified dev environment for full errors. "}var Jc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),En=function(){return Math.random().toString(36).substring(7).split("").join(".")},hr={INIT:"@@redux/INIT"+En(),REPLACE:"@@redux/REPLACE"+En(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+En()}};function bs(o){if(typeof o!="object"||o===null)return!1;for(var e=o;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(o)===e}function Nn(o,e,r){var n;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(lt(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(lt(1));return r(Nn)(o,e)}if(typeof o!="function")throw new Error(lt(2));var a=o,i=e,l=[],s=l,f=!1;function p(){s===l&&(s=l.slice())}function h(){if(f)throw new Error(lt(3));return i}function y(S){if(typeof S!="function")throw new Error(lt(4));if(f)throw new Error(lt(5));var R=!0;return p(),s.push(S),function(){if(R){if(f)throw new Error(lt(6));R=!1,p();var N=s.indexOf(S);s.splice(N,1),l=null}}}function m(S){if(!bs(S))throw new Error(lt(7));if(typeof S.type>"u")throw new Error(lt(8));if(f)throw new Error(lt(9));try{f=!0,i=a(i,S)}finally{f=!1}for(var R=l=s,E=0;E<R.length;E++){var N=R[E];N()}return S}function x(S){if(typeof S!="function")throw new Error(lt(10));a=S,m({type:hr.REPLACE})}function b(){var S,R=y;return S={subscribe:function(N){if(typeof N!="object"||N===null)throw new Error(lt(11));function I(){N.next&&N.next(h())}I();var T=R(I);return{unsubscribe:T}}},S[Jc]=function(){return this},S}return m({type:hr.INIT}),n={dispatch:m,subscribe:y,getState:h,replaceReducer:x},n[Jc]=b,n}function xs(o){Object.keys(o).forEach(function(e){var r=o[e],n=r(void 0,{type:hr.INIT});if(typeof n>"u")throw new Error(lt(12));if(typeof r(void 0,{type:hr.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(lt(13))})}function Qc(o){for(var e=Object.keys(o),r={},n=0;n<e.length;n++){var a=e[n];typeof o[a]=="function"&&(r[a]=o[a])}var i=Object.keys(r),l,s;try{xs(r)}catch(f){s=f}return function(p,h){if(p===void 0&&(p={}),s)throw s;if(0)var y;for(var m=!1,x={},b=0;b<i.length;b++){var S=i[b],R=r[S],E=p[S],N=R(E,h);if(typeof N>"u"){var I=h&&h.type;throw new Error(lt(14))}x[S]=N,m=m||N!==E}return m=m||i.length!==Object.keys(p).length,m?x:p}}function ao(){for(var o=arguments.length,e=new Array(o),r=0;r<o;r++)e[r]=arguments[r];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function tl(){for(var o=arguments.length,e=new Array(o),r=0;r<o;r++)e[r]=arguments[r];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(lt(15))},l={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},s=e.map(function(f){return f(l)});return i=ao.apply(void 0,s)(a.dispatch),ur(ur({},a),{},{dispatch:i})}}}function el(o){var e=function(n){var a=n.dispatch,i=n.getState;return function(l){return function(s){return typeof s=="function"?s(a,i,o):l(s)}}};return e}var ol=el();ol.withExtraArgument=el;var An=ol;var cl=function(){var o=function(e,r){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},o(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");o(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),vs=function(o,e){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,l;return l={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function s(p){return function(h){return f([p,h])}}function f(p){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,a&&(i=p[0]&2?a.return:p[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,p[1])).done)return i;switch(a=0,i&&(p=[p[0]&2,i.value]),p[0]){case 0:case 1:i=p;break;case 4:return r.label++,{value:p[1],done:!1};case 5:r.label++,a=p[1],p=[0];continue;case 7:p=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(p[0]===6||p[0]===2)){r=0;continue}if(p[0]===3&&(!i||p[1]>i[0]&&p[1]<i[3])){r.label=p[1];break}if(p[0]===6&&r.label<i[1]){r.label=i[1],i=p;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(p);break}i[2]&&r.ops.pop(),r.trys.pop();continue}p=e.call(o,r)}catch(h){p=[6,h],a=0}finally{n=i=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},io=function(o,e){for(var r=0,n=e.length,a=o.length;r<n;r++,a++)o[a]=e[r];return o},Ss=Object.defineProperty,Cs=Object.defineProperties,Os=Object.getOwnPropertyDescriptors,rl=Object.getOwnPropertySymbols,ws=Object.prototype.hasOwnProperty,Es=Object.prototype.propertyIsEnumerable,nl=function(o,e,r){return e in o?Ss(o,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[e]=r},xe=function(o,e){for(var r in e||(e={}))ws.call(e,r)&&nl(o,r,e[r]);if(rl)for(var n=0,a=rl(e);n<a.length;n++){var r=a[n];Es.call(e,r)&&nl(o,r,e[r])}return o},Rn=function(o,e){return Cs(o,Os(e))},Ns=function(o,e,r){return new Promise(function(n,a){var i=function(f){try{s(r.next(f))}catch(p){a(p)}},l=function(f){try{s(r.throw(f))}catch(p){a(p)}},s=function(f){return f.done?n(f.value):Promise.resolve(f.value).then(i,l)};s((r=r.apply(o,e)).next())})};var As=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ao:ao.apply(null,arguments)},ub=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(o){return o}};function Rs(o){if(typeof o!="object"||o===null)return!1;var e=Object.getPrototypeOf(o);if(e===null)return!0;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return e===r}var Ls=function(o){cl(e,o);function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var a=o.apply(this,r)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return o.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,io([void 0],r[0].concat(this)))):new(e.bind.apply(e,io([void 0],r.concat(this))))},e}(Array),Ps=function(o){cl(e,o);function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var a=o.apply(this,r)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return o.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,io([void 0],r[0].concat(this)))):new(e.bind.apply(e,io([void 0],r.concat(this))))},e}(Array);function In(o){return Dt(o)?fr(o,function(){}):o}function Is(o){return typeof o=="boolean"}function $s(){return function(e){return ks(e)}}function ks(o){o===void 0&&(o={});var e=o.thunk,r=e===void 0?!0:e,n=o.immutableCheck,a=n===void 0?!0:n,i=o.serializableCheck,l=i===void 0?!0:i,s=new Ls;if(r&&(Is(r)?s.push(An):s.push(An.withExtraArgument(r.extraArgument))),0){if(a)var f;if(l)var p}return s}var Ln=!0;function ll(o){var e=$s(),r=o||{},n=r.reducer,a=n===void 0?void 0:n,i=r.middleware,l=i===void 0?e():i,s=r.devTools,f=s===void 0?!0:s,p=r.preloadedState,h=p===void 0?void 0:p,y=r.enhancers,m=y===void 0?void 0:y,x;if(typeof a=="function")x=a;else if(Rs(a))x=Qc(a);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var b=l;if(typeof b=="function"&&(b=b(e),!Ln&&!Array.isArray(b)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Ln&&b.some(function(T){return typeof T!="function"}))throw new Error("each middleware provided to configureStore must be a function");var S=tl.apply(void 0,b),R=ao;f&&(R=As(xe({trace:!Ln},typeof f=="object"&&f)));var E=new Ps(S),N=E;Array.isArray(m)?N=io([S],m):typeof m=="function"&&(N=m(E));var I=R.apply(void 0,N);return Nn(x,h,I)}function ve(o,e){function r(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(e){var i=e.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return xe(xe({type:o,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:o,payload:n[0]}}return r.toString=function(){return""+o},r.type=o,r.match=function(n){return n.type===o},r}function sl(o){var e={},r=[],n,a={addCase:function(i,l){var s=typeof i=="string"?i:i.type;if(s in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[s]=l,a},addMatcher:function(i,l){return r.push({matcher:i,reducer:l}),a},addDefaultCase:function(i){return n=i,a}};return o(a),[e,r,n]}function Bs(o){return typeof o=="function"}function Ts(o,e,r,n){r===void 0&&(r=[]);var a=typeof e=="function"?sl(e):[e,r,n],i=a[0],l=a[1],s=a[2],f;if(Bs(o))f=function(){return In(o())};else{var p=In(o);f=function(){return p}}function h(y,m){y===void 0&&(y=f());var x=io([i[m.type]],l.filter(function(b){var S=b.matcher;return S(m)}).map(function(b){var S=b.reducer;return S}));return x.filter(function(b){return!!b}).length===0&&(x=[s]),x.reduce(function(b,S){if(S)if(te(b)){var R=b,E=S(R,m);return E===void 0?b:E}else{if(Dt(b))return fr(b,function(N){return S(N,m)});var E=S(b,m);if(E===void 0){if(b===null)return b;throw Error("A case reducer on a non-draftable value must not return undefined")}return E}return b},y)}return h.getInitialState=f,h}function _s(o,e){return o+"/"+e}function dl(o){var e=o.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof o.initialState=="function"?o.initialState:In(o.initialState),n=o.reducers||{},a=Object.keys(n),i={},l={},s={};a.forEach(function(h){var y=n[h],m=_s(e,h),x,b;"reducer"in y?(x=y.reducer,b=y.prepare):x=y,i[h]=x,l[m]=x,s[h]=b?ve(m,b):ve(m)});function f(){var h=typeof o.extraReducers=="function"?sl(o.extraReducers):[o.extraReducers],y=h[0],m=y===void 0?{}:y,x=h[1],b=x===void 0?[]:x,S=h[2],R=S===void 0?void 0:S,E=xe(xe({},m),l);return Ts(r,function(N){for(var I in E)N.addCase(I,E[I]);for(var T=0,W=b;T<W.length;T++){var Rt=W[T];N.addMatcher(Rt.matcher,Rt.reducer)}R&&N.addDefaultCase(R)})}var p;return{name:e,reducer:function(h,y){return p||(p=f()),p(h,y)},actions:s,caseReducers:i,getInitialState:function(){return p||(p=f()),p.getInitialState()}}}var Ws="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Ds=function(o){o===void 0&&(o=21);for(var e="",r=o;r--;)e+=Ws[Math.random()*64|0];return e},zs=["name","message","stack","code"],Pn=function(){function o(e,r){this.payload=e,this.meta=r}return o}(),al=function(){function o(e,r){this.payload=e,this.meta=r}return o}(),Ms=function(o){if(typeof o=="object"&&o!==null){for(var e={},r=0,n=zs;r<n.length;r++){var a=n[r];typeof o[a]=="string"&&(e[a]=o[a])}return e}return{message:String(o)}},gb=function(){function o(e,r,n){var a=ve(e+"/fulfilled",function(h,y,m,x){return{payload:h,meta:Rn(xe({},x||{}),{arg:m,requestId:y,requestStatus:"fulfilled"})}}),i=ve(e+"/pending",function(h,y,m){return{payload:void 0,meta:Rn(xe({},m||{}),{arg:y,requestId:h,requestStatus:"pending"})}}),l=ve(e+"/rejected",function(h,y,m,x,b){return{payload:x,error:(n&&n.serializeError||Ms)(h||"Rejected"),meta:Rn(xe({},b||{}),{arg:m,requestId:y,rejectedWithValue:!!x,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),s=!1,f=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function p(h){return function(y,m,x){var b=n?.idGenerator?n.idGenerator(h):Ds(),S=new f,R,E=!1;function N(T){R=T,S.abort()}var I=function(){return Ns(this,null,function(){var T,W,Rt,oe,Lr,re,bt;return vs(this,function(Lt){switch(Lt.label){case 0:return Lt.trys.push([0,4,,5]),oe=(T=n?.condition)==null?void 0:T.call(n,h,{getState:m,extra:x}),Us(oe)?[4,oe]:[3,2];case 1:oe=Lt.sent(),Lt.label=2;case 2:if(oe===!1||S.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return E=!0,Lr=new Promise(function(xt,Se){return S.signal.addEventListener("abort",function(){return Se({name:"AbortError",message:R||"Aborted"})})}),y(i(b,h,(W=n?.getPendingMeta)==null?void 0:W.call(n,{requestId:b,arg:h},{getState:m,extra:x}))),[4,Promise.race([Lr,Promise.resolve(r(h,{dispatch:y,getState:m,extra:x,requestId:b,signal:S.signal,abort:N,rejectWithValue:function(xt,Se){return new Pn(xt,Se)},fulfillWithValue:function(xt,Se){return new al(xt,Se)}})).then(function(xt){if(xt instanceof Pn)throw xt;return xt instanceof al?a(xt.payload,b,h,xt.meta):a(xt,b,h)})])];case 3:return Rt=Lt.sent(),[3,5];case 4:return re=Lt.sent(),Rt=re instanceof Pn?l(null,b,h,re.payload,re.meta):l(re,b,h),[3,5];case 5:return bt=n&&!n.dispatchConditionRejection&&l.match(Rt)&&Rt.meta.condition,bt||y(Rt),[2,Rt]}})})}();return Object.assign(I,{abort:N,requestId:b,arg:h,unwrap:function(){return I.then(Hs)}})}}return Object.assign(p,{pending:i,rejected:l,fulfilled:a,typePrefix:e})}return o.withTypes=function(){return o},o}();function Hs(o){if(o.meta&&o.meta.rejectedWithValue)throw o.payload;if(o.error)throw o.error;return o.payload}function Us(o){return o!==null&&typeof o=="object"&&typeof o.then=="function"}var pl="listener",fl="completed",ul="cancelled",bb="task-"+ul,xb="task-"+fl,vb=pl+"-"+ul,Sb=pl+"-"+fl;var $n="listenerMiddleware";var Cb=ve($n+"/add"),Ob=ve($n+"/removeAll"),wb=ve($n+"/remove");var il,Eb=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(o){return(il||(il=Promise.resolve())).then(o).catch(function(e){return setTimeout(function(){throw e},0)})},Fs=function(o){return function(e){setTimeout(e,o)}},Nb=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Fs(10);Zc();function Gs(o,e){return class extends o{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,n,a){this.eventBus.addEventListener(r,n,a)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,n,a){this.eventBus.removeEventListener(r,n,a)}}}var yr=class extends Gs(Object){};window.ftReduxStores||(window.ftReduxStores={});var hl=class o extends yr{static get(e){var r;let n=typeof e=="string"?e:e.name,a=typeof e=="string"?void 0:e,i=window.ftReduxStores[n];if(Ao(i))return i;if(a==null)return;let l=dl({...a,reducers:(r=a.reducers)!==null&&r!==void 0?r:{}}),s=ll({reducer:(f,p)=>p.type==="CLEAR_FT_REDUX_STORE"?l.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...f,...p.overwrites}:l.reducer(f,p)});return window.ftReduxStores[a.name]=new o(l,s)}constructor(e,r){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new rr,this.actions=new Proxy(this.reduxSlice.actions,{get:(n,a,i)=>{let l=a,s=n[l];return s?(...f)=>{let p=s(...f);return this.reduxStore.dispatch(p),p}:f=>{this.setState({[l]:f})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var xr=g(L());var mr=class extends fe{async listMySearches(){let e=P.getState().session;return e?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var gr=class extends fe{async listMyBookmarks(){let e=P.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var Vs="ft-user-assets",br=xr.FtReduxStore.get({name:Vs,initialState:{savedSearches:void 0,bookmarks:void 0}}),kn=class{constructor(){this.currentSession=P.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new gr,this.savedSearchesService=new mr,P.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=P.getState();(0,xr.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),br.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),br.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();br.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let r=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;br.actions.bookmarks(r)}}},nx=new kn;var Bn=class{addCommand(e,r=!1){P.commands.add(e,r)}consumeCommand(e){return P.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Bn;var yl=g(L()),Tn=class{highlightHtml(e,r,n){(0,yl.highlightHtml)(e,r,n)}};window.FluidTopicsHighlightHtmlService=new Tn;var ml=g(L());var _n=class{isDate(e){var r,n,a,i;return(i=(a=((n=(r=P.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(s=>s.key===e))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1}format(e,r){var n,a,i;return ml.DateFormatter.format(e,(n=r?.locale)!==null&&n!==void 0?n:P.getState().uiLocale,(a=r?.longFormat)!==null&&a!==void 0?a:!1,(i=r?.withTime)!==null&&i!==void 0?i:!1)}};window.FluidTopicsDateService=new _n;var Ks=g(L());(0,gl.customElement)("ft-app-context")(V);var bl=g(Y()),Zs=function(o,e,r,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,r,n);else for(var s=o.length-1;s>=0;s--)(l=o[s])&&(i=(a<3?l(i):a>3?l(e,r,i):l(e,r))||i);return a>3&&i&&Object.defineProperty(e,r,i),i},Wn=Symbol("i18nAttributes"),Dn=Symbol("i18nListAttributes"),vr=Symbol("i18nProperties"),$o=Symbol("i18nUnsubs");function xl(o){var e;class r extends o{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?Ec:ke}i18n(a,i,...l){var s;if(typeof a=="string")return this.i18nService.resolveMessage(a,i,...l);let f=(s=a.args)!==null&&s!==void 0?s:a.argsProvider?a.argsProvider(this):[];return this.i18nService.resolveMessage(a.context,a.key,...f)}onI18nUpdate(a){var i,l,s;(i=this[Wn])===null||i===void 0||i.forEach((f,p)=>{let h=this.getI18nAttributeValue(p);h&&(this[p]=this.getI18nAttributeMessage(h,f,a))}),(l=this[Dn])===null||l===void 0||l.forEach((f,p)=>{let h=this.getI18nListAttributeValues(p);this[p]=h?.map(y=>this.getI18nAttributeMessage(y,f,a))}),(s=this[vr])===null||s===void 0||s.forEach((f,p)=>{f.context.toLowerCase()===a.toLowerCase()&&(this[p]=this.i18n(f))}),setTimeout(()=>this.requestUpdate(),0)}buildI18nAttributeMessage(a,i){return{...a,message:this.i18n({context:a.context,key:a.key,...i})}}getI18nAttributeMessage(a,i,l){var s;let f=!l||((s=a.context)===null||s===void 0?void 0:s.toLowerCase())===l.toLowerCase();return a.context&&a.key&&f?this.buildI18nAttributeMessage(a,i):a}update(a){var i,l,s;super.update(a),(i=this[Wn])===null||i===void 0||i.forEach((f,p)=>{let h=this.getI18nAttributeValue(p);h?.context&&h.key&&(a.has(p)||f.argsProvider!=null)&&(this.addI18nContextIfNeeded(h,a,p),this[p]=this.getI18nAttributeMessage(h,f))}),(l=this[Dn])===null||l===void 0||l.forEach((f,p)=>{let h=this.getI18nListAttributeValues(p);(a.has(p)||f.argsProvider!=null)&&(this[p]=h?.map(y=>(this.addI18nContextIfNeeded(y,a,p),this.getI18nAttributeMessage(y,f))))}),(s=this[vr])===null||s===void 0||s.forEach((f,p)=>{f.argsProvider!=null&&(this[p]=this.i18n(f))})}getI18nAttributeValue(a){return this[a]}getI18nListAttributeValues(a){return this[a]}addI18nContextIfNeeded(a,i,l){a.context&&a.key&&i.has(l)&&this.addI18nContext(a.context)}connectedCallback(){var a,i,l,s,f,p;super.connectedCallback(),new Set([...(i=(a=this[vr])===null||a===void 0?void 0:a.values())!==null&&i!==void 0?i:[],...[...(s=(l=this[Wn])===null||l===void 0?void 0:l.keys())!==null&&s!==void 0?s:[]].map(h=>this.getI18nAttributeValue(h)),...[...(p=(f=this[Dn])===null||f===void 0?void 0:f.keys())!==null&&p!==void 0?p:[]].flatMap(h=>this.getI18nListAttributeValues(h))].map(h=>h?.context)).forEach(h=>h&&this.addI18nMessages(h))}addI18nMessages(a,i){a=a.toLowerCase(),this[$o].has(a)||this[$o].set(a,this.i18nService.subscribe(a,()=>this.onI18nUpdate(a))),this.i18nService.prepareContext(a,i??{}),this.onI18nUpdate(a)}addI18nContext(a,i){this.addI18nMessages(typeof a=="string"?a:a.name,i)}disconnectedCallback(){super.disconnectedCallback(),this[$o].forEach(a=>a()),this[$o].clear()}}return e=$o,Zs([(0,bl.property)({type:Boolean})],r.prototype,"useCustomMessageContexts",void 0),r}var Sr=class extends xl(Or.FtLitElement){},Cr=class extends xl(Or.FtLitElementRedux){};var ko=function(o,e,r,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,r,n);else for(var s=o.length-1;s>=0;s--)(l=o[s])&&(i=(a<3?l(i):a>3?l(e,r,i):l(e,r))||i);return a>3&&i&&Object.defineProperty(e,r,i),i},zt=class extends Cr{constructor(){super(),this.editorMode=!1,this.addStore(P)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":wr.nothing:wr.html`
1710
+ `}update(e){var r,n,a,i,l;super.update(e),e.has("baseUrl")&&(P.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&P.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("uiLocale")&&P.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&P.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&P.actions.noCustom(this.noCustom),e.has("editorMode")&&P.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&P.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&P.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(s=>ke.addContext(s)),e.has("openExternalDocumentInNewTab")&&P.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&P.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&P.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(P.actions.defaultLocales((r=this.localesConfiguration)===null||r===void 0?void 0:r.defaultLocales),P.actions.availableUiLocales((a=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&a!==void 0?a:[]),P.actions.searchInAllLanguagesAllowed((l=(i=this.localesConfiguration)===null||i===void 0?void 0:i.allLanguagesAllowed)!==null&&l!==void 0?l:!1)),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let e=await this.apiProvider().getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},e.idleTimeoutInMillis),e})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}};V.elementDefinitions={};V.styles=Oc;ct([(0,gt.property)()],V.prototype,"baseUrl",void 0);ct([(0,gt.property)()],V.prototype,"apiIntegrationIdentifier",void 0);ct([(0,gt.property)()],V.prototype,"uiLocale",void 0);ct([(0,Wt.jsonProperty)(null)],V.prototype,"availableUiLocales",void 0);ct([(0,Wt.jsonProperty)(null)],V.prototype,"metadataConfiguration",void 0);ct([(0,gt.property)({type:Boolean})],V.prototype,"editorMode",void 0);ct([(0,gt.property)({type:Boolean})],V.prototype,"noCustom",void 0);ct([(0,gt.property)({type:Boolean})],V.prototype,"openExternalDocumentInNewTab",void 0);ct([(0,gt.property)({converter:{fromAttribute(o){return o==="false"?!1:o==="true"||(o??!1)}}})],V.prototype,"noCustomComponent",void 0);ct([(0,gt.property)({type:Boolean})],V.prototype,"withManualResources",void 0);ct([(0,gt.property)({type:Boolean})],V.prototype,"navigatorOnline",void 0);ct([(0,gt.property)({type:Boolean})],V.prototype,"forcedOffline",void 0);ct([(0,gt.property)({type:Object})],V.prototype,"apiProvider",void 0);ct([(0,Wt.jsonProperty)([])],V.prototype,"messageContexts",void 0);ct([(0,Wt.jsonProperty)(void 0)],V.prototype,"session",void 0);ct([(0,gt.state)()],V.prototype,"localesConfiguration",void 0);var js=g(Y());function as(o,e){if(o===e)return!0;if(o&&e&&typeof o=="object"&&typeof e=="object"){if(o.constructor!==e.constructor)return!1;var r,n,a;if(Array.isArray(o)){if(r=o.length,r!=e.length)return!1;for(n=r;n--!==0;)if(!or(o[n],e[n]))return!1;return!0}if(o instanceof Map&&e instanceof Map){if(o.size!==e.size)return!1;for(n of o.entries())if(!e.has(n[0]))return!1;for(n of o.entries())if(!or(n[1],e.get(n[0])))return!1;return!0}if(o instanceof Set&&e instanceof Set){if(o.size!==e.size)return!1;for(n of o.entries())if(!e.has(n[0]))return!1;return!0}if(o.constructor===RegExp)return o.source===e.source&&o.flags===e.flags;if(o.valueOf!==Object.prototype.valueOf)return o.valueOf()===e.valueOf();if(a=Object.keys(o),r=a.length,r!==Object.keys(e).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,a[n]))return!1;for(n=r;n--!==0;){var i=a[n];if(!or(o[i],e[i]))return!1}return!0}return o!==o&&e!==e}function or(o,e){try{return as(o,e)}catch{return!1}}function cn(o,e){return!or(o,e)}var is=g(Y(),1);var rr=class{constructor(){this.queue=[]}add(e,r=!1){r&&(this.queue=this.queue.filter(n=>n.type!==e.type)),this.queue.push(e)}consume(e){let r=this.queue.find(n=>n.type===e);return r&&(this.queue=this.queue.filter(n=>n!==r)),r}};var No=g(Y(),1);var Ac=g(Y(),1);function Rc(o,e){let r=()=>JSON.parse(JSON.stringify(o));return(0,Ac.property)({type:Object,converter:{fromAttribute:n=>{if(n==null)return r();try{return JSON.parse(n)}catch{return r()}},toAttribute:n=>JSON.stringify(n)},hasChanged:cn,...e??{}})}var nr=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,n)=>{this.resolvePromise=r,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let n=[...this.callbacks];this.callbacks=[];let a=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,i=(r=this.resolvePromise)!==null&&r!==void 0?r:()=>null;this.clearPromise();for(let l of n)try{await l()}catch(s){a(s);return}i(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Pc=g(_(),1);var ar=window,cs=ar.ShadowRoot&&(ar.ShadyCSS===void 0||ar.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,$g=Symbol();var Lc=(o,e)=>{cs?o.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):e.forEach(r=>{let n=document.createElement("style"),a=ar.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=r.cssText,o.appendChild(n)})};var ir=class extends Pc.LitElement{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([a,i])=>e.registry.define(a,i)));let r={...e.shadowRootOptions,customElements:e.registry},n=this.renderOptions.creationScope=this.attachShadow(r);return Lc(n,e.elementStyles),n}};var cr=function(o,e,r,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,r,n);else for(var s=o.length-1;s>=0;s--)(l=o[s])&&(i=(a<3?l(i):a>3?l(e,r,i):l(e,r))||i);return a>3&&i&&Object.defineProperty(e,r,i),i},Bc,Ic=Symbol("constructorPrototype"),$c=Symbol("constructorName"),Tc=Symbol("exportpartsDebouncer"),kc=Symbol("dynamicDependenciesLoaded"),he=class extends ir{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Bc]=new nr(5),this[$c]=this.constructor.name,this[Ic]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[$c]&&Object.setPrototypeOf(this,this[Ic])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(r){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",r)}let e=this.constructor;e[kc]||(e[kc]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate()})}contentAvailableCallback(e){}applyCustomStylesheet(e){var r,n,a;if(((n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(i=>i.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((a=this.customStylesheet)!==null&&a!==void 0?a:"")}catch(i){console.error(i,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let i=document.createElement("style");i.classList.add("ft-lit-element--custom-stylesheet"),i.innerHTML=this.customStylesheet,this.shadowRoot.append(i)}}scheduleExportpartsUpdate(){var e,r,n;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(n=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&n!==void 0&&n)&&this[Tc].run(()=>{var a,i;!((a=this.exportpartsPrefix)===null||a===void 0)&&a.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((i=this.exportpartsPrefixes)===null||i===void 0?void 0:i.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(e){var r,n,a,i,l,s;let f=m=>m!=null&&m.trim().length>0,p=e.filter(f).map(m=>m.trim());if(p.length===0){this.removeAttribute("exportparts");return}let h=new Set;for(let m of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let x=(i=(a=m.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&i!==void 0?i:[],b=(s=(l=m.getAttribute("exportparts"))===null||l===void 0?void 0:l.split(",").map(S=>S.split(":")[1]))!==null&&s!==void 0?s:[];new Array(...x,...b).filter(f).map(S=>S.trim()).forEach(S=>h.add(S))}if(h.size===0){this.removeAttribute("exportparts");return}let y=[...h.values()].flatMap(m=>p.map(x=>`${m}:${x}--${m}`));this.setAttribute("exportparts",[...this.part,...y].join(", "))}};Bc=Tc;cr([(0,No.property)()],he.prototype,"exportpartsPrefix",void 0);cr([Rc([])],he.prototype,"exportpartsPrefixes",void 0);cr([(0,No.property)()],he.prototype,"customStylesheet",void 0);cr([(0,No.state)()],he.prototype,"useAdoptedStyleSheets",void 0);function Ao(o){var e;return(e=o?.isFtReduxStore)!==null&&e!==void 0?e:!1}var _c,Wc,Dc,lr=Symbol("internalReduxEventsUnsubscribers"),ye=Symbol("internalStoresUnsubscribers"),Be=Symbol("internalStores"),Ro=class extends he{constructor(){super(...arguments),this[_c]=new Map,this[Wc]=new Map,this[Dc]=[]}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(r=>e.has(r))&&this.updateFromStores()}getUnnamedStore(){if(this[Be].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Be].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[Be].get(e)}addStore(e,r){var n;r=(n=r??(Ao(e)?e.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(r),this.setupStore(r,e)}removeStore(e){let r=typeof e=="string"?e:e.name;this.unsubscribeFromStore(r),this[Be].delete(r)}setupStore(e,r){this[Be].set(e,r),this.subscribeToStore(e,r),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Be].forEach((e,r)=>this.subscribeToStore(r,e)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((e,r)=>{let n=this.constructor.getPropertyOptions(r);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:r)){let a=this.getStore(e.store);a&&(e.store?this[ye].has(e.store):this[ye].size>0)&&(this[r]=e.selector(a.getState(),this))}})}subscribeToStore(e,r){var n;this[ye].set(e,r.subscribe(()=>this.updateFromStores())),Ao(r)&&r.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((a,i)=>{if(typeof this[i]=="function"&&(!a.store||r.name===a.store)){let l=s=>this[i](s);r.addEventListener(a.eventName,l),this[lr].push(()=>r.removeEventListener(a.eventName,l))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[ye].forEach((e,r)=>this.unsubscribeFromStore(r)),this[lr].forEach(e=>e()),this[lr]=[]}unsubscribeFromStore(e){this[ye].has(e)&&this[ye].get(e)(),this[ye].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};_c=ye,Wc=Be,Dc=lr;Ro.reduxProperties=new Map;Ro.reduxReactiveProperties=new Set;Ro.reduxEventListeners=new Map;function $t(o){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];if(0)var a,i;throw Error("[Immer] minified error nr: "+o+(r.length?" "+r.map(function(l){return"'"+l+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function te(o){return!!o&&!!o[U]}function Dt(o){var e;return!!o&&(function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===ys}(o)||Array.isArray(o)||!!o[jc]||!!(!((e=o.constructor)===null||e===void 0)&&e[jc])||mn(o)||gn(o))}function Te(o,e,r){r===void 0&&(r=!1),no(o)===0?(r?Object.keys:ro)(o).forEach(function(n){r&&typeof n=="symbol"||e(n,o[n],o)}):o.forEach(function(n,a){return e(a,n,o)})}function no(o){var e=o[U];return e?e.i>3?e.i-4:e.i:Array.isArray(o)?1:mn(o)?2:gn(o)?3:0}function oo(o,e){return no(o)===2?o.has(e):Object.prototype.hasOwnProperty.call(o,e)}function ls(o,e){return no(o)===2?o.get(e):o[e]}function Vc(o,e,r){var n=no(o);n===2?o.set(e,r):n===3?o.add(r):o[e]=r}function Kc(o,e){return o===e?o!==0||1/o==1/e:o!=o&&e!=e}function mn(o){return us&&o instanceof Map}function gn(o){return hs&&o instanceof Set}function me(o){return o.o||o.t}function bn(o){if(Array.isArray(o))return Array.prototype.slice.call(o);var e=Yc(o);delete e[U];for(var r=ro(e),n=0;n<r.length;n++){var a=r[n],i=e[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(e[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:o[a]})}return Object.create(Object.getPrototypeOf(o),e)}function xn(o,e){return e===void 0&&(e=!1),vn(o)||te(o)||!Dt(o)||(no(o)>1&&(o.set=o.add=o.clear=o.delete=ss),Object.freeze(o),e&&Te(o,function(r,n){return xn(n,!0)},!0)),o}function ss(){$t(2)}function vn(o){return o==null||typeof o!="object"||Object.isFrozen(o)}function Gt(o){var e=yn[o];return e||$t(18,o),e}function ds(o,e){yn[o]||(yn[o]=e)}function fn(){return Po}function ln(o,e){e&&(Gt("Patches"),o.u=[],o.s=[],o.v=e)}function sr(o){un(o),o.p.forEach(ps),o.p=null}function un(o){o===Po&&(Po=o.l)}function zc(o){return Po={p:[],l:Po,h:o,m:!0,_:0}}function ps(o){var e=o[U];e.i===0||e.i===1?e.j():e.g=!0}function sn(o,e){e._=e.p.length;var r=e.p[0],n=o!==void 0&&o!==r;return e.h.O||Gt("ES5").S(e,o,n),n?(r[U].P&&(sr(e),$t(4)),Dt(o)&&(o=dr(e,o),e.l||pr(e,o)),e.u&&Gt("Patches").M(r[U].t,o,e.u,e.s)):o=dr(e,r,[]),sr(e),e.u&&e.v(e.u,e.s),o!==qc?o:void 0}function dr(o,e,r){if(vn(e))return e;var n=e[U];if(!n)return Te(e,function(s,f){return Mc(o,n,e,s,f,r)},!0),e;if(n.A!==o)return e;if(!n.P)return pr(o,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=bn(n.k):n.o,i=a,l=!1;n.i===3&&(i=new Set(a),a.clear(),l=!0),Te(i,function(s,f){return Mc(o,n,a,s,f,r,l)}),pr(o,a,!1),r&&o.u&&Gt("Patches").N(n,r,o.u,o.s)}return n.o}function Mc(o,e,r,n,a,i,l){if(te(a)){var s=dr(o,a,i&&e&&e.i!==3&&!oo(e.R,n)?i.concat(n):void 0);if(Vc(r,n,s),!te(s))return;o.m=!1}else l&&r.add(a);if(Dt(a)&&!vn(a)){if(!o.h.D&&o._<1)return;dr(o,a),e&&e.A.l||pr(o,a)}}function pr(o,e,r){r===void 0&&(r=!1),!o.l&&o.h.D&&o.m&&xn(e,r)}function dn(o,e){var r=o[U];return(r?me(r):o)[e]}function Hc(o,e){if(e in o)for(var r=Object.getPrototypeOf(o);r;){var n=Object.getOwnPropertyDescriptor(r,e);if(n)return n;r=Object.getPrototypeOf(r)}}function ge(o){o.P||(o.P=!0,o.l&&ge(o.l))}function pn(o){o.o||(o.o=bn(o.t))}function hn(o,e,r){var n=mn(e)?Gt("MapSet").F(e,r):gn(e)?Gt("MapSet").T(e,r):o.O?function(a,i){var l=Array.isArray(a),s={i:l?1:0,A:i?i.A:fn(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},f=s,p=Io;l&&(f=[s],p=Lo);var h=Proxy.revocable(f,p),y=h.revoke,m=h.proxy;return s.k=m,s.j=y,m}(e,r):Gt("ES5").J(e,r);return(r?r.A:fn()).p.push(n),n}function fs(o){return te(o)||$t(22,o),function e(r){if(!Dt(r))return r;var n,a=r[U],i=no(r);if(a){if(!a.P&&(a.i<4||!Gt("ES5").K(a)))return a.t;a.I=!0,n=Uc(r,i),a.I=!1}else n=Uc(r,i);return Te(n,function(l,s){a&&ls(a.t,l)===s||Vc(n,l,e(s))}),i===3?new Set(n):n}(o)}function Uc(o,e){switch(e){case 2:return new Map(o);case 3:return Array.from(o)}return bn(o)}function Zc(){function o(l,s){var f=i[l];return f?f.enumerable=s:i[l]=f={configurable:!0,enumerable:s,get:function(){var p=this[U];return Io.get(p,l)},set:function(p){var h=this[U];Io.set(h,l,p)}},f}function e(l){for(var s=l.length-1;s>=0;s--){var f=l[s][U];if(!f.P)switch(f.i){case 5:n(f)&&ge(f);break;case 4:r(f)&&ge(f)}}}function r(l){for(var s=l.t,f=l.k,p=ro(f),h=p.length-1;h>=0;h--){var y=p[h];if(y!==U){var m=s[y];if(m===void 0&&!oo(s,y))return!0;var x=f[y],b=x&&x[U];if(b?b.t!==m:!Kc(x,m))return!0}}var S=!!s[U];return p.length!==ro(s).length+(S?0:1)}function n(l){var s=l.k;if(s.length!==l.t.length)return!0;var f=Object.getOwnPropertyDescriptor(s,s.length-1);if(f&&!f.get)return!0;for(var p=0;p<s.length;p++)if(!s.hasOwnProperty(p))return!0;return!1}function a(l){l.g&&$t(3,JSON.stringify(me(l)))}var i={};ds("ES5",{J:function(l,s){var f=Array.isArray(l),p=function(y,m){if(y){for(var x=Array(m.length),b=0;b<m.length;b++)Object.defineProperty(x,""+b,o(b,!0));return x}var S=Yc(m);delete S[U];for(var R=ro(S),E=0;E<R.length;E++){var N=R[E];S[N]=o(N,y||!!S[N].enumerable)}return Object.create(Object.getPrototypeOf(m),S)}(f,l),h={i:f?5:4,A:s?s.A:fn(),P:!1,I:!1,R:{},l:s,t:l,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,U,{value:h,writable:!0}),p},S:function(l,s,f){f?te(s)&&s[U].A===l&&e(l.p):(l.u&&function p(h){if(h&&typeof h=="object"){var y=h[U];if(y){var m=y.t,x=y.k,b=y.R,S=y.i;if(S===4)Te(x,function(T){T!==U&&(m[T]!==void 0||oo(m,T)?b[T]||p(x[T]):(b[T]=!0,ge(y)))}),Te(m,function(T){x[T]!==void 0||oo(x,T)||(b[T]=!1,ge(y))});else if(S===5){if(n(y)&&(ge(y),b.length=!0),x.length<m.length)for(var R=x.length;R<m.length;R++)b[R]=!1;else for(var E=m.length;E<x.length;E++)b[E]=!0;for(var N=Math.min(x.length,m.length),I=0;I<N;I++)x.hasOwnProperty(I)||(b[I]=!0),b[I]===void 0&&p(x[I])}}}}(l.p[0]),e(l.p))},K:function(l){return l.i===4?r(l):n(l)}})}var Fc,Po,Sn=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",us=typeof Map<"u",hs=typeof Set<"u",Gc=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",qc=Sn?Symbol.for("immer-nothing"):((Fc={})["immer-nothing"]=!0,Fc),jc=Sn?Symbol.for("immer-draftable"):"__$immer_draftable",U=Sn?Symbol.for("immer-state"):"__$immer_state";var ys=""+Object.prototype.constructor,ro=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(o){return Object.getOwnPropertyNames(o).concat(Object.getOwnPropertySymbols(o))}:Object.getOwnPropertyNames,Yc=Object.getOwnPropertyDescriptors||function(o){var e={};return ro(o).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(o,r)}),e},yn={},Io={get:function(o,e){if(e===U)return o;var r=me(o);if(!oo(r,e))return function(a,i,l){var s,f=Hc(i,l);return f?"value"in f?f.value:(s=f.get)===null||s===void 0?void 0:s.call(a.k):void 0}(o,r,e);var n=r[e];return o.I||!Dt(n)?n:n===dn(o.t,e)?(pn(o),o.o[e]=hn(o.A.h,n,o)):n},has:function(o,e){return e in me(o)},ownKeys:function(o){return Reflect.ownKeys(me(o))},set:function(o,e,r){var n=Hc(me(o),e);if(n?.set)return n.set.call(o.k,r),!0;if(!o.P){var a=dn(me(o),e),i=a?.[U];if(i&&i.t===r)return o.o[e]=r,o.R[e]=!1,!0;if(Kc(r,a)&&(r!==void 0||oo(o.t,e)))return!0;pn(o),ge(o)}return o.o[e]===r&&(r!==void 0||e in o.o)||Number.isNaN(r)&&Number.isNaN(o.o[e])||(o.o[e]=r,o.R[e]=!0),!0},deleteProperty:function(o,e){return dn(o.t,e)!==void 0||e in o.t?(o.R[e]=!1,pn(o),ge(o)):delete o.R[e],o.o&&delete o.o[e],!0},getOwnPropertyDescriptor:function(o,e){var r=me(o),n=Reflect.getOwnPropertyDescriptor(r,e);return n&&{writable:!0,configurable:o.i!==1||e!=="length",enumerable:n.enumerable,value:r[e]}},defineProperty:function(){$t(11)},getPrototypeOf:function(o){return Object.getPrototypeOf(o.t)},setPrototypeOf:function(){$t(12)}},Lo={};Te(Io,function(o,e){Lo[o]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Lo.deleteProperty=function(o,e){return Lo.set.call(this,o,e,void 0)},Lo.set=function(o,e,r){return Io.set.call(this,o[0],e,r,o[0])};var ms=function(){function o(r){var n=this;this.O=Gc,this.D=!0,this.produce=function(a,i,l){if(typeof a=="function"&&typeof i!="function"){var s=i;i=a;var f=n;return function(S){var R=this;S===void 0&&(S=s);for(var E=arguments.length,N=Array(E>1?E-1:0),I=1;I<E;I++)N[I-1]=arguments[I];return f.produce(S,function(T){var W;return(W=i).call.apply(W,[R,T].concat(N))})}}var p;if(typeof i!="function"&&$t(6),l!==void 0&&typeof l!="function"&&$t(7),Dt(a)){var h=zc(n),y=hn(n,a,void 0),m=!0;try{p=i(y),m=!1}finally{m?sr(h):un(h)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(S){return ln(h,l),sn(S,h)},function(S){throw sr(h),S}):(ln(h,l),sn(p,h))}if(!a||typeof a!="object"){if((p=i(a))===void 0&&(p=a),p===qc&&(p=void 0),n.D&&xn(p,!0),l){var x=[],b=[];Gt("Patches").M(a,p,x,b),l(x,b)}return p}$t(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(p){for(var h=arguments.length,y=Array(h>1?h-1:0),m=1;m<h;m++)y[m-1]=arguments[m];return n.produceWithPatches(p,function(x){return a.apply(void 0,[x].concat(y))})};var l,s,f=n.produce(a,i,function(p,h){l=p,s=h});return typeof Promise<"u"&&f instanceof Promise?f.then(function(p){return[p,l,s]}):[f,l,s]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=o.prototype;return e.createDraft=function(r){Dt(r)||$t(8),te(r)&&(r=fs(r));var n=zc(this),a=hn(this,r,void 0);return a[U].C=!0,un(n),a},e.finishDraft=function(r,n){var a=r&&r[U],i=a.A;return ln(i,n),sn(void 0,i)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!Gc&&$t(20),this.O=r},e.applyPatches=function(r,n){var a;for(a=n.length-1;a>=0;a--){var i=n[a];if(i.path.length===0&&i.op==="replace"){r=i.value;break}}a>-1&&(n=n.slice(a+1));var l=Gt("Patches").$;return te(r)?l(r,n):this.produce(r,function(s){return l(s,n)})},o}(),At=new ms,gs=At.produce,Gg=At.produceWithPatches.bind(At),jg=At.setAutoFreeze.bind(At),Vg=At.setUseProxies.bind(At),Kg=At.applyPatches.bind(At),Zg=At.createDraft.bind(At),qg=At.finishDraft.bind(At),fr=gs;function be(o){"@babel/helpers - typeof";return be=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},be(o)}function Cn(o,e){if(be(o)!=="object"||o===null)return o;var r=o[Symbol.toPrimitive];if(r!==void 0){var n=r.call(o,e||"default");if(be(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(o)}function On(o){var e=Cn(o,"string");return be(e)==="symbol"?e:String(e)}function wn(o,e,r){return e=On(e),e in o?Object.defineProperty(o,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):o[e]=r,o}function Xc(o,e){var r=Object.keys(o);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(o);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(o,a).enumerable})),r.push.apply(r,n)}return r}function ur(o){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Xc(Object(r),!0).forEach(function(n){wn(o,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(r)):Xc(Object(r)).forEach(function(n){Object.defineProperty(o,n,Object.getOwnPropertyDescriptor(r,n))})}return o}function lt(o){return"Minified Redux error #"+o+"; visit https://redux.js.org/Errors?code="+o+" for the full message or use the non-minified dev environment for full errors. "}var Jc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),En=function(){return Math.random().toString(36).substring(7).split("").join(".")},hr={INIT:"@@redux/INIT"+En(),REPLACE:"@@redux/REPLACE"+En(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+En()}};function bs(o){if(typeof o!="object"||o===null)return!1;for(var e=o;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(o)===e}function Nn(o,e,r){var n;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(lt(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(lt(1));return r(Nn)(o,e)}if(typeof o!="function")throw new Error(lt(2));var a=o,i=e,l=[],s=l,f=!1;function p(){s===l&&(s=l.slice())}function h(){if(f)throw new Error(lt(3));return i}function y(S){if(typeof S!="function")throw new Error(lt(4));if(f)throw new Error(lt(5));var R=!0;return p(),s.push(S),function(){if(R){if(f)throw new Error(lt(6));R=!1,p();var N=s.indexOf(S);s.splice(N,1),l=null}}}function m(S){if(!bs(S))throw new Error(lt(7));if(typeof S.type>"u")throw new Error(lt(8));if(f)throw new Error(lt(9));try{f=!0,i=a(i,S)}finally{f=!1}for(var R=l=s,E=0;E<R.length;E++){var N=R[E];N()}return S}function x(S){if(typeof S!="function")throw new Error(lt(10));a=S,m({type:hr.REPLACE})}function b(){var S,R=y;return S={subscribe:function(N){if(typeof N!="object"||N===null)throw new Error(lt(11));function I(){N.next&&N.next(h())}I();var T=R(I);return{unsubscribe:T}}},S[Jc]=function(){return this},S}return m({type:hr.INIT}),n={dispatch:m,subscribe:y,getState:h,replaceReducer:x},n[Jc]=b,n}function xs(o){Object.keys(o).forEach(function(e){var r=o[e],n=r(void 0,{type:hr.INIT});if(typeof n>"u")throw new Error(lt(12));if(typeof r(void 0,{type:hr.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(lt(13))})}function Qc(o){for(var e=Object.keys(o),r={},n=0;n<e.length;n++){var a=e[n];typeof o[a]=="function"&&(r[a]=o[a])}var i=Object.keys(r),l,s;try{xs(r)}catch(f){s=f}return function(p,h){if(p===void 0&&(p={}),s)throw s;if(0)var y;for(var m=!1,x={},b=0;b<i.length;b++){var S=i[b],R=r[S],E=p[S],N=R(E,h);if(typeof N>"u"){var I=h&&h.type;throw new Error(lt(14))}x[S]=N,m=m||N!==E}return m=m||i.length!==Object.keys(p).length,m?x:p}}function ao(){for(var o=arguments.length,e=new Array(o),r=0;r<o;r++)e[r]=arguments[r];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function tl(){for(var o=arguments.length,e=new Array(o),r=0;r<o;r++)e[r]=arguments[r];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(lt(15))},l={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},s=e.map(function(f){return f(l)});return i=ao.apply(void 0,s)(a.dispatch),ur(ur({},a),{},{dispatch:i})}}}function el(o){var e=function(n){var a=n.dispatch,i=n.getState;return function(l){return function(s){return typeof s=="function"?s(a,i,o):l(s)}}};return e}var ol=el();ol.withExtraArgument=el;var An=ol;var cl=function(){var o=function(e,r){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},o(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");o(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),vs=function(o,e){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,l;return l={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function s(p){return function(h){return f([p,h])}}function f(p){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,a&&(i=p[0]&2?a.return:p[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,p[1])).done)return i;switch(a=0,i&&(p=[p[0]&2,i.value]),p[0]){case 0:case 1:i=p;break;case 4:return r.label++,{value:p[1],done:!1};case 5:r.label++,a=p[1],p=[0];continue;case 7:p=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(p[0]===6||p[0]===2)){r=0;continue}if(p[0]===3&&(!i||p[1]>i[0]&&p[1]<i[3])){r.label=p[1];break}if(p[0]===6&&r.label<i[1]){r.label=i[1],i=p;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(p);break}i[2]&&r.ops.pop(),r.trys.pop();continue}p=e.call(o,r)}catch(h){p=[6,h],a=0}finally{n=i=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},io=function(o,e){for(var r=0,n=e.length,a=o.length;r<n;r++,a++)o[a]=e[r];return o},Ss=Object.defineProperty,Cs=Object.defineProperties,Os=Object.getOwnPropertyDescriptors,rl=Object.getOwnPropertySymbols,ws=Object.prototype.hasOwnProperty,Es=Object.prototype.propertyIsEnumerable,nl=function(o,e,r){return e in o?Ss(o,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[e]=r},xe=function(o,e){for(var r in e||(e={}))ws.call(e,r)&&nl(o,r,e[r]);if(rl)for(var n=0,a=rl(e);n<a.length;n++){var r=a[n];Es.call(e,r)&&nl(o,r,e[r])}return o},Rn=function(o,e){return Cs(o,Os(e))},Ns=function(o,e,r){return new Promise(function(n,a){var i=function(f){try{s(r.next(f))}catch(p){a(p)}},l=function(f){try{s(r.throw(f))}catch(p){a(p)}},s=function(f){return f.done?n(f.value):Promise.resolve(f.value).then(i,l)};s((r=r.apply(o,e)).next())})};var As=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ao:ao.apply(null,arguments)},ub=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(o){return o}};function Rs(o){if(typeof o!="object"||o===null)return!1;var e=Object.getPrototypeOf(o);if(e===null)return!0;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return e===r}var Ls=function(o){cl(e,o);function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var a=o.apply(this,r)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return o.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,io([void 0],r[0].concat(this)))):new(e.bind.apply(e,io([void 0],r.concat(this))))},e}(Array),Ps=function(o){cl(e,o);function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var a=o.apply(this,r)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return o.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,io([void 0],r[0].concat(this)))):new(e.bind.apply(e,io([void 0],r.concat(this))))},e}(Array);function In(o){return Dt(o)?fr(o,function(){}):o}function Is(o){return typeof o=="boolean"}function $s(){return function(e){return ks(e)}}function ks(o){o===void 0&&(o={});var e=o.thunk,r=e===void 0?!0:e,n=o.immutableCheck,a=n===void 0?!0:n,i=o.serializableCheck,l=i===void 0?!0:i,s=new Ls;if(r&&(Is(r)?s.push(An):s.push(An.withExtraArgument(r.extraArgument))),0){if(a)var f;if(l)var p}return s}var Ln=!0;function ll(o){var e=$s(),r=o||{},n=r.reducer,a=n===void 0?void 0:n,i=r.middleware,l=i===void 0?e():i,s=r.devTools,f=s===void 0?!0:s,p=r.preloadedState,h=p===void 0?void 0:p,y=r.enhancers,m=y===void 0?void 0:y,x;if(typeof a=="function")x=a;else if(Rs(a))x=Qc(a);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var b=l;if(typeof b=="function"&&(b=b(e),!Ln&&!Array.isArray(b)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Ln&&b.some(function(T){return typeof T!="function"}))throw new Error("each middleware provided to configureStore must be a function");var S=tl.apply(void 0,b),R=ao;f&&(R=As(xe({trace:!Ln},typeof f=="object"&&f)));var E=new Ps(S),N=E;Array.isArray(m)?N=io([S],m):typeof m=="function"&&(N=m(E));var I=R.apply(void 0,N);return Nn(x,h,I)}function ve(o,e){function r(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(e){var i=e.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return xe(xe({type:o,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:o,payload:n[0]}}return r.toString=function(){return""+o},r.type=o,r.match=function(n){return n.type===o},r}function sl(o){var e={},r=[],n,a={addCase:function(i,l){var s=typeof i=="string"?i:i.type;if(s in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[s]=l,a},addMatcher:function(i,l){return r.push({matcher:i,reducer:l}),a},addDefaultCase:function(i){return n=i,a}};return o(a),[e,r,n]}function Bs(o){return typeof o=="function"}function Ts(o,e,r,n){r===void 0&&(r=[]);var a=typeof e=="function"?sl(e):[e,r,n],i=a[0],l=a[1],s=a[2],f;if(Bs(o))f=function(){return In(o())};else{var p=In(o);f=function(){return p}}function h(y,m){y===void 0&&(y=f());var x=io([i[m.type]],l.filter(function(b){var S=b.matcher;return S(m)}).map(function(b){var S=b.reducer;return S}));return x.filter(function(b){return!!b}).length===0&&(x=[s]),x.reduce(function(b,S){if(S)if(te(b)){var R=b,E=S(R,m);return E===void 0?b:E}else{if(Dt(b))return fr(b,function(N){return S(N,m)});var E=S(b,m);if(E===void 0){if(b===null)return b;throw Error("A case reducer on a non-draftable value must not return undefined")}return E}return b},y)}return h.getInitialState=f,h}function _s(o,e){return o+"/"+e}function dl(o){var e=o.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof o.initialState=="function"?o.initialState:In(o.initialState),n=o.reducers||{},a=Object.keys(n),i={},l={},s={};a.forEach(function(h){var y=n[h],m=_s(e,h),x,b;"reducer"in y?(x=y.reducer,b=y.prepare):x=y,i[h]=x,l[m]=x,s[h]=b?ve(m,b):ve(m)});function f(){var h=typeof o.extraReducers=="function"?sl(o.extraReducers):[o.extraReducers],y=h[0],m=y===void 0?{}:y,x=h[1],b=x===void 0?[]:x,S=h[2],R=S===void 0?void 0:S,E=xe(xe({},m),l);return Ts(r,function(N){for(var I in E)N.addCase(I,E[I]);for(var T=0,W=b;T<W.length;T++){var Rt=W[T];N.addMatcher(Rt.matcher,Rt.reducer)}R&&N.addDefaultCase(R)})}var p;return{name:e,reducer:function(h,y){return p||(p=f()),p(h,y)},actions:s,caseReducers:i,getInitialState:function(){return p||(p=f()),p.getInitialState()}}}var Ws="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Ds=function(o){o===void 0&&(o=21);for(var e="",r=o;r--;)e+=Ws[Math.random()*64|0];return e},zs=["name","message","stack","code"],Pn=function(){function o(e,r){this.payload=e,this.meta=r}return o}(),al=function(){function o(e,r){this.payload=e,this.meta=r}return o}(),Ms=function(o){if(typeof o=="object"&&o!==null){for(var e={},r=0,n=zs;r<n.length;r++){var a=n[r];typeof o[a]=="string"&&(e[a]=o[a])}return e}return{message:String(o)}},gb=function(){function o(e,r,n){var a=ve(e+"/fulfilled",function(h,y,m,x){return{payload:h,meta:Rn(xe({},x||{}),{arg:m,requestId:y,requestStatus:"fulfilled"})}}),i=ve(e+"/pending",function(h,y,m){return{payload:void 0,meta:Rn(xe({},m||{}),{arg:y,requestId:h,requestStatus:"pending"})}}),l=ve(e+"/rejected",function(h,y,m,x,b){return{payload:x,error:(n&&n.serializeError||Ms)(h||"Rejected"),meta:Rn(xe({},b||{}),{arg:m,requestId:y,rejectedWithValue:!!x,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),s=!1,f=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function p(h){return function(y,m,x){var b=n?.idGenerator?n.idGenerator(h):Ds(),S=new f,R,E=!1;function N(T){R=T,S.abort()}var I=function(){return Ns(this,null,function(){var T,W,Rt,oe,Lr,re,bt;return vs(this,function(Lt){switch(Lt.label){case 0:return Lt.trys.push([0,4,,5]),oe=(T=n?.condition)==null?void 0:T.call(n,h,{getState:m,extra:x}),Us(oe)?[4,oe]:[3,2];case 1:oe=Lt.sent(),Lt.label=2;case 2:if(oe===!1||S.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return E=!0,Lr=new Promise(function(xt,Se){return S.signal.addEventListener("abort",function(){return Se({name:"AbortError",message:R||"Aborted"})})}),y(i(b,h,(W=n?.getPendingMeta)==null?void 0:W.call(n,{requestId:b,arg:h},{getState:m,extra:x}))),[4,Promise.race([Lr,Promise.resolve(r(h,{dispatch:y,getState:m,extra:x,requestId:b,signal:S.signal,abort:N,rejectWithValue:function(xt,Se){return new Pn(xt,Se)},fulfillWithValue:function(xt,Se){return new al(xt,Se)}})).then(function(xt){if(xt instanceof Pn)throw xt;return xt instanceof al?a(xt.payload,b,h,xt.meta):a(xt,b,h)})])];case 3:return Rt=Lt.sent(),[3,5];case 4:return re=Lt.sent(),Rt=re instanceof Pn?l(null,b,h,re.payload,re.meta):l(re,b,h),[3,5];case 5:return bt=n&&!n.dispatchConditionRejection&&l.match(Rt)&&Rt.meta.condition,bt||y(Rt),[2,Rt]}})})}();return Object.assign(I,{abort:N,requestId:b,arg:h,unwrap:function(){return I.then(Hs)}})}}return Object.assign(p,{pending:i,rejected:l,fulfilled:a,typePrefix:e})}return o.withTypes=function(){return o},o}();function Hs(o){if(o.meta&&o.meta.rejectedWithValue)throw o.payload;if(o.error)throw o.error;return o.payload}function Us(o){return o!==null&&typeof o=="object"&&typeof o.then=="function"}var pl="listener",fl="completed",ul="cancelled",bb="task-"+ul,xb="task-"+fl,vb=pl+"-"+ul,Sb=pl+"-"+fl;var $n="listenerMiddleware";var Cb=ve($n+"/add"),Ob=ve($n+"/removeAll"),wb=ve($n+"/remove");var il,Eb=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(o){return(il||(il=Promise.resolve())).then(o).catch(function(e){return setTimeout(function(){throw e},0)})},Fs=function(o){return function(e){setTimeout(e,o)}},Nb=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Fs(10);Zc();function Gs(o,e){return class extends o{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,n,a){this.eventBus.addEventListener(r,n,a)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,n,a){this.eventBus.removeEventListener(r,n,a)}}}var yr=class extends Gs(Object){};window.ftReduxStores||(window.ftReduxStores={});var hl=class o extends yr{static get(e){var r;let n=typeof e=="string"?e:e.name,a=typeof e=="string"?void 0:e,i=window.ftReduxStores[n];if(Ao(i))return i;if(a==null)return;let l=dl({...a,reducers:(r=a.reducers)!==null&&r!==void 0?r:{}}),s=ll({reducer:(f,p)=>p.type==="CLEAR_FT_REDUX_STORE"?l.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...f,...p.overwrites}:l.reducer(f,p)});return window.ftReduxStores[a.name]=new o(l,s)}constructor(e,r){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new rr,this.actions=new Proxy(this.reduxSlice.actions,{get:(n,a,i)=>{let l=a,s=n[l];return s?(...f)=>{let p=s(...f);return this.reduxStore.dispatch(p),p}:f=>{this.setState({[l]:f})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var xr=g(L());var mr=class extends fe{async listMySearches(){let e=P.getState().session;return e?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var gr=class extends fe{async listMyBookmarks(){let e=P.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var Vs="ft-user-assets",br=xr.FtReduxStore.get({name:Vs,initialState:{savedSearches:void 0,bookmarks:void 0}}),kn=class{constructor(){this.currentSession=P.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new gr,this.savedSearchesService=new mr,P.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=P.getState();(0,xr.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),br.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),br.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();br.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let r=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;br.actions.bookmarks(r)}}},nx=new kn;var Bn=class{addCommand(e,r=!1){P.commands.add(e,r)}consumeCommand(e){return P.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Bn;var yl=g(L()),Tn=class{highlightHtml(e,r,n){(0,yl.highlightHtml)(e,r,n)}};window.FluidTopicsHighlightHtmlService=new Tn;var ml=g(L());var _n=class{isDate(e){var r,n,a,i;return(i=(a=((n=(r=P.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(s=>s.key===e))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1}format(e,r){var n,a,i;return ml.DateFormatter.format(e,(n=r?.locale)!==null&&n!==void 0?n:P.getState().uiLocale,(a=r?.longFormat)!==null&&a!==void 0?a:!1,(i=r?.withTime)!==null&&i!==void 0?i:!1)}};window.FluidTopicsDateService=new _n;var Ks=g(L());(0,gl.customElement)("ft-app-context")(V);var bl=g(Y()),Zs=function(o,e,r,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,r,n);else for(var s=o.length-1;s>=0;s--)(l=o[s])&&(i=(a<3?l(i):a>3?l(e,r,i):l(e,r))||i);return a>3&&i&&Object.defineProperty(e,r,i),i},Wn=Symbol("i18nAttributes"),Dn=Symbol("i18nListAttributes"),vr=Symbol("i18nProperties"),$o=Symbol("i18nUnsubs");function xl(o){var e;class r extends o{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?Ec:ke}i18n(a,i,...l){var s;if(typeof a=="string")return this.i18nService.resolveMessage(a,i,...l);let f=(s=a.args)!==null&&s!==void 0?s:a.argsProvider?a.argsProvider(this):[];return this.i18nService.resolveMessage(a.context,a.key,...f)}onI18nUpdate(a){var i,l,s;(i=this[Wn])===null||i===void 0||i.forEach((f,p)=>{let h=this.getI18nAttributeValue(p);h&&(this[p]=this.getI18nAttributeMessage(h,f,a))}),(l=this[Dn])===null||l===void 0||l.forEach((f,p)=>{let h=this.getI18nListAttributeValues(p);this[p]=h?.map(y=>this.getI18nAttributeMessage(y,f,a))}),(s=this[vr])===null||s===void 0||s.forEach((f,p)=>{f.context.toLowerCase()===a.toLowerCase()&&(this[p]=this.i18n(f))}),setTimeout(()=>this.requestUpdate(),0)}buildI18nAttributeMessage(a,i){return{...a,message:this.i18n({context:a.context,key:a.key,...i})}}getI18nAttributeMessage(a,i,l){var s;let f=!l||((s=a.context)===null||s===void 0?void 0:s.toLowerCase())===l.toLowerCase();return a.context&&a.key&&f?this.buildI18nAttributeMessage(a,i):a}update(a){var i,l,s;super.update(a),(i=this[Wn])===null||i===void 0||i.forEach((f,p)=>{let h=this.getI18nAttributeValue(p);h?.context&&h.key&&(a.has(p)||f.argsProvider!=null)&&(this.addI18nContextIfNeeded(h,a,p),this[p]=this.getI18nAttributeMessage(h,f))}),(l=this[Dn])===null||l===void 0||l.forEach((f,p)=>{let h=this.getI18nListAttributeValues(p);(a.has(p)||f.argsProvider!=null)&&(this[p]=h?.map(y=>(this.addI18nContextIfNeeded(y,a,p),this.getI18nAttributeMessage(y,f))))}),(s=this[vr])===null||s===void 0||s.forEach((f,p)=>{f.argsProvider!=null&&(this[p]=this.i18n(f))})}getI18nAttributeValue(a){return this[a]}getI18nListAttributeValues(a){return this[a]}addI18nContextIfNeeded(a,i,l){a.context&&a.key&&i.has(l)&&this.addI18nContext(a.context)}connectedCallback(){var a,i,l,s,f,p;super.connectedCallback(),new Set([...(i=(a=this[vr])===null||a===void 0?void 0:a.values())!==null&&i!==void 0?i:[],...[...(s=(l=this[Wn])===null||l===void 0?void 0:l.keys())!==null&&s!==void 0?s:[]].map(h=>this.getI18nAttributeValue(h)),...[...(p=(f=this[Dn])===null||f===void 0?void 0:f.keys())!==null&&p!==void 0?p:[]].flatMap(h=>this.getI18nListAttributeValues(h))].map(h=>h?.context)).forEach(h=>h&&this.addI18nMessages(h))}addI18nMessages(a,i){a=a.toLowerCase(),this[$o].has(a)||this[$o].set(a,this.i18nService.subscribe(a,()=>this.onI18nUpdate(a))),this.i18nService.prepareContext(a,i??{}),this.onI18nUpdate(a)}addI18nContext(a,i){this.addI18nMessages(typeof a=="string"?a:a.name,i)}disconnectedCallback(){super.disconnectedCallback(),this[$o].forEach(a=>a()),this[$o].clear()}}return e=$o,Zs([(0,bl.property)({type:Boolean})],r.prototype,"useCustomMessageContexts",void 0),r}var Sr=class extends xl(Or.FtLitElement){},Cr=class extends xl(Or.FtLitElementRedux){};var ko=function(o,e,r,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,r,n);else for(var s=o.length-1;s>=0;s--)(l=o[s])&&(i=(a<3?l(i):a>3?l(e,r,i):l(e,r))||i);return a>3&&i&&Object.defineProperty(e,r,i),i},zt=class extends Cr{constructor(){super(),this.editorMode=!1,this.addStore(P)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":wr.nothing:wr.html`
1711
1711
  <span class="ft-i18n">
1712
1712
  ${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
1713
1713
  </span>