@fluid-topics/ft-search-period-filter 1.2.20 → 1.2.21
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.
|
@@ -106,7 +106,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
106
106
|
}
|
|
107
107
|
`,ei=[Object.keys(Qr).map(t=>za(t))];var wn=g(I());var Zt=g($()),G=g(K()),Me=g(I());var Si=g(I());var nn=globalThis,ro=nn.trustedTypes,ri=ro?ro.createPolicy("lit-html",{createHTML:t=>t}):void 0,li="$lit$",bt=`lit$${(Math.random()+"").slice(9)}$`,ci="?"+bt,kc=`<${ci}>`,Wt=document,oo=()=>Wt.createComment(""),Rr=t=>t===null||typeof t!="object"&&typeof t!="function",di=Array.isArray,_c=t=>di(t)||typeof t?.[Symbol.iterator]=="function",Qo=`[
|
|
108
108
|
\f\r]`,Ar=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,oi=/-->/g,ni=/>/g,Mt=RegExp(`>|${Qo}(?:([^\\s"'>=/]+)(${Qo}*=${Qo}*(?:[^
|
|
109
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),ai=/'/g,ii=/"/g,pi=/^(?:script|style|textarea|title)$/i,fi=t=>(e,...o)=>({_$litType$:t,strings:e,values:o}),ui=fi(1),hi=fi(2),Nr=Symbol.for("lit-noChange"),
|
|
109
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),ai=/'/g,ii=/"/g,pi=/^(?:script|style|textarea|title)$/i,fi=t=>(e,...o)=>({_$litType$:t,strings:e,values:o}),ui=fi(1),hi=fi(2),Nr=Symbol.for("lit-noChange"),le=Symbol.for("lit-nothing"),si=new WeakMap,Ut=Wt.createTreeWalker(Wt,129);function yi(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return ri!==void 0?ri.createHTML(e):e}var Dc=(t,e)=>{let o=t.length-1,n=[],a,i=e===2?"<svg>":"",l=Ar;for(let c=0;c<o;c++){let p=t[c],f,h,m=-1,b=0;for(;b<p.length&&(l.lastIndex=b,h=l.exec(p),h!==null);)b=l.lastIndex,l===Ar?h[1]==="!--"?l=oi:h[1]!==void 0?l=ni:h[2]!==void 0?(pi.test(h[2])&&(a=RegExp("</"+h[2],"g")),l=Mt):h[3]!==void 0&&(l=Mt):l===Mt?h[0]===">"?(l=a??Ar,m=-1):h[1]===void 0?m=-2:(m=l.lastIndex-h[2].length,f=h[1],l=h[3]===void 0?Mt:h[3]==='"'?ii:ai):l===ii||l===ai?l=Mt:l===oi||l===ni?l=Ar:(l=Mt,a=void 0);let S=l===Mt&&t[c+1].startsWith("/>")?" ":"";i+=l===Ar?p+kc:m>=0?(n.push(f),p.slice(0,m)+li+p.slice(m)+bt+S):p+bt+(m===-2?c:S)}return[yi(t,i+(t[o]||"<?>")+(e===2?"</svg>":"")),n]},Lr=class t{constructor({strings:e,_$litType$:o},n){let a;this.parts=[];let i=0,l=0,c=e.length-1,p=this.parts,[f,h]=Dc(e,o);if(this.el=t.createElement(f,n),Ut.currentNode=this.el.content,o===2){let m=this.el.content.firstChild;m.replaceWith(...m.childNodes)}for(;(a=Ut.nextNode())!==null&&p.length<c;){if(a.nodeType===1){if(a.hasAttributes())for(let m of a.getAttributeNames())if(m.endsWith(li)){let b=h[l++],S=a.getAttribute(m).split(bt),v=/([.?@])?(.*)/.exec(b);p.push({type:1,index:i,name:v[2],strings:S,ctor:v[1]==="."?en:v[1]==="?"?tn:v[1]==="@"?rn:fr}),a.removeAttribute(m)}else m.startsWith(bt)&&(p.push({type:6,index:i}),a.removeAttribute(m));if(pi.test(a.tagName)){let m=a.textContent.split(bt),b=m.length-1;if(b>0){a.textContent=ro?ro.emptyScript:"";for(let S=0;S<b;S++)a.append(m[S],oo()),Ut.nextNode(),p.push({type:2,index:++i});a.append(m[b],oo())}}}else if(a.nodeType===8)if(a.data===ci)p.push({type:2,index:i});else{let m=-1;for(;(m=a.data.indexOf(bt,m+1))!==-1;)p.push({type:7,index:i}),m+=bt.length-1}i++}}static createElement(e,o){let n=Wt.createElement("template");return n.innerHTML=e,n}};function pr(t,e,o=t,n){if(e===Nr)return e;let a=n!==void 0?o._$Co?.[n]:o._$Cl,i=Rr(e)?void 0:e._$litDirective$;return a?.constructor!==i&&(a?._$AO?.(!1),i===void 0?a=void 0:(a=new i(t),a._$AT(t,o,n)),n!==void 0?(o._$Co??=[])[n]=a:o._$Cl=a),a!==void 0&&(e=pr(t,a._$AS(t,e.values),a,n)),e}var Jo=class{constructor(e,o){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:o},parts:n}=this._$AD,a=(e?.creationScope??Wt).importNode(o,!0);Ut.currentNode=a;let i=Ut.nextNode(),l=0,c=0,p=n[0];for(;p!==void 0;){if(l===p.index){let f;p.type===2?f=new no(i,i.nextSibling,this,e):p.type===1?f=new p.ctor(i,p.name,p.strings,this,e):p.type===6&&(f=new on(i,this,e)),this._$AV.push(f),p=n[++c]}l!==p?.index&&(i=Ut.nextNode(),l++)}return Ut.currentNode=Wt,a}p(e){let o=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,o),o+=n.strings.length-2):n._$AI(e[o])),o++}},no=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,o,n,a){this.type=2,this._$AH=le,this._$AN=void 0,this._$AA=e,this._$AB=o,this._$AM=n,this.options=a,this._$Cv=a?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,o=this._$AM;return o!==void 0&&e?.nodeType===11&&(e=o.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,o=this){e=pr(this,e,o),Rr(e)?e===le||e==null||e===""?(this._$AH!==le&&this._$AR(),this._$AH=le):e!==this._$AH&&e!==Nr&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):_c(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==le&&Rr(this._$AH)?this._$AA.nextSibling.data=e:this.$(Wt.createTextNode(e)),this._$AH=e}g(e){let{values:o,_$litType$:n}=e,a=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=Lr.createElement(yi(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===a)this._$AH.p(o);else{let i=new Jo(a,this),l=i.u(this.options);i.p(o),this.$(l),this._$AH=i}}_$AC(e){let o=si.get(e.strings);return o===void 0&&si.set(e.strings,o=new Lr(e)),o}T(e){di(this._$AH)||(this._$AH=[],this._$AR());let o=this._$AH,n,a=0;for(let i of e)a===o.length?o.push(n=new t(this.k(oo()),this.k(oo()),this,this.options)):n=o[a],n._$AI(i),a++;a<o.length&&(this._$AR(n&&n._$AB.nextSibling,a),o.length=a)}_$AR(e=this._$AA.nextSibling,o){for(this._$AP?.(!1,!0,o);e&&e!==this._$AB;){let n=e.nextSibling;e.remove(),e=n}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},fr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,o,n,a,i){this.type=1,this._$AH=le,this._$AN=void 0,this.element=e,this.name=o,this._$AM=a,this.options=i,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=le}_$AI(e,o=this,n,a){let i=this.strings,l=!1;if(i===void 0)e=pr(this,e,o,0),l=!Rr(e)||e!==this._$AH&&e!==Nr,l&&(this._$AH=e);else{let c=e,p,f;for(e=i[0],p=0;p<i.length-1;p++)f=pr(this,c[n+p],o,p),f===Nr&&(f=this._$AH[p]),l||=!Rr(f)||f!==this._$AH[p],f===le?e=le:e!==le&&(e+=(f??"")+i[p+1]),this._$AH[p]=f}l&&!a&&this.O(e)}O(e){e===le?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},en=class extends fr{constructor(){super(...arguments),this.type=3}O(e){this.element[this.name]=e===le?void 0:e}},tn=class extends fr{constructor(){super(...arguments),this.type=4}O(e){this.element.toggleAttribute(this.name,!!e&&e!==le)}},rn=class extends fr{constructor(e,o,n,a,i){super(e,o,n,a,i),this.type=5}_$AI(e,o=this){if((e=pr(this,e,o,0)??le)===Nr)return;let n=this._$AH,a=e===le&&n!==le||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,i=e!==le&&(n===le||a);a&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},on=class{constructor(e,o,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=o,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){pr(this,e)}};var Bc=nn.litHtmlPolyfillSupport;Bc?.(Lr,no),(nn.litHtmlVersions??=[]).push("3.1.0");var gi=Symbol.for(""),$c=t=>{if(t?.r===gi)return t?._$litStatic$},an=t=>({_$litStatic$:t,r:gi});var mi=new Map,bi=t=>(e,...o)=>{let n=o.length,a,i,l=[],c=[],p,f=0,h=!1;for(;f<n;){for(p=e[f];f<n&&(i=o[f],(a=$c(i))!==void 0);)p+=a+e[++f],h=!0;f!==n&&c.push(i),l.push(p),f++}if(f===n&&l.push(e[n]),h){let m=l.join("$$lit$$");(e=mi.get(m))===void 0&&(l.raw=l,mi.set(m,e=l)),o=c}return t(e,...o)},sn=bi(ui),fy=bi(hi);var ln=g(K()),vi=g(I());var xt;(function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"})(xt||(xt={}));var xi=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(l=t[c])&&(i=(a<3?l(i):a>3?l(e,o,i):l(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},te=class extends vi.FtLitElement{constructor(){super(...arguments),this.variant=xt.body1}render(){return this.element?sn`
|
|
110
110
|
<${an(this.element)}
|
|
111
111
|
part="text"
|
|
112
112
|
class="ft-typography ft-typography--${this.variant}">
|
|
@@ -114,7 +114,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
114
114
|
</${an(this.element)}>
|
|
115
115
|
`:sn`
|
|
116
116
|
<slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
|
|
117
|
-
`}};te.styles=[Ga,Va,ja,Ka,Za,qa,to,Ya,Xa,Qa,Ja,...ei];xi([(0,ln.property)()],te.prototype,"element",void 0);xi([(0,ln.property)()],te.prototype,"variant",void 0);(0,Si.customElement)("ft-typography")(te);var De=g($()),
|
|
117
|
+
`}};te.styles=[Ga,Va,ja,Ka,Za,qa,to,Ya,Xa,Qa,Ja,...ei];xi([(0,ln.property)()],te.prototype,"element",void 0);xi([(0,ln.property)()],te.prototype,"variant",void 0);(0,Si.customElement)("ft-typography")(te);var De=g($()),ce=g(K()),Gs=g(Ci()),bo=g(I());var Sn=g(I());var Mr=g(K()),Es=g(I());var $i=g($()),D=g(I());var Li=g($()),oe=g(I()),Ei=oe.FtCssVariableFactory.extend("--ft-ripple-color","",oe.designSystemVariables.colorContent),E={color:Ei,backgroundColor:oe.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ei),opacityContentOnSurfacePressed:oe.FtCssVariableFactory.external(oe.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:oe.FtCssVariableFactory.external(oe.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:oe.FtCssVariableFactory.external(oe.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:oe.FtCssVariableFactory.external(oe.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:oe.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},wi=oe.FtCssVariableFactory.extend("--ft-ripple-color","",oe.designSystemVariables.colorPrimary),Ai={color:wi,backgroundColor:oe.FtCssVariableFactory.extend("--ft-ripple-background-color","",wi)},Ri=oe.FtCssVariableFactory.extend("--ft-ripple-color","",oe.designSystemVariables.colorSecondary),Ni={color:Ri,backgroundColor:oe.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ri)},Ii=Li.css`
|
|
118
118
|
:host {
|
|
119
119
|
display: contents;
|
|
120
120
|
}
|
|
@@ -491,7 +491,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
491
491
|
<div class="ft-ripple--background"></div>
|
|
492
492
|
<div class="ft-ripple--effect"></div>
|
|
493
493
|
</div>
|
|
494
|
-
`}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=(...c)=>p=>{c.forEach(f=>window.addEventListener(f,this.endPress,{once:!0})),this.startPress(p)},n=o("mouseup","contextmenu"),a=o("touchend","touchcancel"),i=c=>{["Enter"," "].includes(c.key)&&o("keyup")(c)},l={passive:!0};e.addEventListener("mouseover",this.startHover,l),e.addEventListener("mousemove",this.moveRipple,l),e.addEventListener("mouseleave",this.endHover,l),e.addEventListener("mousedown",n,l),e.addEventListener("touchstart",a,l),e.addEventListener("touchmove",this.moveRipple,l),e.addEventListener("keydown",i,l),e.addEventListener("focus",this.startFocus,l),e.addEventListener("blur",this.endFocus,l),e.addEventListener("focusin",this.startFocus,l),e.addEventListener("focusout",this.endFocus,l),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,l),e.removeEventListener("mousemove",this.moveRipple,l),e.removeEventListener("mouseleave",this.endHover,l),e.removeEventListener("mousedown",n,l),e.removeEventListener("touchstart",a,l),e.removeEventListener("touchmove",this.moveRipple,l),e.removeEventListener("keydown",i,l),e.removeEventListener("focus",this.startFocus,l),e.removeEventListener("blur",this.endFocus,l),e.removeEventListener("focusin",this.startFocus,l),e.removeEventListener("focusout",this.endFocus,l),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()}};W.elementDefinitions={};W.styles=Ii;Ce([(0,ue.property)({type:Boolean})],W.prototype,"primary",void 0);Ce([(0,ue.property)({type:Boolean})],W.prototype,"secondary",void 0);Ce([(0,ue.property)({type:Boolean})],W.prototype,"unbounded",void 0);Ce([(0,ue.property)({type:Boolean})],W.prototype,"activated",void 0);Ce([(0,ue.property)({type:Boolean})],W.prototype,"selected",void 0);Ce([(0,ue.property)({type:Boolean})],W.prototype,"disabled",void 0);Ce([(0,ue.state)()],W.prototype,"hovered",void 0);Ce([(0,ue.state)()],W.prototype,"focused",void 0);Ce([(0,ue.state)()],W.prototype,"pressed",void 0);Ce([(0,ue.state)()],W.prototype,"rippling",void 0);Ce([(0,ue.state)()],W.prototype,"originX",void 0);Ce([(0,ue.state)()],W.prototype,"originY",void 0);Ce([(0,ue.query)(".ft-ripple")],W.prototype,"ripple",void 0);Ce([(0,ue.query)(".ft-ripple--effect")],W.prototype,"rippleEffect",void 0);(0,zi.customElement)("ft-ripple")(W);var ys=g(I());var hs=g($()),
|
|
494
|
+
`}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=(...c)=>p=>{c.forEach(f=>window.addEventListener(f,this.endPress,{once:!0})),this.startPress(p)},n=o("mouseup","contextmenu"),a=o("touchend","touchcancel"),i=c=>{["Enter"," "].includes(c.key)&&o("keyup")(c)},l={passive:!0};e.addEventListener("mouseover",this.startHover,l),e.addEventListener("mousemove",this.moveRipple,l),e.addEventListener("mouseleave",this.endHover,l),e.addEventListener("mousedown",n,l),e.addEventListener("touchstart",a,l),e.addEventListener("touchmove",this.moveRipple,l),e.addEventListener("keydown",i,l),e.addEventListener("focus",this.startFocus,l),e.addEventListener("blur",this.endFocus,l),e.addEventListener("focusin",this.startFocus,l),e.addEventListener("focusout",this.endFocus,l),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,l),e.removeEventListener("mousemove",this.moveRipple,l),e.removeEventListener("mouseleave",this.endHover,l),e.removeEventListener("mousedown",n,l),e.removeEventListener("touchstart",a,l),e.removeEventListener("touchmove",this.moveRipple,l),e.removeEventListener("keydown",i,l),e.removeEventListener("focus",this.startFocus,l),e.removeEventListener("blur",this.endFocus,l),e.removeEventListener("focusin",this.startFocus,l),e.removeEventListener("focusout",this.endFocus,l),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()}};W.elementDefinitions={};W.styles=Ii;Ce([(0,ue.property)({type:Boolean})],W.prototype,"primary",void 0);Ce([(0,ue.property)({type:Boolean})],W.prototype,"secondary",void 0);Ce([(0,ue.property)({type:Boolean})],W.prototype,"unbounded",void 0);Ce([(0,ue.property)({type:Boolean})],W.prototype,"activated",void 0);Ce([(0,ue.property)({type:Boolean})],W.prototype,"selected",void 0);Ce([(0,ue.property)({type:Boolean})],W.prototype,"disabled",void 0);Ce([(0,ue.state)()],W.prototype,"hovered",void 0);Ce([(0,ue.state)()],W.prototype,"focused",void 0);Ce([(0,ue.state)()],W.prototype,"pressed",void 0);Ce([(0,ue.state)()],W.prototype,"rippling",void 0);Ce([(0,ue.state)()],W.prototype,"originX",void 0);Ce([(0,ue.state)()],W.prototype,"originY",void 0);Ce([(0,ue.query)(".ft-ripple")],W.prototype,"ripple",void 0);Ce([(0,ue.query)(".ft-ripple--effect")],W.prototype,"rippleEffect",void 0);(0,zi.customElement)("ft-ripple")(W);var ys=g(I());var hs=g($()),ae=g(K()),$r=g(I());var Hi=g($()),it=g(I()),hr={distance:it.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:it.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:it.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:it.FtCssVariableFactory.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:it.FtCssVariableFactory.external(it.designSystemVariables.borderRadiusS,"Design system"),maxWidth:it.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},Gi=Hi.css`
|
|
495
495
|
.ft-tooltip--container {
|
|
496
496
|
display: block;
|
|
497
497
|
}
|
|
@@ -538,7 +538,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
538
538
|
</div>
|
|
539
539
|
</div>
|
|
540
540
|
</div>
|
|
541
|
-
`}updated(e){e.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(o=>e.has(o))&&this.visible&&this.positionTooltip()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(o=>o.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",us(this.slottedElement,this.tooltip,this.position).then(({x:e,y:o})=>{this.tooltip&&(this.tooltip.style.left=`${e}px`,this.tooltip.style.top=`${o}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout(()=>window.addEventListener("touchstart",e=>{e.composedPath().includes(this.container)||this.onOut()},{once:!0}),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(e,o){return Math.max(e,Math.min(0,-o))}};J.elementDefinitions={"ft-typography":te};J.styles=Gi;we([(0,ne.property)()],J.prototype,"text",void 0);we([(0,ne.property)({type:Boolean})],J.prototype,"manual",void 0);we([(0,ne.property)({type:Boolean})],J.prototype,"inline",void 0);we([(0,ne.property)({type:Number})],J.prototype,"delay",void 0);we([(0,ne.property)()],J.prototype,"position",void 0);we([(0,ne.queryAssignedNodes)()],J.prototype,"slotNodes",void 0);we([(0,ne.query)(".ft-tooltip--container")],J.prototype,"container",void 0);we([(0,ne.query)(".ft-tooltip")],J.prototype,"tooltip",void 0);we([(0,ne.query)(".ft-tooltip--content")],J.prototype,"tooltipContent",void 0);we([(0,ne.state)()],J.prototype,"visible",void 0);we([(0,ne.eventOptions)({passive:!0})],J.prototype,"onTouch",null);we([(0,ne.eventOptions)({passive:!0})],J.prototype,"onHover",null);we([(0,ne.eventOptions)({passive:!0})],J.prototype,"onOut",null);we([(0,ne.eventOptions)({passive:!0})],J.prototype,"onClick",null);(0,ys.customElement)("ft-tooltip")(J);var vs=g(I());var Fr=g($()),Gt=g(K()),bs=g(I()),xs=g(gs());var fo;(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=""})(fo||(fo={}));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 Om=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 Cm={[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 et;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(et||(et={}));var uo=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(l=t[c])&&(i=(a<3?l(i):a>3?l(e,o,i):l(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},Ae=class extends bs.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=Fr.nothing}render(){let e=this.variant&&Object.values(et).includes(this.variant)?this.variant:et.fluid_topics,o=e!==et.material||!!this.value;return Fr.html`
|
|
541
|
+
`}updated(e){e.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(o=>e.has(o))&&this.visible&&this.positionTooltip()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(o=>o.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",us(this.slottedElement,this.tooltip,this.position).then(({x:e,y:o})=>{this.tooltip&&(this.tooltip.style.left=`${e}px`,this.tooltip.style.top=`${o}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout(()=>window.addEventListener("touchstart",e=>{e.composedPath().includes(this.container)||this.onOut()},{once:!0}),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(e,o){return Math.max(e,Math.min(0,-o))}};J.elementDefinitions={"ft-typography":te};J.styles=Gi;we([(0,ae.property)()],J.prototype,"text",void 0);we([(0,ae.property)({type:Boolean})],J.prototype,"manual",void 0);we([(0,ae.property)({type:Boolean})],J.prototype,"inline",void 0);we([(0,ae.property)({type:Number})],J.prototype,"delay",void 0);we([(0,ae.property)()],J.prototype,"position",void 0);we([(0,ae.queryAssignedNodes)()],J.prototype,"slotNodes",void 0);we([(0,ae.query)(".ft-tooltip--container")],J.prototype,"container",void 0);we([(0,ae.query)(".ft-tooltip")],J.prototype,"tooltip",void 0);we([(0,ae.query)(".ft-tooltip--content")],J.prototype,"tooltipContent",void 0);we([(0,ae.state)()],J.prototype,"visible",void 0);we([(0,ae.eventOptions)({passive:!0})],J.prototype,"onTouch",null);we([(0,ae.eventOptions)({passive:!0})],J.prototype,"onHover",null);we([(0,ae.eventOptions)({passive:!0})],J.prototype,"onOut",null);we([(0,ae.eventOptions)({passive:!0})],J.prototype,"onClick",null);(0,ys.customElement)("ft-tooltip")(J);var vs=g(I());var Fr=g($()),Gt=g(K()),bs=g(I()),xs=g(gs());var fo;(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=""})(fo||(fo={}));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 Om=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 Cm={[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 et;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(et||(et={}));var uo=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(l=t[c])&&(i=(a<3?l(i):a>3?l(e,o,i):l(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},Ae=class extends bs.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=Fr.nothing}render(){let e=this.variant&&Object.values(et).includes(this.variant)?this.variant:et.fluid_topics,o=e!==et.material||!!this.value;return Fr.html`
|
|
542
542
|
<i class="ft-icon ft-icon--${e}" part="icon icon-${e}">
|
|
543
543
|
${(0,xs.unsafeHTML)(this.resolvedIcon)}
|
|
544
544
|
<slot ?hidden=${o}></slot>
|
|
@@ -550,7 +550,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
550
550
|
<div></div>
|
|
551
551
|
<div></div>
|
|
552
552
|
</div>
|
|
553
|
-
`}};Vt.styles=Pi;(0,Cs.customElement)("ft-loader")(Vt);var Ot=g($()),vn=g(ur()),
|
|
553
|
+
`}};Vt.styles=Pi;(0,Cs.customElement)("ft-loader")(Vt);var Ot=g($()),vn=g(ur()),ie=g(K()),he=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(l=t[c])&&(i=(a<3?l(i):a>3?l(e,o,i):l(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},q=class extends(0,Ct.toFtFormComponent)(Ct.FtLitElement,"button"){get buttonClasses(){return{}}get typographyVariant(){return""}constructor(){super(),this.href=void 0,this.target=void 0,this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.ariaLabel=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.addEventListener("click",e=>{var o;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((o=this.form)===null||o===void 0||o.requestSubmit())})}render(){var e,o,n;let a=Ot.html`
|
|
554
554
|
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
555
555
|
<ft-typography part="label"
|
|
556
556
|
variant=${this.typographyVariant}
|
|
@@ -587,7 +587,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
587
587
|
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
|
|
588
588
|
`:Ot.html`
|
|
589
589
|
<slot part="icon" name="icon"></slot>
|
|
590
|
-
`}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}focusWithoutTooltip(){var e;this.setTooltipManual(!0),(e=this.button)===null||e===void 0||e.focus(),this.setTooltipManual(!1)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}getLabel(){return this.label||this.textContent}get textContent(){return(0,Ct.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};q.elementDefinitions={"ft-ripple":W,"ft-tooltip":J,"ft-typography":te,"ft-icon":Ae,"ft-loader":Vt};he([(0,
|
|
590
|
+
`}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}focusWithoutTooltip(){var e;this.setTooltipManual(!0),(e=this.button)===null||e===void 0||e.focus(),this.setTooltipManual(!1)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}getLabel(){return this.label||this.textContent}get textContent(){return(0,Ct.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};q.elementDefinitions={"ft-ripple":W,"ft-tooltip":J,"ft-typography":te,"ft-icon":Ae,"ft-loader":Vt};he([(0,ie.property)()],q.prototype,"href",void 0);he([(0,ie.property)()],q.prototype,"target",void 0);he([(0,ie.property)({type:String,reflect:!0})],q.prototype,"role",void 0);he([(0,ie.property)()],q.prototype,"type",void 0);he([(0,ie.property)({type:Boolean})],q.prototype,"disabled",void 0);he([(0,ie.property)()],q.prototype,"label",void 0);he([(0,ie.property)()],q.prototype,"icon",void 0);he([(0,ie.property)()],q.prototype,"iconVariant",void 0);he([(0,ie.property)({type:Boolean})],q.prototype,"trailingIcon",void 0);he([(0,ie.property)({type:Boolean})],q.prototype,"loading",void 0);he([(0,ie.property)({attribute:"aria-label"})],q.prototype,"ariaLabel",void 0);he([(0,ie.property)()],q.prototype,"tooltipPosition",void 0);he([(0,ie.property)({type:Boolean})],q.prototype,"hideTooltip",void 0);he([(0,ie.property)({type:Boolean})],q.prototype,"forceTooltip",void 0);he([(0,ie.query)(".ft-button")],q.prototype,"button",void 0);he([(0,ie.query)(".ft-button--label slot")],q.prototype,"slottedContent",void 0);he([(0,ie.query)("[part=tooltip]")],q.prototype,"tooltip",void 0);var ho=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(l=t[c])&&(i=(a<3?l(i):a>3?l(e,o,i):l(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},xe=class extends q{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}};xe.styles=[Es.safariEllipsisFix,Fi];ho([(0,Mr.property)({type:Boolean})],xe.prototype,"primary",void 0);ho([(0,Mr.property)({type:Boolean})],xe.prototype,"outlined",void 0);ho([(0,Mr.property)({type:Boolean})],xe.prototype,"dense",void 0);ho([(0,Mr.property)({type:Boolean})],xe.prototype,"round",void 0);var Ur=g(K());var mo=g(I());var ws=g($()),C=g(I());var As=[ws.css`
|
|
591
591
|
:host {
|
|
592
592
|
display: inline-block;
|
|
593
593
|
max-width: 100%;
|
|
@@ -1247,7 +1247,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1247
1247
|
.ft-radio ft-typography {
|
|
1248
1248
|
padding-right: 2px;
|
|
1249
1249
|
}
|
|
1250
|
-
`;var ut=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(l=t[c])&&(i=(a<3?l(i):a>3?l(e,o,i):l(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},go=class extends CustomEvent{constructor(e,o){super("change",{detail:{value:e,checked:o},bubbles:!0,composed:!0})}},
|
|
1250
|
+
`;var ut=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(l=t[c])&&(i=(a<3?l(i):a>3?l(e,o,i):l(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},go=class extends CustomEvent{constructor(e,o){super("change",{detail:{value:e,checked:o},bubbles:!0,composed:!0})}},se=class extends Bs.FtLitElement{constructor(){super(...arguments),this.value="",this.name="",this.checked=!1,this.ariaChecked="false",this.disabled=!1,this.role="radio"}render(){let e={"ft-radio":!0,"ft-radio--checked":this.checked,"ft-radio--disabled":this.disabled};return Ds.html`
|
|
1251
1251
|
<div class="${(0,$s.classMap)(e)}">
|
|
1252
1252
|
<div class="ft-radio--box-container">
|
|
1253
1253
|
<ft-ripple
|
|
@@ -1272,7 +1272,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1272
1272
|
</ft-typography>
|
|
1273
1273
|
</label>
|
|
1274
1274
|
</div>
|
|
1275
|
-
`}update(e){super.update(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.dispatchEvent(new go(this.value,this.checked))}contentAvailableCallback(e){var o;super.contentAvailableCallback(e),(o=this.ripple)===null||o===void 0||o.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new go(this.value,this.checked))}setInputTabIndex(e){this.input&&(this.input.tabIndex=e)}focus(){var e;(e=this.input)===null||e===void 0||e.focus()}};
|
|
1275
|
+
`}update(e){super.update(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.dispatchEvent(new go(this.value,this.checked))}contentAvailableCallback(e){var o;super.contentAvailableCallback(e),(o=this.ripple)===null||o===void 0||o.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new go(this.value,this.checked))}setInputTabIndex(e){this.input&&(this.input.tabIndex=e)}focus(){var e;(e=this.input)===null||e===void 0||e.focus()}};se.elementDefinitions={"ft-ripple":W,"ft-typography":te};se.styles=_s;ut([(0,ze.property)()],se.prototype,"value",void 0);ut([(0,ze.property)()],se.prototype,"name",void 0);ut([(0,ze.property)({type:Boolean,reflect:!0})],se.prototype,"checked",void 0);ut([(0,ze.property)({attribute:"aria-checked",reflect:!0})],se.prototype,"ariaChecked",void 0);ut([(0,ze.property)({type:Boolean})],se.prototype,"disabled",void 0);ut([(0,ze.property)({reflect:!0,attribute:"role"})],se.prototype,"role",void 0);ut([(0,ze.query)(".ft-radio")],se.prototype,"container",void 0);ut([(0,ze.query)("ft-ripple")],se.prototype,"ripple",void 0);ut([(0,ze.query)("input")],se.prototype,"input",void 0);var Us=g(I()),ht=g(K()),Ws=g($());var Fs=g($());var Ms=Fs.css`
|
|
1276
1276
|
:host {
|
|
1277
1277
|
display: block;
|
|
1278
1278
|
}
|
|
@@ -1285,7 +1285,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1285
1285
|
@change=${this.onChange}
|
|
1286
1286
|
@keydown=${this.onKeyDown}
|
|
1287
1287
|
></slot>
|
|
1288
|
-
`}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this.onFocus),this.addEventListener("focusout",this.onFocusOut)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this.onFocus),this.removeEventListener("focusout",this.onFocusOut)}onSlotChange(){this.radioButtons.forEach(e=>e.name=this.name)}contentAvailableCallback(e){super.contentAvailableCallback(e),this.radioButtons.forEach(o=>o.setInputTabIndex(-1)),this.resolveCurrentSelectedIndex()}onChange(e){e.stopPropagation(),this.radioButtons.forEach(o=>o.checked=e.detail.value===o.value),this.dispatchEvent(new CustomEvent("change",{detail:e.detail.value})),this.resolveCurrentSelectedIndex()}onKeyDown(e){let o=!1;switch(e.key){case"ArrowUp":case"ArrowLeft":{o=!0;let n=this.currentSelectedIndex-1;this.radioButtons[n<0?this.radioButtons.length-1:n].select(),this.radioButtons[n<0?this.radioButtons.length-1:n].focus();break}case"ArrowDown":case"ArrowRight":{o=!0;let n=this.currentSelectedIndex+1;this.radioButtons[n>this.radioButtons.length-1?0:n].select(),this.radioButtons[n>this.radioButtons.length-1?0:n].focus();break}case"Enter":this.radioButtons[this.currentSelectedIndex].select()}o&&(e.stopPropagation(),e.preventDefault())}resolveCurrentSelectedIndex(){let e=this.radioButtons.findIndex(o=>o.checked);e==-1?(this.currentSelectedIndex=0,this.radioButtons[0].select()):this.currentSelectedIndex=e}focusCurrentChecked(){this.radioButtons[this.currentSelectedIndex].focus()}};Ne.elementDefinitions={};Ne.styles=Ms;br([(0,ht.property)()],Ne.prototype,"name",void 0);br([(0,ht.property)({reflect:!0,attribute:"role"})],Ne.prototype,"role",void 0);br([(0,ht.property)({reflect:!0})],Ne.prototype,"tabIndex",void 0);br([(0,ht.property)({reflect:!0,attribute:"aria-labelledby"})],Ne.prototype,"ariaLabelledBy",void 0);br([(0,ht.queryAssignedElements)()],Ne.prototype,"assignedElements",void 0);br([(0,ht.state)()],Ne.prototype,"currentSelectedIndex",void 0);(0,On.customElement)("ft-radio")(
|
|
1288
|
+
`}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this.onFocus),this.addEventListener("focusout",this.onFocusOut)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this.onFocus),this.removeEventListener("focusout",this.onFocusOut)}onSlotChange(){this.radioButtons.forEach(e=>e.name=this.name)}contentAvailableCallback(e){super.contentAvailableCallback(e),this.radioButtons.forEach(o=>o.setInputTabIndex(-1)),this.resolveCurrentSelectedIndex()}onChange(e){e.stopPropagation(),this.radioButtons.forEach(o=>o.checked=e.detail.value===o.value),this.dispatchEvent(new CustomEvent("change",{detail:e.detail.value})),this.resolveCurrentSelectedIndex()}onKeyDown(e){let o=!1;switch(e.key){case"ArrowUp":case"ArrowLeft":{o=!0;let n=this.currentSelectedIndex-1;this.radioButtons[n<0?this.radioButtons.length-1:n].select(),this.radioButtons[n<0?this.radioButtons.length-1:n].focus();break}case"ArrowDown":case"ArrowRight":{o=!0;let n=this.currentSelectedIndex+1;this.radioButtons[n>this.radioButtons.length-1?0:n].select(),this.radioButtons[n>this.radioButtons.length-1?0:n].focus();break}case"Enter":this.radioButtons[this.currentSelectedIndex].select()}o&&(e.stopPropagation(),e.preventDefault())}resolveCurrentSelectedIndex(){let e=this.radioButtons.findIndex(o=>o.checked);e==-1?(this.currentSelectedIndex=0,this.radioButtons[0].select()):this.currentSelectedIndex=e}focusCurrentChecked(){this.radioButtons[this.currentSelectedIndex].focus()}};Ne.elementDefinitions={};Ne.styles=Ms;br([(0,ht.property)()],Ne.prototype,"name",void 0);br([(0,ht.property)({reflect:!0,attribute:"role"})],Ne.prototype,"role",void 0);br([(0,ht.property)({reflect:!0})],Ne.prototype,"tabIndex",void 0);br([(0,ht.property)({reflect:!0,attribute:"aria-labelledby"})],Ne.prototype,"ariaLabelledBy",void 0);br([(0,ht.queryAssignedElements)()],Ne.prototype,"assignedElements",void 0);br([(0,ht.state)()],Ne.prototype,"currentSelectedIndex",void 0);(0,On.customElement)("ft-radio")(se);(0,On.customElement)("ft-radio-group")(Ne);var zs=g($()),H=g(I());var Wr={buttonMoreColor:H.FtCssVariableFactory.extend("--ft-filter-level-button-more-color","",H.designSystemVariables.colorOnSurface),borderRadiusM:H.FtCssVariableFactory.external(H.designSystemVariables.borderRadiusM,"Design system"),colorOutline:H.FtCssVariableFactory.external(H.designSystemVariables.colorOutline,"Design system"),colorOnSurface:H.FtCssVariableFactory.external(H.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:H.FtCssVariableFactory.external(H.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:H.FtCssVariableFactory.external(H.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:H.FtCssVariableFactory.external(H.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:H.FtCssVariableFactory.external(H.designSystemVariables.colorOnPrimary,"Design system"),fontFamily:H.FtCssVariableFactory.external(Pe.fontFamily,"Body2 typography"),fontSize:H.FtCssVariableFactory.external(Pe.fontSize,"Body2 typography"),fontWeight:H.FtCssVariableFactory.external(Pe.fontWeight,"Body2 typography"),letterSpacing:H.FtCssVariableFactory.external(Pe.letterSpacing,"Body2 typography"),lineHeight:H.FtCssVariableFactory.external(Pe.lineHeight,"Body2 typography"),textTransform:H.FtCssVariableFactory.external(Pe.textTransform,"Body2 typography")},Hs=zs.css`
|
|
1289
1289
|
.ft-filter-level--container {
|
|
1290
1290
|
display: flex;
|
|
1291
1291
|
flex-direction: column;
|
|
@@ -1421,7 +1421,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1421
1421
|
@change=${o=>this.optionsChanged(o,e)}>
|
|
1422
1422
|
${e.renderOption?e.renderOption:e.label}${this.displayCount?` (${e.count})`:""}
|
|
1423
1423
|
</ft-radio>
|
|
1424
|
-
`}onRadioKeyDown(e,o){e.stopPropagation(),(e.key===" "||e.key==="Enter")&&(e.preventDefault(),this.optionsChanged(e,o))}optionsChanged(e,o){e.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:o}))}displayLevel(e){this.dispatchEvent(new CustomEvent("display-level",{detail:e}))}};re.elementDefinitions={"ft-button":xe,"ft-ripple":W,"ft-typography":te,"ft-checkbox":ve,"ft-icon":Ae,"ft-radio":
|
|
1424
|
+
`}onRadioKeyDown(e,o){e.stopPropagation(),(e.key===" "||e.key==="Enter")&&(e.preventDefault(),this.optionsChanged(e,o))}optionsChanged(e,o){e.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:o}))}displayLevel(e){this.dispatchEvent(new CustomEvent("display-level",{detail:e}))}};re.elementDefinitions={"ft-button":xe,"ft-ripple":W,"ft-typography":te,"ft-checkbox":ve,"ft-icon":Ae,"ft-radio":se};re.styles=Hs;Se([(0,ce.property)({type:String})],re.prototype,"filterId",void 0);Se([(0,ce.property)({type:Object})],re.prototype,"parent",void 0);Se([(0,ce.property)({type:Array})],re.prototype,"options",void 0);Se([(0,ce.property)({type:Boolean})],re.prototype,"multivalued",void 0);Se([(0,ce.property)({type:Boolean})],re.prototype,"disabled",void 0);Se([(0,ce.property)({type:Boolean})],re.prototype,"hideSelectedOptions",void 0);Se([(0,ce.property)({type:Boolean})],re.prototype,"displayCount",void 0);Se([(0,ce.property)({type:Boolean})],re.prototype,"preventNavigation",void 0);Se([(0,ce.property)({type:String})],re.prototype,"filter",void 0);Se([(0,ce.property)({type:String})],re.prototype,"moreValuesButtonLabel",void 0);Se([(0,ce.property)({type:String})],re.prototype,"noValuesLabel",void 0);Se([(0,ce.property)({type:Number})],re.prototype,"displayedValuesLimit",void 0);Se([(0,ce.query)(".ft-filter-level--container")],re.prototype,"container",void 0);Se([(0,ce.state)()],re.prototype,"radios",void 0);Se([(0,ce.state)()],re.prototype,"displayedPages",void 0);var qs=g(I());var Ks=g($()),Be=g(K()),Kt=g(I());var Zs=g(ur());var Vs=g($()),He=g(I());var wt={buttonsColor:He.FtCssVariableFactory.extend("--ft-snap-scroll-buttons-color","",He.designSystemVariables.colorPrimary),buttonsZIndex:He.FtCssVariableFactory.create("--ft-snap-scroll-buttons-z-index","","NUMBER","1"),gap:He.FtCssVariableFactory.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:He.FtCssVariableFactory.external(He.designSystemVariables.colorSurface,"Design system")},js=Vs.css`
|
|
1425
1425
|
.ft-snap-scroll {
|
|
1426
1426
|
box-sizing: border-box;
|
|
1427
1427
|
position: relative;
|
|
@@ -1546,7 +1546,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1546
1546
|
.ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
|
|
1547
1547
|
background-color: ${wt.colorSurface};
|
|
1548
1548
|
}
|
|
1549
|
-
`;var tt=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(l=t[c])&&(i=(a<3?l(i):a>3?l(e,o,i):l(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},Cn=class extends CustomEvent{constructor(e,o){super("current-element-change",{detail:{index:e,element:o}})}},
|
|
1549
|
+
`;var tt=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(l=t[c])&&(i=(a<3?l(i):a>3?l(e,o,i):l(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},Cn=class extends CustomEvent{constructor(e,o){super("current-element-change",{detail:{index:e,element:o}})}},de=class extends Kt.FtLitElement{constructor(){super(...arguments),this.horizontal=!1,this.hideScrollbar=!1,this.controls=!1,this.limitSize=!1,this.elements=[],this.currentElement=0,this.withScroll=!1,this.startReached=!0,this.endReached=!0,this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight",this.updateScrollCallback=()=>this.onScroll(),this.resizeObserver=new ResizeObserver(()=>this.scheduleUpdateScroll()),this.scrollDebouncer=new Kt.Debouncer(200),this.updateScrollDebouncer=new Kt.Debouncer(100)}scrollToIndex(e){this.scrollToElement(this.elements[e])}scrollIndexIntoView(e){let o=this.elements[e];if(o){let n=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,a=this.contentSlot[this.scrollAttribute]+this.prevSize;(o[this.offsetAttribute]<a||o[this.offsetAttribute]+o[this.sizeAttribute]>n)&&this.scrollToElement(o)}}previous(){this.scrollToElement(this.elements[Math.max(0,this.closestIndexFromStart()-1)])}next(){this.scrollToElement(this.elements[Math.min(this.closestIndexFromStart()+1,this.elements.length-1)])}render(){let e=(0,Zs.classMap)({"ft-snap-scroll":!0,"ft-snap-scroll--horizontal":this.horizontal,"ft-snap-scroll--vertical":!this.horizontal,"ft-snap-scroll--hide-scrollbar":this.hideScrollbar,"ft-snap-scroll--limit-size":this.limitSize,"ft-snap-scroll--safari-fix":Kt.isSafari}),o=this.controls&&this.withScroll;return Ks.html`
|
|
1550
1550
|
<div part="container" class="${e}">
|
|
1551
1551
|
<ft-button
|
|
1552
1552
|
class="ft-snap-scroll--previous"
|
|
@@ -1570,7 +1570,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1570
1570
|
@click=${this.next}
|
|
1571
1571
|
></ft-button>
|
|
1572
1572
|
</div>
|
|
1573
|
-
`}update(e){super.update(e),e.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),e.has("currentElement")&&this.dispatchEvent(new Cn(this.currentElement,this.elements[this.currentElement]))}contentAvailableCallback(e){var o;super.contentAvailableCallback(e),this.contentSlot&&this.listenedContainer!==this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,(o=this.listenedContainer)===null||o===void 0||o.addEventListener("scroll",this.updateScrollCallback))}onScroll(){this.scrollDebouncer.run(()=>this.snap()),this.scheduleUpdateScroll()}snap(){let e=this.closestElementFromStart();if(e!=null){let o=this.getDistanceFromStart(e);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<o&&(e=this.lastElement),this.scrollToElement(e)}}scrollToElement(e){var o,n;e&&(this.horizontal?(o=this.contentSlot)===null||o===void 0||o.scrollTo({left:this.getOffset(e)-this.controlsSize,behavior:"smooth"}):(n=this.contentSlot)===null||n===void 0||n.scrollTo({top:this.getOffset(e)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(e))}onSlotChange(){var e,o;this.elements=(o=(e=this.contentSlot)===null||e===void 0?void 0:e.assignedElements().map(n=>n))!==null&&o!==void 0?o:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let e=-1;for(let o=0;o<this.elements.length;o++)(e<0||this.getDistanceFromStart(this.elements[o])<this.getDistanceFromStart(this.elements[e]))&&(e=o);return e}scheduleUpdateScroll(){this.updateScrollDebouncer.run(()=>this.updateScroll())}updateScroll(){this.contentSlot!=null?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=this.contentSlot[this.scrollAttribute]===0,this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let e=this.elements[0];return e?e[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(e){return e[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(e){let o=e===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(e)-this.contentSlot[this.scrollAttribute]-o)}};
|
|
1573
|
+
`}update(e){super.update(e),e.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),e.has("currentElement")&&this.dispatchEvent(new Cn(this.currentElement,this.elements[this.currentElement]))}contentAvailableCallback(e){var o;super.contentAvailableCallback(e),this.contentSlot&&this.listenedContainer!==this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,(o=this.listenedContainer)===null||o===void 0||o.addEventListener("scroll",this.updateScrollCallback))}onScroll(){this.scrollDebouncer.run(()=>this.snap()),this.scheduleUpdateScroll()}snap(){let e=this.closestElementFromStart();if(e!=null){let o=this.getDistanceFromStart(e);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<o&&(e=this.lastElement),this.scrollToElement(e)}}scrollToElement(e){var o,n;e&&(this.horizontal?(o=this.contentSlot)===null||o===void 0||o.scrollTo({left:this.getOffset(e)-this.controlsSize,behavior:"smooth"}):(n=this.contentSlot)===null||n===void 0||n.scrollTo({top:this.getOffset(e)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(e))}onSlotChange(){var e,o;this.elements=(o=(e=this.contentSlot)===null||e===void 0?void 0:e.assignedElements().map(n=>n))!==null&&o!==void 0?o:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let e=-1;for(let o=0;o<this.elements.length;o++)(e<0||this.getDistanceFromStart(this.elements[o])<this.getDistanceFromStart(this.elements[e]))&&(e=o);return e}scheduleUpdateScroll(){this.updateScrollDebouncer.run(()=>this.updateScroll())}updateScroll(){this.contentSlot!=null?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=this.contentSlot[this.scrollAttribute]===0,this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let e=this.elements[0];return e?e[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(e){return e[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(e){let o=e===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(e)-this.contentSlot[this.scrollAttribute]-o)}};de.elementDefinitions={"ft-button":xe};de.styles=js;tt([(0,Be.property)({type:Boolean})],de.prototype,"horizontal",void 0);tt([(0,Be.property)({type:Boolean})],de.prototype,"hideScrollbar",void 0);tt([(0,Be.property)({type:Boolean})],de.prototype,"controls",void 0);tt([(0,Be.property)({type:Boolean})],de.prototype,"limitSize",void 0);tt([(0,Be.state)()],de.prototype,"elements",void 0);tt([(0,Be.state)()],de.prototype,"currentElement",void 0);tt([(0,Be.state)()],de.prototype,"withScroll",void 0);tt([(0,Be.state)()],de.prototype,"startReached",void 0);tt([(0,Be.state)()],de.prototype,"endReached",void 0);tt([(0,Be.query)(".ft-snap-scroll--content")],de.prototype,"contentSlot",void 0);(0,qs.customElement)("ft-snap-scroll")(de);var Ys=g($()),j=g(I());var Le={colorOutline:j.FtCssVariableFactory.external(j.designSystemVariables.colorOutline,"Design system"),colorOnSurface:j.FtCssVariableFactory.external(j.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:j.FtCssVariableFactory.external(j.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorPrimary:j.FtCssVariableFactory.external(j.designSystemVariables.colorPrimary,"Design system"),colorSurface:j.FtCssVariableFactory.external(j.designSystemVariables.colorSurface,"Design system"),transitionDuration:j.FtCssVariableFactory.external(j.designSystemVariables.transitionDuration,"Design system"),transitionTimingFunction:j.FtCssVariableFactory.external(j.designSystemVariables.transitionTimingFunction,"Design system"),labelColor:j.FtCssVariableFactory.extend("--ft-filter-label-color","",j.designSystemVariables.colorOnSurface),labelFontSize:j.FtCssVariableFactory.extend("--ft-filter-label-font-size","",R.fontSize,"16px")},Xs=[to,j.noTextInputDefaultClearButton,Ys.css`
|
|
1574
1574
|
:host {
|
|
1575
1575
|
display: flex;
|
|
1576
1576
|
max-height: 100%;
|
|
@@ -1764,7 +1764,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1764
1764
|
.exportpartsPrefixes=${["values","available-values"]}
|
|
1765
1765
|
noValuesLabel="${this.noValuesLabel}"
|
|
1766
1766
|
></ft-filter-level>
|
|
1767
|
-
`}goBack(e){this.slideOut=e.detail.value}onDisplayLevel(e){this.displayedLevels.push(e.detail.value),this.slideIn=e.detail.value}clear(){if(this.flatOptions.forEach(e=>e.selected=!1),this.displayedLevels.length>0){let e=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[e],this.slideOut=e}this.optionsChanged()}onChange(e){var o;e.stopPropagation();let n=this.flatOptions.find(i=>i.value===e.detail.value);n.selected=!n.selected;let a=i=>{var l;i!==n&&(i.selected=!1),(l=i.subOptions)===null||l===void 0||l.forEach(a)};this.multivalued?(o=n.subOptions)===null||o===void 0||o.forEach(a):this.options.forEach(a),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run(()=>{var e;this.sendEventIfValuesChanged(),this.requestUpdate(),(e=this.levels)===null||e===void 0||e.forEach(o=>o.requestUpdate())})}sendEventIfValuesChanged(){let e=this.selectedValues;(0,Me.deepEqual)(this.lastDispatchedValues,e)||(this.dispatchEvent(new En(e)),this.lastDispatchedValues=e)}updateOptionsFromSlot(e){e.stopPropagation(),this.options=this.slotElement.assignedElements().map(o=>o),this.optionsChanged()}onFilterChange(){var e,o;this.filter=(o=(e=this.filterInput)===null||e===void 0?void 0:e.value)!==null&&o!==void 0?o:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}};U.elementDefinitions={"ft-button":xe,"ft-filter-level":re,"ft-snap-scroll":
|
|
1767
|
+
`}goBack(e){this.slideOut=e.detail.value}onDisplayLevel(e){this.displayedLevels.push(e.detail.value),this.slideIn=e.detail.value}clear(){if(this.flatOptions.forEach(e=>e.selected=!1),this.displayedLevels.length>0){let e=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[e],this.slideOut=e}this.optionsChanged()}onChange(e){var o;e.stopPropagation();let n=this.flatOptions.find(i=>i.value===e.detail.value);n.selected=!n.selected;let a=i=>{var l;i!==n&&(i.selected=!1),(l=i.subOptions)===null||l===void 0||l.forEach(a)};this.multivalued?(o=n.subOptions)===null||o===void 0||o.forEach(a):this.options.forEach(a),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run(()=>{var e;this.sendEventIfValuesChanged(),this.requestUpdate(),(e=this.levels)===null||e===void 0||e.forEach(o=>o.requestUpdate())})}sendEventIfValuesChanged(){let e=this.selectedValues;(0,Me.deepEqual)(this.lastDispatchedValues,e)||(this.dispatchEvent(new En(e)),this.lastDispatchedValues=e)}updateOptionsFromSlot(e){e.stopPropagation(),this.options=this.slotElement.assignedElements().map(o=>o),this.optionsChanged()}onFilterChange(){var e,o;this.filter=(o=(e=this.filterInput)===null||e===void 0?void 0:e.value)!==null&&o!==void 0?o:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}};U.elementDefinitions={"ft-button":xe,"ft-filter-level":re,"ft-snap-scroll":de,"ft-typography":te};U.styles=Xs;Y([(0,G.property)({type:String})],U.prototype,"id",void 0);Y([(0,G.property)({type:String})],U.prototype,"label",void 0);Y([(0,G.property)({type:String})],U.prototype,"filterPlaceHolder",void 0);Y([(0,G.property)({type:String})],U.prototype,"clearButtonLabel",void 0);Y([(0,G.property)({type:String})],U.prototype,"moreValuesButtonLabel",void 0);Y([(0,G.property)({type:String})],U.prototype,"noValuesLabel",void 0);Y([(0,Me.jsonProperty)([])],U.prototype,"options",void 0);Y([(0,G.property)({type:Boolean})],U.prototype,"multivalued",void 0);Y([(0,G.property)({type:Boolean})],U.prototype,"disabled",void 0);Y([(0,G.property)({type:Boolean})],U.prototype,"raiseSelectedOptions",void 0);Y([(0,G.property)({type:Boolean})],U.prototype,"displayCount",void 0);Y([(0,G.property)({type:Number})],U.prototype,"displayedValuesLimit",void 0);Y([(0,G.property)({type:Boolean})],U.prototype,"hideClearButton",void 0);Y([(0,G.query)(".ft-filter--slot")],U.prototype,"slotElement",void 0);Y([(0,G.query)(".ft-filter--container")],U.prototype,"container",void 0);Y([(0,G.query)(".ft-filter--values")],U.prototype,"valuesContainer",void 0);Y([(0,G.query)(".ft-filter--levels")],U.prototype,"levelsContainer",void 0);Y([(0,G.state)()],U.prototype,"lastLevelHasHiddenvalues",void 0);Y([(0,G.query)(".ft-filter--filter input")],U.prototype,"filterInput",void 0);Y([(0,G.queryAll)(".ft-filter--levels ft-filter-level")],U.prototype,"levels",void 0);Y([(0,G.state)()],U.prototype,"withScroll",void 0);Y([(0,G.state)()],U.prototype,"filter",void 0);Y([(0,G.state)()],U.prototype,"slideIn",void 0);Y([(0,G.state)()],U.prototype,"slideOut",void 0);var xo=g(I()),qt=g(K()),Qs=g($()),xr=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(l=t[c])&&(i=(a<3?l(i):a>3?l(e,o,i):l(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},Ge=class extends xo.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return Qs.html`
|
|
1768
1768
|
<slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
|
|
1769
1769
|
`}updateSubOptionsFromSlot(e){e.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map(o=>o)}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};Ge.elementDefinitions={};xr([(0,qt.property)({type:String})],Ge.prototype,"label",void 0);xr([(0,qt.property)({type:Object,converter:t=>t})],Ge.prototype,"value",void 0);xr([(0,qt.property)({type:Boolean,reflect:!0})],Ge.prototype,"selected",void 0);xr([(0,qt.property)({type:Object})],Ge.prototype,"subOptions",void 0);xr([(0,xo.jsonProperty)({})],Ge.prototype,"renderOption",void 0);xr([(0,qt.query)(".ft-filter-option--slot")],Ge.prototype,"slotElement",void 0);(0,wn.customElement)("ft-filter")(U);(0,wn.customElement)("ft-filter-option")(Ge);var nd={headerColor:Yt.FtCssVariableFactory.extend("--ft-search-period-filter-header-color","",Yt.designSystemVariables.colorOnSurface)},el=Js.css`
|
|
1770
1770
|
[part="container"] {
|
|
@@ -1811,7 +1811,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1811
1811
|
<span class="ft-i18n">
|
|
1812
1812
|
${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
|
|
1813
1813
|
</span>
|
|
1814
|
-
`}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:""})}};Ke.elementDefinitions={};Ke.styles=rl;Yr([(0,Vo.redux)()],Ke.prototype,"editorMode",void 0);Yr([(0,Go.property)()],Ke.prototype,"context",void 0);Yr([(0,Go.property)()],Ke.prototype,"key",void 0);Yr([(0,Vo.jsonProperty)([])],Ke.prototype,"args",void 0);Yr([(0,Go.property)()],Ke.prototype,"defaultMessage",void 0);var jo=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)=>Qt.resolveMessage(this.name,n,...a)}),this.rawMessages=new Proxy({},{get:(o,n)=>Qt.resolveRawMessage(this.name,n)})}};(0,tc.customElement)("ft-i18n")(Ke);var Oc=g(I()),Cc=g(K());var ca=g(I());var rc=g(I());var Qd=g(nc(),1);var ac;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(ac||(ac={}));var ic;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(ic||(ic={}));var sc;(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"})(sc||(sc={}));var lc;(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"})(lc||(lc={}));var cc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(cc||(cc={}));var dc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(dc||(dc={}));var pc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(pc||(pc={}));var fc;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(fc||(fc={}));var uc;(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"})(uc||(uc={}));var hc;(function(t){t.ASC="ASC",t.DESC="DESC"})(hc||(hc={}));var yc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(yc||(yc={}));var ia;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(ia||(ia={}));var mc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"})(mc||(mc={}));var gc;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(gc||(gc={}));var bc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"})(bc||(bc={}));var qo;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(qo||(qo={}));var xc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"})(xc||(xc={}));var sa;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(sa||(sa={}));var
|
|
1814
|
+
`}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:""})}};Ke.elementDefinitions={};Ke.styles=rl;Yr([(0,Vo.redux)()],Ke.prototype,"editorMode",void 0);Yr([(0,Go.property)()],Ke.prototype,"context",void 0);Yr([(0,Go.property)()],Ke.prototype,"key",void 0);Yr([(0,Vo.jsonProperty)([])],Ke.prototype,"args",void 0);Yr([(0,Go.property)()],Ke.prototype,"defaultMessage",void 0);var jo=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)=>Qt.resolveMessage(this.name,n,...a)}),this.rawMessages=new Proxy({},{get:(o,n)=>Qt.resolveRawMessage(this.name,n)})}};(0,tc.customElement)("ft-i18n")(Ke);var Oc=g(I()),Cc=g(K());var ca=g(I());var rc=g(I());var Qd=g(nc(),1);var ac;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(ac||(ac={}));var ic;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(ic||(ic={}));var sc;(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"})(sc||(sc={}));var lc;(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"})(lc||(lc={}));var cc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(cc||(cc={}));var dc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(dc||(dc={}));var pc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(pc||(pc={}));var fc;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(fc||(fc={}));var uc;(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"})(uc||(uc={}));var hc;(function(t){t.ASC="ASC",t.DESC="DESC"})(hc||(hc={}));var yc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(yc||(yc={}));var ia;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(ia||(ia={}));var mc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"})(mc||(mc={}));var gc;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(gc||(gc={}));var bc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"})(bc||(bc={}));var qo;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(qo||(qo={}));var xc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"})(xc||(xc={}));var sa;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(sa||(sa={}));var ne;(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"})(ne||(ne={}));var vc;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(vc||(vc={}));var Sc;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Sc||(Sc={}));var I0={[ne.PERSONAL_BOOK_SHARE_USER]:[ne.PERSONAL_BOOK_USER],[ne.HTML_EXPORT_USER]:[ne.PERSONAL_BOOK_USER],[ne.PDF_EXPORT_USER]:[ne.PERSONAL_BOOK_USER],[ne.KHUB_ADMIN]:[ne.CONTENT_PUBLISHER],[ne.ADMIN]:[ne.KHUB_ADMIN,ne.USERS_ADMIN,ne.PORTAL_ADMIN],[ne.DEVELOPER]:[ne.BETA_USER,ne.DEBUG_USER],[ne.GENERATIVE_AI_EXPORT_USER]:[ne.GENERATIVE_AI_USER]};var la=class t extends Event{constructor(){super(t.eventName)}};la.eventName="search-context-clear-all-filters";var Jd=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(l=t[c])&&(i=(a<3?l(i):a>3?l(e,o,i):l(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},pa=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},da=Symbol("registerInterval");function ep(t){var e;class o extends t{constructor(){super(...arguments),this[e]=0}setSearchStateManager(a){this.clearStateManager(),this.stateManager=a,this.addStore(a.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[da]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[da]):this.dispatchEvent(new pa)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=da,Jd([(0,Cc.state)()],o.prototype,"stateManager",void 0),o}var Yo=class extends ep(Oc.FtLitElementRedux){};var fa=g(I());var Dt=jo.build("designedSearchPeriodFilter"),Ec={label:"Last update",anyTime:"Any time",LAST_WEEK:"Less than a week",LAST_MONTH:"Less than a month",LAST_QUARTER:"Less than a quarter",LAST_YEAR:"Less than a year",CUSTOM:"Custom period",customPeriod:"From {0} to {1}",period:"Period: {0}"};var tr=g(K());var Bt=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(l=t[c])&&(i=(a<3?l(i):a>3?l(e,o,i):l(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},Te=class extends zo(Yo){constructor(){super(),this.metadataDescriptors=[],this.dateFilter=void 0,this.addI18nContext(Dt,Ec),this.addStore(k)}get metadataKey(){var e;return(e=this.key)!==null&&e!==void 0?e:"ft:lastEdition"}update(e){var o;super.update(e),(e.has("filters")||e.has("key"))&&(this.dateFilter=(o=this.filters)===null||o===void 0?void 0:o.filter(n=>n.key===this.metadataKey).filter(n=>n.dateFilter).map(n=>n.dateFilter).find(Boolean))}render(){var e,o,n,a;return Ze.html`
|
|
1815
1815
|
<div part="container">
|
|
1816
1816
|
<div part="header">
|
|
1817
1817
|
<ft-typography variant="overline" part="label" id="label">
|
|
@@ -1836,7 +1836,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1836
1836
|
<ft-radio ?checked=${((a=this.dateFilter)===null||a===void 0?void 0:a.type)=="LAST_YEAR"} value="LAST_YEAR">${Dt.messages.LAST_YEAR()}
|
|
1837
1837
|
</ft-radio>`:Ze.nothing}
|
|
1838
1838
|
</ft-radio-group>
|
|
1839
|
-
</div>`}setPeriodFilter(e){var o,n;let a=qo[e.detail];a?(o=this.stateManager)===null||o===void 0||o.setDateFilter(this.metadataKey,a):(n=this.stateManager)===null||n===void 0||n.removeDateFilter(this.metadataKey)}header(){var e,o,n;return this.metadataKey==="ft:lastEdition"?Dt.messages.label():(n=(o=(e=this.metadataDescriptors)===null||e===void 0?void 0:e.find(a=>a.key==this.metadataKey))===null||o===void 0?void 0:o.label)!==null&&n!==void 0?n:this.metadataKey}};Te.elementDefinitions={"ft-radio-group":Ne,"ft-radio":
|
|
1839
|
+
</div>`}setPeriodFilter(e){var o,n;let a=qo[e.detail];a?(o=this.stateManager)===null||o===void 0||o.setDateFilter(this.metadataKey,a):(n=this.stateManager)===null||n===void 0||n.removeDateFilter(this.metadataKey)}header(){var e,o,n;return this.metadataKey==="ft:lastEdition"?Dt.messages.label():(n=(o=(e=this.metadataDescriptors)===null||e===void 0?void 0:e.find(a=>a.key==this.metadataKey))===null||o===void 0?void 0:o.label)!==null&&n!==void 0?n:this.metadataKey}};Te.elementDefinitions={"ft-radio-group":Ne,"ft-radio":se,"ft-typography":te};Te.styles=el;Bt([(0,tr.property)({type:String})],Te.prototype,"key",void 0);Bt([(0,tr.property)({type:Boolean})],Te.prototype,"lessThanAWeek",void 0);Bt([(0,tr.property)({type:Boolean})],Te.prototype,"lessThanAMonth",void 0);Bt([(0,tr.property)({type:Boolean})],Te.prototype,"lessThanAQuarter",void 0);Bt([(0,tr.property)({type:Boolean})],Te.prototype,"lessThanAYear",void 0);Bt([(0,fa.redux)({store:"search",selector:t=>t.request.metadataFilters})],Te.prototype,"filters",void 0);Bt([(0,fa.redux)({store:k.name,selector:t=>{var e,o;return(o=(e=t.metadataConfiguration)===null||e===void 0?void 0:e.descriptors)!==null&&o!==void 0?o:[]}})],Te.prototype,"metadataDescriptors",void 0);Bt([(0,tr.property)({attribute:!1})],Te.prototype,"dateFilter",void 0);(0,wc.customElement)("ft-search-period-filter")(Te);})();
|
|
1840
1840
|
/*! Bundled license information:
|
|
1841
1841
|
|
|
1842
1842
|
lit-html/lit-html.js:
|
|
@@ -47,7 +47,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
47
47
|
input::-webkit-search-results-decoration {
|
|
48
48
|
display: none;
|
|
49
49
|
}
|
|
50
|
-
`;var Dl={};var ua={};J(ua,{ParametrizedLabelResolver:()=>ho});var ho=class t{constructor(e,r){this.defaultLabels=e,this.labels=r}resolve(e,...r){var n,i;e=this.resolvePluralKey(e,r);let a=(i=(n=this.labels[e])!==null&&n!==void 0?n:this.defaultLabels[e])!==null&&i!==void 0?i:"";return t.replaceParameters(a,...r)}static replaceParameters(e,...r){return r.forEach((n,i)=>e=e.replace(new RegExp(`\\{${i}([^}]*)\\}`,"g"),(a,s)=>t.formatValue(n,s))),e}resolvePluralKey(e,r){for(let n of r)if(typeof n=="number"){let i=`${String(e)}[\\=${n}]`;if(i in this.labels||i in this.defaultLabels)return i}return e}static formatValue(e,r){return e instanceof Date?t.formatDate(e,r):e??""}static formatDate(e,r){let n=i=>r?.includes("date")?e.toLocaleDateString(i):r?.includes("time")?e.toLocaleTimeString(i):e.toLocaleString(i);try{return n(document.documentElement.lang)}catch{return n()}}};var Ba={};J(Ba,{FtCommandQueue:()=>yo,FtLitElementRedux:()=>Ye,FtReduxStore:()=>Rt,clearAllStores:()=>nf,isFtReduxStore:()=>er,redux:()=>Qt,reduxEventListener:()=>Su,reduxReactive:()=>vu});var vu=()=>(t,e)=>{var r;let n=t.constructor;n.reduxReactiveProperties=new Set(n.reduxReactiveProperties),(r=n.reduxReactiveProperties)===null||r===void 0||r.add(e)},Qt=t=>{let e=t??{};return(r,n)=>{var i;let a={hasChanged:Qr,attribute:!1,...e};v(a)(r,n);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(i=e.selector)!==null&&i!==void 0?i:l=>l[n],store:e.store})}},Su=t=>(e,r)=>{let n=e.constructor;n.reduxEventListeners=new Map(n.reduxEventListeners),n.reduxEventListeners.set(r,t)};var yo=class{constructor(){this.queue=[]}add(e,r=!1){r&&(this.queue=this.queue.filter(n=>n.type!==e.type)),this.queue.push(e)}consume(e){let r=this.queue.find(n=>n.type===e);return r&&(this.queue=this.queue.filter(n=>n!==r)),r}};function er(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Ml,Bl,Fl,mo=Symbol("internalReduxEventsUnsubscribers"),St=Symbol("internalStoresUnsubscribers"),tr=Symbol("internalStores"),Ye=class extends H{constructor(){super(...arguments),this[Ml]=new Map,this[Bl]=new Map,this[Fl]=new Map}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(r=>e.has(r))&&this.updateFromStores()}getUnnamedStore(){if(this[tr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[tr].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[tr].get(e)}addStore(e,r){var n;r=(n=r??(er(e)?e.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(r),this[tr].set(r,e),this.subscribeToStore(r,e),this.updateFromStores()}removeStore(e){let r=typeof e=="string"?e:e.name;this.unsubscribeFromStore(r),this[tr].delete(r)}setupStores(){this.unsubscribeFromStores(),this[tr].forEach((e,r)=>this.subscribeToStore(r,e)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((e,r)=>{let n=this.constructor.getPropertyOptions(r);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:r)){let i=this.getStore(e.store);i&&(e.store?this[St].has(e.store):this[St].size>0)&&(this[r]=e.selector(i.getState(),this))}})}subscribeToStore(e,r){var n;this[St].set(e,r.subscribe(()=>this.updateFromStores())),this[mo].set(e,[]),er(r)&&r.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((i,a)=>{if(typeof this[a]=="function"&&(!i.store||r.name===i.store)){let s=l=>this[a](l);r.addEventListener(i.eventName,s),this[mo].get(e).push(()=>r.removeEventListener(i.eventName,s))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[St].forEach((e,r)=>this.unsubscribeFromStore(r))}unsubscribeFromStore(e){var r;this[St].has(e)&&this[St].get(e)(),this[St].delete(e),(r=this[mo].get(e))===null||r===void 0||r.forEach(n=>n()),this[mo].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Ml=St,Bl=tr,Fl=mo;Ye.reduxProperties=new Map;Ye.reduxReactiveProperties=new Set;Ye.reduxEventListeners=new Map;function Me(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];if(0)var i,a;throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function dt(t){return!!t&&!!t[re]}function Ue(t){var e;return!!t&&(function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===_u}(t)||Array.isArray(t)||!!t[Gl]||!!(!((e=t.constructor)===null||e===void 0)&&e[Gl])||Sa(t)||Oa(t))}function rr(t,e,r){r===void 0&&(r=!1),Or(t)===0?(r?Object.keys:Sr)(t).forEach(function(n){r&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,i){return e(i,n,t)})}function Or(t){var e=t[re];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Sa(t)?2:Oa(t)?3:0}function vr(t,e){return Or(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Ou(t,e){return Or(t)===2?t.get(e):t[e]}function Kl(t,e,r){var n=Or(t);n===2?t.set(e,r):n===3?t.add(r):t[e]=r}function Zl(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Sa(t){return Ru&&t instanceof Map}function Oa(t){return Nu&&t instanceof Set}function Ot(t){return t.o||t.t}function Ca(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Xl(t);delete e[re];for(var r=Sr(e),n=0;n<r.length;n++){var i=r[n],a=e[i];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function Ea(t,e){return e===void 0&&(e=!1),wa(t)||dt(t)||!Ue(t)||(Or(t)>1&&(t.set=t.add=t.clear=t.delete=Cu),Object.freeze(t),e&&rr(t,function(r,n){return Ea(n,!0)},!0)),t}function Cu(){Me(2)}function wa(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Xe(t){var e=va[t];return e||Me(18,t),e}function Eu(t,e){va[t]||(va[t]=e)}function ga(){return bo}function fa(t,e){e&&(Xe("Patches"),t.u=[],t.s=[],t.v=e)}function an(t){ba(t),t.p.forEach(wu),t.p=null}function ba(t){t===bo&&(bo=t.l)}function Ul(t){return bo={p:[],l:bo,h:t,m:!0,_:0}}function wu(t){var e=t[re];e.i===0||e.i===1?e.j():e.g=!0}function ha(t,e){e._=e.p.length;var r=e.p[0],n=t!==void 0&&t!==r;return e.h.O||Xe("ES5").S(e,t,n),n?(r[re].P&&(an(e),Me(4)),Ue(t)&&(t=sn(e,t),e.l||ln(e,t)),e.u&&Xe("Patches").M(r[re].t,t,e.u,e.s)):t=sn(e,r,[]),an(e),e.u&&e.v(e.u,e.s),t!==Yl?t:void 0}function sn(t,e,r){if(wa(e))return e;var n=e[re];if(!n)return rr(e,function(l,d){return Wl(t,n,e,l,d,r)},!0),e;if(n.A!==t)return e;if(!n.P)return ln(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=Ca(n.k):n.o,a=i,s=!1;n.i===3&&(a=new Set(i),i.clear(),s=!0),rr(a,function(l,d){return Wl(t,n,i,l,d,r,s)}),ln(t,i,!1),r&&t.u&&Xe("Patches").N(n,r,t.u,t.s)}return n.o}function Wl(t,e,r,n,i,a,s){if(dt(i)){var l=sn(t,i,a&&e&&e.i!==3&&!vr(e.R,n)?a.concat(n):void 0);if(Kl(r,n,l),!dt(l))return;t.m=!1}else s&&r.add(i);if(Ue(i)&&!wa(i)){if(!t.h.D&&t._<1)return;sn(t,i),e&&e.A.l||ln(t,i)}}function ln(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&Ea(e,r)}function ya(t,e){var r=t[re];return(r?Ot(r):t)[e]}function Hl(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var n=Object.getOwnPropertyDescriptor(r,e);if(n)return n;r=Object.getPrototypeOf(r)}}function Ct(t){t.P||(t.P=!0,t.l&&Ct(t.l))}function ma(t){t.o||(t.o=Ca(t.t))}function xa(t,e,r){var n=Sa(e)?Xe("MapSet").F(e,r):Oa(e)?Xe("MapSet").T(e,r):t.O?function(i,a){var s=Array.isArray(i),l={i:s?1:0,A:a?a.A:ga(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},d=l,p=xo;s&&(d=[l],p=go);var f=Proxy.revocable(d,p),h=f.revoke,m=f.proxy;return l.k=m,l.j=h,m}(e,r):Xe("ES5").J(e,r);return(r?r.A:ga()).p.push(n),n}function Au(t){return dt(t)||Me(22,t),function e(r){if(!Ue(r))return r;var n,i=r[re],a=Or(r);if(i){if(!i.P&&(i.i<4||!Xe("ES5").K(i)))return i.t;i.I=!0,n=zl(r,a),i.I=!1}else n=zl(r,a);return rr(n,function(s,l){i&&Ou(i.t,s)===l||Kl(n,s,e(l))}),a===3?new Set(n):n}(t)}function zl(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Ca(t)}function ql(){function t(s,l){var d=a[s];return d?d.enumerable=l:a[s]=d={configurable:!0,enumerable:l,get:function(){var p=this[re];return xo.get(p,s)},set:function(p){var f=this[re];xo.set(f,s,p)}},d}function e(s){for(var l=s.length-1;l>=0;l--){var d=s[l][re];if(!d.P)switch(d.i){case 5:n(d)&&Ct(d);break;case 4:r(d)&&Ct(d)}}}function r(s){for(var l=s.t,d=s.k,p=Sr(d),f=p.length-1;f>=0;f--){var h=p[f];if(h!==re){var m=l[h];if(m===void 0&&!vr(l,h))return!0;var b=d[h],x=b&&b[re];if(x?x.t!==m:!Zl(b,m))return!0}}var C=!!l[re];return p.length!==Sr(l).length+(C?0:1)}function n(s){var l=s.k;if(l.length!==s.t.length)return!0;var d=Object.getOwnPropertyDescriptor(l,l.length-1);if(d&&!d.get)return!0;for(var p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function i(s){s.g&&Me(3,JSON.stringify(Ot(s)))}var a={};Eu("ES5",{J:function(s,l){var d=Array.isArray(s),p=function(h,m){if(h){for(var b=Array(m.length),x=0;x<m.length;x++)Object.defineProperty(b,""+x,t(x,!0));return b}var C=Xl(m);delete C[re];for(var N=Sr(C),L=0;L<N.length;L++){var T=N[L];C[T]=t(T,h||!!C[T].enumerable)}return Object.create(Object.getPrototypeOf(m),C)}(d,s),f={i:d?5:4,A:l?l.A:ga(),P:!1,I:!1,R:{},l,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,re,{value:f,writable:!0}),p},S:function(s,l,d){d?dt(l)&&l[re].A===s&&e(s.p):(s.u&&function p(f){if(f&&typeof f=="object"){var h=f[re];if(h){var m=h.t,b=h.k,x=h.R,C=h.i;if(C===4)rr(b,function(O){O!==re&&(m[O]!==void 0||vr(m,O)?x[O]||p(b[O]):(x[O]=!0,Ct(h)))}),rr(m,function(O){b[O]!==void 0||vr(b,O)||(x[O]=!1,Ct(h))});else if(C===5){if(n(h)&&(Ct(h),x.length=!0),b.length<m.length)for(var N=b.length;N<m.length;N++)x[N]=!1;else for(var L=m.length;L<b.length;L++)x[L]=!0;for(var T=Math.min(b.length,m.length),E=0;E<T;E++)b.hasOwnProperty(E)||(x[E]=!0),x[E]===void 0&&p(b[E])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?r(s):n(s)}})}var Vl,bo,Aa=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Ru=typeof Map<"u",Nu=typeof Set<"u",jl=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Yl=Aa?Symbol.for("immer-nothing"):((Vl={})["immer-nothing"]=!0,Vl),Gl=Aa?Symbol.for("immer-draftable"):"__$immer_draftable",re=Aa?Symbol.for("immer-state"):"__$immer_state";var _u=""+Object.prototype.constructor,Sr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Xl=Object.getOwnPropertyDescriptors||function(t){var e={};return Sr(t).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)}),e},va={},xo={get:function(t,e){if(e===re)return t;var r=Ot(t);if(!vr(r,e))return function(i,a,s){var l,d=Hl(a,s);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(i.k):void 0}(t,r,e);var n=r[e];return t.I||!Ue(n)?n:n===ya(t.t,e)?(ma(t),t.o[e]=xa(t.A.h,n,t)):n},has:function(t,e){return e in Ot(t)},ownKeys:function(t){return Reflect.ownKeys(Ot(t))},set:function(t,e,r){var n=Hl(Ot(t),e);if(n?.set)return n.set.call(t.k,r),!0;if(!t.P){var i=ya(Ot(t),e),a=i?.[re];if(a&&a.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(Zl(r,i)&&(r!==void 0||vr(t.t,e)))return!0;ma(t),Ct(t)}return t.o[e]===r&&(r!==void 0||e in t.o)||Number.isNaN(r)&&Number.isNaN(t.o[e])||(t.o[e]=r,t.R[e]=!0),!0},deleteProperty:function(t,e){return ya(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,ma(t),Ct(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=Ot(t),n=Reflect.getOwnPropertyDescriptor(r,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:r[e]}},defineProperty:function(){Me(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Me(12)}},go={};rr(xo,function(t,e){go[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),go.deleteProperty=function(t,e){return go.set.call(this,t,e,void 0)},go.set=function(t,e,r){return xo.set.call(this,t[0],e,r,t[0])};var Lu=function(){function t(r){var n=this;this.O=jl,this.D=!0,this.produce=function(i,a,s){if(typeof i=="function"&&typeof a!="function"){var l=a;a=i;var d=n;return function(C){var N=this;C===void 0&&(C=l);for(var L=arguments.length,T=Array(L>1?L-1:0),E=1;E<L;E++)T[E-1]=arguments[E];return d.produce(C,function(O){var w;return(w=a).call.apply(w,[N,O].concat(T))})}}var p;if(typeof a!="function"&&Me(6),s!==void 0&&typeof s!="function"&&Me(7),Ue(i)){var f=Ul(n),h=xa(n,i,void 0),m=!0;try{p=a(h),m=!1}finally{m?an(f):ba(f)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(C){return fa(f,s),ha(C,f)},function(C){throw an(f),C}):(fa(f,s),ha(p,f))}if(!i||typeof i!="object"){if((p=a(i))===void 0&&(p=i),p===Yl&&(p=void 0),n.D&&Ea(p,!0),s){var b=[],x=[];Xe("Patches").M(i,p,b,x),s(b,x)}return p}Me(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(p){for(var f=arguments.length,h=Array(f>1?f-1:0),m=1;m<f;m++)h[m-1]=arguments[m];return n.produceWithPatches(p,function(b){return i.apply(void 0,[b].concat(h))})};var s,l,d=n.produce(i,a,function(p,f){s=p,l=f});return typeof Promise<"u"&&d instanceof Promise?d.then(function(p){return[p,s,l]}):[d,s,l]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=t.prototype;return e.createDraft=function(r){Ue(r)||Me(8),dt(r)&&(r=Au(r));var n=Ul(this),i=xa(this,r,void 0);return i[re].C=!0,ba(n),i},e.finishDraft=function(r,n){var i=r&&r[re],a=i.A;return fa(a,n),ha(void 0,a)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!jl&&Me(20),this.O=r},e.applyPatches=function(r,n){var i;for(i=n.length-1;i>=0;i--){var a=n[i];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}i>-1&&(n=n.slice(i+1));var s=Xe("Patches").$;return dt(r)?s(r,n):this.produce(r,function(l){return s(l,n)})},t}(),$e=new Lu,Tu=$e.produce,Vb=$e.produceWithPatches.bind($e),jb=$e.setAutoFreeze.bind($e),Gb=$e.setUseProxies.bind($e),Kb=$e.applyPatches.bind($e),Zb=$e.createDraft.bind($e),qb=$e.finishDraft.bind($e),cn=Tu;function Et(t){"@babel/helpers - typeof";return Et=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},Et(t)}function Ra(t,e){if(Et(t)!=="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Et(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Na(t){var e=Ra(t,"string");return Et(e)==="symbol"?e:String(e)}function _a(t,e,r){return e=Na(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Jl(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function dn(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Jl(Object(r),!0).forEach(function(n){_a(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Jl(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function ge(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 Ql=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),La=function(){return Math.random().toString(36).substring(7).split("").join(".")},pn={INIT:"@@redux/INIT"+La(),REPLACE:"@@redux/REPLACE"+La(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+La()}};function Pu(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 Ta(t,e,r){var n;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(ge(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(ge(1));return r(Ta)(t,e)}if(typeof t!="function")throw new Error(ge(2));var i=t,a=e,s=[],l=s,d=!1;function p(){l===s&&(l=s.slice())}function f(){if(d)throw new Error(ge(3));return a}function h(C){if(typeof C!="function")throw new Error(ge(4));if(d)throw new Error(ge(5));var N=!0;return p(),l.push(C),function(){if(N){if(d)throw new Error(ge(6));N=!1,p();var T=l.indexOf(C);l.splice(T,1),s=null}}}function m(C){if(!Pu(C))throw new Error(ge(7));if(typeof C.type>"u")throw new Error(ge(8));if(d)throw new Error(ge(9));try{d=!0,a=i(a,C)}finally{d=!1}for(var N=s=l,L=0;L<N.length;L++){var T=N[L];T()}return C}function b(C){if(typeof C!="function")throw new Error(ge(10));i=C,m({type:pn.REPLACE})}function x(){var C,N=h;return C={subscribe:function(T){if(typeof T!="object"||T===null)throw new Error(ge(11));function E(){T.next&&T.next(f())}E();var O=N(E);return{unsubscribe:O}}},C[Ql]=function(){return this},C}return m({type:pn.INIT}),n={dispatch:m,subscribe:h,getState:f,replaceReducer:b},n[Ql]=x,n}function Iu(t){Object.keys(t).forEach(function(e){var r=t[e],n=r(void 0,{type:pn.INIT});if(typeof n>"u")throw new Error(ge(12));if(typeof r(void 0,{type:pn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ge(13))})}function ec(t){for(var e=Object.keys(t),r={},n=0;n<e.length;n++){var i=e[n];typeof t[i]=="function"&&(r[i]=t[i])}var a=Object.keys(r),s,l;try{Iu(r)}catch(d){l=d}return function(p,f){if(p===void 0&&(p={}),l)throw l;if(0)var h;for(var m=!1,b={},x=0;x<a.length;x++){var C=a[x],N=r[C],L=p[C],T=N(L,f);if(typeof T>"u"){var E=f&&f.type;throw new Error(ge(14))}b[C]=T,m=m||T!==L}return m=m||a.length!==Object.keys(p).length,m?b:p}}function Cr(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function tc(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(n){return function(){var i=n.apply(void 0,arguments),a=function(){throw new Error(ge(15))},s={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=e.map(function(d){return d(s)});return a=Cr.apply(void 0,l)(i.dispatch),dn(dn({},i),{},{dispatch:a})}}}function rc(t){var e=function(n){var i=n.dispatch,a=n.getState;return function(s){return function(l){return typeof l=="function"?l(i,a,t):s(l)}}};return e}var oc=rc();oc.withExtraArgument=rc;var Pa=oc;var lc=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),$u=function(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(p){return function(f){return d([p,f])}}function d(p){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=p[0]&2?i.return:p[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,p[1])).done)return a;switch(i=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return r.label++,{value:p[1],done:!1};case 5:r.label++,i=p[1],p=[0];continue;case 7:p=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){r=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){r.label=p[1];break}if(p[0]===6&&r.label<a[1]){r.label=a[1],a=p;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(p);break}a[2]&&r.ops.pop(),r.trys.pop();continue}p=e.call(t,r)}catch(f){p=[6,f],i=0}finally{n=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Er=function(t,e){for(var r=0,n=e.length,i=t.length;r<n;r++,i++)t[i]=e[r];return t},ku=Object.defineProperty,Du=Object.defineProperties,Mu=Object.getOwnPropertyDescriptors,nc=Object.getOwnPropertySymbols,Bu=Object.prototype.hasOwnProperty,Fu=Object.prototype.propertyIsEnumerable,ic=function(t,e,r){return e in t?ku(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},wt=function(t,e){for(var r in e||(e={}))Bu.call(e,r)&&ic(t,r,e[r]);if(nc)for(var n=0,i=nc(e);n<i.length;n++){var r=i[n];Fu.call(e,r)&&ic(t,r,e[r])}return t},Ia=function(t,e){return Du(t,Mu(e))},Uu=function(t,e,r){return new Promise(function(n,i){var a=function(d){try{l(r.next(d))}catch(p){i(p)}},s=function(d){try{l(r.throw(d))}catch(p){i(p)}},l=function(d){return d.done?n(d.value):Promise.resolve(d.value).then(a,s)};l((r=r.apply(t,e)).next())})};var Wu=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Cr:Cr.apply(null,arguments)},fx=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Hu(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return e===r}var zu=function(t){lc(e,t);function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=t.apply(this,r)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,Er([void 0],r[0].concat(this)))):new(e.bind.apply(e,Er([void 0],r.concat(this))))},e}(Array),Vu=function(t){lc(e,t);function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=t.apply(this,r)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,Er([void 0],r[0].concat(this)))):new(e.bind.apply(e,Er([void 0],r.concat(this))))},e}(Array);function Da(t){return Ue(t)?cn(t,function(){}):t}function ju(t){return typeof t=="boolean"}function Gu(){return function(e){return Ku(e)}}function Ku(t){t===void 0&&(t={});var e=t.thunk,r=e===void 0?!0:e,n=t.immutableCheck,i=n===void 0?!0:n,a=t.serializableCheck,s=a===void 0?!0:a,l=new zu;if(r&&(ju(r)?l.push(Pa):l.push(Pa.withExtraArgument(r.extraArgument))),0){if(i)var d;if(s)var p}return l}var $a=!0;function cc(t){var e=Gu(),r=t||{},n=r.reducer,i=n===void 0?void 0:n,a=r.middleware,s=a===void 0?e():a,l=r.devTools,d=l===void 0?!0:l,p=r.preloadedState,f=p===void 0?void 0:p,h=r.enhancers,m=h===void 0?void 0:h,b;if(typeof i=="function")b=i;else if(Hu(i))b=ec(i);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var x=s;if(typeof x=="function"&&(x=x(e),!$a&&!Array.isArray(x)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!$a&&x.some(function(O){return typeof O!="function"}))throw new Error("each middleware provided to configureStore must be a function");var C=tc.apply(void 0,x),N=Cr;d&&(N=Wu(wt({trace:!$a},typeof d=="object"&&d)));var L=new Vu(C),T=L;Array.isArray(m)?T=Er([C],m):typeof m=="function"&&(T=m(L));var E=N.apply(void 0,T);return Ta(b,f,E)}function At(t,e){function r(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(e){var a=e.apply(void 0,n);if(!a)throw new Error("prepareAction did not return an object");return wt(wt({type:t,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:t,payload:n[0]}}return r.toString=function(){return""+t},r.type=t,r.match=function(n){return n.type===t},r}function dc(t){var e={},r=[],n,i={addCase:function(a,s){var l=typeof a=="string"?a:a.type;if(l in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[l]=s,i},addMatcher:function(a,s){return r.push({matcher:a,reducer:s}),i},addDefaultCase:function(a){return n=a,i}};return t(i),[e,r,n]}function Zu(t){return typeof t=="function"}function qu(t,e,r,n){r===void 0&&(r=[]);var i=typeof e=="function"?dc(e):[e,r,n],a=i[0],s=i[1],l=i[2],d;if(Zu(t))d=function(){return Da(t())};else{var p=Da(t);d=function(){return p}}function f(h,m){h===void 0&&(h=d());var b=Er([a[m.type]],s.filter(function(x){var C=x.matcher;return C(m)}).map(function(x){var C=x.reducer;return C}));return b.filter(function(x){return!!x}).length===0&&(b=[l]),b.reduce(function(x,C){if(C)if(dt(x)){var N=x,L=C(N,m);return L===void 0?x:L}else{if(Ue(x))return cn(x,function(T){return C(T,m)});var L=C(x,m);if(L===void 0){if(x===null)return x;throw Error("A case reducer on a non-draftable value must not return undefined")}return L}return x},h)}return f.getInitialState=d,f}function Yu(t,e){return t+"/"+e}function pc(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof t.initialState=="function"?t.initialState:Da(t.initialState),n=t.reducers||{},i=Object.keys(n),a={},s={},l={};i.forEach(function(f){var h=n[f],m=Yu(e,f),b,x;"reducer"in h?(b=h.reducer,x=h.prepare):b=h,a[f]=b,s[m]=b,l[f]=x?At(m,x):At(m)});function d(){var f=typeof t.extraReducers=="function"?dc(t.extraReducers):[t.extraReducers],h=f[0],m=h===void 0?{}:h,b=f[1],x=b===void 0?[]:b,C=f[2],N=C===void 0?void 0:C,L=wt(wt({},m),s);return qu(r,function(T){for(var E in L)T.addCase(E,L[E]);for(var O=0,w=x;O<w.length;O++){var k=w[O];T.addMatcher(k.matcher,k.reducer)}N&&T.addDefaultCase(N)})}var p;return{name:e,reducer:function(f,h){return p||(p=d()),p(f,h)},actions:l,caseReducers:a,getInitialState:function(){return p||(p=d()),p.getInitialState()}}}var Xu="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Ju=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=Xu[Math.random()*64|0];return e},Qu=["name","message","stack","code"],ka=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),ac=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),ef=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,n=Qu;r<n.length;r++){var i=n[r];typeof t[i]=="string"&&(e[i]=t[i])}return e}return{message:String(t)}},gx=function(){function t(e,r,n){var i=At(e+"/fulfilled",function(f,h,m,b){return{payload:f,meta:Ia(wt({},b||{}),{arg:m,requestId:h,requestStatus:"fulfilled"})}}),a=At(e+"/pending",function(f,h,m){return{payload:void 0,meta:Ia(wt({},m||{}),{arg:h,requestId:f,requestStatus:"pending"})}}),s=At(e+"/rejected",function(f,h,m,b,x){return{payload:b,error:(n&&n.serializeError||ef)(f||"Rejected"),meta:Ia(wt({},x||{}),{arg:m,requestId:h,rejectedWithValue:!!b,requestStatus:"rejected",aborted:f?.name==="AbortError",condition:f?.name==="ConditionError"})}}),l=!1,d=typeof AbortController<"u"?AbortController:function(){function f(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return f.prototype.abort=function(){},f}();function p(f){return function(h,m,b){var x=n?.idGenerator?n.idGenerator(f):Ju(),C=new d,N,L=!1;function T(O){N=O,C.abort()}var E=function(){return Uu(this,null,function(){var O,w,k,U,G,V,M;return $u(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),U=(O=n?.condition)==null?void 0:O.call(n,f,{getState:m,extra:b}),rf(U)?[4,U]:[3,2];case 1:U=y.sent(),y.label=2;case 2:if(U===!1||C.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return L=!0,G=new Promise(function(S,D){return C.signal.addEventListener("abort",function(){return D({name:"AbortError",message:N||"Aborted"})})}),h(a(x,f,(w=n?.getPendingMeta)==null?void 0:w.call(n,{requestId:x,arg:f},{getState:m,extra:b}))),[4,Promise.race([G,Promise.resolve(r(f,{dispatch:h,getState:m,extra:b,requestId:x,signal:C.signal,abort:T,rejectWithValue:function(S,D){return new ka(S,D)},fulfillWithValue:function(S,D){return new ac(S,D)}})).then(function(S){if(S instanceof ka)throw S;return S instanceof ac?i(S.payload,x,f,S.meta):i(S,x,f)})])];case 3:return k=y.sent(),[3,5];case 4:return V=y.sent(),k=V instanceof ka?s(null,x,f,V.payload,V.meta):s(V,x,f),[3,5];case 5:return M=n&&!n.dispatchConditionRejection&&s.match(k)&&k.meta.condition,M||h(k),[2,k]}})})}();return Object.assign(E,{abort:T,requestId:x,arg:f,unwrap:function(){return E.then(tf)}})}}return Object.assign(p,{pending:a,rejected:s,fulfilled:i,typePrefix:e})}return t.withTypes=function(){return t},t}();function tf(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function rf(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var uc="listener",fc="completed",hc="cancelled",bx="task-"+hc,xx="task-"+fc,vx=uc+"-"+hc,Sx=uc+"-"+fc;var Ma="listenerMiddleware";var Ox=At(Ma+"/add"),Cx=At(Ma+"/removeAll"),Ex=At(Ma+"/remove");var sc,wx=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(sc||(sc=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},of=function(t){return function(e){setTimeout(e,t)}},Ax=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:of(10);ql();window.ftReduxStores||(window.ftReduxStores={});var Rt=class t extends Kt{static get(e){var r;let n=typeof e=="string"?e:e.name,i=typeof e=="string"?void 0:e,a=window.ftReduxStores[n];if(er(a))return a;if(i==null)return;let s=pc({...i,reducers:(r=i.reducers)!==null&&r!==void 0?r:{}}),l=cc({reducer:(d,p)=>p.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...d,...p.overwrites}:s.reducer(d,p)});return window.ftReduxStores[i.name]=new t(s,l)}constructor(e,r){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new yo,this.actions=new Proxy(this.reduxSlice.actions,{get:(n,i,a)=>{let s=i,l=n[s];return l?(...d)=>{let p=l(...d);return this.reduxStore.dispatch(p),p}:d=>{this.setState({[s]:d})}}})}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()}};function nf(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))er(e)&&e.clear()}var Wa={};J(Wa,{scrollHelper:()=>af});var Fa,un=new Map,Ua=class{lock(e,r){if(r){let n=un.get(r);if(n==null||n===e)return un.set(r,e),r}}release(e,r){r&&un.get(r)===e&&un.delete(r)}findFirstScrollableParent(e){var r;let n,i;for(let a of di(e)){let s=a,l=this.elementCanScroll(s);if(l&&s.clientHeight&&s.clientHeight<s.scrollHeight){n=s;break}else l&&i==null&&(i=s)}return(r=n??i)!==null&&r!==void 0?r:document.body}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)}catch{return!1}}getAbsoluteScrollOffset(e,r){var n,i;let a=0;for(;r&&r.offsetParent!==e.offsetParent;)a+=(n=r.offsetTop)!==null&&n!==void 0?n:0,r=r.offsetParent;return a+((i=r?.offsetTop)!==null&&i!==void 0?i:0)-e.offsetTop}computeTopOffsetRatio(e,r){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return r;default:return 0}}scrollIntoViewIfPossible(e,r){let n=this.findFirstScrollableParent(e);if(e&&this.lock(this,n)){let i=this.getAbsoluteScrollOffset(n,e),a=i-n.clientHeight+e.clientHeight,s=i,l=yr(0,(s-n.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(r?.position,l)*(a-s)+s;n.scrollTo({behavior:r?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,n);this.release(this,n)}};window.FluidTopicsScrollHelper=(Fa=window.FluidTopicsScrollHelper)!==null&&Fa!==void 0?Fa:new Ua;var af=window.FluidTopicsScrollHelper;var Ha={};J(Ha,{shadowQuerySelector:()=>sf,shadowQuerySelectorAll:()=>lf});function sf(t,e,...r){var n;let i=t.querySelector(e);for(let a of r)i=(n=i?.shadowRoot)===null||n===void 0?void 0:n.querySelector(a);return i}function lf(t,e,...r){let n=[...t.querySelectorAll(e)];for(let i of r)n=n.flatMap(a=>{var s,l;return[...(l=(s=a.shadowRoot)===null||s===void 0?void 0:s.querySelectorAll(i))!==null&&l!==void 0?l:[]]});return n}var ja={};J(ja,{SearchPlaceConverter:()=>vo,SearchPlaceQueryParams:()=>Q,isSearchPlaceQueryParams:()=>Mc,serializeRequest:()=>pf});var cf=$d(mc(),1);var gc;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(gc||(gc={}));var bc;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(bc||(bc={}));var xc;(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"})(xc||(xc={}));var vc;(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"})(vc||(vc={}));var Sc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Sc||(Sc={}));var Oc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Oc||(Oc={}));var Cc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Cc||(Cc={}));var Ec;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Ec||(Ec={}));var wc;(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"})(wc||(wc={}));var Ac;(function(t){t.ASC="ASC",t.DESC="DESC"})(Ac||(Ac={}));var Rc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Rc||(Rc={}));var za;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(za||(za={}));var Pc=t=>["EVERYWHERE","TITLE_ONLY","NONE"].includes(t);var Nc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"})(Nc||(Nc={}));var _c;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(_c||(_c={}));var Lc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"})(Lc||(Lc={}));var or;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(or||(or={}));var Ic=t=>["LAST_WEEK","LAST_MONTH","LAST_QUARTER","LAST_YEAR"].includes(t);var Tc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"})(Tc||(Tc={}));var Va;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Va||(Va={}));var fe;(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.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"})(fe||(fe={}));var $c;(function(t){t.VALID="VALID",t.INVALID="INVALID"})($c||($c={}));var kc;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(kc||(kc={}));var Vx={[fe.PERSONAL_BOOK_SHARE_USER]:[fe.PERSONAL_BOOK_USER],[fe.HTML_EXPORT_USER]:[fe.PERSONAL_BOOK_USER],[fe.PDF_EXPORT_USER]:[fe.PERSONAL_BOOK_USER],[fe.KHUB_ADMIN]:[fe.CONTENT_PUBLISHER],[fe.ADMIN]:[fe.KHUB_ADMIN,fe.USERS_ADMIN,fe.PORTAL_ADMIN],[fe.DEVELOPER]:[fe.BETA_USER,fe.DEBUG_USER]};function df(t){return`"${t}"`}function Dc(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function pf(t,e){return new vo(t).serialize(e)}var Q;(function(t){t.LOCALE="content-lang",t.QUERY="query",t.SCOPE="scope",t.FILTERS="filters",t.VIRTUAL_FIELD="virtual-field",t.PERIOD="period",t.VALUE_FILTERS="value-filters",t.DATE_FILTERS="date-filters",t.RANGE_FILTERS="range-filters",t.SORT="sort",t.PER_PAGE="per-page"})(Q||(Q={}));var uf=new Set(Object.values(Q));function Mc(t){return uf.has(t)}var vo=class{constructor(e,r={},n=20,i=!1,a="en-US"){this.baseUrl=e,this.predefinedSorts=r,this.defaultPerPage=n,this.allLanguagesAllowed=i,this.defaultContentLocale=a,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"},this.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]]}serialize(e,r){return this.serializeToCurrentPageIfPossible(e,r??"/search")}serializeToCurrentPageIfPossible(e,r){let n=this.toURLSearchParams(e).toString(),i=r==null||r.trim().length===0,a=new URL(i?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${r}`);return a.search=n,a.toString()}toURLSearchParams(e,r=!1){var n,i,a,s,l,d,p,f,h,m,b,x;let C=new URLSearchParams;e.contentLocale?(!r||e.contentLocale!==this.defaultContentLocale)&&C.append(Q.LOCALE,e.contentLocale):C.append(Q.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((n=e.query)===null||n===void 0?void 0:n.length)>0&&C.append(Q.QUERY,e.query),e.scope&&e.scope!=="DEFAULT"&&C.append(Q.SCOPE,e.scope.toLowerCase()),e.virtualField&&e.virtualField!=="EVERYWHERE"&&C.append(Q.VIRTUAL_FIELD,e.virtualField.toLowerCase()),((i=e.sort)===null||i===void 0?void 0:i.length)>0&&e.sort[0].key==="ft:lastEdition"&&C.append(Q.SORT,"last_update");let N=(s=(a=e.metadataFilters)===null||a===void 0?void 0:a.filter(O=>O.valueFilter))!==null&&s!==void 0?s:[];if(N.length>0){let O=N.map(w=>{var k,U;let G=((U=(k=w.valueFilter)===null||k===void 0?void 0:k.values)!==null&&U!==void 0?U:[]).map(V=>this.escapeFilters(V)).map(V=>encodeURIComponent(df(Dc(V)))).join("_");return`${w.key}~${G}`}).join("*");C.append(Q.VALUE_FILTERS,O)}let L=(d=(l=e.metadataFilters)===null||l===void 0?void 0:l.filter(O=>O.dateFilter))!==null&&d!==void 0?d:[];if(L.length>0){let O=L.map(w=>{var k;return`${w.key}~${(k=w.dateFilter)===null||k===void 0?void 0:k.type.toLowerCase()}`}).join("*");C.append(Q.DATE_FILTERS,O)}let T=(f=(p=e.metadataFilters)===null||p===void 0?void 0:p.filter(O=>O.rangeFilter))!==null&&f!==void 0?f:[];if(T.length>0){let O=T.map(w=>{var k,U;return`${w.key}~${(k=w.rangeFilter)===null||k===void 0?void 0:k.from}_${(U=w.rangeFilter)===null||U===void 0?void 0:U.to}`}).join("*");C.append(Q.RANGE_FILTERS,O)}let E=(h=e.otherQueryParams)!==null&&h!==void 0?h:{};for(let O in E)C.append(O,E[O]);return!((m=e.paging)===null||m===void 0)&&m.perPage&&((x=(b=e.paging)===null||b===void 0?void 0:b.perPage)!==null&&x!==void 0?x:this.defaultPerPage)!=this.defaultPerPage&&C.append(Q.PER_PAGE,String(e.paging.perPage)),C}parse(e){var r;let n=e.split("?"),i=this.fromURLSearchParams(new URLSearchParams(n.slice(1).join("?"))),a=n[0].split("/search/")[1];return a==null?i:{...i,scope:(r=this.scopeMapping[a])!==null&&r!==void 0?r:i.scope}}fromURLSearchParams(e){var r,n,i,a,s,l,d,p;let f=e.get(Q.LOCALE)==="all"?void 0:e.get(Q.LOCALE),h=((r=e.get(Q.VIRTUAL_FIELD))!==null&&r!==void 0?r:"EVERYWHERE").toUpperCase(),m=((n=e.get(Q.SORT))!==null&&n!==void 0?n:"DEFAULT").toUpperCase(),b=(i=e.get(Q.SCOPE))!==null&&i!==void 0?i:"default",x=+((a=e.get(Q.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),C={};for(let N of e.keys())Mc(N)||(C[N]=e.get(N));return{contentLocale:f??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:decodeURIComponent((s=e.get(Q.QUERY))!==null&&s!==void 0?s:""),scope:(l=this.scopeMapping[b])!==null&&l!==void 0?l:"DEFAULT",virtualField:Pc(h)?h:"EVERYWHERE",sort:(p=(d=this.predefinedSorts[m])!==null&&d!==void 0?d:this.predefinedSorts.DEFAULT)!==null&&p!==void 0?p:[],metadataFilters:this.parseCompatFilters(e),facets:[],paging:{page:1,perPage:yr(1,isNaN(x)?this.defaultPerPage:x,1e3)},otherQueryParams:C}}parseCompatFilters(e){var r,n,i,a,s,l;let d=[];return e.has(Q.FILTERS)&&(d=this.parseValueFilters((r=e.get(Q.FILTERS))!==null&&r!==void 0?r:"")),(n=e.has(Q.PERIOD))!==null&&n!==void 0&&n&&(d=[...d,...this.parseLegacyPeriodFilter(((i=e.get(Q.PERIOD))!==null&&i!==void 0?i:"").toUpperCase())]),[...d,...this.parseValueFilters((a=e.get(Q.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseDateFilters((s=e.get(Q.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=e.get(Q.RANGE_FILTERS))!==null&&l!==void 0?l:"")]}splitUnknownFilter(e){return this.superEscapeFilters(decodeURIComponent(e)).split("*").map(r=>r.split("~"))}parseValueFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],valueFilter:{values:r[1].split("_").map(Dc).map(n=>this.unescapeFilterValue(n)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],dateFilter:{type:or[r[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],rangeFilter:{from:r[1].split("_")[0],to:r[1].split("_")[1]}}))}escapeFilters(e){for(let[r,n,i]of this.filtersEscapeMapping)e=e.replaceAll(r,n);return e}superEscapeFilters(e){for(let[r,n,i]of this.filtersEscapeMapping)e=e.replaceAll(n,i);return e}unescapeFilterValue(e){for(let[r,n,i]of this.filtersEscapeMapping)e=e.replace(i,r);return e}parseLegacyPeriodFilter(e){if(Ic(e))return[{key:"ft:lastEdition",dateFilter:{type:or[e]}}];if(e.startsWith("CUSTOM_")){let[r,n,i]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:n,to:i}}]}return[]}};var Ka={};J(Ka,{toFtFormComponent:()=>Ga});var yn=Symbol("elementInternals");function Ga(t,e){class r extends t{static get formAssociated(){return!0}get form(){return this[yn].form}constructor(...i){super(i),this[yn]=this.attachInternals(),this[yn].role=e}setFormValue(i){this[yn].setFormValue(i)}}return r}var Za={};J(Za,{DateFormatter:()=>Ar});var Ar=class{static format(e,r,n,i){return window.moment?window.moment(e).locale(r).format(this.getDateFormat(n,i)):e}static getDateFormat(e,r){return e?r?"lll":"ll":r?"L LT":"L"}};var qa,Ya,Xa,Ja,So=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((Xa=(Ya=(qa=window.safari)===null||qa===void 0?void 0:qa.pushNotification)===null||Ya===void 0?void 0:Ya.toString())!==null&&Xa!==void 0?Xa:"")==="[object SafariRemoteNotification]",ff="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(Ja=window.ftGlobals)!==null&&Ja!==void 0?Ja:{lit:Vn,litDecorators:Zn,litRepeat:Yn,litClassMap:Xn,litStyleMap:Jn,litUnsafeHTML:ei,wcUtils:{...ai,...ti,...li,...Za,...ci,...ui,...Wi,...ii,...ra,...Ui,...aa,...na,...$l,...pi,...ca,...pa,...Dl,...ua,...Ba,...oa,...Wa,...Ha,...ja,...Ka,isSafari:So,isTouchScreen:ff,setVariable:A}};function Bc(t){let e=eo[t];return I`
|
|
50
|
+
`;var Dl={};var ua={};J(ua,{ParametrizedLabelResolver:()=>ho});var ho=class t{constructor(e,r){this.defaultLabels=e,this.labels=r}resolve(e,...r){var n,i;e=this.resolvePluralKey(e,r);let a=(i=(n=this.labels[e])!==null&&n!==void 0?n:this.defaultLabels[e])!==null&&i!==void 0?i:"";return t.replaceParameters(a,...r)}static replaceParameters(e,...r){return r.forEach((n,i)=>e=e.replace(new RegExp(`\\{${i}([^}]*)\\}`,"g"),(a,s)=>t.formatValue(n,s))),e}resolvePluralKey(e,r){for(let n of r)if(typeof n=="number"){let i=`${String(e)}[\\=${n}]`;if(i in this.labels||i in this.defaultLabels)return i}return e}static formatValue(e,r){return e instanceof Date?t.formatDate(e,r):e??""}static formatDate(e,r){let n=i=>r?.includes("date")?e.toLocaleDateString(i):r?.includes("time")?e.toLocaleTimeString(i):e.toLocaleString(i);try{return n(document.documentElement.lang)}catch{return n()}}};var Ba={};J(Ba,{FtCommandQueue:()=>yo,FtLitElementRedux:()=>Ye,FtReduxStore:()=>Rt,clearAllStores:()=>nf,isFtReduxStore:()=>er,redux:()=>Qt,reduxEventListener:()=>Su,reduxReactive:()=>vu});var vu=()=>(t,e)=>{var r;let n=t.constructor;n.reduxReactiveProperties=new Set(n.reduxReactiveProperties),(r=n.reduxReactiveProperties)===null||r===void 0||r.add(e)},Qt=t=>{let e=t??{};return(r,n)=>{var i;let a={hasChanged:Qr,attribute:!1,...e};v(a)(r,n);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(i=e.selector)!==null&&i!==void 0?i:l=>l[n],store:e.store})}},Su=t=>(e,r)=>{let n=e.constructor;n.reduxEventListeners=new Map(n.reduxEventListeners),n.reduxEventListeners.set(r,t)};var yo=class{constructor(){this.queue=[]}add(e,r=!1){r&&(this.queue=this.queue.filter(n=>n.type!==e.type)),this.queue.push(e)}consume(e){let r=this.queue.find(n=>n.type===e);return r&&(this.queue=this.queue.filter(n=>n!==r)),r}};function er(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Ml,Bl,Fl,mo=Symbol("internalReduxEventsUnsubscribers"),St=Symbol("internalStoresUnsubscribers"),tr=Symbol("internalStores"),Ye=class extends H{constructor(){super(...arguments),this[Ml]=new Map,this[Bl]=new Map,this[Fl]=new Map}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(r=>e.has(r))&&this.updateFromStores()}getUnnamedStore(){if(this[tr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[tr].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[tr].get(e)}addStore(e,r){var n;r=(n=r??(er(e)?e.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(r),this[tr].set(r,e),this.subscribeToStore(r,e),this.updateFromStores()}removeStore(e){let r=typeof e=="string"?e:e.name;this.unsubscribeFromStore(r),this[tr].delete(r)}setupStores(){this.unsubscribeFromStores(),this[tr].forEach((e,r)=>this.subscribeToStore(r,e)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((e,r)=>{let n=this.constructor.getPropertyOptions(r);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:r)){let i=this.getStore(e.store);i&&(e.store?this[St].has(e.store):this[St].size>0)&&(this[r]=e.selector(i.getState(),this))}})}subscribeToStore(e,r){var n;this[St].set(e,r.subscribe(()=>this.updateFromStores())),this[mo].set(e,[]),er(r)&&r.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((i,a)=>{if(typeof this[a]=="function"&&(!i.store||r.name===i.store)){let s=l=>this[a](l);r.addEventListener(i.eventName,s),this[mo].get(e).push(()=>r.removeEventListener(i.eventName,s))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[St].forEach((e,r)=>this.unsubscribeFromStore(r))}unsubscribeFromStore(e){var r;this[St].has(e)&&this[St].get(e)(),this[St].delete(e),(r=this[mo].get(e))===null||r===void 0||r.forEach(n=>n()),this[mo].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Ml=St,Bl=tr,Fl=mo;Ye.reduxProperties=new Map;Ye.reduxReactiveProperties=new Set;Ye.reduxEventListeners=new Map;function Me(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];if(0)var i,a;throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function dt(t){return!!t&&!!t[re]}function Ue(t){var e;return!!t&&(function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===_u}(t)||Array.isArray(t)||!!t[Gl]||!!(!((e=t.constructor)===null||e===void 0)&&e[Gl])||Sa(t)||Oa(t))}function rr(t,e,r){r===void 0&&(r=!1),Or(t)===0?(r?Object.keys:Sr)(t).forEach(function(n){r&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,i){return e(i,n,t)})}function Or(t){var e=t[re];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Sa(t)?2:Oa(t)?3:0}function vr(t,e){return Or(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Ou(t,e){return Or(t)===2?t.get(e):t[e]}function Kl(t,e,r){var n=Or(t);n===2?t.set(e,r):n===3?t.add(r):t[e]=r}function Zl(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Sa(t){return Ru&&t instanceof Map}function Oa(t){return Nu&&t instanceof Set}function Ot(t){return t.o||t.t}function Ca(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Xl(t);delete e[re];for(var r=Sr(e),n=0;n<r.length;n++){var i=r[n],a=e[i];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function Ea(t,e){return e===void 0&&(e=!1),wa(t)||dt(t)||!Ue(t)||(Or(t)>1&&(t.set=t.add=t.clear=t.delete=Cu),Object.freeze(t),e&&rr(t,function(r,n){return Ea(n,!0)},!0)),t}function Cu(){Me(2)}function wa(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Xe(t){var e=va[t];return e||Me(18,t),e}function Eu(t,e){va[t]||(va[t]=e)}function ga(){return bo}function fa(t,e){e&&(Xe("Patches"),t.u=[],t.s=[],t.v=e)}function an(t){ba(t),t.p.forEach(wu),t.p=null}function ba(t){t===bo&&(bo=t.l)}function Ul(t){return bo={p:[],l:bo,h:t,m:!0,_:0}}function wu(t){var e=t[re];e.i===0||e.i===1?e.j():e.g=!0}function ha(t,e){e._=e.p.length;var r=e.p[0],n=t!==void 0&&t!==r;return e.h.O||Xe("ES5").S(e,t,n),n?(r[re].P&&(an(e),Me(4)),Ue(t)&&(t=sn(e,t),e.l||ln(e,t)),e.u&&Xe("Patches").M(r[re].t,t,e.u,e.s)):t=sn(e,r,[]),an(e),e.u&&e.v(e.u,e.s),t!==Yl?t:void 0}function sn(t,e,r){if(wa(e))return e;var n=e[re];if(!n)return rr(e,function(l,d){return Wl(t,n,e,l,d,r)},!0),e;if(n.A!==t)return e;if(!n.P)return ln(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=Ca(n.k):n.o,a=i,s=!1;n.i===3&&(a=new Set(i),i.clear(),s=!0),rr(a,function(l,d){return Wl(t,n,i,l,d,r,s)}),ln(t,i,!1),r&&t.u&&Xe("Patches").N(n,r,t.u,t.s)}return n.o}function Wl(t,e,r,n,i,a,s){if(dt(i)){var l=sn(t,i,a&&e&&e.i!==3&&!vr(e.R,n)?a.concat(n):void 0);if(Kl(r,n,l),!dt(l))return;t.m=!1}else s&&r.add(i);if(Ue(i)&&!wa(i)){if(!t.h.D&&t._<1)return;sn(t,i),e&&e.A.l||ln(t,i)}}function ln(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&Ea(e,r)}function ya(t,e){var r=t[re];return(r?Ot(r):t)[e]}function Hl(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var n=Object.getOwnPropertyDescriptor(r,e);if(n)return n;r=Object.getPrototypeOf(r)}}function Ct(t){t.P||(t.P=!0,t.l&&Ct(t.l))}function ma(t){t.o||(t.o=Ca(t.t))}function xa(t,e,r){var n=Sa(e)?Xe("MapSet").F(e,r):Oa(e)?Xe("MapSet").T(e,r):t.O?function(i,a){var s=Array.isArray(i),l={i:s?1:0,A:a?a.A:ga(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},d=l,p=xo;s&&(d=[l],p=go);var f=Proxy.revocable(d,p),h=f.revoke,m=f.proxy;return l.k=m,l.j=h,m}(e,r):Xe("ES5").J(e,r);return(r?r.A:ga()).p.push(n),n}function Au(t){return dt(t)||Me(22,t),function e(r){if(!Ue(r))return r;var n,i=r[re],a=Or(r);if(i){if(!i.P&&(i.i<4||!Xe("ES5").K(i)))return i.t;i.I=!0,n=zl(r,a),i.I=!1}else n=zl(r,a);return rr(n,function(s,l){i&&Ou(i.t,s)===l||Kl(n,s,e(l))}),a===3?new Set(n):n}(t)}function zl(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Ca(t)}function ql(){function t(s,l){var d=a[s];return d?d.enumerable=l:a[s]=d={configurable:!0,enumerable:l,get:function(){var p=this[re];return xo.get(p,s)},set:function(p){var f=this[re];xo.set(f,s,p)}},d}function e(s){for(var l=s.length-1;l>=0;l--){var d=s[l][re];if(!d.P)switch(d.i){case 5:n(d)&&Ct(d);break;case 4:r(d)&&Ct(d)}}}function r(s){for(var l=s.t,d=s.k,p=Sr(d),f=p.length-1;f>=0;f--){var h=p[f];if(h!==re){var m=l[h];if(m===void 0&&!vr(l,h))return!0;var b=d[h],x=b&&b[re];if(x?x.t!==m:!Zl(b,m))return!0}}var C=!!l[re];return p.length!==Sr(l).length+(C?0:1)}function n(s){var l=s.k;if(l.length!==s.t.length)return!0;var d=Object.getOwnPropertyDescriptor(l,l.length-1);if(d&&!d.get)return!0;for(var p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function i(s){s.g&&Me(3,JSON.stringify(Ot(s)))}var a={};Eu("ES5",{J:function(s,l){var d=Array.isArray(s),p=function(h,m){if(h){for(var b=Array(m.length),x=0;x<m.length;x++)Object.defineProperty(b,""+x,t(x,!0));return b}var C=Xl(m);delete C[re];for(var N=Sr(C),L=0;L<N.length;L++){var T=N[L];C[T]=t(T,h||!!C[T].enumerable)}return Object.create(Object.getPrototypeOf(m),C)}(d,s),f={i:d?5:4,A:l?l.A:ga(),P:!1,I:!1,R:{},l,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,re,{value:f,writable:!0}),p},S:function(s,l,d){d?dt(l)&&l[re].A===s&&e(s.p):(s.u&&function p(f){if(f&&typeof f=="object"){var h=f[re];if(h){var m=h.t,b=h.k,x=h.R,C=h.i;if(C===4)rr(b,function(O){O!==re&&(m[O]!==void 0||vr(m,O)?x[O]||p(b[O]):(x[O]=!0,Ct(h)))}),rr(m,function(O){b[O]!==void 0||vr(b,O)||(x[O]=!1,Ct(h))});else if(C===5){if(n(h)&&(Ct(h),x.length=!0),b.length<m.length)for(var N=b.length;N<m.length;N++)x[N]=!1;else for(var L=m.length;L<b.length;L++)x[L]=!0;for(var T=Math.min(b.length,m.length),E=0;E<T;E++)b.hasOwnProperty(E)||(x[E]=!0),x[E]===void 0&&p(b[E])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?r(s):n(s)}})}var Vl,bo,Aa=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Ru=typeof Map<"u",Nu=typeof Set<"u",jl=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Yl=Aa?Symbol.for("immer-nothing"):((Vl={})["immer-nothing"]=!0,Vl),Gl=Aa?Symbol.for("immer-draftable"):"__$immer_draftable",re=Aa?Symbol.for("immer-state"):"__$immer_state";var _u=""+Object.prototype.constructor,Sr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Xl=Object.getOwnPropertyDescriptors||function(t){var e={};return Sr(t).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)}),e},va={},xo={get:function(t,e){if(e===re)return t;var r=Ot(t);if(!vr(r,e))return function(i,a,s){var l,d=Hl(a,s);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(i.k):void 0}(t,r,e);var n=r[e];return t.I||!Ue(n)?n:n===ya(t.t,e)?(ma(t),t.o[e]=xa(t.A.h,n,t)):n},has:function(t,e){return e in Ot(t)},ownKeys:function(t){return Reflect.ownKeys(Ot(t))},set:function(t,e,r){var n=Hl(Ot(t),e);if(n?.set)return n.set.call(t.k,r),!0;if(!t.P){var i=ya(Ot(t),e),a=i?.[re];if(a&&a.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(Zl(r,i)&&(r!==void 0||vr(t.t,e)))return!0;ma(t),Ct(t)}return t.o[e]===r&&(r!==void 0||e in t.o)||Number.isNaN(r)&&Number.isNaN(t.o[e])||(t.o[e]=r,t.R[e]=!0),!0},deleteProperty:function(t,e){return ya(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,ma(t),Ct(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=Ot(t),n=Reflect.getOwnPropertyDescriptor(r,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:r[e]}},defineProperty:function(){Me(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Me(12)}},go={};rr(xo,function(t,e){go[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),go.deleteProperty=function(t,e){return go.set.call(this,t,e,void 0)},go.set=function(t,e,r){return xo.set.call(this,t[0],e,r,t[0])};var Lu=function(){function t(r){var n=this;this.O=jl,this.D=!0,this.produce=function(i,a,s){if(typeof i=="function"&&typeof a!="function"){var l=a;a=i;var d=n;return function(C){var N=this;C===void 0&&(C=l);for(var L=arguments.length,T=Array(L>1?L-1:0),E=1;E<L;E++)T[E-1]=arguments[E];return d.produce(C,function(O){var w;return(w=a).call.apply(w,[N,O].concat(T))})}}var p;if(typeof a!="function"&&Me(6),s!==void 0&&typeof s!="function"&&Me(7),Ue(i)){var f=Ul(n),h=xa(n,i,void 0),m=!0;try{p=a(h),m=!1}finally{m?an(f):ba(f)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(C){return fa(f,s),ha(C,f)},function(C){throw an(f),C}):(fa(f,s),ha(p,f))}if(!i||typeof i!="object"){if((p=a(i))===void 0&&(p=i),p===Yl&&(p=void 0),n.D&&Ea(p,!0),s){var b=[],x=[];Xe("Patches").M(i,p,b,x),s(b,x)}return p}Me(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(p){for(var f=arguments.length,h=Array(f>1?f-1:0),m=1;m<f;m++)h[m-1]=arguments[m];return n.produceWithPatches(p,function(b){return i.apply(void 0,[b].concat(h))})};var s,l,d=n.produce(i,a,function(p,f){s=p,l=f});return typeof Promise<"u"&&d instanceof Promise?d.then(function(p){return[p,s,l]}):[d,s,l]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=t.prototype;return e.createDraft=function(r){Ue(r)||Me(8),dt(r)&&(r=Au(r));var n=Ul(this),i=xa(this,r,void 0);return i[re].C=!0,ba(n),i},e.finishDraft=function(r,n){var i=r&&r[re],a=i.A;return fa(a,n),ha(void 0,a)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!jl&&Me(20),this.O=r},e.applyPatches=function(r,n){var i;for(i=n.length-1;i>=0;i--){var a=n[i];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}i>-1&&(n=n.slice(i+1));var s=Xe("Patches").$;return dt(r)?s(r,n):this.produce(r,function(l){return s(l,n)})},t}(),$e=new Lu,Tu=$e.produce,Vb=$e.produceWithPatches.bind($e),jb=$e.setAutoFreeze.bind($e),Gb=$e.setUseProxies.bind($e),Kb=$e.applyPatches.bind($e),Zb=$e.createDraft.bind($e),qb=$e.finishDraft.bind($e),cn=Tu;function Et(t){"@babel/helpers - typeof";return Et=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},Et(t)}function Ra(t,e){if(Et(t)!=="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Et(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Na(t){var e=Ra(t,"string");return Et(e)==="symbol"?e:String(e)}function _a(t,e,r){return e=Na(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Jl(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function dn(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Jl(Object(r),!0).forEach(function(n){_a(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Jl(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function ge(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 Ql=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),La=function(){return Math.random().toString(36).substring(7).split("").join(".")},pn={INIT:"@@redux/INIT"+La(),REPLACE:"@@redux/REPLACE"+La(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+La()}};function Pu(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 Ta(t,e,r){var n;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(ge(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(ge(1));return r(Ta)(t,e)}if(typeof t!="function")throw new Error(ge(2));var i=t,a=e,s=[],l=s,d=!1;function p(){l===s&&(l=s.slice())}function f(){if(d)throw new Error(ge(3));return a}function h(C){if(typeof C!="function")throw new Error(ge(4));if(d)throw new Error(ge(5));var N=!0;return p(),l.push(C),function(){if(N){if(d)throw new Error(ge(6));N=!1,p();var T=l.indexOf(C);l.splice(T,1),s=null}}}function m(C){if(!Pu(C))throw new Error(ge(7));if(typeof C.type>"u")throw new Error(ge(8));if(d)throw new Error(ge(9));try{d=!0,a=i(a,C)}finally{d=!1}for(var N=s=l,L=0;L<N.length;L++){var T=N[L];T()}return C}function b(C){if(typeof C!="function")throw new Error(ge(10));i=C,m({type:pn.REPLACE})}function x(){var C,N=h;return C={subscribe:function(T){if(typeof T!="object"||T===null)throw new Error(ge(11));function E(){T.next&&T.next(f())}E();var O=N(E);return{unsubscribe:O}}},C[Ql]=function(){return this},C}return m({type:pn.INIT}),n={dispatch:m,subscribe:h,getState:f,replaceReducer:b},n[Ql]=x,n}function Iu(t){Object.keys(t).forEach(function(e){var r=t[e],n=r(void 0,{type:pn.INIT});if(typeof n>"u")throw new Error(ge(12));if(typeof r(void 0,{type:pn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ge(13))})}function ec(t){for(var e=Object.keys(t),r={},n=0;n<e.length;n++){var i=e[n];typeof t[i]=="function"&&(r[i]=t[i])}var a=Object.keys(r),s,l;try{Iu(r)}catch(d){l=d}return function(p,f){if(p===void 0&&(p={}),l)throw l;if(0)var h;for(var m=!1,b={},x=0;x<a.length;x++){var C=a[x],N=r[C],L=p[C],T=N(L,f);if(typeof T>"u"){var E=f&&f.type;throw new Error(ge(14))}b[C]=T,m=m||T!==L}return m=m||a.length!==Object.keys(p).length,m?b:p}}function Cr(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function tc(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(n){return function(){var i=n.apply(void 0,arguments),a=function(){throw new Error(ge(15))},s={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=e.map(function(d){return d(s)});return a=Cr.apply(void 0,l)(i.dispatch),dn(dn({},i),{},{dispatch:a})}}}function rc(t){var e=function(n){var i=n.dispatch,a=n.getState;return function(s){return function(l){return typeof l=="function"?l(i,a,t):s(l)}}};return e}var oc=rc();oc.withExtraArgument=rc;var Pa=oc;var lc=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),$u=function(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(p){return function(f){return d([p,f])}}function d(p){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=p[0]&2?i.return:p[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,p[1])).done)return a;switch(i=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return r.label++,{value:p[1],done:!1};case 5:r.label++,i=p[1],p=[0];continue;case 7:p=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){r=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){r.label=p[1];break}if(p[0]===6&&r.label<a[1]){r.label=a[1],a=p;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(p);break}a[2]&&r.ops.pop(),r.trys.pop();continue}p=e.call(t,r)}catch(f){p=[6,f],i=0}finally{n=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Er=function(t,e){for(var r=0,n=e.length,i=t.length;r<n;r++,i++)t[i]=e[r];return t},ku=Object.defineProperty,Du=Object.defineProperties,Mu=Object.getOwnPropertyDescriptors,nc=Object.getOwnPropertySymbols,Bu=Object.prototype.hasOwnProperty,Fu=Object.prototype.propertyIsEnumerable,ic=function(t,e,r){return e in t?ku(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},wt=function(t,e){for(var r in e||(e={}))Bu.call(e,r)&&ic(t,r,e[r]);if(nc)for(var n=0,i=nc(e);n<i.length;n++){var r=i[n];Fu.call(e,r)&&ic(t,r,e[r])}return t},Ia=function(t,e){return Du(t,Mu(e))},Uu=function(t,e,r){return new Promise(function(n,i){var a=function(d){try{l(r.next(d))}catch(p){i(p)}},s=function(d){try{l(r.throw(d))}catch(p){i(p)}},l=function(d){return d.done?n(d.value):Promise.resolve(d.value).then(a,s)};l((r=r.apply(t,e)).next())})};var Wu=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Cr:Cr.apply(null,arguments)},fx=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Hu(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return e===r}var zu=function(t){lc(e,t);function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=t.apply(this,r)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,Er([void 0],r[0].concat(this)))):new(e.bind.apply(e,Er([void 0],r.concat(this))))},e}(Array),Vu=function(t){lc(e,t);function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=t.apply(this,r)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,Er([void 0],r[0].concat(this)))):new(e.bind.apply(e,Er([void 0],r.concat(this))))},e}(Array);function Da(t){return Ue(t)?cn(t,function(){}):t}function ju(t){return typeof t=="boolean"}function Gu(){return function(e){return Ku(e)}}function Ku(t){t===void 0&&(t={});var e=t.thunk,r=e===void 0?!0:e,n=t.immutableCheck,i=n===void 0?!0:n,a=t.serializableCheck,s=a===void 0?!0:a,l=new zu;if(r&&(ju(r)?l.push(Pa):l.push(Pa.withExtraArgument(r.extraArgument))),0){if(i)var d;if(s)var p}return l}var $a=!0;function cc(t){var e=Gu(),r=t||{},n=r.reducer,i=n===void 0?void 0:n,a=r.middleware,s=a===void 0?e():a,l=r.devTools,d=l===void 0?!0:l,p=r.preloadedState,f=p===void 0?void 0:p,h=r.enhancers,m=h===void 0?void 0:h,b;if(typeof i=="function")b=i;else if(Hu(i))b=ec(i);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var x=s;if(typeof x=="function"&&(x=x(e),!$a&&!Array.isArray(x)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!$a&&x.some(function(O){return typeof O!="function"}))throw new Error("each middleware provided to configureStore must be a function");var C=tc.apply(void 0,x),N=Cr;d&&(N=Wu(wt({trace:!$a},typeof d=="object"&&d)));var L=new Vu(C),T=L;Array.isArray(m)?T=Er([C],m):typeof m=="function"&&(T=m(L));var E=N.apply(void 0,T);return Ta(b,f,E)}function At(t,e){function r(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(e){var a=e.apply(void 0,n);if(!a)throw new Error("prepareAction did not return an object");return wt(wt({type:t,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:t,payload:n[0]}}return r.toString=function(){return""+t},r.type=t,r.match=function(n){return n.type===t},r}function dc(t){var e={},r=[],n,i={addCase:function(a,s){var l=typeof a=="string"?a:a.type;if(l in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[l]=s,i},addMatcher:function(a,s){return r.push({matcher:a,reducer:s}),i},addDefaultCase:function(a){return n=a,i}};return t(i),[e,r,n]}function Zu(t){return typeof t=="function"}function qu(t,e,r,n){r===void 0&&(r=[]);var i=typeof e=="function"?dc(e):[e,r,n],a=i[0],s=i[1],l=i[2],d;if(Zu(t))d=function(){return Da(t())};else{var p=Da(t);d=function(){return p}}function f(h,m){h===void 0&&(h=d());var b=Er([a[m.type]],s.filter(function(x){var C=x.matcher;return C(m)}).map(function(x){var C=x.reducer;return C}));return b.filter(function(x){return!!x}).length===0&&(b=[l]),b.reduce(function(x,C){if(C)if(dt(x)){var N=x,L=C(N,m);return L===void 0?x:L}else{if(Ue(x))return cn(x,function(T){return C(T,m)});var L=C(x,m);if(L===void 0){if(x===null)return x;throw Error("A case reducer on a non-draftable value must not return undefined")}return L}return x},h)}return f.getInitialState=d,f}function Yu(t,e){return t+"/"+e}function pc(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof t.initialState=="function"?t.initialState:Da(t.initialState),n=t.reducers||{},i=Object.keys(n),a={},s={},l={};i.forEach(function(f){var h=n[f],m=Yu(e,f),b,x;"reducer"in h?(b=h.reducer,x=h.prepare):b=h,a[f]=b,s[m]=b,l[f]=x?At(m,x):At(m)});function d(){var f=typeof t.extraReducers=="function"?dc(t.extraReducers):[t.extraReducers],h=f[0],m=h===void 0?{}:h,b=f[1],x=b===void 0?[]:b,C=f[2],N=C===void 0?void 0:C,L=wt(wt({},m),s);return qu(r,function(T){for(var E in L)T.addCase(E,L[E]);for(var O=0,w=x;O<w.length;O++){var k=w[O];T.addMatcher(k.matcher,k.reducer)}N&&T.addDefaultCase(N)})}var p;return{name:e,reducer:function(f,h){return p||(p=d()),p(f,h)},actions:l,caseReducers:a,getInitialState:function(){return p||(p=d()),p.getInitialState()}}}var Xu="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Ju=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=Xu[Math.random()*64|0];return e},Qu=["name","message","stack","code"],ka=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),ac=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),ef=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,n=Qu;r<n.length;r++){var i=n[r];typeof t[i]=="string"&&(e[i]=t[i])}return e}return{message:String(t)}},gx=function(){function t(e,r,n){var i=At(e+"/fulfilled",function(f,h,m,b){return{payload:f,meta:Ia(wt({},b||{}),{arg:m,requestId:h,requestStatus:"fulfilled"})}}),a=At(e+"/pending",function(f,h,m){return{payload:void 0,meta:Ia(wt({},m||{}),{arg:h,requestId:f,requestStatus:"pending"})}}),s=At(e+"/rejected",function(f,h,m,b,x){return{payload:b,error:(n&&n.serializeError||ef)(f||"Rejected"),meta:Ia(wt({},x||{}),{arg:m,requestId:h,rejectedWithValue:!!b,requestStatus:"rejected",aborted:f?.name==="AbortError",condition:f?.name==="ConditionError"})}}),l=!1,d=typeof AbortController<"u"?AbortController:function(){function f(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return f.prototype.abort=function(){},f}();function p(f){return function(h,m,b){var x=n?.idGenerator?n.idGenerator(f):Ju(),C=new d,N,L=!1;function T(O){N=O,C.abort()}var E=function(){return Uu(this,null,function(){var O,w,k,U,G,V,M;return $u(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),U=(O=n?.condition)==null?void 0:O.call(n,f,{getState:m,extra:b}),rf(U)?[4,U]:[3,2];case 1:U=y.sent(),y.label=2;case 2:if(U===!1||C.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return L=!0,G=new Promise(function(S,D){return C.signal.addEventListener("abort",function(){return D({name:"AbortError",message:N||"Aborted"})})}),h(a(x,f,(w=n?.getPendingMeta)==null?void 0:w.call(n,{requestId:x,arg:f},{getState:m,extra:b}))),[4,Promise.race([G,Promise.resolve(r(f,{dispatch:h,getState:m,extra:b,requestId:x,signal:C.signal,abort:T,rejectWithValue:function(S,D){return new ka(S,D)},fulfillWithValue:function(S,D){return new ac(S,D)}})).then(function(S){if(S instanceof ka)throw S;return S instanceof ac?i(S.payload,x,f,S.meta):i(S,x,f)})])];case 3:return k=y.sent(),[3,5];case 4:return V=y.sent(),k=V instanceof ka?s(null,x,f,V.payload,V.meta):s(V,x,f),[3,5];case 5:return M=n&&!n.dispatchConditionRejection&&s.match(k)&&k.meta.condition,M||h(k),[2,k]}})})}();return Object.assign(E,{abort:T,requestId:x,arg:f,unwrap:function(){return E.then(tf)}})}}return Object.assign(p,{pending:a,rejected:s,fulfilled:i,typePrefix:e})}return t.withTypes=function(){return t},t}();function tf(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function rf(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var uc="listener",fc="completed",hc="cancelled",bx="task-"+hc,xx="task-"+fc,vx=uc+"-"+hc,Sx=uc+"-"+fc;var Ma="listenerMiddleware";var Ox=At(Ma+"/add"),Cx=At(Ma+"/removeAll"),Ex=At(Ma+"/remove");var sc,wx=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(sc||(sc=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},of=function(t){return function(e){setTimeout(e,t)}},Ax=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:of(10);ql();window.ftReduxStores||(window.ftReduxStores={});var Rt=class t extends Kt{static get(e){var r;let n=typeof e=="string"?e:e.name,i=typeof e=="string"?void 0:e,a=window.ftReduxStores[n];if(er(a))return a;if(i==null)return;let s=pc({...i,reducers:(r=i.reducers)!==null&&r!==void 0?r:{}}),l=cc({reducer:(d,p)=>p.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...d,...p.overwrites}:s.reducer(d,p)});return window.ftReduxStores[i.name]=new t(s,l)}constructor(e,r){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new yo,this.actions=new Proxy(this.reduxSlice.actions,{get:(n,i,a)=>{let s=i,l=n[s];return l?(...d)=>{let p=l(...d);return this.reduxStore.dispatch(p),p}:d=>{this.setState({[s]:d})}}})}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()}};function nf(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))er(e)&&e.clear()}var Wa={};J(Wa,{scrollHelper:()=>af});var Fa,un=new Map,Ua=class{lock(e,r){if(r){let n=un.get(r);if(n==null||n===e)return un.set(r,e),r}}release(e,r){r&&un.get(r)===e&&un.delete(r)}findFirstScrollableParent(e){var r;let n,i;for(let a of di(e)){let s=a,l=this.elementCanScroll(s);if(l&&s.clientHeight&&s.clientHeight<s.scrollHeight){n=s;break}else l&&i==null&&(i=s)}return(r=n??i)!==null&&r!==void 0?r:document.body}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)}catch{return!1}}getAbsoluteScrollOffset(e,r){var n,i;let a=0;for(;r&&r.offsetParent!==e.offsetParent;)a+=(n=r.offsetTop)!==null&&n!==void 0?n:0,r=r.offsetParent;return a+((i=r?.offsetTop)!==null&&i!==void 0?i:0)-e.offsetTop}computeTopOffsetRatio(e,r){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return r;default:return 0}}scrollIntoViewIfPossible(e,r){let n=this.findFirstScrollableParent(e);if(e&&this.lock(this,n)){let i=this.getAbsoluteScrollOffset(n,e),a=i-n.clientHeight+e.clientHeight,s=i,l=yr(0,(s-n.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(r?.position,l)*(a-s)+s;n.scrollTo({behavior:r?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,n);this.release(this,n)}};window.FluidTopicsScrollHelper=(Fa=window.FluidTopicsScrollHelper)!==null&&Fa!==void 0?Fa:new Ua;var af=window.FluidTopicsScrollHelper;var Ha={};J(Ha,{shadowQuerySelector:()=>sf,shadowQuerySelectorAll:()=>lf});function sf(t,e,...r){var n;let i=t.querySelector(e);for(let a of r)i=(n=i?.shadowRoot)===null||n===void 0?void 0:n.querySelector(a);return i}function lf(t,e,...r){let n=[...t.querySelectorAll(e)];for(let i of r)n=n.flatMap(a=>{var s,l;return[...(l=(s=a.shadowRoot)===null||s===void 0?void 0:s.querySelectorAll(i))!==null&&l!==void 0?l:[]]});return n}var ja={};J(ja,{SearchPlaceConverter:()=>vo,SearchPlaceQueryParams:()=>Q,isSearchPlaceQueryParams:()=>Mc,serializeRequest:()=>pf});var cf=$d(mc(),1);var gc;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(gc||(gc={}));var bc;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(bc||(bc={}));var xc;(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"})(xc||(xc={}));var vc;(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"})(vc||(vc={}));var Sc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Sc||(Sc={}));var Oc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Oc||(Oc={}));var Cc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Cc||(Cc={}));var Ec;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Ec||(Ec={}));var wc;(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"})(wc||(wc={}));var Ac;(function(t){t.ASC="ASC",t.DESC="DESC"})(Ac||(Ac={}));var Rc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Rc||(Rc={}));var za;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(za||(za={}));var Pc=t=>["EVERYWHERE","TITLE_ONLY","NONE"].includes(t);var Nc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"})(Nc||(Nc={}));var _c;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(_c||(_c={}));var Lc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"})(Lc||(Lc={}));var or;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(or||(or={}));var Ic=t=>["LAST_WEEK","LAST_MONTH","LAST_QUARTER","LAST_YEAR"].includes(t);var Tc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"})(Tc||(Tc={}));var Va;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Va||(Va={}));var ue;(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"})(ue||(ue={}));var $c;(function(t){t.VALID="VALID",t.INVALID="INVALID"})($c||($c={}));var kc;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(kc||(kc={}));var Vx={[ue.PERSONAL_BOOK_SHARE_USER]:[ue.PERSONAL_BOOK_USER],[ue.HTML_EXPORT_USER]:[ue.PERSONAL_BOOK_USER],[ue.PDF_EXPORT_USER]:[ue.PERSONAL_BOOK_USER],[ue.KHUB_ADMIN]:[ue.CONTENT_PUBLISHER],[ue.ADMIN]:[ue.KHUB_ADMIN,ue.USERS_ADMIN,ue.PORTAL_ADMIN],[ue.DEVELOPER]:[ue.BETA_USER,ue.DEBUG_USER],[ue.GENERATIVE_AI_EXPORT_USER]:[ue.GENERATIVE_AI_USER]};function df(t){return`"${t}"`}function Dc(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function pf(t,e){return new vo(t).serialize(e)}var Q;(function(t){t.LOCALE="content-lang",t.QUERY="query",t.SCOPE="scope",t.FILTERS="filters",t.VIRTUAL_FIELD="virtual-field",t.PERIOD="period",t.VALUE_FILTERS="value-filters",t.DATE_FILTERS="date-filters",t.RANGE_FILTERS="range-filters",t.SORT="sort",t.PER_PAGE="per-page"})(Q||(Q={}));var uf=new Set(Object.values(Q));function Mc(t){return uf.has(t)}var vo=class{constructor(e,r={},n=20,i=!1,a="en-US"){this.baseUrl=e,this.predefinedSorts=r,this.defaultPerPage=n,this.allLanguagesAllowed=i,this.defaultContentLocale=a,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"},this.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]]}serialize(e,r){return this.serializeToCurrentPageIfPossible(e,r??"/search")}serializeToCurrentPageIfPossible(e,r){let n=this.toURLSearchParams(e).toString(),i=r==null||r.trim().length===0,a=new URL(i?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${r}`);return a.search=n,a.toString()}toURLSearchParams(e,r=!1){var n,i,a,s,l,d,p,f,h,m,b,x;let C=new URLSearchParams;e.contentLocale?(!r||e.contentLocale!==this.defaultContentLocale)&&C.append(Q.LOCALE,e.contentLocale):C.append(Q.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((n=e.query)===null||n===void 0?void 0:n.length)>0&&C.append(Q.QUERY,e.query),e.scope&&e.scope!=="DEFAULT"&&C.append(Q.SCOPE,e.scope.toLowerCase()),e.virtualField&&e.virtualField!=="EVERYWHERE"&&C.append(Q.VIRTUAL_FIELD,e.virtualField.toLowerCase()),((i=e.sort)===null||i===void 0?void 0:i.length)>0&&e.sort[0].key==="ft:lastEdition"&&C.append(Q.SORT,"last_update");let N=(s=(a=e.metadataFilters)===null||a===void 0?void 0:a.filter(O=>O.valueFilter))!==null&&s!==void 0?s:[];if(N.length>0){let O=N.map(w=>{var k,U;let G=((U=(k=w.valueFilter)===null||k===void 0?void 0:k.values)!==null&&U!==void 0?U:[]).map(V=>this.escapeFilters(V)).map(V=>encodeURIComponent(df(Dc(V)))).join("_");return`${w.key}~${G}`}).join("*");C.append(Q.VALUE_FILTERS,O)}let L=(d=(l=e.metadataFilters)===null||l===void 0?void 0:l.filter(O=>O.dateFilter))!==null&&d!==void 0?d:[];if(L.length>0){let O=L.map(w=>{var k;return`${w.key}~${(k=w.dateFilter)===null||k===void 0?void 0:k.type.toLowerCase()}`}).join("*");C.append(Q.DATE_FILTERS,O)}let T=(f=(p=e.metadataFilters)===null||p===void 0?void 0:p.filter(O=>O.rangeFilter))!==null&&f!==void 0?f:[];if(T.length>0){let O=T.map(w=>{var k,U;return`${w.key}~${(k=w.rangeFilter)===null||k===void 0?void 0:k.from}_${(U=w.rangeFilter)===null||U===void 0?void 0:U.to}`}).join("*");C.append(Q.RANGE_FILTERS,O)}let E=(h=e.otherQueryParams)!==null&&h!==void 0?h:{};for(let O in E)C.append(O,E[O]);return!((m=e.paging)===null||m===void 0)&&m.perPage&&((x=(b=e.paging)===null||b===void 0?void 0:b.perPage)!==null&&x!==void 0?x:this.defaultPerPage)!=this.defaultPerPage&&C.append(Q.PER_PAGE,String(e.paging.perPage)),C}parse(e){var r;let n=e.split("?"),i=this.fromURLSearchParams(new URLSearchParams(n.slice(1).join("?"))),a=n[0].split("/search/")[1];return a==null?i:{...i,scope:(r=this.scopeMapping[a])!==null&&r!==void 0?r:i.scope}}fromURLSearchParams(e){var r,n,i,a,s,l,d,p;let f=e.get(Q.LOCALE)==="all"?void 0:e.get(Q.LOCALE),h=((r=e.get(Q.VIRTUAL_FIELD))!==null&&r!==void 0?r:"EVERYWHERE").toUpperCase(),m=((n=e.get(Q.SORT))!==null&&n!==void 0?n:"DEFAULT").toUpperCase(),b=(i=e.get(Q.SCOPE))!==null&&i!==void 0?i:"default",x=+((a=e.get(Q.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),C={};for(let N of e.keys())Mc(N)||(C[N]=e.get(N));return{contentLocale:f??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:decodeURIComponent((s=e.get(Q.QUERY))!==null&&s!==void 0?s:""),scope:(l=this.scopeMapping[b])!==null&&l!==void 0?l:"DEFAULT",virtualField:Pc(h)?h:"EVERYWHERE",sort:(p=(d=this.predefinedSorts[m])!==null&&d!==void 0?d:this.predefinedSorts.DEFAULT)!==null&&p!==void 0?p:[],metadataFilters:this.parseCompatFilters(e),facets:[],paging:{page:1,perPage:yr(1,isNaN(x)?this.defaultPerPage:x,1e3)},otherQueryParams:C}}parseCompatFilters(e){var r,n,i,a,s,l;let d=[];return e.has(Q.FILTERS)&&(d=this.parseValueFilters((r=e.get(Q.FILTERS))!==null&&r!==void 0?r:"")),(n=e.has(Q.PERIOD))!==null&&n!==void 0&&n&&(d=[...d,...this.parseLegacyPeriodFilter(((i=e.get(Q.PERIOD))!==null&&i!==void 0?i:"").toUpperCase())]),[...d,...this.parseValueFilters((a=e.get(Q.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseDateFilters((s=e.get(Q.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=e.get(Q.RANGE_FILTERS))!==null&&l!==void 0?l:"")]}splitUnknownFilter(e){return this.superEscapeFilters(decodeURIComponent(e)).split("*").map(r=>r.split("~"))}parseValueFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],valueFilter:{values:r[1].split("_").map(Dc).map(n=>this.unescapeFilterValue(n)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],dateFilter:{type:or[r[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],rangeFilter:{from:r[1].split("_")[0],to:r[1].split("_")[1]}}))}escapeFilters(e){for(let[r,n,i]of this.filtersEscapeMapping)e=e.replaceAll(r,n);return e}superEscapeFilters(e){for(let[r,n,i]of this.filtersEscapeMapping)e=e.replaceAll(n,i);return e}unescapeFilterValue(e){for(let[r,n,i]of this.filtersEscapeMapping)e=e.replace(i,r);return e}parseLegacyPeriodFilter(e){if(Ic(e))return[{key:"ft:lastEdition",dateFilter:{type:or[e]}}];if(e.startsWith("CUSTOM_")){let[r,n,i]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:n,to:i}}]}return[]}};var Ka={};J(Ka,{toFtFormComponent:()=>Ga});var yn=Symbol("elementInternals");function Ga(t,e){class r extends t{static get formAssociated(){return!0}get form(){return this[yn].form}constructor(...i){super(i),this[yn]=this.attachInternals(),this[yn].role=e}setFormValue(i){this[yn].setFormValue(i)}}return r}var Za={};J(Za,{DateFormatter:()=>Ar});var Ar=class{static format(e,r,n,i){return window.moment?window.moment(e).locale(r).format(this.getDateFormat(n,i)):e}static getDateFormat(e,r){return e?r?"lll":"ll":r?"L LT":"L"}};var qa,Ya,Xa,Ja,So=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((Xa=(Ya=(qa=window.safari)===null||qa===void 0?void 0:qa.pushNotification)===null||Ya===void 0?void 0:Ya.toString())!==null&&Xa!==void 0?Xa:"")==="[object SafariRemoteNotification]",ff="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(Ja=window.ftGlobals)!==null&&Ja!==void 0?Ja:{lit:Vn,litDecorators:Zn,litRepeat:Yn,litClassMap:Xn,litStyleMap:Jn,litUnsafeHTML:ei,wcUtils:{...ai,...ti,...li,...Za,...ci,...ui,...Wi,...ii,...ra,...Ui,...aa,...na,...$l,...pi,...ca,...pa,...Dl,...ua,...Ba,...oa,...Wa,...Ha,...ja,...Ka,isSafari:So,isTouchScreen:ff,setVariable:A}};function Bc(t){let e=eo[t];return I`
|
|
51
51
|
.ft-typography--${Wt(t)} {
|
|
52
52
|
font-family: ${e.fontFamily};
|
|
53
53
|
font-size: ${e.fontSize};
|
|
@@ -1292,7 +1292,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1292
1292
|
.ft-radio ft-typography {
|
|
1293
1293
|
padding-right: 2px;
|
|
1294
1294
|
}
|
|
1295
|
-
`;var ht=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},Sn=class extends CustomEvent{constructor(e,r){super("change",{detail:{value:e,checked:r},bubbles:!0,composed:!0})}},
|
|
1295
|
+
`;var ht=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},Sn=class extends CustomEvent{constructor(e,r){super("change",{detail:{value:e,checked:r},bubbles:!0,composed:!0})}},fe=class extends H{constructor(){super(...arguments),this.value="",this.name="",this.checked=!1,this.ariaChecked="false",this.disabled=!1,this.role="radio"}render(){let e={"ft-radio":!0,"ft-radio--checked":this.checked,"ft-radio--disabled":this.disabled};return B`
|
|
1296
1296
|
<div class="${De(e)}">
|
|
1297
1297
|
<div class="ft-radio--box-container">
|
|
1298
1298
|
<ft-ripple
|
|
@@ -1317,7 +1317,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1317
1317
|
</ft-typography>
|
|
1318
1318
|
</label>
|
|
1319
1319
|
</div>
|
|
1320
|
-
`}update(e){super.update(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.dispatchEvent(new Sn(this.value,this.checked))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new Sn(this.value,this.checked))}setInputTabIndex(e){this.input&&(this.input.tabIndex=e)}focus(){var e;(e=this.input)===null||e===void 0||e.focus()}};
|
|
1320
|
+
`}update(e){super.update(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.dispatchEvent(new Sn(this.value,this.checked))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new Sn(this.value,this.checked))}setInputTabIndex(e){this.input&&(this.input.tabIndex=e)}focus(){var e;(e=this.input)===null||e===void 0||e.focus()}};fe.elementDefinitions={"ft-ripple":ee,"ft-typography":ce};fe.styles=yd;ht([v()],fe.prototype,"value",void 0);ht([v()],fe.prototype,"name",void 0);ht([v({type:Boolean,reflect:!0})],fe.prototype,"checked",void 0);ht([v({attribute:"aria-checked",reflect:!0})],fe.prototype,"ariaChecked",void 0);ht([v({type:Boolean})],fe.prototype,"disabled",void 0);ht([v({reflect:!0,attribute:"role"})],fe.prototype,"role",void 0);ht([K(".ft-radio")],fe.prototype,"container",void 0);ht([K("ft-ripple")],fe.prototype,"ripple",void 0);ht([K("input")],fe.prototype,"input",void 0);var md=I`
|
|
1321
1321
|
:host {
|
|
1322
1322
|
display: block;
|
|
1323
1323
|
}
|
|
@@ -1330,7 +1330,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1330
1330
|
@change=${this.onChange}
|
|
1331
1331
|
@keydown=${this.onKeyDown}
|
|
1332
1332
|
></slot>
|
|
1333
|
-
`}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this.onFocus),this.addEventListener("focusout",this.onFocusOut)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this.onFocus),this.removeEventListener("focusout",this.onFocusOut)}onSlotChange(){this.radioButtons.forEach(e=>e.name=this.name)}contentAvailableCallback(e){super.contentAvailableCallback(e),this.radioButtons.forEach(r=>r.setInputTabIndex(-1)),this.resolveCurrentSelectedIndex()}onChange(e){e.stopPropagation(),this.radioButtons.forEach(r=>r.checked=e.detail.value===r.value),this.dispatchEvent(new CustomEvent("change",{detail:e.detail.value})),this.resolveCurrentSelectedIndex()}onKeyDown(e){let r=!1;switch(e.key){case"ArrowUp":case"ArrowLeft":{r=!0;let n=this.currentSelectedIndex-1;this.radioButtons[n<0?this.radioButtons.length-1:n].select(),this.radioButtons[n<0?this.radioButtons.length-1:n].focus();break}case"ArrowDown":case"ArrowRight":{r=!0;let n=this.currentSelectedIndex+1;this.radioButtons[n>this.radioButtons.length-1?0:n].select(),this.radioButtons[n>this.radioButtons.length-1?0:n].focus();break}case"Enter":this.radioButtons[this.currentSelectedIndex].select()}r&&(e.stopPropagation(),e.preventDefault())}resolveCurrentSelectedIndex(){let e=this.radioButtons.findIndex(r=>r.checked);e==-1?(this.currentSelectedIndex=0,this.radioButtons[0].select()):this.currentSelectedIndex=e}focusCurrentChecked(){this.radioButtons[this.currentSelectedIndex].focus()}};Ne.elementDefinitions={};Ne.styles=md;Dr([v()],Ne.prototype,"name",void 0);Dr([v({reflect:!0,attribute:"role"})],Ne.prototype,"role",void 0);Dr([v({reflect:!0})],Ne.prototype,"tabIndex",void 0);Dr([v({reflect:!0,attribute:"aria-labelledby"})],Ne.prototype,"ariaLabelledBy",void 0);Dr([Gn()],Ne.prototype,"assignedElements",void 0);Dr([j()],Ne.prototype,"currentSelectedIndex",void 0);Y("ft-radio")(
|
|
1333
|
+
`}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this.onFocus),this.addEventListener("focusout",this.onFocusOut)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this.onFocus),this.removeEventListener("focusout",this.onFocusOut)}onSlotChange(){this.radioButtons.forEach(e=>e.name=this.name)}contentAvailableCallback(e){super.contentAvailableCallback(e),this.radioButtons.forEach(r=>r.setInputTabIndex(-1)),this.resolveCurrentSelectedIndex()}onChange(e){e.stopPropagation(),this.radioButtons.forEach(r=>r.checked=e.detail.value===r.value),this.dispatchEvent(new CustomEvent("change",{detail:e.detail.value})),this.resolveCurrentSelectedIndex()}onKeyDown(e){let r=!1;switch(e.key){case"ArrowUp":case"ArrowLeft":{r=!0;let n=this.currentSelectedIndex-1;this.radioButtons[n<0?this.radioButtons.length-1:n].select(),this.radioButtons[n<0?this.radioButtons.length-1:n].focus();break}case"ArrowDown":case"ArrowRight":{r=!0;let n=this.currentSelectedIndex+1;this.radioButtons[n>this.radioButtons.length-1?0:n].select(),this.radioButtons[n>this.radioButtons.length-1?0:n].focus();break}case"Enter":this.radioButtons[this.currentSelectedIndex].select()}r&&(e.stopPropagation(),e.preventDefault())}resolveCurrentSelectedIndex(){let e=this.radioButtons.findIndex(r=>r.checked);e==-1?(this.currentSelectedIndex=0,this.radioButtons[0].select()):this.currentSelectedIndex=e}focusCurrentChecked(){this.radioButtons[this.currentSelectedIndex].focus()}};Ne.elementDefinitions={};Ne.styles=md;Dr([v()],Ne.prototype,"name",void 0);Dr([v({reflect:!0,attribute:"role"})],Ne.prototype,"role",void 0);Dr([v({reflect:!0})],Ne.prototype,"tabIndex",void 0);Dr([v({reflect:!0,attribute:"aria-labelledby"})],Ne.prototype,"ariaLabelledBy",void 0);Dr([Gn()],Ne.prototype,"assignedElements",void 0);Dr([j()],Ne.prototype,"currentSelectedIndex",void 0);Y("ft-radio")(fe);Y("ft-radio-group")(Ne);var Oo={buttonMoreColor:o.extend("--ft-filter-level-button-more-color","",$.colorOnSurface),borderRadiusM:o.external($.borderRadiusM,"Design system"),colorOutline:o.external($.colorOutline,"Design system"),colorOnSurface:o.external($.colorOnSurface,"Design system"),colorOnSurfaceMedium:o.external($.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:o.external($.colorOnSurfaceDisabled,"Design system"),colorPrimary:o.external($.colorPrimary,"Design system"),colorOnPrimary:o.external($.colorOnPrimary,"Design system"),fontFamily:o.external(ke.fontFamily,"Body2 typography"),fontSize:o.external(ke.fontSize,"Body2 typography"),fontWeight:o.external(ke.fontWeight,"Body2 typography"),letterSpacing:o.external(ke.letterSpacing,"Body2 typography"),lineHeight:o.external(ke.lineHeight,"Body2 typography"),textTransform:o.external(ke.textTransform,"Body2 typography")},gd=I`
|
|
1334
1334
|
.ft-filter-level--container {
|
|
1335
1335
|
display: flex;
|
|
1336
1336
|
flex-direction: column;
|
|
@@ -1466,7 +1466,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1466
1466
|
@change=${r=>this.optionsChanged(r,e)}>
|
|
1467
1467
|
${e.renderOption?e.renderOption:e.label}${this.displayCount?` (${e.count})`:""}
|
|
1468
1468
|
</ft-radio>
|
|
1469
|
-
`}onRadioKeyDown(e,r){e.stopPropagation(),(e.key===" "||e.key==="Enter")&&(e.preventDefault(),this.optionsChanged(e,r))}optionsChanged(e,r){e.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:r}))}displayLevel(e){this.dispatchEvent(new CustomEvent("display-level",{detail:e}))}};de.elementDefinitions={"ft-button":ve,"ft-ripple":ee,"ft-typography":ce,"ft-checkbox":Se,"ft-icon":Re,"ft-radio":
|
|
1469
|
+
`}onRadioKeyDown(e,r){e.stopPropagation(),(e.key===" "||e.key==="Enter")&&(e.preventDefault(),this.optionsChanged(e,r))}optionsChanged(e,r){e.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:r}))}displayLevel(e){this.dispatchEvent(new CustomEvent("display-level",{detail:e}))}};de.elementDefinitions={"ft-button":ve,"ft-ripple":ee,"ft-typography":ce,"ft-checkbox":Se,"ft-icon":Re,"ft-radio":fe};de.styles=gd;Oe([v({type:String})],de.prototype,"filterId",void 0);Oe([v({type:Object})],de.prototype,"parent",void 0);Oe([v({type:Array})],de.prototype,"options",void 0);Oe([v({type:Boolean})],de.prototype,"multivalued",void 0);Oe([v({type:Boolean})],de.prototype,"disabled",void 0);Oe([v({type:Boolean})],de.prototype,"hideSelectedOptions",void 0);Oe([v({type:Boolean})],de.prototype,"displayCount",void 0);Oe([v({type:Boolean})],de.prototype,"preventNavigation",void 0);Oe([v({type:String})],de.prototype,"filter",void 0);Oe([v({type:String})],de.prototype,"moreValuesButtonLabel",void 0);Oe([v({type:String})],de.prototype,"noValuesLabel",void 0);Oe([v({type:Number})],de.prototype,"displayedValuesLimit",void 0);Oe([K(".ft-filter-level--container")],de.prototype,"container",void 0);Oe([j()],de.prototype,"radios",void 0);Oe([j()],de.prototype,"displayedPages",void 0);var Tt={buttonsColor:o.extend("--ft-snap-scroll-buttons-color","",$.colorPrimary),buttonsZIndex:o.create("--ft-snap-scroll-buttons-z-index","","NUMBER","1"),gap:o.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:o.external($.colorSurface,"Design system")},bd=I`
|
|
1470
1470
|
.ft-snap-scroll {
|
|
1471
1471
|
box-sizing: border-box;
|
|
1472
1472
|
position: relative;
|
|
@@ -1881,7 +1881,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1881
1881
|
<ft-radio ?checked=${((i=this.dateFilter)===null||i===void 0?void 0:i.type)=="LAST_YEAR"} value="LAST_YEAR">${Pt.messages.LAST_YEAR()}
|
|
1882
1882
|
</ft-radio>`:q}
|
|
1883
1883
|
</ft-radio-group>
|
|
1884
|
-
</div>`}setPeriodFilter(e){var r,n;let i=or[e.detail];i?(r=this.stateManager)===null||r===void 0||r.setDateFilter(this.metadataKey,i):(n=this.stateManager)===null||n===void 0||n.removeDateFilter(this.metadataKey)}header(){var e,r,n;return this.metadataKey==="ft:lastEdition"?Pt.messages.label():(n=(r=(e=this.metadataDescriptors)===null||e===void 0?void 0:e.find(i=>i.key==this.metadataKey))===null||r===void 0?void 0:r.label)!==null&&n!==void 0?n:this.metadataKey}};Le.elementDefinitions={"ft-radio-group":Ne,"ft-radio":
|
|
1884
|
+
</div>`}setPeriodFilter(e){var r,n;let i=or[e.detail];i?(r=this.stateManager)===null||r===void 0||r.setDateFilter(this.metadataKey,i):(n=this.stateManager)===null||n===void 0||n.removeDateFilter(this.metadataKey)}header(){var e,r,n;return this.metadataKey==="ft:lastEdition"?Pt.messages.label():(n=(r=(e=this.metadataDescriptors)===null||e===void 0?void 0:e.find(i=>i.key==this.metadataKey))===null||r===void 0?void 0:r.label)!==null&&n!==void 0?n:this.metadataKey}};Le.elementDefinitions={"ft-radio-group":Ne,"ft-radio":fe,"ft-typography":ce};Le.styles=vd;It([v({type:String})],Le.prototype,"key",void 0);It([v({type:Boolean})],Le.prototype,"lessThanAWeek",void 0);It([v({type:Boolean})],Le.prototype,"lessThanAMonth",void 0);It([v({type:Boolean})],Le.prototype,"lessThanAQuarter",void 0);It([v({type:Boolean})],Le.prototype,"lessThanAYear",void 0);It([Qt({store:"search",selector:t=>t.request.metadataFilters})],Le.prototype,"filters",void 0);It([Qt({store:F.name,selector:t=>{var e,r;return(r=(e=t.metadataConfiguration)===null||e===void 0?void 0:e.descriptors)!==null&&r!==void 0?r:[]}})],Le.prototype,"metadataDescriptors",void 0);It([v({attribute:!1})],Le.prototype,"dateFilter",void 0);Y("ft-search-period-filter")(Le);})();
|
|
1885
1885
|
/*! Bundled license information:
|
|
1886
1886
|
|
|
1887
1887
|
@webcomponents/scoped-custom-element-registry/src/scoped-custom-element-registry.js:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-search-period-filter",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.21",
|
|
4
4
|
"description": "Search period filter for integrated fluid-topics search pages",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,16 +19,16 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-filter": "1.2.
|
|
23
|
-
"@fluid-topics/ft-i18n": "1.2.
|
|
24
|
-
"@fluid-topics/ft-icon": "1.2.
|
|
25
|
-
"@fluid-topics/ft-search-context": "1.2.
|
|
26
|
-
"@fluid-topics/ft-tooltip": "1.2.
|
|
27
|
-
"@fluid-topics/ft-wc-utils": "1.2.
|
|
22
|
+
"@fluid-topics/ft-filter": "1.2.21",
|
|
23
|
+
"@fluid-topics/ft-i18n": "1.2.21",
|
|
24
|
+
"@fluid-topics/ft-icon": "1.2.21",
|
|
25
|
+
"@fluid-topics/ft-search-context": "1.2.21",
|
|
26
|
+
"@fluid-topics/ft-tooltip": "1.2.21",
|
|
27
|
+
"@fluid-topics/ft-wc-utils": "1.2.21",
|
|
28
28
|
"lit": "3.1.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@fluid-topics/public-api": "1.0.
|
|
31
|
+
"@fluid-topics/public-api": "1.0.82"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "d5ad6e93693f963ea69c3ee8aed39f9c6f0d569a"
|
|
34
34
|
}
|