@fluid-topics/ft-search-sort-selector 2.0.9 → 2.0.11

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.
@@ -508,7 +508,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
508
508
  .ft-icon--material {
509
509
  font-family: ${we.materialFontFamily}, "Material Icons", sans-serif;
510
510
  }
511
- `,Ne.noTextSelect];var Qe;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(Qe||(Qe={}));var vr=v(K()),Je=v(re()),Ns=v(P()),Ms=v(Ca());var vt;(function(e){e.ADD_TO_PBK="&#xe800;",e.ALERT="&#xe801;",e.ADD_ALERT="&#xe802;",e.BACK_TO_SEARCH="&#xe803;",e.ADD_BOOKMARK="&#xe804;",e.BOOKMARK="&#xe805;",e.BOOKS="&#xe806;",e.MENU="&#xe807;",e.DOWNLOAD="&#xe808;",e.EDIT="&#xe809;",e.FEEDBACK="&#xe80a;",e.HOME="&#xe80b;",e.MODIFY_PBK="&#xe80c;",e.SCHEDULED="&#xe80d;",e.SEARCH="&#xe80e;",e.EXPORT="&#xe80f;",e.TOC="&#xe810;",e.WRITE_UGC="&#xe811;",e.TRASH="&#xe812;",e.USER="&#xe813;",e.EXTLINK="&#xe814;",e.CALENDAR="&#xe815;",e.CLOUD_SLASH="&#xe816;",e.BOOK="&#xe817;",e.DOWNLOAD_PLAIN="&#xe818;",e.CHECK="&#xe819;",e.STAR_PLAIN="&#xe900;",e.TOPICS="&#xe901;",e.DISC="&#xe902;",e.CIRCLE="&#xe903;",e.SHARED="&#xe904;",e.SORT_UNSORTED="&#xe905;",e.SORT_UP="&#xe906;",e.SORT_DOWN="&#xe907;",e.WORKING="&#xe908;",e.CLOSE="&#xe909;",e.ZOOM_OUT="&#xe90a;",e.ZOOM_IN="&#xe90b;",e.ZOOM_REALSIZE="&#xe90c;",e.ZOOM_FULLSCREEN="&#xe90d;",e.ADMIN_RESTRICTED="&#xe90e;",e.ADMIN="&#xe90f;",e.ADMIN_KHUB="&#xe910;",e.ADMIN_THEME="&#xe911;",e.ADMIN_USERS="&#xe912;",e.WARNING="&#xe913;",e.CONTEXT="&#xe914;",e.SEARCH_HOME="&#xe915;",e.STEPS="&#xe916;",e.ICON_EXPAND="&#xe917;",e.ICON_COLLAPSE="&#xe918;",e.INFO="&#xe919;",e.MINUS_PLAIN="&#xe91a;",e.PLUS_PLAIN="&#xe91b;",e.FACET_HAS_DESCENDANT="&#xe91c;",e.TRIANGLE_BOTTOM="&#xe91d;",e.TRIANGLE_LEFT="&#xe91e;",e.TRIANGLE_RIGHT="&#xe91f;",e.TRIANGLE_TOP="&#xe920;",e.THIN_ARROW="&#xe921;",e.SIGN_IN="&#xe922;",e.LOGOUT="&#xe923;",e.TRANSLATE="&#xe924;",e.CLOSE_PLAIN="&#xe925;",e.CHECK_PLAIN="&#xe926;",e.ARTICLE="&#xe927;",e.COLUMNS="&#xe928;",e.ANALYTICS="&#xe929;",e.COLLECTIONS="&#xe92a;",e.ARROW_DOWN="&#xe92b;",e.ARROW_LEFT="&#xe92c;",e.ARROW_RIGHT="&#xe92d;",e.ARROW_UP="&#xe92e;",e.SEARCH_IN_PUBLICATION="&#xe92f;",e.COPY_TO_CLIPBOARD="&#xe930;",e.SHARED_PBK="&#xe931;",e.ATTACHMENTS="&#xe932;",e.STRIPE_ARROW_LEFT="&#xe933;",e.STRIPE_ARROW_RIGHT="&#xe934;",e.FILTERS="&#xe935;",e.DOT="&#xe936;",e.MINUS="&#xe937;",e.PLUS="&#xe938;",e.MAILS_AND_NOTIFICATIONS="&#xe939;",e.SAVE="&#xe93a;",e.LOCKER="&#xe93b;",e.ADMIN_INTEGRATION="&#xe93c;",e.SYNC="&#xe93d;",e.TAG="&#xe93e;",e.BOOK_PLAIN="&#xe93f;",e.UPLOAD="&#xe940;",e.CLOUD="&#xe941;",e.TAG_PLAIN="&#xe942;",e.ACCOUNT_SETTINGS="&#xe943;",e.PRINT="&#xe944;",e.DEFAULT_ROLES="&#xe945;",e.SHORTCUT_MENU="&#xe946;",e.RELATIVES_PLAIN="&#xe947;",e.RELATIVES="&#xe948;",e.PAUSE="&#xe949;",e.PLAY="&#xe94a;",e.ADMIN_PORTAL="&#xe94b;",e.STAR="&#xe94c;",e.THUMBS_DOWN="&#xe94d;",e.THUMBS_DOWN_PLAIN="&#xe94e;",e.THUMBS_UP="&#xe94f;",e.THUMBS_UP_PLAIN="&#xe950;",e.FEEDBACK_PLAIN="&#xe951;",e.RATE_PLAIN="&#xe952;",e.RATE="&#xe953;",e.OFFLINE_SETTINGS="&#xe954;",e.MY_COLLECTIONS="&#xe955;",e.THIN_ARROW_LEFT="&#xe956;",e.THIN_ARROW_RIGHT="&#xe957;",e.RESET="&#xe958;",e.MY_LIBRARY="&#xe959;",e.UNSTRUCTURED_DOC="&#xe95a;",e.CONTEXTUAL="&#xe95b;",e.THIN_ARROW_UP="&#xe95c;",e.ARROW_RIGHT_TO_LINE="&#xe95d;",e.DESKTOP="&#xe95e;",e.TABLET_LANDSCAPE="&#xe95f;",e.TABLET_PORTRAIT="&#xe960;",e.MOBILE_LANDSCAPE="&#xe961;",e.MOBILE_PORTRAIT="&#xe962;",e.DIAGRAM_SUNBURST="&#xe963;",e.DIAGRAM_SANKEY="&#xe964;",e.COMMENT_QUESTION="&#xe965;",e.COMMENT_QUESTION_PLAIN="&#xe966;",e.MESSAGE_BOT="&#xe967;",e.CHART_SIMPLE="&#xe968;",e.BARS_PROGRESS="&#xe969;",e.BOOK_OPEN_GEAR="&#xe96a;",e.BOOK_OPEN_GEAR_SLASH="&#xe96b;",e.LINE_CHART="&#xe96c;",e.STACKED_CHART="&#xe96d;",e.CHART_BAR_STACKED="&#xe96e;",e.CHART_BAR_GROUPED="&#xe96f;",e.EYE_SLASH="&#xe970;",e.X_MARK="&#xe971;",e.EXPAND_WIDE="&#xe972;",e.PIP="&#xe973;",e.PIP_WIDE="&#xe974;",e.LIFE_RING="&#xe975;",e.GLOBE="&#xe976;",e.PIGGY_BANK="&#xe977;",e.EXTLINK_LIGHT="&#xe978;",e.CLONE="&#xe979;",e.CLONE_LINK_SIMPLE="&#xe97a;",e.CHART_BAR_NORMALIZED="&#xe97b;",e.CONSUMER="&#xe97c;",e.OCTAGON_XMARK="&#xe97d;",e.HOURGLASS_HALF="&#xe97e;",e.CLOCK="&#xe97f;",e.CLOCK_THREE="&#xe97f;",e.CALENDAR_DAY="&#xe980;",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",e.WAND_MAGIC_SPARKLES="&#xe982;",e.PAPER_PLANE="&#xe983;",e.ARROW_ROTATE_RIGHT="&#xe985;",e.ARROWS_ROTATE="&#xe986;",e.ALIGN_RIGHT="&#xe987;",e.FORMAT_CLEAR="&#xe988;",e.ALIGN_CENTER="&#xe989;",e.ALIGN_LEFT="&#xe98a;",e.PALETTE="&#xe98b;",e.BOLD="&#xe98c;",e.ITALIC="&#xe98d;",e.UNDERLINE="&#xe98e;",e.STRIKETHROUGH="&#xe98f;",e.LINK_SIMPLE_SLASH="&#xe990;",e.LINK_SIMPLE="&#xe991;",e.ROUTE="&#xe992;",e.CIRCLE_USER_SLASH="&#xe993;",e.CIRCLE_USER_CHECK="&#xe994;",e.LIST_MAGNIFYING_GLASS="&#xe995;",e.MEDAL="&#xe996;",e.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",e.ARROW_TURN_DOWN_RIGHT="&#xe998;",e.FLASK="&#xe999;",e.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",e.HOURGLASS_END="&#xe99b;",e.CIRCLE_QUESTION="&#xe99c;",e.GRIP_LINES_SOLID="&#xe99d;",e.TRANSLATE_SPARKLE_SOLID="&#xe99e;",e.CODE="&#xe99f;",e.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",e.PAPER_PLANE_SLASH="&#xe9a1;",e.COMPRESS="&#xe9a2;",e.EXPAND="&#xe9a3;",e.ARROW_ROTATE_LEFT="&#xe9a4;",e.EYE="&#xf06e;",e.SHARE="&#xe80f1;",e.MOBILE_SMALL="&#xe9a5;",e.SPARKLES="&#xe9a6;",e.HAND_SOLID="&#xe9a7;",e.CLOCK_SOLID="&#xe9a8;",e.CONTEXT_MENU_CURSOR="&#xe9a9;",e.LANGUAGE_SLASH="&#xe9aa;",e.MAGNIFYING_GLASS_FLOPPY_DISK="&#xe9ab;",e.CABINET_FILING_FLOPPY_DISK="&#xe9ac;",e.BOOKMARK_SLASH="&#xe9ad;",e.CIRCLE_PAUSE="&#xe9ae;",e.CIRCLE_PLAY="&#xe9af;",e.CIRCLE_STOP_PLAIN="&#xe9b0;",e.CIRCLE_ARROW_DOWN="&#xe9b1;",e.CIRCLE_ARROW_DOWN_SLASH="&#xe9bf;",e.SHARE_NODES="&#xe9b2;",e.BELL="&#xe9b3;",e.BELL_SLASH="&#xe9b4;",e.FILE="&#xe9b5;",e.HAND="&#xe9b6;",e.SQUARE_INFO_SOLID="&#xe9b7;",e.FILE_CODE="&#xe9b8;",e.BOX_CODE="&#xe9b9;",e.TOPICS_SOLID="&#xe9ba;",e.PHOTO_FILM_REGULAR="&#xe9bb;",e.HYPHEN_SOLID="&#xe9bc;",e.CROSSHAIRS_REGULAR="&#xe9bd;",e.PERSON_CHALKBOARD_REGULAR="&#xe9be;"})(vt||(vt={}));var A;(function(e){e.UNKNOWN="&#xe90a;",e.ABW="&#xe900;",e.AUDIO="&#xe901;",e.AVI="&#xe902;",e.CHM="&#xe904;",e.CODE="&#xe905;",e.CSV="&#xe903;",e.DITA="&#xe906;",e.EPUB="&#xe907;",e.EXCEL="&#xe908;",e.FLAC="&#xe909;",e.GIF="&#xe90b;",e.GZIP="&#xe90c;",e.HTML="&#xe90d;",e.IMAGE="&#xe90e;",e.JPEG="&#xe90f;",e.JSON="&#xe910;",e.M4A="&#xe911;",e.MOV="&#xe912;",e.MP3="&#xe913;",e.MP4="&#xe914;",e.OGG="&#xe915;",e.PDF="&#xe916;",e.PNG="&#xe917;",e.POWERPOINT="&#xe918;",e.RAR="&#xe91a;",e.STP="&#xe91b;",e.TEXT="&#xe91c;",e.VIDEO="&#xe91e;",e.WAV="&#xe91f;",e.WMA="&#xe920;",e.WORD="&#xe921;",e.XML="&#xe922;",e.YAML="&#xe919;",e.ZIP="&#xe923;"})(A||(A={}));var r9=new Map([...["abw"].map(e=>[e,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(e=>[e,A.AUDIO]),...["avi"].map(e=>[e,A.AVI]),...["chm","xhs"].map(e=>[e,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(e=>[e,A.CODE]),...["csv"].map(e=>[e,A.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,A.DITA]),...["epub"].map(e=>[e,A.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,A.EXCEL]),...["flac"].map(e=>[e,A.FLAC]),...["gif"].map(e=>[e,A.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,A.GZIP]),...["html","htm","xhtml"].map(e=>[e,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(e=>[e,A.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,A.JPEG]),...["json"].map(e=>[e,A.JSON]),...["m4a","m4p"].map(e=>[e,A.M4A]),...["mov","qt"].map(e=>[e,A.MOV]),...["mp3"].map(e=>[e,A.MP3]),...["mp4","m4v"].map(e=>[e,A.MP4]),...["ogg","oga"].map(e=>[e,A.OGG]),...["pdf","ps"].map(e=>[e,A.PDF]),...["png"].map(e=>[e,A.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,A.POWERPOINT]),...["rar"].map(e=>[e,A.RAR]),...["stp"].map(e=>[e,A.STP]),...["txt","rtf","md","mdown"].map(e=>[e,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(e=>[e,A.VIDEO]),...["wav"].map(e=>[e,A.WAV]),...["wma"].map(e=>[e,A.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,A.WORD]),...["xml","xsl","rdf"].map(e=>[e,A.XML]),...["yaml","yml","x-yaml"].map(e=>[e,A.YAML]),...["zip"].map(e=>[e,A.ZIP])]);var o9={[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 Sr=function(e,t,o,a){var n=arguments.length,i=n<3?t:a===null?a=Object.getOwnPropertyDescriptor(t,o):a,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,a);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(i=(n<3?s(i):n>3?s(t,o,i):s(t,o))||i);return n>3&&i&&Object.defineProperty(t,o,i),i},be=class extends Ns.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=vr.nothing}render(){let t=this.variant&&Object.values(Qe).includes(this.variant)?this.variant:Qe.fluid_topics,o=t!==Qe.material||!!this.value;return vr.html`
511
+ `,Ne.noTextSelect];var Qe;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(Qe||(Qe={}));var vr=v(K()),Je=v(re()),Ns=v(P()),Ms=v(Ca());var vt;(function(e){e.ADD_TO_PBK="&#xe800;",e.ALERT="&#xe801;",e.ADD_ALERT="&#xe802;",e.BACK_TO_SEARCH="&#xe803;",e.ADD_BOOKMARK="&#xe804;",e.BOOKMARK="&#xe805;",e.BOOKS="&#xe806;",e.MENU="&#xe807;",e.DOWNLOAD="&#xe808;",e.EDIT="&#xe809;",e.FEEDBACK="&#xe80a;",e.HOME="&#xe80b;",e.MODIFY_PBK="&#xe80c;",e.SCHEDULED="&#xe80d;",e.SEARCH="&#xe80e;",e.EXPORT="&#xe80f;",e.TOC="&#xe810;",e.WRITE_UGC="&#xe811;",e.TRASH="&#xe812;",e.USER="&#xe813;",e.EXTLINK="&#xe814;",e.CALENDAR="&#xe815;",e.OFFLINE="&#xe816;",e.BOOK="&#xe817;",e.DOWNLOAD_PLAIN="&#xe818;",e.CHECK="&#xe819;",e.STAR_PLAIN="&#xe900;",e.TOPICS="&#xe901;",e.DISC="&#xe902;",e.CIRCLE="&#xe903;",e.SHARED="&#xe904;",e.SORT_UNSORTED="&#xe905;",e.SORT_UP="&#xe906;",e.SORT_DOWN="&#xe907;",e.WORKING="&#xe908;",e.CLOSE="&#xe909;",e.ZOOM_OUT="&#xe90a;",e.ZOOM_IN="&#xe90b;",e.ZOOM_REALSIZE="&#xe90c;",e.ZOOM_FULLSCREEN="&#xe90d;",e.ADMIN_RESTRICTED="&#xe90e;",e.ADMIN="&#xe90f;",e.ADMIN_KHUB="&#xe910;",e.ADMIN_THEME="&#xe911;",e.ADMIN_USERS="&#xe912;",e.WARNING="&#xe913;",e.CONTEXT="&#xe914;",e.SEARCH_HOME="&#xe915;",e.STEPS="&#xe916;",e.ICON_EXPAND="&#xe917;",e.ICON_COLLAPSE="&#xe918;",e.INFO="&#xe919;",e.MINUS_PLAIN="&#xe91a;",e.PLUS_PLAIN="&#xe91b;",e.FACET_HAS_DESCENDANT="&#xe91c;",e.TRIANGLE_BOTTOM="&#xe91d;",e.TRIANGLE_LEFT="&#xe91e;",e.TRIANGLE_RIGHT="&#xe91f;",e.TRIANGLE_TOP="&#xe920;",e.THIN_ARROW="&#xe921;",e.SIGN_IN="&#xe922;",e.LOGOUT="&#xe923;",e.TRANSLATE="&#xe924;",e.CLOSE_PLAIN="&#xe925;",e.CHECK_PLAIN="&#xe926;",e.ARTICLE="&#xe927;",e.COLUMNS="&#xe928;",e.ANALYTICS="&#xe929;",e.COLLECTIONS="&#xe92a;",e.ARROW_DOWN="&#xe92b;",e.ARROW_LEFT="&#xe92c;",e.ARROW_RIGHT="&#xe92d;",e.ARROW_UP="&#xe92e;",e.SEARCH_IN_PUBLICATION="&#xe92f;",e.COPY_TO_CLIPBOARD="&#xe930;",e.SHARED_PBK="&#xe931;",e.ATTACHMENTS="&#xe932;",e.STRIPE_ARROW_LEFT="&#xe933;",e.STRIPE_ARROW_RIGHT="&#xe934;",e.FILTERS="&#xe935;",e.DOT="&#xe936;",e.MINUS="&#xe937;",e.PLUS="&#xe938;",e.MAILS_AND_NOTIFICATIONS="&#xe939;",e.SAVE="&#xe93a;",e.LOCKER="&#xe93b;",e.ADMIN_INTEGRATION="&#xe93c;",e.SYNC="&#xe93d;",e.TAG="&#xe93e;",e.BOOK_PLAIN="&#xe93f;",e.UPLOAD="&#xe940;",e.ONLINE="&#xe941;",e.TAG_PLAIN="&#xe942;",e.ACCOUNT_SETTINGS="&#xe943;",e.PRINT="&#xe944;",e.DEFAULT_ROLES="&#xe945;",e.SHORTCUT_MENU="&#xe946;",e.RELATIVES_PLAIN="&#xe947;",e.RELATIVES="&#xe948;",e.PAUSE="&#xe949;",e.PLAY="&#xe94a;",e.ADMIN_PORTAL="&#xe94b;",e.STAR="&#xe94c;",e.THUMBS_DOWN="&#xe94d;",e.THUMBS_DOWN_PLAIN="&#xe94e;",e.THUMBS_UP="&#xe94f;",e.THUMBS_UP_PLAIN="&#xe950;",e.FEEDBACK_PLAIN="&#xe951;",e.RATE_PLAIN="&#xe952;",e.RATE="&#xe953;",e.OFFLINE_SETTINGS="&#xe954;",e.MY_COLLECTIONS="&#xe955;",e.THIN_ARROW_LEFT="&#xe956;",e.THIN_ARROW_RIGHT="&#xe957;",e.RESET="&#xe958;",e.MY_LIBRARY="&#xe959;",e.UNSTRUCTURED_DOC="&#xe95a;",e.CONTEXTUAL="&#xe95b;",e.THIN_ARROW_UP="&#xe95c;",e.ARROW_RIGHT_TO_LINE="&#xe95d;",e.DESKTOP="&#xe95e;",e.TABLET_LANDSCAPE="&#xe95f;",e.TABLET_PORTRAIT="&#xe960;",e.MOBILE_LANDSCAPE="&#xe961;",e.MOBILE_PORTRAIT="&#xe962;",e.DIAGRAM_SUNBURST="&#xe963;",e.DIAGRAM_SANKEY="&#xe964;",e.COMMENT_QUESTION="&#xe965;",e.COMMENT_QUESTION_PLAIN="&#xe966;",e.MESSAGE_BOT="&#xe967;",e.CHART_SIMPLE="&#xe968;",e.BARS_PROGRESS="&#xe969;",e.BOOK_OPEN_GEAR="&#xe96a;",e.BOOK_OPEN_GEAR_SLASH="&#xe96b;",e.LINE_CHART="&#xe96c;",e.STACKED_CHART="&#xe96d;",e.CHART_BAR_STACKED="&#xe96e;",e.CHART_BAR_GROUPED="&#xe96f;",e.EYE_SLASH="&#xe970;",e.X_MARK="&#xe971;",e.EXPAND_WIDE="&#xe972;",e.PIP="&#xe973;",e.PIP_WIDE="&#xe974;",e.LIFE_RING="&#xe975;",e.GLOBE="&#xe976;",e.PIGGY_BANK="&#xe977;",e.EXTLINK_LIGHT="&#xe978;",e.CLONE="&#xe979;",e.CLONE_LINK_SIMPLE="&#xe97a;",e.CHART_BAR_NORMALIZED="&#xe97b;",e.CONSUMER="&#xe97c;",e.OCTAGON_XMARK="&#xe97d;",e.HOURGLASS_HALF="&#xe97e;",e.CLOCK="&#xe97f;",e.CLOCK_THREE="&#xe97f;",e.CALENDAR_DAY="&#xe980;",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",e.WAND_MAGIC_SPARKLES="&#xe982;",e.PAPER_PLANE="&#xe983;",e.CIRCLE_STOP="&#xe984;",e.ARROW_ROTATE_RIGHT="&#xe985;",e.ARROWS_ROTATE="&#xe986;",e.ALIGN_RIGHT="&#xe987;",e.FORMAT_CLEAR="&#xe988;",e.ALIGN_CENTER="&#xe989;",e.ALIGN_LEFT="&#xe98a;",e.PALETTE="&#xe98b;",e.BOLD="&#xe98c;",e.ITALIC="&#xe98d;",e.UNDERLINE="&#xe98e;",e.STRIKETHROUGH="&#xe98f;",e.LINK_SIMPLE_SLASH="&#xe990;",e.LINK_SIMPLE="&#xe991;",e.ROUTE="&#xe992;",e.CIRCLE_USER_SLASH="&#xe993;",e.CIRCLE_USER_CHECK="&#xe994;",e.LIST_MAGNIFYING_GLASS="&#xe995;",e.MEDAL="&#xe996;",e.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",e.ARROW_TURN_DOWN_RIGHT="&#xe998;",e.FLASK="&#xe999;",e.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",e.HOURGLASS_END="&#xe99b;",e.CIRCLE_QUESTION="&#xe99c;",e.GRIP_LINES_SOLID="&#xe99d;",e.TRANSLATE_SPARKLE_SOLID="&#xe99e;",e.CODE="&#xe99f;",e.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",e.PAPER_PLANE_SLASH="&#xe9a1;",e.COMPRESS="&#xe9a2;",e.EXPAND="&#xe9a3;",e.ARROW_ROTATE_LEFT="&#xe9a4;",e.EYE="&#xf06e;",e.SHARE="&#xe80f1;",e.MOBILE_SMALL="&#xe9a5;",e.SPARKLES="&#xe9a6;",e.HAND_SOLID="&#xe9a7;",e.CLOCK_SOLID="&#xe9a8;",e.CONTEXT_MENU_CURSOR="&#xe9a9;",e.LANGUAGE_SLASH="&#xe9aa;",e.MAGNIFYING_GLASS_FLOPPY_DISK="&#xe9ab;",e.CABINET_FILING_FLOPPY_DISK="&#xe9ac;",e.BOOKMARK_SLASH="&#xe9ad;",e.CIRCLE_PAUSE="&#xe9ae;",e.CIRCLE_PLAY="&#xe9af;",e.CIRCLE_STOP_PLAIN="&#xe9b0;",e.CLOUD_ARROW_DOWN="&#xe9b1;",e.SHARE_NODES="&#xe9b2;",e.BELL="&#xe9b3;",e.BELL_SLASH="&#xe9b4;",e.FILE="&#xe9b5;",e.HAND="&#xe9b6;",e.SQUARE_INFO_SOLID="&#xe9b7;",e.FILE_CODE="&#xe9b8;",e.BOX_CODE="&#xe9b9;",e.TOPICS_SOLID="&#xe9ba;",e.PHOTO_FILM_REGULAR="&#xe9bb;",e.HYPHEN_SOLID="&#xe9bc;",e.CROSSHAIRS_REGULAR="&#xe9bd;",e.PERSON_CHALKBOARD_REGULAR="&#xe9be;"})(vt||(vt={}));var A;(function(e){e.UNKNOWN="&#xe90a;",e.ABW="&#xe900;",e.AUDIO="&#xe901;",e.AVI="&#xe902;",e.CHM="&#xe904;",e.CODE="&#xe905;",e.CSV="&#xe903;",e.DITA="&#xe906;",e.EPUB="&#xe907;",e.EXCEL="&#xe908;",e.FLAC="&#xe909;",e.GIF="&#xe90b;",e.GZIP="&#xe90c;",e.HTML="&#xe90d;",e.IMAGE="&#xe90e;",e.JPEG="&#xe90f;",e.JSON="&#xe910;",e.M4A="&#xe911;",e.MOV="&#xe912;",e.MP3="&#xe913;",e.MP4="&#xe914;",e.OGG="&#xe915;",e.PDF="&#xe916;",e.PNG="&#xe917;",e.POWERPOINT="&#xe918;",e.RAR="&#xe91a;",e.STP="&#xe91b;",e.TEXT="&#xe91c;",e.VIDEO="&#xe91e;",e.WAV="&#xe91f;",e.WMA="&#xe920;",e.WORD="&#xe921;",e.XML="&#xe922;",e.YAML="&#xe919;",e.ZIP="&#xe923;"})(A||(A={}));var r9=new Map([...["abw"].map(e=>[e,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(e=>[e,A.AUDIO]),...["avi"].map(e=>[e,A.AVI]),...["chm","xhs"].map(e=>[e,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(e=>[e,A.CODE]),...["csv"].map(e=>[e,A.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,A.DITA]),...["epub"].map(e=>[e,A.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,A.EXCEL]),...["flac"].map(e=>[e,A.FLAC]),...["gif"].map(e=>[e,A.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,A.GZIP]),...["html","htm","xhtml"].map(e=>[e,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(e=>[e,A.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,A.JPEG]),...["json"].map(e=>[e,A.JSON]),...["m4a","m4p"].map(e=>[e,A.M4A]),...["mov","qt"].map(e=>[e,A.MOV]),...["mp3"].map(e=>[e,A.MP3]),...["mp4","m4v"].map(e=>[e,A.MP4]),...["ogg","oga"].map(e=>[e,A.OGG]),...["pdf","ps"].map(e=>[e,A.PDF]),...["png"].map(e=>[e,A.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,A.POWERPOINT]),...["rar"].map(e=>[e,A.RAR]),...["stp"].map(e=>[e,A.STP]),...["txt","rtf","md","mdown"].map(e=>[e,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(e=>[e,A.VIDEO]),...["wav"].map(e=>[e,A.WAV]),...["wma"].map(e=>[e,A.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,A.WORD]),...["xml","xsl","rdf"].map(e=>[e,A.XML]),...["yaml","yml","x-yaml"].map(e=>[e,A.YAML]),...["zip"].map(e=>[e,A.ZIP])]);var o9={[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 Sr=function(e,t,o,a){var n=arguments.length,i=n<3?t:a===null?a=Object.getOwnPropertyDescriptor(t,o):a,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,a);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(i=(n<3?s(i):n>3?s(t,o,i):s(t,o))||i);return n>3&&i&&Object.defineProperty(t,o,i),i},be=class extends Ns.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=vr.nothing}render(){let t=this.variant&&Object.values(Qe).includes(this.variant)?this.variant:Qe.fluid_topics,o=t!==Qe.material||!!this.value;return vr.html`
512
512
  <i class="ft-icon ft-icon--${t} ft-no-text-select" part="icon icon-${t}">
