@fluid-topics/ft-reader-feedback 1.3.28 → 1.3.29

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.
@@ -595,7 +595,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
595
595
  </div>
596
596
  </div>
597
597
  </div>
598
- `}updated(e){e.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(o=>e.has(o))&&this.visible&&this.positionTooltip()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,o){let i=this.manual;this.manual=!0;let n=this.text;this.text=e,await this.show(o),this.text=n,this.manual=i}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(o=>o.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="",mc(this.slottedElement,this.tooltip,this.position).then(({x:e,y:o})=>{this.tooltip&&(this.tooltip.style.left=`${e}px`,this.tooltip.style.top=`${o}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${rr.designSystemVariables.transitionDuration}, left ${rr.designSystemVariables.transitionDuration}`,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,o){return Math.max(e,Math.min(0,-o))}};ae.elementDefinitions={"ft-typography":fe};ae.styles=jl;Je([(0,we.property)()],ae.prototype,"text",void 0);Je([(0,we.property)({type:Boolean})],ae.prototype,"manual",void 0);Je([(0,we.property)({type:Boolean})],ae.prototype,"inline",void 0);Je([(0,we.property)({type:Number})],ae.prototype,"delay",void 0);Je([(0,we.property)()],ae.prototype,"position",void 0);Je([(0,we.queryAssignedNodes)()],ae.prototype,"slotNodes",void 0);Je([(0,we.query)(".ft-tooltip--container")],ae.prototype,"container",void 0);Je([(0,we.query)(".ft-tooltip")],ae.prototype,"tooltip",void 0);Je([(0,we.query)(".ft-tooltip--content")],ae.prototype,"tooltipContent",void 0);Je([(0,we.state)()],ae.prototype,"visible",void 0);Je([(0,we.eventOptions)({passive:!0})],ae.prototype,"onTouch",null);Je([(0,we.eventOptions)({passive:!0})],ae.prototype,"onHover",null);Je([(0,we.eventOptions)({passive:!0})],ae.prototype,"onOut",null);Je([(0,we.eventOptions)({passive:!0})],ae.prototype,"onClick",null);(0,xc.customElement)("ft-tooltip")(ae);var wc=m(T());var Ro=m(M()),or=m(Z()),Cc=m(T()),Oc=m(Sc());var Ar;(function(t){t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.BOOKS="&#xe806;",t.MENU="&#xe807;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.HOME="&#xe80b;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.EXPORT="&#xe80f;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.USER="&#xe813;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.OFFLINE="&#xe816;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.STAR_PLAIN="&#xe900;",t.TOPICS="&#xe901;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN="&#xe90f;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_THEME="&#xe911;",t.ADMIN_USERS="&#xe912;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.INFO="&#xe919;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.THIN_ARROW="&#xe921;",t.SIGN_IN="&#xe922;",t.LOGOUT="&#xe923;",t.TRANSLATE="&#xe924;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.ARTICLE="&#xe927;",t.COLUMNS="&#xe928;",t.ANALYTICS="&#xe929;",t.COLLECTIONS="&#xe92a;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.COPY_TO_CLIPBOARD="&#xe930;",t.SHARED_PBK="&#xe931;",t.ATTACHMENTS="&#xe932;",t.STRIPE_ARROW_LEFT="&#xe933;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.FILTERS="&#xe935;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.SAVE="&#xe93a;",t.LOCKER="&#xe93b;",t.ADMIN_INTEGRATION="&#xe93c;",t.SYNC="&#xe93d;",t.TAG="&#xe93e;",t.BOOK_PLAIN="&#xe93f;",t.UPLOAD="&#xe940;",t.ONLINE="&#xe941;",t.TAG_PLAIN="&#xe942;",t.ACCOUNT_SETTINGS="&#xe943;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.SHORTCUT_MENU="&#xe946;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.ADMIN_PORTAL="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.FEEDBACK_PLAIN="&#xe951;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_COLLECTIONS="&#xe955;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.RESET="&#xe958;",t.MY_LIBRARY="&#xe959;",t.UNSTRUCTURED_DOC="&#xe95a;",t.CONTEXTUAL="&#xe95b;",t.THIN_ARROW_UP="&#xe95c;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.DESKTOP="&#xe95e;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.CHART_BAR_STACKED="&#xe96e;",t.CHART_BAR_GROUPED="&#xe96f;",t.EYE_SLASH="&#xe970;",t.X_MARK="&#xe971;",t.EXPAND_WIDE="&#xe972;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.EXTLINK_LIGHT="&#xe978;",t.CLONE="&#xe979;",t.CLONE_LINK_SIMPLE="&#xe97a;",t.CHART_BAR_NORMALIZED="&#xe97b;",t.CONSUMER="&#xe97c;",t.OCTAGON_XMARK="&#xe97d;",t.HOURGLASS_HALF="&#xe97e;",t.CLOCK="&#xe97f;",t.CLOCK_THREE="&#xe97f;",t.CALENDAR_DAY="&#xe980;",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",t.WAND_MAGIC_SPARKLES="&#xe982;",t.PAPER_PLANE="&#xe983;",t.CIRCLE_STOP="&#xe984;",t.ARROW_ROTATE_RIGHT="&#xe985;",t.ARROWS_ROTATE="&#xe986;",t.ALIGN_RIGHT="&#xe987;",t.FORMAT_CLEAR="&#xe988;",t.ALIGN_CENTER="&#xe989;",t.ALIGN_LEFT="&#xe98a;",t.PALETTE="&#xe98b;",t.BOLD="&#xe98c;",t.ITALIC="&#xe98d;",t.UNDERLINE="&#xe98e;",t.STRIKETHROUGH="&#xe98f;",t.LINK_SIMPLE_SLASH="&#xe990;",t.LINK_SIMPLE="&#xe991;",t.ROUTE="&#xe992;",t.CIRCLE_USER_SLASH="&#xe993;",t.CIRCLE_USER_CHECK="&#xe994;",t.LIST_MAGNIFYING_GLASS="&#xe995;",t.MEDAL="&#xe996;",t.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",t.ARROW_TURN_DOWN_RIGHT="&#xe998;",t.FLASK="&#xe999;",t.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",t.HOURGLASS_END="&#xe99b;",t.CIRCLE_QUESTION="&#xe99c;",t.GRIP_LINES_SOLID="&#xe99d;",t.TRANSLATE_SPARKLE_SOLID="&#xe99e;",t.CODE="&#xe99f;",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",t.PAPER_PLANE_SLASH="&#xe9a1;",t.COMPRESS="&#xe9a2;",t.EXPAND="&#xe9a3;",t.ARROW_ROTATE_LEFT="&#xe9a4;",t.EYE="&#xf06e;",t.SHARE="&#xe80f1;",t.MOBILE_SMALL="&#xe9a5;",t.SPARKLES="&#xe9a6;",t.HAND_SOLID="&#xe9a7;",t.CLOCK_SOLID="&#xe9a8;",t.CONTEXT_MENU_CURSOR="&#xe9a9;",t.LANGUAGE_SLASH="&#xe9aa;",t.MAGNIFYING_GLASS_FLOPPY_DISK="&#xe9ab;",t.CABINET_FILING_FLOPPY_DISK="&#xe9ac;"})(Ar||(Ar={}));var A;(function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"})(A||(A={}));var hx=new Map([...["abw"].map(t=>[t,A.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(t=>[t,A.AUDIO]),...["avi"].map(t=>[t,A.AVI]),...["chm","xhs"].map(t=>[t,A.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(t=>[t,A.CODE]),...["csv"].map(t=>[t,A.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,A.DITA]),...["epub"].map(t=>[t,A.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,A.EXCEL]),...["flac"].map(t=>[t,A.FLAC]),...["gif"].map(t=>[t,A.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,A.GZIP]),...["html","htm","xhtml"].map(t=>[t,A.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(t=>[t,A.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,A.JPEG]),...["json"].map(t=>[t,A.JSON]),...["m4a","m4p"].map(t=>[t,A.M4A]),...["mov","qt"].map(t=>[t,A.MOV]),...["mp3"].map(t=>[t,A.MP3]),...["mp4","m4v"].map(t=>[t,A.MP4]),...["ogg","oga"].map(t=>[t,A.OGG]),...["pdf","ps"].map(t=>[t,A.PDF]),...["png"].map(t=>[t,A.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,A.POWERPOINT]),...["rar"].map(t=>[t,A.RAR]),...["stp"].map(t=>[t,A.STP]),...["txt","rtf","md","mdown"].map(t=>[t,A.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(t=>[t,A.VIDEO]),...["wav"].map(t=>[t,A.WAV]),...["wma"].map(t=>[t,A.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,A.WORD]),...["xml","xsl","rdf"].map(t=>[t,A.XML]),...["yaml","yml","x-yaml"].map(t=>[t,A.YAML]),...["zip"].map(t=>[t,A.ZIP])]);var gx={[A.ABW]:"#91ABC6",[A.AUDIO]:"#1795E3",[A.AVI]:"#E63324",[A.CHM]:"#71C3EB",[A.CODE]:"#71C3EB",[A.CSV]:"#1F7345",[A.DITA]:"#71C3EB",[A.EPUB]:"#85B926",[A.EXCEL]:"#1F7345",[A.FLAC]:"#1795E3",[A.GIF]:"#59B031",[A.GZIP]:"#F8AB36",[A.HTML]:"#71C3EB",[A.IMAGE]:"#59B031",[A.JPEG]:"#59B031",[A.JSON]:"#71C3EB",[A.M4A]:"#1795E3",[A.MOV]:"#E63324",[A.MP3]:"#1795E3",[A.MP4]:"#E63324",[A.OGG]:"#1795E3",[A.PDF]:"#E44948",[A.PNG]:"#59B031",[A.POWERPOINT]:"#B54A2B",[A.RAR]:"#F8AB36",[A.STP]:"#3764B1",[A.TEXT]:"#3162AB",[A.UNKNOWN]:"#999999",[A.VIDEO]:"#E63324",[A.WAV]:"#1795E3",[A.WMA]:"#1795E3",[A.WORD]:"#3162AB",[A.XML]:"#71C3EB",[A.YAML]:"#71C3EB",[A.ZIP]:"#F8AB36"};var Ue;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(Ue||(Ue={}));var To=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},he=class extends Cc.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=Ro.nothing}render(){let e=this.variant&&Object.values(Ue).includes(this.variant)?this.variant:Ue.fluid_topics,o=e!==Ue.material||!!this.value;return Ro.html`
598
+ `}updated(e){e.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(o=>e.has(o))&&this.visible&&this.positionTooltip()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,o){let i=this.manual;this.manual=!0;let n=this.text;this.text=e,await this.show(o),this.text=n,this.manual=i}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(o=>o.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="",mc(this.slottedElement,this.tooltip,this.position).then(({x:e,y:o})=>{this.tooltip&&(this.tooltip.style.left=`${e}px`,this.tooltip.style.top=`${o}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${rr.designSystemVariables.transitionDuration}, left ${rr.designSystemVariables.transitionDuration}`,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,o){return Math.max(e,Math.min(0,-o))}};ae.elementDefinitions={"ft-typography":fe};ae.styles=jl;Je([(0,we.property)()],ae.prototype,"text",void 0);Je([(0,we.property)({type:Boolean})],ae.prototype,"manual",void 0);Je([(0,we.property)({type:Boolean})],ae.prototype,"inline",void 0);Je([(0,we.property)({type:Number})],ae.prototype,"delay",void 0);Je([(0,we.property)()],ae.prototype,"position",void 0);Je([(0,we.queryAssignedNodes)()],ae.prototype,"slotNodes",void 0);Je([(0,we.query)(".ft-tooltip--container")],ae.prototype,"container",void 0);Je([(0,we.query)(".ft-tooltip")],ae.prototype,"tooltip",void 0);Je([(0,we.query)(".ft-tooltip--content")],ae.prototype,"tooltipContent",void 0);Je([(0,we.state)()],ae.prototype,"visible",void 0);Je([(0,we.eventOptions)({passive:!0})],ae.prototype,"onTouch",null);Je([(0,we.eventOptions)({passive:!0})],ae.prototype,"onHover",null);Je([(0,we.eventOptions)({passive:!0})],ae.prototype,"onOut",null);Je([(0,we.eventOptions)({passive:!0})],ae.prototype,"onClick",null);(0,xc.customElement)("ft-tooltip")(ae);var wc=m(T());var Ro=m(M()),or=m(Z()),Cc=m(T()),Oc=m(Sc());var Ar;(function(t){t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.BOOKS="&#xe806;",t.MENU="&#xe807;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.HOME="&#xe80b;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.EXPORT="&#xe80f;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.USER="&#xe813;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.OFFLINE="&#xe816;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.STAR_PLAIN="&#xe900;",t.TOPICS="&#xe901;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN="&#xe90f;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_THEME="&#xe911;",t.ADMIN_USERS="&#xe912;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.INFO="&#xe919;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.THIN_ARROW="&#xe921;",t.SIGN_IN="&#xe922;",t.LOGOUT="&#xe923;",t.TRANSLATE="&#xe924;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.ARTICLE="&#xe927;",t.COLUMNS="&#xe928;",t.ANALYTICS="&#xe929;",t.COLLECTIONS="&#xe92a;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.COPY_TO_CLIPBOARD="&#xe930;",t.SHARED_PBK="&#xe931;",t.ATTACHMENTS="&#xe932;",t.STRIPE_ARROW_LEFT="&#xe933;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.FILTERS="&#xe935;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.SAVE="&#xe93a;",t.LOCKER="&#xe93b;",t.ADMIN_INTEGRATION="&#xe93c;",t.SYNC="&#xe93d;",t.TAG="&#xe93e;",t.BOOK_PLAIN="&#xe93f;",t.UPLOAD="&#xe940;",t.ONLINE="&#xe941;",t.TAG_PLAIN="&#xe942;",t.ACCOUNT_SETTINGS="&#xe943;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.SHORTCUT_MENU="&#xe946;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.ADMIN_PORTAL="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.FEEDBACK_PLAIN="&#xe951;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_COLLECTIONS="&#xe955;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.RESET="&#xe958;",t.MY_LIBRARY="&#xe959;",t.UNSTRUCTURED_DOC="&#xe95a;",t.CONTEXTUAL="&#xe95b;",t.THIN_ARROW_UP="&#xe95c;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.DESKTOP="&#xe95e;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.CHART_BAR_STACKED="&#xe96e;",t.CHART_BAR_GROUPED="&#xe96f;",t.EYE_SLASH="&#xe970;",t.X_MARK="&#xe971;",t.EXPAND_WIDE="&#xe972;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.EXTLINK_LIGHT="&#xe978;",t.CLONE="&#xe979;",t.CLONE_LINK_SIMPLE="&#xe97a;",t.CHART_BAR_NORMALIZED="&#xe97b;",t.CONSUMER="&#xe97c;",t.OCTAGON_XMARK="&#xe97d;",t.HOURGLASS_HALF="&#xe97e;",t.CLOCK="&#xe97f;",t.CLOCK_THREE="&#xe97f;",t.CALENDAR_DAY="&#xe980;",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",t.WAND_MAGIC_SPARKLES="&#xe982;",t.PAPER_PLANE="&#xe983;",t.CIRCLE_STOP="&#xe984;",t.ARROW_ROTATE_RIGHT="&#xe985;",t.ARROWS_ROTATE="&#xe986;",t.ALIGN_RIGHT="&#xe987;",t.FORMAT_CLEAR="&#xe988;",t.ALIGN_CENTER="&#xe989;",t.ALIGN_LEFT="&#xe98a;",t.PALETTE="&#xe98b;",t.BOLD="&#xe98c;",t.ITALIC="&#xe98d;",t.UNDERLINE="&#xe98e;",t.STRIKETHROUGH="&#xe98f;",t.LINK_SIMPLE_SLASH="&#xe990;",t.LINK_SIMPLE="&#xe991;",t.ROUTE="&#xe992;",t.CIRCLE_USER_SLASH="&#xe993;",t.CIRCLE_USER_CHECK="&#xe994;",t.LIST_MAGNIFYING_GLASS="&#xe995;",t.MEDAL="&#xe996;",t.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",t.ARROW_TURN_DOWN_RIGHT="&#xe998;",t.FLASK="&#xe999;",t.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",t.HOURGLASS_END="&#xe99b;",t.CIRCLE_QUESTION="&#xe99c;",t.GRIP_LINES_SOLID="&#xe99d;",t.TRANSLATE_SPARKLE_SOLID="&#xe99e;",t.CODE="&#xe99f;",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",t.PAPER_PLANE_SLASH="&#xe9a1;",t.COMPRESS="&#xe9a2;",t.EXPAND="&#xe9a3;",t.ARROW_ROTATE_LEFT="&#xe9a4;",t.EYE="&#xf06e;",t.SHARE="&#xe80f1;",t.MOBILE_SMALL="&#xe9a5;",t.SPARKLES="&#xe9a6;",t.HAND_SOLID="&#xe9a7;",t.CLOCK_SOLID="&#xe9a8;",t.CONTEXT_MENU_CURSOR="&#xe9a9;",t.LANGUAGE_SLASH="&#xe9aa;",t.MAGNIFYING_GLASS_FLOPPY_DISK="&#xe9ab;",t.CABINET_FILING_FLOPPY_DISK="&#xe9ac;",t.BOOKMARK_SLASH="&#xe9ad;",t.CIRCLE_PAUSE="&#xe9ae;",t.CIRCLE_PLAY="&#xe9af;",t.CIRCLE_STOP_PLAIN="&#xe9b0;",t.CLOUD_ARROW_DOWN="&#xe9b1;",t.SHARE_NODES="&#xe9b2;",t.BELL="&#xe9b3;",t.BELL_SLASH="&#xe9b4;",t.FILE="&#xe9b5;",t.HAND="&#xe9b6;",t.SQUARE_INFO_SOLID="&#xe9b7;"})(Ar||(Ar={}));var A;(function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"})(A||(A={}));var hx=new Map([...["abw"].map(t=>[t,A.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(t=>[t,A.AUDIO]),...["avi"].map(t=>[t,A.AVI]),...["chm","xhs"].map(t=>[t,A.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(t=>[t,A.CODE]),...["csv"].map(t=>[t,A.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,A.DITA]),...["epub"].map(t=>[t,A.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,A.EXCEL]),...["flac"].map(t=>[t,A.FLAC]),...["gif"].map(t=>[t,A.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,A.GZIP]),...["html","htm","xhtml"].map(t=>[t,A.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(t=>[t,A.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,A.JPEG]),...["json"].map(t=>[t,A.JSON]),...["m4a","m4p"].map(t=>[t,A.M4A]),...["mov","qt"].map(t=>[t,A.MOV]),...["mp3"].map(t=>[t,A.MP3]),...["mp4","m4v"].map(t=>[t,A.MP4]),...["ogg","oga"].map(t=>[t,A.OGG]),...["pdf","ps"].map(t=>[t,A.PDF]),...["png"].map(t=>[t,A.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,A.POWERPOINT]),...["rar"].map(t=>[t,A.RAR]),...["stp"].map(t=>[t,A.STP]),...["txt","rtf","md","mdown"].map(t=>[t,A.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(t=>[t,A.VIDEO]),...["wav"].map(t=>[t,A.WAV]),...["wma"].map(t=>[t,A.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,A.WORD]),...["xml","xsl","rdf"].map(t=>[t,A.XML]),...["yaml","yml","x-yaml"].map(t=>[t,A.YAML]),...["zip"].map(t=>[t,A.ZIP])]);var gx={[A.ABW]:"#91ABC6",[A.AUDIO]:"#1795E3",[A.AVI]:"#E63324",[A.CHM]:"#71C3EB",[A.CODE]:"#71C3EB",[A.CSV]:"#1F7345",[A.DITA]:"#71C3EB",[A.EPUB]:"#85B926",[A.EXCEL]:"#1F7345",[A.FLAC]:"#1795E3",[A.GIF]:"#59B031",[A.GZIP]:"#F8AB36",[A.HTML]:"#71C3EB",[A.IMAGE]:"#59B031",[A.JPEG]:"#59B031",[A.JSON]:"#71C3EB",[A.M4A]:"#1795E3",[A.MOV]:"#E63324",[A.MP3]:"#1795E3",[A.MP4]:"#E63324",[A.OGG]:"#1795E3",[A.PDF]:"#E44948",[A.PNG]:"#59B031",[A.POWERPOINT]:"#B54A2B",[A.RAR]:"#F8AB36",[A.STP]:"#3764B1",[A.TEXT]:"#3162AB",[A.UNKNOWN]:"#999999",[A.VIDEO]:"#E63324",[A.WAV]:"#1795E3",[A.WMA]:"#1795E3",[A.WORD]:"#3162AB",[A.XML]:"#71C3EB",[A.YAML]:"#71C3EB",[A.ZIP]:"#F8AB36"};var Ue;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(Ue||(Ue={}));var To=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},he=class extends Cc.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=Ro.nothing}render(){let e=this.variant&&Object.values(Ue).includes(this.variant)?this.variant:Ue.fluid_topics,o=e!==Ue.material||!!this.value;return Ro.html`
599
599
  <i class="ft-icon ft-icon--${e} ft-no-text-select" part="icon icon-${e}">
