@fluid-topics/ft-reader-metadata 1.2.22 → 1.2.23
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.
|
@@ -39,7 +39,7 @@ class FtReaderMetadata extends withDateFormat(withI18n(FtReaderComponent)) {
|
|
|
39
39
|
updateRelatives() {
|
|
40
40
|
var _a, _b, _c, _d;
|
|
41
41
|
if (this.useForSwitchingToRelatives && this.key) {
|
|
42
|
-
this.relatives = (_d = (_b = (_a = this.stateManager) === null || _a === void 0 ? void 0 : _a.clusteringHelper) === null || _b === void 0 ? void 0 : _b.computeClustersItemsForMetadata(this.key, ((_c = this.map) === null || _c === void 0 ? void 0 : _c.lang) || "en", this.noValueMessage)) !== null && _d !== void 0 ? _d : [];
|
|
42
|
+
this.relatives = (_d = (_b = (_a = this.stateManager) === null || _a === void 0 ? void 0 : _a.clusteringHelper) === null || _b === void 0 ? void 0 : _b.computeClustersItemsForMetadata(this.key, ((_c = this.map) === null || _c === void 0 ? void 0 : _c.lang) || "en", this.noValueMessage, this.getDateFormatter(this.key))) !== null && _d !== void 0 ? _d : [];
|
|
43
43
|
}
|
|
44
44
|
else {
|
|
45
45
|
this.relatives = [];
|
|
@@ -83,7 +83,7 @@ class FtReaderMetadata extends withDateFormat(withI18n(FtReaderComponent)) {
|
|
|
83
83
|
<ft-tooltip part="tooltip"
|
|
84
84
|
slot="${inFloatingMenu ? "toggle" : ""}"
|
|
85
85
|
class="${this.multiLine ? "ft-reader-metadata-multi-line" : ""}"
|
|
86
|
-
text="${`${this.metadataLabel}: ${(_f = (_e = this.flatMetadata) === null || _e === void 0 ? void 0 : _e.
|
|
86
|
+
text="${`${this.metadataLabel}: ${(_f = (_e = this.flatMetadata) === null || _e === void 0 ? void 0 : _e.displayValue) !== null && _f !== void 0 ? _f : this.noValueMessage}`}">
|
|
87
87
|
${chip}
|
|
88
88
|
</ft-tooltip>
|
|
89
89
|
`;
|
|
@@ -171,8 +171,8 @@ class FtReaderMetadata extends withDateFormat(withI18n(FtReaderComponent)) {
|
|
|
171
171
|
(_d = this.stateManager) === null || _d === void 0 ? void 0 : _d.unregisterMetadataForSwitchToRelatives(this.key);
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
|
-
if (props.has("metadata") || this.dateFormatOptionsChanged(props)) {
|
|
175
|
-
this.flatMetadata = ClusteringHelper.flattenMetadata(this.
|
|
174
|
+
if ((props.has("metadata") || this.dateFormatOptionsChanged(props)) && this.metadata) {
|
|
175
|
+
this.flatMetadata = ClusteringHelper.flattenMetadata(this.metadata, this.getDateFormatter(this.metadata.key));
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
178
|
get metadataLabel() {
|
|
@@ -304,7 +304,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
304
304
|
<div class="ft-ripple--background"></div>
|
|
305
305
|
<div class="ft-ripple--effect"></div>
|
|
306
306
|
</div>
|
|
307
|
-
`}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var o,n;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(o=this.target)===null||o===void 0||o.removeAttribute("data-is-ft-ripple-target")):(n=this.target)===null||n===void 0||n.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,o;let n=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;n&&this.setupFor((o=this.target)!==null&&o!==void 0?o:n)}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let o=(...l)=>f=>{l.forEach(p=>window.addEventListener(p,this.endPress,{once:!0})),this.startPress(f)},n=o("mouseup","contextmenu"),a=o("touchend","touchcancel"),i=l=>{["Enter"," "].includes(l.key)&&o("keyup")(l)},c={passive:!0};e.addEventListener("mouseover",this.startHover,c),e.addEventListener("mousemove",this.moveRipple,c),e.addEventListener("mouseleave",this.endHover,c),e.addEventListener("mousedown",n,c),e.addEventListener("touchstart",a,c),e.addEventListener("touchmove",this.moveRipple,c),e.addEventListener("keydown",i,c),e.addEventListener("focus",this.startFocus,c),e.addEventListener("blur",this.endFocus,c),e.addEventListener("focusin",this.startFocus,c),e.addEventListener("focusout",this.endFocus,c),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,c),e.removeEventListener("mousemove",this.moveRipple,c),e.removeEventListener("mouseleave",this.endHover,c),e.removeEventListener("mousedown",n,c),e.removeEventListener("touchstart",a,c),e.removeEventListener("touchmove",this.moveRipple,c),e.removeEventListener("keydown",i,c),e.removeEventListener("focus",this.startFocus,c),e.removeEventListener("blur",this.endFocus,c),e.removeEventListener("focusin",this.startFocus,c),e.removeEventListener("focusout",this.endFocus,c),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let o=e,n=e,a,i;return o.x!=null?{x:a,y:i}=o:n.touches!=null&&(a=n.touches[0].clientX,i=n.touches[0].clientY),{x:a,y:i}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let o of e.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};z.elementDefinitions={};z.styles=ns;Ct([(0,ut.property)({type:Boolean})],z.prototype,"primary",void 0);Ct([(0,ut.property)({type:Boolean})],z.prototype,"secondary",void 0);Ct([(0,ut.property)({type:Boolean})],z.prototype,"unbounded",void 0);Ct([(0,ut.property)({type:Boolean})],z.prototype,"activated",void 0);Ct([(0,ut.property)({type:Boolean})],z.prototype,"selected",void 0);Ct([(0,ut.property)({type:Boolean})],z.prototype,"disabled",void 0);Ct([(0,ut.state)()],z.prototype,"hovered",void 0);Ct([(0,ut.state)()],z.prototype,"focused",void 0);Ct([(0,ut.state)()],z.prototype,"pressed",void 0);Ct([(0,ut.state)()],z.prototype,"rippling",void 0);Ct([(0,ut.state)()],z.prototype,"originX",void 0);Ct([(0,ut.state)()],z.prototype,"originY",void 0);Ct([(0,ut.query)(".ft-ripple")],z.prototype,"ripple",void 0);Ct([(0,ut.query)(".ft-ripple--effect")],z.prototype,"rippleEffect",void 0);(0,ss.customElement)("ft-ripple")(z);var hs=b(T());var wr=b(F()),_e=b(Q()),fs=b(T()),us=b(ls());var or;(function(t){t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.BOOKS="",t.MENU="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.HOME="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.EXPORT="",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.USER="",t.EXTLINK="",t.CALENDAR="",t.OFFLINE="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.STAR_PLAIN="",t.TOPICS="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN="",t.ADMIN_KHUB="",t.ADMIN_THEME="",t.ADMIN_USERS="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.EXPAND="",t.COMPRESS="",t.INFO="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.FACET_HAS_DESCENDANT="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.THIN_ARROW="",t.SIGN_IN="",t.LOGOUT="",t.TRANSLATE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.ARTICLE="",t.COLUMNS="",t.ANALYTICS="",t.COLLECTIONS="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",t.SEARCH_IN_PUBLICATION="",t.COPY_TO_CLIPBOARD="",t.SHARED_PBK="",t.ATTACHMENTS="",t.STRIPE_ARROW_LEFT="",t.STRIPE_ARROW_RIGHT="",t.FILTERS="",t.DOT="",t.MINUS="",t.PLUS="",t.MAILS_AND_NOTIFICATIONS="",t.SAVE="",t.LOCKER="",t.ADMIN_INTEGRATION="",t.SYNC="",t.TAG="",t.BOOK_PLAIN="",t.UPLOAD="",t.ONLINE="",t.TAG_PLAIN="",t.ACCOUNT_SETTINGS="",t.PRINT="",t.DEFAULT_ROLES="",t.SHORTCUT_MENU="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.PAUSE="",t.PLAY="",t.ADMIN_PORTAL="",t.STAR="",t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.FEEDBACK_PLAIN="",t.RATE_PLAIN="",t.RATE="",t.OFFLINE_SETTINGS="",t.MY_COLLECTIONS="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.RESET="",t.MY_LIBRARY="",t.UNSTRUCTURED_DOC="",t.CONTEXTUAL="",t.THIN_ARROW_UP="",t.ARROW_RIGHT_TO_LINE="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.LINE_CHART="",t.STACKED_CHART="",t.CHART_BAR_STACKED="",t.CHART_BAR_GROUPED="",t.EYE_SLASH="",t.X_MARK="",t.EXPAND_WIDE="",t.PIP="",t.PIP_WIDE="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.EXTLINK_LIGHT="",t.CLONE="",t.CLONE_LINK_SIMPLE="",t.CHART_BAR_NORMALIZED="",t.CONSUMER="",t.OCTAGON_XMARK="",t.HOURGLASS_HALF="",t.CLOCK="",t.CLOCK_THREE="",t.CALENDAR_DAY="",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="",t.WAND_MAGIC_SPARKLES="",t.PAPER_PLANE="",t.PAPER_PLANE_SLASH="",t.CIRCLE_STOP="",t.ARROW_ROTATE_RIGHT="",t.ARROW_ROTATE_LEFT="",t.ARROWS_ROTATE="",t.ALIGN_RIGHT="",t.FORMAT_CLEAR="",t.ALIGN_CENTER="",t.ALIGN_LEFT="",t.PALETTE="",t.BOLD="",t.ITALIC="",t.UNDERLINE="",t.STRIKETHROUGH="",t.LINK_SIMPLE_SLASH="",t.LINK_SIMPLE="",t.ROUTE="",t.CIRCLE_USER_SLASH="",t.CIRCLE_USER_CHECK="",t.LIST_MAGNIFYING_GLASS="",t.MEDAL="",t.THUMBS_UP_THUMBS_DOWN_SOLID="",t.ARROW_TURN_DOWN_RIGHT="",t.FLASK="",t.LOCK_KEYHOLE_OPEN_SOLID="",t.HOURGLASS_END="",t.CIRCLE_QUESTION="",t.EYE="",t.SHARE="󨃱",t.GRIP_LINES_SOLID="",t.TRANSLATE_SPARKLE_SOLID="",t.CODE=""})(or||(or={}));var w;(function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""})(w||(w={}));var pm=new Map([...["abw"].map(t=>[t,w.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(t=>[t,w.AUDIO]),...["avi"].map(t=>[t,w.AVI]),...["chm","xhs"].map(t=>[t,w.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(t=>[t,w.CODE]),...["csv"].map(t=>[t,w.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,w.DITA]),...["epub"].map(t=>[t,w.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,w.EXCEL]),...["flac"].map(t=>[t,w.FLAC]),...["gif"].map(t=>[t,w.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,w.GZIP]),...["html","htm","xhtml"].map(t=>[t,w.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(t=>[t,w.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,w.JPEG]),...["json"].map(t=>[t,w.JSON]),...["m4a","m4p"].map(t=>[t,w.M4A]),...["mov","qt"].map(t=>[t,w.MOV]),...["mp3"].map(t=>[t,w.MP3]),...["mp4","m4v"].map(t=>[t,w.MP4]),...["ogg","oga"].map(t=>[t,w.OGG]),...["pdf","ps"].map(t=>[t,w.PDF]),...["png"].map(t=>[t,w.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,w.POWERPOINT]),...["rar"].map(t=>[t,w.RAR]),...["stp"].map(t=>[t,w.STP]),...["txt","rtf","md","mdown"].map(t=>[t,w.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(t=>[t,w.VIDEO]),...["wav"].map(t=>[t,w.WAV]),...["wma"].map(t=>[t,w.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,w.WORD]),...["xml","xsl","rdf"].map(t=>[t,w.XML]),...["yaml","yml","x-yaml"].map(t=>[t,w.YAML]),...["zip"].map(t=>[t,w.ZIP])]);var fm={[w.ABW]:"#91ABC6",[w.AUDIO]:"#1795E3",[w.AVI]:"#E63324",[w.CHM]:"#71C3EB",[w.CODE]:"#71C3EB",[w.CSV]:"#1F7345",[w.DITA]:"#71C3EB",[w.EPUB]:"#85B926",[w.EXCEL]:"#1F7345",[w.FLAC]:"#1795E3",[w.GIF]:"#59B031",[w.GZIP]:"#F8AB36",[w.HTML]:"#71C3EB",[w.IMAGE]:"#59B031",[w.JPEG]:"#59B031",[w.JSON]:"#71C3EB",[w.M4A]:"#1795E3",[w.MOV]:"#E63324",[w.MP3]:"#1795E3",[w.MP4]:"#E63324",[w.OGG]:"#1795E3",[w.PDF]:"#E44948",[w.PNG]:"#59B031",[w.POWERPOINT]:"#B54A2B",[w.RAR]:"#F8AB36",[w.STP]:"#3764B1",[w.TEXT]:"#3162AB",[w.UNKNOWN]:"#999999",[w.VIDEO]:"#E63324",[w.WAV]:"#1795E3",[w.WMA]:"#1795E3",[w.WORD]:"#3162AB",[w.XML]:"#71C3EB",[w.YAML]:"#71C3EB",[w.ZIP]:"#F8AB36"};var ds=b(F()),ne=b(T()),rt={size:ne.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:ne.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",ne.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:ne.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",ne.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:ne.FtCssVariableFactory.extend("--ft-icon-material-font-family","",ne.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:ne.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},ps=ds.css`
|
|
307
|
+
`}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var o,n;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(o=this.target)===null||o===void 0||o.removeAttribute("data-is-ft-ripple-target")):(n=this.target)===null||n===void 0||n.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,o;let n=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;n&&this.setupFor((o=this.target)!==null&&o!==void 0?o:n)}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let o=(...l)=>f=>{l.forEach(p=>window.addEventListener(p,this.endPress,{once:!0})),this.startPress(f)},n=o("mouseup","contextmenu"),a=o("touchend","touchcancel"),i=l=>{["Enter"," "].includes(l.key)&&o("keyup")(l)},c={passive:!0};e.addEventListener("mouseover",this.startHover,c),e.addEventListener("mousemove",this.moveRipple,c),e.addEventListener("mouseleave",this.endHover,c),e.addEventListener("mousedown",n,c),e.addEventListener("touchstart",a,c),e.addEventListener("touchmove",this.moveRipple,c),e.addEventListener("keydown",i,c),e.addEventListener("focus",this.startFocus,c),e.addEventListener("blur",this.endFocus,c),e.addEventListener("focusin",this.startFocus,c),e.addEventListener("focusout",this.endFocus,c),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,c),e.removeEventListener("mousemove",this.moveRipple,c),e.removeEventListener("mouseleave",this.endHover,c),e.removeEventListener("mousedown",n,c),e.removeEventListener("touchstart",a,c),e.removeEventListener("touchmove",this.moveRipple,c),e.removeEventListener("keydown",i,c),e.removeEventListener("focus",this.startFocus,c),e.removeEventListener("blur",this.endFocus,c),e.removeEventListener("focusin",this.startFocus,c),e.removeEventListener("focusout",this.endFocus,c),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let o=e,n=e,a,i;return o.x!=null?{x:a,y:i}=o:n.touches!=null&&(a=n.touches[0].clientX,i=n.touches[0].clientY),{x:a,y:i}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let o of e.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};z.elementDefinitions={};z.styles=ns;Ct([(0,ut.property)({type:Boolean})],z.prototype,"primary",void 0);Ct([(0,ut.property)({type:Boolean})],z.prototype,"secondary",void 0);Ct([(0,ut.property)({type:Boolean})],z.prototype,"unbounded",void 0);Ct([(0,ut.property)({type:Boolean})],z.prototype,"activated",void 0);Ct([(0,ut.property)({type:Boolean})],z.prototype,"selected",void 0);Ct([(0,ut.property)({type:Boolean})],z.prototype,"disabled",void 0);Ct([(0,ut.state)()],z.prototype,"hovered",void 0);Ct([(0,ut.state)()],z.prototype,"focused",void 0);Ct([(0,ut.state)()],z.prototype,"pressed",void 0);Ct([(0,ut.state)()],z.prototype,"rippling",void 0);Ct([(0,ut.state)()],z.prototype,"originX",void 0);Ct([(0,ut.state)()],z.prototype,"originY",void 0);Ct([(0,ut.query)(".ft-ripple")],z.prototype,"ripple",void 0);Ct([(0,ut.query)(".ft-ripple--effect")],z.prototype,"rippleEffect",void 0);(0,ss.customElement)("ft-ripple")(z);var hs=b(T());var wr=b(F()),_e=b(Q()),fs=b(T()),us=b(ls());var or;(function(t){t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.BOOKS="",t.MENU="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.HOME="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.EXPORT="",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.USER="",t.EXTLINK="",t.CALENDAR="",t.OFFLINE="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.STAR_PLAIN="",t.TOPICS="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN="",t.ADMIN_KHUB="",t.ADMIN_THEME="",t.ADMIN_USERS="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.INFO="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.FACET_HAS_DESCENDANT="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.THIN_ARROW="",t.SIGN_IN="",t.LOGOUT="",t.TRANSLATE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.ARTICLE="",t.COLUMNS="",t.ANALYTICS="",t.COLLECTIONS="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SEARCH_IN_PUBLICATION="",t.COPY_TO_CLIPBOARD="",t.SHARED_PBK="",t.ATTACHMENTS="",t.STRIPE_ARROW_LEFT="",t.STRIPE_ARROW_RIGHT="",t.FILTERS="",t.DOT="",t.MINUS="",t.PLUS="",t.MAILS_AND_NOTIFICATIONS="",t.SAVE="",t.LOCKER="",t.ADMIN_INTEGRATION="",t.SYNC="",t.TAG="",t.BOOK_PLAIN="",t.UPLOAD="",t.ONLINE="",t.TAG_PLAIN="",t.ACCOUNT_SETTINGS="",t.PRINT="",t.DEFAULT_ROLES="",t.SHORTCUT_MENU="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.PAUSE="",t.PLAY="",t.ADMIN_PORTAL="",t.STAR="",t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.FEEDBACK_PLAIN="",t.RATE_PLAIN="",t.RATE="",t.OFFLINE_SETTINGS="",t.MY_COLLECTIONS="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.RESET="",t.MY_LIBRARY="",t.UNSTRUCTURED_DOC="",t.CONTEXTUAL="",t.THIN_ARROW_UP="",t.ARROW_RIGHT_TO_LINE="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.LINE_CHART="",t.STACKED_CHART="",t.CHART_BAR_STACKED="",t.CHART_BAR_GROUPED="",t.EYE_SLASH="",t.X_MARK="",t.EXPAND_WIDE="",t.PIP="",t.PIP_WIDE="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.EXTLINK_LIGHT="",t.CLONE="",t.CLONE_LINK_SIMPLE="",t.CHART_BAR_NORMALIZED="",t.CONSUMER="",t.OCTAGON_XMARK="",t.HOURGLASS_HALF="",t.CLOCK="",t.CLOCK_THREE="",t.CALENDAR_DAY="",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="",t.WAND_MAGIC_SPARKLES="",t.PAPER_PLANE="",t.CIRCLE_STOP="",t.ARROW_ROTATE_RIGHT="",t.ARROWS_ROTATE="",t.ALIGN_RIGHT="",t.FORMAT_CLEAR="",t.ALIGN_CENTER="",t.ALIGN_LEFT="",t.PALETTE="",t.BOLD="",t.ITALIC="",t.UNDERLINE="",t.STRIKETHROUGH="",t.LINK_SIMPLE_SLASH="",t.LINK_SIMPLE="",t.ROUTE="",t.CIRCLE_USER_SLASH="",t.CIRCLE_USER_CHECK="",t.LIST_MAGNIFYING_GLASS="",t.MEDAL="",t.THUMBS_UP_THUMBS_DOWN_SOLID="",t.ARROW_TURN_DOWN_RIGHT="",t.FLASK="",t.LOCK_KEYHOLE_OPEN_SOLID="",t.HOURGLASS_END="",t.CIRCLE_QUESTION="",t.GRIP_LINES_SOLID="",t.TRANSLATE_SPARKLE_SOLID="",t.CODE="",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",t.PAPER_PLANE_SLASH="",t.COMPRESS="",t.EXPAND="",t.ARROW_ROTATE_LEFT="",t.EYE="",t.SHARE="󨃱"})(or||(or={}));var w;(function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""})(w||(w={}));var pm=new Map([...["abw"].map(t=>[t,w.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(t=>[t,w.AUDIO]),...["avi"].map(t=>[t,w.AVI]),...["chm","xhs"].map(t=>[t,w.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(t=>[t,w.CODE]),...["csv"].map(t=>[t,w.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,w.DITA]),...["epub"].map(t=>[t,w.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,w.EXCEL]),...["flac"].map(t=>[t,w.FLAC]),...["gif"].map(t=>[t,w.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,w.GZIP]),...["html","htm","xhtml"].map(t=>[t,w.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(t=>[t,w.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,w.JPEG]),...["json"].map(t=>[t,w.JSON]),...["m4a","m4p"].map(t=>[t,w.M4A]),...["mov","qt"].map(t=>[t,w.MOV]),...["mp3"].map(t=>[t,w.MP3]),...["mp4","m4v"].map(t=>[t,w.MP4]),...["ogg","oga"].map(t=>[t,w.OGG]),...["pdf","ps"].map(t=>[t,w.PDF]),...["png"].map(t=>[t,w.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,w.POWERPOINT]),...["rar"].map(t=>[t,w.RAR]),...["stp"].map(t=>[t,w.STP]),...["txt","rtf","md","mdown"].map(t=>[t,w.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(t=>[t,w.VIDEO]),...["wav"].map(t=>[t,w.WAV]),...["wma"].map(t=>[t,w.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,w.WORD]),...["xml","xsl","rdf"].map(t=>[t,w.XML]),...["yaml","yml","x-yaml"].map(t=>[t,w.YAML]),...["zip"].map(t=>[t,w.ZIP])]);var fm={[w.ABW]:"#91ABC6",[w.AUDIO]:"#1795E3",[w.AVI]:"#E63324",[w.CHM]:"#71C3EB",[w.CODE]:"#71C3EB",[w.CSV]:"#1F7345",[w.DITA]:"#71C3EB",[w.EPUB]:"#85B926",[w.EXCEL]:"#1F7345",[w.FLAC]:"#1795E3",[w.GIF]:"#59B031",[w.GZIP]:"#F8AB36",[w.HTML]:"#71C3EB",[w.IMAGE]:"#59B031",[w.JPEG]:"#59B031",[w.JSON]:"#71C3EB",[w.M4A]:"#1795E3",[w.MOV]:"#E63324",[w.MP3]:"#1795E3",[w.MP4]:"#E63324",[w.OGG]:"#1795E3",[w.PDF]:"#E44948",[w.PNG]:"#59B031",[w.POWERPOINT]:"#B54A2B",[w.RAR]:"#F8AB36",[w.STP]:"#3764B1",[w.TEXT]:"#3162AB",[w.UNKNOWN]:"#999999",[w.VIDEO]:"#E63324",[w.WAV]:"#1795E3",[w.WMA]:"#1795E3",[w.WORD]:"#3162AB",[w.XML]:"#71C3EB",[w.YAML]:"#71C3EB",[w.ZIP]:"#F8AB36"};var ds=b(F()),ne=b(T()),rt={size:ne.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:ne.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",ne.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:ne.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",ne.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:ne.FtCssVariableFactory.extend("--ft-icon-material-font-family","",ne.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:ne.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},ps=ds.css`
|
|
308
308
|
:host, i.ft-icon {
|
|
309
309
|
display: inline-flex;
|
|
310
310
|
align-items: center;
|
|
@@ -1500,12 +1500,12 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1500
1500
|
`}};ye.elementDefinitions={"ft-typography":it};ye.styles=zs;(0,Pr.customElement)("ft-floating-menu")(he);(0,Pr.customElement)("ftds-floating-menu")(ir);(0,Pr.customElement)("ft-floating-menu-item")(wt);(0,Pr.customElement)("ft-floating-menu-label")(ye);var ed=b(js(),1);var Ks;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Ks||(Ks={}));var Zs;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Zs||(Zs={}));var qs;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"})(qs||(qs={}));var Ys;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT"})(Ys||(Ys={}));var Xs;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Xs||(Xs={}));var Js;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Js||(Js={}));var Qs;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Qs||(Qs={}));var tc;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(tc||(tc={}));var ec;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(ec||(ec={}));var rc;(function(t){t.ASC="ASC",t.DESC="DESC"})(rc||(rc={}));var oc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(oc||(oc={}));var nc;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(nc||(nc={}));var ac;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"})(ac||(ac={}));var So;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(So||(So={}));var ic;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"})(ic||(ic={}));var sc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(sc||(sc={}));var cr;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"})(cr||(cr={}));var cc;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(cc||(cc={}));var nt;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"})(nt||(nt={}));var lc;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(lc||(lc={}));var dc;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(dc||(dc={}));var Bb={[nt.PERSONAL_BOOK_SHARE_USER]:[nt.PERSONAL_BOOK_USER],[nt.HTML_EXPORT_USER]:[nt.PERSONAL_BOOK_USER],[nt.PDF_EXPORT_USER]:[nt.PERSONAL_BOOK_USER],[nt.KHUB_ADMIN]:[nt.CONTENT_PUBLISHER],[nt.ADMIN]:[nt.KHUB_ADMIN,nt.USERS_ADMIN,nt.PORTAL_ADMIN],[nt.DEVELOPER]:[nt.BETA_USER,nt.DEBUG_USER],[nt.GENERATIVE_AI_EXPORT_USER]:[nt.GENERATIVE_AI_USER]};function rd(t){var e,o,n,a,i;return((a=(o=(e=t.map)===null||e===void 0?void 0:e.openMode)!==null&&o!==void 0?o:(n=t.topic)===null||n===void 0?void 0:n.openMode)!==null&&a!==void 0?a:(i=t.document)===null||i===void 0?void 0:i.openMode)===So.EXTERNAL}function Rn(t){var e,o,n,a,i;if(rd(t))return(a=(o=(e=t.map)===null||e===void 0?void 0:e.originUrl)!==null&&o!==void 0?o:(n=t.topic)===null||n===void 0?void 0:n.originUrl)!==null&&a!==void 0?a:(i=t.document)===null||i===void 0?void 0:i.originUrl;switch(t.type){case cr.MAP:return t.map.readerUrl;case cr.DOCUMENT:return t.document.viewerUrl;case cr.TOPIC:return t.topic.readerUrl}return""}var gl=b(fc());var Go=b(T());var dl=b(T());var gc=b(F()),At=b(Q()),zt=b(T());var uc=b(F());var hc=uc.css`
|
|
1501
1501
|
`;var Oo=b(T()),od="ft-app-info",Nn=class extends CustomEvent{constructor(e){super("authentication-change",{detail:e})}},nd={session:(t,e)=>{(0,Oo.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>_.dispatchEvent(new Nn(e.payload)),0))}},_=Oo.FtReduxStore.get({name:od,reducers:nd,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,metadataConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1}});var be=b(T());var Ln=b(T());var $e=class t{static get(e){let{baseUrl:o,apiIntegrationIdentifier:n}=_.getState(),a=e??n;if(o&&a&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,a,!0)}static await(e){return new Promise(o=>{let n=t.get(e);if(n)o(n);else{let a=_.subscribe(()=>{n=t.get(e),n&&(a(),o(n))})}})}};var ge=class{constructor(e=!0,o){var n;this.overrideApi=o;let a=this.constructor;a.commonCache=(n=a.commonCache)!==null&&n!==void 0?n:new Ln.CacheRegistry,this.cache=e?a.commonCache:new Ln.CacheRegistry}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:$e.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):$e.await()}clearCache(){this.cache.clearAll()}};var yc,ad=Symbol("clearAfterUnitTest"),Co=class extends ge{constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[yc]=()=>{this.defaultMessages={},this.cache=new be.CacheRegistry,this.listeners={}},this.currentUiLocale=_.getState().uiLocale,_.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=_.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let o=e.name.toLowerCase();this.cache.setFinal(o,e),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,o){var n;if(e=e.toLowerCase(),Object.keys(o).length>0){let a={...(n=this.defaultMessages[e])!==null&&n!==void 0?n:{},...o};(0,be.deepEqual)(this.defaultMessages[e],a)||(this.defaultMessages[e]=a,await this.notify(e))}await this.fetchContext(e)}resolveContext(e){var o,n;return this.fetchContext(e),(n=(o=this.cache.getNow(e))===null||o===void 0?void 0:o.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(e,o){let n=e.toLowerCase();return this.resolveContext(n)[o]}resolveMessage(e,o,...n){var a;let i=e.toLowerCase(),c=this.resolveContext(i);return new be.ParametrizedLabelResolver((a=this.defaultMessages[i])!==null&&a!==void 0?a:{},c).resolve(o,...n)}async fetchContext(e){if(!this.cache.has(e))try{await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),await this.notify(e)}catch(o){console.error(o)}}subscribe(e,o){var n;return e=e.toLowerCase(),this.listeners[e]=(n=this.listeners[e])!==null&&n!==void 0?n:new Set,this.listeners[e].add(o),()=>{var a;return(a=this.listeners[e])===null||a===void 0?void 0:a.delete(o)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map(e=>this.notify(e)))}async notify(e){this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(o=>(0,be.delay)(0).then(()=>o()).catch(()=>null)))}};yc=ad;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Co{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Co{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var Me=window.FluidTopicsI18nService,mc=window.FluidTopicsCustomI18nService;var yt=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(c=t[l])&&(i=(a<3?c(i):a>3?c(e,o,i):c(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},J=class extends zt.FtLitElement{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.apiProvider=()=>$e.get(),this.messageContexts=[],this.cache=new zt.CacheRegistry,this.cleanSessionDebouncer=new zt.Debouncer}render(){return gc.html`
|
|
1502
1502
|
<slot></slot>
|
|
1503
|
-
`}update(e){var o,n,a,i,c;super.update(e),e.has("baseUrl")&&(_.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&_.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("uiLocale")&&_.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&_.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&_.actions.noCustom(this.noCustom),e.has("editorMode")&&_.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&_.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&_.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(l=>Me.addContext(l)),e.has("openExternalDocumentInNewTab")&&_.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&_.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&_.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(_.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),_.actions.availableUiLocales((a=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&a!==void 0?a:[]),_.actions.searchInAllLanguagesAllowed((c=(i=this.localesConfiguration)===null||i===void 0?void 0:i.allLanguagesAllowed)!==null&&c!==void 0?c:!1)),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let e=await this.apiProvider().getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},e.idleTimeoutInMillis),e})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}};J.elementDefinitions={};J.styles=hc;yt([(0,At.property)()],J.prototype,"baseUrl",void 0);yt([(0,At.property)()],J.prototype,"apiIntegrationIdentifier",void 0);yt([(0,At.property)()],J.prototype,"uiLocale",void 0);yt([(0,zt.jsonProperty)(null)],J.prototype,"availableUiLocales",void 0);yt([(0,zt.jsonProperty)(null)],J.prototype,"metadataConfiguration",void 0);yt([(0,At.property)({type:Boolean})],J.prototype,"editorMode",void 0);yt([(0,At.property)({type:Boolean})],J.prototype,"noCustom",void 0);yt([(0,At.property)({type:Boolean})],J.prototype,"openExternalDocumentInNewTab",void 0);yt([(0,At.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],J.prototype,"noCustomComponent",void 0);yt([(0,At.property)({type:Boolean})],J.prototype,"withManualResources",void 0);yt([(0,At.property)({type:Boolean})],J.prototype,"navigatorOnline",void 0);yt([(0,At.property)({type:Boolean})],J.prototype,"forcedOffline",void 0);yt([(0,At.property)({type:Object})],J.prototype,"apiProvider",void 0);yt([(0,zt.jsonProperty)([])],J.prototype,"messageContexts",void 0);yt([(0,zt.jsonProperty)(void 0)],J.prototype,"session",void 0);yt([(0,At.state)()],J.prototype,"localesConfiguration",void 0);var ra=b(Q());function id(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var o,n,a;if(Array.isArray(t)){if(o=t.length,o!=e.length)return!1;for(n=o;n--!==0;)if(!Eo(t[n],e[n]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;for(n of t.entries())if(!Eo(n[1],e.get(n[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if(a=Object.keys(t),o=a.length,o!==Object.keys(e).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,a[n]))return!1;for(n=o;n--!==0;){var i=a[n];if(!Eo(t[i],e[i]))return!1}return!0}return t!==t&&e!==e}function Eo(t,e){try{return id(t,e)}catch{return!1}}function _r(t,e){return!Eo(t,e)}var bc=b(Q(),1);var In=t=>{let e=t??{};return(o,n)=>{var a;let i={hasChanged:_r,attribute:!1,...e};(0,bc.property)(i)(o,n);let c=o.constructor;c.reduxProperties=new Map(c.reduxProperties),c.reduxProperties.set(n,{selector:(a=e.selector)!==null&&a!==void 0?a:l=>l[n],store:e.store})}};var wo=class{constructor(){this.queue=[]}add(e,o=!1){o&&(this.queue=this.queue.filter(n=>n.type!==e.type)),this.queue.push(e)}consume(e){let o=this.queue.find(n=>n.type===e);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}};var kr=b(Q(),1);var xc=b(Q(),1);function vc(t,e){let o=()=>JSON.parse(JSON.stringify(t));return(0,xc.property)({type:Object,converter:{fromAttribute:n=>{if(n==null)return o();try{return JSON.parse(n)}catch{return o()}},toAttribute:n=>JSON.stringify(n)},hasChanged:_r,...e??{}})}var Ao=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,o){return this.callbacks=[e],this.debounce(o)}queue(e,o){return this.callbacks.push(e),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((o,n)=>{this.resolvePromise=o,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,o;let n=[...this.callbacks];this.callbacks=[];let a=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,i=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let c of n)try{await c()}catch(l){a(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 Oc=b(F(),1);var Ro=window,sd=Ro.ShadowRoot&&(Ro.ShadyCSS===void 0||Ro.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Cx=Symbol();var Sc=(t,e)=>{sd?t.adoptedStyleSheets=e.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet):e.forEach(o=>{let n=document.createElement("style"),a=Ro.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=o.cssText,t.appendChild(n)})};var No=class extends Oc.LitElement{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([a,i])=>e.registry.define(a,i)));let o={...e.shadowRootOptions,customElements:e.registry},n=this.renderOptions.creationScope=this.attachShadow(o);return Sc(n,e.elementStyles),n}};var Lo=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(c=t[l])&&(i=(a<3?c(i):a>3?c(e,o,i):c(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},Ac,Cc=Symbol("constructorPrototype"),Ec=Symbol("constructorName"),Rc=Symbol("exportpartsDebouncer"),wc=Symbol("dynamicDependenciesLoaded"),xe=class extends No{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Ac]=new Ao(5),this[Ec]=this.constructor.name,this[Cc]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ec]&&Object.setPrototypeOf(this,this[Cc])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(o){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",o)}let e=this.constructor;e[wc]||(e[wc]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate()})}contentAvailableCallback(e){}applyCustomStylesheet(e){var o,n,a;if(((n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(i=>i.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((a=this.customStylesheet)!==null&&a!==void 0?a:"")}catch(i){console.error(i,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let i=document.createElement("style");i.classList.add("ft-lit-element--custom-stylesheet"),i.innerHTML=this.customStylesheet,this.shadowRoot.append(i)}}scheduleExportpartsUpdate(){var e,o,n;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(n=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&n!==void 0&&n)&&this[Rc].run(()=>{var a,i;!((a=this.exportpartsPrefix)===null||a===void 0)&&a.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((i=this.exportpartsPrefixes)===null||i===void 0?void 0:i.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(e){var o,n,a,i,c,l;let f=g=>g!=null&&g.trim().length>0,p=e.filter(f).map(g=>g.trim());if(p.length===0){this.removeAttribute("exportparts");return}let h=new Set;for(let g of(n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let S=(i=(a=g.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&i!==void 0?i:[],v=(l=(c=g.getAttribute("exportparts"))===null||c===void 0?void 0:c.split(",").map(O=>O.split(":")[1]))!==null&&l!==void 0?l:[];new Array(...S,...v).filter(f).map(O=>O.trim()).forEach(O=>h.add(O))}if(h.size===0){this.removeAttribute("exportparts");return}let m=[...h.values()].flatMap(g=>p.map(S=>`${g}:${S}--${g}`));this.setAttribute("exportparts",[...this.part,...m].join(", "))}};Ac=Rc;Lo([(0,kr.property)()],xe.prototype,"exportpartsPrefix",void 0);Lo([vc([])],xe.prototype,"exportpartsPrefixes",void 0);Lo([(0,kr.property)()],xe.prototype,"customStylesheet",void 0);Lo([(0,kr.state)()],xe.prototype,"useAdoptedStyleSheets",void 0);function Br(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Nc,Lc,Ic,Dr=Symbol("internalReduxEventsUnsubscribers"),ve=Symbol("internalStoresUnsubscribers"),Ue=Symbol("internalStores"),$r=class extends xe{constructor(){super(...arguments),this[Nc]=new Map,this[Lc]=new Map,this[Ic]=new Map}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(o=>e.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[Ue].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ue].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[Ue].get(e)}addStore(e,o){var n;o=(n=o??(Br(e)?e.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(o),this[Ue].set(o,e),this.subscribeToStore(o,e),this.updateFromStores()}removeStore(e){let o=typeof e=="string"?e:e.name;this.unsubscribeFromStore(o),this[Ue].delete(o)}setupStores(){this.unsubscribeFromStores(),this[Ue].forEach((e,o)=>this.subscribeToStore(o,e)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((e,o)=>{let n=this.constructor.getPropertyOptions(o);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:o)){let a=this.getStore(e.store);a&&(e.store?this[ve].has(e.store):this[ve].size>0)&&(this[o]=e.selector(a.getState(),this))}})}subscribeToStore(e,o){var n;this[ve].set(e,o.subscribe(()=>this.updateFromStores())),this[Dr].set(e,[]),Br(o)&&o.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((a,i)=>{if(typeof this[i]=="function"&&(!a.store||o.name===a.store)){let c=l=>this[i](l);o.addEventListener(a.eventName,c),this[Dr].get(e).push(()=>o.removeEventListener(a.eventName,c))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[ve].forEach((e,o)=>this.unsubscribeFromStore(o))}unsubscribeFromStore(e){var o;this[ve].has(e)&&this[ve].get(e)(),this[ve].delete(e),(o=this[Dr].get(e))===null||o===void 0||o.forEach(n=>n()),this[Dr].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Nc=ve,Lc=Ue,Ic=Dr;$r.reduxProperties=new Map;$r.reduxReactiveProperties=new Set;$r.reduxEventListeners=new Map;function Mt(t){for(var e=arguments.length,o=Array(e>1?e-1:0),n=1;n<e;n++)o[n-1]=arguments[n];if(0)var a,i;throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map(function(c){return"'"+c+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function ae(t){return!!t&&!!t[Z]}function Ht(t){var e;return!!t&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===yd}(t)||Array.isArray(t)||!!t[$c]||!!(!((e=t.constructor)===null||e===void 0)&&e[$c])||Un(t)||Wn(t))}function We(t,e,o){o===void 0&&(o=!1),pr(t)===0?(o?Object.keys:dr)(t).forEach(function(n){o&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,a){return e(a,n,t)})}function pr(t){var e=t[Z];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Un(t)?2:Wn(t)?3:0}function lr(t,e){return pr(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function cd(t,e){return pr(t)===2?t.get(e):t[e]}function Mc(t,e,o){var n=pr(t);n===2?t.set(e,o):n===3?t.add(o):t[e]=o}function Uc(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Un(t){return ud&&t instanceof Map}function Wn(t){return hd&&t instanceof Set}function Se(t){return t.o||t.t}function Fn(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=zc(t);delete e[Z];for(var o=dr(e),n=0;n<o.length;n++){var a=o[n],i=e[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(e[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:t[a]})}return Object.create(Object.getPrototypeOf(t),e)}function zn(t,e){return e===void 0&&(e=!1),Hn(t)||ae(t)||!Ht(t)||(pr(t)>1&&(t.set=t.add=t.clear=t.delete=ld),Object.freeze(t),e&&We(t,function(o,n){return zn(n,!0)},!0)),t}function ld(){Mt(2)}function Hn(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Yt(t){var e=Mn[t];return e||Mt(18,t),e}function dd(t,e){Mn[t]||(Mn[t]=e)}function Bn(){return Ur}function Tn(t,e){e&&(Yt("Patches"),t.u=[],t.s=[],t.v=e)}function Io(t){Dn(t),t.p.forEach(pd),t.p=null}function Dn(t){t===Ur&&(Ur=t.l)}function Tc(t){return Ur={p:[],l:Ur,h:t,m:!0,_:0}}function pd(t){var e=t[Z];e.i===0||e.i===1?e.j():e.g=!0}function Pn(t,e){e._=e.p.length;var o=e.p[0],n=t!==void 0&&t!==o;return e.h.O||Yt("ES5").S(e,t,n),n?(o[Z].P&&(Io(e),Mt(4)),Ht(t)&&(t=To(e,t),e.l||Po(e,t)),e.u&&Yt("Patches").M(o[Z].t,t,e.u,e.s)):t=To(e,o,[]),Io(e),e.u&&e.v(e.u,e.s),t!==Fc?t:void 0}function To(t,e,o){if(Hn(e))return e;var n=e[Z];if(!n)return We(e,function(l,f){return Pc(t,n,e,l,f,o)},!0),e;if(n.A!==t)return e;if(!n.P)return Po(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=Fn(n.k):n.o,i=a,c=!1;n.i===3&&(i=new Set(a),a.clear(),c=!0),We(i,function(l,f){return Pc(t,n,a,l,f,o,c)}),Po(t,a,!1),o&&t.u&&Yt("Patches").N(n,o,t.u,t.s)}return n.o}function Pc(t,e,o,n,a,i,c){if(ae(a)){var l=To(t,a,i&&e&&e.i!==3&&!lr(e.R,n)?i.concat(n):void 0);if(Mc(o,n,l),!ae(l))return;t.m=!1}else c&&o.add(a);if(Ht(a)&&!Hn(a)){if(!t.h.D&&t._<1)return;To(t,a),e&&e.A.l||Po(t,a)}}function Po(t,e,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&zn(e,o)}function _n(t,e){var o=t[Z];return(o?Se(o):t)[e]}function _c(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var n=Object.getOwnPropertyDescriptor(o,e);if(n)return n;o=Object.getPrototypeOf(o)}}function Oe(t){t.P||(t.P=!0,t.l&&Oe(t.l))}function kn(t){t.o||(t.o=Fn(t.t))}function $n(t,e,o){var n=Un(e)?Yt("MapSet").F(e,o):Wn(e)?Yt("MapSet").T(e,o):t.O?function(a,i){var c=Array.isArray(a),l={i:c?1:0,A:i?i.A:Bn(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},f=l,p=Wr;c&&(f=[l],p=Mr);var h=Proxy.revocable(f,p),m=h.revoke,g=h.proxy;return l.k=g,l.j=m,g}(e,o):Yt("ES5").J(e,o);return(o?o.A:Bn()).p.push(n),n}function fd(t){return ae(t)||Mt(22,t),function e(o){if(!Ht(o))return o;var n,a=o[Z],i=pr(o);if(a){if(!a.P&&(a.i<4||!Yt("ES5").K(a)))return a.t;a.I=!0,n=kc(o,i),a.I=!1}else n=kc(o,i);return We(n,function(c,l){a&&cd(a.t,c)===l||Mc(n,c,e(l))}),i===3?new Set(n):n}(t)}function kc(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Fn(t)}function Wc(){function t(c,l){var f=i[c];return f?f.enumerable=l:i[c]=f={configurable:!0,enumerable:l,get:function(){var p=this[Z];return Wr.get(p,c)},set:function(p){var h=this[Z];Wr.set(h,c,p)}},f}function e(c){for(var l=c.length-1;l>=0;l--){var f=c[l][Z];if(!f.P)switch(f.i){case 5:n(f)&&Oe(f);break;case 4:o(f)&&Oe(f)}}}function o(c){for(var l=c.t,f=c.k,p=dr(f),h=p.length-1;h>=0;h--){var m=p[h];if(m!==Z){var g=l[m];if(g===void 0&&!lr(l,m))return!0;var S=f[m],v=S&&S[Z];if(v?v.t!==g:!Uc(S,g))return!0}}var O=!!l[Z];return p.length!==dr(l).length+(O?0:1)}function n(c){var l=c.k;if(l.length!==c.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 a(c){c.g&&Mt(3,JSON.stringify(Se(c)))}var i={};dd("ES5",{J:function(c,l){var f=Array.isArray(c),p=function(m,g){if(m){for(var S=Array(g.length),v=0;v<g.length;v++)Object.defineProperty(S,""+v,t(v,!0));return S}var O=zc(g);delete O[Z];for(var L=dr(O),R=0;R<L.length;R++){var N=L[R];O[N]=t(N,m||!!O[N].enumerable)}return Object.create(Object.getPrototypeOf(g),O)}(f,c),h={i:f?5:4,A:l?l.A:Bn(),P:!1,I:!1,R:{},l,t:c,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,Z,{value:h,writable:!0}),p},S:function(c,l,f){f?ae(l)&&l[Z].A===c&&e(c.p):(c.u&&function p(h){if(h&&typeof h=="object"){var m=h[Z];if(m){var g=m.t,S=m.k,v=m.R,O=m.i;if(O===4)We(S,function($){$!==Z&&(g[$]!==void 0||lr(g,$)?v[$]||p(S[$]):(v[$]=!0,Oe(m)))}),We(g,function($){S[$]!==void 0||lr(S,$)||(v[$]=!1,Oe(m))});else if(O===5){if(n(m)&&(Oe(m),v.length=!0),S.length<g.length)for(var L=S.length;L<g.length;L++)v[L]=!1;else for(var R=g.length;R<S.length;R++)v[R]=!0;for(var N=Math.min(S.length,g.length),k=0;k<N;k++)S.hasOwnProperty(k)||(v[k]=!0),v[k]===void 0&&p(S[k])}}}}(c.p[0]),e(c.p))},K:function(c){return c.i===4?o(c):n(c)}})}var Bc,Ur,Gn=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",ud=typeof Map<"u",hd=typeof Set<"u",Dc=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Fc=Gn?Symbol.for("immer-nothing"):((Bc={})["immer-nothing"]=!0,Bc),$c=Gn?Symbol.for("immer-draftable"):"__$immer_draftable",Z=Gn?Symbol.for("immer-state"):"__$immer_state";var yd=""+Object.prototype.constructor,dr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,zc=Object.getOwnPropertyDescriptors||function(t){var e={};return dr(t).forEach(function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)}),e},Mn={},Wr={get:function(t,e){if(e===Z)return t;var o=Se(t);if(!lr(o,e))return function(a,i,c){var l,f=_c(i,c);return f?"value"in f?f.value:(l=f.get)===null||l===void 0?void 0:l.call(a.k):void 0}(t,o,e);var n=o[e];return t.I||!Ht(n)?n:n===_n(t.t,e)?(kn(t),t.o[e]=$n(t.A.h,n,t)):n},has:function(t,e){return e in Se(t)},ownKeys:function(t){return Reflect.ownKeys(Se(t))},set:function(t,e,o){var n=_c(Se(t),e);if(n?.set)return n.set.call(t.k,o),!0;if(!t.P){var a=_n(Se(t),e),i=a?.[Z];if(i&&i.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(Uc(o,a)&&(o!==void 0||lr(t.t,e)))return!0;kn(t),Oe(t)}return t.o[e]===o&&(o!==void 0||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return _n(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,kn(t),Oe(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=Se(t),n=Reflect.getOwnPropertyDescriptor(o,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:o[e]}},defineProperty:function(){Mt(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Mt(12)}},Mr={};We(Wr,function(t,e){Mr[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Mr.deleteProperty=function(t,e){return Mr.set.call(this,t,e,void 0)},Mr.set=function(t,e,o){return Wr.set.call(this,t[0],e,o,t[0])};var md=function(){function t(o){var n=this;this.O=Dc,this.D=!0,this.produce=function(a,i,c){if(typeof a=="function"&&typeof i!="function"){var l=i;i=a;var f=n;return function(O){var L=this;O===void 0&&(O=l);for(var R=arguments.length,N=Array(R>1?R-1:0),k=1;k<R;k++)N[k-1]=arguments[k];return f.produce(O,function($){var U;return(U=i).call.apply(U,[L,$].concat(N))})}}var p;if(typeof i!="function"&&Mt(6),c!==void 0&&typeof c!="function"&&Mt(7),Ht(a)){var h=Tc(n),m=$n(n,a,void 0),g=!0;try{p=i(m),g=!1}finally{g?Io(h):Dn(h)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(O){return Tn(h,c),Pn(O,h)},function(O){throw Io(h),O}):(Tn(h,c),Pn(p,h))}if(!a||typeof a!="object"){if((p=i(a))===void 0&&(p=a),p===Fc&&(p=void 0),n.D&&zn(p,!0),c){var S=[],v=[];Yt("Patches").M(a,p,S,v),c(S,v)}return p}Mt(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(p){for(var h=arguments.length,m=Array(h>1?h-1:0),g=1;g<h;g++)m[g-1]=arguments[g];return n.produceWithPatches(p,function(S){return a.apply(void 0,[S].concat(m))})};var c,l,f=n.produce(a,i,function(p,h){c=p,l=h});return typeof Promise<"u"&&f instanceof Promise?f.then(function(p){return[p,c,l]}):[f,c,l]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var e=t.prototype;return e.createDraft=function(o){Ht(o)||Mt(8),ae(o)&&(o=fd(o));var n=Tc(this),a=$n(this,o,void 0);return a[Z].C=!0,Dn(n),a},e.finishDraft=function(o,n){var a=o&&o[Z],i=a.A;return Tn(i,n),Pn(void 0,i)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!Dc&&Mt(20),this.O=o},e.applyPatches=function(o,n){var a;for(a=n.length-1;a>=0;a--){var i=n[a];if(i.path.length===0&&i.op==="replace"){o=i.value;break}}a>-1&&(n=n.slice(a+1));var c=Yt("Patches").$;return ae(o)?c(o,n):this.produce(o,function(l){return c(l,n)})},t}(),kt=new md,gd=kt.produce,Bx=kt.produceWithPatches.bind(kt),Dx=kt.setAutoFreeze.bind(kt),$x=kt.setUseProxies.bind(kt),Mx=kt.applyPatches.bind(kt),Ux=kt.createDraft.bind(kt),Wx=kt.finishDraft.bind(kt),_o=gd;function Ce(t){"@babel/helpers - typeof";return Ce=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ce(t)}function Vn(t,e){if(Ce(t)!=="object"||t===null)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var n=o.call(t,e||"default");if(Ce(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function jn(t){var e=Vn(t,"string");return Ce(e)==="symbol"?e:String(e)}function Kn(t,e,o){return e=jn(e),e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function Hc(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),o.push.apply(o,n)}return o}function ko(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?Hc(Object(o),!0).forEach(function(n){Kn(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Hc(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}function mt(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var Gc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Zn=function(){return Math.random().toString(36).substring(7).split("").join(".")},Bo={INIT:"@@redux/INIT"+Zn(),REPLACE:"@@redux/REPLACE"+Zn(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Zn()}};function bd(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function qn(t,e,o){var n;if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(mt(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(mt(1));return o(qn)(t,e)}if(typeof t!="function")throw new Error(mt(2));var a=t,i=e,c=[],l=c,f=!1;function p(){l===c&&(l=c.slice())}function h(){if(f)throw new Error(mt(3));return i}function m(O){if(typeof O!="function")throw new Error(mt(4));if(f)throw new Error(mt(5));var L=!0;return p(),l.push(O),function(){if(L){if(f)throw new Error(mt(6));L=!1,p();var N=l.indexOf(O);l.splice(N,1),c=null}}}function g(O){if(!bd(O))throw new Error(mt(7));if(typeof O.type>"u")throw new Error(mt(8));if(f)throw new Error(mt(9));try{f=!0,i=a(i,O)}finally{f=!1}for(var L=c=l,R=0;R<L.length;R++){var N=L[R];N()}return O}function S(O){if(typeof O!="function")throw new Error(mt(10));a=O,g({type:Bo.REPLACE})}function v(){var O,L=m;return O={subscribe:function(N){if(typeof N!="object"||N===null)throw new Error(mt(11));function k(){N.next&&N.next(h())}k();var $=L(k);return{unsubscribe:$}}},O[Gc]=function(){return this},O}return g({type:Bo.INIT}),n={dispatch:g,subscribe:m,getState:h,replaceReducer:S},n[Gc]=v,n}function xd(t){Object.keys(t).forEach(function(e){var o=t[e],n=o(void 0,{type:Bo.INIT});if(typeof n>"u")throw new Error(mt(12));if(typeof o(void 0,{type:Bo.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(mt(13))})}function Vc(t){for(var e=Object.keys(t),o={},n=0;n<e.length;n++){var a=e[n];typeof t[a]=="function"&&(o[a]=t[a])}var i=Object.keys(o),c,l;try{xd(o)}catch(f){l=f}return function(p,h){if(p===void 0&&(p={}),l)throw l;if(0)var m;for(var g=!1,S={},v=0;v<i.length;v++){var O=i[v],L=o[O],R=p[O],N=L(R,h);if(typeof N>"u"){var k=h&&h.type;throw new Error(mt(14))}S[O]=N,g=g||N!==R}return g=g||i.length!==Object.keys(p).length,g?S:p}}function fr(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function jc(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(mt(15))},c={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=e.map(function(f){return f(c)});return i=fr.apply(void 0,l)(a.dispatch),ko(ko({},a),{},{dispatch:i})}}}function Kc(t){var e=function(n){var a=n.dispatch,i=n.getState;return function(c){return function(l){return typeof l=="function"?l(a,i,t):c(l)}}};return e}var Zc=Kc();Zc.withExtraArgument=Kc;var Yn=Zc;var Qc=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},t(e,o)};return function(e,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");t(e,o);function n(){this.constructor=e}e.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),vd=function(t,e){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,c;return c={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function l(p){return function(h){return f([p,h])}}function f(p){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(i=p[0]&2?a.return:p[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,p[1])).done)return i;switch(a=0,i&&(p=[p[0]&2,i.value]),p[0]){case 0:case 1:i=p;break;case 4:return o.label++,{value:p[1],done:!1};case 5:o.label++,a=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=e.call(t,o)}catch(h){p=[6,h],a=0}finally{n=i=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},ur=function(t,e){for(var o=0,n=e.length,a=t.length;o<n;o++,a++)t[a]=e[o];return t},Sd=Object.defineProperty,Od=Object.defineProperties,Cd=Object.getOwnPropertyDescriptors,qc=Object.getOwnPropertySymbols,Ed=Object.prototype.hasOwnProperty,wd=Object.prototype.propertyIsEnumerable,Yc=function(t,e,o){return e in t?Sd(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},Ee=function(t,e){for(var o in e||(e={}))Ed.call(e,o)&&Yc(t,o,e[o]);if(qc)for(var n=0,a=qc(e);n<a.length;n++){var o=a[n];wd.call(e,o)&&Yc(t,o,e[o])}return t},Xn=function(t,e){return Od(t,Cd(e))},Ad=function(t,e,o){return new Promise(function(n,a){var i=function(f){try{l(o.next(f))}catch(p){a(p)}},c=function(f){try{l(o.throw(f))}catch(p){a(p)}},l=function(f){return f.done?n(f.value):Promise.resolve(f.value).then(i,c)};l((o=o.apply(t,e)).next())})};var Rd=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?fr:fr.apply(null,arguments)},nv=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Nd(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var o=e;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return e===o}var Ld=function(t){Qc(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=t.apply(this,o)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,ur([void 0],o[0].concat(this)))):new(e.bind.apply(e,ur([void 0],o.concat(this))))},e}(Array),Id=function(t){Qc(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=t.apply(this,o)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,ur([void 0],o[0].concat(this)))):new(e.bind.apply(e,ur([void 0],o.concat(this))))},e}(Array);function ta(t){return Ht(t)?_o(t,function(){}):t}function Td(t){return typeof t=="boolean"}function Pd(){return function(e){return _d(e)}}function _d(t){t===void 0&&(t={});var e=t.thunk,o=e===void 0?!0:e,n=t.immutableCheck,a=n===void 0?!0:n,i=t.serializableCheck,c=i===void 0?!0:i,l=new Ld;if(o&&(Td(o)?l.push(Yn):l.push(Yn.withExtraArgument(o.extraArgument))),0){if(a)var f;if(c)var p}return l}var Jn=!0;function tl(t){var e=Pd(),o=t||{},n=o.reducer,a=n===void 0?void 0:n,i=o.middleware,c=i===void 0?e():i,l=o.devTools,f=l===void 0?!0:l,p=o.preloadedState,h=p===void 0?void 0:p,m=o.enhancers,g=m===void 0?void 0:m,S;if(typeof a=="function")S=a;else if(Nd(a))S=Vc(a);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var v=c;if(typeof v=="function"&&(v=v(e),!Jn&&!Array.isArray(v)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Jn&&v.some(function($){return typeof $!="function"}))throw new Error("each middleware provided to configureStore must be a function");var O=jc.apply(void 0,v),L=fr;f&&(L=Rd(Ee({trace:!Jn},typeof f=="object"&&f)));var R=new Id(O),N=R;Array.isArray(g)?N=ur([O],g):typeof g=="function"&&(N=g(R));var k=L.apply(void 0,N);return qn(S,h,k)}function we(t,e){function o(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(e){var i=e.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return Ee(Ee({type:t,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:t,payload:n[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(n){return n.type===t},o}function el(t){var e={},o=[],n,a={addCase:function(i,c){var l=typeof i=="string"?i:i.type;if(l in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[l]=c,a},addMatcher:function(i,c){return o.push({matcher:i,reducer:c}),a},addDefaultCase:function(i){return n=i,a}};return t(a),[e,o,n]}function kd(t){return typeof t=="function"}function Bd(t,e,o,n){o===void 0&&(o=[]);var a=typeof e=="function"?el(e):[e,o,n],i=a[0],c=a[1],l=a[2],f;if(kd(t))f=function(){return ta(t())};else{var p=ta(t);f=function(){return p}}function h(m,g){m===void 0&&(m=f());var S=ur([i[g.type]],c.filter(function(v){var O=v.matcher;return O(g)}).map(function(v){var O=v.reducer;return O}));return S.filter(function(v){return!!v}).length===0&&(S=[l]),S.reduce(function(v,O){if(O)if(ae(v)){var L=v,R=O(L,g);return R===void 0?v:R}else{if(Ht(v))return _o(v,function(N){return O(N,g)});var R=O(v,g);if(R===void 0){if(v===null)return v;throw Error("A case reducer on a non-draftable value must not return undefined")}return R}return v},m)}return h.getInitialState=f,h}function Dd(t,e){return t+"/"+e}function rl(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof t.initialState=="function"?t.initialState:ta(t.initialState),n=t.reducers||{},a=Object.keys(n),i={},c={},l={};a.forEach(function(h){var m=n[h],g=Dd(e,h),S,v;"reducer"in m?(S=m.reducer,v=m.prepare):S=m,i[h]=S,c[g]=S,l[h]=v?we(g,v):we(g)});function f(){var h=typeof t.extraReducers=="function"?el(t.extraReducers):[t.extraReducers],m=h[0],g=m===void 0?{}:m,S=h[1],v=S===void 0?[]:S,O=h[2],L=O===void 0?void 0:O,R=Ee(Ee({},g),c);return Bd(o,function(N){for(var k in R)N.addCase(k,R[k]);for(var $=0,U=v;$<U.length;$++){var vt=U[$];N.addMatcher(vt.matcher,vt.reducer)}L&&N.addDefaultCase(L)})}var p;return{name:e,reducer:function(h,m){return p||(p=f()),p(h,m)},actions:l,caseReducers:i,getInitialState:function(){return p||(p=f()),p.getInitialState()}}}var $d="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Md=function(t){t===void 0&&(t=21);for(var e="",o=t;o--;)e+=$d[Math.random()*64|0];return e},Ud=["name","message","stack","code"],Qn=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Xc=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Wd=function(t){if(typeof t=="object"&&t!==null){for(var e={},o=0,n=Ud;o<n.length;o++){var a=n[o];typeof t[a]=="string"&&(e[a]=t[a])}return e}return{message:String(t)}},cv=function(){function t(e,o,n){var a=we(e+"/fulfilled",function(h,m,g,S){return{payload:h,meta:Xn(Ee({},S||{}),{arg:g,requestId:m,requestStatus:"fulfilled"})}}),i=we(e+"/pending",function(h,m,g){return{payload:void 0,meta:Xn(Ee({},g||{}),{arg:m,requestId:h,requestStatus:"pending"})}}),c=we(e+"/rejected",function(h,m,g,S,v){return{payload:S,error:(n&&n.serializeError||Wd)(h||"Rejected"),meta:Xn(Ee({},v||{}),{arg:g,requestId:m,rejectedWithValue:!!S,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),l=!1,f=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function p(h){return function(m,g,S){var v=n?.idGenerator?n.idGenerator(h):Md(),O=new f,L,R=!1;function N($){L=$,O.abort()}var k=function(){return Ad(this,null,function(){var $,U,vt,Vt,gt,jt,pt;return vd(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),Vt=($=n?.condition)==null?void 0:$.call(n,h,{getState:g,extra:S}),zd(Vt)?[4,Vt]:[3,2];case 1:Vt=y.sent(),y.label=2;case 2:if(Vt===!1||O.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return R=!0,gt=new Promise(function(x,P){return O.signal.addEventListener("abort",function(){return P({name:"AbortError",message:L||"Aborted"})})}),m(i(v,h,(U=n?.getPendingMeta)==null?void 0:U.call(n,{requestId:v,arg:h},{getState:g,extra:S}))),[4,Promise.race([gt,Promise.resolve(o(h,{dispatch:m,getState:g,extra:S,requestId:v,signal:O.signal,abort:N,rejectWithValue:function(x,P){return new Qn(x,P)},fulfillWithValue:function(x,P){return new Xc(x,P)}})).then(function(x){if(x instanceof Qn)throw x;return x instanceof Xc?a(x.payload,v,h,x.meta):a(x,v,h)})])];case 3:return vt=y.sent(),[3,5];case 4:return jt=y.sent(),vt=jt instanceof Qn?c(null,v,h,jt.payload,jt.meta):c(jt,v,h),[3,5];case 5:return pt=n&&!n.dispatchConditionRejection&&c.match(vt)&&vt.meta.condition,pt||m(vt),[2,vt]}})})}();return Object.assign(k,{abort:N,requestId:v,arg:h,unwrap:function(){return k.then(Fd)}})}}return Object.assign(p,{pending:i,rejected:c,fulfilled:a,typePrefix:e})}return t.withTypes=function(){return t},t}();function Fd(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function zd(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var ol="listener",nl="completed",al="cancelled",lv="task-"+al,dv="task-"+nl,pv=ol+"-"+al,fv=ol+"-"+nl;var ea="listenerMiddleware";var uv=we(ea+"/add"),hv=we(ea+"/removeAll"),yv=we(ea+"/remove");var Jc,mv=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Jc||(Jc=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Hd=function(t){return function(e){setTimeout(e,t)}},gv=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Hd(10);Wc();function Gd(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(o,n,a){this.eventBus.addEventListener(o,n,a)}dispatchEvent(o){return this.eventBus.dispatchEvent(o)}removeEventListener(o,n,a){this.eventBus.removeEventListener(o,n,a)}}}var Do=class extends Gd(Object){};window.ftReduxStores||(window.ftReduxStores={});var il=class t extends Do{static get(e){var o;let n=typeof e=="string"?e:e.name,a=typeof e=="string"?void 0:e,i=window.ftReduxStores[n];if(Br(i))return i;if(a==null)return;let c=rl({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),l=tl({reducer:(f,p)=>p.type==="CLEAR_FT_REDUX_STORE"?c.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...f,...p.overwrites}:c.reducer(f,p)});return window.ftReduxStores[a.name]=new t(c,l)}constructor(e,o){super(),this.reduxSlice=e,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new wo,this.actions=new Proxy(this.reduxSlice.actions,{get:(n,a,i)=>{let c=a,l=n[c];return l?(...f)=>{let p=l(...f);return this.reduxStore.dispatch(p),p}:f=>{this.setState({[c]:f})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var $o=class{static format(e,o,n,a){return window.moment?window.moment(e).locale(o).format(this.getDateFormat(n,a)):e}static getDateFormat(e,o){return e?o?"lll":"ll":o?"L LT":"L"}};var Mo=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(c=t[l])&&(i=(a<3?c(i):a>3?c(e,o,i):c(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i};function sl(t){class e extends t{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(_)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}formatDateValues(n){var a,i;return((i=(a=this.metadataDescriptors.find(l=>l.key===n?.key))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1)?this.formatMetadataDates(n):n}formatMetadataDates(n){return{key:n.key,label:n.label,values:n.values.map(a=>$o.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat)),hierarchicalValues:n.hierarchicalValues}}}return Mo([(0,ra.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Mo([(0,ra.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Mo([In({store:_.name,selector:o=>{var n,a;return(a=(n=o.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&a!==void 0?a:[]}})],e.prototype,"metadataDescriptors",void 0),Mo([In({store:_.name})],e.prototype,"uiLocale",void 0),e}var zo=b(T());var Uo=class extends ge{async listMySearches(){let e=_.getState().session;return e?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var Wo=class extends ge{async listMyBookmarks(){let e=_.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var Vd="ft-user-assets",Fo=zo.FtReduxStore.get({name:Vd,initialState:{savedSearches:void 0,bookmarks:void 0}}),oa=class{constructor(){this.currentSession=_.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Wo,this.savedSearchesService=new Uo,_.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:o}=_.getState();(0,zo.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Fo.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Fo.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Fo.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let o=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Fo.actions.bookmarks(o)}}},Yv=new oa;var na=class{addCommand(e,o=!1){_.commands.add(e,o)}consumeCommand(e){return _.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new na;var cl=b(T()),aa=class{highlightHtml(e,o,n){(0,cl.highlightHtml)(e,o,n)}};window.FluidTopicsHighlightHtmlService=new aa;var ll=b(T());var ia=class{isDate(e){var o,n,a,i;return(i=(a=((n=(o=_.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(l=>l.key===e))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1}format(e,o){var n,a,i;return ll.DateFormatter.format(e,(n=o?.locale)!==null&&n!==void 0?n:_.getState().uiLocale,(a=o?.longFormat)!==null&&a!==void 0?a:!1,(i=o?.withTime)!==null&&i!==void 0?i:!1)}};window.FluidTopicsDateService=new ia;var jd=b(T());(0,dl.customElement)("ft-app-context")(J);var fl=b(Q()),Kd=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(c=t[l])&&(i=(a<3?c(i):a>3?c(e,o,i):c(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},sa=Symbol("i18nAttributes"),ca=Symbol("i18nListAttributes"),Fe=Symbol("i18nProperties"),Fr=Symbol("i18nUnsubs");function Vo(t){var e;class o extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?mc:Me}i18n(a,i,...c){var l;if(typeof a=="string")return this.i18nService.resolveMessage(a,i,...c);let f=(l=a.args)!==null&&l!==void 0?l:a.argsProvider?a.argsProvider(this):[];return this.i18nService.resolveMessage(a.context,a.key,...f)}onI18nUpdate(a){var i,c,l;(i=this[sa])===null||i===void 0||i.forEach((f,p)=>{let h=this.getI18nAttributeValue(p);h&&(this[p]=this.getI18nAttributeMessage(h,f,a))}),(c=this[ca])===null||c===void 0||c.forEach((f,p)=>{let h=this.getI18nListAttributeValues(p);this[p]=h?.map(m=>this.getI18nAttributeMessage(m,f,a))}),(l=this[Fe])===null||l===void 0||l.forEach((f,p)=>{f.context.toLowerCase()===a.toLowerCase()&&(this[p]=this.i18n(f))}),setTimeout(()=>this.requestUpdate(),0)}buildI18nAttributeMessage(a,i){return{...a,message:this.i18n({context:a.context,key:a.key,...i})}}getI18nAttributeMessage(a,i,c){var l;let f=!c||((l=a.context)===null||l===void 0?void 0:l.toLowerCase())===c.toLowerCase();return a.context&&a.key&&f?this.buildI18nAttributeMessage(a,i):a}update(a){var i,c,l;super.update(a),(i=this[sa])===null||i===void 0||i.forEach((f,p)=>{let h=this.getI18nAttributeValue(p);h?.context&&h.key&&(a.has(p)||f.argsProvider!=null)&&(this.addI18nContextIfNeeded(h,a,p),this[p]=this.getI18nAttributeMessage(h,f))}),(c=this[ca])===null||c===void 0||c.forEach((f,p)=>{let h=this.getI18nListAttributeValues(p);(a.has(p)||f.argsProvider!=null)&&(this[p]=h?.map(m=>(this.addI18nContextIfNeeded(m,a,p),this.getI18nAttributeMessage(m,f))))}),(l=this[Fe])===null||l===void 0||l.forEach((f,p)=>{f.argsProvider!=null&&(this[p]=this.i18n(f))})}getI18nAttributeValue(a){return this[a]}getI18nListAttributeValues(a){return this[a]}addI18nContextIfNeeded(a,i,c){a.context&&a.key&&i.has(c)&&this.addI18nContext(a.context)}connectedCallback(){var a,i,c,l,f,p;super.connectedCallback(),new Set([...(i=(a=this[Fe])===null||a===void 0?void 0:a.values())!==null&&i!==void 0?i:[],...[...(l=(c=this[sa])===null||c===void 0?void 0:c.keys())!==null&&l!==void 0?l:[]].map(h=>this.getI18nAttributeValue(h)),...[...(p=(f=this[ca])===null||f===void 0?void 0:f.keys())!==null&&p!==void 0?p:[]].flatMap(h=>this.getI18nListAttributeValues(h))].map(h=>h?.context)).forEach(h=>h&&this.addI18nMessages(h))}addI18nMessages(a,i){a=a.toLowerCase(),this[Fr].has(a)||this[Fr].set(a,this.i18nService.subscribe(a,()=>this.onI18nUpdate(a))),this.i18nService.prepareContext(a,i??{}),this.onI18nUpdate(a)}addI18nContext(a,i){this.addI18nMessages(typeof a=="string"?a:a.name,i)}disconnectedCallback(){super.disconnectedCallback(),this[Fr].forEach(a=>a()),this[Fr].clear()}}return e=Fr,Kd([(0,fl.property)({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}var pl=class extends Vo(Go.FtLitElement){},Ho=class extends Vo(Go.FtLitElementRedux){};var ml=b(T());var jo=b(F()),Ko=b(Q()),Zo=b(T());var ul=b(F());var hl=ul.css`
|
|
1503
|
+
`}update(e){var o,n,a,i,c;super.update(e),e.has("baseUrl")&&(_.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&_.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("uiLocale")&&_.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&_.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&_.actions.noCustom(this.noCustom),e.has("editorMode")&&_.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&_.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&_.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(l=>Me.addContext(l)),e.has("openExternalDocumentInNewTab")&&_.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&_.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&_.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(_.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),_.actions.availableUiLocales((a=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&a!==void 0?a:[]),_.actions.searchInAllLanguagesAllowed((c=(i=this.localesConfiguration)===null||i===void 0?void 0:i.allLanguagesAllowed)!==null&&c!==void 0?c:!1)),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let e=await this.apiProvider().getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},e.idleTimeoutInMillis),e})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}};J.elementDefinitions={};J.styles=hc;yt([(0,At.property)()],J.prototype,"baseUrl",void 0);yt([(0,At.property)()],J.prototype,"apiIntegrationIdentifier",void 0);yt([(0,At.property)()],J.prototype,"uiLocale",void 0);yt([(0,zt.jsonProperty)(null)],J.prototype,"availableUiLocales",void 0);yt([(0,zt.jsonProperty)(null)],J.prototype,"metadataConfiguration",void 0);yt([(0,At.property)({type:Boolean})],J.prototype,"editorMode",void 0);yt([(0,At.property)({type:Boolean})],J.prototype,"noCustom",void 0);yt([(0,At.property)({type:Boolean})],J.prototype,"openExternalDocumentInNewTab",void 0);yt([(0,At.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],J.prototype,"noCustomComponent",void 0);yt([(0,At.property)({type:Boolean})],J.prototype,"withManualResources",void 0);yt([(0,At.property)({type:Boolean})],J.prototype,"navigatorOnline",void 0);yt([(0,At.property)({type:Boolean})],J.prototype,"forcedOffline",void 0);yt([(0,At.property)({type:Object})],J.prototype,"apiProvider",void 0);yt([(0,zt.jsonProperty)([])],J.prototype,"messageContexts",void 0);yt([(0,zt.jsonProperty)(void 0)],J.prototype,"session",void 0);yt([(0,At.state)()],J.prototype,"localesConfiguration",void 0);var ra=b(Q());function id(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var o,n,a;if(Array.isArray(t)){if(o=t.length,o!=e.length)return!1;for(n=o;n--!==0;)if(!Eo(t[n],e[n]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;for(n of t.entries())if(!Eo(n[1],e.get(n[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if(a=Object.keys(t),o=a.length,o!==Object.keys(e).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,a[n]))return!1;for(n=o;n--!==0;){var i=a[n];if(!Eo(t[i],e[i]))return!1}return!0}return t!==t&&e!==e}function Eo(t,e){try{return id(t,e)}catch{return!1}}function _r(t,e){return!Eo(t,e)}var bc=b(Q(),1);var In=t=>{let e=t??{};return(o,n)=>{var a;let i={hasChanged:_r,attribute:!1,...e};(0,bc.property)(i)(o,n);let c=o.constructor;c.reduxProperties=new Map(c.reduxProperties),c.reduxProperties.set(n,{selector:(a=e.selector)!==null&&a!==void 0?a:l=>l[n],store:e.store})}};var wo=class{constructor(){this.queue=[]}add(e,o=!1){o&&(this.queue=this.queue.filter(n=>n.type!==e.type)),this.queue.push(e)}consume(e){let o=this.queue.find(n=>n.type===e);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}};var kr=b(Q(),1);var xc=b(Q(),1);function vc(t,e){let o=()=>JSON.parse(JSON.stringify(t));return(0,xc.property)({type:Object,converter:{fromAttribute:n=>{if(n==null)return o();try{return JSON.parse(n)}catch{return o()}},toAttribute:n=>JSON.stringify(n)},hasChanged:_r,...e??{}})}var Ao=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,o){return this.callbacks=[e],this.debounce(o)}queue(e,o){return this.callbacks.push(e),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((o,n)=>{this.resolvePromise=o,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,o;let n=[...this.callbacks];this.callbacks=[];let a=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,i=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let c of n)try{await c()}catch(l){a(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 Oc=b(F(),1);var Ro=window,sd=Ro.ShadowRoot&&(Ro.ShadyCSS===void 0||Ro.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Cx=Symbol();var Sc=(t,e)=>{sd?t.adoptedStyleSheets=e.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet):e.forEach(o=>{let n=document.createElement("style"),a=Ro.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=o.cssText,t.appendChild(n)})};var No=class extends Oc.LitElement{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([a,i])=>e.registry.define(a,i)));let o={...e.shadowRootOptions,customElements:e.registry},n=this.renderOptions.creationScope=this.attachShadow(o);return Sc(n,e.elementStyles),n}};var Lo=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(c=t[l])&&(i=(a<3?c(i):a>3?c(e,o,i):c(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},Ac,Cc=Symbol("constructorPrototype"),Ec=Symbol("constructorName"),Rc=Symbol("exportpartsDebouncer"),wc=Symbol("dynamicDependenciesLoaded"),xe=class extends No{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Ac]=new Ao(5),this[Ec]=this.constructor.name,this[Cc]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ec]&&Object.setPrototypeOf(this,this[Cc])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(o){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",o)}let e=this.constructor;e[wc]||(e[wc]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate()})}contentAvailableCallback(e){}applyCustomStylesheet(e){var o,n,a;if(((n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(i=>i.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((a=this.customStylesheet)!==null&&a!==void 0?a:"")}catch(i){console.error(i,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let i=document.createElement("style");i.classList.add("ft-lit-element--custom-stylesheet"),i.innerHTML=this.customStylesheet,this.shadowRoot.append(i)}}scheduleExportpartsUpdate(){var e,o,n;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(n=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&n!==void 0&&n)&&this[Rc].run(()=>{var a,i;!((a=this.exportpartsPrefix)===null||a===void 0)&&a.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((i=this.exportpartsPrefixes)===null||i===void 0?void 0:i.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(e){var o,n,a,i,c,l;let f=g=>g!=null&&g.trim().length>0,p=e.filter(f).map(g=>g.trim());if(p.length===0){this.removeAttribute("exportparts");return}let h=new Set;for(let g of(n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let S=(i=(a=g.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&i!==void 0?i:[],v=(l=(c=g.getAttribute("exportparts"))===null||c===void 0?void 0:c.split(",").map(O=>O.split(":")[1]))!==null&&l!==void 0?l:[];new Array(...S,...v).filter(f).map(O=>O.trim()).forEach(O=>h.add(O))}if(h.size===0){this.removeAttribute("exportparts");return}let m=[...h.values()].flatMap(g=>p.map(S=>`${g}:${S}--${g}`));this.setAttribute("exportparts",[...this.part,...m].join(", "))}};Ac=Rc;Lo([(0,kr.property)()],xe.prototype,"exportpartsPrefix",void 0);Lo([vc([])],xe.prototype,"exportpartsPrefixes",void 0);Lo([(0,kr.property)()],xe.prototype,"customStylesheet",void 0);Lo([(0,kr.state)()],xe.prototype,"useAdoptedStyleSheets",void 0);function Br(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Nc,Lc,Ic,Dr=Symbol("internalReduxEventsUnsubscribers"),ve=Symbol("internalStoresUnsubscribers"),Ue=Symbol("internalStores"),$r=class extends xe{constructor(){super(...arguments),this[Nc]=new Map,this[Lc]=new Map,this[Ic]=new Map}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(o=>e.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[Ue].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ue].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[Ue].get(e)}addStore(e,o){var n;o=(n=o??(Br(e)?e.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(o),this[Ue].set(o,e),this.subscribeToStore(o,e),this.updateFromStores()}removeStore(e){let o=typeof e=="string"?e:e.name;this.unsubscribeFromStore(o),this[Ue].delete(o)}setupStores(){this.unsubscribeFromStores(),this[Ue].forEach((e,o)=>this.subscribeToStore(o,e)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((e,o)=>{let n=this.constructor.getPropertyOptions(o);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:o)){let a=this.getStore(e.store);a&&(e.store?this[ve].has(e.store):this[ve].size>0)&&(this[o]=e.selector(a.getState(),this))}})}subscribeToStore(e,o){var n;this[ve].set(e,o.subscribe(()=>this.updateFromStores())),this[Dr].set(e,[]),Br(o)&&o.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((a,i)=>{if(typeof this[i]=="function"&&(!a.store||o.name===a.store)){let c=l=>this[i](l);o.addEventListener(a.eventName,c),this[Dr].get(e).push(()=>o.removeEventListener(a.eventName,c))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[ve].forEach((e,o)=>this.unsubscribeFromStore(o))}unsubscribeFromStore(e){var o;this[ve].has(e)&&this[ve].get(e)(),this[ve].delete(e),(o=this[Dr].get(e))===null||o===void 0||o.forEach(n=>n()),this[Dr].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Nc=ve,Lc=Ue,Ic=Dr;$r.reduxProperties=new Map;$r.reduxReactiveProperties=new Set;$r.reduxEventListeners=new Map;function Mt(t){for(var e=arguments.length,o=Array(e>1?e-1:0),n=1;n<e;n++)o[n-1]=arguments[n];if(0)var a,i;throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map(function(c){return"'"+c+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function ae(t){return!!t&&!!t[Z]}function Ht(t){var e;return!!t&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===yd}(t)||Array.isArray(t)||!!t[$c]||!!(!((e=t.constructor)===null||e===void 0)&&e[$c])||Un(t)||Wn(t))}function We(t,e,o){o===void 0&&(o=!1),pr(t)===0?(o?Object.keys:dr)(t).forEach(function(n){o&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,a){return e(a,n,t)})}function pr(t){var e=t[Z];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Un(t)?2:Wn(t)?3:0}function lr(t,e){return pr(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function cd(t,e){return pr(t)===2?t.get(e):t[e]}function Mc(t,e,o){var n=pr(t);n===2?t.set(e,o):n===3?t.add(o):t[e]=o}function Uc(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Un(t){return ud&&t instanceof Map}function Wn(t){return hd&&t instanceof Set}function Se(t){return t.o||t.t}function Fn(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=zc(t);delete e[Z];for(var o=dr(e),n=0;n<o.length;n++){var a=o[n],i=e[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(e[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:t[a]})}return Object.create(Object.getPrototypeOf(t),e)}function zn(t,e){return e===void 0&&(e=!1),Hn(t)||ae(t)||!Ht(t)||(pr(t)>1&&(t.set=t.add=t.clear=t.delete=ld),Object.freeze(t),e&&We(t,function(o,n){return zn(n,!0)},!0)),t}function ld(){Mt(2)}function Hn(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Yt(t){var e=Mn[t];return e||Mt(18,t),e}function dd(t,e){Mn[t]||(Mn[t]=e)}function Bn(){return Ur}function Tn(t,e){e&&(Yt("Patches"),t.u=[],t.s=[],t.v=e)}function Io(t){Dn(t),t.p.forEach(pd),t.p=null}function Dn(t){t===Ur&&(Ur=t.l)}function Tc(t){return Ur={p:[],l:Ur,h:t,m:!0,_:0}}function pd(t){var e=t[Z];e.i===0||e.i===1?e.j():e.g=!0}function Pn(t,e){e._=e.p.length;var o=e.p[0],n=t!==void 0&&t!==o;return e.h.O||Yt("ES5").S(e,t,n),n?(o[Z].P&&(Io(e),Mt(4)),Ht(t)&&(t=To(e,t),e.l||Po(e,t)),e.u&&Yt("Patches").M(o[Z].t,t,e.u,e.s)):t=To(e,o,[]),Io(e),e.u&&e.v(e.u,e.s),t!==Fc?t:void 0}function To(t,e,o){if(Hn(e))return e;var n=e[Z];if(!n)return We(e,function(l,f){return Pc(t,n,e,l,f,o)},!0),e;if(n.A!==t)return e;if(!n.P)return Po(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=Fn(n.k):n.o,i=a,c=!1;n.i===3&&(i=new Set(a),a.clear(),c=!0),We(i,function(l,f){return Pc(t,n,a,l,f,o,c)}),Po(t,a,!1),o&&t.u&&Yt("Patches").N(n,o,t.u,t.s)}return n.o}function Pc(t,e,o,n,a,i,c){if(ae(a)){var l=To(t,a,i&&e&&e.i!==3&&!lr(e.R,n)?i.concat(n):void 0);if(Mc(o,n,l),!ae(l))return;t.m=!1}else c&&o.add(a);if(Ht(a)&&!Hn(a)){if(!t.h.D&&t._<1)return;To(t,a),e&&e.A.l||Po(t,a)}}function Po(t,e,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&zn(e,o)}function _n(t,e){var o=t[Z];return(o?Se(o):t)[e]}function _c(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var n=Object.getOwnPropertyDescriptor(o,e);if(n)return n;o=Object.getPrototypeOf(o)}}function Oe(t){t.P||(t.P=!0,t.l&&Oe(t.l))}function kn(t){t.o||(t.o=Fn(t.t))}function $n(t,e,o){var n=Un(e)?Yt("MapSet").F(e,o):Wn(e)?Yt("MapSet").T(e,o):t.O?function(a,i){var c=Array.isArray(a),l={i:c?1:0,A:i?i.A:Bn(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},f=l,p=Wr;c&&(f=[l],p=Mr);var h=Proxy.revocable(f,p),m=h.revoke,g=h.proxy;return l.k=g,l.j=m,g}(e,o):Yt("ES5").J(e,o);return(o?o.A:Bn()).p.push(n),n}function fd(t){return ae(t)||Mt(22,t),function e(o){if(!Ht(o))return o;var n,a=o[Z],i=pr(o);if(a){if(!a.P&&(a.i<4||!Yt("ES5").K(a)))return a.t;a.I=!0,n=kc(o,i),a.I=!1}else n=kc(o,i);return We(n,function(c,l){a&&cd(a.t,c)===l||Mc(n,c,e(l))}),i===3?new Set(n):n}(t)}function kc(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Fn(t)}function Wc(){function t(c,l){var f=i[c];return f?f.enumerable=l:i[c]=f={configurable:!0,enumerable:l,get:function(){var p=this[Z];return Wr.get(p,c)},set:function(p){var h=this[Z];Wr.set(h,c,p)}},f}function e(c){for(var l=c.length-1;l>=0;l--){var f=c[l][Z];if(!f.P)switch(f.i){case 5:n(f)&&Oe(f);break;case 4:o(f)&&Oe(f)}}}function o(c){for(var l=c.t,f=c.k,p=dr(f),h=p.length-1;h>=0;h--){var m=p[h];if(m!==Z){var g=l[m];if(g===void 0&&!lr(l,m))return!0;var S=f[m],v=S&&S[Z];if(v?v.t!==g:!Uc(S,g))return!0}}var O=!!l[Z];return p.length!==dr(l).length+(O?0:1)}function n(c){var l=c.k;if(l.length!==c.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 a(c){c.g&&Mt(3,JSON.stringify(Se(c)))}var i={};dd("ES5",{J:function(c,l){var f=Array.isArray(c),p=function(m,g){if(m){for(var S=Array(g.length),v=0;v<g.length;v++)Object.defineProperty(S,""+v,t(v,!0));return S}var O=zc(g);delete O[Z];for(var L=dr(O),R=0;R<L.length;R++){var N=L[R];O[N]=t(N,m||!!O[N].enumerable)}return Object.create(Object.getPrototypeOf(g),O)}(f,c),h={i:f?5:4,A:l?l.A:Bn(),P:!1,I:!1,R:{},l,t:c,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,Z,{value:h,writable:!0}),p},S:function(c,l,f){f?ae(l)&&l[Z].A===c&&e(c.p):(c.u&&function p(h){if(h&&typeof h=="object"){var m=h[Z];if(m){var g=m.t,S=m.k,v=m.R,O=m.i;if(O===4)We(S,function($){$!==Z&&(g[$]!==void 0||lr(g,$)?v[$]||p(S[$]):(v[$]=!0,Oe(m)))}),We(g,function($){S[$]!==void 0||lr(S,$)||(v[$]=!1,Oe(m))});else if(O===5){if(n(m)&&(Oe(m),v.length=!0),S.length<g.length)for(var L=S.length;L<g.length;L++)v[L]=!1;else for(var R=g.length;R<S.length;R++)v[R]=!0;for(var N=Math.min(S.length,g.length),k=0;k<N;k++)S.hasOwnProperty(k)||(v[k]=!0),v[k]===void 0&&p(S[k])}}}}(c.p[0]),e(c.p))},K:function(c){return c.i===4?o(c):n(c)}})}var Bc,Ur,Gn=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",ud=typeof Map<"u",hd=typeof Set<"u",Dc=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Fc=Gn?Symbol.for("immer-nothing"):((Bc={})["immer-nothing"]=!0,Bc),$c=Gn?Symbol.for("immer-draftable"):"__$immer_draftable",Z=Gn?Symbol.for("immer-state"):"__$immer_state";var yd=""+Object.prototype.constructor,dr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,zc=Object.getOwnPropertyDescriptors||function(t){var e={};return dr(t).forEach(function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)}),e},Mn={},Wr={get:function(t,e){if(e===Z)return t;var o=Se(t);if(!lr(o,e))return function(a,i,c){var l,f=_c(i,c);return f?"value"in f?f.value:(l=f.get)===null||l===void 0?void 0:l.call(a.k):void 0}(t,o,e);var n=o[e];return t.I||!Ht(n)?n:n===_n(t.t,e)?(kn(t),t.o[e]=$n(t.A.h,n,t)):n},has:function(t,e){return e in Se(t)},ownKeys:function(t){return Reflect.ownKeys(Se(t))},set:function(t,e,o){var n=_c(Se(t),e);if(n?.set)return n.set.call(t.k,o),!0;if(!t.P){var a=_n(Se(t),e),i=a?.[Z];if(i&&i.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(Uc(o,a)&&(o!==void 0||lr(t.t,e)))return!0;kn(t),Oe(t)}return t.o[e]===o&&(o!==void 0||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return _n(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,kn(t),Oe(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=Se(t),n=Reflect.getOwnPropertyDescriptor(o,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:o[e]}},defineProperty:function(){Mt(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Mt(12)}},Mr={};We(Wr,function(t,e){Mr[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Mr.deleteProperty=function(t,e){return Mr.set.call(this,t,e,void 0)},Mr.set=function(t,e,o){return Wr.set.call(this,t[0],e,o,t[0])};var md=function(){function t(o){var n=this;this.O=Dc,this.D=!0,this.produce=function(a,i,c){if(typeof a=="function"&&typeof i!="function"){var l=i;i=a;var f=n;return function(O){var L=this;O===void 0&&(O=l);for(var R=arguments.length,N=Array(R>1?R-1:0),k=1;k<R;k++)N[k-1]=arguments[k];return f.produce(O,function($){var U;return(U=i).call.apply(U,[L,$].concat(N))})}}var p;if(typeof i!="function"&&Mt(6),c!==void 0&&typeof c!="function"&&Mt(7),Ht(a)){var h=Tc(n),m=$n(n,a,void 0),g=!0;try{p=i(m),g=!1}finally{g?Io(h):Dn(h)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(O){return Tn(h,c),Pn(O,h)},function(O){throw Io(h),O}):(Tn(h,c),Pn(p,h))}if(!a||typeof a!="object"){if((p=i(a))===void 0&&(p=a),p===Fc&&(p=void 0),n.D&&zn(p,!0),c){var S=[],v=[];Yt("Patches").M(a,p,S,v),c(S,v)}return p}Mt(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(p){for(var h=arguments.length,m=Array(h>1?h-1:0),g=1;g<h;g++)m[g-1]=arguments[g];return n.produceWithPatches(p,function(S){return a.apply(void 0,[S].concat(m))})};var c,l,f=n.produce(a,i,function(p,h){c=p,l=h});return typeof Promise<"u"&&f instanceof Promise?f.then(function(p){return[p,c,l]}):[f,c,l]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var e=t.prototype;return e.createDraft=function(o){Ht(o)||Mt(8),ae(o)&&(o=fd(o));var n=Tc(this),a=$n(this,o,void 0);return a[Z].C=!0,Dn(n),a},e.finishDraft=function(o,n){var a=o&&o[Z],i=a.A;return Tn(i,n),Pn(void 0,i)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!Dc&&Mt(20),this.O=o},e.applyPatches=function(o,n){var a;for(a=n.length-1;a>=0;a--){var i=n[a];if(i.path.length===0&&i.op==="replace"){o=i.value;break}}a>-1&&(n=n.slice(a+1));var c=Yt("Patches").$;return ae(o)?c(o,n):this.produce(o,function(l){return c(l,n)})},t}(),kt=new md,gd=kt.produce,Bx=kt.produceWithPatches.bind(kt),Dx=kt.setAutoFreeze.bind(kt),$x=kt.setUseProxies.bind(kt),Mx=kt.applyPatches.bind(kt),Ux=kt.createDraft.bind(kt),Wx=kt.finishDraft.bind(kt),_o=gd;function Ce(t){"@babel/helpers - typeof";return Ce=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ce(t)}function Vn(t,e){if(Ce(t)!=="object"||t===null)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var n=o.call(t,e||"default");if(Ce(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function jn(t){var e=Vn(t,"string");return Ce(e)==="symbol"?e:String(e)}function Kn(t,e,o){return e=jn(e),e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function Hc(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),o.push.apply(o,n)}return o}function ko(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?Hc(Object(o),!0).forEach(function(n){Kn(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Hc(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}function mt(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var Gc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Zn=function(){return Math.random().toString(36).substring(7).split("").join(".")},Bo={INIT:"@@redux/INIT"+Zn(),REPLACE:"@@redux/REPLACE"+Zn(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Zn()}};function bd(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function qn(t,e,o){var n;if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(mt(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(mt(1));return o(qn)(t,e)}if(typeof t!="function")throw new Error(mt(2));var a=t,i=e,c=[],l=c,f=!1;function p(){l===c&&(l=c.slice())}function h(){if(f)throw new Error(mt(3));return i}function m(O){if(typeof O!="function")throw new Error(mt(4));if(f)throw new Error(mt(5));var L=!0;return p(),l.push(O),function(){if(L){if(f)throw new Error(mt(6));L=!1,p();var N=l.indexOf(O);l.splice(N,1),c=null}}}function g(O){if(!bd(O))throw new Error(mt(7));if(typeof O.type>"u")throw new Error(mt(8));if(f)throw new Error(mt(9));try{f=!0,i=a(i,O)}finally{f=!1}for(var L=c=l,R=0;R<L.length;R++){var N=L[R];N()}return O}function S(O){if(typeof O!="function")throw new Error(mt(10));a=O,g({type:Bo.REPLACE})}function v(){var O,L=m;return O={subscribe:function(N){if(typeof N!="object"||N===null)throw new Error(mt(11));function k(){N.next&&N.next(h())}k();var $=L(k);return{unsubscribe:$}}},O[Gc]=function(){return this},O}return g({type:Bo.INIT}),n={dispatch:g,subscribe:m,getState:h,replaceReducer:S},n[Gc]=v,n}function xd(t){Object.keys(t).forEach(function(e){var o=t[e],n=o(void 0,{type:Bo.INIT});if(typeof n>"u")throw new Error(mt(12));if(typeof o(void 0,{type:Bo.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(mt(13))})}function Vc(t){for(var e=Object.keys(t),o={},n=0;n<e.length;n++){var a=e[n];typeof t[a]=="function"&&(o[a]=t[a])}var i=Object.keys(o),c,l;try{xd(o)}catch(f){l=f}return function(p,h){if(p===void 0&&(p={}),l)throw l;if(0)var m;for(var g=!1,S={},v=0;v<i.length;v++){var O=i[v],L=o[O],R=p[O],N=L(R,h);if(typeof N>"u"){var k=h&&h.type;throw new Error(mt(14))}S[O]=N,g=g||N!==R}return g=g||i.length!==Object.keys(p).length,g?S:p}}function fr(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function jc(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(mt(15))},c={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=e.map(function(f){return f(c)});return i=fr.apply(void 0,l)(a.dispatch),ko(ko({},a),{},{dispatch:i})}}}function Kc(t){var e=function(n){var a=n.dispatch,i=n.getState;return function(c){return function(l){return typeof l=="function"?l(a,i,t):c(l)}}};return e}var Zc=Kc();Zc.withExtraArgument=Kc;var Yn=Zc;var Qc=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},t(e,o)};return function(e,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");t(e,o);function n(){this.constructor=e}e.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),vd=function(t,e){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,c;return c={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function l(p){return function(h){return f([p,h])}}function f(p){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(i=p[0]&2?a.return:p[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,p[1])).done)return i;switch(a=0,i&&(p=[p[0]&2,i.value]),p[0]){case 0:case 1:i=p;break;case 4:return o.label++,{value:p[1],done:!1};case 5:o.label++,a=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=e.call(t,o)}catch(h){p=[6,h],a=0}finally{n=i=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},ur=function(t,e){for(var o=0,n=e.length,a=t.length;o<n;o++,a++)t[a]=e[o];return t},Sd=Object.defineProperty,Od=Object.defineProperties,Cd=Object.getOwnPropertyDescriptors,qc=Object.getOwnPropertySymbols,Ed=Object.prototype.hasOwnProperty,wd=Object.prototype.propertyIsEnumerable,Yc=function(t,e,o){return e in t?Sd(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},Ee=function(t,e){for(var o in e||(e={}))Ed.call(e,o)&&Yc(t,o,e[o]);if(qc)for(var n=0,a=qc(e);n<a.length;n++){var o=a[n];wd.call(e,o)&&Yc(t,o,e[o])}return t},Xn=function(t,e){return Od(t,Cd(e))},Ad=function(t,e,o){return new Promise(function(n,a){var i=function(f){try{l(o.next(f))}catch(p){a(p)}},c=function(f){try{l(o.throw(f))}catch(p){a(p)}},l=function(f){return f.done?n(f.value):Promise.resolve(f.value).then(i,c)};l((o=o.apply(t,e)).next())})};var Rd=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?fr:fr.apply(null,arguments)},nv=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Nd(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var o=e;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return e===o}var Ld=function(t){Qc(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=t.apply(this,o)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,ur([void 0],o[0].concat(this)))):new(e.bind.apply(e,ur([void 0],o.concat(this))))},e}(Array),Id=function(t){Qc(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=t.apply(this,o)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,ur([void 0],o[0].concat(this)))):new(e.bind.apply(e,ur([void 0],o.concat(this))))},e}(Array);function ta(t){return Ht(t)?_o(t,function(){}):t}function Td(t){return typeof t=="boolean"}function Pd(){return function(e){return _d(e)}}function _d(t){t===void 0&&(t={});var e=t.thunk,o=e===void 0?!0:e,n=t.immutableCheck,a=n===void 0?!0:n,i=t.serializableCheck,c=i===void 0?!0:i,l=new Ld;if(o&&(Td(o)?l.push(Yn):l.push(Yn.withExtraArgument(o.extraArgument))),0){if(a)var f;if(c)var p}return l}var Jn=!0;function tl(t){var e=Pd(),o=t||{},n=o.reducer,a=n===void 0?void 0:n,i=o.middleware,c=i===void 0?e():i,l=o.devTools,f=l===void 0?!0:l,p=o.preloadedState,h=p===void 0?void 0:p,m=o.enhancers,g=m===void 0?void 0:m,S;if(typeof a=="function")S=a;else if(Nd(a))S=Vc(a);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var v=c;if(typeof v=="function"&&(v=v(e),!Jn&&!Array.isArray(v)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Jn&&v.some(function($){return typeof $!="function"}))throw new Error("each middleware provided to configureStore must be a function");var O=jc.apply(void 0,v),L=fr;f&&(L=Rd(Ee({trace:!Jn},typeof f=="object"&&f)));var R=new Id(O),N=R;Array.isArray(g)?N=ur([O],g):typeof g=="function"&&(N=g(R));var k=L.apply(void 0,N);return qn(S,h,k)}function we(t,e){function o(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(e){var i=e.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return Ee(Ee({type:t,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:t,payload:n[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(n){return n.type===t},o}function el(t){var e={},o=[],n,a={addCase:function(i,c){var l=typeof i=="string"?i:i.type;if(l in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[l]=c,a},addMatcher:function(i,c){return o.push({matcher:i,reducer:c}),a},addDefaultCase:function(i){return n=i,a}};return t(a),[e,o,n]}function kd(t){return typeof t=="function"}function Bd(t,e,o,n){o===void 0&&(o=[]);var a=typeof e=="function"?el(e):[e,o,n],i=a[0],c=a[1],l=a[2],f;if(kd(t))f=function(){return ta(t())};else{var p=ta(t);f=function(){return p}}function h(m,g){m===void 0&&(m=f());var S=ur([i[g.type]],c.filter(function(v){var O=v.matcher;return O(g)}).map(function(v){var O=v.reducer;return O}));return S.filter(function(v){return!!v}).length===0&&(S=[l]),S.reduce(function(v,O){if(O)if(ae(v)){var L=v,R=O(L,g);return R===void 0?v:R}else{if(Ht(v))return _o(v,function(N){return O(N,g)});var R=O(v,g);if(R===void 0){if(v===null)return v;throw Error("A case reducer on a non-draftable value must not return undefined")}return R}return v},m)}return h.getInitialState=f,h}function Dd(t,e){return t+"/"+e}function rl(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof t.initialState=="function"?t.initialState:ta(t.initialState),n=t.reducers||{},a=Object.keys(n),i={},c={},l={};a.forEach(function(h){var m=n[h],g=Dd(e,h),S,v;"reducer"in m?(S=m.reducer,v=m.prepare):S=m,i[h]=S,c[g]=S,l[h]=v?we(g,v):we(g)});function f(){var h=typeof t.extraReducers=="function"?el(t.extraReducers):[t.extraReducers],m=h[0],g=m===void 0?{}:m,S=h[1],v=S===void 0?[]:S,O=h[2],L=O===void 0?void 0:O,R=Ee(Ee({},g),c);return Bd(o,function(N){for(var k in R)N.addCase(k,R[k]);for(var $=0,U=v;$<U.length;$++){var vt=U[$];N.addMatcher(vt.matcher,vt.reducer)}L&&N.addDefaultCase(L)})}var p;return{name:e,reducer:function(h,m){return p||(p=f()),p(h,m)},actions:l,caseReducers:i,getInitialState:function(){return p||(p=f()),p.getInitialState()}}}var $d="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Md=function(t){t===void 0&&(t=21);for(var e="",o=t;o--;)e+=$d[Math.random()*64|0];return e},Ud=["name","message","stack","code"],Qn=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Xc=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Wd=function(t){if(typeof t=="object"&&t!==null){for(var e={},o=0,n=Ud;o<n.length;o++){var a=n[o];typeof t[a]=="string"&&(e[a]=t[a])}return e}return{message:String(t)}},cv=function(){function t(e,o,n){var a=we(e+"/fulfilled",function(h,m,g,S){return{payload:h,meta:Xn(Ee({},S||{}),{arg:g,requestId:m,requestStatus:"fulfilled"})}}),i=we(e+"/pending",function(h,m,g){return{payload:void 0,meta:Xn(Ee({},g||{}),{arg:m,requestId:h,requestStatus:"pending"})}}),c=we(e+"/rejected",function(h,m,g,S,v){return{payload:S,error:(n&&n.serializeError||Wd)(h||"Rejected"),meta:Xn(Ee({},v||{}),{arg:g,requestId:m,rejectedWithValue:!!S,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),l=!1,f=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function p(h){return function(m,g,S){var v=n?.idGenerator?n.idGenerator(h):Md(),O=new f,L,R=!1;function N($){L=$,O.abort()}var k=function(){return Ad(this,null,function(){var $,U,vt,Vt,gt,jt,pt;return vd(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),Vt=($=n?.condition)==null?void 0:$.call(n,h,{getState:g,extra:S}),zd(Vt)?[4,Vt]:[3,2];case 1:Vt=y.sent(),y.label=2;case 2:if(Vt===!1||O.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return R=!0,gt=new Promise(function(x,P){return O.signal.addEventListener("abort",function(){return P({name:"AbortError",message:L||"Aborted"})})}),m(i(v,h,(U=n?.getPendingMeta)==null?void 0:U.call(n,{requestId:v,arg:h},{getState:g,extra:S}))),[4,Promise.race([gt,Promise.resolve(o(h,{dispatch:m,getState:g,extra:S,requestId:v,signal:O.signal,abort:N,rejectWithValue:function(x,P){return new Qn(x,P)},fulfillWithValue:function(x,P){return new Xc(x,P)}})).then(function(x){if(x instanceof Qn)throw x;return x instanceof Xc?a(x.payload,v,h,x.meta):a(x,v,h)})])];case 3:return vt=y.sent(),[3,5];case 4:return jt=y.sent(),vt=jt instanceof Qn?c(null,v,h,jt.payload,jt.meta):c(jt,v,h),[3,5];case 5:return pt=n&&!n.dispatchConditionRejection&&c.match(vt)&&vt.meta.condition,pt||m(vt),[2,vt]}})})}();return Object.assign(k,{abort:N,requestId:v,arg:h,unwrap:function(){return k.then(Fd)}})}}return Object.assign(p,{pending:i,rejected:c,fulfilled:a,typePrefix:e})}return t.withTypes=function(){return t},t}();function Fd(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function zd(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var ol="listener",nl="completed",al="cancelled",lv="task-"+al,dv="task-"+nl,pv=ol+"-"+al,fv=ol+"-"+nl;var ea="listenerMiddleware";var uv=we(ea+"/add"),hv=we(ea+"/removeAll"),yv=we(ea+"/remove");var Jc,mv=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Jc||(Jc=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Hd=function(t){return function(e){setTimeout(e,t)}},gv=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Hd(10);Wc();function Gd(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(o,n,a){this.eventBus.addEventListener(o,n,a)}dispatchEvent(o){return this.eventBus.dispatchEvent(o)}removeEventListener(o,n,a){this.eventBus.removeEventListener(o,n,a)}}}var Do=class extends Gd(Object){};window.ftReduxStores||(window.ftReduxStores={});var il=class t extends Do{static get(e){var o;let n=typeof e=="string"?e:e.name,a=typeof e=="string"?void 0:e,i=window.ftReduxStores[n];if(Br(i))return i;if(a==null)return;let c=rl({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),l=tl({reducer:(f,p)=>p.type==="CLEAR_FT_REDUX_STORE"?c.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...f,...p.overwrites}:c.reducer(f,p)});return window.ftReduxStores[a.name]=new t(c,l)}constructor(e,o){super(),this.reduxSlice=e,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new wo,this.actions=new Proxy(this.reduxSlice.actions,{get:(n,a,i)=>{let c=a,l=n[c];return l?(...f)=>{let p=l(...f);return this.reduxStore.dispatch(p),p}:f=>{this.setState({[c]:f})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var $o=class{static format(e,o,n,a){return window.moment?window.moment(e).locale(o).format(this.getDateFormat(n,a)):e}static getDateFormat(e,o){return e?o?"lll":"ll":o?"L LT":"L"}};var Mo=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(c=t[l])&&(i=(a<3?c(i):a>3?c(e,o,i):c(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i};function sl(t){class e extends t{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(_)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var a,i;return((i=(a=this.metadataDescriptors.find(l=>l.key===n))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1)?l=>$o.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Mo([(0,ra.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Mo([(0,ra.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Mo([In({store:_.name,selector:o=>{var n,a;return(a=(n=o.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&a!==void 0?a:[]}})],e.prototype,"metadataDescriptors",void 0),Mo([In({store:_.name})],e.prototype,"uiLocale",void 0),e}var zo=b(T());var Uo=class extends ge{async listMySearches(){let e=_.getState().session;return e?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var Wo=class extends ge{async listMyBookmarks(){let e=_.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var Vd="ft-user-assets",Fo=zo.FtReduxStore.get({name:Vd,initialState:{savedSearches:void 0,bookmarks:void 0}}),oa=class{constructor(){this.currentSession=_.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Wo,this.savedSearchesService=new Uo,_.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:o}=_.getState();(0,zo.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Fo.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Fo.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Fo.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let o=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Fo.actions.bookmarks(o)}}},Yv=new oa;var na=class{addCommand(e,o=!1){_.commands.add(e,o)}consumeCommand(e){return _.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new na;var cl=b(T()),aa=class{highlightHtml(e,o,n){(0,cl.highlightHtml)(e,o,n)}};window.FluidTopicsHighlightHtmlService=new aa;var ll=b(T());var ia=class{isDate(e){var o,n,a,i;return(i=(a=((n=(o=_.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(l=>l.key===e))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1}format(e,o){var n,a,i;return ll.DateFormatter.format(e,(n=o?.locale)!==null&&n!==void 0?n:_.getState().uiLocale,(a=o?.longFormat)!==null&&a!==void 0?a:!1,(i=o?.withTime)!==null&&i!==void 0?i:!1)}};window.FluidTopicsDateService=new ia;var jd=b(T());(0,dl.customElement)("ft-app-context")(J);var fl=b(Q()),Kd=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(c=t[l])&&(i=(a<3?c(i):a>3?c(e,o,i):c(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},sa=Symbol("i18nAttributes"),ca=Symbol("i18nListAttributes"),Fe=Symbol("i18nProperties"),Fr=Symbol("i18nUnsubs");function Vo(t){var e;class o extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?mc:Me}i18n(a,i,...c){var l;if(typeof a=="string")return this.i18nService.resolveMessage(a,i,...c);let f=(l=a.args)!==null&&l!==void 0?l:a.argsProvider?a.argsProvider(this):[];return this.i18nService.resolveMessage(a.context,a.key,...f)}onI18nUpdate(a){var i,c,l;(i=this[sa])===null||i===void 0||i.forEach((f,p)=>{let h=this.getI18nAttributeValue(p);h&&(this[p]=this.getI18nAttributeMessage(h,f,a))}),(c=this[ca])===null||c===void 0||c.forEach((f,p)=>{let h=this.getI18nListAttributeValues(p);this[p]=h?.map(m=>this.getI18nAttributeMessage(m,f,a))}),(l=this[Fe])===null||l===void 0||l.forEach((f,p)=>{f.context.toLowerCase()===a.toLowerCase()&&(this[p]=this.i18n(f))}),setTimeout(()=>this.requestUpdate(),0)}buildI18nAttributeMessage(a,i){return{...a,message:this.i18n({context:a.context,key:a.key,...i})}}getI18nAttributeMessage(a,i,c){var l;let f=!c||((l=a.context)===null||l===void 0?void 0:l.toLowerCase())===c.toLowerCase();return a.context&&a.key&&f?this.buildI18nAttributeMessage(a,i):a}update(a){var i,c,l;super.update(a),(i=this[sa])===null||i===void 0||i.forEach((f,p)=>{let h=this.getI18nAttributeValue(p);h?.context&&h.key&&(a.has(p)||f.argsProvider!=null)&&(this.addI18nContextIfNeeded(h,a,p),this[p]=this.getI18nAttributeMessage(h,f))}),(c=this[ca])===null||c===void 0||c.forEach((f,p)=>{let h=this.getI18nListAttributeValues(p);(a.has(p)||f.argsProvider!=null)&&(this[p]=h?.map(m=>(this.addI18nContextIfNeeded(m,a,p),this.getI18nAttributeMessage(m,f))))}),(l=this[Fe])===null||l===void 0||l.forEach((f,p)=>{f.argsProvider!=null&&(this[p]=this.i18n(f))})}getI18nAttributeValue(a){return this[a]}getI18nListAttributeValues(a){return this[a]}addI18nContextIfNeeded(a,i,c){a.context&&a.key&&i.has(c)&&this.addI18nContext(a.context)}connectedCallback(){var a,i,c,l,f,p;super.connectedCallback(),new Set([...(i=(a=this[Fe])===null||a===void 0?void 0:a.values())!==null&&i!==void 0?i:[],...[...(l=(c=this[sa])===null||c===void 0?void 0:c.keys())!==null&&l!==void 0?l:[]].map(h=>this.getI18nAttributeValue(h)),...[...(p=(f=this[ca])===null||f===void 0?void 0:f.keys())!==null&&p!==void 0?p:[]].flatMap(h=>this.getI18nListAttributeValues(h))].map(h=>h?.context)).forEach(h=>h&&this.addI18nMessages(h))}addI18nMessages(a,i){a=a.toLowerCase(),this[Fr].has(a)||this[Fr].set(a,this.i18nService.subscribe(a,()=>this.onI18nUpdate(a))),this.i18nService.prepareContext(a,i??{}),this.onI18nUpdate(a)}addI18nContext(a,i){this.addI18nMessages(typeof a=="string"?a:a.name,i)}disconnectedCallback(){super.disconnectedCallback(),this[Fr].forEach(a=>a()),this[Fr].clear()}}return e=Fr,Kd([(0,fl.property)({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}var pl=class extends Vo(Go.FtLitElement){},Ho=class extends Vo(Go.FtLitElementRedux){};var ml=b(T());var jo=b(F()),Ko=b(Q()),Zo=b(T());var ul=b(F());var hl=ul.css`
|
|
1504
1504
|
`;var zr=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(c=t[l])&&(i=(a<3?c(i):a>3?c(e,o,i):c(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},Gt=class extends Ho{constructor(){super(),this.editorMode=!1,this.addStore(_)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":jo.nothing:jo.html`
|
|
1505
1505
|
<span class="ft-i18n">
|
|
1506
1506
|
${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
|
|
1507
1507
|
</span>
|
|
1508
|
-
`}update(e){var o;super.update(e),["context","key","defaultMessage"].some(n=>e.has(n))&&this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:(o=this.defaultMessage)!==null&&o!==void 0?o:""})}};Gt.elementDefinitions={};Gt.styles=hl;zr([(0,Zo.redux)()],Gt.prototype,"editorMode",void 0);zr([(0,Ko.property)()],Gt.prototype,"context",void 0);zr([(0,Ko.property)()],Gt.prototype,"key",void 0);zr([(0,Zo.jsonProperty)([])],Gt.prototype,"args",void 0);zr([(0,Ko.property)()],Gt.prototype,"defaultMessage",void 0);var qo=class t{static build(e){return new t(e)}static fromGwt(e){return new t(e)}constructor(e){this.name=e,this.properties=new Proxy({},{get:(o,n)=>{let a=n;return i=>({context:this.name,key:a,args:typeof i=="function"?void 0:i,argsProvider:typeof i=="function"?i:void 0})}}),this.messages=new Proxy({},{get:(o,n)=>(...a)=>Me.resolveMessage(this.name,n,...a)}),this.rawMessages=new Proxy({},{get:(o,n)=>Me.resolveRawMessage(this.name,n)})}};var yl=(t,e)=>(o,n)=>{var a,i;o.constructor.createProperty(n,e??{attribute:!1,type:String});let c={...t,key:(a=t.key)!==null&&a!==void 0?a:n};o[Fe]=(i=o[Fe])!==null&&i!==void 0?i:new Map,o[Fe].set(n,c)};(0,ml.customElement)("ft-i18n")(Gt);var la=qo.build("designedReaderMapMetadata");var Ut=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(c=t[l])&&(i=(a<3?c(i):a>3?c(e,o,i):c(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},dt=class extends sl(Vo(Gr)){constructor(){super(),this.multiLine=!1,this.useForSwitchingToRelatives=!1,this.displayLabel=!1,this.editorMode=!1,this.relatives=[],this.noValueMessage="No value",this.addI18nContext(la)}setReaderStateManager(e){super.setReaderStateManager(e),this.key&&this.useForSwitchingToRelatives&&e.registerMetadataForSwitchToRelatives(this.key)}updateRelatives(){var e,o,n,a;this.useForSwitchingToRelatives&&this.key?this.relatives=(a=(o=(e=this.stateManager)===null||e===void 0?void 0:e.clusteringHelper)===null||o===void 0?void 0:o.computeClustersItemsForMetadata(this.key,((n=this.map)===null||n===void 0?void 0:n.lang)||"en",this.noValueMessage))!==null&&a!==void 0?a:[]:this.relatives=[]}render(){return Rt.html`
|
|
1508
|
+
`}update(e){var o;super.update(e),["context","key","defaultMessage"].some(n=>e.has(n))&&this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:(o=this.defaultMessage)!==null&&o!==void 0?o:""})}};Gt.elementDefinitions={};Gt.styles=hl;zr([(0,Zo.redux)()],Gt.prototype,"editorMode",void 0);zr([(0,Ko.property)()],Gt.prototype,"context",void 0);zr([(0,Ko.property)()],Gt.prototype,"key",void 0);zr([(0,Zo.jsonProperty)([])],Gt.prototype,"args",void 0);zr([(0,Ko.property)()],Gt.prototype,"defaultMessage",void 0);var qo=class t{static build(e){return new t(e)}static fromGwt(e){return new t(e)}constructor(e){this.name=e,this.properties=new Proxy({},{get:(o,n)=>{let a=n;return i=>({context:this.name,key:a,args:typeof i=="function"?void 0:i,argsProvider:typeof i=="function"?i:void 0})}}),this.messages=new Proxy({},{get:(o,n)=>(...a)=>Me.resolveMessage(this.name,n,...a)}),this.rawMessages=new Proxy({},{get:(o,n)=>Me.resolveRawMessage(this.name,n)})}};var yl=(t,e)=>(o,n)=>{var a,i;o.constructor.createProperty(n,e??{attribute:!1,type:String});let c={...t,key:(a=t.key)!==null&&a!==void 0?a:n};o[Fe]=(i=o[Fe])!==null&&i!==void 0?i:new Map,o[Fe].set(n,c)};(0,ml.customElement)("ft-i18n")(Gt);var la=qo.build("designedReaderMapMetadata");var Ut=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(c=t[l])&&(i=(a<3?c(i):a>3?c(e,o,i):c(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},dt=class extends sl(Vo(Gr)){constructor(){super(),this.multiLine=!1,this.useForSwitchingToRelatives=!1,this.displayLabel=!1,this.editorMode=!1,this.relatives=[],this.noValueMessage="No value",this.addI18nContext(la)}setReaderStateManager(e){super.setReaderStateManager(e),this.key&&this.useForSwitchingToRelatives&&e.registerMetadataForSwitchToRelatives(this.key)}updateRelatives(){var e,o,n,a;this.useForSwitchingToRelatives&&this.key?this.relatives=(a=(o=(e=this.stateManager)===null||e===void 0?void 0:e.clusteringHelper)===null||o===void 0?void 0:o.computeClustersItemsForMetadata(this.key,((n=this.map)===null||n===void 0?void 0:n.lang)||"en",this.noValueMessage,this.getDateFormatter(this.key)))!==null&&a!==void 0?a:[]:this.relatives=[]}render(){return Rt.html`
|
|
1509
1509
|
${this.useForSwitchingToRelatives&&this.relatives.length>0?this.renderSwitchToRelatives():this.renderChip()}
|
|
1510
1510
|
${this.hideIfEmpty()}
|
|
1511
1511
|
`}renderSwitchToRelatives(){return Rt.html`
|
|
@@ -1533,7 +1533,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1533
1533
|
<ft-tooltip part="tooltip"
|
|
1534
1534
|
slot="${e?"toggle":""}"
|
|
1535
1535
|
class="${this.multiLine?"ft-reader-metadata-multi-line":""}"
|
|
1536
|
-
text="${`${this.metadataLabel}: ${(l=(c=this.flatMetadata)===null||c===void 0?void 0:c.
|
|
1536
|
+
text="${`${this.metadataLabel}: ${(l=(c=this.flatMetadata)===null||c===void 0?void 0:c.displayValue)!==null&&l!==void 0?l:this.noValueMessage}`}">
|
|
1537
1537
|
${p}
|
|
1538
1538
|
</ft-tooltip>
|
|
1539
1539
|
`}get metadataValue(){return this.flatMetadata?this.flatMetadata.displayValue:this.editorMode?this.key?`no value for ${this.key}`:"no metadata selected":this.noValueMessage}renderRelativeItem(e,o){return Rt.html`
|
|
@@ -1553,7 +1553,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1553
1553
|
display: none !important;
|
|
1554
1554
|
}
|
|
1555
1555
|
</style>
|
|
1556
|
-
`:Rt.nothing}addTopicPivotParam(e,o){var n,a;let i=this.stateManager.store.getState().visibleTopics[0];if(i&&o.type=="MAP"){e.stopPropagation(),e.preventDefault();let c=(n=this.service)===null||n===void 0?void 0:n.getTocNodeNow(i);(a=this.service)===null||a===void 0||a.getTopicInfo(c).then(l=>{let f=l?.metadata.find(m=>m.key==this.relativeTopicPivotMetadata),p=new URL(Rn(o));f&&f.values.forEach(m=>p.searchParams.append("topicPivot",m));let h=document.createElement("a");h.href=p.toString(),(e.ctrlKey||e.metaKey)&&(h.target="_blank"),this.append(h),h.click()})}}update(e){var o,n,a,i;super.update(e),e.has("key")&&this.useForSwitchingToRelatives&&(e.get("key")&&((o=this.stateManager)===null||o===void 0||o.unregisterMetadataForSwitchToRelatives(e.get("key"))),this.key&&((n=this.stateManager)===null||n===void 0||n.registerMetadataForSwitchToRelatives(this.key))),e.has("useForSwitchingToRelatives")&&this.key&&(this.useForSwitchingToRelatives?(a=this.stateManager)===null||a===void 0||a.registerMetadataForSwitchToRelatives(this.key):(i=this.stateManager)===null||i===void 0||i.unregisterMetadataForSwitchToRelatives(this.key)),(e.has("metadata")||this.dateFormatOptionsChanged(e))&&(this.flatMetadata=Xt.ClusteringHelper.flattenMetadata(this.
|
|
1556
|
+
`:Rt.nothing}addTopicPivotParam(e,o){var n,a;let i=this.stateManager.store.getState().visibleTopics[0];if(i&&o.type=="MAP"){e.stopPropagation(),e.preventDefault();let c=(n=this.service)===null||n===void 0?void 0:n.getTocNodeNow(i);(a=this.service)===null||a===void 0||a.getTopicInfo(c).then(l=>{let f=l?.metadata.find(m=>m.key==this.relativeTopicPivotMetadata),p=new URL(Rn(o));f&&f.values.forEach(m=>p.searchParams.append("topicPivot",m));let h=document.createElement("a");h.href=p.toString(),(e.ctrlKey||e.metaKey)&&(h.target="_blank"),this.append(h),h.click()})}}update(e){var o,n,a,i;super.update(e),e.has("key")&&this.useForSwitchingToRelatives&&(e.get("key")&&((o=this.stateManager)===null||o===void 0||o.unregisterMetadataForSwitchToRelatives(e.get("key"))),this.key&&((n=this.stateManager)===null||n===void 0||n.registerMetadataForSwitchToRelatives(this.key))),e.has("useForSwitchingToRelatives")&&this.key&&(this.useForSwitchingToRelatives?(a=this.stateManager)===null||a===void 0||a.registerMetadataForSwitchToRelatives(this.key):(i=this.stateManager)===null||i===void 0||i.unregisterMetadataForSwitchToRelatives(this.key)),(e.has("metadata")||this.dateFormatOptionsChanged(e))&&this.metadata&&(this.flatMetadata=Xt.ClusteringHelper.flattenMetadata(this.metadata,this.getDateFormatter(this.metadata.key)))}get metadataLabel(){var e,o,n,a,i,c;return this.metadata?this.metadata.label:(c=(a=(n=(o=(e=this.stateManager)===null||e===void 0?void 0:e.clusteringHelper)===null||o===void 0?void 0:o.getMetadataDescriptor(this.key))===null||n===void 0?void 0:n.label)!==null&&a!==void 0?a:(i=this.relatives.find(l=>l.metadata.value))===null||i===void 0?void 0:i.metadata.label)!==null&&c!==void 0?c:this.key}};dt.elementDefinitions={"ft-chip":tt,"ft-floating-menu":he,"ft-floating-menu-item":wt,"ft-floating-menu-label":ye,"ft-ripple":z,"ft-tooltip":V};dt.styles=ma;Ut([(0,ie.property)(),(0,Xt.reduxReactive)()],dt.prototype,"key",void 0);Ut([(0,ie.property)({type:Boolean})],dt.prototype,"multiLine",void 0);Ut([(0,ie.property)({type:Boolean})],dt.prototype,"useForSwitchingToRelatives",void 0);Ut([(0,ie.property)({type:Boolean})],dt.prototype,"displayLabel",void 0);Ut([(0,ie.property)({attribute:!1})],dt.prototype,"editorMode",void 0);Ut([(0,Xt.redux)({store:"reader",selector:(t,e)=>{var o,n;return(n=(o=t.map)===null||o===void 0?void 0:o.metadata)===null||n===void 0?void 0:n.find(a=>a.key===e.key)}})],dt.prototype,"metadata",void 0);Ut([(0,ie.state)()],dt.prototype,"flatMetadata",void 0);Ut([(0,Xt.redux)({store:"reader"})],dt.prototype,"map",void 0);Ut([(0,Xt.redux)({store:"reader",selector:t=>{var e;return(e=t.configuration)===null||e===void 0?void 0:e.relativeTopicPivotMetadata}})],dt.prototype,"relativeTopicPivotMetadata",void 0);Ut([(0,ie.state)()],dt.prototype,"relatives",void 0);Ut([yl(la.properties.itemWithNoValueForSwitchToRelatives())],dt.prototype,"noValueMessage",void 0);Ut([(0,Xt.reduxEventListener)({eventName:"clustering-helper-created"})],dt.prototype,"updateRelatives",null);(0,bl.customElement)("ft-reader-metadata")(dt);})();
|
|
1557
1557
|
/*! Bundled license information:
|
|
1558
1558
|
|
|
1559
1559
|
lit-html/lit-html.js:
|