513
513
  ${(0,Ms.unsafeHTML)(this.resolvedIcon)}
514
514
  <slot ?hidden=${o}></slot>
@@ -1317,7 +1317,7 @@ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
1317
1317
  label="${t.label}"
1318
1318
  .value=${t.value}
1319
1319
  ></ft-select-option>
1320
- `}willUpdate(t){super.willUpdate(t),t.has("options")&&(this.selectedOption=this.options.filter(o=>o.selected)[0]),t.has("selectedOption")&&(this.optionsDisplayed=!1)}contentAvailableCallback(t){var o,a;if(super.contentAvailableCallback(t),t.has("focusOptions")&&this.focusOptions&&((a=(o=this.selectedOptionElement)!==null&&o!==void 0?o:this.firstOption)===null||a===void 0||a.focus(),this.focusOptions=!1),t.has("optionsDisplayed")&&this.hasOptionsMenuOpen){this.optionsMenu.style.minWidth=this.mainPanel.getBoundingClientRect().width+"px";let n=["bottom","top"];(0,Ee.computeOffsetAutoPosition)(this.mainPanel,this.optionsMenu,"bottom",n,"fixed",U.optionsHeight,0).then(({x:i,y:s})=>{this.optionsMenu.style.left=`${i}px`,this.optionsMenu.style.top=`${s}px`})}}get hasOptionsMenuOpen(){return!this.disabled&&this.optionsDisplayed&&this.hasOptions}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(t){var o;t.stopPropagation(),this.isSlotEmpty=(0,Ee.isSlotEmptyOrWithoutContent)(this.optionsSlot);let a=(o=this.optionsSlot)===null||o===void 0?void 0:o.assignedElements().map(n=>n);a&&a.length>0&&(this.options=a)}onMainPanelKeyDown(t){switch(t.key){case" ":t.preventDefault(),t.stopPropagation();case"Enter":this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=!0;break;case"ArrowUp":case"ArrowDown":t.preventDefault(),t.stopPropagation(),this.optionsDisplayed=!0,this.focusOptions=!0;break}}onOptionsKeyDown(t){var o,a;let n,i=this.focusedOption?this.optionsList.indexOf(this.focusedOption):0;switch(t.key){case" ":case"Enter":t.preventDefault(),t.stopPropagation(),this.onSelectOption(t),this.optionsDisplayed=!1,(o=this.mainPanel)===null||o===void 0||o.focus();break;case"Escape":this.optionsDisplayed=!1,(a=this.mainPanel)===null||a===void 0||a.focus();break;case"Tab":this.optionsDisplayed=!1;break;case"ArrowUp":t.preventDefault(),t.stopPropagation(),n=this.optionsList[(i-1+this.optionsList.length)%this.optionsList.length];break;case"ArrowDown":t.preventDefault(),t.stopPropagation(),n=this.optionsList[(i+1)%this.optionsList.length];break;default:if(t.key.length!=1)break;this.isKeyAlphanumeric(t.key)&&(n=this.handleAlphanumericPress(t.key));break}n?.focus()}isKeyAlphanumeric(t){let o=t.charCodeAt(0);return o>47&&o<58||o>64&&o<91||o>96&&o<123}handleAlphanumericPress(t){let o=new Date;o.getTime()-this.lastSearchInputDate.getTime()>e.searchTimeoutMilliseconds&&(this.currentSearch=""),this.currentSearch+=t.toLowerCase();let a=this.options.find(n=>{var i;return((i=n.label)===null||i===void 0?void 0:i.toLowerCase().substring(0,this.currentSearch.length))===this.currentSearch});return this.lastSearchInputDate=o,a&&this.optionsList.find(n=>n.value===a.value)}getOptionId(t){if(!t)return;let o=this.options.findIndex(a=>(0,Ee.deepEqual)(a.value,t.value));if(o!==-1)return`option-${o}`}onSelectOption(t){t.stopPropagation(),this.setValue(t.target.value)}setValue(t,o=!0){let a=this.options.find(n=>(0,Ee.deepEqual)(n.value,t));a&&this.selectOption(a,o)}selectOption(t,o=!0){var a,n;if(!(0,Ee.deepEqual)((a=this.selectedOption)===null||a===void 0?void 0:a.value,t?.value)){this.selectedOption=t;for(let i of this.options)i.selected=i===t;o&&this.dispatchEvent(new CustomEvent("change",{detail:(n=this.selectedOption)===null||n===void 0?void 0:n.value}))}this.optionsDisplayed=!1}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.hideOptions)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}};F.elementDefinitions={"ft-input-label":_e,"ft-typography":Fe,"ft-ripple":q,"ft-icon":be,"ft-select-option":pe};F.searchTimeoutMilliseconds=2e3;F.styles=[Ye,r1];se([(0,ee.property)({type:String})],F.prototype,"label",void 0);se([(0,ee.property)({type:String})],F.prototype,"ariaLabel",void 0);se([(0,ee.property)({type:String})],F.prototype,"helper",void 0);se([(0,ee.property)({type:Boolean})],F.prototype,"outlined",void 0);se([(0,ee.property)({type:Boolean})],F.prototype,"disabled",void 0);se([(0,ee.property)({type:Boolean})],F.prototype,"error",void 0);se([(0,ee.property)({type:Boolean})],F.prototype,"fixedMenuPosition",void 0);se([(0,ee.property)({type:Array})],F.prototype,"options",void 0);se([(0,ee.state)()],F.prototype,"selectedOption",void 0);se([(0,ee.state)()],F.prototype,"optionsDisplayed",void 0);se([(0,ee.state)()],F.prototype,"focusOptions",void 0);se([(0,ee.state)()],F.prototype,"currentSearch",void 0);se([(0,ee.state)()],F.prototype,"lastSearchInputDate",void 0);se([(0,ee.query)(".ft-select")],F.prototype,"container",void 0);se([(0,ee.query)(".ft-select--options")],F.prototype,"optionsMenu",void 0);se([(0,ee.query)(".ft-select--input-panel")],F.prototype,"mainPanel",void 0);se([(0,ee.query)("slot:not([name])")],F.prototype,"optionsSlot",void 0);var xn=v(P());(0,xn.customElement)("ft-select")(F);(0,xn.customElement)("ft-select-option")(pe);var d4=v(ra());var $n=v(re());function A6(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;let o,a,n;if(Array.isArray(e)){if(o=e.length,o!=t.length)return!1;for(a=o;a--!==0;)if(!go(e[a],t[a]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(a of e.entries())if(!t.has(a[0]))return!1;for(a of e.entries())if(!go(a[1],t.get(a[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(a of e.entries())if(!t.has(a[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();let i=s=>Object.keys(s).filter(l=>s[l]!=null);if(n=i(e),o=n.length,o!==i(t).length)return!1;for(a=o;a--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[a]))return!1;for(a=o;a--!==0;){let s=n[a];if(!go(e[s],t[s]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function go(e,t){try{return A6(e,t)}catch{return!1}}function zr(e,t){return!go(e,t)}function c1(e){return typeof window.structuredClone=="function"?structuredClone(e):e!=null?JSON.parse(JSON.stringify(e)):e}function yo(e,t){let o=a=>a[e]===!0;return a=>{if(o(a))return a;let n=t(a);return n[e]=!0,n}}var l1=v(re(),1);var vn=e=>{let t=e??{};return(o,a)=>{var n;let i={hasChanged:zr,attribute:!1,...t};(0,l1.property)(i)(o,a);let s=o.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(a,{selector:(n=t.selector)!==null&&n!==void 0?n:l=>l[a],store:t.store})}};var bo=class{constructor(){this.queue=[]}add(t,o=!1){o&&this.clear(t.type),this.queue.push(t)}consume(t){let o=this.queue.find(a=>a.type===t);return o&&(this.queue=this.queue.filter(a=>a!==o)),o}clear(t){typeof t=="string"?this.queue=this.queue.filter(o=>o.type!==t):this.queue=this.queue.filter(o=>!t.test(o.type))}};var At=v(re(),1);var d1=v(re(),1);function u1(e,t){let o=()=>JSON.parse(JSON.stringify(e));return(0,d1.property)({type:Object,converter:{fromAttribute:a=>{if(a==null)return o();try{return JSON.parse(a)}catch{return o()}},toAttribute:a=>JSON.stringify(a)},hasChanged:zr,...t??{}})}var xo=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,o){return this.callbacks=[t],this.debounce(o)}queue(t,o){return this.callbacks.push(t),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((o,a)=>{this.resolvePromise=o,this.rejectPromise=a})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,o;let a=[...this.callbacks];this.callbacks=[];let n=(t=this.rejectPromise)!==null&&t!==void 0?t:()=>null,i=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let s of a)try{await s()}catch(l){n(l);return}i(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var p1=v(K(),1);var vo=globalThis,L6=vo.ShadowRoot&&(vo.ShadyCSS===void 0||vo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Oy=Symbol();var f1=(e,t)=>{if(L6)e.adoptedStyleSheets=t.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(let o of t){let a=document.createElement("style"),n=vo.litNonce;n!==void 0&&a.setAttribute("nonce",n),a.textContent=o.cssText,e.appendChild(a)}};var So=class extends p1.LitElement{createRenderRoot(){let t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach(([n,i])=>t.registry.define(n,i)));let o={...t.shadowRootOptions,customElements:t.registry},a=this.renderOptions.creationScope=this.attachShadow(o);return f1(a,t.elementStyles),a}};function h1(e,t,...o){var a;let n=e.querySelector(t);for(let i of o)n=(a=n?.shadowRoot)===null||a===void 0?void 0:a.querySelector(i);return n}var rr=function(e,t,o,a){var n=arguments.length,i=n<3?t:a===null?a=Object.getOwnPropertyDescriptor(t,o):a,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,a);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(i=(n<3?s(i):n>3?s(t,o,i):s(t,o))||i);return n>3&&i&&Object.defineProperty(t,o,i),i},b1,m1=Symbol("constructorPrototype"),g1=Symbol("constructorName"),x1=Symbol("exportpartsDebouncer"),y1=Symbol("dynamicDependenciesLoaded"),tr=class e extends CustomEvent{constructor(){super(e.eventName,{bubbles:!0})}};tr.eventName="exportparts-updated";var Ue=class extends So{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[b1]=new xo(5),this.scheduleExportpartsUpdate=()=>{var t,o,a;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(a=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&a!==void 0&&a)&&this[x1].run(()=>{var n,i;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((i=this.exportpartsPrefixes)===null||i===void 0?void 0:i.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[g1]=this.constructor.name,this[m1]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[g1]&&Object.setPrototypeOf(this,this[m1])}connectedCallback(){var t;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(a){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",a)}let o=this.constructor;o[y1]||(o[y1]=!0,this.importDynamicDependencies()),(t=this.shadowRoot)===null||t===void 0||t.addEventListener(tr.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.shadowRoot)===null||t===void 0||t.removeEventListener(tr.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.focusElementToFocus(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate(),t.has("exportparts")&&this.dispatchEvent(new tr)})}contentAvailableCallback(t){}focusElementToFocus(t){if(t.has("elementToFocus")&&this.elementToFocus!=null){let{element:o,selector:a,shadowPath:n}=this.elementToFocus;if(a!=null){let i=[...n??[],a];o=h1(this.shadowRoot,...i)}o?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||o?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){var o,a,n;if(((a=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&a!==void 0?a:[]).forEach(i=>i.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(i){console.error(i,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let i=document.createElement("style");i.classList.add("ft-lit-element--custom-stylesheet"),i.innerHTML=this.customStylesheet,this.shadowRoot.append(i)}}setExportpartsAttribute(t){var o,a,n,i,s,l;let f=b=>b!=null&&b.trim().length>0,p=t.filter(f).map(b=>b.trim());if(p.length===0){this.exportparts=void 0;return}let m=new Set;for(let b of(a=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&a!==void 0?a:[]){let C=(i=(n=b.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&i!==void 0?i:[],E=(l=(s=b.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(M=>M.split(":")[1]))!==null&&l!==void 0?l:[],O=[...C,...E].filter(f).map(M=>M.trim());for(let M of O)m.add(M)}if(m.size===0){this.exportparts=void 0;return}let g=[...m.values()].flatMap(b=>p.map(C=>`${b}:${C}--${b}`));this.exportparts=[...this.part,...g].join(", ")}};b1=x1;rr([(0,At.property)()],Ue.prototype,"exportpartsPrefix",void 0);rr([u1([])],Ue.prototype,"exportpartsPrefixes",void 0);rr([(0,At.property)({reflect:!0})],Ue.prototype,"exportparts",void 0);rr([(0,At.property)()],Ue.prototype,"customStylesheet",void 0);rr([(0,At.property)()],Ue.prototype,"elementToFocus",void 0);rr([(0,At.state)()],Ue.prototype,"useAdoptedStyleSheets",void 0);function Co(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var Pr=Symbol("internalReduxEventsUnsubscribers"),at=Symbol("internalStoresUnsubscribers"),Lt=Symbol("internalStores"),O6=yo(Symbol("withRedux"),function(e){var t,o,a;class n extends e{constructor(){super(...arguments),this[t]=new Map,this[o]=new Map,this[a]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(l=>s.has(l))&&this.updateFromStores()}getUnnamedStore(){if(this[Lt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Lt].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Lt].get(s)}addStore(s,l){var f;l=(f=l??s.name)!==null&&f!==void 0?f:"default-store",this.unsubscribeFromStore(l),this[Lt].set(l,s),this.subscribeToStore(l,s),this.updateFromStores()}removeStore(s){let l=typeof s=="string"?s:s.name;this.unsubscribeFromStore(l),this[Lt].delete(l)}setupStores(){this.unsubscribeFromStores(),this[Lt].forEach((s,l)=>this.subscribeToStore(l,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,l)=>{let f=this.constructor.getPropertyOptions(l);if(!f?.attribute||!this.hasAttribute(typeof f?.attribute=="string"?f.attribute:l)){let p=this.getStore(s.store);p&&(s.store?this[at].has(s.store):this[at].size>0)&&(this[l]=s.selector(p.getState(),this))}})}subscribeToStore(s,l){var f;this[at].set(s,l.subscribe(()=>this.updateFromStores())),this[Pr].set(s,[]),Co(l)&&l.eventBus&&((f=this.reduxConstructor.reduxEventListeners)===null||f===void 0||f.forEach((p,m)=>{if(typeof this[m]=="function"&&(!p.store||l.name===p.store)){let g=b=>this[m](b);l.addEventListener(p.eventName,g),this[Pr].get(s).push(()=>l.removeEventListener(p.eventName,g))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[at].forEach((s,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(s){var l;this[at].has(s)&&this[at].get(s)(),this[at].delete(s),(l=this[Pr].get(s))===null||l===void 0||l.forEach(f=>f()),this[Pr].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return t=at,o=Lt,a=Pr,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),v1=class extends O6(Ue){};function Ae(e){for(var t=arguments.length,o=Array(t>1?t-1:0),a=1;a<t;a++)o[a-1]=arguments[a];if(0)var n,i;throw Error("[Immer] minified error nr: "+e+(o.length?" "+o.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function qe(e){return!!e&&!!e[Z]}function Me(e){var t;return!!e&&(function(o){if(!o||typeof o!="object")return!1;var a=Object.getPrototypeOf(o);if(a===null)return!0;var n=Object.hasOwnProperty.call(a,"constructor")&&a.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===P6}(e)||Array.isArray(e)||!!e[R1]||!!(!((t=e.constructor)===null||t===void 0)&&t[R1])||wn(e)||Nn(e))}function Ot(e,t,o){o===void 0&&(o=!1),nr(e)===0?(o?Object.keys:ar)(e).forEach(function(a){o&&typeof a=="symbol"||t(a,e[a],e)}):e.forEach(function(a,n){return t(n,a,e)})}function nr(e){var t=e[Z];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:wn(e)?2:Nn(e)?3:0}function or(e,t){return nr(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function R6(e,t){return nr(e)===2?e.get(t):e[t]}function _1(e,t,o){var a=nr(e);a===2?e.set(t,o):a===3?e.add(o):e[t]=o}function w1(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function wn(e){return T6&&e instanceof Map}function Nn(e){return z6&&e instanceof Set}function nt(e){return e.o||e.t}function Mn(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=T1(e);delete t[Z];for(var o=ar(t),a=0;a<o.length;a++){var n=o[a],i=t[n];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[n]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[n]})}return Object.create(Object.getPrototypeOf(e),t)}function Tn(e,t){return t===void 0&&(t=!1),zn(e)||qe(e)||!Me(e)||(nr(e)>1&&(e.set=e.add=e.clear=e.delete=_6),Object.freeze(e),t&&Ot(e,function(o,a){return Tn(a,!0)},!0)),e}function _6(){Ae(2)}function zn(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Be(e){var t=_n[e];return t||Ae(18,e),t}function w6(e,t){_n[e]||(_n[e]=t)}function Ln(){return kr}function Sn(e,t){t&&(Be("Patches"),e.u=[],e.s=[],e.v=t)}function Eo(e){On(e),e.p.forEach(N6),e.p=null}function On(e){e===kr&&(kr=e.l)}function S1(e){return kr={p:[],l:kr,h:e,m:!0,_:0}}function N6(e){var t=e[Z];t.i===0||t.i===1?t.j():t.g=!0}function Cn(e,t){t._=t.p.length;var o=t.p[0],a=e!==void 0&&e!==o;return t.h.O||Be("ES5").S(t,e,a),a?(o[Z].P&&(Eo(t),Ae(4)),Me(e)&&(e=Ao(t,e),t.l||Lo(t,e)),t.u&&Be("Patches").M(o[Z].t,e,t.u,t.s)):e=Ao(t,o,[]),Eo(t),t.u&&t.v(t.u,t.s),e!==M1?e:void 0}function Ao(e,t,o){if(zn(t))return t;var a=t[Z];if(!a)return Ot(t,function(l,f){return C1(e,a,t,l,f,o)},!0),t;if(a.A!==e)return t;if(!a.P)return Lo(e,a.t,!0),a.t;if(!a.I){a.I=!0,a.A._--;var n=a.i===4||a.i===5?a.o=Mn(a.k):a.o,i=n,s=!1;a.i===3&&(i=new Set(n),n.clear(),s=!0),Ot(i,function(l,f){return C1(e,a,n,l,f,o,s)}),Lo(e,n,!1),o&&e.u&&Be("Patches").N(a,o,e.u,e.s)}return a.o}function C1(e,t,o,a,n,i,s){if(qe(n)){var l=Ao(e,n,i&&t&&t.i!==3&&!or(t.R,a)?i.concat(a):void 0);if(_1(o,a,l),!qe(l))return;e.m=!1}else s&&o.add(n);if(Me(n)&&!zn(n)){if(!e.h.D&&e._<1)return;Ao(e,n),t&&t.A.l||Lo(e,n)}}function Lo(e,t,o){o===void 0&&(o=!1),!e.l&&e.h.D&&e.m&&Tn(t,o)}function En(e,t){var o=e[Z];return(o?nt(o):e)[t]}function E1(e,t){if(t in e)for(var o=Object.getPrototypeOf(e);o;){var a=Object.getOwnPropertyDescriptor(o,t);if(a)return a;o=Object.getPrototypeOf(o)}}function it(e){e.P||(e.P=!0,e.l&&it(e.l))}function An(e){e.o||(e.o=Mn(e.t))}function Rn(e,t,o){var a=wn(t)?Be("MapSet").F(t,o):Nn(t)?Be("MapSet").T(t,o):e.O?function(n,i){var s=Array.isArray(n),l={i:s?1:0,A:i?i.A:Ln(),P:!1,I:!1,R:{},l:i,t:n,k:null,o:null,j:null,C:!1},f=l,p=Dr;s&&(f=[l],p=Ir);var m=Proxy.revocable(f,p),g=m.revoke,b=m.proxy;return l.k=b,l.j=g,b}(t,o):Be("ES5").J(t,o);return(o?o.A:Ln()).p.push(a),a}function M6(e){return qe(e)||Ae(22,e),function t(o){if(!Me(o))return o;var a,n=o[Z],i=nr(o);if(n){if(!n.P&&(n.i<4||!Be("ES5").K(n)))return n.t;n.I=!0,a=A1(o,i),n.I=!1}else a=A1(o,i);return Ot(a,function(s,l){n&&R6(n.t,s)===l||_1(a,s,t(l))}),i===3?new Set(a):a}(e)}function A1(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Mn(e)}function N1(){function e(s,l){var f=i[s];return f?f.enumerable=l:i[s]=f={configurable:!0,enumerable:l,get:function(){var p=this[Z];return Dr.get(p,s)},set:function(p){var m=this[Z];Dr.set(m,s,p)}},f}function t(s){for(var l=s.length-1;l>=0;l--){var f=s[l][Z];if(!f.P)switch(f.i){case 5:a(f)&&it(f);break;case 4:o(f)&&it(f)}}}function o(s){for(var l=s.t,f=s.k,p=ar(f),m=p.length-1;m>=0;m--){var g=p[m];if(g!==Z){var b=l[g];if(b===void 0&&!or(l,g))return!0;var C=f[g],E=C&&C[Z];if(E?E.t!==b:!w1(C,b))return!0}}var O=!!l[Z];return p.length!==ar(l).length+(O?0:1)}function a(s){var l=s.k;if(l.length!==s.t.length)return!0;var f=Object.getOwnPropertyDescriptor(l,l.length-1);if(f&&!f.get)return!0;for(var p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function n(s){s.g&&Ae(3,JSON.stringify(nt(s)))}var i={};w6("ES5",{J:function(s,l){var f=Array.isArray(s),p=function(g,b){if(g){for(var C=Array(b.length),E=0;E<b.length;E++)Object.defineProperty(C,""+E,e(E,!0));return C}var O=T1(b);delete O[Z];for(var M=ar(O),T=0;T<M.length;T++){var w=M[T];O[w]=e(w,g||!!O[w].enumerable)}return Object.create(Object.getPrototypeOf(b),O)}(f,s),m={i:f?5:4,A:l?l.A:Ln(),P:!1,I:!1,R:{},l,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,Z,{value:m,writable:!0}),p},S:function(s,l,f){f?qe(l)&&l[Z].A===s&&t(s.p):(s.u&&function p(m){if(m&&typeof m=="object"){var g=m[Z];if(g){var b=g.t,C=g.k,E=g.R,O=g.i;if(O===4)Ot(C,function(B){B!==Z&&(b[B]!==void 0||or(b,B)?E[B]||p(C[B]):(E[B]=!0,it(g)))}),Ot(b,function(B){C[B]!==void 0||or(C,B)||(E[B]=!1,it(g))});else if(O===5){if(a(g)&&(it(g),E.length=!0),C.length<b.length)for(var M=C.length;M<b.length;M++)E[M]=!1;else for(var T=b.length;T<C.length;T++)E[T]=!0;for(var w=Math.min(C.length,b.length),D=0;D<w;D++)C.hasOwnProperty(D)||(E[D]=!0),E[D]===void 0&&p(C[D])}}}}(s.p[0]),t(s.p))},K:function(s){return s.i===4?o(s):a(s)}})}var L1,kr,Pn=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",T6=typeof Map<"u",z6=typeof Set<"u",O1=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",M1=Pn?Symbol.for("immer-nothing"):((L1={})["immer-nothing"]=!0,L1),R1=Pn?Symbol.for("immer-draftable"):"__$immer_draftable",Z=Pn?Symbol.for("immer-state"):"__$immer_state";var P6=""+Object.prototype.constructor,ar=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,T1=Object.getOwnPropertyDescriptors||function(e){var t={};return ar(e).forEach(function(o){t[o]=Object.getOwnPropertyDescriptor(e,o)}),t},_n={},Dr={get:function(e,t){if(t===Z)return e;var o=nt(e);if(!or(o,t))return function(n,i,s){var l,f=E1(i,s);return f?"value"in f?f.value:(l=f.get)===null||l===void 0?void 0:l.call(n.k):void 0}(e,o,t);var a=o[t];return e.I||!Me(a)?a:a===En(e.t,t)?(An(e),e.o[t]=Rn(e.A.h,a,e)):a},has:function(e,t){return t in nt(e)},ownKeys:function(e){return Reflect.ownKeys(nt(e))},set:function(e,t,o){var a=E1(nt(e),t);if(a?.set)return a.set.call(e.k,o),!0;if(!e.P){var n=En(nt(e),t),i=n?.[Z];if(i&&i.t===o)return e.o[t]=o,e.R[t]=!1,!0;if(w1(o,n)&&(o!==void 0||or(e.t,t)))return!0;An(e),it(e)}return e.o[t]===o&&(o!==void 0||t in e.o)||Number.isNaN(o)&&Number.isNaN(e.o[t])||(e.o[t]=o,e.R[t]=!0),!0},deleteProperty:function(e,t){return En(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,An(e),it(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var o=nt(e),a=Reflect.getOwnPropertyDescriptor(o,t);return a&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:a.enumerable,value:o[t]}},defineProperty:function(){Ae(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Ae(12)}},Ir={};Ot(Dr,function(e,t){Ir[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Ir.deleteProperty=function(e,t){return Ir.set.call(this,e,t,void 0)},Ir.set=function(e,t,o){return Dr.set.call(this,e[0],t,o,e[0])};var I6=function(){function e(o){var a=this;this.O=O1,this.D=!0,this.produce=function(n,i,s){if(typeof n=="function"&&typeof i!="function"){var l=i;i=n;var f=a;return function(O){var M=this;O===void 0&&(O=l);for(var T=arguments.length,w=Array(T>1?T-1:0),D=1;D<T;D++)w[D-1]=arguments[D];return f.produce(O,function(B){var V;return(V=i).call.apply(V,[M,B].concat(w))})}}var p;if(typeof i!="function"&&Ae(6),s!==void 0&&typeof s!="function"&&Ae(7),Me(n)){var m=S1(a),g=Rn(a,n,void 0),b=!0;try{p=i(g),b=!1}finally{b?Eo(m):On(m)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(O){return Sn(m,s),Cn(O,m)},function(O){throw Eo(m),O}):(Sn(m,s),Cn(p,m))}if(!n||typeof n!="object"){if((p=i(n))===void 0&&(p=n),p===M1&&(p=void 0),a.D&&Tn(p,!0),s){var C=[],E=[];Be("Patches").M(n,p,C,E),s(C,E)}return p}Ae(21,n)},this.produceWithPatches=function(n,i){if(typeof n=="function")return function(p){for(var m=arguments.length,g=Array(m>1?m-1:0),b=1;b<m;b++)g[b-1]=arguments[b];return a.produceWithPatches(p,function(C){return n.apply(void 0,[C].concat(g))})};var s,l,f=a.produce(n,i,function(p,m){s=p,l=m});return typeof Promise<"u"&&f instanceof Promise?f.then(function(p){return[p,s,l]}):[f,s,l]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var t=e.prototype;return t.createDraft=function(o){Me(o)||Ae(8),qe(o)&&(o=M6(o));var a=S1(this),n=Rn(this,o,void 0);return n[Z].C=!0,On(a),n},t.finishDraft=function(o,a){var n=o&&o[Z],i=n.A;return Sn(i,a),Cn(void 0,i)},t.setAutoFreeze=function(o){this.D=o},t.setUseProxies=function(o){o&&!O1&&Ae(20),this.O=o},t.applyPatches=function(o,a){var n;for(n=a.length-1;n>=0;n--){var i=a[n];if(i.path.length===0&&i.op==="replace"){o=i.value;break}}n>-1&&(a=a.slice(n+1));var s=Be("Patches").$;return qe(o)?s(o,a):this.produce(o,function(l){return s(l,a)})},e}(),ve=new I6,k6=ve.produce,Hy=ve.produceWithPatches.bind(ve),Fy=ve.setAutoFreeze.bind(ve),Wy=ve.setUseProxies.bind(ve),$y=ve.applyPatches.bind(ve),jy=ve.createDraft.bind(ve),Vy=ve.finishDraft.bind(ve),Oo=k6;function Rt(e){"@babel/helpers - typeof";return Rt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rt(e)}function z1(e,t){if(Rt(e)!="object"||!e)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var a=o.call(e,t||"default");if(Rt(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function P1(e){var t=z1(e,"string");return Rt(t)=="symbol"?t:t+""}function I1(e,t,o){return(t=P1(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function k1(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),o.push.apply(o,a)}return o}function In(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?k1(Object(o),!0).forEach(function(a){I1(e,a,o[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):k1(Object(o)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(o,a))})}return e}function fe(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var D1=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),kn=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ro={INIT:"@@redux/INIT"+kn(),REPLACE:"@@redux/REPLACE"+kn(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+kn()}};function D6(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Dn(e,t,o){var a;if(typeof t=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(fe(0));if(typeof t=="function"&&typeof o>"u"&&(o=t,t=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(fe(1));return o(Dn)(e,t)}if(typeof e!="function")throw new Error(fe(2));var n=e,i=t,s=[],l=s,f=!1;function p(){l===s&&(l=s.slice())}function m(){if(f)throw new Error(fe(3));return i}function g(O){if(typeof O!="function")throw new Error(fe(4));if(f)throw new Error(fe(5));var M=!0;return p(),l.push(O),function(){if(M){if(f)throw new Error(fe(6));M=!1,p();var w=l.indexOf(O);l.splice(w,1),s=null}}}function b(O){if(!D6(O))throw new Error(fe(7));if(typeof O.type>"u")throw new Error(fe(8));if(f)throw new Error(fe(9));try{f=!0,i=n(i,O)}finally{f=!1}for(var M=s=l,T=0;T<M.length;T++){var w=M[T];w()}return O}function C(O){if(typeof O!="function")throw new Error(fe(10));n=O,b({type:Ro.REPLACE})}function E(){var O,M=g;return O={subscribe:function(w){if(typeof w!="object"||w===null)throw new Error(fe(11));function D(){w.next&&w.next(m())}D();var B=M(D);return{unsubscribe:B}}},O[D1]=function(){return this},O}return b({type:Ro.INIT}),a={dispatch:b,subscribe:g,getState:m,replaceReducer:C},a[D1]=E,a}function U6(e){Object.keys(e).forEach(function(t){var o=e[t],a=o(void 0,{type:Ro.INIT});if(typeof a>"u")throw new Error(fe(12));if(typeof o(void 0,{type:Ro.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(fe(13))})}function U1(e){for(var t=Object.keys(e),o={},a=0;a<t.length;a++){var n=t[a];typeof e[n]=="function"&&(o[n]=e[n])}var i=Object.keys(o),s,l;try{U6(o)}catch(f){l=f}return function(p,m){if(p===void 0&&(p={}),l)throw l;if(0)var g;for(var b=!1,C={},E=0;E<i.length;E++){var O=i[E],M=o[O],T=p[O],w=M(T,m);if(typeof w>"u"){var D=m&&m.type;throw new Error(fe(14))}C[O]=w,b=b||w!==T}return b=b||i.length!==Object.keys(p).length,b?C:p}}function ir(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return t.length===0?function(a){return a}:t.length===1?t[0]:t.reduce(function(a,n){return function(){return a(n.apply(void 0,arguments))}})}function B1(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return function(a){return function(){var n=a.apply(void 0,arguments),i=function(){throw new Error(fe(15))},s={getState:n.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=t.map(function(f){return f(s)});return i=ir.apply(void 0,l)(n.dispatch),In(In({},n),{},{dispatch:i})}}}function G1(e){var t=function(a){var n=a.dispatch,i=a.getState;return function(s){return function(l){return typeof l=="function"?l(n,i,e):s(l)}}};return t}var H1=G1();H1.withExtraArgument=G1;var Un=H1;var V1=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,n){a.__proto__=n}||function(a,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(a[i]=n[i])},e(t,o)};return function(t,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");e(t,o);function a(){this.constructor=t}t.prototype=o===null?Object.create(o):(a.prototype=o.prototype,new a)}}(),B6=function(e,t){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},a,n,i,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(p){return function(m){return f([p,m])}}function f(p){if(a)throw new TypeError("Generator is already executing.");for(;o;)try{if(a=1,n&&(i=p[0]&2?n.return:p[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,p[1])).done)return i;switch(n=0,i&&(p=[p[0]&2,i.value]),p[0]){case 0:case 1:i=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(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(p[0]===6||p[0]===2)){o=0;continue}if(p[0]===3&&(!i||p[1]>i[0]&&p[1]<i[3])){o.label=p[1];break}if(p[0]===6&&o.label<i[1]){o.label=i[1],i=p;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(p);break}i[2]&&o.ops.pop(),o.trys.pop();continue}p=t.call(e,o)}catch(m){p=[6,m],n=0}finally{a=i=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},sr=function(e,t){for(var o=0,a=t.length,n=e.length;o<a;o++,n++)e[n]=t[o];return e},G6=Object.defineProperty,H6=Object.defineProperties,F6=Object.getOwnPropertyDescriptors,F1=Object.getOwnPropertySymbols,W6=Object.prototype.hasOwnProperty,$6=Object.prototype.propertyIsEnumerable,W1=function(e,t,o){return t in e?G6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o},st=function(e,t){for(var o in t||(t={}))W6.call(t,o)&&W1(e,o,t[o]);if(F1)for(var a=0,n=F1(t);a<n.length;a++){var o=n[a];$6.call(t,o)&&W1(e,o,t[o])}return e},Bn=function(e,t){return H6(e,F6(t))},j6=function(e,t,o){return new Promise(function(a,n){var i=function(f){try{l(o.next(f))}catch(p){n(p)}},s=function(f){try{l(o.throw(f))}catch(p){n(p)}},l=function(f){return f.done?a(f.value):Promise.resolve(f.value).then(i,s)};l((o=o.apply(e,t)).next())})};var V6=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ir:ir.apply(null,arguments)},db=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function K6(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var o=t;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return t===o}var q6=function(e){V1(t,e);function t(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];var n=e.apply(this,o)||this;return Object.setPrototypeOf(n,t.prototype),n}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];return e.prototype.concat.apply(this,o)},t.prototype.prepend=function(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];return o.length===1&&Array.isArray(o[0])?new(t.bind.apply(t,sr([void 0],o[0].concat(this)))):new(t.bind.apply(t,sr([void 0],o.concat(this))))},t}(Array),Z6=function(e){V1(t,e);function t(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];var n=e.apply(this,o)||this;return Object.setPrototypeOf(n,t.prototype),n}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];return e.prototype.concat.apply(this,o)},t.prototype.prepend=function(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];return o.length===1&&Array.isArray(o[0])?new(t.bind.apply(t,sr([void 0],o[0].concat(this)))):new(t.bind.apply(t,sr([void 0],o.concat(this))))},t}(Array);function Fn(e){return Me(e)?Oo(e,function(){}):e}function Y6(e){return typeof e=="boolean"}function X6(){return function(t){return Q6(t)}}function Q6(e){e===void 0&&(e={});var t=e.thunk,o=t===void 0?!0:t,a=e.immutableCheck,n=a===void 0?!0:a,i=e.serializableCheck,s=i===void 0?!0:i,l=new q6;if(o&&(Y6(o)?l.push(Un):l.push(Un.withExtraArgument(o.extraArgument))),0){if(n)var f;if(s)var p}return l}var Gn=!0;function K1(e){var t=X6(),o=e||{},a=o.reducer,n=a===void 0?void 0:a,i=o.middleware,s=i===void 0?t():i,l=o.devTools,f=l===void 0?!0:l,p=o.preloadedState,m=p===void 0?void 0:p,g=o.enhancers,b=g===void 0?void 0:g,C;if(typeof n=="function")C=n;else if(K6(n))C=U1(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 E=s;if(typeof E=="function"&&(E=E(t),!Gn&&!Array.isArray(E)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Gn&&E.some(function(B){return typeof B!="function"}))throw new Error("each middleware provided to configureStore must be a function");var O=B1.apply(void 0,E),M=ir;f&&(M=V6(st({trace:!Gn},typeof f=="object"&&f)));var T=new Z6(O),w=T;Array.isArray(b)?w=sr([O],b):typeof b=="function"&&(w=b(T));var D=M.apply(void 0,w);return Dn(C,m,D)}function ct(e,t){function o(){for(var a=[],n=0;n<arguments.length;n++)a[n]=arguments[n];if(t){var i=t.apply(void 0,a);if(!i)throw new Error("prepareAction did not return an object");return st(st({type:e,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:e,payload:a[0]}}return o.toString=function(){return""+e},o.type=e,o.match=function(a){return a.type===e},o}function q1(e){var t={},o=[],a,n={addCase:function(i,s){var l=typeof i=="string"?i:i.type;if(l in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[l]=s,n},addMatcher:function(i,s){return o.push({matcher:i,reducer:s}),n},addDefaultCase:function(i){return a=i,n}};return e(n),[t,o,a]}function J6(e){return typeof e=="function"}function e8(e,t,o,a){o===void 0&&(o=[]);var n=typeof t=="function"?q1(t):[t,o,a],i=n[0],s=n[1],l=n[2],f;if(J6(e))f=function(){return Fn(e())};else{var p=Fn(e);f=function(){return p}}function m(g,b){g===void 0&&(g=f());var C=sr([i[b.type]],s.filter(function(E){var O=E.matcher;return O(b)}).map(function(E){var O=E.reducer;return O}));return C.filter(function(E){return!!E}).length===0&&(C=[l]),C.reduce(function(E,O){if(O)if(qe(E)){var M=E,T=O(M,b);return T===void 0?E:T}else{if(Me(E))return Oo(E,function(w){return O(w,b)});var T=O(E,b);if(T===void 0){if(E===null)return E;throw Error("A case reducer on a non-draftable value must not return undefined")}return T}return E},g)}return m.getInitialState=f,m}function t8(e,t){return e+"/"+t}function Z1(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof e.initialState=="function"?e.initialState:Fn(e.initialState),a=e.reducers||{},n=Object.keys(a),i={},s={},l={};n.forEach(function(m){var g=a[m],b=t8(t,m),C,E;"reducer"in g?(C=g.reducer,E=g.prepare):C=g,i[m]=C,s[b]=C,l[m]=E?ct(b,E):ct(b)});function f(){var m=typeof e.extraReducers=="function"?q1(e.extraReducers):[e.extraReducers],g=m[0],b=g===void 0?{}:g,C=m[1],E=C===void 0?[]:C,O=m[2],M=O===void 0?void 0:O,T=st(st({},b),s);return e8(o,function(w){for(var D in T)w.addCase(D,T[D]);for(var B=0,V=E;B<V.length;B++){var ye=V[B];w.addMatcher(ye.matcher,ye.reducer)}M&&w.addDefaultCase(M)})}var p;return{name:t,reducer:function(m,g){return p||(p=f()),p(m,g)},actions:l,caseReducers:i,getInitialState:function(){return p||(p=f()),p.getInitialState()}}}var r8="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",o8=function(e){e===void 0&&(e=21);for(var t="",o=e;o--;)t+=r8[Math.random()*64|0];return t},a8=["name","message","stack","code"],Hn=function(){function e(t,o){this.payload=t,this.meta=o}return e}(),$1=function(){function e(t,o){this.payload=t,this.meta=o}return e}(),n8=function(e){if(typeof e=="object"&&e!==null){for(var t={},o=0,a=a8;o<a.length;o++){var n=a[o];typeof e[n]=="string"&&(t[n]=e[n])}return t}return{message:String(e)}},hb=function(){function e(t,o,a){var n=ct(t+"/fulfilled",function(m,g,b,C){return{payload:m,meta:Bn(st({},C||{}),{arg:b,requestId:g,requestStatus:"fulfilled"})}}),i=ct(t+"/pending",function(m,g,b){return{payload:void 0,meta:Bn(st({},b||{}),{arg:g,requestId:m,requestStatus:"pending"})}}),s=ct(t+"/rejected",function(m,g,b,C,E){return{payload:C,error:(a&&a.serializeError||n8)(m||"Rejected"),meta:Bn(st({},E||{}),{arg:b,requestId:g,rejectedWithValue:!!C,requestStatus:"rejected",aborted:m?.name==="AbortError",condition:m?.name==="ConditionError"})}}),l=!1,f=typeof AbortController<"u"?AbortController:function(){function m(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return m.prototype.abort=function(){},m}();function p(m){return function(g,b,C){var E=a?.idGenerator?a.idGenerator(m):o8(),O=new f,M,T=!1;function w(B){M=B,O.abort()}var D=function(){return j6(this,null,function(){var B,V,ye,Re,le,ut,Tt;return B6(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),Re=(B=a?.condition)==null?void 0:B.call(a,m,{getState:b,extra:C}),s8(Re)?[4,Re]:[3,2];case 1:Re=y.sent(),y.label=2;case 2:if(Re===!1||O.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return T=!0,le=new Promise(function(x,z){return O.signal.addEventListener("abort",function(){return z({name:"AbortError",message:M||"Aborted"})})}),g(i(E,m,(V=a?.getPendingMeta)==null?void 0:V.call(a,{requestId:E,arg:m},{getState:b,extra:C}))),[4,Promise.race([le,Promise.resolve(o(m,{dispatch:g,getState:b,extra:C,requestId:E,signal:O.signal,abort:w,rejectWithValue:function(x,z){return new Hn(x,z)},fulfillWithValue:function(x,z){return new $1(x,z)}})).then(function(x){if(x instanceof Hn)throw x;return x instanceof $1?n(x.payload,E,m,x.meta):n(x,E,m)})])];case 3:return ye=y.sent(),[3,5];case 4:return ut=y.sent(),ye=ut instanceof Hn?s(null,E,m,ut.payload,ut.meta):s(ut,E,m),[3,5];case 5:return Tt=a&&!a.dispatchConditionRejection&&s.match(ye)&&ye.meta.condition,Tt||g(ye),[2,ye]}})})}();return Object.assign(D,{abort:w,requestId:E,arg:m,unwrap:function(){return D.then(i8)}})}}return Object.assign(p,{pending:i,rejected:s,fulfilled:n,typePrefix:t})}return e.withTypes=function(){return e},e}();function i8(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function s8(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Y1="listener",X1="completed",Q1="cancelled",mb="task-"+Q1,gb="task-"+X1,yb=Y1+"-"+Q1,bb=Y1+"-"+X1;var Wn="listenerMiddleware";var xb=ct(Wn+"/add"),vb=ct(Wn+"/removeAll"),Sb=ct(Wn+"/remove");var j1,Cb=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(j1||(j1=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},c8=function(e){return function(t){setTimeout(t,e)}},Eb=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:c8(10);N1();var l8=yo(Symbol("withEventBus"),function(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(o,a,n){this.eventBus.addEventListener(o,a,n)}dispatchEvent(o){return this.eventBus.dispatchEvent(o)}removeEventListener(o,a,n){this.eventBus.removeEventListener(o,a,n)}}}),_o=class extends l8(Object){};window.ftReduxStores||(window.ftReduxStores={});var J1=class e extends _o{static get(t){var o;let a=typeof t=="string"?t:t.name,n=typeof t=="string"?void 0:t,i=window.ftReduxStores[a];if(Co(i))return i;if(n==null)return;let s=Z1({...n,reducers:(o=n.reducers)!==null&&o!==void 0?o:{}}),l=K1({reducer:(f,p)=>{if(p.type==="CLEAR_FT_REDUX_STORE"){let m=c1(s.getInitialState());for(let g of p.keeping)m[g]=(f??m)[g];return m}else if(typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...f,...p.overwrites};return s.reducer(f,p)}});return window.ftReduxStores[n.name]=new e(s,l,n.eventBus)}constructor(t,o,a){super(),this.reduxSlice=t,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new bo;let n=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,s,l)=>{let f=s,p=i[f];return p?(...m)=>{let g=p(...m.map(n));return this.reduxStore.dispatch(g),g}:m=>{this.setState({[f]:n(m)})}}}),this.eventBus=a??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...t){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:t})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var wo=class{static format(t,o,a,n){return window.moment?window.moment(t).locale(o).format(this.getMomentDateFormat(a,n)):this.getIntlDateTime(t,o,a,n)}static getMomentDateFormat(t,o){return t?o?"lll":"ll":o?"L LT":"L"}static getIntlDateTime(t,o,a,n){let i=typeof t=="string"?new Date(t):t,s=new Intl.DateTimeFormat(o,{dateStyle:a?"medium":"short"}).format(i);if(!n)return s;let l=new Intl.DateTimeFormat(o,{timeStyle:"short"}).format(i);return`${s} ${l}`}static getTimezoneAsString(){let t=a=>String(Math.floor(a)).padStart(2,"0"),o=new Date().getTimezoneOffset();return`${o<0?"+":"-"}${t(Math.abs(o)/60)}:${t(Math.abs(o)%60)}`}};var No=v(P()),d8="ft-app-info",_t=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};_t.eventName="authentication-change";var u8={session:(e,t)=>{(0,No.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>_.dispatchEvent(new _t(t.payload)),0))}},_=No.FtReduxStore.get({name:d8,reducers:u8,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 e2=v(P()),Mo=function(e,t,o,a){var n=arguments.length,i=n<3?t:a===null?a=Object.getOwnPropertyDescriptor(t,o):a,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,a);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(i=(n<3?s(i):n>3?s(t,o,i):s(t,o))||i);return n>3&&i&&Object.defineProperty(t,o,i),i},Xb=(0,e2.applyMixinOnce)(Symbol("withDateFormat"),function(e){class t extends e{constructor(...a){super(a),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(_)}dateFormatOptionsChanged(a){return a.has("metadataDescriptors")||a.has("useLongDateFormat")||a.has("useDateTimeFormat")||a.has("uiLocale")}getDateFormatter(a){var n,i;return((i=(n=this.metadataDescriptors.find(l=>l.key===a))===null||n===void 0?void 0:n.date)!==null&&i!==void 0?i:!1)?l=>wo.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Mo([(0,$n.property)({type:Boolean})],t.prototype,"useLongDateFormat",void 0),Mo([(0,$n.property)({type:Boolean})],t.prototype,"useDateTimeFormat",void 0),Mo([vn({store:_.name,selector:o=>{var a,n;return(n=(a=o.metadataConfiguration)===null||a===void 0?void 0:a.descriptors)!==null&&n!==void 0?n:[]}})],t.prototype,"metadataDescriptors",void 0),Mo([vn({store:_.name})],t.prototype,"uiLocale",void 0),t});var p8=v(r2(),1);var o2;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(o2||(o2={}));var a2;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(a2||(a2={}));var n2;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(n2||(n2={}));var i2;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(i2||(i2={}));var s2;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(s2||(s2={}));var c2;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(c2||(c2={}));var l2;(function(e){e.BOOKMARK__CREATE="BOOKMARK__CREATE",e.BOOKMARK__DELETE="BOOKMARK__DELETE",e.CASE_DEFLECTION__START="CASE_DEFLECTION__START",e.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",e.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",e.CHATBOT__RATE="CHATBOT__RATE",e.COLLECTION__CREATE="COLLECTION__CREATE",e.COLLECTION__UPDATE="COLLECTION__UPDATE",e.COLLECTION__DELETE="COLLECTION__DELETE",e.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",e.DOCUMENT__AI_TRANSLATE="DOCUMENT__AI_TRANSLATE",e.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",e.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",e.DOCUMENT__PRINT="DOCUMENT__PRINT",e.DOCUMENT__PROCESS="DOCUMENT__PROCESS",e.DOCUMENT__RATE="DOCUMENT__RATE",e.DOCUMENT__SEARCH="DOCUMENT__SEARCH",e.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",e.DOCUMENT__UNRATE="DOCUMENT__UNRATE",e.FEEDBACK__SEND="FEEDBACK__SEND",e.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",e.AI__RATE="AI__RATE",e.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",e.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",e.KHUB__PROCESS="KHUB__PROCESS",e.KHUB__SEARCH="KHUB__SEARCH",e.LABELS__DOWNLOAD="LABELS__DOWNLOAD",e.LINK__SHARE="LINK__SHARE",e.PAGE__DISPLAY="PAGE__DISPLAY",e.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",e.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",e.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",e.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",e.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",e.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",e.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",e.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",e.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",e.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",e.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",e.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",e.TOPIC__DISPLAY="TOPIC__DISPLAY",e.TOPIC__RATE="TOPIC__RATE",e.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",e.TOPIC__UNRATE="TOPIC__UNRATE",e.USER__LOGIN="USER__LOGIN",e.USER__LOGOUT="USER__LOGOUT",e.HEARTBEAT="HEARTBEAT"})(l2||(l2={}));var d2;(function(e){e.THIRD_PARTY="THIRD_PARTY",e.OFF_THE_GRID="OFF_THE_GRID",e.CONTENT_PACKAGER="CONTENT_PACKAGER",e.PAGES="PAGES",e.DESIGNED_READER="DESIGNED_READER"})(d2||(d2={}));var u2;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT",e.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",e.LINK_PREVIEW="LINK_PREVIEW",e.UD_VIEWER="UD_VIEWER",e.ASSET_VIEWER="ASSET_VIEWER"})(u2||(u2={}));var f2;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(f2||(f2={}));var p2;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(p2||(p2={}));var h2;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(h2||(h2={}));var m2;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(m2||(m2={}));var g2;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR",e.CUSTOM="CUSTOM"})(g2||(g2={}));var jn;(function(e){e.OPTIONAL="OPTIONAL",e.MANDATORY="MANDATORY"})(jn||(jn={}));var y2;(function(e){e.ASC="ASC",e.DESC="DESC"})(y2||(y2={}));var b2;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(b2||(b2={}));var Vn;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(Vn||(Vn={}));var x2;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(x2||(x2={}));var v2;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(v2||(v2={}));var S2;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(S2||(S2={}));var C2;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(C2||(C2={}));var E2;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.HTML_PACKAGE="HTML_PACKAGE",e.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(E2||(E2={}));var Kn;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Kn||(Kn={}));var A2;(function(e){e.PLAIN_TEXT="PLAIN_TEXT",e.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",e.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(A2||(A2={}));var te;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",e.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN"})(te||(te={}));var Le;(function(e){e.SEARCHES="SEARCHES",e.BOOKMARKS="BOOKMARKS",e.BOOKS="BOOKS",e.COLLECTIONS="COLLECTIONS"})(Le||(Le={}));var L2;(function(e){e.UNAUTHENTICATED="UNAUTHENTICATED",e.USER_INCOMPLETE="USER_INCOMPLETE",e.MFA_REQUIRED="MFA_REQUIRED",e.AUTHENTICATED="AUTHENTICATED"})(L2||(L2={}));var O2;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(O2||(O2={}));var R2;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SUMMARY="SUMMARY",e.SEMANTIC_SEARCH="SEMANTIC_SEARCH",e.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",e.OTHER="OTHER"})(R2||(R2={}));var _2;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SLOW="SLOW",e.OTHER="OTHER"})(_2||(_2={}));var w2;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(w2||(w2={}));var N2;(function(e){e.USER="USER",e.ASSISTANT="ASSISTANT"})(N2||(N2={}));var M2;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(M2||(M2={}));var T2;(function(e){e.HTML="HTML",e.MARKDOWN="MARKDOWN"})(T2||(T2={}));var z2;(function(e){e.MAP="MAP",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(z2||(z2={}));var f8={[te.PERSONAL_BOOK_SHARE_USER]:[te.PERSONAL_BOOK_USER],[te.HTML_EXPORT_USER]:[te.PERSONAL_BOOK_USER],[te.PDF_EXPORT_USER]:[te.PERSONAL_BOOK_USER],[te.KHUB_ADMIN]:[te.CONTENT_PUBLISHER],[te.ADMIN]:[te.KHUB_ADMIN,te.USERS_ADMIN,te.PORTAL_ADMIN,te.BEHAVIOR_DATA_USER],[te.GENERATIVE_AI_EXPORT_USER]:[te.GENERATIVE_AI_USER]};function P2(e,t){return e===t||(f8[e]??[]).some(o=>P2(o,t))}function I2(e,t){return e==null?!1:(Array.isArray(e)?e:Array.isArray(e.roles)?e.roles:Array.isArray(e.profile?.roles)?e.profile.roles:[]).some(a=>P2(a,t))}var Bo=v(P());var qn=v(P());var wt=class e{static get(t){let{baseUrl:o,apiIntegrationIdentifier:a}=_.getState(),n=t??a;if(o&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,n,!0)}static await(t){return new Promise(o=>{let a=e.get(t);if(a)o(a);else{let n=_.subscribe(()=>{a=e.get(t),a&&(n(),o(a))})}})}};var Po=class{constructor(t){this.overrideApi=t}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:wt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):wt.await()}};var ge=class extends Po{constructor(t=!0,o){var a;super(o),this.sortObjectFields=(i,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([l],[f])=>l.localeCompare(f)));let n=this.constructor;n.commonCache=(a=n.commonCache)!==null&&a!==void 0?a:new qn.CacheRegistry,this.cache=t?n.commonCache:new qn.CacheRegistry}clearCache(){this.cache.clearAll()}hash(t){return String(Array.from(JSON.stringify(t,this.sortObjectFields)).reduce((o,a)=>0|31*o+a.charCodeAt(0),0))}};var Io=class extends ge{async listMySearches(){let{session:t}=_.getState();return I2(t,te.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),5*60*1e3):[]}};var ko=class extends ge{async listMyBookmarks(){let t=_.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),5*60*1e3):[]}};var Do=class extends ge{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetCount(t){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${t}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(t){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${t}`),this.CACHE_DURATION)}isAuthenticated(){let t=_.getState().session;return!!t?.sessionAuthenticated}};var Uo=class extends ge{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 t=_.getState().session;return!!t?.sessionAuthenticated}};var h8="ft-user-assets",m8={setAssetCount:(e,t)=>{let{userAssetType:o,count:a}=t.payload.assetCount;e.assetCounts.allAsset[o]=a},clearAssetCount:e=>{Object.values(Le).forEach(t=>{e.assetCounts.allAsset[t]=void 0})},setBookmarkCountByMap:(e,t)=>{let o=t.payload.mapId;e.assetCounts.bookmarkByMap[o]=t.payload.count},clearBookmarkCountByMap:e=>{e.assetCounts.bookmarkByMap={}},addAsset:(e,t)=>{let{assetType:o,mapId:a,asset:n}=t.payload;Yn(e,o,[...Zn(e,o),n]),k2(e,o,1,a),D2(e,n)},editAsset:(e,t)=>{let{assetType:o,asset:a}=t.payload;Yn(e,o,Zn(e,o).map(n=>n.id===a.id?a:n)),D2(e,a)},removeAsset:(e,t)=>{let{assetType:o,mapId:a,assetId:n}=t.payload;Yn(e,o,Zn(e,o).filter(i=>i.id!==n)),k2(e,o,-1,a)}},U2={[Le.SEARCHES]:"savedSearches",[Le.BOOKMARKS]:"bookmarks",[Le.BOOKS]:void 0,[Le.COLLECTIONS]:void 0},Zn=(e,t)=>{var o;let a=U2[t];return a?(o=e[a])!==null&&o!==void 0?o:[]:[]},Yn=(e,t,o)=>{let a=U2[t];a&&(e[a]=o)},k2=(e,t,o,a)=>{let n=e.assetCounts.allAsset[t];if(n!==void 0&&(e.assetCounts.allAsset[t]=Math.max(0,n+o),t===Le.BOOKMARKS&&a)){let i=e.assetCounts.bookmarkByMap[a];e.assetCounts.bookmarkByMap[a]=Math.max(0,i+o)}},D2=(e,t)=>{let o=e.assetLabels.map(n=>n.title),a=t.labels.filter(n=>!o.includes(n)).map(n=>({title:n}));e.assetLabels.push(...a)},Se=Bo.FtReduxStore.get({name:h8,reducers:m8,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Le).map(e=>[e,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Xn=class{constructor(t=new Do,o=new Uo){this.assetCountsService=t,this.assetLabelsService=o,this.currentSession=_.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new ko,this.savedSearchesService=new Io,_.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:o}=_.getState();(0,Bo.deepEqual)((t=this.currentSession)===null||t===void 0?void 0:t.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),Se.actions.clearAssetCount(),Se.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Se.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Se.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();Se.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let t=await this.assetLabelsService.getUserAssetLabels();Se.actions.assetLabels(t)}async loadAssetCount(t){let o=await this.assetCountsService.getUserAssetCount(t);o&&Se.actions.setAssetCount({assetCount:o})}async loadBookmarkByMapId(t){let o=await this.assetCountsService.getUserBookmarkCountByMap(t);o&&Se.actions.setBookmarkCountByMap({count:o.count,mapId:t})}async reloadAssetCount(t){this.assetCountsService.clearCache();let o=Object.keys(Se.getState().assetCounts.bookmarkByMap).length!==0;t===Le.BOOKMARKS&&o&&Se.actions.clearBookmarkCountByMap(),Se.getState().assetCounts.allAsset[t]!==void 0&&await this.loadAssetCount(t)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let o=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Se.actions.bookmarks(o)}}},g8=new Xn;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=g8);var Qn=class{addCommand(t,o=!1){_.commands.add(t,o)}consumeCommand(t){return _.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new Qn;var Oe=v(P());var B2,lr=class extends CustomEvent{constructor(t){super("ft-i18n-context-loaded",{detail:t})}},y8=Symbol("clearAfterUnitTest"),Go=class extends(0,Oe.withEventBus)(ge){constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[B2]=()=>{this.defaultMessages={},this.cache=new Oe.CacheRegistry,this.listeners={}},this.currentUiLocale=_.getState().uiLocale,_.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=_.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let o=t.name.toLowerCase();this.cache.setFinal(o,t),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,o){var a;if(t=t.toLowerCase(),o&&Object.keys(o).length>0){let n={...(a=this.defaultMessages[t])!==null&&a!==void 0?a:{},...o};(0,Oe.deepEqual)(this.defaultMessages[t],n)||(this.defaultMessages[t]=n,await this.notify(t))}return this.fetchContext(t)}resolveContext(t){var o,a;return this.fetchContext(t),(a=(o=this.cache.getNow(t))===null||o===void 0?void 0:o.messages)!==null&&a!==void 0?a:{}}resolveRawMessage(t,o){let a=t.toLowerCase();return this.resolveContext(a)[o]}resolveMessage(t,o,...a){var n;let i=t.toLowerCase(),s=this.resolveContext(i);return new Oe.ParametrizedLabelResolver((n=this.defaultMessages[i])!==null&&n!==void 0?n:{},s).resolve(o,...a)}async fetchContext(t){let o=!this.cache.has(t),a;try{a=await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t)),o&&await this.notify(t)}catch(n){!(n instanceof Oe.CanceledPromiseError)&&o&&console.error(n)}return a}subscribe(t,o){var a;return t=t.toLowerCase(),this.listeners[t]=(a=this.listeners[t])!==null&&a!==void 0?a:new Set,this.listeners[t].add(o),()=>{var n;return(n=this.listeners[t])===null||n===void 0?void 0:n.delete(o)}}async notifyAll(){let t=Object.keys(this.listeners);document.body.dispatchEvent(new lr({loadedContexts:t})),this.dispatchEvent(new lr({loadedContexts:t})),await Promise.all(t.map(o=>this.notify(o,!1)))}async notify(t,o=!0){o&&(document.body.dispatchEvent(new lr({loadedContexts:[t]})),this.dispatchEvent(new lr({loadedContexts:[t]}))),this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(a=>(0,Oe.delay)(0).then(()=>a()).catch(()=>null)))}};B2=y8;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Go{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Go{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var dr=window.FluidTopicsI18nService,Ho=window.FluidTopicsCustomI18nService;var G2=v(P()),Jn=class{highlightHtml(t,o,a){(0,G2.highlightHtml)(t,o,a)}};window.FluidTopicsHighlightHtmlService=new Jn;var H2=v(P());var ei=class{isDate(t){var o,a,n,i;return(i=(n=((a=(o=_.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&a!==void 0?a:[]).find(l=>l.key===t))===null||n===void 0?void 0:n.date)!==null&&i!==void 0?i:!1}format(t,o){var a,n,i;if(t==null)return"";try{return H2.DateFormatter.format(t,(a=o?.locale)!==null&&a!==void 0?a:_.getState().uiLocale,(n=o?.longFormat)!==null&&n!==void 0?n:!1,(i=o?.withTime)!==null&&i!==void 0?i:!1)}catch(s){throw console.error(`Date ${JSON.stringify(t)} is not valid`,s),s}}};window.FluidTopicsDateService=new ei;var F2=v(P());var Ur=class{static get(t,o){var a,n;let i=_.getState(),{lang:s,region:l}=(n=(a=i.defaultLocales)===null||a===void 0?void 0:a.defaultContentLocale)!==null&&n!==void 0?n:{lang:"en",region:"US"};return new F2.SearchPlaceConverter(i.baseUrl,t??20,i.searchInAllLanguagesAllowed,o??`${s}-${l}`)}};var ti=class{urlToSearchRequest(t){return Ur.get().parse(t)}searchRequestToUrl(t){return Ur.get().serialize(t)}};window.FluidTopicsUrlService=new ti;var dt=v(P());var Nt=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{currentItem:t}})}};Nt.eventName="change";var ri=class{itemName(t){return`fluid-topics-history-item-${t}`}get(t){let o=sessionStorage.getItem(this.itemName(t));return o?JSON.parse(o):void 0}set(t,o){sessionStorage.setItem(this.itemName(t),JSON.stringify(o))}},W2=new ri;var Fo=class e extends dt.WithEventBus{static build(){return new e(window.history,W2,()=>window.location,!1)}constructor(t,o,a,n){var i,s;super(),this.history=t,this.historyStorage=o,this.windowLocation=a,this.states=[],this.realPushState=t.pushState,this.realReplaceState=t.replaceState,this.initialIndex=(s=(i=t.state)===null||i===void 0?void 0:i.index)!==null&&s!==void 0?s:t.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(n)}setCurrentState(t,o=!1){let a=o&&this.currentIndex===t.index-1;this.currentState={...this.buildCurrentState(),...t},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,a&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,dt.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Nt(this.currentItem())),0)}installProxies(){let t=o=>(a,n,[i,s,l])=>{let f=o(),p={...f===this.currentIndex?this.currentState:void 0,...i,index:f,href:typeof l=="string"?l:(l??this.windowLocation()).href};a.apply(n,[p,s,l]),this.setCurrentState(p,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:t(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:t(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",t=>this.setCurrentState(t.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(t){for(let o=this.history.length-1;o>=0;o--)t?this.states[o]=this.historyStorage.get(o):setTimeout(()=>this.states[o]=this.historyStorage.get(o),this.history.length-o)}updateCurrentState(t){var o;let a={...this.buildCurrentState(),...t,index:this.currentIndex,title:(o=t?.title)!==null&&o!==void 0?o:this.currentState.title};this.setCurrentState(a)}addHistoryChangeListener(t){this.addEventListener(Nt.eventName,t)}removeHistoryChangeListener(t){this.removeEventListener(Nt.eventName,t)}currentItem(){return(0,dt.deepCopy)(this.currentState)}back(){let t=this.previousDifferentMajorPosition();t>=0?this.history.go(t-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,dt.deepCopy)(this.states[this.previousDifferentMajorPosition()])}previousDifferentMajorPosition(){let t=this.currentIndex>0?this.currentIndex-1:0;for(;t>0&&!this.isDifferentMajorState(t);)t--;return t}forward(){let t=this.nextMajorPosition();t&&t<this.states.length?this.history.go(t-this.currentIndex):this.history.forward()}forwardItem(){let t=this.nextMajorPosition();if(t)return(0,dt.deepCopy)(this.states[t])}nextMajorPosition(){let t=this.currentIndex;if(!(t>=this.states.length)){do t++;while(t<this.states.length&&!this.isDifferentMajorState(t));return this.getHigherPositionInTheSameState(t)}}getHigherPositionInTheSameState(t){var o;let a=(o=this.states[t])===null||o===void 0?void 0:o.majorStateId;if(!a)return t;let n=t,i=t+1;for(;this.states.length>i&&!this.isDifferentMajorState(i,a);)this.hasState(i)&&(n=i),i++;return n}buildCurrentState(){var t,o;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(o=(t=this.history.state)===null||t===void 0?void 0:t.title)!==null&&o!==void 0?o:document.title}}hasState(t){return this.states[t]!=null}isDifferentMajorState(t,o){var a;if(!this.hasState(t))return!1;let n=o??this.currentState.majorStateId,i=(a=this.states[t])===null||a===void 0?void 0:a.majorStateId;return i==null||i!=n}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Fo.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(e),removeHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(e)});var $2=v(K());var j2=$2.css`
1320
+ `}willUpdate(t){super.willUpdate(t),t.has("options")&&(this.selectedOption=this.options.filter(o=>o.selected)[0]),t.has("selectedOption")&&(this.optionsDisplayed=!1)}contentAvailableCallback(t){var o,a;if(super.contentAvailableCallback(t),t.has("focusOptions")&&this.focusOptions&&((a=(o=this.selectedOptionElement)!==null&&o!==void 0?o:this.firstOption)===null||a===void 0||a.focus(),this.focusOptions=!1),t.has("optionsDisplayed")&&this.hasOptionsMenuOpen){this.optionsMenu.style.minWidth=this.mainPanel.getBoundingClientRect().width+"px";let n=["bottom","top"];(0,Ee.computeOffsetAutoPosition)(this.mainPanel,this.optionsMenu,"bottom",n,"fixed",U.optionsHeight,0).then(({x:i,y:s})=>{this.optionsMenu.style.left=`${i}px`,this.optionsMenu.style.top=`${s}px`})}}get hasOptionsMenuOpen(){return!this.disabled&&this.optionsDisplayed&&this.hasOptions}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(t){var o;t.stopPropagation(),this.isSlotEmpty=(0,Ee.isSlotEmptyOrWithoutContent)(this.optionsSlot);let a=(o=this.optionsSlot)===null||o===void 0?void 0:o.assignedElements().map(n=>n);a&&a.length>0&&(this.options=a)}onMainPanelKeyDown(t){switch(t.key){case" ":t.preventDefault(),t.stopPropagation();case"Enter":this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=!0;break;case"ArrowUp":case"ArrowDown":t.preventDefault(),t.stopPropagation(),this.optionsDisplayed=!0,this.focusOptions=!0;break}}onOptionsKeyDown(t){var o,a;let n,i=this.focusedOption?this.optionsList.indexOf(this.focusedOption):0;switch(t.key){case" ":case"Enter":t.preventDefault(),t.stopPropagation(),this.onSelectOption(t),this.optionsDisplayed=!1,(o=this.mainPanel)===null||o===void 0||o.focus();break;case"Escape":this.optionsDisplayed=!1,(a=this.mainPanel)===null||a===void 0||a.focus();break;case"Tab":this.optionsDisplayed=!1;break;case"ArrowUp":t.preventDefault(),t.stopPropagation(),n=this.optionsList[(i-1+this.optionsList.length)%this.optionsList.length];break;case"ArrowDown":t.preventDefault(),t.stopPropagation(),n=this.optionsList[(i+1)%this.optionsList.length];break;default:if(t.key.length!=1)break;this.isKeyAlphanumeric(t.key)&&(n=this.handleAlphanumericPress(t.key));break}n?.focus()}isKeyAlphanumeric(t){let o=t.charCodeAt(0);return o>47&&o<58||o>64&&o<91||o>96&&o<123}handleAlphanumericPress(t){let o=new Date;o.getTime()-this.lastSearchInputDate.getTime()>e.searchTimeoutMilliseconds&&(this.currentSearch=""),this.currentSearch+=t.toLowerCase();let a=this.options.find(n=>{var i;return((i=n.label)===null||i===void 0?void 0:i.toLowerCase().substring(0,this.currentSearch.length))===this.currentSearch});return this.lastSearchInputDate=o,a&&this.optionsList.find(n=>n.value===a.value)}getOptionId(t){if(!t)return;let o=this.options.findIndex(a=>(0,Ee.deepEqual)(a.value,t.value));if(o!==-1)return`option-${o}`}onSelectOption(t){t.stopPropagation(),this.setValue(t.target.value)}setValue(t,o=!0){let a=this.options.find(n=>(0,Ee.deepEqual)(n.value,t));a&&this.selectOption(a,o)}selectOption(t,o=!0){var a,n;if(!(0,Ee.deepEqual)((a=this.selectedOption)===null||a===void 0?void 0:a.value,t?.value)){this.selectedOption=t;for(let i of this.options)i.selected=i===t;o&&this.dispatchEvent(new CustomEvent("change",{detail:(n=this.selectedOption)===null||n===void 0?void 0:n.value}))}this.optionsDisplayed=!1}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.hideOptions)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}};F.elementDefinitions={"ft-input-label":_e,"ft-typography":Fe,"ft-ripple":q,"ft-icon":be,"ft-select-option":pe};F.searchTimeoutMilliseconds=2e3;F.styles=[Ye,r1];se([(0,ee.property)({type:String})],F.prototype,"label",void 0);se([(0,ee.property)({type:String})],F.prototype,"ariaLabel",void 0);se([(0,ee.property)({type:String})],F.prototype,"helper",void 0);se([(0,ee.property)({type:Boolean})],F.prototype,"outlined",void 0);se([(0,ee.property)({type:Boolean})],F.prototype,"disabled",void 0);se([(0,ee.property)({type:Boolean})],F.prototype,"error",void 0);se([(0,ee.property)({type:Boolean})],F.prototype,"fixedMenuPosition",void 0);se([(0,ee.property)({type:Array})],F.prototype,"options",void 0);se([(0,ee.state)()],F.prototype,"selectedOption",void 0);se([(0,ee.state)()],F.prototype,"optionsDisplayed",void 0);se([(0,ee.state)()],F.prototype,"focusOptions",void 0);se([(0,ee.state)()],F.prototype,"currentSearch",void 0);se([(0,ee.state)()],F.prototype,"lastSearchInputDate",void 0);se([(0,ee.query)(".ft-select")],F.prototype,"container",void 0);se([(0,ee.query)(".ft-select--options")],F.prototype,"optionsMenu",void 0);se([(0,ee.query)(".ft-select--input-panel")],F.prototype,"mainPanel",void 0);se([(0,ee.query)("slot:not([name])")],F.prototype,"optionsSlot",void 0);var xn=v(P());(0,xn.customElement)("ft-select")(F);(0,xn.customElement)("ft-select-option")(pe);var d4=v(ra());var $n=v(re());function A6(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;let o,a,n;if(Array.isArray(e)){if(o=e.length,o!=t.length)return!1;for(a=o;a--!==0;)if(!go(e[a],t[a]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(a of e.entries())if(!t.has(a[0]))return!1;for(a of e.entries())if(!go(a[1],t.get(a[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(a of e.entries())if(!t.has(a[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();let i=s=>Object.keys(s).filter(l=>s[l]!=null);if(n=i(e),o=n.length,o!==i(t).length)return!1;for(a=o;a--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[a]))return!1;for(a=o;a--!==0;){let s=n[a];if(!go(e[s],t[s]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function go(e,t){try{return A6(e,t)}catch{return!1}}function zr(e,t){return!go(e,t)}function c1(e){return typeof window.structuredClone=="function"?structuredClone(e):e!=null?JSON.parse(JSON.stringify(e)):e}function yo(e,t){let o=a=>a[e]===!0;return a=>{if(o(a))return a;let n=t(a);return n[e]=!0,n}}var l1=v(re(),1);var vn=e=>{let t=e??{};return(o,a)=>{var n;let i={hasChanged:zr,attribute:!1,...t};(0,l1.property)(i)(o,a);let s=o.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(a,{selector:(n=t.selector)!==null&&n!==void 0?n:l=>l[a],store:t.store})}};var bo=class{constructor(){this.queue=[]}add(t,o=!1){o&&this.clear(t.type),this.queue.push(t)}consume(t){let o=this.queue.find(a=>a.type===t);return o&&(this.queue=this.queue.filter(a=>a!==o)),o}clear(t){typeof t=="string"?this.queue=this.queue.filter(o=>o.type!==t):this.queue=this.queue.filter(o=>!t.test(o.type))}};var At=v(re(),1);var d1=v(re(),1);function u1(e,t){let o=()=>JSON.parse(JSON.stringify(e));return(0,d1.property)({type:Object,converter:{fromAttribute:a=>{if(a==null)return o();try{return JSON.parse(a)}catch{return o()}},toAttribute:a=>JSON.stringify(a)},hasChanged:zr,...t??{}})}var xo=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,o){return this.callbacks=[t],this.debounce(o)}queue(t,o){return this.callbacks.push(t),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((o,a)=>{this.resolvePromise=o,this.rejectPromise=a})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,o;let a=[...this.callbacks];this.callbacks=[];let n=(t=this.rejectPromise)!==null&&t!==void 0?t:()=>null,i=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let s of a)try{await s()}catch(l){n(l);return}i(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var p1=v(K(),1);var vo=globalThis,L6=vo.ShadowRoot&&(vo.ShadyCSS===void 0||vo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Oy=Symbol();var f1=(e,t)=>{if(L6)e.adoptedStyleSheets=t.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(let o of t){let a=document.createElement("style"),n=vo.litNonce;n!==void 0&&a.setAttribute("nonce",n),a.textContent=o.cssText,e.appendChild(a)}};var So=class extends p1.LitElement{createRenderRoot(){let t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach(([n,i])=>t.registry.define(n,i)));let o={...t.shadowRootOptions,customElements:t.registry},a=this.renderOptions.creationScope=this.attachShadow(o);return f1(a,t.elementStyles),a}};function h1(e,t,...o){var a;let n=e.querySelector(t);for(let i of o)n=(a=n?.shadowRoot)===null||a===void 0?void 0:a.querySelector(i);return n}var rr=function(e,t,o,a){var n=arguments.length,i=n<3?t:a===null?a=Object.getOwnPropertyDescriptor(t,o):a,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,a);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(i=(n<3?s(i):n>3?s(t,o,i):s(t,o))||i);return n>3&&i&&Object.defineProperty(t,o,i),i},b1,m1=Symbol("constructorPrototype"),g1=Symbol("constructorName"),x1=Symbol("exportpartsDebouncer"),y1=Symbol("dynamicDependenciesLoaded"),tr=class e extends CustomEvent{constructor(){super(e.eventName,{bubbles:!0})}};tr.eventName="exportparts-updated";var Ue=class extends So{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[b1]=new xo(5),this.scheduleExportpartsUpdate=()=>{var t,o,a;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(a=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&a!==void 0&&a)&&this[x1].run(()=>{var n,i;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((i=this.exportpartsPrefixes)===null||i===void 0?void 0:i.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[g1]=this.constructor.name,this[m1]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[g1]&&Object.setPrototypeOf(this,this[m1])}connectedCallback(){var t;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(a){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",a)}let o=this.constructor;o[y1]||(o[y1]=!0,this.importDynamicDependencies()),(t=this.shadowRoot)===null||t===void 0||t.addEventListener(tr.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.shadowRoot)===null||t===void 0||t.removeEventListener(tr.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.focusElementToFocus(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate(),t.has("exportparts")&&this.dispatchEvent(new tr)})}contentAvailableCallback(t){}focusElementToFocus(t){if(t.has("elementToFocus")&&this.elementToFocus!=null){let{element:o,selector:a,shadowPath:n}=this.elementToFocus;if(a!=null){let i=[...n??[],a];o=h1(this.shadowRoot,...i)}o?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||o?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){var o,a,n;if(((a=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&a!==void 0?a:[]).forEach(i=>i.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(i){console.error(i,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let i=document.createElement("style");i.classList.add("ft-lit-element--custom-stylesheet"),i.innerHTML=this.customStylesheet,this.shadowRoot.append(i)}}setExportpartsAttribute(t){var o,a,n,i,s,l;let f=b=>b!=null&&b.trim().length>0,p=t.filter(f).map(b=>b.trim());if(p.length===0){this.exportparts=void 0;return}let m=new Set;for(let b of(a=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&a!==void 0?a:[]){let C=(i=(n=b.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&i!==void 0?i:[],E=(l=(s=b.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(M=>M.split(":")[1]))!==null&&l!==void 0?l:[],O=[...C,...E].filter(f).map(M=>M.trim());for(let M of O)m.add(M)}if(m.size===0){this.exportparts=void 0;return}let g=[...m.values()].flatMap(b=>p.map(C=>`${b}:${C}--${b}`));this.exportparts=[...this.part,...g].join(", ")}};b1=x1;rr([(0,At.property)()],Ue.prototype,"exportpartsPrefix",void 0);rr([u1([])],Ue.prototype,"exportpartsPrefixes",void 0);rr([(0,At.property)({reflect:!0})],Ue.prototype,"exportparts",void 0);rr([(0,At.property)()],Ue.prototype,"customStylesheet",void 0);rr([(0,At.property)()],Ue.prototype,"elementToFocus",void 0);rr([(0,At.state)()],Ue.prototype,"useAdoptedStyleSheets",void 0);function Co(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var Pr=Symbol("internalReduxEventsUnsubscribers"),at=Symbol("internalStoresUnsubscribers"),Lt=Symbol("internalStores"),O6=yo(Symbol("withRedux"),function(e){var t,o,a;class n extends e{constructor(){super(...arguments),this[t]=new Map,this[o]=new Map,this[a]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(l=>s.has(l))&&this.updateFromStores()}getUnnamedStore(){if(this[Lt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Lt].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Lt].get(s)}addStore(s,l){var f;l=(f=l??s.name)!==null&&f!==void 0?f:"default-store",this.unsubscribeFromStore(l),this[Lt].set(l,s),this.subscribeToStore(l,s),this.updateFromStores()}removeStore(s){let l=typeof s=="string"?s:s.name;this.unsubscribeFromStore(l),this[Lt].delete(l)}setupStores(){this.unsubscribeFromStores(),this[Lt].forEach((s,l)=>this.subscribeToStore(l,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,l)=>{let f=this.constructor.getPropertyOptions(l);if(!f?.attribute||!this.hasAttribute(typeof f?.attribute=="string"?f.attribute:l)){let p=this.getStore(s.store);p&&(s.store?this[at].has(s.store):this[at].size>0)&&(this[l]=s.selector(p.getState(),this))}})}subscribeToStore(s,l){var f;this[at].set(s,l.subscribe(()=>this.updateFromStores())),this[Pr].set(s,[]),Co(l)&&l.eventBus&&((f=this.reduxConstructor.reduxEventListeners)===null||f===void 0||f.forEach((p,m)=>{if(typeof this[m]=="function"&&(!p.store||l.name===p.store)){let g=b=>this[m](b);l.addEventListener(p.eventName,g),this[Pr].get(s).push(()=>l.removeEventListener(p.eventName,g))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[at].forEach((s,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(s){var l;this[at].has(s)&&this[at].get(s)(),this[at].delete(s),(l=this[Pr].get(s))===null||l===void 0||l.forEach(f=>f()),this[Pr].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return t=at,o=Lt,a=Pr,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),v1=class extends O6(Ue){};function Ae(e){for(var t=arguments.length,o=Array(t>1?t-1:0),a=1;a<t;a++)o[a-1]=arguments[a];if(0)var n,i;throw Error("[Immer] minified error nr: "+e+(o.length?" "+o.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function qe(e){return!!e&&!!e[Z]}function Me(e){var t;return!!e&&(function(o){if(!o||typeof o!="object")return!1;var a=Object.getPrototypeOf(o);if(a===null)return!0;var n=Object.hasOwnProperty.call(a,"constructor")&&a.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===P6}(e)||Array.isArray(e)||!!e[R1]||!!(!((t=e.constructor)===null||t===void 0)&&t[R1])||wn(e)||Nn(e))}function Ot(e,t,o){o===void 0&&(o=!1),nr(e)===0?(o?Object.keys:ar)(e).forEach(function(a){o&&typeof a=="symbol"||t(a,e[a],e)}):e.forEach(function(a,n){return t(n,a,e)})}function nr(e){var t=e[Z];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:wn(e)?2:Nn(e)?3:0}function or(e,t){return nr(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function R6(e,t){return nr(e)===2?e.get(t):e[t]}function _1(e,t,o){var a=nr(e);a===2?e.set(t,o):a===3?e.add(o):e[t]=o}function w1(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function wn(e){return T6&&e instanceof Map}function Nn(e){return z6&&e instanceof Set}function nt(e){return e.o||e.t}function Mn(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=T1(e);delete t[Z];for(var o=ar(t),a=0;a<o.length;a++){var n=o[a],i=t[n];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[n]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[n]})}return Object.create(Object.getPrototypeOf(e),t)}function Tn(e,t){return t===void 0&&(t=!1),zn(e)||qe(e)||!Me(e)||(nr(e)>1&&(e.set=e.add=e.clear=e.delete=_6),Object.freeze(e),t&&Ot(e,function(o,a){return Tn(a,!0)},!0)),e}function _6(){Ae(2)}function zn(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Be(e){var t=_n[e];return t||Ae(18,e),t}function w6(e,t){_n[e]||(_n[e]=t)}function Ln(){return kr}function Sn(e,t){t&&(Be("Patches"),e.u=[],e.s=[],e.v=t)}function Eo(e){On(e),e.p.forEach(N6),e.p=null}function On(e){e===kr&&(kr=e.l)}function S1(e){return kr={p:[],l:kr,h:e,m:!0,_:0}}function N6(e){var t=e[Z];t.i===0||t.i===1?t.j():t.g=!0}function Cn(e,t){t._=t.p.length;var o=t.p[0],a=e!==void 0&&e!==o;return t.h.O||Be("ES5").S(t,e,a),a?(o[Z].P&&(Eo(t),Ae(4)),Me(e)&&(e=Ao(t,e),t.l||Lo(t,e)),t.u&&Be("Patches").M(o[Z].t,e,t.u,t.s)):e=Ao(t,o,[]),Eo(t),t.u&&t.v(t.u,t.s),e!==M1?e:void 0}function Ao(e,t,o){if(zn(t))return t;var a=t[Z];if(!a)return Ot(t,function(l,f){return C1(e,a,t,l,f,o)},!0),t;if(a.A!==e)return t;if(!a.P)return Lo(e,a.t,!0),a.t;if(!a.I){a.I=!0,a.A._--;var n=a.i===4||a.i===5?a.o=Mn(a.k):a.o,i=n,s=!1;a.i===3&&(i=new Set(n),n.clear(),s=!0),Ot(i,function(l,f){return C1(e,a,n,l,f,o,s)}),Lo(e,n,!1),o&&e.u&&Be("Patches").N(a,o,e.u,e.s)}return a.o}function C1(e,t,o,a,n,i,s){if(qe(n)){var l=Ao(e,n,i&&t&&t.i!==3&&!or(t.R,a)?i.concat(a):void 0);if(_1(o,a,l),!qe(l))return;e.m=!1}else s&&o.add(n);if(Me(n)&&!zn(n)){if(!e.h.D&&e._<1)return;Ao(e,n),t&&t.A.l||Lo(e,n)}}function Lo(e,t,o){o===void 0&&(o=!1),!e.l&&e.h.D&&e.m&&Tn(t,o)}function En(e,t){var o=e[Z];return(o?nt(o):e)[t]}function E1(e,t){if(t in e)for(var o=Object.getPrototypeOf(e);o;){var a=Object.getOwnPropertyDescriptor(o,t);if(a)return a;o=Object.getPrototypeOf(o)}}function it(e){e.P||(e.P=!0,e.l&&it(e.l))}function An(e){e.o||(e.o=Mn(e.t))}function Rn(e,t,o){var a=wn(t)?Be("MapSet").F(t,o):Nn(t)?Be("MapSet").T(t,o):e.O?function(n,i){var s=Array.isArray(n),l={i:s?1:0,A:i?i.A:Ln(),P:!1,I:!1,R:{},l:i,t:n,k:null,o:null,j:null,C:!1},f=l,p=Dr;s&&(f=[l],p=Ir);var m=Proxy.revocable(f,p),g=m.revoke,b=m.proxy;return l.k=b,l.j=g,b}(t,o):Be("ES5").J(t,o);return(o?o.A:Ln()).p.push(a),a}function M6(e){return qe(e)||Ae(22,e),function t(o){if(!Me(o))return o;var a,n=o[Z],i=nr(o);if(n){if(!n.P&&(n.i<4||!Be("ES5").K(n)))return n.t;n.I=!0,a=A1(o,i),n.I=!1}else a=A1(o,i);return Ot(a,function(s,l){n&&R6(n.t,s)===l||_1(a,s,t(l))}),i===3?new Set(a):a}(e)}function A1(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Mn(e)}function N1(){function e(s,l){var f=i[s];return f?f.enumerable=l:i[s]=f={configurable:!0,enumerable:l,get:function(){var p=this[Z];return Dr.get(p,s)},set:function(p){var m=this[Z];Dr.set(m,s,p)}},f}function t(s){for(var l=s.length-1;l>=0;l--){var f=s[l][Z];if(!f.P)switch(f.i){case 5:a(f)&&it(f);break;case 4:o(f)&&it(f)}}}function o(s){for(var l=s.t,f=s.k,p=ar(f),m=p.length-1;m>=0;m--){var g=p[m];if(g!==Z){var b=l[g];if(b===void 0&&!or(l,g))return!0;var C=f[g],E=C&&C[Z];if(E?E.t!==b:!w1(C,b))return!0}}var O=!!l[Z];return p.length!==ar(l).length+(O?0:1)}function a(s){var l=s.k;if(l.length!==s.t.length)return!0;var f=Object.getOwnPropertyDescriptor(l,l.length-1);if(f&&!f.get)return!0;for(var p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function n(s){s.g&&Ae(3,JSON.stringify(nt(s)))}var i={};w6("ES5",{J:function(s,l){var f=Array.isArray(s),p=function(g,b){if(g){for(var C=Array(b.length),E=0;E<b.length;E++)Object.defineProperty(C,""+E,e(E,!0));return C}var O=T1(b);delete O[Z];for(var M=ar(O),T=0;T<M.length;T++){var w=M[T];O[w]=e(w,g||!!O[w].enumerable)}return Object.create(Object.getPrototypeOf(b),O)}(f,s),m={i:f?5:4,A:l?l.A:Ln(),P:!1,I:!1,R:{},l,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,Z,{value:m,writable:!0}),p},S:function(s,l,f){f?qe(l)&&l[Z].A===s&&t(s.p):(s.u&&function p(m){if(m&&typeof m=="object"){var g=m[Z];if(g){var b=g.t,C=g.k,E=g.R,O=g.i;if(O===4)Ot(C,function(B){B!==Z&&(b[B]!==void 0||or(b,B)?E[B]||p(C[B]):(E[B]=!0,it(g)))}),Ot(b,function(B){C[B]!==void 0||or(C,B)||(E[B]=!1,it(g))});else if(O===5){if(a(g)&&(it(g),E.length=!0),C.length<b.length)for(var M=C.length;M<b.length;M++)E[M]=!1;else for(var T=b.length;T<C.length;T++)E[T]=!0;for(var w=Math.min(C.length,b.length),D=0;D<w;D++)C.hasOwnProperty(D)||(E[D]=!0),E[D]===void 0&&p(C[D])}}}}(s.p[0]),t(s.p))},K:function(s){return s.i===4?o(s):a(s)}})}var L1,kr,Pn=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",T6=typeof Map<"u",z6=typeof Set<"u",O1=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",M1=Pn?Symbol.for("immer-nothing"):((L1={})["immer-nothing"]=!0,L1),R1=Pn?Symbol.for("immer-draftable"):"__$immer_draftable",Z=Pn?Symbol.for("immer-state"):"__$immer_state";var P6=""+Object.prototype.constructor,ar=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,T1=Object.getOwnPropertyDescriptors||function(e){var t={};return ar(e).forEach(function(o){t[o]=Object.getOwnPropertyDescriptor(e,o)}),t},_n={},Dr={get:function(e,t){if(t===Z)return e;var o=nt(e);if(!or(o,t))return function(n,i,s){var l,f=E1(i,s);return f?"value"in f?f.value:(l=f.get)===null||l===void 0?void 0:l.call(n.k):void 0}(e,o,t);var a=o[t];return e.I||!Me(a)?a:a===En(e.t,t)?(An(e),e.o[t]=Rn(e.A.h,a,e)):a},has:function(e,t){return t in nt(e)},ownKeys:function(e){return Reflect.ownKeys(nt(e))},set:function(e,t,o){var a=E1(nt(e),t);if(a?.set)return a.set.call(e.k,o),!0;if(!e.P){var n=En(nt(e),t),i=n?.[Z];if(i&&i.t===o)return e.o[t]=o,e.R[t]=!1,!0;if(w1(o,n)&&(o!==void 0||or(e.t,t)))return!0;An(e),it(e)}return e.o[t]===o&&(o!==void 0||t in e.o)||Number.isNaN(o)&&Number.isNaN(e.o[t])||(e.o[t]=o,e.R[t]=!0),!0},deleteProperty:function(e,t){return En(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,An(e),it(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var o=nt(e),a=Reflect.getOwnPropertyDescriptor(o,t);return a&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:a.enumerable,value:o[t]}},defineProperty:function(){Ae(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Ae(12)}},Ir={};Ot(Dr,function(e,t){Ir[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Ir.deleteProperty=function(e,t){return Ir.set.call(this,e,t,void 0)},Ir.set=function(e,t,o){return Dr.set.call(this,e[0],t,o,e[0])};var I6=function(){function e(o){var a=this;this.O=O1,this.D=!0,this.produce=function(n,i,s){if(typeof n=="function"&&typeof i!="function"){var l=i;i=n;var f=a;return function(O){var M=this;O===void 0&&(O=l);for(var T=arguments.length,w=Array(T>1?T-1:0),D=1;D<T;D++)w[D-1]=arguments[D];return f.produce(O,function(B){var V;return(V=i).call.apply(V,[M,B].concat(w))})}}var p;if(typeof i!="function"&&Ae(6),s!==void 0&&typeof s!="function"&&Ae(7),Me(n)){var m=S1(a),g=Rn(a,n,void 0),b=!0;try{p=i(g),b=!1}finally{b?Eo(m):On(m)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(O){return Sn(m,s),Cn(O,m)},function(O){throw Eo(m),O}):(Sn(m,s),Cn(p,m))}if(!n||typeof n!="object"){if((p=i(n))===void 0&&(p=n),p===M1&&(p=void 0),a.D&&Tn(p,!0),s){var C=[],E=[];Be("Patches").M(n,p,C,E),s(C,E)}return p}Ae(21,n)},this.produceWithPatches=function(n,i){if(typeof n=="function")return function(p){for(var m=arguments.length,g=Array(m>1?m-1:0),b=1;b<m;b++)g[b-1]=arguments[b];return a.produceWithPatches(p,function(C){return n.apply(void 0,[C].concat(g))})};var s,l,f=a.produce(n,i,function(p,m){s=p,l=m});return typeof Promise<"u"&&f instanceof Promise?f.then(function(p){return[p,s,l]}):[f,s,l]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var t=e.prototype;return t.createDraft=function(o){Me(o)||Ae(8),qe(o)&&(o=M6(o));var a=S1(this),n=Rn(this,o,void 0);return n[Z].C=!0,On(a),n},t.finishDraft=function(o,a){var n=o&&o[Z],i=n.A;return Sn(i,a),Cn(void 0,i)},t.setAutoFreeze=function(o){this.D=o},t.setUseProxies=function(o){o&&!O1&&Ae(20),this.O=o},t.applyPatches=function(o,a){var n;for(n=a.length-1;n>=0;n--){var i=a[n];if(i.path.length===0&&i.op==="replace"){o=i.value;break}}n>-1&&(a=a.slice(n+1));var s=Be("Patches").$;return qe(o)?s(o,a):this.produce(o,function(l){return s(l,a)})},e}(),ve=new I6,k6=ve.produce,Hy=ve.produceWithPatches.bind(ve),Fy=ve.setAutoFreeze.bind(ve),Wy=ve.setUseProxies.bind(ve),$y=ve.applyPatches.bind(ve),jy=ve.createDraft.bind(ve),Vy=ve.finishDraft.bind(ve),Oo=k6;function Rt(e){"@babel/helpers - typeof";return Rt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rt(e)}function z1(e,t){if(Rt(e)!="object"||!e)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var a=o.call(e,t||"default");if(Rt(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function P1(e){var t=z1(e,"string");return Rt(t)=="symbol"?t:t+""}function I1(e,t,o){return(t=P1(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function k1(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),o.push.apply(o,a)}return o}function In(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?k1(Object(o),!0).forEach(function(a){I1(e,a,o[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):k1(Object(o)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(o,a))})}return e}function fe(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var D1=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),kn=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ro={INIT:"@@redux/INIT"+kn(),REPLACE:"@@redux/REPLACE"+kn(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+kn()}};function D6(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Dn(e,t,o){var a;if(typeof t=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(fe(0));if(typeof t=="function"&&typeof o>"u"&&(o=t,t=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(fe(1));return o(Dn)(e,t)}if(typeof e!="function")throw new Error(fe(2));var n=e,i=t,s=[],l=s,f=!1;function p(){l===s&&(l=s.slice())}function m(){if(f)throw new Error(fe(3));return i}function g(O){if(typeof O!="function")throw new Error(fe(4));if(f)throw new Error(fe(5));var M=!0;return p(),l.push(O),function(){if(M){if(f)throw new Error(fe(6));M=!1,p();var w=l.indexOf(O);l.splice(w,1),s=null}}}function b(O){if(!D6(O))throw new Error(fe(7));if(typeof O.type>"u")throw new Error(fe(8));if(f)throw new Error(fe(9));try{f=!0,i=n(i,O)}finally{f=!1}for(var M=s=l,T=0;T<M.length;T++){var w=M[T];w()}return O}function C(O){if(typeof O!="function")throw new Error(fe(10));n=O,b({type:Ro.REPLACE})}function E(){var O,M=g;return O={subscribe:function(w){if(typeof w!="object"||w===null)throw new Error(fe(11));function D(){w.next&&w.next(m())}D();var B=M(D);return{unsubscribe:B}}},O[D1]=function(){return this},O}return b({type:Ro.INIT}),a={dispatch:b,subscribe:g,getState:m,replaceReducer:C},a[D1]=E,a}function U6(e){Object.keys(e).forEach(function(t){var o=e[t],a=o(void 0,{type:Ro.INIT});if(typeof a>"u")throw new Error(fe(12));if(typeof o(void 0,{type:Ro.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(fe(13))})}function U1(e){for(var t=Object.keys(e),o={},a=0;a<t.length;a++){var n=t[a];typeof e[n]=="function"&&(o[n]=e[n])}var i=Object.keys(o),s,l;try{U6(o)}catch(f){l=f}return function(p,m){if(p===void 0&&(p={}),l)throw l;if(0)var g;for(var b=!1,C={},E=0;E<i.length;E++){var O=i[E],M=o[O],T=p[O],w=M(T,m);if(typeof w>"u"){var D=m&&m.type;throw new Error(fe(14))}C[O]=w,b=b||w!==T}return b=b||i.length!==Object.keys(p).length,b?C:p}}function ir(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return t.length===0?function(a){return a}:t.length===1?t[0]:t.reduce(function(a,n){return function(){return a(n.apply(void 0,arguments))}})}function B1(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return function(a){return function(){var n=a.apply(void 0,arguments),i=function(){throw new Error(fe(15))},s={getState:n.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=t.map(function(f){return f(s)});return i=ir.apply(void 0,l)(n.dispatch),In(In({},n),{},{dispatch:i})}}}function G1(e){var t=function(a){var n=a.dispatch,i=a.getState;return function(s){return function(l){return typeof l=="function"?l(n,i,e):s(l)}}};return t}var H1=G1();H1.withExtraArgument=G1;var Un=H1;var V1=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,n){a.__proto__=n}||function(a,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(a[i]=n[i])},e(t,o)};return function(t,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");e(t,o);function a(){this.constructor=t}t.prototype=o===null?Object.create(o):(a.prototype=o.prototype,new a)}}(),B6=function(e,t){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},a,n,i,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(p){return function(m){return f([p,m])}}function f(p){if(a)throw new TypeError("Generator is already executing.");for(;o;)try{if(a=1,n&&(i=p[0]&2?n.return:p[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,p[1])).done)return i;switch(n=0,i&&(p=[p[0]&2,i.value]),p[0]){case 0:case 1:i=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(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(p[0]===6||p[0]===2)){o=0;continue}if(p[0]===3&&(!i||p[1]>i[0]&&p[1]<i[3])){o.label=p[1];break}if(p[0]===6&&o.label<i[1]){o.label=i[1],i=p;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(p);break}i[2]&&o.ops.pop(),o.trys.pop();continue}p=t.call(e,o)}catch(m){p=[6,m],n=0}finally{a=i=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},sr=function(e,t){for(var o=0,a=t.length,n=e.length;o<a;o++,n++)e[n]=t[o];return e},G6=Object.defineProperty,H6=Object.defineProperties,F6=Object.getOwnPropertyDescriptors,F1=Object.getOwnPropertySymbols,W6=Object.prototype.hasOwnProperty,$6=Object.prototype.propertyIsEnumerable,W1=function(e,t,o){return t in e?G6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o},st=function(e,t){for(var o in t||(t={}))W6.call(t,o)&&W1(e,o,t[o]);if(F1)for(var a=0,n=F1(t);a<n.length;a++){var o=n[a];$6.call(t,o)&&W1(e,o,t[o])}return e},Bn=function(e,t){return H6(e,F6(t))},j6=function(e,t,o){return new Promise(function(a,n){var i=function(f){try{l(o.next(f))}catch(p){n(p)}},s=function(f){try{l(o.throw(f))}catch(p){n(p)}},l=function(f){return f.done?a(f.value):Promise.resolve(f.value).then(i,s)};l((o=o.apply(e,t)).next())})};var V6=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ir:ir.apply(null,arguments)},db=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function K6(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var o=t;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return t===o}var q6=function(e){V1(t,e);function t(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];var n=e.apply(this,o)||this;return Object.setPrototypeOf(n,t.prototype),n}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];return e.prototype.concat.apply(this,o)},t.prototype.prepend=function(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];return o.length===1&&Array.isArray(o[0])?new(t.bind.apply(t,sr([void 0],o[0].concat(this)))):new(t.bind.apply(t,sr([void 0],o.concat(this))))},t}(Array),Z6=function(e){V1(t,e);function t(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];var n=e.apply(this,o)||this;return Object.setPrototypeOf(n,t.prototype),n}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];return e.prototype.concat.apply(this,o)},t.prototype.prepend=function(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];return o.length===1&&Array.isArray(o[0])?new(t.bind.apply(t,sr([void 0],o[0].concat(this)))):new(t.bind.apply(t,sr([void 0],o.concat(this))))},t}(Array);function Fn(e){return Me(e)?Oo(e,function(){}):e}function Y6(e){return typeof e=="boolean"}function X6(){return function(t){return Q6(t)}}function Q6(e){e===void 0&&(e={});var t=e.thunk,o=t===void 0?!0:t,a=e.immutableCheck,n=a===void 0?!0:a,i=e.serializableCheck,s=i===void 0?!0:i,l=new q6;if(o&&(Y6(o)?l.push(Un):l.push(Un.withExtraArgument(o.extraArgument))),0){if(n)var f;if(s)var p}return l}var Gn=!0;function K1(e){var t=X6(),o=e||{},a=o.reducer,n=a===void 0?void 0:a,i=o.middleware,s=i===void 0?t():i,l=o.devTools,f=l===void 0?!0:l,p=o.preloadedState,m=p===void 0?void 0:p,g=o.enhancers,b=g===void 0?void 0:g,C;if(typeof n=="function")C=n;else if(K6(n))C=U1(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 E=s;if(typeof E=="function"&&(E=E(t),!Gn&&!Array.isArray(E)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Gn&&E.some(function(B){return typeof B!="function"}))throw new Error("each middleware provided to configureStore must be a function");var O=B1.apply(void 0,E),M=ir;f&&(M=V6(st({trace:!Gn},typeof f=="object"&&f)));var T=new Z6(O),w=T;Array.isArray(b)?w=sr([O],b):typeof b=="function"&&(w=b(T));var D=M.apply(void 0,w);return Dn(C,m,D)}function ct(e,t){function o(){for(var a=[],n=0;n<arguments.length;n++)a[n]=arguments[n];if(t){var i=t.apply(void 0,a);if(!i)throw new Error("prepareAction did not return an object");return st(st({type:e,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:e,payload:a[0]}}return o.toString=function(){return""+e},o.type=e,o.match=function(a){return a.type===e},o}function q1(e){var t={},o=[],a,n={addCase:function(i,s){var l=typeof i=="string"?i:i.type;if(l in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[l]=s,n},addMatcher:function(i,s){return o.push({matcher:i,reducer:s}),n},addDefaultCase:function(i){return a=i,n}};return e(n),[t,o,a]}function J6(e){return typeof e=="function"}function e8(e,t,o,a){o===void 0&&(o=[]);var n=typeof t=="function"?q1(t):[t,o,a],i=n[0],s=n[1],l=n[2],f;if(J6(e))f=function(){return Fn(e())};else{var p=Fn(e);f=function(){return p}}function m(g,b){g===void 0&&(g=f());var C=sr([i[b.type]],s.filter(function(E){var O=E.matcher;return O(b)}).map(function(E){var O=E.reducer;return O}));return C.filter(function(E){return!!E}).length===0&&(C=[l]),C.reduce(function(E,O){if(O)if(qe(E)){var M=E,T=O(M,b);return T===void 0?E:T}else{if(Me(E))return Oo(E,function(w){return O(w,b)});var T=O(E,b);if(T===void 0){if(E===null)return E;throw Error("A case reducer on a non-draftable value must not return undefined")}return T}return E},g)}return m.getInitialState=f,m}function t8(e,t){return e+"/"+t}function Z1(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof e.initialState=="function"?e.initialState:Fn(e.initialState),a=e.reducers||{},n=Object.keys(a),i={},s={},l={};n.forEach(function(m){var g=a[m],b=t8(t,m),C,E;"reducer"in g?(C=g.reducer,E=g.prepare):C=g,i[m]=C,s[b]=C,l[m]=E?ct(b,E):ct(b)});function f(){var m=typeof e.extraReducers=="function"?q1(e.extraReducers):[e.extraReducers],g=m[0],b=g===void 0?{}:g,C=m[1],E=C===void 0?[]:C,O=m[2],M=O===void 0?void 0:O,T=st(st({},b),s);return e8(o,function(w){for(var D in T)w.addCase(D,T[D]);for(var B=0,V=E;B<V.length;B++){var ye=V[B];w.addMatcher(ye.matcher,ye.reducer)}M&&w.addDefaultCase(M)})}var p;return{name:t,reducer:function(m,g){return p||(p=f()),p(m,g)},actions:l,caseReducers:i,getInitialState:function(){return p||(p=f()),p.getInitialState()}}}var r8="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",o8=function(e){e===void 0&&(e=21);for(var t="",o=e;o--;)t+=r8[Math.random()*64|0];return t},a8=["name","message","stack","code"],Hn=function(){function e(t,o){this.payload=t,this.meta=o}return e}(),$1=function(){function e(t,o){this.payload=t,this.meta=o}return e}(),n8=function(e){if(typeof e=="object"&&e!==null){for(var t={},o=0,a=a8;o<a.length;o++){var n=a[o];typeof e[n]=="string"&&(t[n]=e[n])}return t}return{message:String(e)}},hb=function(){function e(t,o,a){var n=ct(t+"/fulfilled",function(m,g,b,C){return{payload:m,meta:Bn(st({},C||{}),{arg:b,requestId:g,requestStatus:"fulfilled"})}}),i=ct(t+"/pending",function(m,g,b){return{payload:void 0,meta:Bn(st({},b||{}),{arg:g,requestId:m,requestStatus:"pending"})}}),s=ct(t+"/rejected",function(m,g,b,C,E){return{payload:C,error:(a&&a.serializeError||n8)(m||"Rejected"),meta:Bn(st({},E||{}),{arg:b,requestId:g,rejectedWithValue:!!C,requestStatus:"rejected",aborted:m?.name==="AbortError",condition:m?.name==="ConditionError"})}}),l=!1,f=typeof AbortController<"u"?AbortController:function(){function m(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return m.prototype.abort=function(){},m}();function p(m){return function(g,b,C){var E=a?.idGenerator?a.idGenerator(m):o8(),O=new f,M,T=!1;function w(B){M=B,O.abort()}var D=function(){return j6(this,null,function(){var B,V,ye,Re,le,ut,Tt;return B6(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),Re=(B=a?.condition)==null?void 0:B.call(a,m,{getState:b,extra:C}),s8(Re)?[4,Re]:[3,2];case 1:Re=y.sent(),y.label=2;case 2:if(Re===!1||O.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return T=!0,le=new Promise(function(x,z){return O.signal.addEventListener("abort",function(){return z({name:"AbortError",message:M||"Aborted"})})}),g(i(E,m,(V=a?.getPendingMeta)==null?void 0:V.call(a,{requestId:E,arg:m},{getState:b,extra:C}))),[4,Promise.race([le,Promise.resolve(o(m,{dispatch:g,getState:b,extra:C,requestId:E,signal:O.signal,abort:w,rejectWithValue:function(x,z){return new Hn(x,z)},fulfillWithValue:function(x,z){return new $1(x,z)}})).then(function(x){if(x instanceof Hn)throw x;return x instanceof $1?n(x.payload,E,m,x.meta):n(x,E,m)})])];case 3:return ye=y.sent(),[3,5];case 4:return ut=y.sent(),ye=ut instanceof Hn?s(null,E,m,ut.payload,ut.meta):s(ut,E,m),[3,5];case 5:return Tt=a&&!a.dispatchConditionRejection&&s.match(ye)&&ye.meta.condition,Tt||g(ye),[2,ye]}})})}();return Object.assign(D,{abort:w,requestId:E,arg:m,unwrap:function(){return D.then(i8)}})}}return Object.assign(p,{pending:i,rejected:s,fulfilled:n,typePrefix:t})}return e.withTypes=function(){return e},e}();function i8(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function s8(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Y1="listener",X1="completed",Q1="cancelled",mb="task-"+Q1,gb="task-"+X1,yb=Y1+"-"+Q1,bb=Y1+"-"+X1;var Wn="listenerMiddleware";var xb=ct(Wn+"/add"),vb=ct(Wn+"/removeAll"),Sb=ct(Wn+"/remove");var j1,Cb=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(j1||(j1=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},c8=function(e){return function(t){setTimeout(t,e)}},Eb=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:c8(10);N1();var l8=yo(Symbol("withEventBus"),function(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(o,a,n){this.eventBus.addEventListener(o,a,n)}dispatchEvent(o){return this.eventBus.dispatchEvent(o)}removeEventListener(o,a,n){this.eventBus.removeEventListener(o,a,n)}}}),_o=class extends l8(Object){};window.ftReduxStores||(window.ftReduxStores={});var J1=class e extends _o{static get(t){var o;let a=typeof t=="string"?t:t.name,n=typeof t=="string"?void 0:t,i=window.ftReduxStores[a];if(Co(i))return i;if(n==null)return;let s=Z1({...n,reducers:(o=n.reducers)!==null&&o!==void 0?o:{}}),l=K1({reducer:(f,p)=>{if(p.type==="CLEAR_FT_REDUX_STORE"){let m=c1(s.getInitialState());for(let g of p.keeping)m[g]=(f??m)[g];return m}else if(typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...f,...p.overwrites};return s.reducer(f,p)}});return window.ftReduxStores[n.name]=new e(s,l,n.eventBus)}constructor(t,o,a){super(),this.reduxSlice=t,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new bo;let n=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,s,l)=>{let f=s,p=i[f];return p?(...m)=>{let g=p(...m.map(n));return this.reduxStore.dispatch(g),g}:m=>{this.setState({[f]:n(m)})}}}),this.eventBus=a??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...t){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:t})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var wo=class{static format(t,o,a,n){return window.moment?window.moment(t).locale(o).format(this.getMomentDateFormat(a,n)):this.getIntlDateTime(t,o,a,n)}static getMomentDateFormat(t,o){return t?o?"lll":"ll":o?"L LT":"L"}static getIntlDateTime(t,o,a,n){let i=typeof t=="string"?new Date(t):t,s=new Intl.DateTimeFormat(o,{dateStyle:a?"medium":"short"}).format(i);if(!n)return s;let l=new Intl.DateTimeFormat(o,{timeStyle:"short"}).format(i);return`${s} ${l}`}static getTimezoneAsString(){let t=a=>String(Math.floor(a)).padStart(2,"0"),o=new Date().getTimezoneOffset();return`${o<0?"+":"-"}${t(Math.abs(o)/60)}:${t(Math.abs(o)%60)}`}};var No=v(P()),d8="ft-app-info",_t=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};_t.eventName="authentication-change";var u8={session:(e,t)=>{(0,No.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>_.dispatchEvent(new _t(t.payload)),0))}},_=No.FtReduxStore.get({name:d8,reducers:u8,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 e2=v(P()),Mo=function(e,t,o,a){var n=arguments.length,i=n<3?t:a===null?a=Object.getOwnPropertyDescriptor(t,o):a,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,a);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(i=(n<3?s(i):n>3?s(t,o,i):s(t,o))||i);return n>3&&i&&Object.defineProperty(t,o,i),i},Xb=(0,e2.applyMixinOnce)(Symbol("withDateFormat"),function(e){class t extends e{constructor(...a){super(a),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(_)}dateFormatOptionsChanged(a){return a.has("metadataDescriptors")||a.has("useLongDateFormat")||a.has("useDateTimeFormat")||a.has("uiLocale")}getDateFormatter(a){var n,i;return((i=(n=this.metadataDescriptors.find(l=>l.key===a))===null||n===void 0?void 0:n.date)!==null&&i!==void 0?i:!1)?l=>wo.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Mo([(0,$n.property)({type:Boolean})],t.prototype,"useLongDateFormat",void 0),Mo([(0,$n.property)({type:Boolean})],t.prototype,"useDateTimeFormat",void 0),Mo([vn({store:_.name,selector:o=>{var a,n;return(n=(a=o.metadataConfiguration)===null||a===void 0?void 0:a.descriptors)!==null&&n!==void 0?n:[]}})],t.prototype,"metadataDescriptors",void 0),Mo([vn({store:_.name})],t.prototype,"uiLocale",void 0),t});var p8=v(r2(),1);var o2;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(o2||(o2={}));var a2;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(a2||(a2={}));var n2;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(n2||(n2={}));var i2;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(i2||(i2={}));var s2;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(s2||(s2={}));var c2;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(c2||(c2={}));var l2;(function(e){e.BOOKMARK__CREATE="BOOKMARK__CREATE",e.BOOKMARK__DELETE="BOOKMARK__DELETE",e.CASE_DEFLECTION__START="CASE_DEFLECTION__START",e.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",e.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",e.CHATBOT__RATE="CHATBOT__RATE",e.COLLECTION__CREATE="COLLECTION__CREATE",e.COLLECTION__UPDATE="COLLECTION__UPDATE",e.COLLECTION__DELETE="COLLECTION__DELETE",e.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",e.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",e.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",e.DOCUMENT__PRINT="DOCUMENT__PRINT",e.DOCUMENT__PROCESS="DOCUMENT__PROCESS",e.DOCUMENT__RATE="DOCUMENT__RATE",e.DOCUMENT__SEARCH="DOCUMENT__SEARCH",e.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",e.DOCUMENT__UNRATE="DOCUMENT__UNRATE",e.FEEDBACK__SEND="FEEDBACK__SEND",e.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",e.AI__RATE="AI__RATE",e.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",e.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",e.KHUB__PROCESS="KHUB__PROCESS",e.KHUB__SEARCH="KHUB__SEARCH",e.LABELS__DOWNLOAD="LABELS__DOWNLOAD",e.LINK__SHARE="LINK__SHARE",e.PAGE__DISPLAY="PAGE__DISPLAY",e.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",e.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",e.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",e.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",e.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",e.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",e.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",e.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",e.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",e.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",e.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",e.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",e.TOPIC__RATE="TOPIC__RATE",e.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",e.TOPIC__UNRATE="TOPIC__UNRATE",e.USER__LOGIN="USER__LOGIN",e.USER__LOGOUT="USER__LOGOUT",e.HEARTBEAT="HEARTBEAT"})(l2||(l2={}));var d2;(function(e){e.THIRD_PARTY="THIRD_PARTY",e.OFF_THE_GRID="OFF_THE_GRID",e.CONTENT_PACKAGER="CONTENT_PACKAGER",e.PAGES="PAGES",e.DESIGNED_READER="DESIGNED_READER"})(d2||(d2={}));var u2;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT",e.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",e.LINK_PREVIEW="LINK_PREVIEW",e.UD_VIEWER="UD_VIEWER",e.ASSET_VIEWER="ASSET_VIEWER"})(u2||(u2={}));var f2;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(f2||(f2={}));var p2;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(p2||(p2={}));var h2;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(h2||(h2={}));var m2;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(m2||(m2={}));var g2;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR",e.CUSTOM="CUSTOM"})(g2||(g2={}));var jn;(function(e){e.OPTIONAL="OPTIONAL",e.MANDATORY="MANDATORY"})(jn||(jn={}));var y2;(function(e){e.ASC="ASC",e.DESC="DESC"})(y2||(y2={}));var b2;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(b2||(b2={}));var Vn;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(Vn||(Vn={}));var x2;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(x2||(x2={}));var v2;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(v2||(v2={}));var S2;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(S2||(S2={}));var C2;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(C2||(C2={}));var E2;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.HTML_PACKAGE="HTML_PACKAGE",e.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(E2||(E2={}));var Kn;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Kn||(Kn={}));var A2;(function(e){e.PLAIN_TEXT="PLAIN_TEXT",e.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",e.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(A2||(A2={}));var te;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",e.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN"})(te||(te={}));var Le;(function(e){e.SEARCHES="SEARCHES",e.BOOKMARKS="BOOKMARKS",e.BOOKS="BOOKS",e.COLLECTIONS="COLLECTIONS"})(Le||(Le={}));var L2;(function(e){e.UNAUTHENTICATED="UNAUTHENTICATED",e.USER_INCOMPLETE="USER_INCOMPLETE",e.MFA_REQUIRED="MFA_REQUIRED",e.AUTHENTICATED="AUTHENTICATED"})(L2||(L2={}));var O2;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(O2||(O2={}));var R2;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SUMMARY="SUMMARY",e.SEMANTIC_SEARCH="SEMANTIC_SEARCH",e.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",e.OTHER="OTHER"})(R2||(R2={}));var _2;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SLOW="SLOW",e.OTHER="OTHER"})(_2||(_2={}));var w2;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(w2||(w2={}));var N2;(function(e){e.USER="USER",e.ASSISTANT="ASSISTANT"})(N2||(N2={}));var M2;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(M2||(M2={}));var T2;(function(e){e.HTML="HTML",e.MARKDOWN="MARKDOWN"})(T2||(T2={}));var z2;(function(e){e.MAP="MAP",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(z2||(z2={}));var f8={[te.PERSONAL_BOOK_SHARE_USER]:[te.PERSONAL_BOOK_USER],[te.HTML_EXPORT_USER]:[te.PERSONAL_BOOK_USER],[te.PDF_EXPORT_USER]:[te.PERSONAL_BOOK_USER],[te.KHUB_ADMIN]:[te.CONTENT_PUBLISHER],[te.ADMIN]:[te.KHUB_ADMIN,te.USERS_ADMIN,te.PORTAL_ADMIN,te.BEHAVIOR_DATA_USER],[te.GENERATIVE_AI_EXPORT_USER]:[te.GENERATIVE_AI_USER]};function P2(e,t){return e===t||(f8[e]??[]).some(o=>P2(o,t))}function I2(e,t){return e==null?!1:(Array.isArray(e)?e:Array.isArray(e.roles)?e.roles:Array.isArray(e.profile?.roles)?e.profile.roles:[]).some(a=>P2(a,t))}var Bo=v(P());var qn=v(P());var wt=class e{static get(t){let{baseUrl:o,apiIntegrationIdentifier:a}=_.getState(),n=t??a;if(o&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,n,!0)}static await(t){return new Promise(o=>{let a=e.get(t);if(a)o(a);else{let n=_.subscribe(()=>{a=e.get(t),a&&(n(),o(a))})}})}};var Po=class{constructor(t){this.overrideApi=t}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:wt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):wt.await()}};var ge=class extends Po{constructor(t=!0,o){var a;super(o),this.sortObjectFields=(i,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([l],[f])=>l.localeCompare(f)));let n=this.constructor;n.commonCache=(a=n.commonCache)!==null&&a!==void 0?a:new qn.CacheRegistry,this.cache=t?n.commonCache:new qn.CacheRegistry}clearCache(){this.cache.clearAll()}hash(t){return String(Array.from(JSON.stringify(t,this.sortObjectFields)).reduce((o,a)=>0|31*o+a.charCodeAt(0),0))}};var Io=class extends ge{async listMySearches(){let{session:t}=_.getState();return I2(t,te.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),5*60*1e3):[]}};var ko=class extends ge{async listMyBookmarks(){let t=_.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),5*60*1e3):[]}};var Do=class extends ge{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetCount(t){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${t}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(t){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${t}`),this.CACHE_DURATION)}isAuthenticated(){let t=_.getState().session;return!!t?.sessionAuthenticated}};var Uo=class extends ge{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 t=_.getState().session;return!!t?.sessionAuthenticated}};var h8="ft-user-assets",m8={setAssetCount:(e,t)=>{let{userAssetType:o,count:a}=t.payload.assetCount;e.assetCounts.allAsset[o]=a},clearAssetCount:e=>{Object.values(Le).forEach(t=>{e.assetCounts.allAsset[t]=void 0})},setBookmarkCountByMap:(e,t)=>{let o=t.payload.mapId;e.assetCounts.bookmarkByMap[o]=t.payload.count},clearBookmarkCountByMap:e=>{e.assetCounts.bookmarkByMap={}},addAsset:(e,t)=>{let{assetType:o,mapId:a,asset:n}=t.payload;Yn(e,o,[...Zn(e,o),n]),k2(e,o,1,a),D2(e,n)},editAsset:(e,t)=>{let{assetType:o,asset:a}=t.payload;Yn(e,o,Zn(e,o).map(n=>n.id===a.id?a:n)),D2(e,a)},removeAsset:(e,t)=>{let{assetType:o,mapId:a,assetId:n}=t.payload;Yn(e,o,Zn(e,o).filter(i=>i.id!==n)),k2(e,o,-1,a)}},U2={[Le.SEARCHES]:"savedSearches",[Le.BOOKMARKS]:"bookmarks",[Le.BOOKS]:void 0,[Le.COLLECTIONS]:void 0},Zn=(e,t)=>{var o;let a=U2[t];return a?(o=e[a])!==null&&o!==void 0?o:[]:[]},Yn=(e,t,o)=>{let a=U2[t];a&&(e[a]=o)},k2=(e,t,o,a)=>{let n=e.assetCounts.allAsset[t];if(n!==void 0&&(e.assetCounts.allAsset[t]=Math.max(0,n+o),t===Le.BOOKMARKS&&a)){let i=e.assetCounts.bookmarkByMap[a];e.assetCounts.bookmarkByMap[a]=Math.max(0,i+o)}},D2=(e,t)=>{let o=e.assetLabels.map(n=>n.title),a=t.labels.filter(n=>!o.includes(n)).map(n=>({title:n}));e.assetLabels.push(...a)},Se=Bo.FtReduxStore.get({name:h8,reducers:m8,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Le).map(e=>[e,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Xn=class{constructor(t=new Do,o=new Uo){this.assetCountsService=t,this.assetLabelsService=o,this.currentSession=_.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new ko,this.savedSearchesService=new Io,_.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:o}=_.getState();(0,Bo.deepEqual)((t=this.currentSession)===null||t===void 0?void 0:t.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),Se.actions.clearAssetCount(),Se.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Se.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Se.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();Se.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let t=await this.assetLabelsService.getUserAssetLabels();Se.actions.assetLabels(t)}async loadAssetCount(t){let o=await this.assetCountsService.getUserAssetCount(t);o&&Se.actions.setAssetCount({assetCount:o})}async loadBookmarkByMapId(t){let o=await this.assetCountsService.getUserBookmarkCountByMap(t);o&&Se.actions.setBookmarkCountByMap({count:o.count,mapId:t})}async reloadAssetCount(t){this.assetCountsService.clearCache();let o=Object.keys(Se.getState().assetCounts.bookmarkByMap).length!==0;t===Le.BOOKMARKS&&o&&Se.actions.clearBookmarkCountByMap(),Se.getState().assetCounts.allAsset[t]!==void 0&&await this.loadAssetCount(t)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let o=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Se.actions.bookmarks(o)}}},g8=new Xn;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=g8);var Qn=class{addCommand(t,o=!1){_.commands.add(t,o)}consumeCommand(t){return _.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new Qn;var Oe=v(P());var B2,lr=class extends CustomEvent{constructor(t){super("ft-i18n-context-loaded",{detail:t})}},y8=Symbol("clearAfterUnitTest"),Go=class extends(0,Oe.withEventBus)(ge){constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[B2]=()=>{this.defaultMessages={},this.cache=new Oe.CacheRegistry,this.listeners={}},this.currentUiLocale=_.getState().uiLocale,_.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=_.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let o=t.name.toLowerCase();this.cache.setFinal(o,t),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,o){var a;if(t=t.toLowerCase(),o&&Object.keys(o).length>0){let n={...(a=this.defaultMessages[t])!==null&&a!==void 0?a:{},...o};(0,Oe.deepEqual)(this.defaultMessages[t],n)||(this.defaultMessages[t]=n,await this.notify(t))}return this.fetchContext(t)}resolveContext(t){var o,a;return this.fetchContext(t),(a=(o=this.cache.getNow(t))===null||o===void 0?void 0:o.messages)!==null&&a!==void 0?a:{}}resolveRawMessage(t,o){let a=t.toLowerCase();return this.resolveContext(a)[o]}resolveMessage(t,o,...a){var n;let i=t.toLowerCase(),s=this.resolveContext(i);return new Oe.ParametrizedLabelResolver((n=this.defaultMessages[i])!==null&&n!==void 0?n:{},s).resolve(o,...a)}async fetchContext(t){let o=!this.cache.has(t),a;try{a=await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t)),o&&await this.notify(t)}catch(n){!(n instanceof Oe.CanceledPromiseError)&&o&&console.error(n)}return a}subscribe(t,o){var a;return t=t.toLowerCase(),this.listeners[t]=(a=this.listeners[t])!==null&&a!==void 0?a:new Set,this.listeners[t].add(o),()=>{var n;return(n=this.listeners[t])===null||n===void 0?void 0:n.delete(o)}}async notifyAll(){let t=Object.keys(this.listeners);document.body.dispatchEvent(new lr({loadedContexts:t})),this.dispatchEvent(new lr({loadedContexts:t})),await Promise.all(t.map(o=>this.notify(o,!1)))}async notify(t,o=!0){o&&(document.body.dispatchEvent(new lr({loadedContexts:[t]})),this.dispatchEvent(new lr({loadedContexts:[t]}))),this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(a=>(0,Oe.delay)(0).then(()=>a()).catch(()=>null)))}};B2=y8;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Go{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Go{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var dr=window.FluidTopicsI18nService,Ho=window.FluidTopicsCustomI18nService;var G2=v(P()),Jn=class{highlightHtml(t,o,a){(0,G2.highlightHtml)(t,o,a)}};window.FluidTopicsHighlightHtmlService=new Jn;var H2=v(P());var ei=class{isDate(t){var o,a,n,i;return(i=(n=((a=(o=_.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&a!==void 0?a:[]).find(l=>l.key===t))===null||n===void 0?void 0:n.date)!==null&&i!==void 0?i:!1}format(t,o){var a,n,i;if(t==null)return"";try{return H2.DateFormatter.format(t,(a=o?.locale)!==null&&a!==void 0?a:_.getState().uiLocale,(n=o?.longFormat)!==null&&n!==void 0?n:!1,(i=o?.withTime)!==null&&i!==void 0?i:!1)}catch(s){throw console.error(`Date ${JSON.stringify(t)} is not valid`,s),s}}};window.FluidTopicsDateService=new ei;var F2=v(P());var Ur=class{static get(t,o){var a,n;let i=_.getState(),{lang:s,region:l}=(n=(a=i.defaultLocales)===null||a===void 0?void 0:a.defaultContentLocale)!==null&&n!==void 0?n:{lang:"en",region:"US"};return new F2.SearchPlaceConverter(i.baseUrl,t??20,i.searchInAllLanguagesAllowed,o??`${s}-${l}`)}};var ti=class{urlToSearchRequest(t){return Ur.get().parse(t)}searchRequestToUrl(t){return Ur.get().serialize(t)}};window.FluidTopicsUrlService=new ti;var dt=v(P());var Nt=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{currentItem:t}})}};Nt.eventName="change";var ri=class{itemName(t){return`fluid-topics-history-item-${t}`}get(t){let o=sessionStorage.getItem(this.itemName(t));return o?JSON.parse(o):void 0}set(t,o){sessionStorage.setItem(this.itemName(t),JSON.stringify(o))}},W2=new ri;var Fo=class e extends dt.WithEventBus{static build(){return new e(window.history,W2,()=>window.location,!1)}constructor(t,o,a,n){var i,s;super(),this.history=t,this.historyStorage=o,this.windowLocation=a,this.states=[],this.realPushState=t.pushState,this.realReplaceState=t.replaceState,this.initialIndex=(s=(i=t.state)===null||i===void 0?void 0:i.index)!==null&&s!==void 0?s:t.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(n)}setCurrentState(t,o=!1){let a=o&&this.currentIndex===t.index-1;this.currentState={...this.buildCurrentState(),...t},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,a&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,dt.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Nt(this.currentItem())),0)}installProxies(){let t=o=>(a,n,[i,s,l])=>{let f=o(),p={...f===this.currentIndex?this.currentState:void 0,...i,index:f,href:typeof l=="string"?l:(l??this.windowLocation()).href};a.apply(n,[p,s,l]),this.setCurrentState(p,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:t(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:t(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",t=>this.setCurrentState(t.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(t){for(let o=this.history.length-1;o>=0;o--)t?this.states[o]=this.historyStorage.get(o):setTimeout(()=>this.states[o]=this.historyStorage.get(o),this.history.length-o)}updateCurrentState(t){var o;let a={...this.buildCurrentState(),...t,index:this.currentIndex,title:(o=t?.title)!==null&&o!==void 0?o:this.currentState.title};this.setCurrentState(a)}addHistoryChangeListener(t){this.addEventListener(Nt.eventName,t)}removeHistoryChangeListener(t){this.removeEventListener(Nt.eventName,t)}currentItem(){return(0,dt.deepCopy)(this.currentState)}back(){let t=this.previousDifferentMajorPosition();t>=0?this.history.go(t-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,dt.deepCopy)(this.states[this.previousDifferentMajorPosition()])}previousDifferentMajorPosition(){let t=this.currentIndex>0?this.currentIndex-1:0;for(;t>0&&!this.isDifferentMajorState(t);)t--;return t}forward(){let t=this.nextMajorPosition();t&&t<this.states.length?this.history.go(t-this.currentIndex):this.history.forward()}forwardItem(){let t=this.nextMajorPosition();if(t)return(0,dt.deepCopy)(this.states[t])}nextMajorPosition(){let t=this.currentIndex;if(!(t>=this.states.length)){do t++;while(t<this.states.length&&!this.isDifferentMajorState(t));return this.getHigherPositionInTheSameState(t)}}getHigherPositionInTheSameState(t){var o;let a=(o=this.states[t])===null||o===void 0?void 0:o.majorStateId;if(!a)return t;let n=t,i=t+1;for(;this.states.length>i&&!this.isDifferentMajorState(i,a);)this.hasState(i)&&(n=i),i++;return n}buildCurrentState(){var t,o;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(o=(t=this.history.state)===null||t===void 0?void 0:t.title)!==null&&o!==void 0?o:document.title}}hasState(t){return this.states[t]!=null}isDifferentMajorState(t,o){var a;if(!this.hasState(t))return!1;let n=o??this.currentState.majorStateId,i=(a=this.states[t])===null||a===void 0?void 0:a.majorStateId;return i==null||i!=n}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Fo.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(e),removeHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(e)});var $2=v(K());var j2=$2.css`
1321
1321
  `;var K2=v(K()),ce=v(re()),Te=v(P());function V2(e,t){let{authenticationRequired:o,session:a}=_.getState();return o&&!a?.sessionAuthenticated?Promise.resolve(t):e()}var oe=function(e,t,o,a){var n=arguments.length,i=n<3?t:a===null?a=Object.getOwnPropertyDescriptor(t,o):a,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,a);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(i=(n<3?s(i):n>3?s(t,o,i):s(t,o))||i);return n>3&&i&&Object.defineProperty(t,o,i),i},j=class extends Te.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=()=>wt.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new Te.CacheRegistry,this.cleanSessionDebouncer=new Te.Debouncer,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return K2.html`
1322
1322
  <slot></slot>
1323
1323
  `}connectedCallback(){super.connectedCallback(),_.addEventListener(_t.eventName,this.reloadConfiguration)}disconnectedCallback(){_.addEventListener(_t.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(t){var o,a,n,i,s,l,f;super.update(t),t.has("baseUrl")&&(_.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&_.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("apiIntegrationAppVersion")&&_.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),t.has("uiLocale")&&_.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&_.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&_.actions.noCustom(this.noCustom),t.has("editorMode")&&_.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&_.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&_.actions.session(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(p=>dr.addContext(p)),t.has("openExternalDocumentInNewTab")&&_.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&_.actions.navigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&_.actions.forcedOffline(this.forcedOffline),t.has("localesConfiguration")&&(_.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),_.actions.availableUiLocales((n=(a=this.localesConfiguration)===null||a===void 0?void 0:a.availableUiLocales)!==null&&n!==void 0?n:[]),_.actions.searchInAllLanguagesAllowed((s=(i=this.localesConfiguration)===null||i===void 0?void 0:i.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),t.has("authenticationRequired")&&_.actions.authenticationRequired(this.authenticationRequired),t.has("availableContentLocales")&&_.actions.availableContentLocales((f=(l=this.availableContentLocales)===null||l===void 0?void 0:l.contentLocales)!==null&&f!==void 0?f:[]),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 t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},t.idleTimeoutInMillis),t})}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",()=>V2(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};j.elementDefinitions={};j.styles=j2;oe([(0,ce.property)()],j.prototype,"baseUrl",void 0);oe([(0,ce.property)()],j.prototype,"apiIntegrationIdentifier",void 0);oe([(0,ce.property)()],j.prototype,"apiIntegrationAppVersion",void 0);oe([(0,ce.property)()],j.prototype,"uiLocale",void 0);oe([(0,Te.jsonProperty)(null)],j.prototype,"availableUiLocales",void 0);oe([(0,Te.jsonProperty)(null)],j.prototype,"metadataConfiguration",void 0);oe([(0,ce.property)({type:Boolean})],j.prototype,"editorMode",void 0);oe([(0,ce.property)({type:Boolean})],j.prototype,"noCustom",void 0);oe([(0,ce.property)({type:Boolean})],j.prototype,"openExternalDocumentInNewTab",void 0);oe([(0,ce.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],j.prototype,"noCustomComponent",void 0);oe([(0,ce.property)({type:Boolean})],j.prototype,"withManualResources",void 0);oe([(0,ce.property)({type:Boolean})],j.prototype,"navigatorOnline",void 0);oe([(0,ce.property)({type:Boolean})],j.prototype,"forcedOffline",void 0);oe([(0,ce.property)({type:Object})],j.prototype,"apiProvider",void 0);oe([(0,ce.property)({type:Boolean})],j.prototype,"authenticationRequired",void 0);oe([(0,Te.jsonProperty)([])],j.prototype,"messageContexts",void 0);oe([(0,Te.jsonProperty)(void 0)],j.prototype,"session",void 0);oe([(0,ce.state)()],j.prototype,"localesConfiguration",void 0);oe([(0,ce.state)()],j.prototype,"availableContentLocales",void 0);var q2=v(P());(0,q2.customElement)("ft-app-context")(j);var Wo=class e{static build(t){return new e(t)}static buildCustom(t){return new e(t,!0)}static fromGwt(t){return new e(t)}get service(){return this.custom?Ho:dr}constructor(t,o=!1){this.name=t,this.custom=o,this.properties=new Proxy({},{get:(a,n)=>{let i=n;return s=>({context:this.name,key:i,custom:this.custom,args:typeof s=="function"?void 0:s,argsProvider:typeof s=="function"?s:void 0})}}),this.messages=new Proxy({},{get:(a,n)=>(...i)=>this.service.resolveMessage(this.name,n,...i)}),this.rawMessages=new Proxy({},{get:(a,n)=>this.service.resolveRawMessage(this.name,n)}),this.keys=new Proxy({},{get:(a,n)=>()=>n}),this.attributes=new Proxy({},{get:(a,n)=>()=>({context:this.name,key:n,message:this.service.resolveRawMessage(this.name,n)})})}};var ur=v(P());var Y2=v(re());var oi=class{fromLocalizableLabel(t){return t.type=="PLAIN_TEXT"?{message:t.text}:{key:t.key,custom:t.type=="LOCALIZED_CUSTOM",context:t.context,message:t.key}}fromAttribute(t){if(t!=null)try{return JSON.parse(t)}catch{if(this.isI18nKey(t)){let[o,a]=t.split(".");return{context:o,key:a,custom:o!=="officialContext",message:""}}return{message:t}}}toAttribute(t){if(t!=null)return JSON.stringify(t)}isI18nKey(t){return t.match(/^[\w-]+\.[\w-]+$/)}},Mt=new oi;var b8=function(e,t,o,a){var n=arguments.length,i=n<3?t:a===null?a=Object.getOwnPropertyDescriptor(t,o):a,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,a);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(i=(n<3?s(i):n>3?s(t,o,i):s(t,o))||i);return n>3&&i&&Object.defineProperty(t,o,i),i},X2=Symbol("i18nAttributes"),Gr=Symbol("i18nListAttributes"),Q2=Symbol("i18nProperties"),$o=Symbol("i18nContexts"),Br=Symbol("i18nUnsubs"),Vo=(0,ur.applyMixinOnce)(Symbol("withI18n"),function(e){var t,o;class a extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[t]=new Map,this[o]=new Map}getI18nService(i){return i??this.useCustomMessageContexts?Ho:dr}i18n(i){let{context:s,key:l,message:f}=i,{custom:p,args:m,argsProvider:g}=i;if(s&&l){this.hasI18nContext(s)||this.addI18nContext(s,void 0,p);let b=m??(g?g(this):[]);return this.getI18nService(p).resolveMessage(s,l,...b)}return f}async awaitI18n(i){let{context:s,custom:l}=i;return s&&await this.getI18nService(l).prepareContext(s),this.i18n(i)}customI18n(i,s){if(Mt.isI18nKey(i)){let[l,f]=i.split(".");return this.i18n({custom:!0,context:l,key:f,...s})||i}return i}firstUpdated(i){super.firstUpdated(i),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(i){super.update(i),this.updateI18nAttributes((s,l,f)=>i.has(l)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(i){this.updateI18nAttributes((s,l,f)=>{var p;return((p=f?.context)===null||p===void 0?void 0:p.toLowerCase())===i}),this.updateI18nProperties(s=>s.context.toLowerCase()===i),this.requestUpdate()}updateI18nAttributes(i){var s,l;let f=this,p=(m,g,b)=>b?.context&&b.key&&i(m,g,b)?{...b,message:this.i18n({context:b.context,key:b.key,custom:b.custom,...m})}:b;(s=this[X2])===null||s===void 0||s.forEach((m,g)=>f[g]=p(m,g,f[g])),(l=this[Gr])===null||l===void 0||l.forEach((m,g)=>{var b;return f[g]=(b=f[g])===null||b===void 0?void 0:b.map(C=>p(m,g,C))})}updateI18nProperties(i){var s;(s=this[Q2])===null||s===void 0||s.forEach((l,f)=>{i(l,f)&&(this[f]=this.i18n(l))})}addI18nMessages(i,s,l){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(i,s,l)}addI18nContext(i,s,l){let f=(typeof i=="string"?i:i.name).toLowerCase();l=typeof i=="string"?l:i.custom,this[$o].set(f,{isCustomContext:l}),this[Br].has(f)||this[Br].set(f,this.getI18nService(l).subscribe(f,()=>this.onI18nUpdate(f))),this.getI18nService(l).prepareContext(f,s)}hasI18nContext(i){return this[$o].has(i.toLowerCase())}connectedCallback(){super.connectedCallback(),this[$o].forEach((i,s)=>this.addI18nContext(s,void 0,i.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Br].forEach(i=>i()),this[Br].clear()}}return t=$o,o=Br,b8([(0,Y2.property)({type:Boolean})],a.prototype,"useCustomMessageContexts",void 0),a}),Z2=class extends Vo(ur.FtLitElement){},jo=class extends Vo(ur.FtLitElementRedux){};var J2=v(K());var e4=J2.css`