600
600
  ${(0,Oc.unsafeHTML)(this.resolvedIcon)}
601
601
  <slot ?hidden=${o}></slot>
@@ -1665,11 +1665,11 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1665
1665
  `;var fo=m(T());var ou=m(T());var dd=m(M()),Me=m(Z()),St=m(T());var td=m(M());var rd=td.css`
1666
1666
  `;var gi=m(T()),cp="ft-app-info",Nt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Nt.eventName="authentication-change";var dp={session:(t,e)=>{(0,gi.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>E.dispatchEvent(new Nt(e.payload)),0))}},E=gi.FtReduxStore.get({name:cp,reducers:dp,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],availableContentLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var ta=m(T());var Ir=class t{static get(e){let{baseUrl:o,apiIntegrationIdentifier:i}=E.getState(),n=e??i;if(o&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,n,!0)}static await(e){return new Promise(o=>{let i=t.get(e);if(i)o(i);else{let n=E.subscribe(()=>{i=t.get(e),i&&(n(),o(i))})}})}};var yi=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Ir.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Ir.await()}};var qe=class extends yi{constructor(e=!0,o){var i;super(o),this.sortObjectFields=(a,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([c],[u])=>c.localeCompare(u)));let n=this.constructor;n.commonCache=(i=n.commonCache)!==null&&i!==void 0?i:new ta.CacheRegistry,this.cache=e?n.commonCache:new ta.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((o,i)=>0|31*o+i.charCodeAt(0),0))}};var mi=class extends qe{async listMyBookmarks(){let e=E.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var ra=class{addCommand(e,o=!1){E.commands.add(e,o)}consumeCommand(e){return E.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new ra;var pt=m(T());var od,oo=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},up=Symbol("clearAfterUnitTest"),bi=class extends(0,pt.withEventBus)(qe){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[od]=()=>{this.defaultMessages={},this.cache=new pt.CacheRegistry,this.listeners={}},this.currentUiLocale=E.getState().uiLocale,E.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=E.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let o=e.name.toLowerCase();this.cache.setFinal(o,e),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,o){var i;if(e=e.toLowerCase(),o&&Object.keys(o).length>0){let n={...(i=this.defaultMessages[e])!==null&&i!==void 0?i:{},...o};(0,pt.deepEqual)(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var o,i;return this.fetchContext(e),(i=(o=this.cache.getNow(e))===null||o===void 0?void 0:o.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(e,o){let i=e.toLowerCase();return this.resolveContext(i)[o]}resolveMessage(e,o,...i){var n;let a=e.toLowerCase(),s=this.resolveContext(a);return new pt.ParametrizedLabelResolver((n=this.defaultMessages[a])!==null&&n!==void 0?n:{},s).resolve(o,...i)}async fetchContext(e){let o=!this.cache.has(e),i;try{i=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),o&&await this.notify(e)}catch(n){!(n instanceof pt.CanceledPromiseError)&&o&&console.error(n)}return i}subscribe(e,o){var i;return e=e.toLowerCase(),this.listeners[e]=(i=this.listeners[e])!==null&&i!==void 0?i:new Set,this.listeners[e].add(o),()=>{var n;return(n=this.listeners[e])===null||n===void 0?void 0:n.delete(o)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new oo({loadedContexts:e})),this.dispatchEvent(new oo({loadedContexts:e})),await Promise.all(e.map(o=>this.notify(o,!1)))}async notify(e,o=!0){o&&(document.body.dispatchEvent(new oo({loadedContexts:[e]})),this.dispatchEvent(new oo({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>(0,pt.delay)(0).then(()=>i()).catch(()=>null)))}};od=up;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends bi{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends bi{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var io=window.FluidTopicsI18nService,xi=window.FluidTopicsCustomI18nService;var id=m(T()),oa=class{highlightHtml(e,o,i){(0,id.highlightHtml)(e,o,i)}};window.FluidTopicsHighlightHtmlService=new oa;var vi=class extends qe{async listMySearches(){let{session:e}=E.getState();return Dt(e,te.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var nd=m(T());var ia=class{isDate(e){var o,i,n,a;return(a=(n=((i=(o=E.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&i!==void 0?i:[]).find(c=>c.key===e))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1}format(e,o){var i,n,a;return nd.DateFormatter.format(e,(i=o?.locale)!==null&&i!==void 0?i:E.getState().uiLocale,(n=o?.longFormat)!==null&&n!==void 0?n:!1,(a=o?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new ia;var ad=m(T());var Lo=class{static get(e,o){var i,n;let a=E.getState(),{lang:s,region:c}=(n=(i=a.defaultLocales)===null||i===void 0?void 0:i.defaultContentLocale)!==null&&n!==void 0?n:{lang:"en",region:"US"};return new ad.SearchPlaceConverter(a.baseUrl,e??20,a.searchInAllLanguagesAllowed,o??`${s}-${c}`)}};var na=class{urlToSearchRequest(e){return Lo.get().parse(e)}searchRequestToUrl(e){return Lo.get().serialize(e)}};window.FluidTopicsUrlService=new na;var ar=m(T());var _r=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};_r.eventName="change";var aa=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let o=sessionStorage.getItem(this.itemName(e));return o?JSON.parse(o):void 0}set(e,o){sessionStorage.setItem(this.itemName(e),JSON.stringify(o))}},sd=new aa;var Si=class t extends ar.WithEventBus{static build(){return new t(window.history,sd,()=>window.location,!1)}constructor(e,o,i,n){var a,s;super(),this.history=e,this.historyStorage=o,this.windowLocation=i,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(a=e.state)===null||a===void 0?void 0:a.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(n)}setCurrentState(e,o=!1){let i=o&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,i&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,ar.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new _r(this.currentItem())),0)}installProxies(){let e=o=>(i,n,[a,s,c])=>{let u=o(),p={...u===this.currentIndex?this.currentState:void 0,...a,index:u,href:typeof c=="string"?c:(c??this.windowLocation()).href};i.apply(n,[p,s,c]),this.setCurrentState(p,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let o=this.history.length-1;o>=0;o--)e?this.states[o]=this.historyStorage.get(o):setTimeout(()=>this.states[o]=this.historyStorage.get(o),this.history.length-o)}updateCurrentState(e){var o;let i={...this.buildCurrentState(),...e,index:this.currentIndex,title:(o=e?.title)!==null&&o!==void 0?o:this.currentState.title};this.setCurrentState(i)}addHistoryChangeListener(e){this.addEventListener(_r.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(_r.eventName,e)}currentItem(){return(0,ar.deepCopy)(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,ar.deepCopy)(this.states[this.previousDifferentMajorPosition()])}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return(0,ar.deepCopy)(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var o;let i=(o=this.states[e])===null||o===void 0?void 0:o.majorStateId;if(!i)return e;let n=e,a=e+1;for(;this.states.length>a&&!this.isDifferentMajorState(a,i);)this.hasState(a)&&(n=a),a++;return n}buildCurrentState(){var e,o;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(o=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&o!==void 0?o:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,o){var i;if(!this.hasState(e))return!1;let n=o??this.currentState.majorStateId,a=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;return a==null||a!=n}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Si.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t)});var no=class{constructor(){this.storeListeners=[]}store(e,o){if(this.isAuthenticated())return;let i=JSON.stringify(o);window.localStorage.setItem(e,i),window.dispatchEvent(new StorageEvent("storage",{key:e,newValue:i,storageArea:window.localStorage}))}get(e){var o,i;if(!this.isAuthenticated())return(i=JSON.parse((o=window.localStorage.getItem(e))!==null&&o!==void 0?o:"null"))!==null&&i!==void 0?i:void 0}addStoreListener(e,o){let i=n=>{n.key===e()&&!this.isAuthenticated()&&o()};this.storeListeners.push(i),window.addEventListener("storage",i)}clearStoreListeners(){this.storeListeners.forEach(e=>window.removeEventListener("storage",e)),this.storeListeners.length=0}isAuthenticated(){let e=E.getState().session;return!!e?.sessionAuthenticated}};var ld=E;function cd(t,e){var o;return ld.getState().authenticationRequired&&!(!((o=ld.getState().session)===null||o===void 0)&&o.sessionAuthenticated)?Promise.resolve(e):t()}var Ae=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},ie=class extends St.FtLitElement{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.apiProvider=()=>Ir.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new St.CacheRegistry,this.cleanSessionDebouncer=new St.Debouncer,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return dd.html`
1667
1667
  <slot></slot>
1668
- `}connectedCallback(){super.connectedCallback(),E.addEventListener(Nt.eventName,this.reloadConfiguration)}disconnectedCallback(){E.addEventListener(Nt.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(e){var o,i,n,a,s,c,u;super.update(e),e.has("baseUrl")&&(E.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&E.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&E.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&E.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&E.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&E.actions.noCustom(this.noCustom),e.has("editorMode")&&E.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&E.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&E.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(p=>io.addContext(p)),e.has("openExternalDocumentInNewTab")&&E.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&E.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&E.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(E.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),E.actions.availableUiLocales((n=(i=this.localesConfiguration)===null||i===void 0?void 0:i.availableUiLocales)!==null&&n!==void 0?n:[]),E.actions.searchInAllLanguagesAllowed((s=(a=this.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),e.has("authenticationRequired")&&E.actions.authenticationRequired(this.authenticationRequired),e.has("availableContentLocales")&&E.actions.availableContentLocales((u=(c=this.availableContentLocales)===null||c===void 0?void 0:c.contentLocales)!==null&&u!==void 0?u:[]),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration(),this.availableContentLocales==null&&this.updateAvailableContentLocales())}async updateSession(){this.session=await this.cache.get("session",async()=>{let e=await this.apiProvider().getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},e.idleTimeoutInMillis),e})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}async updateAvailableContentLocales(){this.availableContentLocales=await this.cache.get("availableContentLocales",()=>cd(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};ie.elementDefinitions={};ie.styles=rd;Ae([(0,Me.property)()],ie.prototype,"baseUrl",void 0);Ae([(0,Me.property)()],ie.prototype,"apiIntegrationIdentifier",void 0);Ae([(0,Me.property)()],ie.prototype,"apiIntegrationAppVersion",void 0);Ae([(0,Me.property)()],ie.prototype,"uiLocale",void 0);Ae([(0,St.jsonProperty)(null)],ie.prototype,"availableUiLocales",void 0);Ae([(0,St.jsonProperty)(null)],ie.prototype,"metadataConfiguration",void 0);Ae([(0,Me.property)({type:Boolean})],ie.prototype,"editorMode",void 0);Ae([(0,Me.property)({type:Boolean})],ie.prototype,"noCustom",void 0);Ae([(0,Me.property)({type:Boolean})],ie.prototype,"openExternalDocumentInNewTab",void 0);Ae([(0,Me.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],ie.prototype,"noCustomComponent",void 0);Ae([(0,Me.property)({type:Boolean})],ie.prototype,"withManualResources",void 0);Ae([(0,Me.property)({type:Boolean})],ie.prototype,"navigatorOnline",void 0);Ae([(0,Me.property)({type:Boolean})],ie.prototype,"forcedOffline",void 0);Ae([(0,Me.property)({type:Object})],ie.prototype,"apiProvider",void 0);Ae([(0,Me.property)({type:Boolean})],ie.prototype,"authenticationRequired",void 0);Ae([(0,St.jsonProperty)([])],ie.prototype,"messageContexts",void 0);Ae([(0,St.jsonProperty)(void 0)],ie.prototype,"session",void 0);Ae([(0,Me.state)()],ie.prototype,"localesConfiguration",void 0);Ae([(0,Me.state)()],ie.prototype,"availableContentLocales",void 0);var Na=m(Z());function pp(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let o,i,n;if(Array.isArray(t)){if(o=t.length,o!=e.length)return!1;for(i=o;i--!==0;)if(!Ci(t[i],e[i]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;for(i of t.entries())if(!Ci(i[1],e.get(i[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let a=s=>Object.keys(s).filter(c=>s[c]!=null);if(n=a(t),o=n.length,o!==a(e).length)return!1;for(i=o;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,n[i]))return!1;for(i=o;i--!==0;){let s=n[i];if(!Ci(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function Ci(t,e){try{return pp(t,e)}catch{return!1}}function ko(t,e){return!Ci(t,e)}function Oi(t,e){let o=i=>i[t]===!0;return i=>{if(o(i))return i;let n=e(i);return n[t]=!0,n}}var ud=m(Z(),1);var sa=t=>{let e=t??{};return(o,i)=>{var n;let a={hasChanged:ko,attribute:!1,...e};(0,ud.property)(a)(o,i);let s=o.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(i,{selector:(n=e.selector)!==null&&n!==void 0?n:c=>c[i],store:e.store})}};var wi=class{constructor(){this.queue=[]}add(e,o=!1){o&&this.clear(e.type),this.queue.push(e)}consume(e){let o=this.queue.find(i=>i.type===e);return o&&(this.queue=this.queue.filter(i=>i!==o)),o}clear(e){typeof e=="string"?this.queue=this.queue.filter(o=>o.type!==e):this.queue=this.queue.filter(o=>!e.test(o.type))}};var ao=m(Z(),1);var pd=m(Z(),1);function fd(t,e){let o=()=>JSON.parse(JSON.stringify(t));return(0,pd.property)({type:Object,converter:{fromAttribute:i=>{if(i==null)return o();try{return JSON.parse(i)}catch{return o()}},toAttribute:i=>JSON.stringify(i)},hasChanged:ko,...e??{}})}var Ei=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,o){return this.callbacks=[e],this.debounce(o)}queue(e,o){return this.callbacks.push(e),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((o,i)=>{this.resolvePromise=o,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,o;let i=[...this.callbacks];this.callbacks=[];let n=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,a=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let s of i)try{await s()}catch(c){n(c);return}a(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var gd=m(M(),1);var Ai=globalThis,fp=Ai.ShadowRoot&&(Ai.ShadyCSS===void 0||Ai.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,QS=Symbol();var hd=(t,e)=>{if(fp)t.adoptedStyleSheets=e.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(let o of e){let i=document.createElement("style"),n=Ai.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=o.cssText,t.appendChild(i)}};var Ri=class extends gd.LitElement{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([n,a])=>e.registry.define(n,a)));let o={...e.shadowRootOptions,customElements:e.registry},i=this.renderOptions.creationScope=this.attachShadow(o);return hd(i,e.elementStyles),i}};function yd(t,e,...o){var i;let n=t.querySelector(e);for(let a of o)n=(i=n?.shadowRoot)===null||i===void 0?void 0:i.querySelector(a);return n}var Po=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},vd,md=Symbol("constructorPrototype"),bd=Symbol("constructorName"),Sd=Symbol("exportpartsDebouncer"),xd=Symbol("dynamicDependenciesLoaded"),jt=class extends Ri{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[vd]=new Ei(5),this[bd]=this.constructor.name,this[md]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[bd]&&Object.setPrototypeOf(this,this[md])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(o){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",o)}let e=this.constructor;e[xd]||(e[xd]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate()})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:o,selector:i,shadowPath:n}=this.elementToFocus;if(i!=null){let a=[...n??[],i];o=yd(this.shadowRoot,...a)}o?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||o?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var o,i,n;if(((i=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(a){console.error(a,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let a=document.createElement("style");a.classList.add("ft-lit-element--custom-stylesheet"),a.innerHTML=this.customStylesheet,this.shadowRoot.append(a)}}scheduleExportpartsUpdate(){var e,o,i;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(i=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&i!==void 0&&i)&&this[Sd].run(()=>{var n,a;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((a=this.exportpartsPrefixes)===null||a===void 0?void 0:a.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(e){var o,i,n,a,s,c;let u=b=>b!=null&&b.trim().length>0,p=e.filter(u).map(b=>b.trim());if(p.length===0){this.removeAttribute("exportparts");return}let h=new Set;for(let b of(i=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let x=(a=(n=b.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&a!==void 0?a:[],S=(c=(s=b.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(O=>O.split(":")[1]))!==null&&c!==void 0?c:[];new Array(...x,...S).filter(u).map(O=>O.trim()).forEach(O=>h.add(O))}if(h.size===0){this.removeAttribute("exportparts");return}let g=[...h.values()].flatMap(b=>p.map(x=>`${b}:${x}--${b}`));this.setAttribute("exportparts",[...this.part,...g].join(", "))}};vd=Sd;Po([(0,ao.property)()],jt.prototype,"exportpartsPrefix",void 0);Po([fd([])],jt.prototype,"exportpartsPrefixes",void 0);Po([(0,ao.property)()],jt.prototype,"customStylesheet",void 0);Po([(0,ao.property)()],jt.prototype,"elementToFocus",void 0);Po([(0,ao.state)()],jt.prototype,"useAdoptedStyleSheets",void 0);function Ti(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Do=Symbol("internalReduxEventsUnsubscribers"),sr=Symbol("internalStoresUnsubscribers"),Nr=Symbol("internalStores"),hp=Oi(Symbol("withRedux"),function(t){var e,o,i;class n extends t{constructor(){super(...arguments),this[e]=new Map,this[o]=new Map,this[i]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(c=>s.has(c))&&this.updateFromStores()}getUnnamedStore(){if(this[Nr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Nr].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Nr].get(s)}addStore(s,c){var u;c=(u=c??s.name)!==null&&u!==void 0?u:"default-store",this.unsubscribeFromStore(c),this[Nr].set(c,s),this.subscribeToStore(c,s),this.updateFromStores()}removeStore(s){let c=typeof s=="string"?s:s.name;this.unsubscribeFromStore(c),this[Nr].delete(c)}setupStores(){this.unsubscribeFromStores(),this[Nr].forEach((s,c)=>this.subscribeToStore(c,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,c)=>{let u=this.constructor.getPropertyOptions(c);if(!u?.attribute||!this.hasAttribute(typeof u?.attribute=="string"?u.attribute:c)){let p=this.getStore(s.store);p&&(s.store?this[sr].has(s.store):this[sr].size>0)&&(this[c]=s.selector(p.getState(),this))}})}subscribeToStore(s,c){var u;this[sr].set(s,c.subscribe(()=>this.updateFromStores())),this[Do].set(s,[]),Ti(c)&&c.eventBus&&((u=this.reduxConstructor.reduxEventListeners)===null||u===void 0||u.forEach((p,h)=>{if(typeof this[h]=="function"&&(!p.store||c.name===p.store)){let g=b=>this[h](b);c.addEventListener(p.eventName,g),this[Do].get(s).push(()=>c.removeEventListener(p.eventName,g))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[sr].forEach((s,c)=>this.unsubscribeFromStore(c))}unsubscribeFromStore(s){var c;this[sr].has(s)&&this[sr].get(s)(),this[sr].delete(s),(c=this[Do].get(s))===null||c===void 0||c.forEach(u=>u()),this[Do].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=sr,o=Nr,i=Do,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),Cd=class extends hp(jt){};function ft(t){for(var e=arguments.length,o=Array(e>1?e-1:0),i=1;i<e;i++)o[i-1]=arguments[i];if(0)var n,a;throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Kt(t){return!!t&&!!t[se]}function Ct(t){var e;return!!t&&(function(o){if(!o||typeof o!="object")return!1;var i=Object.getPrototypeOf(o);if(i===null)return!0;var n=Object.hasOwnProperty.call(i,"constructor")&&i.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===Cp}(t)||Array.isArray(t)||!!t[Id]||!!(!((e=t.constructor)===null||e===void 0)&&e[Id])||ya(t)||ma(t))}function Lr(t,e,o){o===void 0&&(o=!1),co(t)===0?(o?Object.keys:lo)(t).forEach(function(i){o&&typeof i=="symbol"||e(i,t[i],t)}):t.forEach(function(i,n){return e(n,i,t)})}function co(t){var e=t[se];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:ya(t)?2:ma(t)?3:0}function so(t,e){return co(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function gp(t,e){return co(t)===2?t.get(e):t[e]}function _d(t,e,o){var i=co(t);i===2?t.set(e,o):i===3?t.add(o):t[e]=o}function Nd(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function ya(t){return vp&&t instanceof Map}function ma(t){return Sp&&t instanceof Set}function lr(t){return t.o||t.t}function ba(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Pd(t);delete e[se];for(var o=lo(e),i=0;i<o.length;i++){var n=o[i],a=e[n];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[n]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[n]})}return Object.create(Object.getPrototypeOf(t),e)}function xa(t,e){return e===void 0&&(e=!1),va(t)||Kt(t)||!Ct(t)||(co(t)>1&&(t.set=t.add=t.clear=t.delete=yp),Object.freeze(t),e&&Lr(t,function(o,i){return xa(i,!0)},!0)),t}function yp(){ft(2)}function va(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Lt(t){var e=ga[t];return e||ft(18,t),e}function mp(t,e){ga[t]||(ga[t]=e)}function pa(){return Mo}function la(t,e){e&&(Lt("Patches"),t.u=[],t.s=[],t.v=e)}function Ii(t){fa(t),t.p.forEach(bp),t.p=null}function fa(t){t===Mo&&(Mo=t.l)}function Od(t){return Mo={p:[],l:Mo,h:t,m:!0,_:0}}function bp(t){var e=t[se];e.i===0||e.i===1?e.j():e.g=!0}function ca(t,e){e._=e.p.length;var o=e.p[0],i=t!==void 0&&t!==o;return e.h.O||Lt("ES5").S(e,t,i),i?(o[se].P&&(Ii(e),ft(4)),Ct(t)&&(t=_i(e,t),e.l||Ni(e,t)),e.u&&Lt("Patches").M(o[se].t,t,e.u,e.s)):t=_i(e,o,[]),Ii(e),e.u&&e.v(e.u,e.s),t!==kd?t:void 0}function _i(t,e,o){if(va(e))return e;var i=e[se];if(!i)return Lr(e,function(c,u){return wd(t,i,e,c,u,o)},!0),e;if(i.A!==t)return e;if(!i.P)return Ni(t,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var n=i.i===4||i.i===5?i.o=ba(i.k):i.o,a=n,s=!1;i.i===3&&(a=new Set(n),n.clear(),s=!0),Lr(a,function(c,u){return wd(t,i,n,c,u,o,s)}),Ni(t,n,!1),o&&t.u&&Lt("Patches").N(i,o,t.u,t.s)}return i.o}function wd(t,e,o,i,n,a,s){if(Kt(n)){var c=_i(t,n,a&&e&&e.i!==3&&!so(e.R,i)?a.concat(i):void 0);if(_d(o,i,c),!Kt(c))return;t.m=!1}else s&&o.add(n);if(Ct(n)&&!va(n)){if(!t.h.D&&t._<1)return;_i(t,n),e&&e.A.l||Ni(t,n)}}function Ni(t,e,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&xa(e,o)}function da(t,e){var o=t[se];return(o?lr(o):t)[e]}function Ed(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var i=Object.getOwnPropertyDescriptor(o,e);if(i)return i;o=Object.getPrototypeOf(o)}}function cr(t){t.P||(t.P=!0,t.l&&cr(t.l))}function ua(t){t.o||(t.o=ba(t.t))}function ha(t,e,o){var i=ya(e)?Lt("MapSet").F(e,o):ma(e)?Lt("MapSet").T(e,o):t.O?function(n,a){var s=Array.isArray(n),c={i:s?1:0,A:a?a.A:pa(),P:!1,I:!1,R:{},l:a,t:n,k:null,o:null,j:null,C:!1},u=c,p=Bo;s&&(u=[c],p=$o);var h=Proxy.revocable(u,p),g=h.revoke,b=h.proxy;return c.k=b,c.j=g,b}(e,o):Lt("ES5").J(e,o);return(o?o.A:pa()).p.push(i),i}function xp(t){return Kt(t)||ft(22,t),function e(o){if(!Ct(o))return o;var i,n=o[se],a=co(o);if(n){if(!n.P&&(n.i<4||!Lt("ES5").K(n)))return n.t;n.I=!0,i=Ad(o,a),n.I=!1}else i=Ad(o,a);return Lr(i,function(s,c){n&&gp(n.t,s)===c||_d(i,s,e(c))}),a===3?new Set(i):i}(t)}function Ad(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return ba(t)}function Ld(){function t(s,c){var u=a[s];return u?u.enumerable=c:a[s]=u={configurable:!0,enumerable:c,get:function(){var p=this[se];return Bo.get(p,s)},set:function(p){var h=this[se];Bo.set(h,s,p)}},u}function e(s){for(var c=s.length-1;c>=0;c--){var u=s[c][se];if(!u.P)switch(u.i){case 5:i(u)&&cr(u);break;case 4:o(u)&&cr(u)}}}function o(s){for(var c=s.t,u=s.k,p=lo(u),h=p.length-1;h>=0;h--){var g=p[h];if(g!==se){var b=c[g];if(b===void 0&&!so(c,g))return!0;var x=u[g],S=x&&x[se];if(S?S.t!==b:!Nd(x,b))return!0}}var O=!!c[se];return p.length!==lo(c).length+(O?0:1)}function i(s){var c=s.k;if(c.length!==s.t.length)return!0;var u=Object.getOwnPropertyDescriptor(c,c.length-1);if(u&&!u.get)return!0;for(var p=0;p<c.length;p++)if(!c.hasOwnProperty(p))return!0;return!1}function n(s){s.g&&ft(3,JSON.stringify(lr(s)))}var a={};mp("ES5",{J:function(s,c){var u=Array.isArray(s),p=function(g,b){if(g){for(var x=Array(b.length),S=0;S<b.length;S++)Object.defineProperty(x,""+S,t(S,!0));return x}var O=Pd(b);delete O[se];for(var N=lo(O),I=0;I<N.length;I++){var _=N[I];O[_]=t(_,g||!!O[_].enumerable)}return Object.create(Object.getPrototypeOf(b),O)}(u,s),h={i:u?5:4,A:c?c.A:pa(),P:!1,I:!1,R:{},l:c,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,se,{value:h,writable:!0}),p},S:function(s,c,u){u?Kt(c)&&c[se].A===s&&e(s.p):(s.u&&function p(h){if(h&&typeof h=="object"){var g=h[se];if(g){var b=g.t,x=g.k,S=g.R,O=g.i;if(O===4)Lr(x,function(H){H!==se&&(b[H]!==void 0||so(b,H)?S[H]||p(x[H]):(S[H]=!0,cr(g)))}),Lr(b,function(H){x[H]!==void 0||so(x,H)||(S[H]=!1,cr(g))});else if(O===5){if(i(g)&&(cr(g),S.length=!0),x.length<b.length)for(var N=x.length;N<b.length;N++)S[N]=!1;else for(var I=b.length;I<x.length;I++)S[I]=!0;for(var _=Math.min(x.length,b.length),$=0;$<_;$++)x.hasOwnProperty($)||(S[$]=!0),S[$]===void 0&&p(x[$])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?o(s):i(s)}})}var Rd,Mo,Sa=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",vp=typeof Map<"u",Sp=typeof Set<"u",Td=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",kd=Sa?Symbol.for("immer-nothing"):((Rd={})["immer-nothing"]=!0,Rd),Id=Sa?Symbol.for("immer-draftable"):"__$immer_draftable",se=Sa?Symbol.for("immer-state"):"__$immer_state";var Cp=""+Object.prototype.constructor,lo=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Pd=Object.getOwnPropertyDescriptors||function(t){var e={};return lo(t).forEach(function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)}),e},ga={},Bo={get:function(t,e){if(e===se)return t;var o=lr(t);if(!so(o,e))return function(n,a,s){var c,u=Ed(a,s);return u?"value"in u?u.value:(c=u.get)===null||c===void 0?void 0:c.call(n.k):void 0}(t,o,e);var i=o[e];return t.I||!Ct(i)?i:i===da(t.t,e)?(ua(t),t.o[e]=ha(t.A.h,i,t)):i},has:function(t,e){return e in lr(t)},ownKeys:function(t){return Reflect.ownKeys(lr(t))},set:function(t,e,o){var i=Ed(lr(t),e);if(i?.set)return i.set.call(t.k,o),!0;if(!t.P){var n=da(lr(t),e),a=n?.[se];if(a&&a.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(Nd(o,n)&&(o!==void 0||so(t.t,e)))return!0;ua(t),cr(t)}return t.o[e]===o&&(o!==void 0||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return da(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,ua(t),cr(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=lr(t),i=Reflect.getOwnPropertyDescriptor(o,e);return i&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:i.enumerable,value:o[e]}},defineProperty:function(){ft(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){ft(12)}},$o={};Lr(Bo,function(t,e){$o[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),$o.deleteProperty=function(t,e){return $o.set.call(this,t,e,void 0)},$o.set=function(t,e,o){return Bo.set.call(this,t[0],e,o,t[0])};var Op=function(){function t(o){var i=this;this.O=Td,this.D=!0,this.produce=function(n,a,s){if(typeof n=="function"&&typeof a!="function"){var c=a;a=n;var u=i;return function(O){var N=this;O===void 0&&(O=c);for(var I=arguments.length,_=Array(I>1?I-1:0),$=1;$<I;$++)_[$-1]=arguments[$];return u.produce(O,function(H){var W;return(W=a).call.apply(W,[N,H].concat(_))})}}var p;if(typeof a!="function"&&ft(6),s!==void 0&&typeof s!="function"&&ft(7),Ct(n)){var h=Od(i),g=ha(i,n,void 0),b=!0;try{p=a(g),b=!1}finally{b?Ii(h):fa(h)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(O){return la(h,s),ca(O,h)},function(O){throw Ii(h),O}):(la(h,s),ca(p,h))}if(!n||typeof n!="object"){if((p=a(n))===void 0&&(p=n),p===kd&&(p=void 0),i.D&&xa(p,!0),s){var x=[],S=[];Lt("Patches").M(n,p,x,S),s(x,S)}return p}ft(21,n)},this.produceWithPatches=function(n,a){if(typeof n=="function")return function(p){for(var h=arguments.length,g=Array(h>1?h-1:0),b=1;b<h;b++)g[b-1]=arguments[b];return i.produceWithPatches(p,function(x){return n.apply(void 0,[x].concat(g))})};var s,c,u=i.produce(n,a,function(p,h){s=p,c=h});return typeof Promise<"u"&&u instanceof Promise?u.then(function(p){return[p,s,c]}):[u,s,c]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var e=t.prototype;return e.createDraft=function(o){Ct(o)||ft(8),Kt(o)&&(o=xp(o));var i=Od(this),n=ha(this,o,void 0);return n[se].C=!0,fa(i),n},e.finishDraft=function(o,i){var n=o&&o[se],a=n.A;return la(a,i),ca(void 0,a)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!Td&&ft(20),this.O=o},e.applyPatches=function(o,i){var n;for(n=i.length-1;n>=0;n--){var a=i[n];if(a.path.length===0&&a.op==="replace"){o=a.value;break}}n>-1&&(i=i.slice(n+1));var s=Lt("Patches").$;return Kt(o)?s(o,i):this.produce(o,function(c){return s(c,i)})},t}(),nt=new Op,wp=nt.produce,fC=nt.produceWithPatches.bind(nt),hC=nt.setAutoFreeze.bind(nt),gC=nt.setUseProxies.bind(nt),yC=nt.applyPatches.bind(nt),mC=nt.createDraft.bind(nt),bC=nt.finishDraft.bind(nt),Li=wp;function kr(t){"@babel/helpers - typeof";return kr=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},kr(t)}function Dd(t,e){if(kr(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var i=o.call(t,e||"default");if(kr(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function $d(t){var e=Dd(t,"string");return kr(e)=="symbol"?e:e+""}function Md(t,e,o){return(e=$d(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function Bd(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),o.push.apply(o,i)}return o}function Ca(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?Bd(Object(o),!0).forEach(function(i){Md(t,i,o[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Bd(Object(o)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(o,i))})}return t}function He(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var Fd=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Oa=function(){return Math.random().toString(36).substring(7).split("").join(".")},ki={INIT:"@@redux/INIT"+Oa(),REPLACE:"@@redux/REPLACE"+Oa(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Oa()}};function Ep(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function wa(t,e,o){var i;if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(He(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(He(1));return o(wa)(t,e)}if(typeof t!="function")throw new Error(He(2));var n=t,a=e,s=[],c=s,u=!1;function p(){c===s&&(c=s.slice())}function h(){if(u)throw new Error(He(3));return a}function g(O){if(typeof O!="function")throw new Error(He(4));if(u)throw new Error(He(5));var N=!0;return p(),c.push(O),function(){if(N){if(u)throw new Error(He(6));N=!1,p();var _=c.indexOf(O);c.splice(_,1),s=null}}}function b(O){if(!Ep(O))throw new Error(He(7));if(typeof O.type>"u")throw new Error(He(8));if(u)throw new Error(He(9));try{u=!0,a=n(a,O)}finally{u=!1}for(var N=s=c,I=0;I<N.length;I++){var _=N[I];_()}return O}function x(O){if(typeof O!="function")throw new Error(He(10));n=O,b({type:ki.REPLACE})}function S(){var O,N=g;return O={subscribe:function(_){if(typeof _!="object"||_===null)throw new Error(He(11));function $(){_.next&&_.next(h())}$();var H=N($);return{unsubscribe:H}}},O[Fd]=function(){return this},O}return b({type:ki.INIT}),i={dispatch:b,subscribe:g,getState:h,replaceReducer:x},i[Fd]=S,i}function Ap(t){Object.keys(t).forEach(function(e){var o=t[e],i=o(void 0,{type:ki.INIT});if(typeof i>"u")throw new Error(He(12));if(typeof o(void 0,{type:ki.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(He(13))})}function Ud(t){for(var e=Object.keys(t),o={},i=0;i<e.length;i++){var n=e[i];typeof t[n]=="function"&&(o[n]=t[n])}var a=Object.keys(o),s,c;try{Ap(o)}catch(u){c=u}return function(p,h){if(p===void 0&&(p={}),c)throw c;if(0)var g;for(var b=!1,x={},S=0;S<a.length;S++){var O=a[S],N=o[O],I=p[O],_=N(I,h);if(typeof _>"u"){var $=h&&h.type;throw new Error(He(14))}x[O]=_,b=b||_!==I}return b=b||a.length!==Object.keys(p).length,b?x:p}}function uo(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return e.length===0?function(i){return i}:e.length===1?e[0]:e.reduce(function(i,n){return function(){return i(n.apply(void 0,arguments))}})}function zd(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(i){return function(){var n=i.apply(void 0,arguments),a=function(){throw new Error(He(15))},s={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},c=e.map(function(u){return u(s)});return a=uo.apply(void 0,c)(n.dispatch),Ca(Ca({},n),{},{dispatch:a})}}}function Hd(t){var e=function(i){var n=i.dispatch,a=i.getState;return function(s){return function(c){return typeof c=="function"?c(n,a,t):s(c)}}};return e}var Wd=Hd();Wd.withExtraArgument=Hd;var Ea=Wd;var Zd=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(i[a]=n[a])},t(e,o)};return function(e,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");t(e,o);function i(){this.constructor=e}e.prototype=o===null?Object.create(o):(i.prototype=o.prototype,new i)}}(),Rp=function(t,e){var o={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,n,a,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(p){return function(h){return u([p,h])}}function u(p){if(i)throw new TypeError("Generator is already executing.");for(;o;)try{if(i=1,n&&(a=p[0]&2?n.return:p[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,p[1])).done)return a;switch(n=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return o.label++,{value:p[1],done:!1};case 5:o.label++,n=p[1],p=[0];continue;case 7:p=o.ops.pop(),o.trys.pop();continue;default:if(a=o.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){o=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){o.label=p[1];break}if(p[0]===6&&o.label<a[1]){o.label=a[1],a=p;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(p);break}a[2]&&o.ops.pop(),o.trys.pop();continue}p=e.call(t,o)}catch(h){p=[6,h],n=0}finally{i=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},po=function(t,e){for(var o=0,i=e.length,n=t.length;o<i;o++,n++)t[n]=e[o];return t},Tp=Object.defineProperty,Ip=Object.defineProperties,_p=Object.getOwnPropertyDescriptors,Gd=Object.getOwnPropertySymbols,Np=Object.prototype.hasOwnProperty,Lp=Object.prototype.propertyIsEnumerable,Vd=function(t,e,o){return e in t?Tp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},dr=function(t,e){for(var o in e||(e={}))Np.call(e,o)&&Vd(t,o,e[o]);if(Gd)for(var i=0,n=Gd(e);i<n.length;i++){var o=n[i];Lp.call(e,o)&&Vd(t,o,e[o])}return t},Aa=function(t,e){return Ip(t,_p(e))},kp=function(t,e,o){return new Promise(function(i,n){var a=function(u){try{c(o.next(u))}catch(p){n(p)}},s=function(u){try{c(o.throw(u))}catch(p){n(p)}},c=function(u){return u.done?i(u.value):Promise.resolve(u.value).then(a,s)};c((o=o.apply(t,e)).next())})};var Pp=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?uo:uo.apply(null,arguments)},$C=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Dp(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var o=e;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return e===o}var $p=function(t){Zd(e,t);function e(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var n=t.apply(this,o)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,po([void 0],o[0].concat(this)))):new(e.bind.apply(e,po([void 0],o.concat(this))))},e}(Array),Mp=function(t){Zd(e,t);function e(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var n=t.apply(this,o)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,po([void 0],o[0].concat(this)))):new(e.bind.apply(e,po([void 0],o.concat(this))))},e}(Array);function Ia(t){return Ct(t)?Li(t,function(){}):t}function Bp(t){return typeof t=="boolean"}function Fp(){return function(e){return Up(e)}}function Up(t){t===void 0&&(t={});var e=t.thunk,o=e===void 0?!0:e,i=t.immutableCheck,n=i===void 0?!0:i,a=t.serializableCheck,s=a===void 0?!0:a,c=new $p;if(o&&(Bp(o)?c.push(Ea):c.push(Ea.withExtraArgument(o.extraArgument))),0){if(n)var u;if(s)var p}return c}var Ra=!0;function qd(t){var e=Fp(),o=t||{},i=o.reducer,n=i===void 0?void 0:i,a=o.middleware,s=a===void 0?e():a,c=o.devTools,u=c===void 0?!0:c,p=o.preloadedState,h=p===void 0?void 0:p,g=o.enhancers,b=g===void 0?void 0:g,x;if(typeof n=="function")x=n;else if(Dp(n))x=Ud(n);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var S=s;if(typeof S=="function"&&(S=S(e),!Ra&&!Array.isArray(S)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Ra&&S.some(function(H){return typeof H!="function"}))throw new Error("each middleware provided to configureStore must be a function");var O=zd.apply(void 0,S),N=uo;u&&(N=Pp(dr({trace:!Ra},typeof u=="object"&&u)));var I=new Mp(O),_=I;Array.isArray(b)?_=po([O],b):typeof b=="function"&&(_=b(I));var $=N.apply(void 0,_);return wa(x,h,$)}function ur(t,e){function o(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(e){var a=e.apply(void 0,i);if(!a)throw new Error("prepareAction did not return an object");return dr(dr({type:t,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:t,payload:i[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(i){return i.type===t},o}function Yd(t){var e={},o=[],i,n={addCase:function(a,s){var c=typeof a=="string"?a:a.type;if(c in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[c]=s,n},addMatcher:function(a,s){return o.push({matcher:a,reducer:s}),n},addDefaultCase:function(a){return i=a,n}};return t(n),[e,o,i]}function zp(t){return typeof t=="function"}function Hp(t,e,o,i){o===void 0&&(o=[]);var n=typeof e=="function"?Yd(e):[e,o,i],a=n[0],s=n[1],c=n[2],u;if(zp(t))u=function(){return Ia(t())};else{var p=Ia(t);u=function(){return p}}function h(g,b){g===void 0&&(g=u());var x=po([a[b.type]],s.filter(function(S){var O=S.matcher;return O(b)}).map(function(S){var O=S.reducer;return O}));return x.filter(function(S){return!!S}).length===0&&(x=[c]),x.reduce(function(S,O){if(O)if(Kt(S)){var N=S,I=O(N,b);return I===void 0?S:I}else{if(Ct(S))return Li(S,function(_){return O(_,b)});var I=O(S,b);if(I===void 0){if(S===null)return S;throw Error("A case reducer on a non-draftable value must not return undefined")}return I}return S},g)}return h.getInitialState=u,h}function Wp(t,e){return t+"/"+e}function Xd(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof t.initialState=="function"?t.initialState:Ia(t.initialState),i=t.reducers||{},n=Object.keys(i),a={},s={},c={};n.forEach(function(h){var g=i[h],b=Wp(e,h),x,S;"reducer"in g?(x=g.reducer,S=g.prepare):x=g,a[h]=x,s[b]=x,c[h]=S?ur(b,S):ur(b)});function u(){var h=typeof t.extraReducers=="function"?Yd(t.extraReducers):[t.extraReducers],g=h[0],b=g===void 0?{}:g,x=h[1],S=x===void 0?[]:x,O=h[2],N=O===void 0?void 0:O,I=dr(dr({},b),s);return Hp(o,function(_){for(var $ in I)_.addCase($,I[$]);for(var H=0,W=S;H<W.length;H++){var Ye=W[H];_.addMatcher(Ye.matcher,Ye.reducer)}N&&_.addDefaultCase(N)})}var p;return{name:e,reducer:function(h,g){return p||(p=u()),p(h,g)},actions:c,caseReducers:a,getInitialState:function(){return p||(p=u()),p.getInitialState()}}}var Gp="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Vp=function(t){t===void 0&&(t=21);for(var e="",o=t;o--;)e+=Gp[Math.random()*64|0];return e},jp=["name","message","stack","code"],Ta=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),jd=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Kp=function(t){if(typeof t=="object"&&t!==null){for(var e={},o=0,i=jp;o<i.length;o++){var n=i[o];typeof t[n]=="string"&&(e[n]=t[n])}return e}return{message:String(t)}},UC=function(){function t(e,o,i){var n=ur(e+"/fulfilled",function(h,g,b,x){return{payload:h,meta:Aa(dr({},x||{}),{arg:b,requestId:g,requestStatus:"fulfilled"})}}),a=ur(e+"/pending",function(h,g,b){return{payload:void 0,meta:Aa(dr({},b||{}),{arg:g,requestId:h,requestStatus:"pending"})}}),s=ur(e+"/rejected",function(h,g,b,x,S){return{payload:x,error:(i&&i.serializeError||Kp)(h||"Rejected"),meta:Aa(dr({},S||{}),{arg:b,requestId:g,rejectedWithValue:!!x,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),c=!1,u=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function p(h){return function(g,b,x){var S=i?.idGenerator?i.idGenerator(h):Vp(),O=new u,N,I=!1;function _(H){N=H,O.abort()}var $=function(){return kp(this,null,function(){var H,W,Ye,Et,Ve,At,Le;return Rp(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),Et=(H=i?.condition)==null?void 0:H.call(i,h,{getState:b,extra:x}),qp(Et)?[4,Et]:[3,2];case 1:Et=y.sent(),y.label=2;case 2:if(Et===!1||O.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return I=!0,Ve=new Promise(function(v,P){return O.signal.addEventListener("abort",function(){return P({name:"AbortError",message:N||"Aborted"})})}),g(a(S,h,(W=i?.getPendingMeta)==null?void 0:W.call(i,{requestId:S,arg:h},{getState:b,extra:x}))),[4,Promise.race([Ve,Promise.resolve(o(h,{dispatch:g,getState:b,extra:x,requestId:S,signal:O.signal,abort:_,rejectWithValue:function(v,P){return new Ta(v,P)},fulfillWithValue:function(v,P){return new jd(v,P)}})).then(function(v){if(v instanceof Ta)throw v;return v instanceof jd?n(v.payload,S,h,v.meta):n(v,S,h)})])];case 3:return Ye=y.sent(),[3,5];case 4:return At=y.sent(),Ye=At instanceof Ta?s(null,S,h,At.payload,At.meta):s(At,S,h),[3,5];case 5:return Le=i&&!i.dispatchConditionRejection&&s.match(Ye)&&Ye.meta.condition,Le||g(Ye),[2,Ye]}})})}();return Object.assign($,{abort:_,requestId:S,arg:h,unwrap:function(){return $.then(Zp)}})}}return Object.assign(p,{pending:a,rejected:s,fulfilled:n,typePrefix:e})}return t.withTypes=function(){return t},t}();function Zp(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function qp(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Qd="listener",Jd="completed",eu="cancelled",zC="task-"+eu,HC="task-"+Jd,WC=Qd+"-"+eu,GC=Qd+"-"+Jd;var _a="listenerMiddleware";var VC=ur(_a+"/add"),jC=ur(_a+"/removeAll"),KC=ur(_a+"/remove");var Kd,ZC=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Kd||(Kd=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Yp=function(t){return function(e){setTimeout(e,t)}},qC=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Yp(10);Ld();var Xp=Oi(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(o,i,n){this.eventBus.addEventListener(o,i,n)}dispatchEvent(o){return this.eventBus.dispatchEvent(o)}removeEventListener(o,i,n){this.eventBus.removeEventListener(o,i,n)}}}),Pi=class extends Xp(Object){};window.ftReduxStores||(window.ftReduxStores={});var tu=class t extends Pi{static get(e){var o;let i=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,a=window.ftReduxStores[i];if(Ti(a))return a;if(n==null)return;let s=Xd({...n,reducers:(o=n.reducers)!==null&&o!==void 0?o:{}}),c=qd({reducer:(u,p)=>p.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...u,...p.overwrites}:s.reducer(u,p)});return window.ftReduxStores[n.name]=new t(s,c,n.eventBus)}constructor(e,o,i){super(),this.reduxSlice=e,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new wi;let n=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,s,c)=>{let u=s,p=a[u];return p?(...h)=>{let g=p(...h.map(n));return this.reduxStore.dispatch(g),g}:h=>{this.setState({[u]:n(h)})}}}),this.eventBus=i??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var Di=class{static format(e,o,i,n){return window.moment?window.moment(e).locale(o).format(this.getMomentDateFormat(i,n)):this.getIntlDateTime(e,o,i,n)}static getMomentDateFormat(e,o){return e?o?"lll":"ll":o?"L LT":"L"}static getIntlDateTime(e,o,i,n){let a=typeof e=="string"?new Date(e):e,s=new Intl.DateTimeFormat(o,{dateStyle:i?"medium":"short"}).format(a);if(!n)return s;let c=new Intl.DateTimeFormat(o,{timeStyle:"short"}).format(a);return`${s} ${c}`}};var ru=m(T()),$i=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},xO=(0,ru.applyMixinOnce)(Symbol("withDateFormat"),function(t){class e extends t{constructor(...i){super(i),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(E)}dateFormatOptionsChanged(i){return i.has("metadataDescriptors")||i.has("useLongDateFormat")||i.has("useDateTimeFormat")||i.has("uiLocale")}getDateFormatter(i){var n,a;return((a=(n=this.metadataDescriptors.find(c=>c.key===i))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1)?c=>Di.format(c,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return $i([(0,Na.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),$i([(0,Na.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),$i([sa({store:E.name,selector:o=>{var i,n;return(n=(i=o.metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&n!==void 0?n:[]}})],e.prototype,"metadataDescriptors",void 0),$i([sa({store:E.name})],e.prototype,"uiLocale",void 0),e});var Fi=m(T());var Mi=class extends qe{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=E.getState().session;return!!e?.sessionAuthenticated}};var Bi=class extends qe{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=E.getState().session;return!!e?.sessionAuthenticated}};var Qp="ft-user-assets",Jp={setAssetCount:(t,e)=>{let{userAssetType:o,count:i}=e.payload.assetCount;t.assetCounts.allAsset[o]=i},clearAssetCount:t=>{Object.values(vr).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let o=e.payload.mapId;t.assetCounts.bookmarkByMap[o]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}}},at=Fi.FtReduxStore.get({name:Qp,reducers:Jp,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(vr).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),La=class{constructor(e=new Mi,o=new Bi){this.assetCountsService=e,this.assetLabelsService=o,this.currentSession=E.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new mi,this.savedSearchesService=new vi,E.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:o}=E.getState();(0,Fi.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),at.actions.clearAssetCount(),at.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),at.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),at.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();at.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();at.actions.assetLabels(e)}async loadAssetCount(e){let o=await this.assetCountsService.getUserAssetCount(e);o&&at.actions.setAssetCount({assetCount:o})}async loadBookmarkByMapId(e){let o=await this.assetCountsService.getUserBookmarkCountByMap(e);o&&at.actions.setBookmarkCountByMap({count:o.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let o=Object.keys(at.getState().assetCounts.bookmarkByMap).length!==0;e===vr.BOOKMARKS&&o&&at.actions.clearBookmarkCountByMap(),at.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let o=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;at.actions.bookmarks(o)}}},ka=new La;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=ka);(0,ou.customElement)("ft-app-context")(ie);var au=m(Z());var Pa=class{fromLocalizableLabel(e){return e.type=="PLAIN_TEXT"?{message:e.text}:{key:e.key,custom:e.type=="LOCALIZED_CUSTOM",context:e.context,message:e.key}}fromAttribute(e){if(e!=null)try{return JSON.parse(e)}catch{if(this.isI18nKey(e)){let[i,n]=e.split(".");return{context:i,key:n,message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},iu=new Pa;var ef=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},tf=Symbol("i18nAttributes"),rf=Symbol("i18nListAttributes"),Uo=Symbol("i18nProperties"),Ui=Symbol("i18nContexts"),Fo=Symbol("i18nUnsubs"),pr=(0,fo.applyMixinOnce)(Symbol("withI18n"),function(t){var e,o;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[o]=new Map}getI18nService(a){return a??this.useCustomMessageContexts?xi:io}i18n(a){let{context:s,key:c,message:u}=a,{custom:p,args:h,argsProvider:g}=a;if(s&&c){this.hasI18nContext(s)||this.addI18nContext(s,void 0,p);let b=h??(g?g(this):[]);return this.getI18nService(p).resolveMessage(s,c,...b)}return u}customI18n(a,s){if(iu.isI18nKey(a)){let[c,u]=a.split(".");return this.i18n({custom:!0,context:c,key:u,...s})||a}return a}firstUpdated(a){super.firstUpdated(a),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(a){super.update(a),this.updateI18nAttributes((s,c,u)=>a.has(c)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(a){this.updateI18nAttributes((s,c,u)=>{var p;return((p=u?.context)===null||p===void 0?void 0:p.toLowerCase())===a}),this.updateI18nProperties(s=>s.context.toLowerCase()===a),this.requestUpdate()}updateI18nAttributes(a){var s,c;let u=this,p=(h,g,b)=>b?.context&&b.key&&a(h,g,b)?{...b,message:this.i18n({context:b.context,key:b.key,custom:b.custom,...h})}:b;(s=this[tf])===null||s===void 0||s.forEach((h,g)=>u[g]=p(h,g,u[g])),(c=this[rf])===null||c===void 0||c.forEach((h,g)=>{var b;return u[g]=(b=u[g])===null||b===void 0?void 0:b.map(x=>p(h,g,x))})}updateI18nProperties(a){var s;(s=this[Uo])===null||s===void 0||s.forEach((c,u)=>{a(c,u)&&(this[u]=this.i18n(c))})}addI18nMessages(a,s,c){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(a,s,c)}addI18nContext(a,s,c){let u=(typeof a=="string"?a:a.name).toLowerCase();c=typeof a=="string"?c:a.custom,this[Ui].set(u,{isCustomContext:c}),this[Fo].has(u)||this[Fo].set(u,this.getI18nService(c).subscribe(u,()=>this.onI18nUpdate(u))),this.getI18nService(c).prepareContext(u,s)}hasI18nContext(a){return this[Ui].has(a.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Ui].forEach((a,s)=>this.addI18nContext(s,void 0,a.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Fo].forEach(a=>a()),this[Fo].clear()}}return e=Ui,o=Fo,ef([(0,au.property)({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),nu=class extends pr(fo.FtLitElement){},zi=class extends pr(fo.FtLitElementRedux){};var zo=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},Ot=class extends zi{constructor(){super(),this.editorMode=!1,this.addStore(E)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":Hi.nothing:Hi.html`
1668
+ `}connectedCallback(){super.connectedCallback(),E.addEventListener(Nt.eventName,this.reloadConfiguration)}disconnectedCallback(){E.addEventListener(Nt.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(e){var o,i,n,a,s,c,u;super.update(e),e.has("baseUrl")&&(E.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&E.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&E.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&E.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&E.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&E.actions.noCustom(this.noCustom),e.has("editorMode")&&E.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&E.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&E.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(p=>io.addContext(p)),e.has("openExternalDocumentInNewTab")&&E.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&E.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&E.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(E.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),E.actions.availableUiLocales((n=(i=this.localesConfiguration)===null||i===void 0?void 0:i.availableUiLocales)!==null&&n!==void 0?n:[]),E.actions.searchInAllLanguagesAllowed((s=(a=this.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),e.has("authenticationRequired")&&E.actions.authenticationRequired(this.authenticationRequired),e.has("availableContentLocales")&&E.actions.availableContentLocales((u=(c=this.availableContentLocales)===null||c===void 0?void 0:c.contentLocales)!==null&&u!==void 0?u:[]),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration(),this.availableContentLocales==null&&this.updateAvailableContentLocales())}async updateSession(){this.session=await this.cache.get("session",async()=>{let e=await this.apiProvider().getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},e.idleTimeoutInMillis),e})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}async updateAvailableContentLocales(){this.availableContentLocales=await this.cache.get("availableContentLocales",()=>cd(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};ie.elementDefinitions={};ie.styles=rd;Ae([(0,Me.property)()],ie.prototype,"baseUrl",void 0);Ae([(0,Me.property)()],ie.prototype,"apiIntegrationIdentifier",void 0);Ae([(0,Me.property)()],ie.prototype,"apiIntegrationAppVersion",void 0);Ae([(0,Me.property)()],ie.prototype,"uiLocale",void 0);Ae([(0,St.jsonProperty)(null)],ie.prototype,"availableUiLocales",void 0);Ae([(0,St.jsonProperty)(null)],ie.prototype,"metadataConfiguration",void 0);Ae([(0,Me.property)({type:Boolean})],ie.prototype,"editorMode",void 0);Ae([(0,Me.property)({type:Boolean})],ie.prototype,"noCustom",void 0);Ae([(0,Me.property)({type:Boolean})],ie.prototype,"openExternalDocumentInNewTab",void 0);Ae([(0,Me.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],ie.prototype,"noCustomComponent",void 0);Ae([(0,Me.property)({type:Boolean})],ie.prototype,"withManualResources",void 0);Ae([(0,Me.property)({type:Boolean})],ie.prototype,"navigatorOnline",void 0);Ae([(0,Me.property)({type:Boolean})],ie.prototype,"forcedOffline",void 0);Ae([(0,Me.property)({type:Object})],ie.prototype,"apiProvider",void 0);Ae([(0,Me.property)({type:Boolean})],ie.prototype,"authenticationRequired",void 0);Ae([(0,St.jsonProperty)([])],ie.prototype,"messageContexts",void 0);Ae([(0,St.jsonProperty)(void 0)],ie.prototype,"session",void 0);Ae([(0,Me.state)()],ie.prototype,"localesConfiguration",void 0);Ae([(0,Me.state)()],ie.prototype,"availableContentLocales",void 0);var Na=m(Z());function pp(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let o,i,n;if(Array.isArray(t)){if(o=t.length,o!=e.length)return!1;for(i=o;i--!==0;)if(!Ci(t[i],e[i]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;for(i of t.entries())if(!Ci(i[1],e.get(i[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let a=s=>Object.keys(s).filter(c=>s[c]!=null);if(n=a(t),o=n.length,o!==a(e).length)return!1;for(i=o;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,n[i]))return!1;for(i=o;i--!==0;){let s=n[i];if(!Ci(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function Ci(t,e){try{return pp(t,e)}catch{return!1}}function ko(t,e){return!Ci(t,e)}function Oi(t,e){let o=i=>i[t]===!0;return i=>{if(o(i))return i;let n=e(i);return n[t]=!0,n}}var ud=m(Z(),1);var sa=t=>{let e=t??{};return(o,i)=>{var n;let a={hasChanged:ko,attribute:!1,...e};(0,ud.property)(a)(o,i);let s=o.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(i,{selector:(n=e.selector)!==null&&n!==void 0?n:c=>c[i],store:e.store})}};var wi=class{constructor(){this.queue=[]}add(e,o=!1){o&&this.clear(e.type),this.queue.push(e)}consume(e){let o=this.queue.find(i=>i.type===e);return o&&(this.queue=this.queue.filter(i=>i!==o)),o}clear(e){typeof e=="string"?this.queue=this.queue.filter(o=>o.type!==e):this.queue=this.queue.filter(o=>!e.test(o.type))}};var ao=m(Z(),1);var pd=m(Z(),1);function fd(t,e){let o=()=>JSON.parse(JSON.stringify(t));return(0,pd.property)({type:Object,converter:{fromAttribute:i=>{if(i==null)return o();try{return JSON.parse(i)}catch{return o()}},toAttribute:i=>JSON.stringify(i)},hasChanged:ko,...e??{}})}var Ei=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,o){return this.callbacks=[e],this.debounce(o)}queue(e,o){return this.callbacks.push(e),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((o,i)=>{this.resolvePromise=o,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,o;let i=[...this.callbacks];this.callbacks=[];let n=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,a=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let s of i)try{await s()}catch(c){n(c);return}a(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var gd=m(M(),1);var Ai=globalThis,fp=Ai.ShadowRoot&&(Ai.ShadyCSS===void 0||Ai.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,QS=Symbol();var hd=(t,e)=>{if(fp)t.adoptedStyleSheets=e.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(let o of e){let i=document.createElement("style"),n=Ai.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=o.cssText,t.appendChild(i)}};var Ri=class extends gd.LitElement{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([n,a])=>e.registry.define(n,a)));let o={...e.shadowRootOptions,customElements:e.registry},i=this.renderOptions.creationScope=this.attachShadow(o);return hd(i,e.elementStyles),i}};function yd(t,e,...o){var i;let n=t.querySelector(e);for(let a of o)n=(i=n?.shadowRoot)===null||i===void 0?void 0:i.querySelector(a);return n}var Po=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},vd,md=Symbol("constructorPrototype"),bd=Symbol("constructorName"),Sd=Symbol("exportpartsDebouncer"),xd=Symbol("dynamicDependenciesLoaded"),jt=class extends Ri{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[vd]=new Ei(5),this[bd]=this.constructor.name,this[md]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[bd]&&Object.setPrototypeOf(this,this[md])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(o){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",o)}let e=this.constructor;e[xd]||(e[xd]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate()})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:o,selector:i,shadowPath:n}=this.elementToFocus;if(i!=null){let a=[...n??[],i];o=yd(this.shadowRoot,...a)}o?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||o?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var o,i,n;if(((i=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(a){console.error(a,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let a=document.createElement("style");a.classList.add("ft-lit-element--custom-stylesheet"),a.innerHTML=this.customStylesheet,this.shadowRoot.append(a)}}scheduleExportpartsUpdate(){var e,o,i;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(i=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&i!==void 0&&i)&&this[Sd].run(()=>{var n,a;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((a=this.exportpartsPrefixes)===null||a===void 0?void 0:a.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(e){var o,i,n,a,s,c;let u=b=>b!=null&&b.trim().length>0,p=e.filter(u).map(b=>b.trim());if(p.length===0){this.removeAttribute("exportparts");return}let h=new Set;for(let b of(i=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let x=(a=(n=b.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&a!==void 0?a:[],S=(c=(s=b.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(O=>O.split(":")[1]))!==null&&c!==void 0?c:[];new Array(...x,...S).filter(u).map(O=>O.trim()).forEach(O=>h.add(O))}if(h.size===0){this.removeAttribute("exportparts");return}let g=[...h.values()].flatMap(b=>p.map(x=>`${b}:${x}--${b}`));this.setAttribute("exportparts",[...this.part,...g].join(", "))}};vd=Sd;Po([(0,ao.property)()],jt.prototype,"exportpartsPrefix",void 0);Po([fd([])],jt.prototype,"exportpartsPrefixes",void 0);Po([(0,ao.property)()],jt.prototype,"customStylesheet",void 0);Po([(0,ao.property)()],jt.prototype,"elementToFocus",void 0);Po([(0,ao.state)()],jt.prototype,"useAdoptedStyleSheets",void 0);function Ti(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Do=Symbol("internalReduxEventsUnsubscribers"),sr=Symbol("internalStoresUnsubscribers"),Nr=Symbol("internalStores"),hp=Oi(Symbol("withRedux"),function(t){var e,o,i;class n extends t{constructor(){super(...arguments),this[e]=new Map,this[o]=new Map,this[i]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(c=>s.has(c))&&this.updateFromStores()}getUnnamedStore(){if(this[Nr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Nr].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Nr].get(s)}addStore(s,c){var u;c=(u=c??s.name)!==null&&u!==void 0?u:"default-store",this.unsubscribeFromStore(c),this[Nr].set(c,s),this.subscribeToStore(c,s),this.updateFromStores()}removeStore(s){let c=typeof s=="string"?s:s.name;this.unsubscribeFromStore(c),this[Nr].delete(c)}setupStores(){this.unsubscribeFromStores(),this[Nr].forEach((s,c)=>this.subscribeToStore(c,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,c)=>{let u=this.constructor.getPropertyOptions(c);if(!u?.attribute||!this.hasAttribute(typeof u?.attribute=="string"?u.attribute:c)){let p=this.getStore(s.store);p&&(s.store?this[sr].has(s.store):this[sr].size>0)&&(this[c]=s.selector(p.getState(),this))}})}subscribeToStore(s,c){var u;this[sr].set(s,c.subscribe(()=>this.updateFromStores())),this[Do].set(s,[]),Ti(c)&&c.eventBus&&((u=this.reduxConstructor.reduxEventListeners)===null||u===void 0||u.forEach((p,h)=>{if(typeof this[h]=="function"&&(!p.store||c.name===p.store)){let g=b=>this[h](b);c.addEventListener(p.eventName,g),this[Do].get(s).push(()=>c.removeEventListener(p.eventName,g))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[sr].forEach((s,c)=>this.unsubscribeFromStore(c))}unsubscribeFromStore(s){var c;this[sr].has(s)&&this[sr].get(s)(),this[sr].delete(s),(c=this[Do].get(s))===null||c===void 0||c.forEach(u=>u()),this[Do].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=sr,o=Nr,i=Do,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),Cd=class extends hp(jt){};function ft(t){for(var e=arguments.length,o=Array(e>1?e-1:0),i=1;i<e;i++)o[i-1]=arguments[i];if(0)var n,a;throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Kt(t){return!!t&&!!t[se]}function Ct(t){var e;return!!t&&(function(o){if(!o||typeof o!="object")return!1;var i=Object.getPrototypeOf(o);if(i===null)return!0;var n=Object.hasOwnProperty.call(i,"constructor")&&i.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===Cp}(t)||Array.isArray(t)||!!t[Id]||!!(!((e=t.constructor)===null||e===void 0)&&e[Id])||ya(t)||ma(t))}function Lr(t,e,o){o===void 0&&(o=!1),co(t)===0?(o?Object.keys:lo)(t).forEach(function(i){o&&typeof i=="symbol"||e(i,t[i],t)}):t.forEach(function(i,n){return e(n,i,t)})}function co(t){var e=t[se];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:ya(t)?2:ma(t)?3:0}function so(t,e){return co(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function gp(t,e){return co(t)===2?t.get(e):t[e]}function _d(t,e,o){var i=co(t);i===2?t.set(e,o):i===3?t.add(o):t[e]=o}function Nd(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function ya(t){return vp&&t instanceof Map}function ma(t){return Sp&&t instanceof Set}function lr(t){return t.o||t.t}function ba(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Pd(t);delete e[se];for(var o=lo(e),i=0;i<o.length;i++){var n=o[i],a=e[n];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[n]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[n]})}return Object.create(Object.getPrototypeOf(t),e)}function xa(t,e){return e===void 0&&(e=!1),va(t)||Kt(t)||!Ct(t)||(co(t)>1&&(t.set=t.add=t.clear=t.delete=yp),Object.freeze(t),e&&Lr(t,function(o,i){return xa(i,!0)},!0)),t}function yp(){ft(2)}function va(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Lt(t){var e=ga[t];return e||ft(18,t),e}function mp(t,e){ga[t]||(ga[t]=e)}function pa(){return Mo}function la(t,e){e&&(Lt("Patches"),t.u=[],t.s=[],t.v=e)}function Ii(t){fa(t),t.p.forEach(bp),t.p=null}function fa(t){t===Mo&&(Mo=t.l)}function Od(t){return Mo={p:[],l:Mo,h:t,m:!0,_:0}}function bp(t){var e=t[se];e.i===0||e.i===1?e.j():e.g=!0}function ca(t,e){e._=e.p.length;var o=e.p[0],i=t!==void 0&&t!==o;return e.h.O||Lt("ES5").S(e,t,i),i?(o[se].P&&(Ii(e),ft(4)),Ct(t)&&(t=_i(e,t),e.l||Ni(e,t)),e.u&&Lt("Patches").M(o[se].t,t,e.u,e.s)):t=_i(e,o,[]),Ii(e),e.u&&e.v(e.u,e.s),t!==kd?t:void 0}function _i(t,e,o){if(va(e))return e;var i=e[se];if(!i)return Lr(e,function(c,u){return wd(t,i,e,c,u,o)},!0),e;if(i.A!==t)return e;if(!i.P)return Ni(t,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var n=i.i===4||i.i===5?i.o=ba(i.k):i.o,a=n,s=!1;i.i===3&&(a=new Set(n),n.clear(),s=!0),Lr(a,function(c,u){return wd(t,i,n,c,u,o,s)}),Ni(t,n,!1),o&&t.u&&Lt("Patches").N(i,o,t.u,t.s)}return i.o}function wd(t,e,o,i,n,a,s){if(Kt(n)){var c=_i(t,n,a&&e&&e.i!==3&&!so(e.R,i)?a.concat(i):void 0);if(_d(o,i,c),!Kt(c))return;t.m=!1}else s&&o.add(n);if(Ct(n)&&!va(n)){if(!t.h.D&&t._<1)return;_i(t,n),e&&e.A.l||Ni(t,n)}}function Ni(t,e,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&xa(e,o)}function da(t,e){var o=t[se];return(o?lr(o):t)[e]}function Ed(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var i=Object.getOwnPropertyDescriptor(o,e);if(i)return i;o=Object.getPrototypeOf(o)}}function cr(t){t.P||(t.P=!0,t.l&&cr(t.l))}function ua(t){t.o||(t.o=ba(t.t))}function ha(t,e,o){var i=ya(e)?Lt("MapSet").F(e,o):ma(e)?Lt("MapSet").T(e,o):t.O?function(n,a){var s=Array.isArray(n),c={i:s?1:0,A:a?a.A:pa(),P:!1,I:!1,R:{},l:a,t:n,k:null,o:null,j:null,C:!1},u=c,p=Bo;s&&(u=[c],p=$o);var h=Proxy.revocable(u,p),g=h.revoke,b=h.proxy;return c.k=b,c.j=g,b}(e,o):Lt("ES5").J(e,o);return(o?o.A:pa()).p.push(i),i}function xp(t){return Kt(t)||ft(22,t),function e(o){if(!Ct(o))return o;var i,n=o[se],a=co(o);if(n){if(!n.P&&(n.i<4||!Lt("ES5").K(n)))return n.t;n.I=!0,i=Ad(o,a),n.I=!1}else i=Ad(o,a);return Lr(i,function(s,c){n&&gp(n.t,s)===c||_d(i,s,e(c))}),a===3?new Set(i):i}(t)}function Ad(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return ba(t)}function Ld(){function t(s,c){var u=a[s];return u?u.enumerable=c:a[s]=u={configurable:!0,enumerable:c,get:function(){var p=this[se];return Bo.get(p,s)},set:function(p){var h=this[se];Bo.set(h,s,p)}},u}function e(s){for(var c=s.length-1;c>=0;c--){var u=s[c][se];if(!u.P)switch(u.i){case 5:i(u)&&cr(u);break;case 4:o(u)&&cr(u)}}}function o(s){for(var c=s.t,u=s.k,p=lo(u),h=p.length-1;h>=0;h--){var g=p[h];if(g!==se){var b=c[g];if(b===void 0&&!so(c,g))return!0;var x=u[g],S=x&&x[se];if(S?S.t!==b:!Nd(x,b))return!0}}var O=!!c[se];return p.length!==lo(c).length+(O?0:1)}function i(s){var c=s.k;if(c.length!==s.t.length)return!0;var u=Object.getOwnPropertyDescriptor(c,c.length-1);if(u&&!u.get)return!0;for(var p=0;p<c.length;p++)if(!c.hasOwnProperty(p))return!0;return!1}function n(s){s.g&&ft(3,JSON.stringify(lr(s)))}var a={};mp("ES5",{J:function(s,c){var u=Array.isArray(s),p=function(g,b){if(g){for(var x=Array(b.length),S=0;S<b.length;S++)Object.defineProperty(x,""+S,t(S,!0));return x}var O=Pd(b);delete O[se];for(var N=lo(O),I=0;I<N.length;I++){var _=N[I];O[_]=t(_,g||!!O[_].enumerable)}return Object.create(Object.getPrototypeOf(b),O)}(u,s),h={i:u?5:4,A:c?c.A:pa(),P:!1,I:!1,R:{},l:c,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,se,{value:h,writable:!0}),p},S:function(s,c,u){u?Kt(c)&&c[se].A===s&&e(s.p):(s.u&&function p(h){if(h&&typeof h=="object"){var g=h[se];if(g){var b=g.t,x=g.k,S=g.R,O=g.i;if(O===4)Lr(x,function(H){H!==se&&(b[H]!==void 0||so(b,H)?S[H]||p(x[H]):(S[H]=!0,cr(g)))}),Lr(b,function(H){x[H]!==void 0||so(x,H)||(S[H]=!1,cr(g))});else if(O===5){if(i(g)&&(cr(g),S.length=!0),x.length<b.length)for(var N=x.length;N<b.length;N++)S[N]=!1;else for(var I=b.length;I<x.length;I++)S[I]=!0;for(var _=Math.min(x.length,b.length),$=0;$<_;$++)x.hasOwnProperty($)||(S[$]=!0),S[$]===void 0&&p(x[$])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?o(s):i(s)}})}var Rd,Mo,Sa=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",vp=typeof Map<"u",Sp=typeof Set<"u",Td=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",kd=Sa?Symbol.for("immer-nothing"):((Rd={})["immer-nothing"]=!0,Rd),Id=Sa?Symbol.for("immer-draftable"):"__$immer_draftable",se=Sa?Symbol.for("immer-state"):"__$immer_state";var Cp=""+Object.prototype.constructor,lo=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Pd=Object.getOwnPropertyDescriptors||function(t){var e={};return lo(t).forEach(function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)}),e},ga={},Bo={get:function(t,e){if(e===se)return t;var o=lr(t);if(!so(o,e))return function(n,a,s){var c,u=Ed(a,s);return u?"value"in u?u.value:(c=u.get)===null||c===void 0?void 0:c.call(n.k):void 0}(t,o,e);var i=o[e];return t.I||!Ct(i)?i:i===da(t.t,e)?(ua(t),t.o[e]=ha(t.A.h,i,t)):i},has:function(t,e){return e in lr(t)},ownKeys:function(t){return Reflect.ownKeys(lr(t))},set:function(t,e,o){var i=Ed(lr(t),e);if(i?.set)return i.set.call(t.k,o),!0;if(!t.P){var n=da(lr(t),e),a=n?.[se];if(a&&a.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(Nd(o,n)&&(o!==void 0||so(t.t,e)))return!0;ua(t),cr(t)}return t.o[e]===o&&(o!==void 0||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return da(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,ua(t),cr(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=lr(t),i=Reflect.getOwnPropertyDescriptor(o,e);return i&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:i.enumerable,value:o[e]}},defineProperty:function(){ft(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){ft(12)}},$o={};Lr(Bo,function(t,e){$o[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),$o.deleteProperty=function(t,e){return $o.set.call(this,t,e,void 0)},$o.set=function(t,e,o){return Bo.set.call(this,t[0],e,o,t[0])};var Op=function(){function t(o){var i=this;this.O=Td,this.D=!0,this.produce=function(n,a,s){if(typeof n=="function"&&typeof a!="function"){var c=a;a=n;var u=i;return function(O){var N=this;O===void 0&&(O=c);for(var I=arguments.length,_=Array(I>1?I-1:0),$=1;$<I;$++)_[$-1]=arguments[$];return u.produce(O,function(H){var W;return(W=a).call.apply(W,[N,H].concat(_))})}}var p;if(typeof a!="function"&&ft(6),s!==void 0&&typeof s!="function"&&ft(7),Ct(n)){var h=Od(i),g=ha(i,n,void 0),b=!0;try{p=a(g),b=!1}finally{b?Ii(h):fa(h)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(O){return la(h,s),ca(O,h)},function(O){throw Ii(h),O}):(la(h,s),ca(p,h))}if(!n||typeof n!="object"){if((p=a(n))===void 0&&(p=n),p===kd&&(p=void 0),i.D&&xa(p,!0),s){var x=[],S=[];Lt("Patches").M(n,p,x,S),s(x,S)}return p}ft(21,n)},this.produceWithPatches=function(n,a){if(typeof n=="function")return function(p){for(var h=arguments.length,g=Array(h>1?h-1:0),b=1;b<h;b++)g[b-1]=arguments[b];return i.produceWithPatches(p,function(x){return n.apply(void 0,[x].concat(g))})};var s,c,u=i.produce(n,a,function(p,h){s=p,c=h});return typeof Promise<"u"&&u instanceof Promise?u.then(function(p){return[p,s,c]}):[u,s,c]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var e=t.prototype;return e.createDraft=function(o){Ct(o)||ft(8),Kt(o)&&(o=xp(o));var i=Od(this),n=ha(this,o,void 0);return n[se].C=!0,fa(i),n},e.finishDraft=function(o,i){var n=o&&o[se],a=n.A;return la(a,i),ca(void 0,a)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!Td&&ft(20),this.O=o},e.applyPatches=function(o,i){var n;for(n=i.length-1;n>=0;n--){var a=i[n];if(a.path.length===0&&a.op==="replace"){o=a.value;break}}n>-1&&(i=i.slice(n+1));var s=Lt("Patches").$;return Kt(o)?s(o,i):this.produce(o,function(c){return s(c,i)})},t}(),nt=new Op,wp=nt.produce,fC=nt.produceWithPatches.bind(nt),hC=nt.setAutoFreeze.bind(nt),gC=nt.setUseProxies.bind(nt),yC=nt.applyPatches.bind(nt),mC=nt.createDraft.bind(nt),bC=nt.finishDraft.bind(nt),Li=wp;function kr(t){"@babel/helpers - typeof";return kr=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},kr(t)}function Dd(t,e){if(kr(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var i=o.call(t,e||"default");if(kr(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function $d(t){var e=Dd(t,"string");return kr(e)=="symbol"?e:e+""}function Md(t,e,o){return(e=$d(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function Bd(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),o.push.apply(o,i)}return o}function Ca(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?Bd(Object(o),!0).forEach(function(i){Md(t,i,o[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Bd(Object(o)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(o,i))})}return t}function He(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var Fd=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Oa=function(){return Math.random().toString(36).substring(7).split("").join(".")},ki={INIT:"@@redux/INIT"+Oa(),REPLACE:"@@redux/REPLACE"+Oa(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Oa()}};function Ep(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function wa(t,e,o){var i;if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(He(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(He(1));return o(wa)(t,e)}if(typeof t!="function")throw new Error(He(2));var n=t,a=e,s=[],c=s,u=!1;function p(){c===s&&(c=s.slice())}function h(){if(u)throw new Error(He(3));return a}function g(O){if(typeof O!="function")throw new Error(He(4));if(u)throw new Error(He(5));var N=!0;return p(),c.push(O),function(){if(N){if(u)throw new Error(He(6));N=!1,p();var _=c.indexOf(O);c.splice(_,1),s=null}}}function b(O){if(!Ep(O))throw new Error(He(7));if(typeof O.type>"u")throw new Error(He(8));if(u)throw new Error(He(9));try{u=!0,a=n(a,O)}finally{u=!1}for(var N=s=c,I=0;I<N.length;I++){var _=N[I];_()}return O}function x(O){if(typeof O!="function")throw new Error(He(10));n=O,b({type:ki.REPLACE})}function S(){var O,N=g;return O={subscribe:function(_){if(typeof _!="object"||_===null)throw new Error(He(11));function $(){_.next&&_.next(h())}$();var H=N($);return{unsubscribe:H}}},O[Fd]=function(){return this},O}return b({type:ki.INIT}),i={dispatch:b,subscribe:g,getState:h,replaceReducer:x},i[Fd]=S,i}function Ap(t){Object.keys(t).forEach(function(e){var o=t[e],i=o(void 0,{type:ki.INIT});if(typeof i>"u")throw new Error(He(12));if(typeof o(void 0,{type:ki.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(He(13))})}function Ud(t){for(var e=Object.keys(t),o={},i=0;i<e.length;i++){var n=e[i];typeof t[n]=="function"&&(o[n]=t[n])}var a=Object.keys(o),s,c;try{Ap(o)}catch(u){c=u}return function(p,h){if(p===void 0&&(p={}),c)throw c;if(0)var g;for(var b=!1,x={},S=0;S<a.length;S++){var O=a[S],N=o[O],I=p[O],_=N(I,h);if(typeof _>"u"){var $=h&&h.type;throw new Error(He(14))}x[O]=_,b=b||_!==I}return b=b||a.length!==Object.keys(p).length,b?x:p}}function uo(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return e.length===0?function(i){return i}:e.length===1?e[0]:e.reduce(function(i,n){return function(){return i(n.apply(void 0,arguments))}})}function zd(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(i){return function(){var n=i.apply(void 0,arguments),a=function(){throw new Error(He(15))},s={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},c=e.map(function(u){return u(s)});return a=uo.apply(void 0,c)(n.dispatch),Ca(Ca({},n),{},{dispatch:a})}}}function Hd(t){var e=function(i){var n=i.dispatch,a=i.getState;return function(s){return function(c){return typeof c=="function"?c(n,a,t):s(c)}}};return e}var Wd=Hd();Wd.withExtraArgument=Hd;var Ea=Wd;var Zd=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(i[a]=n[a])},t(e,o)};return function(e,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");t(e,o);function i(){this.constructor=e}e.prototype=o===null?Object.create(o):(i.prototype=o.prototype,new i)}}(),Rp=function(t,e){var o={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,n,a,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(p){return function(h){return u([p,h])}}function u(p){if(i)throw new TypeError("Generator is already executing.");for(;o;)try{if(i=1,n&&(a=p[0]&2?n.return:p[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,p[1])).done)return a;switch(n=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return o.label++,{value:p[1],done:!1};case 5:o.label++,n=p[1],p=[0];continue;case 7:p=o.ops.pop(),o.trys.pop();continue;default:if(a=o.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){o=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){o.label=p[1];break}if(p[0]===6&&o.label<a[1]){o.label=a[1],a=p;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(p);break}a[2]&&o.ops.pop(),o.trys.pop();continue}p=e.call(t,o)}catch(h){p=[6,h],n=0}finally{i=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},po=function(t,e){for(var o=0,i=e.length,n=t.length;o<i;o++,n++)t[n]=e[o];return t},Tp=Object.defineProperty,Ip=Object.defineProperties,_p=Object.getOwnPropertyDescriptors,Gd=Object.getOwnPropertySymbols,Np=Object.prototype.hasOwnProperty,Lp=Object.prototype.propertyIsEnumerable,Vd=function(t,e,o){return e in t?Tp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},dr=function(t,e){for(var o in e||(e={}))Np.call(e,o)&&Vd(t,o,e[o]);if(Gd)for(var i=0,n=Gd(e);i<n.length;i++){var o=n[i];Lp.call(e,o)&&Vd(t,o,e[o])}return t},Aa=function(t,e){return Ip(t,_p(e))},kp=function(t,e,o){return new Promise(function(i,n){var a=function(u){try{c(o.next(u))}catch(p){n(p)}},s=function(u){try{c(o.throw(u))}catch(p){n(p)}},c=function(u){return u.done?i(u.value):Promise.resolve(u.value).then(a,s)};c((o=o.apply(t,e)).next())})};var Pp=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?uo:uo.apply(null,arguments)},$C=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Dp(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var o=e;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return e===o}var $p=function(t){Zd(e,t);function e(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var n=t.apply(this,o)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,po([void 0],o[0].concat(this)))):new(e.bind.apply(e,po([void 0],o.concat(this))))},e}(Array),Mp=function(t){Zd(e,t);function e(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var n=t.apply(this,o)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,po([void 0],o[0].concat(this)))):new(e.bind.apply(e,po([void 0],o.concat(this))))},e}(Array);function Ia(t){return Ct(t)?Li(t,function(){}):t}function Bp(t){return typeof t=="boolean"}function Fp(){return function(e){return Up(e)}}function Up(t){t===void 0&&(t={});var e=t.thunk,o=e===void 0?!0:e,i=t.immutableCheck,n=i===void 0?!0:i,a=t.serializableCheck,s=a===void 0?!0:a,c=new $p;if(o&&(Bp(o)?c.push(Ea):c.push(Ea.withExtraArgument(o.extraArgument))),0){if(n)var u;if(s)var p}return c}var Ra=!0;function qd(t){var e=Fp(),o=t||{},i=o.reducer,n=i===void 0?void 0:i,a=o.middleware,s=a===void 0?e():a,c=o.devTools,u=c===void 0?!0:c,p=o.preloadedState,h=p===void 0?void 0:p,g=o.enhancers,b=g===void 0?void 0:g,x;if(typeof n=="function")x=n;else if(Dp(n))x=Ud(n);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var S=s;if(typeof S=="function"&&(S=S(e),!Ra&&!Array.isArray(S)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Ra&&S.some(function(H){return typeof H!="function"}))throw new Error("each middleware provided to configureStore must be a function");var O=zd.apply(void 0,S),N=uo;u&&(N=Pp(dr({trace:!Ra},typeof u=="object"&&u)));var I=new Mp(O),_=I;Array.isArray(b)?_=po([O],b):typeof b=="function"&&(_=b(I));var $=N.apply(void 0,_);return wa(x,h,$)}function ur(t,e){function o(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(e){var a=e.apply(void 0,i);if(!a)throw new Error("prepareAction did not return an object");return dr(dr({type:t,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:t,payload:i[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(i){return i.type===t},o}function Yd(t){var e={},o=[],i,n={addCase:function(a,s){var c=typeof a=="string"?a:a.type;if(c in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[c]=s,n},addMatcher:function(a,s){return o.push({matcher:a,reducer:s}),n},addDefaultCase:function(a){return i=a,n}};return t(n),[e,o,i]}function zp(t){return typeof t=="function"}function Hp(t,e,o,i){o===void 0&&(o=[]);var n=typeof e=="function"?Yd(e):[e,o,i],a=n[0],s=n[1],c=n[2],u;if(zp(t))u=function(){return Ia(t())};else{var p=Ia(t);u=function(){return p}}function h(g,b){g===void 0&&(g=u());var x=po([a[b.type]],s.filter(function(S){var O=S.matcher;return O(b)}).map(function(S){var O=S.reducer;return O}));return x.filter(function(S){return!!S}).length===0&&(x=[c]),x.reduce(function(S,O){if(O)if(Kt(S)){var N=S,I=O(N,b);return I===void 0?S:I}else{if(Ct(S))return Li(S,function(_){return O(_,b)});var I=O(S,b);if(I===void 0){if(S===null)return S;throw Error("A case reducer on a non-draftable value must not return undefined")}return I}return S},g)}return h.getInitialState=u,h}function Wp(t,e){return t+"/"+e}function Xd(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof t.initialState=="function"?t.initialState:Ia(t.initialState),i=t.reducers||{},n=Object.keys(i),a={},s={},c={};n.forEach(function(h){var g=i[h],b=Wp(e,h),x,S;"reducer"in g?(x=g.reducer,S=g.prepare):x=g,a[h]=x,s[b]=x,c[h]=S?ur(b,S):ur(b)});function u(){var h=typeof t.extraReducers=="function"?Yd(t.extraReducers):[t.extraReducers],g=h[0],b=g===void 0?{}:g,x=h[1],S=x===void 0?[]:x,O=h[2],N=O===void 0?void 0:O,I=dr(dr({},b),s);return Hp(o,function(_){for(var $ in I)_.addCase($,I[$]);for(var H=0,W=S;H<W.length;H++){var Ye=W[H];_.addMatcher(Ye.matcher,Ye.reducer)}N&&_.addDefaultCase(N)})}var p;return{name:e,reducer:function(h,g){return p||(p=u()),p(h,g)},actions:c,caseReducers:a,getInitialState:function(){return p||(p=u()),p.getInitialState()}}}var Gp="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Vp=function(t){t===void 0&&(t=21);for(var e="",o=t;o--;)e+=Gp[Math.random()*64|0];return e},jp=["name","message","stack","code"],Ta=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),jd=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Kp=function(t){if(typeof t=="object"&&t!==null){for(var e={},o=0,i=jp;o<i.length;o++){var n=i[o];typeof t[n]=="string"&&(e[n]=t[n])}return e}return{message:String(t)}},UC=function(){function t(e,o,i){var n=ur(e+"/fulfilled",function(h,g,b,x){return{payload:h,meta:Aa(dr({},x||{}),{arg:b,requestId:g,requestStatus:"fulfilled"})}}),a=ur(e+"/pending",function(h,g,b){return{payload:void 0,meta:Aa(dr({},b||{}),{arg:g,requestId:h,requestStatus:"pending"})}}),s=ur(e+"/rejected",function(h,g,b,x,S){return{payload:x,error:(i&&i.serializeError||Kp)(h||"Rejected"),meta:Aa(dr({},S||{}),{arg:b,requestId:g,rejectedWithValue:!!x,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),c=!1,u=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function p(h){return function(g,b,x){var S=i?.idGenerator?i.idGenerator(h):Vp(),O=new u,N,I=!1;function _(H){N=H,O.abort()}var $=function(){return kp(this,null,function(){var H,W,Ye,Et,Ve,At,Le;return Rp(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),Et=(H=i?.condition)==null?void 0:H.call(i,h,{getState:b,extra:x}),qp(Et)?[4,Et]:[3,2];case 1:Et=y.sent(),y.label=2;case 2:if(Et===!1||O.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return I=!0,Ve=new Promise(function(v,P){return O.signal.addEventListener("abort",function(){return P({name:"AbortError",message:N||"Aborted"})})}),g(a(S,h,(W=i?.getPendingMeta)==null?void 0:W.call(i,{requestId:S,arg:h},{getState:b,extra:x}))),[4,Promise.race([Ve,Promise.resolve(o(h,{dispatch:g,getState:b,extra:x,requestId:S,signal:O.signal,abort:_,rejectWithValue:function(v,P){return new Ta(v,P)},fulfillWithValue:function(v,P){return new jd(v,P)}})).then(function(v){if(v instanceof Ta)throw v;return v instanceof jd?n(v.payload,S,h,v.meta):n(v,S,h)})])];case 3:return Ye=y.sent(),[3,5];case 4:return At=y.sent(),Ye=At instanceof Ta?s(null,S,h,At.payload,At.meta):s(At,S,h),[3,5];case 5:return Le=i&&!i.dispatchConditionRejection&&s.match(Ye)&&Ye.meta.condition,Le||g(Ye),[2,Ye]}})})}();return Object.assign($,{abort:_,requestId:S,arg:h,unwrap:function(){return $.then(Zp)}})}}return Object.assign(p,{pending:a,rejected:s,fulfilled:n,typePrefix:e})}return t.withTypes=function(){return t},t}();function Zp(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function qp(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Qd="listener",Jd="completed",eu="cancelled",zC="task-"+eu,HC="task-"+Jd,WC=Qd+"-"+eu,GC=Qd+"-"+Jd;var _a="listenerMiddleware";var VC=ur(_a+"/add"),jC=ur(_a+"/removeAll"),KC=ur(_a+"/remove");var Kd,ZC=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Kd||(Kd=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Yp=function(t){return function(e){setTimeout(e,t)}},qC=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Yp(10);Ld();var Xp=Oi(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(o,i,n){this.eventBus.addEventListener(o,i,n)}dispatchEvent(o){return this.eventBus.dispatchEvent(o)}removeEventListener(o,i,n){this.eventBus.removeEventListener(o,i,n)}}}),Pi=class extends Xp(Object){};window.ftReduxStores||(window.ftReduxStores={});var tu=class t extends Pi{static get(e){var o;let i=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,a=window.ftReduxStores[i];if(Ti(a))return a;if(n==null)return;let s=Xd({...n,reducers:(o=n.reducers)!==null&&o!==void 0?o:{}}),c=qd({reducer:(u,p)=>p.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...u,...p.overwrites}:s.reducer(u,p)});return window.ftReduxStores[n.name]=new t(s,c,n.eventBus)}constructor(e,o,i){super(),this.reduxSlice=e,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new wi;let n=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,s,c)=>{let u=s,p=a[u];return p?(...h)=>{let g=p(...h.map(n));return this.reduxStore.dispatch(g),g}:h=>{this.setState({[u]:n(h)})}}}),this.eventBus=i??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var Di=class{static format(e,o,i,n){return window.moment?window.moment(e).locale(o).format(this.getMomentDateFormat(i,n)):this.getIntlDateTime(e,o,i,n)}static getMomentDateFormat(e,o){return e?o?"lll":"ll":o?"L LT":"L"}static getIntlDateTime(e,o,i,n){let a=typeof e=="string"?new Date(e):e,s=new Intl.DateTimeFormat(o,{dateStyle:i?"medium":"short"}).format(a);if(!n)return s;let c=new Intl.DateTimeFormat(o,{timeStyle:"short"}).format(a);return`${s} ${c}`}};var ru=m(T()),$i=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},xO=(0,ru.applyMixinOnce)(Symbol("withDateFormat"),function(t){class e extends t{constructor(...i){super(i),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(E)}dateFormatOptionsChanged(i){return i.has("metadataDescriptors")||i.has("useLongDateFormat")||i.has("useDateTimeFormat")||i.has("uiLocale")}getDateFormatter(i){var n,a;return((a=(n=this.metadataDescriptors.find(c=>c.key===i))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1)?c=>Di.format(c,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return $i([(0,Na.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),$i([(0,Na.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),$i([sa({store:E.name,selector:o=>{var i,n;return(n=(i=o.metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&n!==void 0?n:[]}})],e.prototype,"metadataDescriptors",void 0),$i([sa({store:E.name})],e.prototype,"uiLocale",void 0),e});var Fi=m(T());var Mi=class extends qe{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=E.getState().session;return!!e?.sessionAuthenticated}};var Bi=class extends qe{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=E.getState().session;return!!e?.sessionAuthenticated}};var Qp="ft-user-assets",Jp={setAssetCount:(t,e)=>{let{userAssetType:o,count:i}=e.payload.assetCount;t.assetCounts.allAsset[o]=i},clearAssetCount:t=>{Object.values(vr).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let o=e.payload.mapId;t.assetCounts.bookmarkByMap[o]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}}},at=Fi.FtReduxStore.get({name:Qp,reducers:Jp,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(vr).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),La=class{constructor(e=new Mi,o=new Bi){this.assetCountsService=e,this.assetLabelsService=o,this.currentSession=E.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new mi,this.savedSearchesService=new vi,E.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:o}=E.getState();(0,Fi.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),at.actions.clearAssetCount(),at.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),at.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),at.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();at.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();at.actions.assetLabels(e)}async loadAssetCount(e){let o=await this.assetCountsService.getUserAssetCount(e);o&&at.actions.setAssetCount({assetCount:o})}async loadBookmarkByMapId(e){let o=await this.assetCountsService.getUserBookmarkCountByMap(e);o&&at.actions.setBookmarkCountByMap({count:o.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let o=Object.keys(at.getState().assetCounts.bookmarkByMap).length!==0;e===vr.BOOKMARKS&&o&&at.actions.clearBookmarkCountByMap(),at.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let o=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;at.actions.bookmarks(o)}}},ka=new La;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=ka);(0,ou.customElement)("ft-app-context")(ie);var au=m(Z());var Pa=class{fromLocalizableLabel(e){return e.type=="PLAIN_TEXT"?{message:e.text}:{key:e.key,custom:e.type=="LOCALIZED_CUSTOM",context:e.context,message:e.key}}fromAttribute(e){if(e!=null)try{return JSON.parse(e)}catch{if(this.isI18nKey(e)){let[i,n]=e.split(".");return{context:i,key:n,message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},iu=new Pa;var ef=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},tf=Symbol("i18nAttributes"),rf=Symbol("i18nListAttributes"),Uo=Symbol("i18nProperties"),Ui=Symbol("i18nContexts"),Fo=Symbol("i18nUnsubs"),pr=(0,fo.applyMixinOnce)(Symbol("withI18n"),function(t){var e,o;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[o]=new Map}getI18nService(a){return a??this.useCustomMessageContexts?xi:io}i18n(a){let{context:s,key:c,message:u}=a,{custom:p,args:h,argsProvider:g}=a;if(s&&c){this.hasI18nContext(s)||this.addI18nContext(s,void 0,p);let b=h??(g?g(this):[]);return this.getI18nService(p).resolveMessage(s,c,...b)}return u}async awaitI18n(a){let{context:s,custom:c}=a;return s&&await this.getI18nService(c).prepareContext(s),this.i18n(a)}customI18n(a,s){if(iu.isI18nKey(a)){let[c,u]=a.split(".");return this.i18n({custom:!0,context:c,key:u,...s})||a}return a}firstUpdated(a){super.firstUpdated(a),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(a){super.update(a),this.updateI18nAttributes((s,c,u)=>a.has(c)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(a){this.updateI18nAttributes((s,c,u)=>{var p;return((p=u?.context)===null||p===void 0?void 0:p.toLowerCase())===a}),this.updateI18nProperties(s=>s.context.toLowerCase()===a),this.requestUpdate()}updateI18nAttributes(a){var s,c;let u=this,p=(h,g,b)=>b?.context&&b.key&&a(h,g,b)?{...b,message:this.i18n({context:b.context,key:b.key,custom:b.custom,...h})}:b;(s=this[tf])===null||s===void 0||s.forEach((h,g)=>u[g]=p(h,g,u[g])),(c=this[rf])===null||c===void 0||c.forEach((h,g)=>{var b;return u[g]=(b=u[g])===null||b===void 0?void 0:b.map(x=>p(h,g,x))})}updateI18nProperties(a){var s;(s=this[Uo])===null||s===void 0||s.forEach((c,u)=>{a(c,u)&&(this[u]=this.i18n(c))})}addI18nMessages(a,s,c){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(a,s,c)}addI18nContext(a,s,c){let u=(typeof a=="string"?a:a.name).toLowerCase();c=typeof a=="string"?c:a.custom,this[Ui].set(u,{isCustomContext:c}),this[Fo].has(u)||this[Fo].set(u,this.getI18nService(c).subscribe(u,()=>this.onI18nUpdate(u))),this.getI18nService(c).prepareContext(u,s)}hasI18nContext(a){return this[Ui].has(a.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Ui].forEach((a,s)=>this.addI18nContext(s,void 0,a.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Fo].forEach(a=>a()),this[Fo].clear()}}return e=Ui,o=Fo,ef([(0,au.property)({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),nu=class extends pr(fo.FtLitElement){},zi=class extends pr(fo.FtLitElementRedux){};var zo=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},Ot=class extends zi{constructor(){super(),this.editorMode=!1,this.addStore(E)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":Hi.nothing:Hi.html`
1669
1669
  <span class="ft-i18n">
1670
1670
  ${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
1671
1671
  </span>
1672
- `}update(e){var o;super.update(e),["context","key","defaultMessage"].some(i=>e.has(i))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(o=this.defaultMessage)!==null&&o!==void 0?o:""})}};Ot.elementDefinitions={};Ot.styles=ed;zo([(0,Gi.redux)()],Ot.prototype,"editorMode",void 0);zo([(0,Wi.property)()],Ot.prototype,"context",void 0);zo([(0,Wi.property)()],Ot.prototype,"key",void 0);zo([(0,Gi.jsonProperty)([])],Ot.prototype,"args",void 0);zo([(0,Wi.property)()],Ot.prototype,"defaultMessage",void 0);var fr=class t{static build(e){return new t(e)}static buildCustom(e){return new t(e,!0)}static fromGwt(e){return new t(e)}get service(){return this.custom?xi:io}constructor(e,o=!1){this.name=e,this.custom=o,this.properties=new Proxy({},{get:(i,n)=>{let a=n;return s=>({context:this.name,key:a,custom:this.custom,args:typeof s=="function"?void 0:s,argsProvider:typeof s=="function"?s:void 0})}}),this.messages=new Proxy({},{get:(i,n)=>(...a)=>this.service.resolveMessage(this.name,n,...a)}),this.rawMessages=new Proxy({},{get:(i,n)=>this.service.resolveRawMessage(this.name,n)}),this.keys=new Proxy({},{get:(i,n)=>()=>n})}};var Vi=(t,e)=>(o,i)=>{var n,a;o.constructor.createProperty(i,e??{attribute:!1,type:String});let s={...t,key:(n=t.key)!==null&&n!==void 0?n:i};o[Uo]=(a=o[Uo])!==null&&a!==void 0?a:new Map,o[Uo].set(i,s)};(0,su.customElement)("ft-i18n")(Ot);var V=fr.build("integratedFeedbackComponent"),lu={starsRating:"{0} stars","starsRating[\\=1]":"1 star",like:"Like",dislike:"Dislike",dichotomousYes:"Yes",dichotomousNo:"No",notRated:"Not rated",ratedNow:"Rated now",ratedToday:"Rated today",ratedOn:"Rated on {0, date}",feedbackInputLabel:"How can we improve it?",feedbackfromEmail:"Your email",feedbackfromEmailInvalid:"Please enter a valid email address",okButton:"Send feedback",cancelButton:"Cancel",moreOptionsButton:"More options",feedbackSuccess:"Feedback successfully sent. Thank you!",feedbackFailure:"Failed to send feedback. Please try again later.",ratingSuccess:"Rating successfully sent. Thank you!",ratingFailure:"Failed to send rating. Please try again later.",mapFeedbackMainTitle:"Send feedback",mapRatingSectionTitle:"Rate this document",mapDichotomousRatingSectionTitle:"Did it solve your problem?",mapFeedbackSectionTitle:"Write your review",topicFeedbackMainTitle:"Send feedback",topicRatingSectionTitle:"Rate this content",topicDichotomousRatingSectionTitle:"Did this content solve your problem?",topicFeedbackSectionTitle:"Write your review"};var $a=m(T());var Re=m(M()),z=m(Z()),gu=m(Qn()),yu=m($t());var hr=m(T());var cu=m(M()),D=m(T());var U={fontSize:D.FtCssVariableFactory.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:D.FtCssVariableFactory.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:D.FtCssVariableFactory.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:D.FtCssVariableFactory.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:D.FtCssVariableFactory.extend("--ft-text-field-helper-color","",D.designSystemVariables.colorOnSurfaceMedium),colorPrimary:D.FtCssVariableFactory.external(D.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:D.FtCssVariableFactory.external(D.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:D.FtCssVariableFactory.external(D.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:D.FtCssVariableFactory.external(D.designSystemVariables.borderRadiusS,"Design system"),colorError:D.FtCssVariableFactory.external(D.designSystemVariables.colorError,"Design system"),prefixColor:D.FtCssVariableFactory.extend("--ft-text-field-prefix-color","",D.designSystemVariables.colorOnSurfaceMedium),iconColor:D.FtCssVariableFactory.extend("--ft-text-field-icon-color","",D.designSystemVariables.colorOnSurfaceMedium),floatingZIndex:D.FtCssVariableFactory.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),backgroundColor:D.FtCssVariableFactory.extend("--ft-text-field-background-color","",D.designSystemVariables.colorSurface),colorOutline:D.FtCssVariableFactory.external(D.designSystemVariables.colorOutline,"Design system"),elevation02:D.FtCssVariableFactory.external(D.designSystemVariables.elevation02,"Design system"),suggestSize:D.FtCssVariableFactory.create("--ft-text-field-suggest-size","","SIZE","300px")},du=cu.css`
1672
+ `}update(e){var o;super.update(e),["context","key","defaultMessage"].some(i=>e.has(i))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(o=this.defaultMessage)!==null&&o!==void 0?o:""})}};Ot.elementDefinitions={};Ot.styles=ed;zo([(0,Gi.redux)()],Ot.prototype,"editorMode",void 0);zo([(0,Wi.property)()],Ot.prototype,"context",void 0);zo([(0,Wi.property)()],Ot.prototype,"key",void 0);zo([(0,Gi.jsonProperty)([])],Ot.prototype,"args",void 0);zo([(0,Wi.property)()],Ot.prototype,"defaultMessage",void 0);var fr=class t{static build(e){return new t(e)}static buildCustom(e){return new t(e,!0)}static fromGwt(e){return new t(e)}get service(){return this.custom?xi:io}constructor(e,o=!1){this.name=e,this.custom=o,this.properties=new Proxy({},{get:(i,n)=>{let a=n;return s=>({context:this.name,key:a,custom:this.custom,args:typeof s=="function"?void 0:s,argsProvider:typeof s=="function"?s:void 0})}}),this.messages=new Proxy({},{get:(i,n)=>(...a)=>this.service.resolveMessage(this.name,n,...a)}),this.rawMessages=new Proxy({},{get:(i,n)=>this.service.resolveRawMessage(this.name,n)}),this.keys=new Proxy({},{get:(i,n)=>()=>n}),this.attributes=new Proxy({},{get:(i,n)=>()=>({context:this.name,key:n,message:this.service.resolveRawMessage(this.name,n)})})}};var Vi=(t,e)=>(o,i)=>{var n,a;o.constructor.createProperty(i,e??{attribute:!1,type:String});let s={...t,key:(n=t.key)!==null&&n!==void 0?n:i};o[Uo]=(a=o[Uo])!==null&&a!==void 0?a:new Map,o[Uo].set(i,s)};(0,su.customElement)("ft-i18n")(Ot);var V=fr.build("integratedFeedbackComponent"),lu={starsRating:"{0} stars","starsRating[\\=1]":"1 star",like:"Like",dislike:"Dislike",dichotomousYes:"Yes",dichotomousNo:"No",notRated:"Not rated",ratedNow:"Rated now",ratedToday:"Rated today",ratedOn:"Rated on {0, date}",feedbackInputLabel:"How can we improve it?",feedbackfromEmail:"Your email",feedbackfromEmailInvalid:"Please enter a valid email address",okButton:"Send feedback",cancelButton:"Cancel",moreOptionsButton:"More options",feedbackSuccess:"Feedback successfully sent. Thank you!",feedbackFailure:"Failed to send feedback. Please try again later.",ratingSuccess:"Rating successfully sent. Thank you!",ratingFailure:"Failed to send rating. Please try again later.",mapFeedbackMainTitle:"Send feedback",mapRatingSectionTitle:"Rate this document",mapDichotomousRatingSectionTitle:"Did it solve your problem?",mapFeedbackSectionTitle:"Write your review",topicFeedbackMainTitle:"Send feedback",topicRatingSectionTitle:"Rate this content",topicDichotomousRatingSectionTitle:"Did this content solve your problem?",topicFeedbackSectionTitle:"Write your review"};var $a=m(T());var Re=m(M()),z=m(Z()),gu=m(Qn()),yu=m($t());var hr=m(T());var cu=m(M()),D=m(T());var U={fontSize:D.FtCssVariableFactory.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:D.FtCssVariableFactory.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:D.FtCssVariableFactory.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:D.FtCssVariableFactory.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:D.FtCssVariableFactory.extend("--ft-text-field-helper-color","",D.designSystemVariables.colorOnSurfaceMedium),colorPrimary:D.FtCssVariableFactory.external(D.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:D.FtCssVariableFactory.external(D.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:D.FtCssVariableFactory.external(D.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:D.FtCssVariableFactory.external(D.designSystemVariables.borderRadiusS,"Design system"),colorError:D.FtCssVariableFactory.external(D.designSystemVariables.colorError,"Design system"),prefixColor:D.FtCssVariableFactory.extend("--ft-text-field-prefix-color","",D.designSystemVariables.colorOnSurfaceMedium),iconColor:D.FtCssVariableFactory.extend("--ft-text-field-icon-color","",D.designSystemVariables.colorOnSurfaceMedium),floatingZIndex:D.FtCssVariableFactory.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),backgroundColor:D.FtCssVariableFactory.extend("--ft-text-field-background-color","",D.designSystemVariables.colorSurface),colorOutline:D.FtCssVariableFactory.external(D.designSystemVariables.colorOutline,"Design system"),elevation02:D.FtCssVariableFactory.external(D.designSystemVariables.elevation02,"Design system"),suggestSize:D.FtCssVariableFactory.create("--ft-text-field-suggest-size","","SIZE","300px")},du=cu.css`
1673
1673
  *:focus {
1674
1674
  outline: none;
1675
1675
  }