@fluid-topics/ft-search-load-more-button 1.1.9 → 1.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -510,7 +510,7 @@ const Zo=Symbol.for(""),zo=t=>{if(t?.r===Zo)return t?._$litStatic$},Bo=t=>({_$li
|
|
|
510
510
|
}
|
|
511
511
|
|
|
512
512
|
.ft-tooltip {
|
|
513
|
-
position:
|
|
513
|
+
position: fixed;
|
|
514
514
|
box-sizing: border-box;
|
|
515
515
|
overflow: hidden;
|
|
516
516
|
width: max-content;
|
|
@@ -528,7 +528,7 @@ const Zo=Symbol.for(""),zo=t=>{if(t?.r===Zo)return t?._$litStatic$},Bo=t=>({_$li
|
|
|
528
528
|
position: relative;
|
|
529
529
|
word-break: break-word;
|
|
530
530
|
}
|
|
531
|
-
`,qo=["start","end"],Jo=["top","right","bottom","left"].reduce(((t,o)=>t.concat(o,o+"-"+qo[0],o+"-"+qo[1])),[]),Qo=Math.min,te=Math.max,oe=Math.round,ee=t=>({x:t,y:t}),re={left:"right",right:"left",bottom:"top",top:"bottom"},ie={start:"end",end:"start"};function ne(t,o,e){return te(t,Qo(o,e))}function ae(t,o){return"function"==typeof t?t(o):t}function le(t){return t.split("-")[0]}function se(t){return t.split("-")[1]}function ce(t){return"x"===t?"y":"x"}function fe(t){return"y"===t?"height":"width"}function pe(t){return["top","bottom"].includes(le(t))?"y":"x"}function de(t){return ce(pe(t))}function he(t){return t.replace(/left|right|bottom|top/g,(t=>re[t]))}function ue(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function ye(t,o,e){let{reference:r,floating:i}=t;const n=pe(o),a=de(o),l=fe(a),s=le(o),c="y"===n,f=r.x+r.width/2-i.width/2,p=r.y+r.height/2-i.height/2,d=r[l]/2-i[l]/2;let h;switch(s){case"top":h={x:f,y:r.y-i.height};break;case"bottom":h={x:f,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:p};break;case"left":h={x:r.x-i.width,y:p};break;default:h={x:r.x,y:r.y}}switch(se(o)){case"start":h[a]-=d*(e&&c?-1:1);break;case"end":h[a]+=d*(e&&c?-1:1)}return h}async function ge(t,o){var e;void 0===o&&(o={});const{x:r,y:i,platform:n,rects:a,elements:l,strategy:s}=t,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:d=!1,padding:h=0}=ae(o,t),u=function(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}(h),y=l[d?"floating"===p?"reference":"floating":p],g=ue(await n.getClippingRect({element:null==(e=await(null==n.isElement?void 0:n.isElement(y)))||e?y:y.contextElement||await(null==n.getDocumentElement?void 0:n.getDocumentElement(l.floating)),boundary:c,rootBoundary:f,strategy:s})),b="floating"===p?{...a.floating,x:r,y:i}:a.reference,m=await(null==n.getOffsetParent?void 0:n.getOffsetParent(l.floating)),x=await(null==n.isElement?void 0:n.isElement(m))&&await(null==n.getScale?void 0:n.getScale(m))||{x:1,y:1},O=ue(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:m,strategy:s}):b);return{top:(g.top-O.top+u.top)/x.y,bottom:(O.bottom-g.bottom+u.bottom)/x.y,left:(g.left-O.left+u.left)/x.x,right:(O.right-g.right+u.right)/x.x}}function be(t,o,e){return(t?[...e.filter((o=>se(o)===t)),...e.filter((o=>se(o)!==t))]:e.filter((t=>le(t)===t))).filter((e=>!t||(se(e)===t||!!o&&function(t){return t.replace(/start|end/g,(t=>ie[t]))}(e)!==e)))}const me=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(o){var e,r,i;const{rects:n,middlewareData:a,placement:l,platform:s,elements:c}=o,{crossAxis:f=!1,alignment:p,allowedPlacements:d=Jo,autoAlignment:h=!0,...u}=ae(t,o),y=void 0!==p||d===Jo?be(p||null,h,d):d,g=await ge(o,u),b=(null==(e=a.autoPlacement)?void 0:e.index)||0,m=y[b];if(null==m)return{};const x=function(t,o,e){void 0===e&&(e=!1);const r=se(t),i=de(t),n=fe(i);let a="x"===i?r===(e?"end":"start")?"right":"left":"start"===r?"bottom":"top";return o.reference[n]>o.floating[n]&&(a=he(a)),[a,he(a)]}(m,n,await(null==s.isRTL?void 0:s.isRTL(c.floating)));if(l!==m)return{reset:{placement:y[0]}};const O=[g[le(m)],g[x[0]],g[x[1]]],v=[...(null==(r=a.autoPlacement)?void 0:r.overflows)||[],{placement:m,overflows:O}],N=y[b+1];if(N)return{data:{index:b+1,overflows:v},reset:{placement:N}};const S=v.map((t=>{const o=se(t.placement);return[t.placement,o&&f?t.overflows.slice(0,2).reduce(((t,o)=>t+o),0):t.overflows[0],t.overflows]})).sort(((t,o)=>t[1]-o[1])),w=S.filter((t=>t[2].slice(0,se(t[0])?2:3).every((t=>t<=0)))),C=(null==(i=w[0])?void 0:i[0])||S[0][0];return C!==l?{data:{index:b+1,overflows:v},reset:{placement:C}}:{}}}};function xe(t){return Ne(t)?(t.nodeName||"").toLowerCase():"#document"}function Oe(t){var o;return(null==t||null==(o=t.ownerDocument)?void 0:o.defaultView)||window}function ve(t){var o;return null==(o=(Ne(t)?t.ownerDocument:t.document)||window.document)?void 0:o.documentElement}function Ne(t){return t instanceof Node||t instanceof Oe(t).Node}function Se(t){return t instanceof Element||t instanceof Oe(t).Element}function we(t){return t instanceof HTMLElement||t instanceof Oe(t).HTMLElement}function Ce(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof Oe(t).ShadowRoot)}function $e(t){const{overflow:o,overflowX:e,overflowY:r,display:i}=Le(t);return/auto|scroll|overlay|hidden|clip/.test(o+r+e)&&!["inline","contents"].includes(i)}function Ie(t){return["table","td","th"].includes(xe(t))}function Ee(t){const o=Re(),e=Le(t);return"none"!==e.transform||"none"!==e.perspective||!!e.containerType&&"normal"!==e.containerType||!o&&!!e.backdropFilter&&"none"!==e.backdropFilter||!o&&!!e.filter&&"none"!==e.filter||["transform","perspective","filter"].some((t=>(e.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(e.contain||"").includes(t)))}function Re(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Ue(t){return["html","body","#document"].includes(xe(t))}function Le(t){return Oe(t).getComputedStyle(t)}function ke(t){return Se(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function We(t){if("html"===xe(t))return t;const o=t.assignedSlot||t.parentNode||Ce(t)&&t.host||ve(t);return Ce(o)?o.host:o}function Ke(t){const o=We(t);return Ue(o)?t.ownerDocument?t.ownerDocument.body:t.body:we(o)&&$e(o)?o:Ke(o)}function Ae(t,o,e){var r;void 0===o&&(o=[]),void 0===e&&(e=!0);const i=Ke(t),n=i===(null==(r=t.ownerDocument)?void 0:r.body),a=Oe(i);return n?o.concat(a,a.visualViewport||[],$e(i)?i:[],a.frameElement&&e?Ae(a.frameElement):[]):o.concat(i,Ae(i,[],e))}function Ze(t){const o=Le(t);let e=parseFloat(o.width)||0,r=parseFloat(o.height)||0;const i=we(t),n=i?t.offsetWidth:e,a=i?t.offsetHeight:r,l=oe(e)!==n||oe(r)!==a;return l&&(e=n,r=a),{width:e,height:r,$:l}}function ze(t){return Se(t)?t:t.contextElement}function Be(t){const o=ze(t);if(!we(o))return ee(1);const e=o.getBoundingClientRect(),{width:r,height:i,$:n}=Ze(o);let a=(n?oe(e.width):e.width)/r,l=(n?oe(e.height):e.height)/i;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}const Fe=ee(0);function De(t){const o=Oe(t);return Re()&&o.visualViewport?{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}:Fe}function Te(t,o,e,r){void 0===o&&(o=!1),void 0===e&&(e=!1);const i=t.getBoundingClientRect(),n=ze(t);let a=ee(1);o&&(r?Se(r)&&(a=Be(r)):a=Be(t));const l=function(t,o,e){return void 0===o&&(o=!1),!(!e||o&&e!==Oe(t))&&o}(n,e,r)?De(n):ee(0);let s=(i.left+l.x)/a.x,c=(i.top+l.y)/a.y,f=i.width/a.x,p=i.height/a.y;if(n){const t=Oe(n),o=r&&Se(r)?Oe(r):r;let e=t.frameElement;for(;e&&r&&o!==t;){const t=Be(e),o=e.getBoundingClientRect(),r=Le(e),i=o.left+(e.clientLeft+parseFloat(r.paddingLeft))*t.x,n=o.top+(e.clientTop+parseFloat(r.paddingTop))*t.y;s*=t.x,c*=t.y,f*=t.x,p*=t.y,s+=i,c+=n,e=Oe(e).frameElement}}return ue({width:f,height:p,x:s,y:c})}function Pe(t){return Te(ve(t)).left+ke(t).scrollLeft}function He(t,o,e){let r;if("viewport"===o)r=function(t,o){const e=Oe(t),r=ve(t),i=e.visualViewport;let n=r.clientWidth,a=r.clientHeight,l=0,s=0;if(i){n=i.width,a=i.height;const t=Re();(!t||t&&"fixed"===o)&&(l=i.offsetLeft,s=i.offsetTop)}return{width:n,height:a,x:l,y:s}}(t,e);else if("document"===o)r=function(t){const o=ve(t),e=ke(t),r=t.ownerDocument.body,i=te(o.scrollWidth,o.clientWidth,r.scrollWidth,r.clientWidth),n=te(o.scrollHeight,o.clientHeight,r.scrollHeight,r.clientHeight);let a=-e.scrollLeft+Pe(t);const l=-e.scrollTop;return"rtl"===Le(r).direction&&(a+=te(o.clientWidth,r.clientWidth)-i),{width:i,height:n,x:a,y:l}}(ve(t));else if(Se(o))r=function(t,o){const e=Te(t,!0,"fixed"===o),r=e.top+t.clientTop,i=e.left+t.clientLeft,n=we(t)?Be(t):ee(1);return{width:t.clientWidth*n.x,height:t.clientHeight*n.y,x:i*n.x,y:r*n.y}}(o,e);else{const e=De(t);r={...o,x:o.x-e.x,y:o.y-e.y}}return ue(r)}function Me(t,o){const e=We(t);return!(e===o||!Se(e)||Ue(e))&&("fixed"===Le(e).position||Me(e,o))}function Ge(t,o,e){const r=we(o),i=ve(o),n="fixed"===e,a=Te(t,!0,n,o);let l={scrollLeft:0,scrollTop:0};const s=ee(0);if(r||!r&&!n)if(("body"!==xe(o)||$e(i))&&(l=ke(o)),r){const t=Te(o,!0,n,o);s.x=t.x+o.clientLeft,s.y=t.y+o.clientTop}else i&&(s.x=Pe(i));return{x:a.left+l.scrollLeft-s.x,y:a.top+l.scrollTop-s.y,width:a.width,height:a.height}}function je(t,o){return we(t)&&"fixed"!==Le(t).position?o?o(t):t.offsetParent:null}function _e(t,o){const e=Oe(t);if(!we(t))return e;let r=je(t,o);for(;r&&Ie(r)&&"static"===Le(r).position;)r=je(r,o);return r&&("html"===xe(r)||"body"===xe(r)&&"static"===Le(r).position&&!Ee(r))?e:r||function(t){let o=We(t);for(;we(o)&&!Ue(o);){if(Ee(o))return o;o=We(o)}return null}(t)||e}const Ye={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:o,offsetParent:e,strategy:r}=t;const i=we(e),n=ve(e);if(e===n)return o;let a={scrollLeft:0,scrollTop:0},l=ee(1);const s=ee(0);if((i||!i&&"fixed"!==r)&&(("body"!==xe(e)||$e(n))&&(a=ke(e)),we(e))){const t=Te(e);l=Be(e),s.x=t.x+e.clientLeft,s.y=t.y+e.clientTop}return{width:o.width*l.x,height:o.height*l.y,x:o.x*l.x-a.scrollLeft*l.x+s.x,y:o.y*l.y-a.scrollTop*l.y+s.y}},getDocumentElement:ve,getClippingRect:function(t){let{element:o,boundary:e,rootBoundary:r,strategy:i}=t;const n="clippingAncestors"===e?function(t,o){const e=o.get(t);if(e)return e;let r=Ae(t,[],!1).filter((t=>Se(t)&&"body"!==xe(t))),i=null;const n="fixed"===Le(t).position;let a=n?We(t):t;for(;Se(a)&&!Ue(a);){const o=Le(a),e=Ee(a);e||"fixed"!==o.position||(i=null),(n?!e&&!i:!e&&"static"===o.position&&i&&["absolute","fixed"].includes(i.position)||$e(a)&&!e&&Me(t,a))?r=r.filter((t=>t!==a)):i=o,a=We(a)}return o.set(t,r),r}(o,this._c):[].concat(e),a=[...n,r],l=a[0],s=a.reduce(((t,e)=>{const r=He(o,e,i);return t.top=te(r.top,t.top),t.right=Qo(r.right,t.right),t.bottom=Qo(r.bottom,t.bottom),t.left=te(r.left,t.left),t}),He(o,l,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:_e,getElementRects:async function(t){let{reference:o,floating:e,strategy:r}=t;const i=this.getOffsetParent||_e,n=this.getDimensions;return{reference:Ge(o,await i(e),r),floating:{x:0,y:0,...await n(e)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return Ze(t)},getScale:Be,isElement:Se,isRTL:function(t){return"rtl"===Le(t).direction}},Ve=(t,o,e)=>{const r=new Map,i={platform:Ye,...e},n={...i.platform,_c:r};return(async(t,o,e)=>{const{placement:r="bottom",strategy:i="absolute",middleware:n=[],platform:a}=e,l=n.filter(Boolean),s=await(null==a.isRTL?void 0:a.isRTL(o));let c=await a.getElementRects({reference:t,floating:o,strategy:i}),{x:f,y:p}=ye(c,r,s),d=r,h={},u=0;for(let e=0;e<l.length;e++){const{name:n,fn:y}=l[e],{x:g,y:b,data:m,reset:x}=await y({x:f,y:p,initialPlacement:r,placement:d,strategy:i,middlewareData:h,rects:c,platform:a,elements:{reference:t,floating:o}});f=null!=g?g:f,p=null!=b?b:p,h={...h,[n]:{...h[n],...m}},x&&u<=50&&(u++,"object"==typeof x&&(x.placement&&(d=x.placement),x.rects&&(c=!0===x.rects?await a.getElementRects({reference:t,floating:o,strategy:i}):x.rects),({x:f,y:p}=ye(c,d,s))),e=-1)}return{x:f,y:p,placement:d,strategy:i,middlewareData:h}})(t,o,{...i,platform:n})};var Xe,qe,Je,Qe=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class tr extends o.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new o.Debouncer,this.revealDebouncer=new o.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return e.html`
|
|
531
|
+
`,qo=["start","end"],Jo=["top","right","bottom","left"].reduce(((t,o)=>t.concat(o,o+"-"+qo[0],o+"-"+qo[1])),[]),Qo=Math.min,te=Math.max,oe=Math.round,ee=t=>({x:t,y:t}),re={left:"right",right:"left",bottom:"top",top:"bottom"},ie={start:"end",end:"start"};function ne(t,o,e){return te(t,Qo(o,e))}function ae(t,o){return"function"==typeof t?t(o):t}function le(t){return t.split("-")[0]}function se(t){return t.split("-")[1]}function ce(t){return"x"===t?"y":"x"}function fe(t){return"y"===t?"height":"width"}function pe(t){return["top","bottom"].includes(le(t))?"y":"x"}function de(t){return ce(pe(t))}function he(t){return t.replace(/left|right|bottom|top/g,(t=>re[t]))}function ue(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function ye(t,o,e){let{reference:r,floating:i}=t;const n=pe(o),a=de(o),l=fe(a),s=le(o),c="y"===n,f=r.x+r.width/2-i.width/2,p=r.y+r.height/2-i.height/2,d=r[l]/2-i[l]/2;let h;switch(s){case"top":h={x:f,y:r.y-i.height};break;case"bottom":h={x:f,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:p};break;case"left":h={x:r.x-i.width,y:p};break;default:h={x:r.x,y:r.y}}switch(se(o)){case"start":h[a]-=d*(e&&c?-1:1);break;case"end":h[a]+=d*(e&&c?-1:1)}return h}async function ge(t,o){var e;void 0===o&&(o={});const{x:r,y:i,platform:n,rects:a,elements:l,strategy:s}=t,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:d=!1,padding:h=0}=ae(o,t),u=function(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}(h),y=l[d?"floating"===p?"reference":"floating":p],g=ue(await n.getClippingRect({element:null==(e=await(null==n.isElement?void 0:n.isElement(y)))||e?y:y.contextElement||await(null==n.getDocumentElement?void 0:n.getDocumentElement(l.floating)),boundary:c,rootBoundary:f,strategy:s})),b="floating"===p?{...a.floating,x:r,y:i}:a.reference,m=await(null==n.getOffsetParent?void 0:n.getOffsetParent(l.floating)),x=await(null==n.isElement?void 0:n.isElement(m))&&await(null==n.getScale?void 0:n.getScale(m))||{x:1,y:1},O=ue(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:m,strategy:s}):b);return{top:(g.top-O.top+u.top)/x.y,bottom:(O.bottom-g.bottom+u.bottom)/x.y,left:(g.left-O.left+u.left)/x.x,right:(O.right-g.right+u.right)/x.x}}function be(t,o,e){return(t?[...e.filter((o=>se(o)===t)),...e.filter((o=>se(o)!==t))]:e.filter((t=>le(t)===t))).filter((e=>!t||(se(e)===t||!!o&&function(t){return t.replace(/start|end/g,(t=>ie[t]))}(e)!==e)))}const me=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(o){var e,r,i;const{rects:n,middlewareData:a,placement:l,platform:s,elements:c}=o,{crossAxis:f=!1,alignment:p,allowedPlacements:d=Jo,autoAlignment:h=!0,...u}=ae(t,o),y=void 0!==p||d===Jo?be(p||null,h,d):d,g=await ge(o,u),b=(null==(e=a.autoPlacement)?void 0:e.index)||0,m=y[b];if(null==m)return{};const x=function(t,o,e){void 0===e&&(e=!1);const r=se(t),i=de(t),n=fe(i);let a="x"===i?r===(e?"end":"start")?"right":"left":"start"===r?"bottom":"top";return o.reference[n]>o.floating[n]&&(a=he(a)),[a,he(a)]}(m,n,await(null==s.isRTL?void 0:s.isRTL(c.floating)));if(l!==m)return{reset:{placement:y[0]}};const O=[g[le(m)],g[x[0]],g[x[1]]],v=[...(null==(r=a.autoPlacement)?void 0:r.overflows)||[],{placement:m,overflows:O}],N=y[b+1];if(N)return{data:{index:b+1,overflows:v},reset:{placement:N}};const S=v.map((t=>{const o=se(t.placement);return[t.placement,o&&f?t.overflows.slice(0,2).reduce(((t,o)=>t+o),0):t.overflows[0],t.overflows]})).sort(((t,o)=>t[1]-o[1])),w=S.filter((t=>t[2].slice(0,se(t[0])?2:3).every((t=>t<=0)))),C=(null==(i=w[0])?void 0:i[0])||S[0][0];return C!==l?{data:{index:b+1,overflows:v},reset:{placement:C}}:{}}}};function xe(t){return Ne(t)?(t.nodeName||"").toLowerCase():"#document"}function Oe(t){var o;return(null==t||null==(o=t.ownerDocument)?void 0:o.defaultView)||window}function ve(t){var o;return null==(o=(Ne(t)?t.ownerDocument:t.document)||window.document)?void 0:o.documentElement}function Ne(t){return t instanceof Node||t instanceof Oe(t).Node}function Se(t){return t instanceof Element||t instanceof Oe(t).Element}function we(t){return t instanceof HTMLElement||t instanceof Oe(t).HTMLElement}function Ce(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof Oe(t).ShadowRoot)}function $e(t){const{overflow:o,overflowX:e,overflowY:r,display:i}=Le(t);return/auto|scroll|overlay|hidden|clip/.test(o+r+e)&&!["inline","contents"].includes(i)}function Ie(t){return["table","td","th"].includes(xe(t))}function Ee(t){const o=Re(),e=Le(t);return"none"!==e.transform||"none"!==e.perspective||!!e.containerType&&"normal"!==e.containerType||!o&&!!e.backdropFilter&&"none"!==e.backdropFilter||!o&&!!e.filter&&"none"!==e.filter||["transform","perspective","filter"].some((t=>(e.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(e.contain||"").includes(t)))}function Re(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Ue(t){return["html","body","#document"].includes(xe(t))}function Le(t){return Oe(t).getComputedStyle(t)}function ke(t){return Se(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function We(t){if("html"===xe(t))return t;const o=t.assignedSlot||t.parentNode||Ce(t)&&t.host||ve(t);return Ce(o)?o.host:o}function Ke(t){const o=We(t);return Ue(o)?t.ownerDocument?t.ownerDocument.body:t.body:we(o)&&$e(o)?o:Ke(o)}function Ae(t,o,e){var r;void 0===o&&(o=[]),void 0===e&&(e=!0);const i=Ke(t),n=i===(null==(r=t.ownerDocument)?void 0:r.body),a=Oe(i);return n?o.concat(a,a.visualViewport||[],$e(i)?i:[],a.frameElement&&e?Ae(a.frameElement):[]):o.concat(i,Ae(i,[],e))}function Ze(t){const o=Le(t);let e=parseFloat(o.width)||0,r=parseFloat(o.height)||0;const i=we(t),n=i?t.offsetWidth:e,a=i?t.offsetHeight:r,l=oe(e)!==n||oe(r)!==a;return l&&(e=n,r=a),{width:e,height:r,$:l}}function ze(t){return Se(t)?t:t.contextElement}function Be(t){const o=ze(t);if(!we(o))return ee(1);const e=o.getBoundingClientRect(),{width:r,height:i,$:n}=Ze(o);let a=(n?oe(e.width):e.width)/r,l=(n?oe(e.height):e.height)/i;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}const Fe=ee(0);function De(t){const o=Oe(t);return Re()&&o.visualViewport?{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}:Fe}function Te(t,o,e,r){void 0===o&&(o=!1),void 0===e&&(e=!1);const i=t.getBoundingClientRect(),n=ze(t);let a=ee(1);o&&(r?Se(r)&&(a=Be(r)):a=Be(t));const l=function(t,o,e){return void 0===o&&(o=!1),!(!e||o&&e!==Oe(t))&&o}(n,e,r)?De(n):ee(0);let s=(i.left+l.x)/a.x,c=(i.top+l.y)/a.y,f=i.width/a.x,p=i.height/a.y;if(n){const t=Oe(n),o=r&&Se(r)?Oe(r):r;let e=t.frameElement;for(;e&&r&&o!==t;){const t=Be(e),o=e.getBoundingClientRect(),r=Le(e),i=o.left+(e.clientLeft+parseFloat(r.paddingLeft))*t.x,n=o.top+(e.clientTop+parseFloat(r.paddingTop))*t.y;s*=t.x,c*=t.y,f*=t.x,p*=t.y,s+=i,c+=n,e=Oe(e).frameElement}}return ue({width:f,height:p,x:s,y:c})}function Pe(t){return Te(ve(t)).left+ke(t).scrollLeft}function He(t,o,e){let r;if("viewport"===o)r=function(t,o){const e=Oe(t),r=ve(t),i=e.visualViewport;let n=r.clientWidth,a=r.clientHeight,l=0,s=0;if(i){n=i.width,a=i.height;const t=Re();(!t||t&&"fixed"===o)&&(l=i.offsetLeft,s=i.offsetTop)}return{width:n,height:a,x:l,y:s}}(t,e);else if("document"===o)r=function(t){const o=ve(t),e=ke(t),r=t.ownerDocument.body,i=te(o.scrollWidth,o.clientWidth,r.scrollWidth,r.clientWidth),n=te(o.scrollHeight,o.clientHeight,r.scrollHeight,r.clientHeight);let a=-e.scrollLeft+Pe(t);const l=-e.scrollTop;return"rtl"===Le(r).direction&&(a+=te(o.clientWidth,r.clientWidth)-i),{width:i,height:n,x:a,y:l}}(ve(t));else if(Se(o))r=function(t,o){const e=Te(t,!0,"fixed"===o),r=e.top+t.clientTop,i=e.left+t.clientLeft,n=we(t)?Be(t):ee(1);return{width:t.clientWidth*n.x,height:t.clientHeight*n.y,x:i*n.x,y:r*n.y}}(o,e);else{const e=De(t);r={...o,x:o.x-e.x,y:o.y-e.y}}return ue(r)}function Me(t,o){const e=We(t);return!(e===o||!Se(e)||Ue(e))&&("fixed"===Le(e).position||Me(e,o))}function Ge(t,o,e){const r=we(o),i=ve(o),n="fixed"===e,a=Te(t,!0,n,o);let l={scrollLeft:0,scrollTop:0};const s=ee(0);if(r||!r&&!n)if(("body"!==xe(o)||$e(i))&&(l=ke(o)),r){const t=Te(o,!0,n,o);s.x=t.x+o.clientLeft,s.y=t.y+o.clientTop}else i&&(s.x=Pe(i));return{x:a.left+l.scrollLeft-s.x,y:a.top+l.scrollTop-s.y,width:a.width,height:a.height}}function je(t,o){return we(t)&&"fixed"!==Le(t).position?o?o(t):t.offsetParent:null}function _e(t,o){const e=Oe(t);if(!we(t))return e;let r=je(t,o);for(;r&&Ie(r)&&"static"===Le(r).position;)r=je(r,o);return r&&("html"===xe(r)||"body"===xe(r)&&"static"===Le(r).position&&!Ee(r))?e:r||function(t){let o=We(t);for(;we(o)&&!Ue(o);){if(Ee(o))return o;o=We(o)}return null}(t)||e}const Ye={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:o,offsetParent:e,strategy:r}=t;const i=we(e),n=ve(e);if(e===n)return o;let a={scrollLeft:0,scrollTop:0},l=ee(1);const s=ee(0);if((i||!i&&"fixed"!==r)&&(("body"!==xe(e)||$e(n))&&(a=ke(e)),we(e))){const t=Te(e);l=Be(e),s.x=t.x+e.clientLeft,s.y=t.y+e.clientTop}return{width:o.width*l.x,height:o.height*l.y,x:o.x*l.x-a.scrollLeft*l.x+s.x,y:o.y*l.y-a.scrollTop*l.y+s.y}},getDocumentElement:ve,getClippingRect:function(t){let{element:o,boundary:e,rootBoundary:r,strategy:i}=t;const n="clippingAncestors"===e?function(t,o){const e=o.get(t);if(e)return e;let r=Ae(t,[],!1).filter((t=>Se(t)&&"body"!==xe(t))),i=null;const n="fixed"===Le(t).position;let a=n?We(t):t;for(;Se(a)&&!Ue(a);){const o=Le(a),e=Ee(a);e||"fixed"!==o.position||(i=null),(n?!e&&!i:!e&&"static"===o.position&&i&&["absolute","fixed"].includes(i.position)||$e(a)&&!e&&Me(t,a))?r=r.filter((t=>t!==a)):i=o,a=We(a)}return o.set(t,r),r}(o,this._c):[].concat(e),a=[...n,r],l=a[0],s=a.reduce(((t,e)=>{const r=He(o,e,i);return t.top=te(r.top,t.top),t.right=Qo(r.right,t.right),t.bottom=Qo(r.bottom,t.bottom),t.left=te(r.left,t.left),t}),He(o,l,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:_e,getElementRects:async function(t){let{reference:o,floating:e,strategy:r}=t;const i=this.getOffsetParent||_e,n=this.getDimensions;return{reference:Ge(o,await i(e),r),floating:{x:0,y:0,...await n(e)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return Ze(t)},getScale:Be,isElement:Se,isRTL:function(t){return"rtl"===Le(t).direction}},Ve=(t,o,e)=>{const r=new Map,i={platform:Ye,...e},n={...i.platform,_c:r};return(async(t,o,e)=>{const{placement:r="bottom",strategy:i="absolute",middleware:n=[],platform:a}=e,l=n.filter(Boolean),s=await(null==a.isRTL?void 0:a.isRTL(o));let c=await a.getElementRects({reference:t,floating:o,strategy:i}),{x:f,y:p}=ye(c,r,s),d=r,h={},u=0;for(let e=0;e<l.length;e++){const{name:n,fn:y}=l[e],{x:g,y:b,data:m,reset:x}=await y({x:f,y:p,initialPlacement:r,placement:d,strategy:i,middlewareData:h,rects:c,platform:a,elements:{reference:t,floating:o}});f=null!=g?g:f,p=null!=b?b:p,h={...h,[n]:{...h[n],...m}},x&&u<=50&&(u++,"object"==typeof x&&(x.placement&&(d=x.placement),x.rects&&(c=!0===x.rects?await a.getElementRects({reference:t,floating:o,strategy:i}):x.rects),({x:f,y:p}=ye(c,d,s))),e=-1)}return{x:f,y:p,placement:d,strategy:i,middlewareData:h}})(t,o,{...i,platform:n})};function Xe(t){return function(t){for(let o=t;o;o=qe(o))if(o instanceof Element&&"none"===getComputedStyle(o).display)return null;for(let o=qe(t);o;o=qe(o)){if(!(o instanceof Element))continue;const t=getComputedStyle(o);if("contents"!==t.display){if("static"!==t.position||"none"!==t.filter)return o;if("BODY"===o.tagName)return o}}return null}(t)}function qe(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}var Je,Qe,tr,or=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class er extends o.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new o.Debouncer,this.revealDebouncer=new o.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return e.html`
|
|
532
532
|
<div part="container"
|
|
533
533
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
534
534
|
@mouseenter=${this.onHover}
|
|
@@ -536,7 +536,7 @@ const Zo=Symbol.for(""),zo=t=>{if(t?.r===Zo)return t?._$litStatic$},Bo=t=>({_$li
|
|
|
536
536
|
@focusin=${this.onHover}
|
|
537
537
|
@focusout=${this.onOut}
|
|
538
538
|
@touchstart=${this.onTouch}>
|
|
539
|
-
<slot></slot>
|
|
539
|
+
<slot part="slot"></slot>
|
|
540
540
|
<div part="tooltip" role="tooltip" inert
|
|
541
541
|
class="ft-tooltip ft-tooltip--${this.validPosition}"
|
|
542
542
|
?hidden=${!this.visible}>
|
|
@@ -546,19 +546,19 @@ const Zo=Symbol.for(""),zo=t=>{if(t?.r===Zo)return t?._$litStatic$},Bo=t=>({_$li
|
|
|
546
546
|
</div>
|
|
547
547
|
</div>
|
|
548
548
|
</div>
|
|
549
|
-
`}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((o=>t.has(o)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){var t;this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",Ve(this.slottedElement,this.tooltip,{middleware:[(t={crossAxis:!0},void 0===t&&(t={}),{name:"shift",options:t,async fn(o){const{x:e,y:r,placement:i}=o,{mainAxis:n=!0,crossAxis:a=!1,limiter:l={fn:t=>{let{x:o,y:e}=t;return{x:o,y:e}}},...s}=ae(t,o),c={x:e,y:r},f=await ge(o,s),p=pe(le(i)),d=ce(p);let h=c[d],u=c[p];if(n){const t="y"===d?"bottom":"right";h=ne(h+f["y"===d?"top":"left"],h,h-f[t])}if(a){const t="y"===p?"bottom":"right";u=ne(u+f["y"===p?"top":"left"],u,u-f[t])}const y=l.fn({...o,[d]:h,[p]:u});return{...y,data:{x:y.x-e,y:y.y-r}}}}),me({allowedPlacements:[this.position]})]}).then((({x:t,y:o})=>{this.tooltip&&(this.tooltip.style.left=`${t}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",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,o){return Math.max(t,Math.min(0,-o))}}tr.elementDefinitions={"ft-typography":Ho},tr.styles=Xo,Qe([r.property()],tr.prototype,"text",void 0),Qe([r.property({type:Boolean})],tr.prototype,"manual",void 0),Qe([r.property({type:Boolean})],tr.prototype,"inline",void 0),Qe([r.property({type:Number})],tr.prototype,"delay",void 0),Qe([r.property()],tr.prototype,"position",void 0),Qe([r.queryAssignedNodes()],tr.prototype,"slotNodes",void 0),Qe([r.query(".ft-tooltip--container")],tr.prototype,"container",void 0),Qe([r.query(".ft-tooltip")],tr.prototype,"tooltip",void 0),Qe([r.query(".ft-tooltip--content")],tr.prototype,"tooltipContent",void 0),Qe([r.state()],tr.prototype,"visible",void 0),Qe([r.eventOptions({passive:!0})],tr.prototype,"onTouch",null),Qe([r.eventOptions({passive:!0})],tr.prototype,"onHover",null),Qe([r.eventOptions({passive:!0})],tr.prototype,"onOut",null),o.customElement("ft-tooltip")(tr),function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.LINE_CHART="",t.STACKED_CHART="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.EXTLINK_LIGHT="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",t.EYE_SLASH="",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_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.PIP="",t.PIP_WIDE="",t.EXPAND_WIDE="",t.X_MARK=""}(Xe||(Xe={})),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=""}(qe||(qe={})),new Map([...["abw"].map((t=>[t,qe.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,qe.AUDIO])),...["avi"].map((t=>[t,qe.AVI])),...["chm","xhs"].map((t=>[t,qe.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,qe.CODE])),...["csv"].map((t=>[t,qe.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,qe.DITA])),...["epub"].map((t=>[t,qe.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,qe.EXCEL])),...["flac"].map((t=>[t,qe.FLAC])),...["gif"].map((t=>[t,qe.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,qe.GZIP])),...["html","htm","xhtml"].map((t=>[t,qe.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,qe.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,qe.JPEG])),...["json"].map((t=>[t,qe.JSON])),...["m4a","m4p"].map((t=>[t,qe.M4A])),...["mov","qt"].map((t=>[t,qe.MOV])),...["mp3"].map((t=>[t,qe.MP3])),...["mp4","m4v"].map((t=>[t,qe.MP4])),...["ogg","oga"].map((t=>[t,qe.OGG])),...["pdf","ps"].map((t=>[t,qe.PDF])),...["png"].map((t=>[t,qe.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,qe.POWERPOINT])),...["rar"].map((t=>[t,qe.RAR])),...["stp"].map((t=>[t,qe.STP])),...["txt","rtf","md","mdown"].map((t=>[t,qe.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,qe.VIDEO])),...["wav"].map((t=>[t,qe.WAV])),...["wma"].map((t=>[t,qe.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,qe.WORD])),...["xml","xsl","rdf"].map((t=>[t,qe.XML])),...["yaml","yml","x-yaml"].map((t=>[t,qe.YAML])),...["zip"].map((t=>[t,qe.ZIP]))]),function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Je||(Je={}));var or=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class er extends o.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=e.nothing}render(){const t=this.variant&&Object.values(Je).includes(this.variant)?this.variant:Je.fluid_topics,o=t!==Je.material||!!this.value;return e.html`
|
|
549
|
+
`}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((o=>t.has(o)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){var t;this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",Ve(this.slottedElement,this.tooltip,{platform:{...Ye,getOffsetParent:t=>Ye.getOffsetParent(t,Xe)},middleware:[(t={crossAxis:!0},void 0===t&&(t={}),{name:"shift",options:t,async fn(o){const{x:e,y:r,placement:i}=o,{mainAxis:n=!0,crossAxis:a=!1,limiter:l={fn:t=>{let{x:o,y:e}=t;return{x:o,y:e}}},...s}=ae(t,o),c={x:e,y:r},f=await ge(o,s),p=pe(le(i)),d=ce(p);let h=c[d],u=c[p];if(n){const t="y"===d?"bottom":"right";h=ne(h+f["y"===d?"top":"left"],h,h-f[t])}if(a){const t="y"===p?"bottom":"right";u=ne(u+f["y"===p?"top":"left"],u,u-f[t])}const y=l.fn({...o,[d]:h,[p]:u});return{...y,data:{x:y.x-e,y:y.y-r}}}}),me({allowedPlacements:[this.position]})]}).then((({x:t,y:o})=>{this.tooltip&&(this.tooltip.style.left=`${t}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",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,o){return Math.max(t,Math.min(0,-o))}}er.elementDefinitions={"ft-typography":Ho},er.styles=Xo,or([r.property()],er.prototype,"text",void 0),or([r.property({type:Boolean})],er.prototype,"manual",void 0),or([r.property({type:Boolean})],er.prototype,"inline",void 0),or([r.property({type:Number})],er.prototype,"delay",void 0),or([r.property()],er.prototype,"position",void 0),or([r.queryAssignedNodes()],er.prototype,"slotNodes",void 0),or([r.query(".ft-tooltip--container")],er.prototype,"container",void 0),or([r.query(".ft-tooltip")],er.prototype,"tooltip",void 0),or([r.query(".ft-tooltip--content")],er.prototype,"tooltipContent",void 0),or([r.state()],er.prototype,"visible",void 0),or([r.eventOptions({passive:!0})],er.prototype,"onTouch",null),or([r.eventOptions({passive:!0})],er.prototype,"onHover",null),or([r.eventOptions({passive:!0})],er.prototype,"onOut",null),o.customElement("ft-tooltip")(er),function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.LINE_CHART="",t.STACKED_CHART="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.EXTLINK_LIGHT="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",t.EYE_SLASH="",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_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.PIP="",t.PIP_WIDE="",t.EXPAND_WIDE="",t.X_MARK=""}(Je||(Je={})),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=""}(Qe||(Qe={})),new Map([...["abw"].map((t=>[t,Qe.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,Qe.AUDIO])),...["avi"].map((t=>[t,Qe.AVI])),...["chm","xhs"].map((t=>[t,Qe.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,Qe.CODE])),...["csv"].map((t=>[t,Qe.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Qe.DITA])),...["epub"].map((t=>[t,Qe.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Qe.EXCEL])),...["flac"].map((t=>[t,Qe.FLAC])),...["gif"].map((t=>[t,Qe.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Qe.GZIP])),...["html","htm","xhtml"].map((t=>[t,Qe.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,Qe.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Qe.JPEG])),...["json"].map((t=>[t,Qe.JSON])),...["m4a","m4p"].map((t=>[t,Qe.M4A])),...["mov","qt"].map((t=>[t,Qe.MOV])),...["mp3"].map((t=>[t,Qe.MP3])),...["mp4","m4v"].map((t=>[t,Qe.MP4])),...["ogg","oga"].map((t=>[t,Qe.OGG])),...["pdf","ps"].map((t=>[t,Qe.PDF])),...["png"].map((t=>[t,Qe.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Qe.POWERPOINT])),...["rar"].map((t=>[t,Qe.RAR])),...["stp"].map((t=>[t,Qe.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Qe.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,Qe.VIDEO])),...["wav"].map((t=>[t,Qe.WAV])),...["wma"].map((t=>[t,Qe.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Qe.WORD])),...["xml","xsl","rdf"].map((t=>[t,Qe.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Qe.YAML])),...["zip"].map((t=>[t,Qe.ZIP]))]),function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(tr||(tr={}));var rr=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class ir extends o.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=e.nothing}render(){const t=this.variant&&Object.values(tr).includes(this.variant)?this.variant:tr.fluid_topics,o=t!==tr.material||!!this.value;return e.html`
|
|
550
550
|
<i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
|
|
551
551
|
${n.unsafeHTML(this.resolvedIcon)}
|
|
552
552
|
<slot ?hidden=${o}></slot>
|
|
553
553
|
</i>
|
|
554
|
-
`}get textContent(){var t,o;return null!==(o=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==o?o:""}update(t){super.update(t),["value","variant"].some((o=>t.has(o)))&&this.resolveIcon()}resolveIcon(){var t,o;let r=this.value||this.textContent;switch(this.variant){case
|
|
554
|
+
`}get textContent(){var t,o;return null!==(o=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==o?o:""}update(t){super.update(t),["value","variant"].some((o=>t.has(o)))&&this.resolveIcon()}resolveIcon(){var t,o;let r=this.value||this.textContent;switch(this.variant){case tr.file_format:this.resolvedIcon=null!==(t=Qe[r.replace("-","_").toUpperCase()])&&void 0!==t?t:r;break;case tr.material:this.resolvedIcon=this.value||e.nothing;break;default:this.resolvedIcon=null!==(o=Je[r.replace("-","_").toUpperCase()])&&void 0!==o?o:r}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}ir.elementDefinitions={},ir.styles=Tt,rr([r.property()],ir.prototype,"variant",void 0),rr([r.property()],ir.prototype,"value",void 0),rr([r.state()],ir.prototype,"resolvedIcon",void 0),rr([r.query("slot")],ir.prototype,"slottedContent",void 0),o.customElement("ft-icon")(ir);class nr extends o.FtLitElement{render(){return e.html`
|
|
555
555
|
<div class="ft-loader">
|
|
556
556
|
<div></div>
|
|
557
557
|
<div></div>
|
|
558
558
|
<div></div>
|
|
559
559
|
<div></div>
|
|
560
560
|
</div>
|
|
561
|
-
`}}
|
|
561
|
+
`}}nr.styles=Ft,o.customElement("ft-loader")(nr);var ar=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class lr extends(o.toFtFormComponent(o.FtLitElement,"button")){constructor(){super(...arguments),this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{var o;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):"submit"==this.type&&(null===(o=this.form)||void 0===o||o.requestSubmit())}}render(){return this.addTooltipIfNeeded(e.html`
|
|
562
562
|
<button part="button"
|
|
563
563
|
class="${i.classMap(this.buttonClasses)}"
|
|
564
564
|
aria-label="${this.getLabel()}"
|
|
@@ -581,7 +581,7 @@ const Zo=Symbol.for(""),zo=t=>{if(t?.r===Zo)return t?._$litStatic$},Bo=t=>({_$li
|
|
|
581
581
|
</ft-tooltip>
|
|
582
582
|
`:t}resolveIcon(){return this.loading?e.html`
|
|
583
583
|
<ft-loader part="loader icon"></ft-loader> `:this.icon?e.html`
|
|
584
|
-
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:e.nothing}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}
|
|
584
|
+
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:e.nothing}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}lr.elementDefinitions={"ft-ripple":Jt,"ft-tooltip":er,"ft-typography":Ho,"ft-icon":ir,"ft-loader":nr},ar([r.property({type:String,reflect:!0})],lr.prototype,"role",void 0),ar([r.property()],lr.prototype,"type",void 0),ar([r.property({type:Boolean})],lr.prototype,"disabled",void 0),ar([r.property()],lr.prototype,"label",void 0),ar([r.property()],lr.prototype,"icon",void 0),ar([r.property()],lr.prototype,"iconVariant",void 0),ar([r.property({type:Boolean})],lr.prototype,"trailingIcon",void 0),ar([r.property({type:Boolean})],lr.prototype,"loading",void 0),ar([r.property()],lr.prototype,"tooltipPosition",void 0),ar([r.property({type:Boolean})],lr.prototype,"hideTooltip",void 0),ar([r.property({type:Boolean})],lr.prototype,"forceTooltip",void 0),ar([r.query(".ft-button")],lr.prototype,"button",void 0),ar([r.query(".ft-button--label slot")],lr.prototype,"slottedContent",void 0);var sr=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class cr extends lr{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"}}cr.styles=[o.safariEllipsisFix,Xt],sr([r.property({type:Boolean})],cr.prototype,"primary",void 0),sr([r.property({type:Boolean})],cr.prototype,"outlined",void 0),sr([r.property({type:Boolean})],cr.prototype,"dense",void 0),sr([r.property({type:Boolean})],cr.prototype,"round",void 0);const fr=[e.css`
|
|
585
585
|
:host {
|
|
586
586
|
display: inline-block;
|
|
587
587
|
max-width: 100%;
|
|
@@ -799,16 +799,16 @@ const Zo=Symbol.for(""),zo=t=>{if(t?.r===Zo)return t?._$litStatic$},Bo=t=>({_$li
|
|
|
799
799
|
width: ${v.smallIconOnlyWidth};
|
|
800
800
|
padding: unset;
|
|
801
801
|
}
|
|
802
|
-
`,o.noTextSelect];var cr,fr,pr,dr,hr,ur,yr,gr,br,mr,xr,Or,vr,Nr,Sr=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class wr extends nr{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary&&!this.neutral,"ft-button--neutral":this.neutral,"ft-button--large":!this.small,"ft-button--small":this.small,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon}}get typographyVariant(){return this.small?To.caption1medium:To.body2medium}}wr.styles=[o.safariEllipsisFix,sr],Sr([r.property({type:Boolean})],wr.prototype,"primary",void 0),Sr([r.property({type:Boolean})],wr.prototype,"secondary",void 0),Sr([r.property({type:Boolean})],wr.prototype,"tertiary",void 0),Sr([r.property({type:Boolean})],wr.prototype,"neutral",void 0),Sr([r.property({type:Boolean})],wr.prototype,"small",void 0),o.customElement("ft-button")(lr),o.customElement("ftds-button")(wr),function(t){!function(o){var e={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(e.arrayBuffer)var r=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],i=ArrayBuffer.isView||function(t){return t&&r.indexOf(Object.prototype.toString.call(t))>-1};function n(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function a(t){return"string"!=typeof t&&(t=String(t)),t}function l(t){var o={next:function(){var o=t.shift();return{done:void 0===o,value:o}}};return e.iterable&&(o[Symbol.iterator]=function(){return o}),o}function s(t){this.map={},t instanceof s?t.forEach((function(t,o){this.append(o,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(o){this.append(o,t[o])}),this)}function c(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function f(t){return new Promise((function(o,e){t.onload=function(){o(t.result)},t.onerror=function(){e(t.error)}}))}function p(t){var o=new FileReader,e=f(o);return o.readAsArrayBuffer(t),e}function d(t){if(t.slice)return t.slice(0);var o=new Uint8Array(t.byteLength);return o.set(new Uint8Array(t)),o.buffer}function h(){return this.bodyUsed=!1,this._initBody=function(t){var o;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:e.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:e.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:e.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():e.arrayBuffer&&e.blob&&((o=t)&&DataView.prototype.isPrototypeOf(o))?(this._bodyArrayBuffer=d(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):e.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||i(t))?this._bodyArrayBuffer=d(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):e.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},e.blob&&(this.blob=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?c(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(p)}),this.text=function(){var t,o,e,r=c(this);if(r)return r;if(this._bodyBlob)return t=this._bodyBlob,o=new FileReader,e=f(o),o.readAsText(t),e;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var o=new Uint8Array(t),e=new Array(o.length),r=0;r<o.length;r++)e[r]=String.fromCharCode(o[r]);return e.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},e.formData&&(this.formData=function(){return this.text().then(g)}),this.json=function(){return this.text().then(JSON.parse)},this}s.prototype.append=function(t,o){t=n(t),o=a(o);var e=this.map[t];this.map[t]=e?e+", "+o:o},s.prototype.delete=function(t){delete this.map[n(t)]},s.prototype.get=function(t){return t=n(t),this.has(t)?this.map[t]:null},s.prototype.has=function(t){return this.map.hasOwnProperty(n(t))},s.prototype.set=function(t,o){this.map[n(t)]=a(o)},s.prototype.forEach=function(t,o){for(var e in this.map)this.map.hasOwnProperty(e)&&t.call(o,this.map[e],e,this)},s.prototype.keys=function(){var t=[];return this.forEach((function(o,e){t.push(e)})),l(t)},s.prototype.values=function(){var t=[];return this.forEach((function(o){t.push(o)})),l(t)},s.prototype.entries=function(){var t=[];return this.forEach((function(o,e){t.push([e,o])})),l(t)},e.iterable&&(s.prototype[Symbol.iterator]=s.prototype.entries);var u=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function y(t,o){var e,r,i=(o=o||{}).body;if(t instanceof y){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,o.headers||(this.headers=new s(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,i||null==t._bodyInit||(i=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=o.credentials||this.credentials||"same-origin",!o.headers&&this.headers||(this.headers=new s(o.headers)),this.method=(e=o.method||this.method||"GET",r=e.toUpperCase(),u.indexOf(r)>-1?r:e),this.mode=o.mode||this.mode||null,this.signal=o.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function g(t){var o=new FormData;return t.trim().split("&").forEach((function(t){if(t){var e=t.split("="),r=e.shift().replace(/\+/g," "),i=e.join("=").replace(/\+/g," ");o.append(decodeURIComponent(r),decodeURIComponent(i))}})),o}function b(t,o){o||(o={}),this.type="default",this.status=void 0===o.status?200:o.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in o?o.statusText:"OK",this.headers=new s(o.headers),this.url=o.url||"",this._initBody(t)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},h.call(y.prototype),h.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new s(this.headers),url:this.url})},b.error=function(){var t=new b(null,{status:0,statusText:""});return t.type="error",t};var m=[301,302,303,307,308];b.redirect=function(t,o){if(-1===m.indexOf(o))throw new RangeError("Invalid status code");return new b(null,{status:o,headers:{location:t}})},o.DOMException=t.DOMException;try{new o.DOMException}catch(t){o.DOMException=function(t,o){this.message=t,this.name=o;var e=Error(t);this.stack=e.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function x(t,r){return new Promise((function(i,n){var a=new y(t,r);if(a.signal&&a.signal.aborted)return n(new o.DOMException("Aborted","AbortError"));var l=new XMLHttpRequest;function c(){l.abort()}l.onload=function(){var t,o,e={status:l.status,statusText:l.statusText,headers:(t=l.getAllResponseHeaders()||"",o=new s,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var e=t.split(":"),r=e.shift().trim();if(r){var i=e.join(":").trim();o.append(r,i)}})),o)};e.url="responseURL"in l?l.responseURL:e.headers.get("X-Request-URL");var r="response"in l?l.response:l.responseText;i(new b(r,e))},l.onerror=function(){n(new TypeError("Network request failed"))},l.ontimeout=function(){n(new TypeError("Network request failed"))},l.onabort=function(){n(new o.DOMException("Aborted","AbortError"))},l.open(a.method,a.url,!0),"include"===a.credentials?l.withCredentials=!0:"omit"===a.credentials&&(l.withCredentials=!1),"responseType"in l&&e.blob&&(l.responseType="blob"),a.headers.forEach((function(t,o){l.setRequestHeader(o,t)})),a.signal&&(a.signal.addEventListener("abort",c),l.onreadystatechange=function(){4===l.readyState&&a.signal.removeEventListener("abort",c)}),l.send(void 0===a._bodyInit?null:a._bodyInit)}))}x.polyfill=!0,t.fetch||(t.fetch=x,t.Headers=s,t.Request=y,t.Response=b),o.Headers=s,o.Request=y,o.Response=b,o.fetch=x,Object.defineProperty(o,"t",{value:!0})}({})}("undefined"!=typeof self?self:void 0),function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"}(cr||(cr={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(fr||(fr={})),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"}(pr||(pr={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(dr||(dr={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(hr||(hr={})),function(t){t.ASC="ASC",t.DESC="DESC"}(ur||(ur={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(yr||(yr={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(gr||(gr={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(br||(br={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(mr||(mr={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(xr||(xr={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(Or||(Or={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS"}(vr||(vr={})),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.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"}(Nr||(Nr={})),Nr.PERSONAL_BOOK_SHARE_USER,Nr.PERSONAL_BOOK_USER,Nr.HTML_EXPORT_USER,Nr.PERSONAL_BOOK_USER,Nr.PDF_EXPORT_USER,Nr.PERSONAL_BOOK_USER,Nr.KHUB_ADMIN,Nr.CONTENT_PUBLISHER,Nr.ADMIN,Nr.KHUB_ADMIN,Nr.USERS_ADMIN,Nr.PORTAL_ADMIN,Nr.DEVELOPER,Nr.BETA_USER,Nr.DEBUG_USER;const Cr=e.css`
|
|
803
|
-
|
|
802
|
+
`,o.noTextSelect];var pr,dr,hr,ur,yr,gr,br,mr,xr,Or,vr,Nr,Sr,wr,Cr=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class $r extends lr{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary&&!this.neutral,"ft-button--neutral":this.neutral,"ft-button--large":!this.small,"ft-button--small":this.small,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon}}get typographyVariant(){return this.small?To.caption1medium:To.body2medium}}$r.styles=[o.safariEllipsisFix,fr],Cr([r.property({type:Boolean})],$r.prototype,"primary",void 0),Cr([r.property({type:Boolean})],$r.prototype,"secondary",void 0),Cr([r.property({type:Boolean})],$r.prototype,"tertiary",void 0),Cr([r.property({type:Boolean})],$r.prototype,"neutral",void 0),Cr([r.property({type:Boolean})],$r.prototype,"small",void 0),o.customElement("ft-button")(cr),o.customElement("ftds-button")($r),function(t){!function(o){var e={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(e.arrayBuffer)var r=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],i=ArrayBuffer.isView||function(t){return t&&r.indexOf(Object.prototype.toString.call(t))>-1};function n(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function a(t){return"string"!=typeof t&&(t=String(t)),t}function l(t){var o={next:function(){var o=t.shift();return{done:void 0===o,value:o}}};return e.iterable&&(o[Symbol.iterator]=function(){return o}),o}function s(t){this.map={},t instanceof s?t.forEach((function(t,o){this.append(o,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(o){this.append(o,t[o])}),this)}function c(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function f(t){return new Promise((function(o,e){t.onload=function(){o(t.result)},t.onerror=function(){e(t.error)}}))}function p(t){var o=new FileReader,e=f(o);return o.readAsArrayBuffer(t),e}function d(t){if(t.slice)return t.slice(0);var o=new Uint8Array(t.byteLength);return o.set(new Uint8Array(t)),o.buffer}function h(){return this.bodyUsed=!1,this._initBody=function(t){var o;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:e.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:e.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:e.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():e.arrayBuffer&&e.blob&&((o=t)&&DataView.prototype.isPrototypeOf(o))?(this._bodyArrayBuffer=d(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):e.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||i(t))?this._bodyArrayBuffer=d(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):e.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},e.blob&&(this.blob=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?c(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(p)}),this.text=function(){var t,o,e,r=c(this);if(r)return r;if(this._bodyBlob)return t=this._bodyBlob,o=new FileReader,e=f(o),o.readAsText(t),e;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var o=new Uint8Array(t),e=new Array(o.length),r=0;r<o.length;r++)e[r]=String.fromCharCode(o[r]);return e.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},e.formData&&(this.formData=function(){return this.text().then(g)}),this.json=function(){return this.text().then(JSON.parse)},this}s.prototype.append=function(t,o){t=n(t),o=a(o);var e=this.map[t];this.map[t]=e?e+", "+o:o},s.prototype.delete=function(t){delete this.map[n(t)]},s.prototype.get=function(t){return t=n(t),this.has(t)?this.map[t]:null},s.prototype.has=function(t){return this.map.hasOwnProperty(n(t))},s.prototype.set=function(t,o){this.map[n(t)]=a(o)},s.prototype.forEach=function(t,o){for(var e in this.map)this.map.hasOwnProperty(e)&&t.call(o,this.map[e],e,this)},s.prototype.keys=function(){var t=[];return this.forEach((function(o,e){t.push(e)})),l(t)},s.prototype.values=function(){var t=[];return this.forEach((function(o){t.push(o)})),l(t)},s.prototype.entries=function(){var t=[];return this.forEach((function(o,e){t.push([e,o])})),l(t)},e.iterable&&(s.prototype[Symbol.iterator]=s.prototype.entries);var u=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function y(t,o){var e,r,i=(o=o||{}).body;if(t instanceof y){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,o.headers||(this.headers=new s(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,i||null==t._bodyInit||(i=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=o.credentials||this.credentials||"same-origin",!o.headers&&this.headers||(this.headers=new s(o.headers)),this.method=(e=o.method||this.method||"GET",r=e.toUpperCase(),u.indexOf(r)>-1?r:e),this.mode=o.mode||this.mode||null,this.signal=o.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function g(t){var o=new FormData;return t.trim().split("&").forEach((function(t){if(t){var e=t.split("="),r=e.shift().replace(/\+/g," "),i=e.join("=").replace(/\+/g," ");o.append(decodeURIComponent(r),decodeURIComponent(i))}})),o}function b(t,o){o||(o={}),this.type="default",this.status=void 0===o.status?200:o.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in o?o.statusText:"OK",this.headers=new s(o.headers),this.url=o.url||"",this._initBody(t)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},h.call(y.prototype),h.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new s(this.headers),url:this.url})},b.error=function(){var t=new b(null,{status:0,statusText:""});return t.type="error",t};var m=[301,302,303,307,308];b.redirect=function(t,o){if(-1===m.indexOf(o))throw new RangeError("Invalid status code");return new b(null,{status:o,headers:{location:t}})},o.DOMException=t.DOMException;try{new o.DOMException}catch(t){o.DOMException=function(t,o){this.message=t,this.name=o;var e=Error(t);this.stack=e.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function x(t,r){return new Promise((function(i,n){var a=new y(t,r);if(a.signal&&a.signal.aborted)return n(new o.DOMException("Aborted","AbortError"));var l=new XMLHttpRequest;function c(){l.abort()}l.onload=function(){var t,o,e={status:l.status,statusText:l.statusText,headers:(t=l.getAllResponseHeaders()||"",o=new s,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var e=t.split(":"),r=e.shift().trim();if(r){var i=e.join(":").trim();o.append(r,i)}})),o)};e.url="responseURL"in l?l.responseURL:e.headers.get("X-Request-URL");var r="response"in l?l.response:l.responseText;i(new b(r,e))},l.onerror=function(){n(new TypeError("Network request failed"))},l.ontimeout=function(){n(new TypeError("Network request failed"))},l.onabort=function(){n(new o.DOMException("Aborted","AbortError"))},l.open(a.method,a.url,!0),"include"===a.credentials?l.withCredentials=!0:"omit"===a.credentials&&(l.withCredentials=!1),"responseType"in l&&e.blob&&(l.responseType="blob"),a.headers.forEach((function(t,o){l.setRequestHeader(o,t)})),a.signal&&(a.signal.addEventListener("abort",c),l.onreadystatechange=function(){4===l.readyState&&a.signal.removeEventListener("abort",c)}),l.send(void 0===a._bodyInit?null:a._bodyInit)}))}x.polyfill=!0,t.fetch||(t.fetch=x,t.Headers=s,t.Request=y,t.Response=b),o.Headers=s,o.Request=y,o.Response=b,o.fetch=x,Object.defineProperty(o,"t",{value:!0})}({})}("undefined"!=typeof self?self:void 0),function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"}(pr||(pr={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(dr||(dr={})),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"}(hr||(hr={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(ur||(ur={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(yr||(yr={})),function(t){t.ASC="ASC",t.DESC="DESC"}(gr||(gr={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(br||(br={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(mr||(mr={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(xr||(xr={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(Or||(Or={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(vr||(vr={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(Nr||(Nr={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS"}(Sr||(Sr={})),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.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"}(wr||(wr={})),wr.PERSONAL_BOOK_SHARE_USER,wr.PERSONAL_BOOK_USER,wr.HTML_EXPORT_USER,wr.PERSONAL_BOOK_USER,wr.PDF_EXPORT_USER,wr.PERSONAL_BOOK_USER,wr.KHUB_ADMIN,wr.CONTENT_PUBLISHER,wr.ADMIN,wr.KHUB_ADMIN,wr.USERS_ADMIN,wr.PORTAL_ADMIN,wr.DEVELOPER,wr.BETA_USER,wr.DEBUG_USER;const Ir=e.css`
|
|
803
|
+
`,Er=o.FtReduxStore.get({name:"ft-app-info",reducers:{setBaseUrl:(t,o)=>{t.baseUrl=o.payload},setApiIntegrationIdentifier:(t,o)=>{t.apiIntegrationIdentifier=o.payload},setUiLocale:(t,o)=>{t.uiLocale=o.payload},setAvailableUiLocales:(t,o)=>{t.availableUiLocales=o.payload},setEditorMode:(t,o)=>{t.editorMode=o.payload},setNoCustom:(t,o)=>{t.noCustom=o.payload},setNoCustomComponent:(t,o)=>{t.noCustomComponent=o.payload},setSession:(t,o)=>{t.session=o.payload}},initialState:{uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],editorMode:!1,noCustom:!1,noCustomComponent:!1}});class Rr{static build(t){const{baseUrl:o,apiIntegrationIdentifier:e}=Er.getState(),r=null!=t?t:e;if(o&&r&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,r,!0)}static get(t){var o;return null!=t?Rr.build(t):null!==(o=Rr.API)&&void 0!==o?o:Rr.API=Rr.build()}static await(t){return new Promise((o=>{let e=Rr.get(t);if(e)o(e);else{const r=Er.subscribe((()=>{e=Rr.get(t),e&&(r(),o(e))}))}}))}}var Ur;const Lr=Symbol("clearAfterUnitTest");class kr{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new o.CacheRegistry,this.listeners={},this.currentUiLocale="",this[Ur]=()=>{this.defaultMessages={},this.cache=new o.CacheRegistry,this.listeners={}},this.currentUiLocale=Er.getState().uiLocale,Er.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=Er.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const o=t.name.toLowerCase();this.cache.setFinal(o,t),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var r;if(t=t.toLowerCase(),Object.keys(e).length>0){const i={...null!==(r=this.defaultMessages[t])&&void 0!==r?r:{},...e};o.deepEqual(this.defaultMessages[t],i)||(this.defaultMessages[t]=i,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...r){var i,n,a;t=t.toLowerCase(),this.fetchContext(t);const l=null!==(n=null===(i=this.cache.getNow(t))||void 0===i?void 0:i.messages)&&void 0!==n?n:{};return new o.ParametrizedLabelResolver(null!==(a=this.defaultMessages[t])&&void 0!==a?a:{},l).resolve(e,...r)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,o){var e;return t=t.toLowerCase(),this.listeners[t]=null!==(e=this.listeners[t])&&void 0!==e?e:new Set,this.listeners[t].add(o),()=>{var e;return null===(e=this.listeners[t])||void 0===e?void 0:e.delete(o)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>o.delay(0).then((()=>t())).catch((()=>null)))))}}Ur=Lr,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new kr((async(t,o)=>(await Rr.await()).getFluidTopicsMessageContext(t,o)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new kr((async(t,o)=>(await Rr.await()).getCustomMessageContext(t,o))));const Wr=window.FluidTopicsI18nService,Kr=window.FluidTopicsCustomI18nService;var Ar=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Zr extends o.FtLitElement{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.availableUiLocales=[],this.editorMode=!1,this.noCustom=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.messageContexts=[],this.apiProvider=()=>Rr.get(),this.cache=new o.CacheRegistry,this.cleanSessionDebouncer=new o.Debouncer}render(){return e.html`
|
|
804
804
|
<slot></slot>
|
|
805
|
-
`}update(t){super.update(t),t.has("baseUrl")
|
|
806
|
-
`;var
|
|
805
|
+
`}update(t){super.update(t),t.has("baseUrl")&&Er.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&Er.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&Er.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&Er.actions.setNoCustom(this.noCustom),t.has("editorMode")&&Er.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&Er.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&Er.actions.setSession(this.session),t.has("availableUiLocales")&&Er.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>Wr.addContext(t))),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){const t=this.apiProvider();!this.withManualResources&&t&&(null==this.session&&(this.session=await this.cache.get("session",(async()=>{const o=await t.getCurrentSession();return o.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),o.idleTimeoutInMillis),o}))),null==this.availableUiLocales&&(this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>t.getAvailableUiLocales()))))}}Zr.elementDefinitions={},Zr.styles=Ir,Ar([r.property()],Zr.prototype,"baseUrl",void 0),Ar([r.property()],Zr.prototype,"apiIntegrationIdentifier",void 0),Ar([r.property()],Zr.prototype,"uiLocale",void 0),Ar([o.jsonProperty([])],Zr.prototype,"availableUiLocales",void 0),Ar([r.property({type:Boolean})],Zr.prototype,"editorMode",void 0),Ar([r.property({type:Boolean})],Zr.prototype,"noCustom",void 0),Ar([r.property({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],Zr.prototype,"noCustomComponent",void 0),Ar([r.property({type:Boolean})],Zr.prototype,"withManualResources",void 0),Ar([o.jsonProperty([])],Zr.prototype,"messageContexts",void 0),Ar([o.jsonProperty(void 0)],Zr.prototype,"session",void 0),Ar([r.property({type:Object})],Zr.prototype,"apiProvider",void 0);class zr{async listMySearches(){var t;return(null===(t=Er.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await Rr.await()).listMySearches(Er.getState().session.profile.userId):[]}}const Br=new o.CacheRegistry;class Fr{async listMyBookmarks(){return Br.get("bookmarks",(async()=>(await Rr.await()).listMyBookmarks(Er.getState().session.profile.userId)))}clearCache(){Br.clear("bookmarks")}}const Dr=o.FtReduxStore.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});new class{constructor(){this.currentSession=Er.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Fr,Er.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=Er.getState();o.deepEqual(null===(t=this.currentSession)||void 0===t?void 0:t.profile,null==e?void 0:e.profile)||(this.currentSession=e,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){Dr.actions.savedSearches(void 0)}clearMyBookmarks(){Dr.actions.bookmarks(void 0)}async reloadMySearches(){const t=new zr,o=await t.listMySearches();Dr.actions.savedSearches(o)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){const o=(null===(t=this.currentSession)||void 0===t?void 0:t.sessionAuthenticated)?await this.bookmarksService.listMyBookmarks():void 0;Dr.actions.bookmarks(o)}}},o.customElement("ft-app-context")(Zr);class Tr extends Event{constructor(){super(Tr.eventName)}}Tr.eventName="search-context-clear-all-filters";var Pr=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Hr extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}}const Mr=Symbol("registerInterval");class Gr extends(function(t){var o;class e extends t{constructor(){super(...arguments),this[o]=0}setSearchStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Mr]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[Mr]):this.dispatchEvent(new Hr)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return o=Mr,Pr([r.state()],e.prototype,"stateManager",void 0),e}(o.FtLitElementRedux)){}const jr=e.css`
|
|
806
|
+
`;var _r=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};const Yr=Symbol("i18nProperties"),Vr=Symbol("i18nUnsubs");function Xr(t){var o;class e extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[o]=new Map}get i18nService(){return this.useCustomMessageContexts?Kr:Wr}i18n(t,o,...e){var r;if("string"==typeof t)return this.i18nService.resolveMessage(t,o,...e);const i=null!==(r=t.args)&&void 0!==r?r:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...i)}onI18nUpdate(t){var o;null===(o=this[Yr])||void 0===o||o.forEach(((o,e)=>{o.context.toLowerCase()===t.toLowerCase()&&(this[e]=this.i18n(o))})),setTimeout((()=>this.requestUpdate()),0)}update(t){var o;super.update(t),null===(o=this[Yr])||void 0===o||o.forEach(((t,o)=>{null!=t.argsProvider&&(this[o]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[Yr]&&new Set([...this[Yr].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,o){t=t.toLowerCase(),this[Vr].has(t)||this[Vr].set(t,this.i18nService.subscribe(t,(()=>this.onI18nUpdate(t)))),this.i18nService.prepareContext(t,null!=o?o:{})}addI18nContext(t,o){this.addI18nMessages(t.name,o)}disconnectedCallback(){super.disconnectedCallback(),this[Vr].forEach((t=>t())),this[Vr].clear()}}return o=Vr,_r([r.property({type:Boolean})],e.prototype,"useCustomMessageContexts",void 0),e}class qr extends(Xr(o.FtLitElement)){}class Jr extends(Xr(o.FtLitElementRedux)){}var Qr=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class ti extends Jr{constructor(){super(),this.editorMode=!1,this.addStore(Er)}render(){return this.key&&this.context?e.html`
|
|
807
807
|
<span class="ft-i18n">
|
|
808
808
|
${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
|
|
809
809
|
</span>
|
|
810
|
-
`:this.editorMode?"Select a context and a label key.":e.nothing}update(t){var o;super.update(t),this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:null!==(o=this.defaultMessage)&&void 0!==o?o:""})}}
|
|
810
|
+
`:this.editorMode?"Select a context and a label key.":e.nothing}update(t){var o;super.update(t),this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:null!==(o=this.defaultMessage)&&void 0!==o?o:""})}}ti.elementDefinitions={},ti.styles=jr,Qr([o.redux()],ti.prototype,"editorMode",void 0),Qr([r.property()],ti.prototype,"context",void 0),Qr([r.property()],ti.prototype,"key",void 0),Qr([o.jsonProperty([])],ti.prototype,"args",void 0),Qr([r.property()],ti.prototype,"defaultMessage",void 0);class oi{static build(t){return new oi(t)}static fromGwt(t){return new oi(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,o)=>{const e=o;return t=>({context:this.name,key:e,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,o)=>(...t)=>Wr.resolveMessage(this.name,o,...t)})}}o.customElement("ft-i18n")(ti);const ei=oi.fromGwt("designedActionBlockAriaLabels");var ri=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class ii extends(Xr(Gr)){constructor(){super(),this.currentPage=1,this.isLastPage=!0,this.addI18nContext(ei)}render(){return this.isLastPage?e.nothing:e.html`
|
|
811
811
|
<ft-button @click="${this.loadMore}">
|
|
812
|
-
${
|
|
812
|
+
${ei.messages.searchPageLoadMore()}
|
|
813
813
|
</ft-button>
|
|
814
|
-
`}loadMore(){var t;null===(t=this.stateManager)||void 0===t||t.setPageNumber(this.currentPage+1)}}
|
|
814
|
+
`}loadMore(){var t;null===(t=this.stateManager)||void 0===t||t.setPageNumber(this.currentPage+1)}}ii.elementDefinitions={"ft-button":cr},ii.styles=a,ri([o.redux({store:"search",selector:t=>{var o,e;return null!==(e=null===(o=t.paging)||void 0===o?void 0:o.currentPage)&&void 0!==e?e:1}})],ii.prototype,"currentPage",void 0),ri([o.redux({store:"search",selector:t=>{var o,e;return null===(e=null===(o=t.paging)||void 0===o?void 0:o.isLastPage)||void 0===e||e}})],ii.prototype,"isLastPage",void 0),o.customElement("ft-search-load-more-button")(ii),t.FtSearchLoadMoreButton=ii,t.FtSearchLoadMoreButtonCssVariables={},t.styles=a}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML);
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* subject to an additional IP rights grant found at
|
|
13
13
|
* http://polymer.github.io/PATENTS.txt
|
|
14
14
|
*/
|
|
15
|
-
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,o=window.customElements.get,r=window.customElements,n=new WeakMap,i=new WeakMap,a=new WeakMap,s=new WeakMap;let c;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,n){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(n))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=n.prototype.attributeChangedCallback,c=new Set(n.observedAttributes||[]);u(n,c,s);const l={elementClass:n,connectedCallback:n.prototype.connectedCallback,disconnectedCallback:n.prototype.disconnectedCallback,adoptedCallback:n.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:n.formAssociated,formAssociatedCallback:n.prototype.formAssociatedCallback,formDisabledCallback:n.prototype.formDisabledCallback,formResetCallback:n.prototype.formResetCallback,formStateRestoreCallback:n.prototype.formStateRestoreCallback,observedAttributes:c};this._definitionsByTag.set(t,l),this._definitionsByClass.set(n,l);let f=o.call(r,t);f||(f=h(t),e.call(r,t,f)),this===window.customElements&&(a.set(n,l),l.standInClass=f);const p=this._awaitingUpgrade.get(t);if(p){this._awaitingUpgrade.delete(t);for(const t of p)i.delete(t),d(t,l,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){g.push(this),r.upgrade.apply(r,arguments),g.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let o=this._whenDefinedPromises.get(t);return void 0===o&&(o={},o.promise=new Promise((t=>o.resolve=t)),this._whenDefinedPromises.set(t,o)),o.promise}_upgradeWhenDefined(t,e,o){let r=this._awaitingUpgrade.get(e);r||this._awaitingUpgrade.set(e,r=new Set),o?r.add(t):r.delete(t)}},window.HTMLElement=function(){let e=c;if(e)return c=void 0,e;const o=a.get(this.constructor);if(!o)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],o.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),n.set(e,o),e},window.HTMLElement.prototype=t.prototype;const l=t=>t===document||t instanceof ShadowRoot,f=t=>{let e=t.getRootNode();if(!l(e)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),l(e)||(e=s.get(e)?.getRootNode()||document)}return e.customElements},h=e=>class{static get formAssociated(){return!0}constructor(){const o=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(o,HTMLElement.prototype);const r=f(o)||window.customElements,n=r._getDefinition(e);return n?d(o,n):i.set(o,r),o}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):i.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):i.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=n.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=n.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=n.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=n.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=n.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},u=(t,e,o)=>{if(0===e.size||void 0===o)return;const r=t.prototype.setAttribute;r&&(t.prototype.setAttribute=function(t,n){const i=t.toLowerCase();if(e.has(i)){const t=this.getAttribute(i);r.call(this,i,n),o.call(this,i,t,n)}else r.call(this,i,n)});const n=t.prototype.removeAttribute;n&&(t.prototype.removeAttribute=function(t){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);n.call(this,r),o.call(this,r,t,null)}else n.call(this,r)});const i=t.prototype.toggleAttribute;i&&(t.prototype.toggleAttribute=function(t,r){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);i.call(this,n,r);const e=this.getAttribute(n);o.call(this,n,t,e)}else i.call(this,n,r)})},p=e=>{const o=Object.getPrototypeOf(e);if(o!==window.HTMLElement)return o===t?Object.setPrototypeOf(e,window.HTMLElement):p(o)},d=(t,e,o=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),n.set(t,e),c=t;try{new e.elementClass}catch(t){p(e.elementClass),new e.elementClass}e.attributeChangedCallback&&e.observedAttributes.forEach((o=>{t.hasAttribute(o)&&e.attributeChangedCallback.call(t,o,null,t.getAttribute(o))})),o&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=y.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let g=[document];const b=(t,e,o=void 0)=>{const r=(o?Object.getPrototypeOf(o):t.prototype)[e];t.prototype[e]=function(){g.push(this);const t=r.apply(o||this,arguments);return void 0!==t&&s.set(t,this),g.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const m=(t,e)=>{const o=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...o,set(t){g.push(this),o.set.call(this,t),g.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,o=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...o){const r=e.call(this,...o);return t.set(r,this),r},o.forEach((e=>{const o=window.ElementInternals.prototype,r=o[e];o[e]=function(...e){const o=t.get(this);if(!0===n.get(o).formAssociated)return r?.call(this,...e);throw new DOMException(`Failed to execute ${r} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class r extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class i{constructor(t){const e=new Map;t.forEach(((t,o)=>{const r=t.getAttribute("name"),n=e.get(r)||[];this[+o]=t,n.push(t),e.set(r,n)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new r(t))}))}namedItem(t){return this[t]}}const a=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=a.get.call(this,[]),e=[];for(const o of t){const t=n.get(o);t&&!0!==t.formAssociated||e.push(o)}return new i(e)}})}}try{window.customElements.define("custom-element",null)}catch(
|
|
15
|
+
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,o=window.customElements.get,r=window.customElements,n=new WeakMap,i=new WeakMap,a=new WeakMap,s=new WeakMap;let c;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,n){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(n))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=n.prototype.attributeChangedCallback,c=new Set(n.observedAttributes||[]);u(n,c,s);const l={elementClass:n,connectedCallback:n.prototype.connectedCallback,disconnectedCallback:n.prototype.disconnectedCallback,adoptedCallback:n.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:n.formAssociated,formAssociatedCallback:n.prototype.formAssociatedCallback,formDisabledCallback:n.prototype.formDisabledCallback,formResetCallback:n.prototype.formResetCallback,formStateRestoreCallback:n.prototype.formStateRestoreCallback,observedAttributes:c};this._definitionsByTag.set(t,l),this._definitionsByClass.set(n,l);let f=o.call(r,t);f||(f=h(t),e.call(r,t,f)),this===window.customElements&&(a.set(n,l),l.standInClass=f);const p=this._awaitingUpgrade.get(t);if(p){this._awaitingUpgrade.delete(t);for(const t of p)i.delete(t),d(t,l,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){g.push(this),r.upgrade.apply(r,arguments),g.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let o=this._whenDefinedPromises.get(t);return void 0===o&&(o={},o.promise=new Promise((t=>o.resolve=t)),this._whenDefinedPromises.set(t,o)),o.promise}_upgradeWhenDefined(t,e,o){let r=this._awaitingUpgrade.get(e);r||this._awaitingUpgrade.set(e,r=new Set),o?r.add(t):r.delete(t)}},window.HTMLElement=function(){let e=c;if(e)return c=void 0,e;const o=a.get(this.constructor);if(!o)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],o.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),n.set(e,o),e},window.HTMLElement.prototype=t.prototype;const l=t=>t===document||t instanceof ShadowRoot,f=t=>{let e=t.getRootNode();if(!l(e)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),l(e)||(e=s.get(e)?.getRootNode()||document)}return e.customElements},h=e=>class{static get formAssociated(){return!0}constructor(){const o=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(o,HTMLElement.prototype);const r=f(o)||window.customElements,n=r._getDefinition(e);return n?d(o,n):i.set(o,r),o}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):i.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):i.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=n.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=n.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=n.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=n.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=n.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},u=(t,e,o)=>{if(0===e.size||void 0===o)return;const r=t.prototype.setAttribute;r&&(t.prototype.setAttribute=function(t,n){const i=t.toLowerCase();if(e.has(i)){const t=this.getAttribute(i);r.call(this,i,n),o.call(this,i,t,n)}else r.call(this,i,n)});const n=t.prototype.removeAttribute;n&&(t.prototype.removeAttribute=function(t){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);n.call(this,r),o.call(this,r,t,null)}else n.call(this,r)});const i=t.prototype.toggleAttribute;i&&(t.prototype.toggleAttribute=function(t,r){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);i.call(this,n,r);const e=this.getAttribute(n);o.call(this,n,t,e)}else i.call(this,n,r)})},p=e=>{const o=Object.getPrototypeOf(e);if(o!==window.HTMLElement)return o===t?Object.setPrototypeOf(e,window.HTMLElement):p(o)},d=(t,e,o=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),n.set(t,e),c=t;try{new e.elementClass}catch(t){p(e.elementClass),new e.elementClass}e.attributeChangedCallback&&e.observedAttributes.forEach((o=>{t.hasAttribute(o)&&e.attributeChangedCallback.call(t,o,null,t.getAttribute(o))})),o&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=y.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let g=[document];const b=(t,e,o=void 0)=>{const r=(o?Object.getPrototypeOf(o):t.prototype)[e];t.prototype[e]=function(){g.push(this);const t=r.apply(o||this,arguments);return void 0!==t&&s.set(t,this),g.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const m=(t,e)=>{const o=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...o,set(t){g.push(this),o.set.call(this,t),g.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,o=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...o){const r=e.call(this,...o);return t.set(r,this),r},o.forEach((e=>{const o=window.ElementInternals.prototype,r=o[e];o[e]=function(...e){const o=t.get(this);if(!0===n.get(o).formAssociated)return r?.call(this,...e);throw new DOMException(`Failed to execute ${r} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class r extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class i{constructor(t){const e=new Map;t.forEach(((t,o)=>{const r=t.getAttribute("name"),n=e.get(r)||[];this[+o]=t,n.push(t),e.set(r,n)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new r(t))}))}namedItem(t){return this[t]}}const a=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=a.get.call(this,[]),e=[];for(const o of t){const t=n.get(o);t&&!0!==t.formAssociated||e.push(o)}return new i(e)}})}}try{window.customElements.define("custom-element",null)}catch(rs){const t=window.customElements.define;window.customElements.define=(e,o,r)=>{if(null!==o)try{t.bind(window.customElements)(e,o,r)}catch(t){console.info(e,o,r,t)}}}class e extends Error{constructor(t,e,o){super(t),this.canceledPromiseResult=e,this.canceledPromiseError=o}}class o extends Promise{constructor(t){super(((o,r)=>t((t=>{this.isCanceled?r(new e("Promise has been canceled",t)):o(t)}),(t=>{this.isCanceled?r(new e("Promise has been canceled",void 0,t)):r(t)})))),this.isCanceled=!1}cancel(){this.isCanceled=!0}}class r{constructor(){this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(t,e){this.loaders[t]=e,this.finalContent.delete(t)}registerFinal(t,e){this.loaders[t]=e,this.finalContent.add(t)}clearAll(){for(let t in this.content)this.clear(t)}clear(t){this.finalContent.has(t)||this.forceClear(t)}forceClear(t){this.clearClearTimeout(t),this.content[t]instanceof o&&this.content[t].cancel(),delete this.content[t]}clearClearTimeout(t){null!=this.clearTimeouts[t]&&(window.clearTimeout(this.clearTimeouts[t]),delete this.clearTimeouts[t])}set(t,e){this.forceClear(t),this.register(t,(async()=>e)),this.content[t]=e}setFinal(t,e){this.forceClear(t),this.registerFinal(t,(async()=>e)),this.content[t]=e}async get(t,e,r){if(void 0===this.content[t]){if(null==(e=null!=e?e:this.loaders[t]))throw new Error("Unknown cache key "+t);const n=(t=>new o(((e,o)=>t.then(e).catch(o))))(e());return this.content[t]=n,n.then((e=>(this.content[t]=e,null!=r&&(this.clearClearTimeout(t),this.clearTimeouts[t]=window.setTimeout((()=>this.clear(t)),r)),e)))}if(this.content[t]instanceof Error)throw this.content[t];return this.content[t]}isResolvedValue(t){return!(null==t||t instanceof Promise||t instanceof Error)}getNow(t){if(this.isResolvedValue(this.content[t]))return this.content[t]}has(t){return null!=this.content[t]}resolvedKeys(){return Object.keys(this.content).filter((t=>this.isResolvedValue(this.content[t])))}resolvedValues(){return Object.values(this.content).filter((t=>this.isResolvedValue(t)))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}}
|
|
16
16
|
/**
|
|
17
17
|
* @license
|
|
18
18
|
* Copyright 2019 Google LLC
|
|
@@ -58,7 +58,7 @@ const C={attribute:!0,type:String,converter:x,reflect:!1,hasChanged:w},E=(t=C,e,
|
|
|
58
58
|
* @license
|
|
59
59
|
* Copyright 2017 Google LLC
|
|
60
60
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
61
|
-
*/const F=globalThis,P=F.trustedTypes,K=P?P.createPolicy("lit-html",{createHTML:t=>t}):void 0,M="$lit$",D=`lit$${(Math.random()+"").slice(9)}$`,
|
|
61
|
+
*/const F=globalThis,P=F.trustedTypes,K=P?P.createPolicy("lit-html",{createHTML:t=>t}):void 0,M="$lit$",D=`lit$${(Math.random()+"").slice(9)}$`,B="?"+D,T=`<${B}>`,z=document,Z=()=>z.createComment(""),_=t=>null===t||"object"!=typeof t&&"function"!=typeof t,H=Array.isArray,G="[ \t\n\f\r]",V=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,q=/-->/g,Y=/>/g,X=RegExp(`>|${G}(?:([^\\s"'>=/]+)(${G}*=${G}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),J=/'/g,Q=/"/g,tt=/^(?:script|style|textarea|title)$/i,et=(t=>(e,...o)=>({_$litType$:t,strings:e,values:o}))(1),ot=Symbol.for("lit-noChange"),rt=Symbol.for("lit-nothing"),nt=new WeakMap,it=z.createTreeWalker(z,129);function at(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==K?K.createHTML(e):e}let st=class t{constructor({strings:e,_$litType$:o},r){let n;this.parts=[];let i=0,a=0;const s=e.length-1,c=this.parts,[l,f]=((t,e)=>{const o=t.length-1,r=[];let n,i=2===e?"<svg>":"",a=V;for(let e=0;e<o;e++){const o=t[e];let s,c,l=-1,f=0;for(;f<o.length&&(a.lastIndex=f,c=a.exec(o),null!==c);)f=a.lastIndex,a===V?"!--"===c[1]?a=q:void 0!==c[1]?a=Y:void 0!==c[2]?(tt.test(c[2])&&(n=RegExp("</"+c[2],"g")),a=X):void 0!==c[3]&&(a=X):a===X?">"===c[0]?(a=n??V,l=-1):void 0===c[1]?l=-2:(l=a.lastIndex-c[2].length,s=c[1],a=void 0===c[3]?X:'"'===c[3]?Q:J):a===Q||a===J?a=X:a===q||a===Y?a=V:(a=X,n=void 0);const h=a===X&&t[e+1].startsWith("/>")?" ":"";i+=a===V?o+T:l>=0?(r.push(s),o.slice(0,l)+M+o.slice(l)+D+h):o+D+(-2===l?e:h)}return[at(t,i+(t[o]||"<?>")+(2===e?"</svg>":"")),r]})(e,o);if(this.el=t.createElement(l,r),it.currentNode=this.el.content,2===o){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(n=it.nextNode())&&c.length<s;){if(1===n.nodeType){if(n.hasAttributes())for(const t of n.getAttributeNames())if(t.endsWith(M)){const e=f[a++],o=n.getAttribute(t).split(D),r=/([.?@])?(.*)/.exec(e);c.push({type:1,index:i,name:r[2],strings:o,ctor:"."===r[1]?ht:"?"===r[1]?ut:"@"===r[1]?pt:ft}),n.removeAttribute(t)}else t.startsWith(D)&&(c.push({type:6,index:i}),n.removeAttribute(t));if(tt.test(n.tagName)){const t=n.textContent.split(D),e=t.length-1;if(e>0){n.textContent=P?P.emptyScript:"";for(let o=0;o<e;o++)n.append(t[o],Z()),it.nextNode(),c.push({type:2,index:++i});n.append(t[e],Z())}}}else if(8===n.nodeType)if(n.data===B)c.push({type:2,index:i});else{let t=-1;for(;-1!==(t=n.data.indexOf(D,t+1));)c.push({type:7,index:i}),t+=D.length-1}i++}}static createElement(t,e){const o=z.createElement("template");return o.innerHTML=t,o}};function ct(t,e,o=t,r){if(e===ot)return e;let n=void 0!==r?o._$Co?.[r]:o._$Cl;const i=_(e)?void 0:e._$litDirective$;return n?.constructor!==i&&(n?._$AO?.(!1),void 0===i?n=void 0:(n=new i(t),n._$AT(t,o,r)),void 0!==r?(o._$Co??=[])[r]=n:o._$Cl=n),void 0!==n&&(e=ct(t,n._$AS(t,e.values),n,r)),e}let lt=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,r){this.type=2,this._$AH=rt,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=ct(this,t,e),_(t)?t===rt||null==t||""===t?(this._$AH!==rt&&this._$AR(),this._$AH=rt):t!==this._$AH&&t!==ot&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>H(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==rt&&_(this._$AH)?this._$AA.nextSibling.data=t:this.$(z.createTextNode(t)),this._$AH=t}g(t){const{values:e,_$litType$:o}=t,r="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=st.createElement(at(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===r)this._$AH.p(e);else{const t=new class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:o}=this._$AD,r=(t?.creationScope??z).importNode(e,!0);it.currentNode=r;let n=it.nextNode(),i=0,a=0,s=o[0];for(;void 0!==s;){if(i===s.index){let e;2===s.type?e=new lt(n,n.nextSibling,this,t):1===s.type?e=new s.ctor(n,s.name,s.strings,this,t):6===s.type&&(e=new dt(n,this,t)),this._$AV.push(e),s=o[++a]}i!==s?.index&&(n=it.nextNode(),i++)}return it.currentNode=z,r}p(t){let e=0;for(const o of this._$AV)void 0!==o&&(void 0!==o.strings?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}}(r,this),o=t.u(this.options);t.p(e),this.$(o),this._$AH=t}}_$AC(t){let e=nt.get(t.strings);return void 0===e&&nt.set(t.strings,e=new st(t)),e}T(e){H(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let r,n=0;for(const i of e)n===o.length?o.push(r=new t(this.k(Z()),this.k(Z()),this,this.options)):r=o[n],r._$AI(i),n++;n<o.length&&(this._$AR(r&&r._$AB.nextSibling,n),o.length=n)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}},ft=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,r,n){this.type=1,this._$AH=rt,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=n,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=rt}_$AI(t,e=this,o,r){const n=this.strings;let i=!1;if(void 0===n)t=ct(this,t,e,0),i=!_(t)||t!==this._$AH&&t!==ot,i&&(this._$AH=t);else{const r=t;let a,s;for(t=n[0],a=0;a<n.length-1;a++)s=ct(this,r[o+a],e,a),s===ot&&(s=this._$AH[a]),i||=!_(s)||s!==this._$AH[a],s===rt?t=rt:t!==rt&&(t+=(s??"")+n[a+1]),this._$AH[a]=s}i&&!r&&this.O(t)}O(t){t===rt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},ht=class extends ft{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===rt?void 0:t}},ut=class extends ft{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==rt)}},pt=class extends ft{constructor(t,e,o,r,n){super(t,e,o,r,n),this.type=5}_$AI(t,e=this){if((t=ct(this,t,e,0)??rt)===ot)return;const o=this._$AH,r=t===rt&&o!==rt||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==rt&&(o===rt||r);r&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},dt=class{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){ct(this,t)}};const yt=F.litHtmlPolyfillSupport;yt?.(st,lt),(F.litHtmlVersions??=[]).push("3.1.0");
|
|
62
62
|
/**
|
|
63
63
|
* @license
|
|
64
64
|
* Copyright 2019 Google LLC
|
|
@@ -75,7 +75,7 @@ const gt=globalThis,bt=gt.ShadowRoot&&(void 0===gt.ShadyCSS||gt.ShadyCSS.nativeS
|
|
|
75
75
|
* Copyright 2017 Google LLC
|
|
76
76
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
77
77
|
*/
|
|
78
|
-
const Mt=globalThis,Dt=Mt.trustedTypes,
|
|
78
|
+
const Mt=globalThis,Dt=Mt.trustedTypes,Bt=Dt?Dt.createPolicy("lit-html",{createHTML:t=>t}):void 0,Tt="$lit$",zt=`lit$${(Math.random()+"").slice(9)}$`,Zt="?"+zt,_t=`<${Zt}>`,Ht=document,Gt=()=>Ht.createComment(""),Vt=t=>null===t||"object"!=typeof t&&"function"!=typeof t,qt=Array.isArray,Yt="[ \t\n\f\r]",Xt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Jt=/-->/g,Qt=/>/g,te=RegExp(`>|${Yt}(?:([^\\s"'>=/]+)(${Yt}*=${Yt}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),ee=/'/g,oe=/"/g,re=/^(?:script|style|textarea|title)$/i,ne=(t=>(e,...o)=>({_$litType$:t,strings:e,values:o}))(1),ie=Symbol.for("lit-noChange"),ae=Symbol.for("lit-nothing"),se=new WeakMap,ce=Ht.createTreeWalker(Ht,129);function le(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==Bt?Bt.createHTML(e):e}class fe{constructor({strings:t,_$litType$:e},o){let r;this.parts=[];let n=0,i=0;const a=t.length-1,s=this.parts,[c,l]=((t,e)=>{const o=t.length-1,r=[];let n,i=2===e?"<svg>":"",a=Xt;for(let e=0;e<o;e++){const o=t[e];let s,c,l=-1,f=0;for(;f<o.length&&(a.lastIndex=f,c=a.exec(o),null!==c);)f=a.lastIndex,a===Xt?"!--"===c[1]?a=Jt:void 0!==c[1]?a=Qt:void 0!==c[2]?(re.test(c[2])&&(n=RegExp("</"+c[2],"g")),a=te):void 0!==c[3]&&(a=te):a===te?">"===c[0]?(a=n??Xt,l=-1):void 0===c[1]?l=-2:(l=a.lastIndex-c[2].length,s=c[1],a=void 0===c[3]?te:'"'===c[3]?oe:ee):a===oe||a===ee?a=te:a===Jt||a===Qt?a=Xt:(a=te,n=void 0);const h=a===te&&t[e+1].startsWith("/>")?" ":"";i+=a===Xt?o+_t:l>=0?(r.push(s),o.slice(0,l)+Tt+o.slice(l)+zt+h):o+zt+(-2===l?e:h)}return[le(t,i+(t[o]||"<?>")+(2===e?"</svg>":"")),r]})(t,e);if(this.el=fe.createElement(c,o),ce.currentNode=this.el.content,2===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=ce.nextNode())&&s.length<a;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(Tt)){const e=l[i++],o=r.getAttribute(t).split(zt),a=/([.?@])?(.*)/.exec(e);s.push({type:1,index:n,name:a[2],strings:o,ctor:"."===a[1]?de:"?"===a[1]?ye:"@"===a[1]?ge:pe}),r.removeAttribute(t)}else t.startsWith(zt)&&(s.push({type:6,index:n}),r.removeAttribute(t));if(re.test(r.tagName)){const t=r.textContent.split(zt),e=t.length-1;if(e>0){r.textContent=Dt?Dt.emptyScript:"";for(let o=0;o<e;o++)r.append(t[o],Gt()),ce.nextNode(),s.push({type:2,index:++n});r.append(t[e],Gt())}}}else if(8===r.nodeType)if(r.data===Zt)s.push({type:2,index:n});else{let t=-1;for(;-1!==(t=r.data.indexOf(zt,t+1));)s.push({type:7,index:n}),t+=zt.length-1}n++}}static createElement(t,e){const o=Ht.createElement("template");return o.innerHTML=t,o}}function he(t,e,o=t,r){if(e===ie)return e;let n=void 0!==r?o._$Co?.[r]:o._$Cl;const i=Vt(e)?void 0:e._$litDirective$;return n?.constructor!==i&&(n?._$AO?.(!1),void 0===i?n=void 0:(n=new i(t),n._$AT(t,o,r)),void 0!==r?(o._$Co??=[])[r]=n:o._$Cl=n),void 0!==n&&(e=he(t,n._$AS(t,e.values),n,r)),e}let ue=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,r){this.type=2,this._$AH=ae,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=he(this,t,e),Vt(t)?t===ae||null==t||""===t?(this._$AH!==ae&&this._$AR(),this._$AH=ae):t!==this._$AH&&t!==ie&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>qt(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==ae&&Vt(this._$AH)?this._$AA.nextSibling.data=t:this.$(Ht.createTextNode(t)),this._$AH=t}g(t){const{values:e,_$litType$:o}=t,r="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=fe.createElement(le(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===r)this._$AH.p(e);else{const t=new class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:o}=this._$AD,r=(t?.creationScope??Ht).importNode(e,!0);ce.currentNode=r;let n=ce.nextNode(),i=0,a=0,s=o[0];for(;void 0!==s;){if(i===s.index){let e;2===s.type?e=new ue(n,n.nextSibling,this,t):1===s.type?e=new s.ctor(n,s.name,s.strings,this,t):6===s.type&&(e=new be(n,this,t)),this._$AV.push(e),s=o[++a]}i!==s?.index&&(n=ce.nextNode(),i++)}return ce.currentNode=Ht,r}p(t){let e=0;for(const o of this._$AV)void 0!==o&&(void 0!==o.strings?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}}(r,this),o=t.u(this.options);t.p(e),this.$(o),this._$AH=t}}_$AC(t){let e=se.get(t.strings);return void 0===e&&se.set(t.strings,e=new fe(t)),e}T(e){qt(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let r,n=0;for(const i of e)n===o.length?o.push(r=new t(this.k(Gt()),this.k(Gt()),this,this.options)):r=o[n],r._$AI(i),n++;n<o.length&&(this._$AR(r&&r._$AB.nextSibling,n),o.length=n)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}},pe=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,r,n){this.type=1,this._$AH=ae,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=n,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=ae}_$AI(t,e=this,o,r){const n=this.strings;let i=!1;if(void 0===n)t=he(this,t,e,0),i=!Vt(t)||t!==this._$AH&&t!==ie,i&&(this._$AH=t);else{const r=t;let a,s;for(t=n[0],a=0;a<n.length-1;a++)s=he(this,r[o+a],e,a),s===ie&&(s=this._$AH[a]),i||=!Vt(s)||s!==this._$AH[a],s===ae?t=ae:t!==ae&&(t+=(s??"")+n[a+1]),this._$AH[a]=s}i&&!r&&this.O(t)}O(t){t===ae?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},de=class extends pe{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===ae?void 0:t}},ye=class extends pe{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==ae)}},ge=class extends pe{constructor(t,e,o,r,n){super(t,e,o,r,n),this.type=5}_$AI(t,e=this){if((t=he(this,t,e,0)??ae)===ie)return;const o=this._$AH,r=t===ae&&o!==ae||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==ae&&(o===ae||r);r&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},be=class{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){he(this,t)}};const me=Mt.litHtmlPolyfillSupport;me?.(fe,ue),(Mt.litHtmlVersions??=[]).push("3.1.0");
|
|
79
79
|
/**
|
|
80
80
|
* @license
|
|
81
81
|
* Copyright 2017 Google LLC
|
|
@@ -122,7 +122,7 @@ let ve=class extends Kt{constructor(){super(...arguments),this.renderOptions={ho
|
|
|
122
122
|
display: inline-block;
|
|
123
123
|
width: 0;
|
|
124
124
|
}
|
|
125
|
-
`;class Te{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var o,r;t=this.resolvePluralKey(t,e);let n=null!==(r=null!==(o=this.labels[t])&&void 0!==o?o:this.defaultLabels[t])&&void 0!==r?r:"";return e.forEach(((t,e)=>n=n.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,o)=>this.formatValue(t,o))))),n}resolvePluralKey(t,e){for(let o of e)if("number"==typeof o){const e=`${String(t)}[\\=${o}]`;if(e in this.labels||e in this.defaultLabels)return e}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):null!=t?t:""}formatDate(t,e){const o=o=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(o):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(o):t.toLocaleString(o);try{return o(document.documentElement.lang)}catch(t){return o()}}}const Be=t=>{const e=null!=t?t:{};return(t,o)=>{var r;const n={hasChanged:(t,e)=>!A(t,e),attribute:!1,...e};R(n)(t,o);const i=t.constructor;i.reduxProperties=new Map(i.reduxProperties),i.reduxProperties.set(o,{selector:null!==(r=e.selector)&&void 0!==r?r:t=>t[o],store:e.store})}};class ze{constructor(){this.queue=[]}add(t,e=!1){e&&(this.queue=this.queue.filter((e=>e.type!==t.type))),this.queue.push(t)}consume(t){const e=this.queue.find((e=>e.type===t));return e&&(this.queue=this.queue.filter((t=>t!==e))),e}}function Ze(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var _e,He,Ge;const Ve=Symbol("internalReduxEventsUnsubscribers"),qe=Symbol("internalStoresUnsubscribers"),Ye=Symbol("internalStores");class Xe extends Pe{constructor(){super(...arguments),this[_e]=new Map,this[He]=new Map,this[Ge]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some((e=>t.has(e)))&&this.updateFromStores()}getUnnamedStore(){if(this[Ye].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ye].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[Ye].get(t)}addStore(t,e){var o;e=null!==(o=null!=e?e:Ze(t)?t.name:void 0)&&void 0!==o?o:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[Ye].delete(e)}setupStore(t,e){this[Ye].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Ye].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach(((t,e)=>{const o=this.constructor.getPropertyOptions(e);if(!(null==o?void 0:o.attribute)||!this.hasAttribute("string"==typeof(null==o?void 0:o.attribute)?o.attribute:e)){const o=this.getStore(t.store);o&&(t.store?this[qe].has(t.store):this[qe].size>0)&&(this[e]=t.selector(o.getState(),this))}}))}subscribeToStore(t,e){var o;this[qe].set(t,e.subscribe((()=>this.updateFromStores()))),Ze(e)&&e.eventBus&&(null===(o=this.reduxConstructor.reduxEventListeners)||void 0===o||o.forEach(((t,o)=>{if("function"==typeof this[o]&&(!t.store||e.name===t.store)){const r=t=>this[o](t);e.eventBus.addEventListener(t.eventName,r),this[Ve].push((()=>e.eventBus.removeEventListener(t.eventName,r)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[qe].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[Ve].forEach((t=>t())),this[Ve]=[]}unsubscribeFromStore(t){this[qe].has(t)&&this[qe].get(t)(),this[qe].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function Je(t){for(var e=arguments.length,o=Array(e>1?e-1:0),r=1;r<e;r++)o[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Qe(t){return!!t&&!!t[Do]}function to(t){var e;return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;var o=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return o===Object||"function"==typeof o&&Function.toString.call(o)===To}(t)||Array.isArray(t)||!!t[Mo]||!!(null===(e=t.constructor)||void 0===e?void 0:e[Mo])||ao(t)||so(t))}function eo(t,e,o){void 0===o&&(o=!1),0===oo(t)?(o?Object.keys:Bo)(t).forEach((function(r){o&&"symbol"==typeof r||e(r,t[r],t)})):t.forEach((function(o,r){return e(r,o,t)}))}function oo(t){var e=t[Do];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:ao(t)?2:so(t)?3:0}function ro(t,e){return 2===oo(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function no(t,e,o){var r=oo(t);2===r?t.set(e,o):3===r?t.add(o):t[e]=o}function io(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function ao(t){return jo&&t instanceof Map}function so(t){return Fo&&t instanceof Set}function co(t){return t.o||t.t}function lo(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=zo(t);delete e[Do];for(var o=Bo(e),r=0;r<o.length;r++){var n=o[r],i=e[n];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(e[n]={configurable:!0,writable:!0,enumerable:i.enumerable,value:t[n]})}return Object.create(Object.getPrototypeOf(t),e)}function fo(t,e){return void 0===e&&(e=!1),uo(t)||Qe(t)||!to(t)||(oo(t)>1&&(t.set=t.add=t.clear=t.delete=ho),Object.freeze(t),e&&eo(t,(function(t,e){return fo(e,!0)}),!0)),t}function ho(){Je(2)}function uo(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function po(t){var e=Zo[t];return e||Je(18,t),e}function yo(){return Ao}function go(t,e){e&&(po("Patches"),t.u=[],t.s=[],t.v=e)}function bo(t){mo(t),t.p.forEach(Oo),t.p=null}function mo(t){t===Ao&&(Ao=t.l)}function vo(t){return Ao={p:[],l:Ao,h:t,m:!0,_:0}}function Oo(t){var e=t[Do];0===e.i||1===e.i?e.j():e.g=!0}function xo(t,e){e._=e.p.length;var o=e.p[0],r=void 0!==t&&t!==o;return e.h.O||po("ES5").S(e,t,r),r?(o[Do].P&&(bo(e),Je(4)),to(t)&&(t=wo(e,t),e.l||No(e,t)),e.u&&po("Patches").M(o[Do].t,t,e.u,e.s)):t=wo(e,o,[]),bo(e),e.u&&e.v(e.u,e.s),t!==Ko?t:void 0}function wo(t,e,o){if(uo(e))return e;var r=e[Do];if(!r)return eo(e,(function(n,i){return So(t,r,e,n,i,o)}),!0),e;if(r.A!==t)return e;if(!r.P)return No(t,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var n=4===r.i||5===r.i?r.o=lo(r.k):r.o,i=n,a=!1;3===r.i&&(i=new Set(n),n.clear(),a=!0),eo(i,(function(e,i){return So(t,r,n,e,i,o,a)})),No(t,n,!1),o&&t.u&&po("Patches").N(r,o,t.u,t.s)}return r.o}function So(t,e,o,r,n,i,a){if(Qe(n)){var s=wo(t,n,i&&e&&3!==e.i&&!ro(e.R,r)?i.concat(r):void 0);if(no(o,r,s),!Qe(s))return;t.m=!1}else a&&o.add(n);if(to(n)&&!uo(n)){if(!t.h.D&&t._<1)return;wo(t,n),e&&e.A.l||No(t,n)}}function No(t,e,o){void 0===o&&(o=!1),!t.l&&t.h.D&&t.m&&fo(e,o)}function Co(t,e){var o=t[Do];return(o?co(o):t)[e]}function Eo(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var r=Object.getOwnPropertyDescriptor(o,e);if(r)return r;o=Object.getPrototypeOf(o)}}function Ro(t){t.P||(t.P=!0,t.l&&Ro(t.l))}function $o(t){t.o||(t.o=lo(t.t))}function Uo(t,e,o){var r=ao(e)?po("MapSet").F(e,o):so(e)?po("MapSet").T(e,o):t.O?function(t,e){var o=Array.isArray(t),r={i:o?1:0,A:e?e.A:yo(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},n=r,i=_o;o&&(n=[r],i=Ho);var a=Proxy.revocable(n,i),s=a.revoke,c=a.proxy;return r.k=c,r.j=s,c}(e,o):po("ES5").J(e,o);return(o?o.A:yo()).p.push(r),r}function Io(t){return Qe(t)||Je(22,t),function t(e){if(!to(e))return e;var o,r=e[Do],n=oo(e);if(r){if(!r.P&&(r.i<4||!po("ES5").K(r)))return r.t;r.I=!0,o=ko(e,n),r.I=!1}else o=ko(e,n);return eo(o,(function(e,n){r&&function(t,e){return 2===oo(t)?t.get(e):t[e]}(r.t,e)===n||no(o,e,t(n))})),3===n?new Set(o):o}(t)}function ko(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return lo(t)}_e=qe,He=Ye,Ge=Ve,Xe.reduxProperties=new Map,Xe.reduxReactiveProperties=new Set,Xe.reduxEventListeners=new Map;var Lo,Ao,Wo="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),jo="undefined"!=typeof Map,Fo="undefined"!=typeof Set,Po="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Ko=Wo?Symbol.for("immer-nothing"):((Lo={})["immer-nothing"]=!0,Lo),Mo=Wo?Symbol.for("immer-draftable"):"__$immer_draftable",Do=Wo?Symbol.for("immer-state"):"__$immer_state",To=""+Object.prototype.constructor,Bo="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,zo=Object.getOwnPropertyDescriptors||function(t){var e={};return Bo(t).forEach((function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)})),e},Zo={},_o={get:function(t,e){if(e===Do)return t;var o=co(t);if(!ro(o,e))return function(t,e,o){var r,n=Eo(e,o);return n?"value"in n?n.value:null===(r=n.get)||void 0===r?void 0:r.call(t.k):void 0}(t,o,e);var r=o[e];return t.I||!to(r)?r:r===Co(t.t,e)?($o(t),t.o[e]=Uo(t.A.h,r,t)):r},has:function(t,e){return e in co(t)},ownKeys:function(t){return Reflect.ownKeys(co(t))},set:function(t,e,o){var r=Eo(co(t),e);if(null==r?void 0:r.set)return r.set.call(t.k,o),!0;if(!t.P){var n=Co(co(t),e),i=null==n?void 0:n[Do];if(i&&i.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(io(o,n)&&(void 0!==o||ro(t.t,e)))return!0;$o(t),Ro(t)}return t.o[e]===o&&(void 0!==o||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==Co(t.t,e)||e in t.t?(t.R[e]=!1,$o(t),Ro(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=co(t),r=Reflect.getOwnPropertyDescriptor(o,e);return r?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:r.enumerable,value:o[e]}:r},defineProperty:function(){Je(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Je(12)}},Ho={};eo(_o,(function(t,e){Ho[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Ho.deleteProperty=function(t,e){return Ho.set.call(this,t,e,void 0)},Ho.set=function(t,e,o){return _o.set.call(this,t[0],e,o,t[0])};var Go=function(){function t(t){var e=this;this.O=Po,this.D=!0,this.produce=function(t,o,r){if("function"==typeof t&&"function"!=typeof o){var n=o;o=t;var i=e;return function(t){var e=this;void 0===t&&(t=n);for(var r=arguments.length,a=Array(r>1?r-1:0),s=1;s<r;s++)a[s-1]=arguments[s];return i.produce(t,(function(t){var r;return(r=o).call.apply(r,[e,t].concat(a))}))}}var a;if("function"!=typeof o&&Je(6),void 0!==r&&"function"!=typeof r&&Je(7),to(t)){var s=vo(e),c=Uo(e,t,void 0),l=!0;try{a=o(c),l=!1}finally{l?bo(s):mo(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(t){return go(s,r),xo(t,s)}),(function(t){throw bo(s),t})):(go(s,r),xo(a,s))}if(!t||"object"!=typeof t){if(void 0===(a=o(t))&&(a=t),a===Ko&&(a=void 0),e.D&&fo(a,!0),r){var f=[],h=[];po("Patches").M(t,a,f,h),r(f,h)}return a}Je(21,t)},this.produceWithPatches=function(t,o){if("function"==typeof t)return function(o){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return e.produceWithPatches(o,(function(e){return t.apply(void 0,[e].concat(n))}))};var r,n,i=e.produce(t,o,(function(t,e){r=t,n=e}));return"undefined"!=typeof Promise&&i instanceof Promise?i.then((function(t){return[t,r,n]})):[i,r,n]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var e=t.prototype;return e.createDraft=function(t){to(t)||Je(8),Qe(t)&&(t=Io(t));var e=vo(this),o=Uo(this,t,void 0);return o[Do].C=!0,mo(e),o},e.finishDraft=function(t,e){var o=(t&&t[Do]).A;return go(o,e),xo(void 0,o)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Po&&Je(20),this.O=t},e.applyPatches=function(t,e){var o;for(o=e.length-1;o>=0;o--){var r=e[o];if(0===r.path.length&&"replace"===r.op){t=r.value;break}}o>-1&&(e=e.slice(o+1));var n=po("Patches").$;return Qe(t)?n(t,e):this.produce(t,(function(t){return n(t,e)}))},t}(),Vo=new Go,qo=Vo.produce;function Yo(t){return Yo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yo(t)}function Xo(t){var e=function(t,e){if("object"!==Yo(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var r=o.call(t,e||"default");if("object"!==Yo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Yo(e)?e:String(e)}function Jo(t,e,o){return(e=Xo(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function Qo(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,r)}return o}function tr(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?Qo(Object(o),!0).forEach((function(e){Jo(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Qo(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function er(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. "}Vo.produceWithPatches.bind(Vo),Vo.setAutoFreeze.bind(Vo),Vo.setUseProxies.bind(Vo),Vo.applyPatches.bind(Vo),Vo.createDraft.bind(Vo),Vo.finishDraft.bind(Vo);var or="function"==typeof Symbol&&Symbol.observable||"@@observable",rr=function(){return Math.random().toString(36).substring(7).split("").join(".")},nr={INIT:"@@redux/INIT"+rr(),REPLACE:"@@redux/REPLACE"+rr(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+rr()}};function ir(t,e,o){var r;if("function"==typeof e&&"function"==typeof o||"function"==typeof o&&"function"==typeof arguments[3])throw new Error(er(0));if("function"==typeof e&&void 0===o&&(o=e,e=void 0),void 0!==o){if("function"!=typeof o)throw new Error(er(1));return o(ir)(t,e)}if("function"!=typeof t)throw new Error(er(2));var n=t,i=e,a=[],s=a,c=!1;function l(){s===a&&(s=a.slice())}function f(){if(c)throw new Error(er(3));return i}function h(t){if("function"!=typeof t)throw new Error(er(4));if(c)throw new Error(er(5));var e=!0;return l(),s.push(t),function(){if(e){if(c)throw new Error(er(6));e=!1,l();var o=s.indexOf(t);s.splice(o,1),a=null}}}function u(t){if(!function(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}(t))throw new Error(er(7));if(void 0===t.type)throw new Error(er(8));if(c)throw new Error(er(9));try{c=!0,i=n(i,t)}finally{c=!1}for(var e=a=s,o=0;o<e.length;o++){(0,e[o])()}return t}return u({type:nr.INIT}),(r={dispatch:u,subscribe:h,getState:f,replaceReducer:function(t){if("function"!=typeof t)throw new Error(er(10));n=t,u({type:nr.REPLACE})}})[or]=function(){var t,e=h;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(er(11));function o(){t.next&&t.next(f())}return o(),{unsubscribe:e(o)}}})[or]=function(){return this},t},r}function ar(t){for(var e=Object.keys(t),o={},r=0;r<e.length;r++){var n=e[r];"function"==typeof t[n]&&(o[n]=t[n])}var i,a=Object.keys(o);try{!function(t){Object.keys(t).forEach((function(e){var o=t[e];if(void 0===o(void 0,{type:nr.INIT}))throw new Error(er(12));if(void 0===o(void 0,{type:nr.PROBE_UNKNOWN_ACTION()}))throw new Error(er(13))}))}(o)}catch(t){i=t}return function(t,e){if(void 0===t&&(t={}),i)throw i;for(var r=!1,n={},s=0;s<a.length;s++){var c=a[s],l=o[c],f=t[c],h=l(f,e);if(void 0===h)throw e&&e.type,new Error(er(14));n[c]=h,r=r||h!==f}return(r=r||a.length!==Object.keys(t).length)?n:t}}function sr(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function cr(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(t){return function(){var o=t.apply(void 0,arguments),r=function(){throw new Error(er(15))},n={getState:o.getState,dispatch:function(){return r.apply(void 0,arguments)}},i=e.map((function(t){return t(n)}));return r=sr.apply(void 0,i)(o.dispatch),tr(tr({},o),{},{dispatch:r})}}}function lr(t){return function(e){var o=e.dispatch,r=e.getState;return function(e){return function(n){return"function"==typeof n?n(o,r,t):e(n)}}}}var fr=lr();fr.withExtraArgument=lr;var hr,ur=fr,pr=(hr=function(t,e){return hr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},hr(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}hr(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),dr=function(t,e){var o,r,n,i,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,r&&(n=2&i[0]?r.return:i[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,i[1])).done)return n;switch(r=0,n&&(i=[2&i[0],n.value]),i[0]){case 0:case 1:n=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(n=a.trys,(n=n.length>0&&n[n.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!n||i[1]>n[0]&&i[1]<n[3])){a.label=i[1];break}if(6===i[0]&&a.label<n[1]){a.label=n[1],n=i;break}if(n&&a.label<n[2]){a.label=n[2],a.ops.push(i);break}n[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{o=n=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},yr=function(t,e){for(var o=0,r=e.length,n=t.length;o<r;o++,n++)t[n]=e[o];return t},gr=Object.defineProperty,br=Object.defineProperties,mr=Object.getOwnPropertyDescriptors,vr=Object.getOwnPropertySymbols,Or=Object.prototype.hasOwnProperty,xr=Object.prototype.propertyIsEnumerable,wr=function(t,e,o){return e in t?gr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},Sr=function(t,e){for(var o in e||(e={}))Or.call(e,o)&&wr(t,o,e[o]);if(vr)for(var r=0,n=vr(e);r<n.length;r++){o=n[r];xr.call(e,o)&&wr(t,o,e[o])}return t},Nr=function(t,e){return br(t,mr(e))},Cr="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?sr:sr.apply(null,arguments)};var Er=function(t){function e(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];var n=t.apply(this,o)||this;return Object.setPrototypeOf(n,e.prototype),n}return pr(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,yr([void 0],t[0].concat(this)))):new(e.bind.apply(e,yr([void 0],t.concat(this))))},e}(Array),Rr=function(t){function e(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];var n=t.apply(this,o)||this;return Object.setPrototypeOf(n,e.prototype),n}return pr(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,yr([void 0],t[0].concat(this)))):new(e.bind.apply(e,yr([void 0],t.concat(this))))},e}(Array);function $r(t){return to(t)?qo(t,(function(){})):t}function Ur(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,o=void 0===e||e;t.immutableCheck,t.serializableCheck;var r=new Er;o&&(!function(t){return"boolean"==typeof t}(o)?r.push(ur.withExtraArgument(o.extraArgument)):r.push(ur));return r}(t)}}function Ir(t){var e,o=Ur(),r=t||{},n=r.reducer,i=void 0===n?void 0:n,a=r.middleware,s=void 0===a?o():a,c=r.devTools,l=void 0===c||c,f=r.preloadedState,h=void 0===f?void 0:f,u=r.enhancers,p=void 0===u?void 0:u;if("function"==typeof i)e=i;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var o=e;null!==Object.getPrototypeOf(o);)o=Object.getPrototypeOf(o);return e===o}(i))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');e=ar(i)}var d=s;"function"==typeof d&&(d=d(o));var y=cr.apply(void 0,d),g=sr;l&&(g=Cr(Sr({trace:!1},"object"==typeof l&&l)));var b=new Rr(y),m=b;return Array.isArray(p)?m=yr([y],p):"function"==typeof p&&(m=p(b)),ir(e,h,g.apply(void 0,m))}function kr(t,e){function o(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];if(e){var n=e.apply(void 0,o);if(!n)throw new Error("prepareAction did not return an object");return Sr(Sr({type:t,payload:n.payload},"meta"in n&&{meta:n.meta}),"error"in n&&{error:n.error})}return{type:t,payload:o[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(e){return e.type===t},o}function Lr(t){var e,o={},r=[],n={addCase:function(t,e){var r="string"==typeof t?t:t.type;if(r in o)throw new Error("addCase cannot be called with two reducers for the same action type");return o[r]=e,n},addMatcher:function(t,e){return r.push({matcher:t,reducer:e}),n},addDefaultCase:function(t){return e=t,n}};return t(n),[o,r,e]}function Ar(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var o,r="function"==typeof t.initialState?t.initialState:$r(t.initialState),n=t.reducers||{},i=Object.keys(n),a={},s={},c={};function l(){var e="function"==typeof t.extraReducers?Lr(t.extraReducers):[t.extraReducers],o=e[0],n=void 0===o?{}:o,i=e[1],a=void 0===i?[]:i,c=e[2],l=void 0===c?void 0:c,f=Sr(Sr({},n),s);return function(t,e,o,r){void 0===o&&(o=[]);var n,i="function"==typeof e?Lr(e):[e,o,r],a=i[0],s=i[1],c=i[2];if(function(t){return"function"==typeof t}(t))n=function(){return $r(t())};else{var l=$r(t);n=function(){return l}}function f(t,e){void 0===t&&(t=n());var o=yr([a[e.type]],s.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===o.filter((function(t){return!!t})).length&&(o=[c]),o.reduce((function(t,o){if(o){var r;if(Qe(t))return void 0===(r=o(t,e))?t:r;if(to(t))return qo(t,(function(t){return o(t,e)}));if(void 0===(r=o(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}return t}),t)}return f.getInitialState=n,f}(r,(function(t){for(var e in f)t.addCase(e,f[e]);for(var o=0,r=a;o<r.length;o++){var n=r[o];t.addMatcher(n.matcher,n.reducer)}l&&t.addDefaultCase(l)}))}return i.forEach((function(t){var o,r,i=n[t],l=e+"/"+t;"reducer"in i?(o=i.reducer,r=i.prepare):o=i,a[t]=o,s[l]=o,c[t]=r?kr(l,r):kr(l)})),{name:e,reducer:function(t,e){return o||(o=l()),o(t,e)},actions:c,caseReducers:a,getInitialState:function(){return o||(o=l()),o.getInitialState()}}}var Wr=["name","message","stack","code"],jr=function(t,e){this.payload=t,this.meta=e},Fr=function(t,e){this.payload=t,this.meta=e},Pr=function(t){if("object"==typeof t&&null!==t){for(var e={},o=0,r=Wr;o<r.length;o++){var n=r[o];"string"==typeof t[n]&&(e[n]=t[n])}return e}return{message:String(t)}};function Kr(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,e,o){var r=kr(t+"/fulfilled",(function(t,e,o,r){return{payload:t,meta:Nr(Sr({},r||{}),{arg:o,requestId:e,requestStatus:"fulfilled"})}})),n=kr(t+"/pending",(function(t,e,o){return{payload:void 0,meta:Nr(Sr({},o||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),i=kr(t+"/rejected",(function(t,e,r,n,i){return{payload:n,error:(o&&o.serializeError||Pr)(t||"Rejected"),meta:Nr(Sr({},i||{}),{arg:r,requestId:e,rejectedWithValue:!!n,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),a="undefined"!=typeof AbortController?AbortController:function(){function t(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return t.prototype.abort=function(){},t}();return Object.assign((function(t){return function(s,c,l){var f,h=(null==o?void 0:o.idGenerator)?o.idGenerator(t):function(t){void 0===t&&(t=21);for(var e="",o=t;o--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e}(),u=new a;function p(t){f=t,u.abort()}var d=function(){return a=this,d=null,y=function(){var a,d,y,g,b,m;return dr(this,(function(v){switch(v.label){case 0:return v.trys.push([0,4,,5]),g=null==(a=null==o?void 0:o.condition)?void 0:a.call(o,t,{getState:c,extra:l}),null===(O=g)||"object"!=typeof O||"function"!=typeof O.then?[3,2]:[4,g];case 1:g=v.sent(),v.label=2;case 2:if(!1===g||u.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return b=new Promise((function(t,e){return u.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:f||"Aborted"})}))})),s(n(h,t,null==(d=null==o?void 0:o.getPendingMeta)?void 0:d.call(o,{requestId:h,arg:t},{getState:c,extra:l}))),[4,Promise.race([b,Promise.resolve(e(t,{dispatch:s,getState:c,extra:l,requestId:h,signal:u.signal,abort:p,rejectWithValue:function(t,e){return new jr(t,e)},fulfillWithValue:function(t,e){return new Fr(t,e)}})).then((function(e){if(e instanceof jr)throw e;return e instanceof Fr?r(e.payload,h,t,e.meta):r(e,h,t)}))])];case 3:return y=v.sent(),[3,5];case 4:return m=v.sent(),y=m instanceof jr?i(null,h,t,m.payload,m.meta):i(m,h,t),[3,5];case 5:return o&&!o.dispatchConditionRejection&&i.match(y)&&y.meta.condition||s(y),[2,y]}var O}))},new Promise((function(t,e){var o=function(t){try{n(y.next(t))}catch(t){e(t)}},r=function(t){try{n(y.throw(t))}catch(t){e(t)}},n=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(o,r)};n((y=y.apply(a,d)).next())}));var a,d,y}();return Object.assign(d,{abort:p,requestId:h,arg:t,unwrap:function(){return d.then(Kr)}})}}),{pending:n,rejected:i,fulfilled:r,typePrefix:t})}t.withTypes=function(){return t}}();var Mr="listenerMiddleware";kr(Mr+"/add"),kr(Mr+"/removeAll"),kr(Mr+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var o=n[t];return o?o.enumerable=e:n[t]=o={configurable:!0,enumerable:e,get:function(){var e=this[Do];return _o.get(e,t)},set:function(e){var o=this[Do];_o.set(o,t,e)}},o}function e(t){for(var e=t.length-1;e>=0;e--){var n=t[e][Do];if(!n.P)switch(n.i){case 5:r(n)&&Ro(n);break;case 4:o(n)&&Ro(n)}}}function o(t){for(var e=t.t,o=t.k,r=Bo(o),n=r.length-1;n>=0;n--){var i=r[n];if(i!==Do){var a=e[i];if(void 0===a&&!ro(e,i))return!0;var s=o[i],c=s&&s[Do];if(c?c.t!==a:!io(s,a))return!0}}var l=!!e[Do];return r.length!==Bo(e).length+(l?0:1)}function r(t){var e=t.k;if(e.length!==t.t.length)return!0;var o=Object.getOwnPropertyDescriptor(e,e.length-1);if(o&&!o.get)return!0;for(var r=0;r<e.length;r++)if(!e.hasOwnProperty(r))return!0;return!1}var n={};!function(t,e){Zo[t]||(Zo[t]=e)}("ES5",{J:function(e,o){var r=Array.isArray(e),n=function(e,o){if(e){for(var r=Array(o.length),n=0;n<o.length;n++)Object.defineProperty(r,""+n,t(n,!0));return r}var i=zo(o);delete i[Do];for(var a=Bo(i),s=0;s<a.length;s++){var c=a[s];i[c]=t(c,e||!!i[c].enumerable)}return Object.create(Object.getPrototypeOf(o),i)}(r,e),i={i:r?5:4,A:o?o.A:yo(),P:!1,I:!1,R:{},l:o,t:e,k:n,o:null,g:!1,C:!1};return Object.defineProperty(n,Do,{value:i,writable:!0}),n},S:function(t,o,n){n?Qe(o)&&o[Do].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var o=e[Do];if(o){var n=o.t,i=o.k,a=o.R,s=o.i;if(4===s)eo(i,(function(e){e!==Do&&(void 0!==n[e]||ro(n,e)?a[e]||t(i[e]):(a[e]=!0,Ro(o)))})),eo(n,(function(t){void 0!==i[t]||ro(i,t)||(a[t]=!1,Ro(o))}));else if(5===s){if(r(o)&&(Ro(o),a.length=!0),i.length<n.length)for(var c=i.length;c<n.length;c++)a[c]=!1;else for(var l=n.length;l<i.length;l++)a[l]=!0;for(var f=Math.min(i.length,n.length),h=0;h<f;h++)i.hasOwnProperty(h)||(a[h]=!0),void 0===a[h]&&t(i[h])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?o(t):r(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class Dr{static get(t){var e;const o="string"==typeof t?t:t.name,r="string"==typeof t?void 0:t,n=window.ftReduxStores[o];if(Ze(n))return n;if(null==r)return;const i=Ar({...r,reducers:null!==(e=r.reducers)&&void 0!==e?e:{}}),a=Ir({reducer:(t,e)=>{var o;switch(e.type){case"CLEAR_FT_REDUX_STORE":return i.getInitialState();case"DEFAULT_STATE_FIELDS_VALUES_SETTER":return{...t,...null!==(o=e.overwrites)&&void 0!==o?o:{}};default:return i.reducer(t,e)}}});return window.ftReduxStores[r.name]=new Dr(i,a)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new ze,this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,o)=>{const r=e,n=t[r];return n?(...t)=>{const e=n(...t);return this.reduxStore.dispatch(e),e}:t=>{this.setState({[r]:t})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_STATE_FIELDS_VALUES_SETTER",overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}const Tr=Symbol("elementInternals");var Br,zr,Zr;const _r=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Zr=null===(zr=null===(Br=window.safari)||void 0===Br?void 0:Br.pushNotification)||void 0===zr?void 0:zr.toString())&&void 0!==Zr?Zr:""),Hr=wt`
|
|
125
|
+
`;class Be{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var o,r;t=this.resolvePluralKey(t,e);let n=null!==(r=null!==(o=this.labels[t])&&void 0!==o?o:this.defaultLabels[t])&&void 0!==r?r:"";return e.forEach(((t,e)=>n=n.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,o)=>this.formatValue(t,o))))),n}resolvePluralKey(t,e){for(let o of e)if("number"==typeof o){const e=`${String(t)}[\\=${o}]`;if(e in this.labels||e in this.defaultLabels)return e}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):null!=t?t:""}formatDate(t,e){const o=o=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(o):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(o):t.toLocaleString(o);try{return o(document.documentElement.lang)}catch(t){return o()}}}const Te=t=>{const e=null!=t?t:{};return(t,o)=>{var r;const n={hasChanged:(t,e)=>!A(t,e),attribute:!1,...e};R(n)(t,o);const i=t.constructor;i.reduxProperties=new Map(i.reduxProperties),i.reduxProperties.set(o,{selector:null!==(r=e.selector)&&void 0!==r?r:t=>t[o],store:e.store})}};class ze{constructor(){this.queue=[]}add(t,e=!1){e&&(this.queue=this.queue.filter((e=>e.type!==t.type))),this.queue.push(t)}consume(t){const e=this.queue.find((e=>e.type===t));return e&&(this.queue=this.queue.filter((t=>t!==e))),e}}function Ze(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var _e,He,Ge;const Ve=Symbol("internalReduxEventsUnsubscribers"),qe=Symbol("internalStoresUnsubscribers"),Ye=Symbol("internalStores");class Xe extends Pe{constructor(){super(...arguments),this[_e]=new Map,this[He]=new Map,this[Ge]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some((e=>t.has(e)))&&this.updateFromStores()}getUnnamedStore(){if(this[Ye].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ye].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[Ye].get(t)}addStore(t,e){var o;e=null!==(o=null!=e?e:Ze(t)?t.name:void 0)&&void 0!==o?o:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[Ye].delete(e)}setupStore(t,e){this[Ye].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Ye].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach(((t,e)=>{const o=this.constructor.getPropertyOptions(e);if(!(null==o?void 0:o.attribute)||!this.hasAttribute("string"==typeof(null==o?void 0:o.attribute)?o.attribute:e)){const o=this.getStore(t.store);o&&(t.store?this[qe].has(t.store):this[qe].size>0)&&(this[e]=t.selector(o.getState(),this))}}))}subscribeToStore(t,e){var o;this[qe].set(t,e.subscribe((()=>this.updateFromStores()))),Ze(e)&&e.eventBus&&(null===(o=this.reduxConstructor.reduxEventListeners)||void 0===o||o.forEach(((t,o)=>{if("function"==typeof this[o]&&(!t.store||e.name===t.store)){const r=t=>this[o](t);e.eventBus.addEventListener(t.eventName,r),this[Ve].push((()=>e.eventBus.removeEventListener(t.eventName,r)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[qe].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[Ve].forEach((t=>t())),this[Ve]=[]}unsubscribeFromStore(t){this[qe].has(t)&&this[qe].get(t)(),this[qe].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function Je(t){for(var e=arguments.length,o=Array(e>1?e-1:0),r=1;r<e;r++)o[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Qe(t){return!!t&&!!t[Do]}function to(t){var e;return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;var o=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return o===Object||"function"==typeof o&&Function.toString.call(o)===Bo}(t)||Array.isArray(t)||!!t[Mo]||!!(null===(e=t.constructor)||void 0===e?void 0:e[Mo])||ao(t)||so(t))}function eo(t,e,o){void 0===o&&(o=!1),0===oo(t)?(o?Object.keys:To)(t).forEach((function(r){o&&"symbol"==typeof r||e(r,t[r],t)})):t.forEach((function(o,r){return e(r,o,t)}))}function oo(t){var e=t[Do];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:ao(t)?2:so(t)?3:0}function ro(t,e){return 2===oo(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function no(t,e,o){var r=oo(t);2===r?t.set(e,o):3===r?t.add(o):t[e]=o}function io(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function ao(t){return jo&&t instanceof Map}function so(t){return Fo&&t instanceof Set}function co(t){return t.o||t.t}function lo(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=zo(t);delete e[Do];for(var o=To(e),r=0;r<o.length;r++){var n=o[r],i=e[n];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(e[n]={configurable:!0,writable:!0,enumerable:i.enumerable,value:t[n]})}return Object.create(Object.getPrototypeOf(t),e)}function fo(t,e){return void 0===e&&(e=!1),uo(t)||Qe(t)||!to(t)||(oo(t)>1&&(t.set=t.add=t.clear=t.delete=ho),Object.freeze(t),e&&eo(t,(function(t,e){return fo(e,!0)}),!0)),t}function ho(){Je(2)}function uo(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function po(t){var e=Zo[t];return e||Je(18,t),e}function yo(){return Ao}function go(t,e){e&&(po("Patches"),t.u=[],t.s=[],t.v=e)}function bo(t){mo(t),t.p.forEach(Oo),t.p=null}function mo(t){t===Ao&&(Ao=t.l)}function vo(t){return Ao={p:[],l:Ao,h:t,m:!0,_:0}}function Oo(t){var e=t[Do];0===e.i||1===e.i?e.j():e.g=!0}function xo(t,e){e._=e.p.length;var o=e.p[0],r=void 0!==t&&t!==o;return e.h.O||po("ES5").S(e,t,r),r?(o[Do].P&&(bo(e),Je(4)),to(t)&&(t=wo(e,t),e.l||No(e,t)),e.u&&po("Patches").M(o[Do].t,t,e.u,e.s)):t=wo(e,o,[]),bo(e),e.u&&e.v(e.u,e.s),t!==Ko?t:void 0}function wo(t,e,o){if(uo(e))return e;var r=e[Do];if(!r)return eo(e,(function(n,i){return So(t,r,e,n,i,o)}),!0),e;if(r.A!==t)return e;if(!r.P)return No(t,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var n=4===r.i||5===r.i?r.o=lo(r.k):r.o,i=n,a=!1;3===r.i&&(i=new Set(n),n.clear(),a=!0),eo(i,(function(e,i){return So(t,r,n,e,i,o,a)})),No(t,n,!1),o&&t.u&&po("Patches").N(r,o,t.u,t.s)}return r.o}function So(t,e,o,r,n,i,a){if(Qe(n)){var s=wo(t,n,i&&e&&3!==e.i&&!ro(e.R,r)?i.concat(r):void 0);if(no(o,r,s),!Qe(s))return;t.m=!1}else a&&o.add(n);if(to(n)&&!uo(n)){if(!t.h.D&&t._<1)return;wo(t,n),e&&e.A.l||No(t,n)}}function No(t,e,o){void 0===o&&(o=!1),!t.l&&t.h.D&&t.m&&fo(e,o)}function Co(t,e){var o=t[Do];return(o?co(o):t)[e]}function Eo(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var r=Object.getOwnPropertyDescriptor(o,e);if(r)return r;o=Object.getPrototypeOf(o)}}function Ro(t){t.P||(t.P=!0,t.l&&Ro(t.l))}function $o(t){t.o||(t.o=lo(t.t))}function Uo(t,e,o){var r=ao(e)?po("MapSet").F(e,o):so(e)?po("MapSet").T(e,o):t.O?function(t,e){var o=Array.isArray(t),r={i:o?1:0,A:e?e.A:yo(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},n=r,i=_o;o&&(n=[r],i=Ho);var a=Proxy.revocable(n,i),s=a.revoke,c=a.proxy;return r.k=c,r.j=s,c}(e,o):po("ES5").J(e,o);return(o?o.A:yo()).p.push(r),r}function Io(t){return Qe(t)||Je(22,t),function t(e){if(!to(e))return e;var o,r=e[Do],n=oo(e);if(r){if(!r.P&&(r.i<4||!po("ES5").K(r)))return r.t;r.I=!0,o=ko(e,n),r.I=!1}else o=ko(e,n);return eo(o,(function(e,n){r&&function(t,e){return 2===oo(t)?t.get(e):t[e]}(r.t,e)===n||no(o,e,t(n))})),3===n?new Set(o):o}(t)}function ko(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return lo(t)}_e=qe,He=Ye,Ge=Ve,Xe.reduxProperties=new Map,Xe.reduxReactiveProperties=new Set,Xe.reduxEventListeners=new Map;var Lo,Ao,Wo="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),jo="undefined"!=typeof Map,Fo="undefined"!=typeof Set,Po="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Ko=Wo?Symbol.for("immer-nothing"):((Lo={})["immer-nothing"]=!0,Lo),Mo=Wo?Symbol.for("immer-draftable"):"__$immer_draftable",Do=Wo?Symbol.for("immer-state"):"__$immer_state",Bo=""+Object.prototype.constructor,To="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,zo=Object.getOwnPropertyDescriptors||function(t){var e={};return To(t).forEach((function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)})),e},Zo={},_o={get:function(t,e){if(e===Do)return t;var o=co(t);if(!ro(o,e))return function(t,e,o){var r,n=Eo(e,o);return n?"value"in n?n.value:null===(r=n.get)||void 0===r?void 0:r.call(t.k):void 0}(t,o,e);var r=o[e];return t.I||!to(r)?r:r===Co(t.t,e)?($o(t),t.o[e]=Uo(t.A.h,r,t)):r},has:function(t,e){return e in co(t)},ownKeys:function(t){return Reflect.ownKeys(co(t))},set:function(t,e,o){var r=Eo(co(t),e);if(null==r?void 0:r.set)return r.set.call(t.k,o),!0;if(!t.P){var n=Co(co(t),e),i=null==n?void 0:n[Do];if(i&&i.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(io(o,n)&&(void 0!==o||ro(t.t,e)))return!0;$o(t),Ro(t)}return t.o[e]===o&&(void 0!==o||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==Co(t.t,e)||e in t.t?(t.R[e]=!1,$o(t),Ro(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=co(t),r=Reflect.getOwnPropertyDescriptor(o,e);return r?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:r.enumerable,value:o[e]}:r},defineProperty:function(){Je(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Je(12)}},Ho={};eo(_o,(function(t,e){Ho[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Ho.deleteProperty=function(t,e){return Ho.set.call(this,t,e,void 0)},Ho.set=function(t,e,o){return _o.set.call(this,t[0],e,o,t[0])};var Go=function(){function t(t){var e=this;this.O=Po,this.D=!0,this.produce=function(t,o,r){if("function"==typeof t&&"function"!=typeof o){var n=o;o=t;var i=e;return function(t){var e=this;void 0===t&&(t=n);for(var r=arguments.length,a=Array(r>1?r-1:0),s=1;s<r;s++)a[s-1]=arguments[s];return i.produce(t,(function(t){var r;return(r=o).call.apply(r,[e,t].concat(a))}))}}var a;if("function"!=typeof o&&Je(6),void 0!==r&&"function"!=typeof r&&Je(7),to(t)){var s=vo(e),c=Uo(e,t,void 0),l=!0;try{a=o(c),l=!1}finally{l?bo(s):mo(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(t){return go(s,r),xo(t,s)}),(function(t){throw bo(s),t})):(go(s,r),xo(a,s))}if(!t||"object"!=typeof t){if(void 0===(a=o(t))&&(a=t),a===Ko&&(a=void 0),e.D&&fo(a,!0),r){var f=[],h=[];po("Patches").M(t,a,f,h),r(f,h)}return a}Je(21,t)},this.produceWithPatches=function(t,o){if("function"==typeof t)return function(o){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return e.produceWithPatches(o,(function(e){return t.apply(void 0,[e].concat(n))}))};var r,n,i=e.produce(t,o,(function(t,e){r=t,n=e}));return"undefined"!=typeof Promise&&i instanceof Promise?i.then((function(t){return[t,r,n]})):[i,r,n]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var e=t.prototype;return e.createDraft=function(t){to(t)||Je(8),Qe(t)&&(t=Io(t));var e=vo(this),o=Uo(this,t,void 0);return o[Do].C=!0,mo(e),o},e.finishDraft=function(t,e){var o=(t&&t[Do]).A;return go(o,e),xo(void 0,o)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Po&&Je(20),this.O=t},e.applyPatches=function(t,e){var o;for(o=e.length-1;o>=0;o--){var r=e[o];if(0===r.path.length&&"replace"===r.op){t=r.value;break}}o>-1&&(e=e.slice(o+1));var n=po("Patches").$;return Qe(t)?n(t,e):this.produce(t,(function(t){return n(t,e)}))},t}(),Vo=new Go,qo=Vo.produce;function Yo(t){return Yo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yo(t)}function Xo(t){var e=function(t,e){if("object"!==Yo(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var r=o.call(t,e||"default");if("object"!==Yo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Yo(e)?e:String(e)}function Jo(t,e,o){return(e=Xo(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function Qo(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,r)}return o}function tr(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?Qo(Object(o),!0).forEach((function(e){Jo(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Qo(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function er(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. "}Vo.produceWithPatches.bind(Vo),Vo.setAutoFreeze.bind(Vo),Vo.setUseProxies.bind(Vo),Vo.applyPatches.bind(Vo),Vo.createDraft.bind(Vo),Vo.finishDraft.bind(Vo);var or="function"==typeof Symbol&&Symbol.observable||"@@observable",rr=function(){return Math.random().toString(36).substring(7).split("").join(".")},nr={INIT:"@@redux/INIT"+rr(),REPLACE:"@@redux/REPLACE"+rr(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+rr()}};function ir(t,e,o){var r;if("function"==typeof e&&"function"==typeof o||"function"==typeof o&&"function"==typeof arguments[3])throw new Error(er(0));if("function"==typeof e&&void 0===o&&(o=e,e=void 0),void 0!==o){if("function"!=typeof o)throw new Error(er(1));return o(ir)(t,e)}if("function"!=typeof t)throw new Error(er(2));var n=t,i=e,a=[],s=a,c=!1;function l(){s===a&&(s=a.slice())}function f(){if(c)throw new Error(er(3));return i}function h(t){if("function"!=typeof t)throw new Error(er(4));if(c)throw new Error(er(5));var e=!0;return l(),s.push(t),function(){if(e){if(c)throw new Error(er(6));e=!1,l();var o=s.indexOf(t);s.splice(o,1),a=null}}}function u(t){if(!function(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}(t))throw new Error(er(7));if(void 0===t.type)throw new Error(er(8));if(c)throw new Error(er(9));try{c=!0,i=n(i,t)}finally{c=!1}for(var e=a=s,o=0;o<e.length;o++){(0,e[o])()}return t}return u({type:nr.INIT}),(r={dispatch:u,subscribe:h,getState:f,replaceReducer:function(t){if("function"!=typeof t)throw new Error(er(10));n=t,u({type:nr.REPLACE})}})[or]=function(){var t,e=h;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(er(11));function o(){t.next&&t.next(f())}return o(),{unsubscribe:e(o)}}})[or]=function(){return this},t},r}function ar(t){for(var e=Object.keys(t),o={},r=0;r<e.length;r++){var n=e[r];"function"==typeof t[n]&&(o[n]=t[n])}var i,a=Object.keys(o);try{!function(t){Object.keys(t).forEach((function(e){var o=t[e];if(void 0===o(void 0,{type:nr.INIT}))throw new Error(er(12));if(void 0===o(void 0,{type:nr.PROBE_UNKNOWN_ACTION()}))throw new Error(er(13))}))}(o)}catch(t){i=t}return function(t,e){if(void 0===t&&(t={}),i)throw i;for(var r=!1,n={},s=0;s<a.length;s++){var c=a[s],l=o[c],f=t[c],h=l(f,e);if(void 0===h)throw e&&e.type,new Error(er(14));n[c]=h,r=r||h!==f}return(r=r||a.length!==Object.keys(t).length)?n:t}}function sr(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function cr(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(t){return function(){var o=t.apply(void 0,arguments),r=function(){throw new Error(er(15))},n={getState:o.getState,dispatch:function(){return r.apply(void 0,arguments)}},i=e.map((function(t){return t(n)}));return r=sr.apply(void 0,i)(o.dispatch),tr(tr({},o),{},{dispatch:r})}}}function lr(t){return function(e){var o=e.dispatch,r=e.getState;return function(e){return function(n){return"function"==typeof n?n(o,r,t):e(n)}}}}var fr=lr();fr.withExtraArgument=lr;var hr,ur=fr,pr=(hr=function(t,e){return hr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},hr(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}hr(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),dr=function(t,e){var o,r,n,i,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,r&&(n=2&i[0]?r.return:i[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,i[1])).done)return n;switch(r=0,n&&(i=[2&i[0],n.value]),i[0]){case 0:case 1:n=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(n=a.trys,(n=n.length>0&&n[n.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!n||i[1]>n[0]&&i[1]<n[3])){a.label=i[1];break}if(6===i[0]&&a.label<n[1]){a.label=n[1],n=i;break}if(n&&a.label<n[2]){a.label=n[2],a.ops.push(i);break}n[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{o=n=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},yr=function(t,e){for(var o=0,r=e.length,n=t.length;o<r;o++,n++)t[n]=e[o];return t},gr=Object.defineProperty,br=Object.defineProperties,mr=Object.getOwnPropertyDescriptors,vr=Object.getOwnPropertySymbols,Or=Object.prototype.hasOwnProperty,xr=Object.prototype.propertyIsEnumerable,wr=function(t,e,o){return e in t?gr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},Sr=function(t,e){for(var o in e||(e={}))Or.call(e,o)&&wr(t,o,e[o]);if(vr)for(var r=0,n=vr(e);r<n.length;r++){o=n[r];xr.call(e,o)&&wr(t,o,e[o])}return t},Nr=function(t,e){return br(t,mr(e))},Cr="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?sr:sr.apply(null,arguments)};var Er=function(t){function e(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];var n=t.apply(this,o)||this;return Object.setPrototypeOf(n,e.prototype),n}return pr(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,yr([void 0],t[0].concat(this)))):new(e.bind.apply(e,yr([void 0],t.concat(this))))},e}(Array),Rr=function(t){function e(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];var n=t.apply(this,o)||this;return Object.setPrototypeOf(n,e.prototype),n}return pr(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,yr([void 0],t[0].concat(this)))):new(e.bind.apply(e,yr([void 0],t.concat(this))))},e}(Array);function $r(t){return to(t)?qo(t,(function(){})):t}function Ur(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,o=void 0===e||e;t.immutableCheck,t.serializableCheck;var r=new Er;o&&(!function(t){return"boolean"==typeof t}(o)?r.push(ur.withExtraArgument(o.extraArgument)):r.push(ur));return r}(t)}}function Ir(t){var e,o=Ur(),r=t||{},n=r.reducer,i=void 0===n?void 0:n,a=r.middleware,s=void 0===a?o():a,c=r.devTools,l=void 0===c||c,f=r.preloadedState,h=void 0===f?void 0:f,u=r.enhancers,p=void 0===u?void 0:u;if("function"==typeof i)e=i;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var o=e;null!==Object.getPrototypeOf(o);)o=Object.getPrototypeOf(o);return e===o}(i))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');e=ar(i)}var d=s;"function"==typeof d&&(d=d(o));var y=cr.apply(void 0,d),g=sr;l&&(g=Cr(Sr({trace:!1},"object"==typeof l&&l)));var b=new Rr(y),m=b;return Array.isArray(p)?m=yr([y],p):"function"==typeof p&&(m=p(b)),ir(e,h,g.apply(void 0,m))}function kr(t,e){function o(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];if(e){var n=e.apply(void 0,o);if(!n)throw new Error("prepareAction did not return an object");return Sr(Sr({type:t,payload:n.payload},"meta"in n&&{meta:n.meta}),"error"in n&&{error:n.error})}return{type:t,payload:o[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(e){return e.type===t},o}function Lr(t){var e,o={},r=[],n={addCase:function(t,e){var r="string"==typeof t?t:t.type;if(r in o)throw new Error("addCase cannot be called with two reducers for the same action type");return o[r]=e,n},addMatcher:function(t,e){return r.push({matcher:t,reducer:e}),n},addDefaultCase:function(t){return e=t,n}};return t(n),[o,r,e]}function Ar(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var o,r="function"==typeof t.initialState?t.initialState:$r(t.initialState),n=t.reducers||{},i=Object.keys(n),a={},s={},c={};function l(){var e="function"==typeof t.extraReducers?Lr(t.extraReducers):[t.extraReducers],o=e[0],n=void 0===o?{}:o,i=e[1],a=void 0===i?[]:i,c=e[2],l=void 0===c?void 0:c,f=Sr(Sr({},n),s);return function(t,e,o,r){void 0===o&&(o=[]);var n,i="function"==typeof e?Lr(e):[e,o,r],a=i[0],s=i[1],c=i[2];if(function(t){return"function"==typeof t}(t))n=function(){return $r(t())};else{var l=$r(t);n=function(){return l}}function f(t,e){void 0===t&&(t=n());var o=yr([a[e.type]],s.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===o.filter((function(t){return!!t})).length&&(o=[c]),o.reduce((function(t,o){if(o){var r;if(Qe(t))return void 0===(r=o(t,e))?t:r;if(to(t))return qo(t,(function(t){return o(t,e)}));if(void 0===(r=o(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}return t}),t)}return f.getInitialState=n,f}(r,(function(t){for(var e in f)t.addCase(e,f[e]);for(var o=0,r=a;o<r.length;o++){var n=r[o];t.addMatcher(n.matcher,n.reducer)}l&&t.addDefaultCase(l)}))}return i.forEach((function(t){var o,r,i=n[t],l=e+"/"+t;"reducer"in i?(o=i.reducer,r=i.prepare):o=i,a[t]=o,s[l]=o,c[t]=r?kr(l,r):kr(l)})),{name:e,reducer:function(t,e){return o||(o=l()),o(t,e)},actions:c,caseReducers:a,getInitialState:function(){return o||(o=l()),o.getInitialState()}}}var Wr=["name","message","stack","code"],jr=function(t,e){this.payload=t,this.meta=e},Fr=function(t,e){this.payload=t,this.meta=e},Pr=function(t){if("object"==typeof t&&null!==t){for(var e={},o=0,r=Wr;o<r.length;o++){var n=r[o];"string"==typeof t[n]&&(e[n]=t[n])}return e}return{message:String(t)}};function Kr(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,e,o){var r=kr(t+"/fulfilled",(function(t,e,o,r){return{payload:t,meta:Nr(Sr({},r||{}),{arg:o,requestId:e,requestStatus:"fulfilled"})}})),n=kr(t+"/pending",(function(t,e,o){return{payload:void 0,meta:Nr(Sr({},o||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),i=kr(t+"/rejected",(function(t,e,r,n,i){return{payload:n,error:(o&&o.serializeError||Pr)(t||"Rejected"),meta:Nr(Sr({},i||{}),{arg:r,requestId:e,rejectedWithValue:!!n,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),a="undefined"!=typeof AbortController?AbortController:function(){function t(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return t.prototype.abort=function(){},t}();return Object.assign((function(t){return function(s,c,l){var f,h=(null==o?void 0:o.idGenerator)?o.idGenerator(t):function(t){void 0===t&&(t=21);for(var e="",o=t;o--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e}(),u=new a;function p(t){f=t,u.abort()}var d=function(){return a=this,d=null,y=function(){var a,d,y,g,b,m;return dr(this,(function(v){switch(v.label){case 0:return v.trys.push([0,4,,5]),g=null==(a=null==o?void 0:o.condition)?void 0:a.call(o,t,{getState:c,extra:l}),null===(O=g)||"object"!=typeof O||"function"!=typeof O.then?[3,2]:[4,g];case 1:g=v.sent(),v.label=2;case 2:if(!1===g||u.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return b=new Promise((function(t,e){return u.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:f||"Aborted"})}))})),s(n(h,t,null==(d=null==o?void 0:o.getPendingMeta)?void 0:d.call(o,{requestId:h,arg:t},{getState:c,extra:l}))),[4,Promise.race([b,Promise.resolve(e(t,{dispatch:s,getState:c,extra:l,requestId:h,signal:u.signal,abort:p,rejectWithValue:function(t,e){return new jr(t,e)},fulfillWithValue:function(t,e){return new Fr(t,e)}})).then((function(e){if(e instanceof jr)throw e;return e instanceof Fr?r(e.payload,h,t,e.meta):r(e,h,t)}))])];case 3:return y=v.sent(),[3,5];case 4:return m=v.sent(),y=m instanceof jr?i(null,h,t,m.payload,m.meta):i(m,h,t),[3,5];case 5:return o&&!o.dispatchConditionRejection&&i.match(y)&&y.meta.condition||s(y),[2,y]}var O}))},new Promise((function(t,e){var o=function(t){try{n(y.next(t))}catch(t){e(t)}},r=function(t){try{n(y.throw(t))}catch(t){e(t)}},n=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(o,r)};n((y=y.apply(a,d)).next())}));var a,d,y}();return Object.assign(d,{abort:p,requestId:h,arg:t,unwrap:function(){return d.then(Kr)}})}}),{pending:n,rejected:i,fulfilled:r,typePrefix:t})}t.withTypes=function(){return t}}();var Mr="listenerMiddleware";kr(Mr+"/add"),kr(Mr+"/removeAll"),kr(Mr+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var o=n[t];return o?o.enumerable=e:n[t]=o={configurable:!0,enumerable:e,get:function(){var e=this[Do];return _o.get(e,t)},set:function(e){var o=this[Do];_o.set(o,t,e)}},o}function e(t){for(var e=t.length-1;e>=0;e--){var n=t[e][Do];if(!n.P)switch(n.i){case 5:r(n)&&Ro(n);break;case 4:o(n)&&Ro(n)}}}function o(t){for(var e=t.t,o=t.k,r=To(o),n=r.length-1;n>=0;n--){var i=r[n];if(i!==Do){var a=e[i];if(void 0===a&&!ro(e,i))return!0;var s=o[i],c=s&&s[Do];if(c?c.t!==a:!io(s,a))return!0}}var l=!!e[Do];return r.length!==To(e).length+(l?0:1)}function r(t){var e=t.k;if(e.length!==t.t.length)return!0;var o=Object.getOwnPropertyDescriptor(e,e.length-1);if(o&&!o.get)return!0;for(var r=0;r<e.length;r++)if(!e.hasOwnProperty(r))return!0;return!1}var n={};!function(t,e){Zo[t]||(Zo[t]=e)}("ES5",{J:function(e,o){var r=Array.isArray(e),n=function(e,o){if(e){for(var r=Array(o.length),n=0;n<o.length;n++)Object.defineProperty(r,""+n,t(n,!0));return r}var i=zo(o);delete i[Do];for(var a=To(i),s=0;s<a.length;s++){var c=a[s];i[c]=t(c,e||!!i[c].enumerable)}return Object.create(Object.getPrototypeOf(o),i)}(r,e),i={i:r?5:4,A:o?o.A:yo(),P:!1,I:!1,R:{},l:o,t:e,k:n,o:null,g:!1,C:!1};return Object.defineProperty(n,Do,{value:i,writable:!0}),n},S:function(t,o,n){n?Qe(o)&&o[Do].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var o=e[Do];if(o){var n=o.t,i=o.k,a=o.R,s=o.i;if(4===s)eo(i,(function(e){e!==Do&&(void 0!==n[e]||ro(n,e)?a[e]||t(i[e]):(a[e]=!0,Ro(o)))})),eo(n,(function(t){void 0!==i[t]||ro(i,t)||(a[t]=!1,Ro(o))}));else if(5===s){if(r(o)&&(Ro(o),a.length=!0),i.length<n.length)for(var c=i.length;c<n.length;c++)a[c]=!1;else for(var l=n.length;l<i.length;l++)a[l]=!0;for(var f=Math.min(i.length,n.length),h=0;h<f;h++)i.hasOwnProperty(h)||(a[h]=!0),void 0===a[h]&&t(i[h])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?o(t):r(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class Dr{static get(t){var e;const o="string"==typeof t?t:t.name,r="string"==typeof t?void 0:t,n=window.ftReduxStores[o];if(Ze(n))return n;if(null==r)return;const i=Ar({...r,reducers:null!==(e=r.reducers)&&void 0!==e?e:{}}),a=Ir({reducer:(t,e)=>{var o;switch(e.type){case"CLEAR_FT_REDUX_STORE":return i.getInitialState();case"DEFAULT_STATE_FIELDS_VALUES_SETTER":return{...t,...null!==(o=e.overwrites)&&void 0!==o?o:{}};default:return i.reducer(t,e)}}});return window.ftReduxStores[r.name]=new Dr(i,a)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new ze,this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,o)=>{const r=e,n=t[r];return n?(...t)=>{const e=n(...t);return this.reduxStore.dispatch(e),e}:t=>{this.setState({[r]:t})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_STATE_FIELDS_VALUES_SETTER",overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}const Br=Symbol("elementInternals");var Tr,zr,Zr;const _r=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Zr=null===(zr=null===(Tr=window.safari)||void 0===Tr?void 0:Tr.pushNotification)||void 0===zr?void 0:zr.toString())&&void 0!==Zr?Zr:""),Hr=wt`
|
|
126
126
|
`,Gr=we.extend("--ft-ripple-color","",$e.colorContent),Vr={color:Gr,backgroundColor:we.extend("--ft-ripple-background-color","",Gr),opacityContentOnSurfacePressed:we.external($e.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:we.external($e.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:we.external($e.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:we.external($e.opacityContentOnSurfaceSelected,"Design system"),borderRadius:we.create("--ft-ripple-border-radius","","SIZE","0px")},qr=we.extend("--ft-ripple-color","",$e.colorPrimary),Yr=qr,Xr=we.extend("--ft-ripple-background-color","",qr),Jr=we.extend("--ft-ripple-color","",$e.colorSecondary),Qr=Jr,tn=we.extend("--ft-ripple-background-color","",Jr),en=wt`
|
|
127
127
|
:host {
|
|
128
128
|
display: contents;
|
|
@@ -235,7 +235,7 @@ let ve=class extends Kt{constructor(){super(...arguments),this.renderOptions={ho
|
|
|
235
235
|
opacity: ${Vr.opacityContentOnSurfacePressed};
|
|
236
236
|
transform: translate(-50%, -50%) scale(1);
|
|
237
237
|
}
|
|
238
|
-
`;const on=we.extend("--ft-typography-font-family","",$e.titleFont),rn=we.extend("--ft-typography-font-family","",$e.contentFont),nn={fontFamily:rn,fontSize:we.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:we.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:we.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:we.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:we.create("--ft-typography-text-transform","","UNKNOWN","inherit")},an=we.extend("--ft-typography-title-font-family","",on),sn=we.extend("--ft-typography-title-font-size","",nn.fontSize,"20px"),cn=we.extend("--ft-typography-title-font-weight","",nn.fontWeight,"normal"),ln=we.extend("--ft-typography-title-letter-spacing","",nn.letterSpacing,"0.15px"),fn=we.extend("--ft-typography-title-line-height","",nn.lineHeight,"1.2"),hn=we.extend("--ft-typography-title-text-transform","",nn.textTransform,"inherit"),un=we.extend("--ft-typography-title-dense-font-family","",on),pn=we.extend("--ft-typography-title-dense-font-size","",nn.fontSize,"14px"),dn=we.extend("--ft-typography-title-dense-font-weight","",nn.fontWeight,"normal"),yn=we.extend("--ft-typography-title-dense-letter-spacing","",nn.letterSpacing,"0.105px"),gn=we.extend("--ft-typography-title-dense-line-height","",nn.lineHeight,"1.7"),bn=we.extend("--ft-typography-title-dense-text-transform","",nn.textTransform,"inherit"),mn=we.extend("--ft-typography-subtitle1-font-family","",rn),vn=we.extend("--ft-typography-subtitle1-font-size","",nn.fontSize,"16px"),On=we.extend("--ft-typography-subtitle1-font-weight","",nn.fontWeight,"600"),xn=we.extend("--ft-typography-subtitle1-letter-spacing","",nn.letterSpacing,"0.144px"),wn=we.extend("--ft-typography-subtitle1-line-height","",nn.lineHeight,"1.5"),Sn=we.extend("--ft-typography-subtitle1-text-transform","",nn.textTransform,"inherit"),Nn=we.extend("--ft-typography-subtitle2-font-family","",rn),Cn=we.extend("--ft-typography-subtitle2-font-size","",nn.fontSize,"14px"),En=we.extend("--ft-typography-subtitle2-font-weight","",nn.fontWeight,"normal"),Rn=we.extend("--ft-typography-subtitle2-letter-spacing","",nn.letterSpacing,"0.098px"),$n=we.extend("--ft-typography-subtitle2-line-height","",nn.lineHeight,"1.7"),Un=we.extend("--ft-typography-subtitle2-text-transform","",nn.textTransform,"inherit"),In=we.extend("--ft-typography-body1-font-family","",rn),kn=we.extend("--ft-typography-body1-font-size","",nn.fontSize,"16px"),Ln=we.extend("--ft-typography-body1-font-weight","",nn.fontWeight,"normal"),An=we.extend("--ft-typography-body1-letter-spacing","",nn.letterSpacing,"0.496px"),Wn=we.extend("--ft-typography-body1-line-height","",nn.lineHeight,"1.5"),jn=we.extend("--ft-typography-body1-text-transform","",nn.textTransform,"inherit"),Fn=we.extend("--ft-typography-body2-font-family","",rn),Pn=we.extend("--ft-typography-body2-font-size","",nn.fontSize,"14px"),Kn=we.extend("--ft-typography-body2-font-weight","",nn.fontWeight,"normal"),Mn=we.extend("--ft-typography-body2-letter-spacing","",nn.letterSpacing,"0.252px"),Dn=we.extend("--ft-typography-body2-line-height","",nn.lineHeight,"1.4"),
|
|
238
|
+
`;const on=we.extend("--ft-typography-font-family","",$e.titleFont),rn=we.extend("--ft-typography-font-family","",$e.contentFont),nn={fontFamily:rn,fontSize:we.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:we.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:we.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:we.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:we.create("--ft-typography-text-transform","","UNKNOWN","inherit")},an=we.extend("--ft-typography-title-font-family","",on),sn=we.extend("--ft-typography-title-font-size","",nn.fontSize,"20px"),cn=we.extend("--ft-typography-title-font-weight","",nn.fontWeight,"normal"),ln=we.extend("--ft-typography-title-letter-spacing","",nn.letterSpacing,"0.15px"),fn=we.extend("--ft-typography-title-line-height","",nn.lineHeight,"1.2"),hn=we.extend("--ft-typography-title-text-transform","",nn.textTransform,"inherit"),un=we.extend("--ft-typography-title-dense-font-family","",on),pn=we.extend("--ft-typography-title-dense-font-size","",nn.fontSize,"14px"),dn=we.extend("--ft-typography-title-dense-font-weight","",nn.fontWeight,"normal"),yn=we.extend("--ft-typography-title-dense-letter-spacing","",nn.letterSpacing,"0.105px"),gn=we.extend("--ft-typography-title-dense-line-height","",nn.lineHeight,"1.7"),bn=we.extend("--ft-typography-title-dense-text-transform","",nn.textTransform,"inherit"),mn=we.extend("--ft-typography-subtitle1-font-family","",rn),vn=we.extend("--ft-typography-subtitle1-font-size","",nn.fontSize,"16px"),On=we.extend("--ft-typography-subtitle1-font-weight","",nn.fontWeight,"600"),xn=we.extend("--ft-typography-subtitle1-letter-spacing","",nn.letterSpacing,"0.144px"),wn=we.extend("--ft-typography-subtitle1-line-height","",nn.lineHeight,"1.5"),Sn=we.extend("--ft-typography-subtitle1-text-transform","",nn.textTransform,"inherit"),Nn=we.extend("--ft-typography-subtitle2-font-family","",rn),Cn=we.extend("--ft-typography-subtitle2-font-size","",nn.fontSize,"14px"),En=we.extend("--ft-typography-subtitle2-font-weight","",nn.fontWeight,"normal"),Rn=we.extend("--ft-typography-subtitle2-letter-spacing","",nn.letterSpacing,"0.098px"),$n=we.extend("--ft-typography-subtitle2-line-height","",nn.lineHeight,"1.7"),Un=we.extend("--ft-typography-subtitle2-text-transform","",nn.textTransform,"inherit"),In=we.extend("--ft-typography-body1-font-family","",rn),kn=we.extend("--ft-typography-body1-font-size","",nn.fontSize,"16px"),Ln=we.extend("--ft-typography-body1-font-weight","",nn.fontWeight,"normal"),An=we.extend("--ft-typography-body1-letter-spacing","",nn.letterSpacing,"0.496px"),Wn=we.extend("--ft-typography-body1-line-height","",nn.lineHeight,"1.5"),jn=we.extend("--ft-typography-body1-text-transform","",nn.textTransform,"inherit"),Fn=we.extend("--ft-typography-body2-font-family","",rn),Pn=we.extend("--ft-typography-body2-font-size","",nn.fontSize,"14px"),Kn=we.extend("--ft-typography-body2-font-weight","",nn.fontWeight,"normal"),Mn=we.extend("--ft-typography-body2-letter-spacing","",nn.letterSpacing,"0.252px"),Dn=we.extend("--ft-typography-body2-line-height","",nn.lineHeight,"1.4"),Bn=we.extend("--ft-typography-body2-text-transform","",nn.textTransform,"inherit"),Tn=we.extend("--ft-typography-caption-font-family","",rn),zn=we.extend("--ft-typography-caption-font-size","",nn.fontSize,"12px"),Zn=we.extend("--ft-typography-caption-font-weight","",nn.fontWeight,"normal"),_n=we.extend("--ft-typography-caption-letter-spacing","",nn.letterSpacing,"0.396px"),Hn=we.extend("--ft-typography-caption-line-height","",nn.lineHeight,"1.33"),Gn=we.extend("--ft-typography-caption-text-transform","",nn.textTransform,"inherit"),Vn=we.extend("--ft-typography-breadcrumb-font-family","",rn),qn=we.extend("--ft-typography-breadcrumb-font-size","",nn.fontSize,"10px"),Yn=we.extend("--ft-typography-breadcrumb-font-weight","",nn.fontWeight,"normal"),Xn=we.extend("--ft-typography-breadcrumb-letter-spacing","",nn.letterSpacing,"0.33px"),Jn=we.extend("--ft-typography-breadcrumb-line-height","",nn.lineHeight,"1.6"),Qn=we.extend("--ft-typography-breadcrumb-text-transform","",nn.textTransform,"inherit"),ti=we.extend("--ft-typography-overline-font-family","",rn),ei=we.extend("--ft-typography-overline-font-size","",nn.fontSize,"10px"),oi=we.extend("--ft-typography-overline-font-weight","",nn.fontWeight,"normal"),ri=we.extend("--ft-typography-overline-letter-spacing","",nn.letterSpacing,"1.5px"),ni=we.extend("--ft-typography-overline-line-height","",nn.lineHeight,"1.6"),ii=we.extend("--ft-typography-overline-text-transform","",nn.textTransform,"uppercase"),ai={fontFamily:we.extend("--ft-typography-button-font-family","",rn),fontSize:we.extend("--ft-typography-button-font-size","",nn.fontSize,"14px"),fontWeight:we.extend("--ft-typography-button-font-weight","",nn.fontWeight,"600"),letterSpacing:we.extend("--ft-typography-button-letter-spacing","",nn.letterSpacing,"1.246px"),lineHeight:we.extend("--ft-typography-button-line-height","",nn.lineHeight,"1.15"),textTransform:we.extend("--ft-typography-button-text-transform","",nn.textTransform,"uppercase")},si=wt`
|
|
239
239
|
.ft-typography--title {
|
|
240
240
|
font-family: ${an};
|
|
241
241
|
font-size: ${sn};
|
|
@@ -288,11 +288,11 @@ let ve=class extends Kt{constructor(){super(...arguments),this.renderOptions={ho
|
|
|
288
288
|
font-weight: ${Kn};
|
|
289
289
|
letter-spacing: ${Mn};
|
|
290
290
|
line-height: ${Dn};
|
|
291
|
-
text-transform: ${
|
|
291
|
+
text-transform: ${Bn};
|
|
292
292
|
}
|
|
293
293
|
`,pi=wt`
|
|
294
294
|
.ft-typography--caption {
|
|
295
|
-
font-family: ${
|
|
295
|
+
font-family: ${Tn};
|
|
296
296
|
font-size: ${zn};
|
|
297
297
|
font-weight: ${Zn};
|
|
298
298
|
letter-spacing: ${_n};
|
|
@@ -615,11 +615,11 @@ let ve=class extends Kt{constructor(){super(...arguments),this.renderOptions={ho
|
|
|
615
615
|
* Copyright 2020 Google LLC
|
|
616
616
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
617
617
|
*/
|
|
618
|
-
const Mi=Symbol.for(""),Di=t=>{if(t?.r===Mi)return t?._$litStatic$},
|
|
619
|
-
<${
|
|
618
|
+
const Mi=Symbol.for(""),Di=t=>{if(t?.r===Mi)return t?._$litStatic$},Bi=t=>({_$litStatic$:t,r:Mi}),Ti=new Map,zi=(t=>(e,...o)=>{const r=o.length;let n,i;const a=[],s=[];let c,l=0,f=!1;for(;l<r;){for(c=e[l];l<r&&void 0!==(i=o[l],n=Di(i));)c+=n+e[++l],f=!0;l!==r&&s.push(i),a.push(c),l++}if(l===r&&a.push(e[r]),f){const t=a.join("$$lit$$");void 0===(e=Ti.get(t))&&(a.raw=a,Ti.set(t,e=a)),o=s}return t(e,...o)})(et);var Zi;!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"}(Zi||(Zi={}));var _i=function(t,e,o,r){for(var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(n=t[s])&&(a=(i<3?n(a):i>3?n(e,o,a):n(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a};class Hi extends Pe{constructor(){super(...arguments),this.variant=Zi.body1}render(){return this.element?zi`
|
|
619
|
+
<${Bi(this.element)}
|
|
620
620
|
class="ft-typography ft-typography--${this.variant}">
|
|
621
621
|
<slot></slot>
|
|
622
|
-
</${
|
|
622
|
+
</${Bi(this.element)}>
|
|
623
623
|
`:zi`
|
|
624
624
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
625
625
|
`}}Hi.styles=[si,ci,li,fi,hi,ui,pi,di,yi,gi,bi,...mi],_i([R()],Hi.prototype,"element",void 0),_i([R()],Hi.prototype,"variant",void 0),W("ft-typography")(Hi);const Gi=we.create("--ft-tooltip-distance","","SIZE","4px"),Vi=we.create("--ft-tooltip-color","","COLOR","#FFFFFF"),qi=we.create("--ft-tooltip-background-color","","COLOR","#666666"),Yi=we.create("--ft-tooltip-z-index","","NUMBER","100"),Xi=we.external($e.borderRadiusS,"Design system"),Ji=we.create("--ft-tooltip-max-width","","SIZE","150px"),Qi=wt`
|
|
@@ -633,7 +633,7 @@ const Mi=Symbol.for(""),Di=t=>{if(t?.r===Mi)return t?._$litStatic$},Ti=t=>({_$li
|
|
|
633
633
|
}
|
|
634
634
|
|
|
635
635
|
.ft-tooltip {
|
|
636
|
-
position:
|
|
636
|
+
position: fixed;
|
|
637
637
|
box-sizing: border-box;
|
|
638
638
|
overflow: hidden;
|
|
639
639
|
width: max-content;
|
|
@@ -651,7 +651,7 @@ const Mi=Symbol.for(""),Di=t=>{if(t?.r===Mi)return t?._$litStatic$},Ti=t=>({_$li
|
|
|
651
651
|
position: relative;
|
|
652
652
|
word-break: break-word;
|
|
653
653
|
}
|
|
654
|
-
`,ta=["start","end"],ea=["top","right","bottom","left"].reduce(((t,e)=>t.concat(e,e+"-"+ta[0],e+"-"+ta[1])),[]),oa=Math.min,ra=Math.max,na=Math.round,ia=t=>({x:t,y:t}),aa={left:"right",right:"left",bottom:"top",top:"bottom"},sa={start:"end",end:"start"};function ca(t,e,o){return ra(t,oa(e,o))}function la(t,e){return"function"==typeof t?t(e):t}function fa(t){return t.split("-")[0]}function ha(t){return t.split("-")[1]}function ua(t){return"x"===t?"y":"x"}function pa(t){return"y"===t?"height":"width"}function da(t){return["top","bottom"].includes(fa(t))?"y":"x"}function ya(t){return ua(da(t))}function ga(t){return t.replace(/left|right|bottom|top/g,(t=>aa[t]))}function ba(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function ma(t,e,o){let{reference:r,floating:n}=t;const i=da(e),a=ya(e),s=pa(a),c=fa(e),l="y"===i,f=r.x+r.width/2-n.width/2,h=r.y+r.height/2-n.height/2,u=r[s]/2-n[s]/2;let p;switch(c){case"top":p={x:f,y:r.y-n.height};break;case"bottom":p={x:f,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:h};break;case"left":p={x:r.x-n.width,y:h};break;default:p={x:r.x,y:r.y}}switch(ha(e)){case"start":p[a]-=u*(o&&l?-1:1);break;case"end":p[a]+=u*(o&&l?-1:1)}return p}async function va(t,e){var o;void 0===e&&(e={});const{x:r,y:n,platform:i,rects:a,elements:s,strategy:c}=t,{boundary:l="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:u=!1,padding:p=0}=la(e,t),d=function(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}(p),y=s[u?"floating"===h?"reference":"floating":h],g=ba(await i.getClippingRect({element:null==(o=await(null==i.isElement?void 0:i.isElement(y)))||o?y:y.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:l,rootBoundary:f,strategy:c})),b="floating"===h?{...a.floating,x:r,y:n}:a.reference,m=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),v=await(null==i.isElement?void 0:i.isElement(m))&&await(null==i.getScale?void 0:i.getScale(m))||{x:1,y:1},O=ba(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:m,strategy:c}):b);return{top:(g.top-O.top+d.top)/v.y,bottom:(O.bottom-g.bottom+d.bottom)/v.y,left:(g.left-O.left+d.left)/v.x,right:(O.right-g.right+d.right)/v.x}}function Oa(t,e,o){return(t?[...o.filter((e=>ha(e)===t)),...o.filter((e=>ha(e)!==t))]:o.filter((t=>fa(t)===t))).filter((o=>!t||(ha(o)===t||!!e&&function(t){return t.replace(/start|end/g,(t=>sa[t]))}(o)!==o)))}const xa=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(e){var o,r,n;const{rects:i,middlewareData:a,placement:s,platform:c,elements:l}=e,{crossAxis:f=!1,alignment:h,allowedPlacements:u=ea,autoAlignment:p=!0,...d}=la(t,e),y=void 0!==h||u===ea?Oa(h||null,p,u):u,g=await va(e,d),b=(null==(o=a.autoPlacement)?void 0:o.index)||0,m=y[b];if(null==m)return{};const v=function(t,e,o){void 0===o&&(o=!1);const r=ha(t),n=ya(t),i=pa(n);let a="x"===n?r===(o?"end":"start")?"right":"left":"start"===r?"bottom":"top";return e.reference[i]>e.floating[i]&&(a=ga(a)),[a,ga(a)]}(m,i,await(null==c.isRTL?void 0:c.isRTL(l.floating)));if(s!==m)return{reset:{placement:y[0]}};const O=[g[fa(m)],g[v[0]],g[v[1]]],x=[...(null==(r=a.autoPlacement)?void 0:r.overflows)||[],{placement:m,overflows:O}],w=y[b+1];if(w)return{data:{index:b+1,overflows:x},reset:{placement:w}};const S=x.map((t=>{const e=ha(t.placement);return[t.placement,e&&f?t.overflows.slice(0,2).reduce(((t,e)=>t+e),0):t.overflows[0],t.overflows]})).sort(((t,e)=>t[1]-e[1])),N=S.filter((t=>t[2].slice(0,ha(t[0])?2:3).every((t=>t<=0)))),C=(null==(n=N[0])?void 0:n[0])||S[0][0];return C!==s?{data:{index:b+1,overflows:x},reset:{placement:C}}:{}}}};function wa(t){return Ca(t)?(t.nodeName||"").toLowerCase():"#document"}function Sa(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function Na(t){var e;return null==(e=(Ca(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function Ca(t){return t instanceof Node||t instanceof Sa(t).Node}function Ea(t){return t instanceof Element||t instanceof Sa(t).Element}function Ra(t){return t instanceof HTMLElement||t instanceof Sa(t).HTMLElement}function $a(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof Sa(t).ShadowRoot)}function Ua(t){const{overflow:e,overflowX:o,overflowY:r,display:n}=Wa(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+o)&&!["inline","contents"].includes(n)}function Ia(t){return["table","td","th"].includes(wa(t))}function ka(t){const e=La(),o=Wa(t);return"none"!==o.transform||"none"!==o.perspective||!!o.containerType&&"normal"!==o.containerType||!e&&!!o.backdropFilter&&"none"!==o.backdropFilter||!e&&!!o.filter&&"none"!==o.filter||["transform","perspective","filter"].some((t=>(o.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(o.contain||"").includes(t)))}function La(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Aa(t){return["html","body","#document"].includes(wa(t))}function Wa(t){return Sa(t).getComputedStyle(t)}function ja(t){return Ea(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Fa(t){if("html"===wa(t))return t;const e=t.assignedSlot||t.parentNode||$a(t)&&t.host||Na(t);return $a(e)?e.host:e}function Pa(t){const e=Fa(t);return Aa(e)?t.ownerDocument?t.ownerDocument.body:t.body:Ra(e)&&Ua(e)?e:Pa(e)}function Ka(t,e,o){var r;void 0===e&&(e=[]),void 0===o&&(o=!0);const n=Pa(t),i=n===(null==(r=t.ownerDocument)?void 0:r.body),a=Sa(n);return i?e.concat(a,a.visualViewport||[],Ua(n)?n:[],a.frameElement&&o?Ka(a.frameElement):[]):e.concat(n,Ka(n,[],o))}function Ma(t){const e=Wa(t);let o=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const n=Ra(t),i=n?t.offsetWidth:o,a=n?t.offsetHeight:r,s=na(o)!==i||na(r)!==a;return s&&(o=i,r=a),{width:o,height:r,$:s}}function Da(t){return Ea(t)?t:t.contextElement}function Ta(t){const e=Da(t);if(!Ra(e))return ia(1);const o=e.getBoundingClientRect(),{width:r,height:n,$:i}=Ma(e);let a=(i?na(o.width):o.width)/r,s=(i?na(o.height):o.height)/n;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Ba=ia(0);function za(t){const e=Sa(t);return La()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:Ba}function Za(t,e,o,r){void 0===e&&(e=!1),void 0===o&&(o=!1);const n=t.getBoundingClientRect(),i=Da(t);let a=ia(1);e&&(r?Ea(r)&&(a=Ta(r)):a=Ta(t));const s=function(t,e,o){return void 0===e&&(e=!1),!(!o||e&&o!==Sa(t))&&e}(i,o,r)?za(i):ia(0);let c=(n.left+s.x)/a.x,l=(n.top+s.y)/a.y,f=n.width/a.x,h=n.height/a.y;if(i){const t=Sa(i),e=r&&Ea(r)?Sa(r):r;let o=t.frameElement;for(;o&&r&&e!==t;){const t=Ta(o),e=o.getBoundingClientRect(),r=Wa(o),n=e.left+(o.clientLeft+parseFloat(r.paddingLeft))*t.x,i=e.top+(o.clientTop+parseFloat(r.paddingTop))*t.y;c*=t.x,l*=t.y,f*=t.x,h*=t.y,c+=n,l+=i,o=Sa(o).frameElement}}return ba({width:f,height:h,x:c,y:l})}function _a(t){return Za(Na(t)).left+ja(t).scrollLeft}function Ha(t,e,o){let r;if("viewport"===e)r=function(t,e){const o=Sa(t),r=Na(t),n=o.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,c=0;if(n){i=n.width,a=n.height;const t=La();(!t||t&&"fixed"===e)&&(s=n.offsetLeft,c=n.offsetTop)}return{width:i,height:a,x:s,y:c}}(t,o);else if("document"===e)r=function(t){const e=Na(t),o=ja(t),r=t.ownerDocument.body,n=ra(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),i=ra(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let a=-o.scrollLeft+_a(t);const s=-o.scrollTop;return"rtl"===Wa(r).direction&&(a+=ra(e.clientWidth,r.clientWidth)-n),{width:n,height:i,x:a,y:s}}(Na(t));else if(Ea(e))r=function(t,e){const o=Za(t,!0,"fixed"===e),r=o.top+t.clientTop,n=o.left+t.clientLeft,i=Ra(t)?Ta(t):ia(1);return{width:t.clientWidth*i.x,height:t.clientHeight*i.y,x:n*i.x,y:r*i.y}}(e,o);else{const o=za(t);r={...e,x:e.x-o.x,y:e.y-o.y}}return ba(r)}function Ga(t,e){const o=Fa(t);return!(o===e||!Ea(o)||Aa(o))&&("fixed"===Wa(o).position||Ga(o,e))}function Va(t,e,o){const r=Ra(e),n=Na(e),i="fixed"===o,a=Za(t,!0,i,e);let s={scrollLeft:0,scrollTop:0};const c=ia(0);if(r||!r&&!i)if(("body"!==wa(e)||Ua(n))&&(s=ja(e)),r){const t=Za(e,!0,i,e);c.x=t.x+e.clientLeft,c.y=t.y+e.clientTop}else n&&(c.x=_a(n));return{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}function qa(t,e){return Ra(t)&&"fixed"!==Wa(t).position?e?e(t):t.offsetParent:null}function Ya(t,e){const o=Sa(t);if(!Ra(t))return o;let r=qa(t,e);for(;r&&Ia(r)&&"static"===Wa(r).position;)r=qa(r,e);return r&&("html"===wa(r)||"body"===wa(r)&&"static"===Wa(r).position&&!ka(r))?o:r||function(t){let e=Fa(t);for(;Ra(e)&&!Aa(e);){if(ka(e))return e;e=Fa(e)}return null}(t)||o}const Xa={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:o,strategy:r}=t;const n=Ra(o),i=Na(o);if(o===i)return e;let a={scrollLeft:0,scrollTop:0},s=ia(1);const c=ia(0);if((n||!n&&"fixed"!==r)&&(("body"!==wa(o)||Ua(i))&&(a=ja(o)),Ra(o))){const t=Za(o);s=Ta(o),c.x=t.x+o.clientLeft,c.y=t.y+o.clientTop}return{width:e.width*s.x,height:e.height*s.y,x:e.x*s.x-a.scrollLeft*s.x+c.x,y:e.y*s.y-a.scrollTop*s.y+c.y}},getDocumentElement:Na,getClippingRect:function(t){let{element:e,boundary:o,rootBoundary:r,strategy:n}=t;const i="clippingAncestors"===o?function(t,e){const o=e.get(t);if(o)return o;let r=Ka(t,[],!1).filter((t=>Ea(t)&&"body"!==wa(t))),n=null;const i="fixed"===Wa(t).position;let a=i?Fa(t):t;for(;Ea(a)&&!Aa(a);){const e=Wa(a),o=ka(a);o||"fixed"!==e.position||(n=null),(i?!o&&!n:!o&&"static"===e.position&&n&&["absolute","fixed"].includes(n.position)||Ua(a)&&!o&&Ga(t,a))?r=r.filter((t=>t!==a)):n=e,a=Fa(a)}return e.set(t,r),r}(e,this._c):[].concat(o),a=[...i,r],s=a[0],c=a.reduce(((t,o)=>{const r=Ha(e,o,n);return t.top=ra(r.top,t.top),t.right=oa(r.right,t.right),t.bottom=oa(r.bottom,t.bottom),t.left=ra(r.left,t.left),t}),Ha(e,s,n));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},getOffsetParent:Ya,getElementRects:async function(t){let{reference:e,floating:o,strategy:r}=t;const n=this.getOffsetParent||Ya,i=this.getDimensions;return{reference:Va(e,await n(o),r),floating:{x:0,y:0,...await i(o)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return Ma(t)},getScale:Ta,isElement:Ea,isRTL:function(t){return"rtl"===Wa(t).direction}},Ja=(t,e,o)=>{const r=new Map,n={platform:Xa,...o},i={...n.platform,_c:r};return(async(t,e,o)=>{const{placement:r="bottom",strategy:n="absolute",middleware:i=[],platform:a}=o,s=i.filter(Boolean),c=await(null==a.isRTL?void 0:a.isRTL(e));let l=await a.getElementRects({reference:t,floating:e,strategy:n}),{x:f,y:h}=ma(l,r,c),u=r,p={},d=0;for(let o=0;o<s.length;o++){const{name:i,fn:y}=s[o],{x:g,y:b,data:m,reset:v}=await y({x:f,y:h,initialPlacement:r,placement:u,strategy:n,middlewareData:p,rects:l,platform:a,elements:{reference:t,floating:e}});f=null!=g?g:f,h=null!=b?b:h,p={...p,[i]:{...p[i],...m}},v&&d<=50&&(d++,"object"==typeof v&&(v.placement&&(u=v.placement),v.rects&&(l=!0===v.rects?await a.getElementRects({reference:t,floating:e,strategy:n}):v.rects),({x:f,y:h}=ma(l,u,c))),o=-1)}return{x:f,y:h,placement:u,strategy:n,middlewareData:p}})(t,e,{...n,platform:i})};var Qa=function(t,e,o,r){for(var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(n=t[s])&&(a=(i<3?n(a):i>3?n(e,o,a):n(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a};class ts extends Pe{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new L,this.revealDebouncer=new L}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return ne`
|
|
654
|
+
`,ta=["start","end"],ea=["top","right","bottom","left"].reduce(((t,e)=>t.concat(e,e+"-"+ta[0],e+"-"+ta[1])),[]),oa=Math.min,ra=Math.max,na=Math.round,ia=t=>({x:t,y:t}),aa={left:"right",right:"left",bottom:"top",top:"bottom"},sa={start:"end",end:"start"};function ca(t,e,o){return ra(t,oa(e,o))}function la(t,e){return"function"==typeof t?t(e):t}function fa(t){return t.split("-")[0]}function ha(t){return t.split("-")[1]}function ua(t){return"x"===t?"y":"x"}function pa(t){return"y"===t?"height":"width"}function da(t){return["top","bottom"].includes(fa(t))?"y":"x"}function ya(t){return ua(da(t))}function ga(t){return t.replace(/left|right|bottom|top/g,(t=>aa[t]))}function ba(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function ma(t,e,o){let{reference:r,floating:n}=t;const i=da(e),a=ya(e),s=pa(a),c=fa(e),l="y"===i,f=r.x+r.width/2-n.width/2,h=r.y+r.height/2-n.height/2,u=r[s]/2-n[s]/2;let p;switch(c){case"top":p={x:f,y:r.y-n.height};break;case"bottom":p={x:f,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:h};break;case"left":p={x:r.x-n.width,y:h};break;default:p={x:r.x,y:r.y}}switch(ha(e)){case"start":p[a]-=u*(o&&l?-1:1);break;case"end":p[a]+=u*(o&&l?-1:1)}return p}async function va(t,e){var o;void 0===e&&(e={});const{x:r,y:n,platform:i,rects:a,elements:s,strategy:c}=t,{boundary:l="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:u=!1,padding:p=0}=la(e,t),d=function(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}(p),y=s[u?"floating"===h?"reference":"floating":h],g=ba(await i.getClippingRect({element:null==(o=await(null==i.isElement?void 0:i.isElement(y)))||o?y:y.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:l,rootBoundary:f,strategy:c})),b="floating"===h?{...a.floating,x:r,y:n}:a.reference,m=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),v=await(null==i.isElement?void 0:i.isElement(m))&&await(null==i.getScale?void 0:i.getScale(m))||{x:1,y:1},O=ba(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:m,strategy:c}):b);return{top:(g.top-O.top+d.top)/v.y,bottom:(O.bottom-g.bottom+d.bottom)/v.y,left:(g.left-O.left+d.left)/v.x,right:(O.right-g.right+d.right)/v.x}}function Oa(t,e,o){return(t?[...o.filter((e=>ha(e)===t)),...o.filter((e=>ha(e)!==t))]:o.filter((t=>fa(t)===t))).filter((o=>!t||(ha(o)===t||!!e&&function(t){return t.replace(/start|end/g,(t=>sa[t]))}(o)!==o)))}const xa=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(e){var o,r,n;const{rects:i,middlewareData:a,placement:s,platform:c,elements:l}=e,{crossAxis:f=!1,alignment:h,allowedPlacements:u=ea,autoAlignment:p=!0,...d}=la(t,e),y=void 0!==h||u===ea?Oa(h||null,p,u):u,g=await va(e,d),b=(null==(o=a.autoPlacement)?void 0:o.index)||0,m=y[b];if(null==m)return{};const v=function(t,e,o){void 0===o&&(o=!1);const r=ha(t),n=ya(t),i=pa(n);let a="x"===n?r===(o?"end":"start")?"right":"left":"start"===r?"bottom":"top";return e.reference[i]>e.floating[i]&&(a=ga(a)),[a,ga(a)]}(m,i,await(null==c.isRTL?void 0:c.isRTL(l.floating)));if(s!==m)return{reset:{placement:y[0]}};const O=[g[fa(m)],g[v[0]],g[v[1]]],x=[...(null==(r=a.autoPlacement)?void 0:r.overflows)||[],{placement:m,overflows:O}],w=y[b+1];if(w)return{data:{index:b+1,overflows:x},reset:{placement:w}};const S=x.map((t=>{const e=ha(t.placement);return[t.placement,e&&f?t.overflows.slice(0,2).reduce(((t,e)=>t+e),0):t.overflows[0],t.overflows]})).sort(((t,e)=>t[1]-e[1])),N=S.filter((t=>t[2].slice(0,ha(t[0])?2:3).every((t=>t<=0)))),C=(null==(n=N[0])?void 0:n[0])||S[0][0];return C!==s?{data:{index:b+1,overflows:x},reset:{placement:C}}:{}}}};function wa(t){return Ca(t)?(t.nodeName||"").toLowerCase():"#document"}function Sa(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function Na(t){var e;return null==(e=(Ca(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function Ca(t){return t instanceof Node||t instanceof Sa(t).Node}function Ea(t){return t instanceof Element||t instanceof Sa(t).Element}function Ra(t){return t instanceof HTMLElement||t instanceof Sa(t).HTMLElement}function $a(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof Sa(t).ShadowRoot)}function Ua(t){const{overflow:e,overflowX:o,overflowY:r,display:n}=Wa(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+o)&&!["inline","contents"].includes(n)}function Ia(t){return["table","td","th"].includes(wa(t))}function ka(t){const e=La(),o=Wa(t);return"none"!==o.transform||"none"!==o.perspective||!!o.containerType&&"normal"!==o.containerType||!e&&!!o.backdropFilter&&"none"!==o.backdropFilter||!e&&!!o.filter&&"none"!==o.filter||["transform","perspective","filter"].some((t=>(o.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(o.contain||"").includes(t)))}function La(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Aa(t){return["html","body","#document"].includes(wa(t))}function Wa(t){return Sa(t).getComputedStyle(t)}function ja(t){return Ea(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Fa(t){if("html"===wa(t))return t;const e=t.assignedSlot||t.parentNode||$a(t)&&t.host||Na(t);return $a(e)?e.host:e}function Pa(t){const e=Fa(t);return Aa(e)?t.ownerDocument?t.ownerDocument.body:t.body:Ra(e)&&Ua(e)?e:Pa(e)}function Ka(t,e,o){var r;void 0===e&&(e=[]),void 0===o&&(o=!0);const n=Pa(t),i=n===(null==(r=t.ownerDocument)?void 0:r.body),a=Sa(n);return i?e.concat(a,a.visualViewport||[],Ua(n)?n:[],a.frameElement&&o?Ka(a.frameElement):[]):e.concat(n,Ka(n,[],o))}function Ma(t){const e=Wa(t);let o=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const n=Ra(t),i=n?t.offsetWidth:o,a=n?t.offsetHeight:r,s=na(o)!==i||na(r)!==a;return s&&(o=i,r=a),{width:o,height:r,$:s}}function Da(t){return Ea(t)?t:t.contextElement}function Ba(t){const e=Da(t);if(!Ra(e))return ia(1);const o=e.getBoundingClientRect(),{width:r,height:n,$:i}=Ma(e);let a=(i?na(o.width):o.width)/r,s=(i?na(o.height):o.height)/n;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Ta=ia(0);function za(t){const e=Sa(t);return La()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:Ta}function Za(t,e,o,r){void 0===e&&(e=!1),void 0===o&&(o=!1);const n=t.getBoundingClientRect(),i=Da(t);let a=ia(1);e&&(r?Ea(r)&&(a=Ba(r)):a=Ba(t));const s=function(t,e,o){return void 0===e&&(e=!1),!(!o||e&&o!==Sa(t))&&e}(i,o,r)?za(i):ia(0);let c=(n.left+s.x)/a.x,l=(n.top+s.y)/a.y,f=n.width/a.x,h=n.height/a.y;if(i){const t=Sa(i),e=r&&Ea(r)?Sa(r):r;let o=t.frameElement;for(;o&&r&&e!==t;){const t=Ba(o),e=o.getBoundingClientRect(),r=Wa(o),n=e.left+(o.clientLeft+parseFloat(r.paddingLeft))*t.x,i=e.top+(o.clientTop+parseFloat(r.paddingTop))*t.y;c*=t.x,l*=t.y,f*=t.x,h*=t.y,c+=n,l+=i,o=Sa(o).frameElement}}return ba({width:f,height:h,x:c,y:l})}function _a(t){return Za(Na(t)).left+ja(t).scrollLeft}function Ha(t,e,o){let r;if("viewport"===e)r=function(t,e){const o=Sa(t),r=Na(t),n=o.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,c=0;if(n){i=n.width,a=n.height;const t=La();(!t||t&&"fixed"===e)&&(s=n.offsetLeft,c=n.offsetTop)}return{width:i,height:a,x:s,y:c}}(t,o);else if("document"===e)r=function(t){const e=Na(t),o=ja(t),r=t.ownerDocument.body,n=ra(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),i=ra(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let a=-o.scrollLeft+_a(t);const s=-o.scrollTop;return"rtl"===Wa(r).direction&&(a+=ra(e.clientWidth,r.clientWidth)-n),{width:n,height:i,x:a,y:s}}(Na(t));else if(Ea(e))r=function(t,e){const o=Za(t,!0,"fixed"===e),r=o.top+t.clientTop,n=o.left+t.clientLeft,i=Ra(t)?Ba(t):ia(1);return{width:t.clientWidth*i.x,height:t.clientHeight*i.y,x:n*i.x,y:r*i.y}}(e,o);else{const o=za(t);r={...e,x:e.x-o.x,y:e.y-o.y}}return ba(r)}function Ga(t,e){const o=Fa(t);return!(o===e||!Ea(o)||Aa(o))&&("fixed"===Wa(o).position||Ga(o,e))}function Va(t,e,o){const r=Ra(e),n=Na(e),i="fixed"===o,a=Za(t,!0,i,e);let s={scrollLeft:0,scrollTop:0};const c=ia(0);if(r||!r&&!i)if(("body"!==wa(e)||Ua(n))&&(s=ja(e)),r){const t=Za(e,!0,i,e);c.x=t.x+e.clientLeft,c.y=t.y+e.clientTop}else n&&(c.x=_a(n));return{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}function qa(t,e){return Ra(t)&&"fixed"!==Wa(t).position?e?e(t):t.offsetParent:null}function Ya(t,e){const o=Sa(t);if(!Ra(t))return o;let r=qa(t,e);for(;r&&Ia(r)&&"static"===Wa(r).position;)r=qa(r,e);return r&&("html"===wa(r)||"body"===wa(r)&&"static"===Wa(r).position&&!ka(r))?o:r||function(t){let e=Fa(t);for(;Ra(e)&&!Aa(e);){if(ka(e))return e;e=Fa(e)}return null}(t)||o}const Xa={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:o,strategy:r}=t;const n=Ra(o),i=Na(o);if(o===i)return e;let a={scrollLeft:0,scrollTop:0},s=ia(1);const c=ia(0);if((n||!n&&"fixed"!==r)&&(("body"!==wa(o)||Ua(i))&&(a=ja(o)),Ra(o))){const t=Za(o);s=Ba(o),c.x=t.x+o.clientLeft,c.y=t.y+o.clientTop}return{width:e.width*s.x,height:e.height*s.y,x:e.x*s.x-a.scrollLeft*s.x+c.x,y:e.y*s.y-a.scrollTop*s.y+c.y}},getDocumentElement:Na,getClippingRect:function(t){let{element:e,boundary:o,rootBoundary:r,strategy:n}=t;const i="clippingAncestors"===o?function(t,e){const o=e.get(t);if(o)return o;let r=Ka(t,[],!1).filter((t=>Ea(t)&&"body"!==wa(t))),n=null;const i="fixed"===Wa(t).position;let a=i?Fa(t):t;for(;Ea(a)&&!Aa(a);){const e=Wa(a),o=ka(a);o||"fixed"!==e.position||(n=null),(i?!o&&!n:!o&&"static"===e.position&&n&&["absolute","fixed"].includes(n.position)||Ua(a)&&!o&&Ga(t,a))?r=r.filter((t=>t!==a)):n=e,a=Fa(a)}return e.set(t,r),r}(e,this._c):[].concat(o),a=[...i,r],s=a[0],c=a.reduce(((t,o)=>{const r=Ha(e,o,n);return t.top=ra(r.top,t.top),t.right=oa(r.right,t.right),t.bottom=oa(r.bottom,t.bottom),t.left=ra(r.left,t.left),t}),Ha(e,s,n));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},getOffsetParent:Ya,getElementRects:async function(t){let{reference:e,floating:o,strategy:r}=t;const n=this.getOffsetParent||Ya,i=this.getDimensions;return{reference:Va(e,await n(o),r),floating:{x:0,y:0,...await i(o)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return Ma(t)},getScale:Ba,isElement:Ea,isRTL:function(t){return"rtl"===Wa(t).direction}},Ja=(t,e,o)=>{const r=new Map,n={platform:Xa,...o},i={...n.platform,_c:r};return(async(t,e,o)=>{const{placement:r="bottom",strategy:n="absolute",middleware:i=[],platform:a}=o,s=i.filter(Boolean),c=await(null==a.isRTL?void 0:a.isRTL(e));let l=await a.getElementRects({reference:t,floating:e,strategy:n}),{x:f,y:h}=ma(l,r,c),u=r,p={},d=0;for(let o=0;o<s.length;o++){const{name:i,fn:y}=s[o],{x:g,y:b,data:m,reset:v}=await y({x:f,y:h,initialPlacement:r,placement:u,strategy:n,middlewareData:p,rects:l,platform:a,elements:{reference:t,floating:e}});f=null!=g?g:f,h=null!=b?b:h,p={...p,[i]:{...p[i],...m}},v&&d<=50&&(d++,"object"==typeof v&&(v.placement&&(u=v.placement),v.rects&&(l=!0===v.rects?await a.getElementRects({reference:t,floating:e,strategy:n}):v.rects),({x:f,y:h}=ma(l,u,c))),o=-1)}return{x:f,y:h,placement:u,strategy:n,middlewareData:p}})(t,e,{...n,platform:i})};function Qa(t){return function(t){for(let e=t;e;e=ts(e))if(e instanceof Element&&"none"===getComputedStyle(e).display)return null;for(let e=ts(t);e;e=ts(e)){if(!(e instanceof Element))continue;const t=getComputedStyle(e);if("contents"!==t.display){if("static"!==t.position||"none"!==t.filter)return e;if("BODY"===e.tagName)return e}}return null}(t)}function ts(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}var es=function(t,e,o,r){for(var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(n=t[s])&&(a=(i<3?n(a):i>3?n(e,o,a):n(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a};class os extends Pe{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new L,this.revealDebouncer=new L}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return ne`
|
|
655
655
|
<div part="container"
|
|
656
656
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
657
657
|
@mouseenter=${this.onHover}
|
|
@@ -659,7 +659,7 @@ const Mi=Symbol.for(""),Di=t=>{if(t?.r===Mi)return t?._$litStatic$},Ti=t=>({_$li
|
|
|
659
659
|
@focusin=${this.onHover}
|
|
660
660
|
@focusout=${this.onOut}
|
|
661
661
|
@touchstart=${this.onTouch}>
|
|
662
|
-
<slot></slot>
|
|
662
|
+
<slot part="slot"></slot>
|
|
663
663
|
<div part="tooltip" role="tooltip" inert
|
|
664
664
|
class="ft-tooltip ft-tooltip--${this.validPosition}"
|
|
665
665
|
?hidden=${!this.visible}>
|
|
@@ -669,25 +669,25 @@ const Mi=Symbol.for(""),Di=t=>{if(t?.r===Mi)return t?._$litStatic$},Ti=t=>({_$li
|
|
|
669
669
|
</div>
|
|
670
670
|
</div>
|
|
671
671
|
</div>
|
|
672
|
-
`}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){var t;this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",Ja(this.slottedElement,this.tooltip,{middleware:[(t={crossAxis:!0},void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:o,y:r,placement:n}=e,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:t=>{let{x:e,y:o}=t;return{x:e,y:o}}},...c}=la(t,e),l={x:o,y:r},f=await va(e,c),h=da(fa(n)),u=ua(h);let p=l[u],d=l[h];if(i){const t="y"===u?"bottom":"right";p=ca(p+f["y"===u?"top":"left"],p,p-f[t])}if(a){const t="y"===h?"bottom":"right";d=ca(d+f["y"===h?"top":"left"],d,d-f[t])}const y=s.fn({...e,[u]:p,[h]:d});return{...y,data:{x:y.x-o,y:y.y-r}}}}),xa({allowedPlacements:[this.position]})]}).then((({x:t,y:e})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${e}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",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,e){return Math.max(t,Math.min(0,-e))}}
|
|
672
|
+
`}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){var t;this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",Ja(this.slottedElement,this.tooltip,{platform:{...Xa,getOffsetParent:t=>Xa.getOffsetParent(t,Qa)},middleware:[(t={crossAxis:!0},void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:o,y:r,placement:n}=e,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:t=>{let{x:e,y:o}=t;return{x:e,y:o}}},...c}=la(t,e),l={x:o,y:r},f=await va(e,c),h=da(fa(n)),u=ua(h);let p=l[u],d=l[h];if(i){const t="y"===u?"bottom":"right";p=ca(p+f["y"===u?"top":"left"],p,p-f[t])}if(a){const t="y"===h?"bottom":"right";d=ca(d+f["y"===h?"top":"left"],d,d-f[t])}const y=s.fn({...e,[u]:p,[h]:d});return{...y,data:{x:y.x-o,y:y.y-r}}}}),xa({allowedPlacements:[this.position]})]}).then((({x:t,y:e})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${e}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",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,e){return Math.max(t,Math.min(0,-e))}}os.elementDefinitions={"ft-typography":Hi},os.styles=Qi,es([R()],os.prototype,"text",void 0),es([R({type:Boolean})],os.prototype,"manual",void 0),es([R({type:Boolean})],os.prototype,"inline",void 0),es([R({type:Number})],os.prototype,"delay",void 0),es([R()],os.prototype,"position",void 0),es([function(t){return(e,o)=>{const{slot:r}=t??{},n="slot"+(r?`[name=${r}]`:":not([name])");return I(0,0,{get(){const e=this.renderRoot?.querySelector(n);return e?.assignedNodes(t)??[]}})}}()],os.prototype,"slotNodes",void 0),es([k(".ft-tooltip--container")],os.prototype,"container",void 0),es([k(".ft-tooltip")],os.prototype,"tooltip",void 0),es([k(".ft-tooltip--content")],os.prototype,"tooltipContent",void 0),es([$()],os.prototype,"visible",void 0),es([U({passive:!0})],os.prototype,"onTouch",null),es([U({passive:!0})],os.prototype,"onHover",null),es([U({passive:!0})],os.prototype,"onOut",null),W("ft-tooltip")(os);
|
|
673
673
|
/**
|
|
674
674
|
* @license
|
|
675
675
|
* Copyright 2017 Google LLC
|
|
676
676
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
677
677
|
*/
|
|
678
|
-
class
|
|
678
|
+
class rs extends ji{constructor(t){if(super(t),this.et=rt,t.type!==Ai)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===rt||null==t)return this.vt=void 0,this.et=t;if(t===ot)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;const e=[t];return e.raw=e,this.vt={_$litType$:this.constructor.resultType,strings:e,values:[]}}}rs.directiveName="unsafeHTML",rs.resultType=1;const ns=Wi(rs);var is,as,ss;!function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.LINE_CHART="",t.STACKED_CHART="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.EXTLINK_LIGHT="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",t.EYE_SLASH="",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_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.PIP="",t.PIP_WIDE="",t.EXPAND_WIDE="",t.X_MARK=""}(is||(is={})),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=""}(as||(as={})),new Map([...["abw"].map((t=>[t,as.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,as.AUDIO])),...["avi"].map((t=>[t,as.AVI])),...["chm","xhs"].map((t=>[t,as.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,as.CODE])),...["csv"].map((t=>[t,as.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,as.DITA])),...["epub"].map((t=>[t,as.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,as.EXCEL])),...["flac"].map((t=>[t,as.FLAC])),...["gif"].map((t=>[t,as.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,as.GZIP])),...["html","htm","xhtml"].map((t=>[t,as.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,as.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,as.JPEG])),...["json"].map((t=>[t,as.JSON])),...["m4a","m4p"].map((t=>[t,as.M4A])),...["mov","qt"].map((t=>[t,as.MOV])),...["mp3"].map((t=>[t,as.MP3])),...["mp4","m4v"].map((t=>[t,as.MP4])),...["ogg","oga"].map((t=>[t,as.OGG])),...["pdf","ps"].map((t=>[t,as.PDF])),...["png"].map((t=>[t,as.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,as.POWERPOINT])),...["rar"].map((t=>[t,as.RAR])),...["stp"].map((t=>[t,as.STP])),...["txt","rtf","md","mdown"].map((t=>[t,as.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,as.VIDEO])),...["wav"].map((t=>[t,as.WAV])),...["wma"].map((t=>[t,as.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,as.WORD])),...["xml","xsl","rdf"].map((t=>[t,as.XML])),...["yaml","yml","x-yaml"].map((t=>[t,as.YAML])),...["zip"].map((t=>[t,as.ZIP]))]),function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(ss||(ss={}));var cs=function(t,e,o,r){for(var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(n=t[s])&&(a=(i<3?n(a):i>3?n(e,o,a):n(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a};class ls extends Pe{constructor(){super(...arguments),this.resolvedIcon=ae}render(){const t=this.variant&&Object.values(ss).includes(this.variant)?this.variant:ss.fluid_topics,e=t!==ss.material||!!this.value;return ne`
|
|
679
679
|
<i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
|
|
680
|
-
${
|
|
680
|
+
${ns(this.resolvedIcon)}
|
|
681
681
|
<slot ?hidden=${e}></slot>
|
|
682
682
|
</i>
|
|
683
|
-
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let o=this.value||this.textContent;switch(this.variant){case
|
|
683
|
+
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let o=this.value||this.textContent;switch(this.variant){case ss.file_format:this.resolvedIcon=null!==(t=as[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case ss.material:this.resolvedIcon=this.value||ae;break;default:this.resolvedIcon=null!==(e=is[o.replace("-","_").toUpperCase()])&&void 0!==e?e:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}ls.elementDefinitions={},ls.styles=wi,cs([R()],ls.prototype,"variant",void 0),cs([R()],ls.prototype,"value",void 0),cs([$()],ls.prototype,"resolvedIcon",void 0),cs([k("slot")],ls.prototype,"slottedContent",void 0),W("ft-icon")(ls);class fs extends Pe{render(){return ne`
|
|
684
684
|
<div class="ft-loader">
|
|
685
685
|
<div></div>
|
|
686
686
|
<div></div>
|
|
687
687
|
<div></div>
|
|
688
688
|
<div></div>
|
|
689
689
|
</div>
|
|
690
|
-
`}}
|
|
690
|
+
`}}fs.styles=Oi,W("ft-loader")(fs);var hs=function(t,e,o,r){for(var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(n=t[s])&&(a=(i<3?n(a):i>3?n(e,o,a):n(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a};class us extends(function(t,e){return class extends t{static get formAssociated(){return!0}get form(){return this[Br].form}constructor(...t){super(t),this[Br]=this.attachInternals(),this[Br].role=e}setFormValue(t){this[Br].setFormValue(t)}}}(Pe,"button")){constructor(){super(...arguments),this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{var e;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):"submit"==this.type&&(null===(e=this.form)||void 0===e||e.requestSubmit())}}render(){return this.addTooltipIfNeeded(ne`
|
|
691
691
|
<button part="button"
|
|
692
692
|
class="${Fi(this.buttonClasses)}"
|
|
693
693
|
aria-label="${this.getLabel()}"
|
|
@@ -710,7 +710,7 @@ class es extends ji{constructor(t){if(super(t),this.et=rt,t.type!==Ai)throw Erro
|
|
|
710
710
|
</ft-tooltip>
|
|
711
711
|
`:t}resolveIcon(){return this.loading?ne`
|
|
712
712
|
<ft-loader part="loader icon"></ft-loader> `:this.icon?ne`
|
|
713
|
-
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:ae}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}
|
|
713
|
+
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:ae}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}us.elementDefinitions={"ft-ripple":Ki,"ft-tooltip":os,"ft-typography":Hi,"ft-icon":ls,"ft-loader":fs},hs([R({type:String,reflect:!0})],us.prototype,"role",void 0),hs([R()],us.prototype,"type",void 0),hs([R({type:Boolean})],us.prototype,"disabled",void 0),hs([R()],us.prototype,"label",void 0),hs([R()],us.prototype,"icon",void 0),hs([R()],us.prototype,"iconVariant",void 0),hs([R({type:Boolean})],us.prototype,"trailingIcon",void 0),hs([R({type:Boolean})],us.prototype,"loading",void 0),hs([R()],us.prototype,"tooltipPosition",void 0),hs([R({type:Boolean})],us.prototype,"hideTooltip",void 0),hs([R({type:Boolean})],us.prototype,"forceTooltip",void 0),hs([k(".ft-button")],us.prototype,"button",void 0),hs([k(".ft-button--label slot")],us.prototype,"slottedContent",void 0);var ps=function(t,e,o,r){for(var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(n=t[s])&&(a=(i<3?n(a):i>3?n(e,o,a):n(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a};class ds extends us{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"}}ds.styles=[De,ki],ps([R({type:Boolean})],ds.prototype,"primary",void 0),ps([R({type:Boolean})],ds.prototype,"outlined",void 0),ps([R({type:Boolean})],ds.prototype,"dense",void 0),ps([R({type:Boolean})],ds.prototype,"round",void 0);const ys=[wt`
|
|
714
714
|
:host {
|
|
715
715
|
display: inline-block;
|
|
716
716
|
max-width: 100%;
|
|
@@ -928,16 +928,16 @@ class es extends ji{constructor(t){if(super(t),this.et=rt,t.type!==Ai)throw Erro
|
|
|
928
928
|
width: ${Re.smallIconOnlyWidth};
|
|
929
929
|
padding: unset;
|
|
930
930
|
}
|
|
931
|
-
`,Me];var ds,ys,gs,bs,ms,vs,Os,xs,ws,Ss,Ns,Cs,Es,Rs,$s=function(t,e,o,r){for(var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(n=t[s])&&(a=(i<3?n(a):i>3?n(e,o,a):n(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a};class Us extends fs{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary&&!this.neutral,"ft-button--neutral":this.neutral,"ft-button--large":!this.small,"ft-button--small":this.small,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon}}get typographyVariant(){return this.small?Zi.caption1medium:Zi.body2medium}}Us.styles=[De,ps],$s([R({type:Boolean})],Us.prototype,"primary",void 0),$s([R({type:Boolean})],Us.prototype,"secondary",void 0),$s([R({type:Boolean})],Us.prototype,"tertiary",void 0),$s([R({type:Boolean})],Us.prototype,"neutral",void 0),$s([R({type:Boolean})],Us.prototype,"small",void 0),W("ft-button")(us),W("ftds-button")(Us),function(t){!function(e){var o={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(o.arrayBuffer)var r=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],n=ArrayBuffer.isView||function(t){return t&&r.indexOf(Object.prototype.toString.call(t))>-1};function i(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function a(t){return"string"!=typeof t&&(t=String(t)),t}function s(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return o.iterable&&(e[Symbol.iterator]=function(){return e}),e}function c(t){this.map={},t instanceof c?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function l(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function f(t){return new Promise((function(e,o){t.onload=function(){e(t.result)},t.onerror=function(){o(t.error)}}))}function h(t){var e=new FileReader,o=f(e);return e.readAsArrayBuffer(t),o}function u(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function p(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:o.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:o.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():o.arrayBuffer&&o.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=u(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||n(t))?this._bodyArrayBuffer=u(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o.blob&&(this.blob=function(){var t=l(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?l(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(h)}),this.text=function(){var t=l(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,o=f(e);return e.readAsText(t),o}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),o=new Array(e.length),r=0;r<e.length;r++)o[r]=String.fromCharCode(e[r]);return o.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o.formData&&(this.formData=function(){return this.text().then(g)}),this.json=function(){return this.text().then(JSON.parse)},this}c.prototype.append=function(t,e){t=i(t),e=a(e);var o=this.map[t];this.map[t]=o?o+", "+e:e},c.prototype.delete=function(t){delete this.map[i(t)]},c.prototype.get=function(t){return t=i(t),this.has(t)?this.map[t]:null},c.prototype.has=function(t){return this.map.hasOwnProperty(i(t))},c.prototype.set=function(t,e){this.map[i(t)]=a(e)},c.prototype.forEach=function(t,e){for(var o in this.map)this.map.hasOwnProperty(o)&&t.call(e,this.map[o],o,this)},c.prototype.keys=function(){var t=[];return this.forEach((function(e,o){t.push(o)})),s(t)},c.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),s(t)},c.prototype.entries=function(){var t=[];return this.forEach((function(e,o){t.push([o,e])})),s(t)},o.iterable&&(c.prototype[Symbol.iterator]=c.prototype.entries);var d=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function y(t,e){var o,r,n=(e=e||{}).body;if(t instanceof y){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new c(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,n||null==t._bodyInit||(n=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new c(e.headers)),this.method=(o=e.method||this.method||"GET",r=o.toUpperCase(),d.indexOf(r)>-1?r:o),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function g(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var o=t.split("="),r=o.shift().replace(/\+/g," "),n=o.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(n))}})),e}function b(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new c(e.headers),this.url=e.url||"",this._initBody(t)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},p.call(y.prototype),p.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new c(this.headers),url:this.url})},b.error=function(){var t=new b(null,{status:0,statusText:""});return t.type="error",t};var m=[301,302,303,307,308];b.redirect=function(t,e){if(-1===m.indexOf(e))throw new RangeError("Invalid status code");return new b(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var o=Error(t);this.stack=o.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function v(t,r){return new Promise((function(n,i){var a=new y(t,r);if(a.signal&&a.signal.aborted)return i(new e.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function l(){s.abort()}s.onload=function(){var t,e,o={status:s.status,statusText:s.statusText,headers:(t=s.getAllResponseHeaders()||"",e=new c,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var o=t.split(":"),r=o.shift().trim();if(r){var n=o.join(":").trim();e.append(r,n)}})),e)};o.url="responseURL"in s?s.responseURL:o.headers.get("X-Request-URL");var r="response"in s?s.response:s.responseText;n(new b(r,o))},s.onerror=function(){i(new TypeError("Network request failed"))},s.ontimeout=function(){i(new TypeError("Network request failed"))},s.onabort=function(){i(new e.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&o.blob&&(s.responseType="blob"),a.headers.forEach((function(t,e){s.setRequestHeader(e,t)})),a.signal&&(a.signal.addEventListener("abort",l),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",l)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}v.polyfill=!0,t.fetch||(t.fetch=v,t.Headers=c,t.Request=y,t.Response=b),e.Headers=c,e.Request=y,e.Response=b,e.fetch=v,Object.defineProperty(e,"U",{value:!0})}({})}("undefined"!=typeof self?self:void 0),function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"}(ds||(ds={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(ys||(ys={})),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"}(gs||(gs={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(bs||(bs={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(ms||(ms={})),function(t){t.ASC="ASC",t.DESC="DESC"}(vs||(vs={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(Os||(Os={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(xs||(xs={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(ws||(ws={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(Ss||(Ss={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Ns||(Ns={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(Cs||(Cs={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS"}(Es||(Es={})),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.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"}(Rs||(Rs={})),Rs.PERSONAL_BOOK_SHARE_USER,Rs.PERSONAL_BOOK_USER,Rs.HTML_EXPORT_USER,Rs.PERSONAL_BOOK_USER,Rs.PDF_EXPORT_USER,Rs.PERSONAL_BOOK_USER,Rs.KHUB_ADMIN,Rs.CONTENT_PUBLISHER,Rs.ADMIN,Rs.KHUB_ADMIN,Rs.USERS_ADMIN,Rs.PORTAL_ADMIN,Rs.DEVELOPER,Rs.BETA_USER,Rs.DEBUG_USER;const Is=wt`
|
|
932
|
-
`,
|
|
931
|
+
`,Me];var gs,bs,ms,vs,Os,xs,ws,Ss,Ns,Cs,Es,Rs,$s,Us,Is=function(t,e,o,r){for(var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(n=t[s])&&(a=(i<3?n(a):i>3?n(e,o,a):n(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a};class ks extends us{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary&&!this.neutral,"ft-button--neutral":this.neutral,"ft-button--large":!this.small,"ft-button--small":this.small,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon}}get typographyVariant(){return this.small?Zi.caption1medium:Zi.body2medium}}ks.styles=[De,ys],Is([R({type:Boolean})],ks.prototype,"primary",void 0),Is([R({type:Boolean})],ks.prototype,"secondary",void 0),Is([R({type:Boolean})],ks.prototype,"tertiary",void 0),Is([R({type:Boolean})],ks.prototype,"neutral",void 0),Is([R({type:Boolean})],ks.prototype,"small",void 0),W("ft-button")(ds),W("ftds-button")(ks),function(t){!function(e){var o={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(o.arrayBuffer)var r=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],n=ArrayBuffer.isView||function(t){return t&&r.indexOf(Object.prototype.toString.call(t))>-1};function i(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function a(t){return"string"!=typeof t&&(t=String(t)),t}function s(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return o.iterable&&(e[Symbol.iterator]=function(){return e}),e}function c(t){this.map={},t instanceof c?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function l(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function f(t){return new Promise((function(e,o){t.onload=function(){e(t.result)},t.onerror=function(){o(t.error)}}))}function h(t){var e=new FileReader,o=f(e);return e.readAsArrayBuffer(t),o}function u(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function p(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:o.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:o.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():o.arrayBuffer&&o.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=u(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||n(t))?this._bodyArrayBuffer=u(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o.blob&&(this.blob=function(){var t=l(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?l(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(h)}),this.text=function(){var t=l(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,o=f(e);return e.readAsText(t),o}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),o=new Array(e.length),r=0;r<e.length;r++)o[r]=String.fromCharCode(e[r]);return o.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o.formData&&(this.formData=function(){return this.text().then(g)}),this.json=function(){return this.text().then(JSON.parse)},this}c.prototype.append=function(t,e){t=i(t),e=a(e);var o=this.map[t];this.map[t]=o?o+", "+e:e},c.prototype.delete=function(t){delete this.map[i(t)]},c.prototype.get=function(t){return t=i(t),this.has(t)?this.map[t]:null},c.prototype.has=function(t){return this.map.hasOwnProperty(i(t))},c.prototype.set=function(t,e){this.map[i(t)]=a(e)},c.prototype.forEach=function(t,e){for(var o in this.map)this.map.hasOwnProperty(o)&&t.call(e,this.map[o],o,this)},c.prototype.keys=function(){var t=[];return this.forEach((function(e,o){t.push(o)})),s(t)},c.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),s(t)},c.prototype.entries=function(){var t=[];return this.forEach((function(e,o){t.push([o,e])})),s(t)},o.iterable&&(c.prototype[Symbol.iterator]=c.prototype.entries);var d=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function y(t,e){var o,r,n=(e=e||{}).body;if(t instanceof y){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new c(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,n||null==t._bodyInit||(n=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new c(e.headers)),this.method=(o=e.method||this.method||"GET",r=o.toUpperCase(),d.indexOf(r)>-1?r:o),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function g(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var o=t.split("="),r=o.shift().replace(/\+/g," "),n=o.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(n))}})),e}function b(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new c(e.headers),this.url=e.url||"",this._initBody(t)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},p.call(y.prototype),p.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new c(this.headers),url:this.url})},b.error=function(){var t=new b(null,{status:0,statusText:""});return t.type="error",t};var m=[301,302,303,307,308];b.redirect=function(t,e){if(-1===m.indexOf(e))throw new RangeError("Invalid status code");return new b(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var o=Error(t);this.stack=o.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function v(t,r){return new Promise((function(n,i){var a=new y(t,r);if(a.signal&&a.signal.aborted)return i(new e.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function l(){s.abort()}s.onload=function(){var t,e,o={status:s.status,statusText:s.statusText,headers:(t=s.getAllResponseHeaders()||"",e=new c,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var o=t.split(":"),r=o.shift().trim();if(r){var n=o.join(":").trim();e.append(r,n)}})),e)};o.url="responseURL"in s?s.responseURL:o.headers.get("X-Request-URL");var r="response"in s?s.response:s.responseText;n(new b(r,o))},s.onerror=function(){i(new TypeError("Network request failed"))},s.ontimeout=function(){i(new TypeError("Network request failed"))},s.onabort=function(){i(new e.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&o.blob&&(s.responseType="blob"),a.headers.forEach((function(t,e){s.setRequestHeader(e,t)})),a.signal&&(a.signal.addEventListener("abort",l),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",l)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}v.polyfill=!0,t.fetch||(t.fetch=v,t.Headers=c,t.Request=y,t.Response=b),e.Headers=c,e.Request=y,e.Response=b,e.fetch=v,Object.defineProperty(e,"U",{value:!0})}({})}("undefined"!=typeof self?self:void 0),function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"}(gs||(gs={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(bs||(bs={})),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"}(ms||(ms={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(vs||(vs={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(Os||(Os={})),function(t){t.ASC="ASC",t.DESC="DESC"}(xs||(xs={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(ws||(ws={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(Ss||(Ss={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Ns||(Ns={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(Cs||(Cs={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Es||(Es={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(Rs||(Rs={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS"}($s||($s={})),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.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"}(Us||(Us={})),Us.PERSONAL_BOOK_SHARE_USER,Us.PERSONAL_BOOK_USER,Us.HTML_EXPORT_USER,Us.PERSONAL_BOOK_USER,Us.PDF_EXPORT_USER,Us.PERSONAL_BOOK_USER,Us.KHUB_ADMIN,Us.CONTENT_PUBLISHER,Us.ADMIN,Us.KHUB_ADMIN,Us.USERS_ADMIN,Us.PORTAL_ADMIN,Us.DEVELOPER,Us.BETA_USER,Us.DEBUG_USER;const Ls=wt`
|
|
932
|
+
`,As=Dr.get({name:"ft-app-info",reducers:{setBaseUrl:(t,e)=>{t.baseUrl=e.payload},setApiIntegrationIdentifier:(t,e)=>{t.apiIntegrationIdentifier=e.payload},setUiLocale:(t,e)=>{t.uiLocale=e.payload},setAvailableUiLocales:(t,e)=>{t.availableUiLocales=e.payload},setEditorMode:(t,e)=>{t.editorMode=e.payload},setNoCustom:(t,e)=>{t.noCustom=e.payload},setNoCustomComponent:(t,e)=>{t.noCustomComponent=e.payload},setSession:(t,e)=>{t.session=e.payload}},initialState:{uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],editorMode:!1,noCustom:!1,noCustomComponent:!1}});class Ws{static build(t){const{baseUrl:e,apiIntegrationIdentifier:o}=As.getState(),r=null!=t?t:o;if(e&&r&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,r,!0)}static get(t){var e;return null!=t?Ws.build(t):null!==(e=Ws.API)&&void 0!==e?e:Ws.API=Ws.build()}static await(t){return new Promise((e=>{let o=Ws.get(t);if(o)e(o);else{const r=As.subscribe((()=>{o=Ws.get(t),o&&(r(),e(o))}))}}))}}var js;const Fs=Symbol("clearAfterUnitTest");class Ps{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new r,this.listeners={},this.currentUiLocale="",this[js]=()=>{this.defaultMessages={},this.cache=new r,this.listeners={}},this.currentUiLocale=As.getState().uiLocale,As.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=As.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const e=t.name.toLowerCase();this.cache.setFinal(e,t),this.notify(e)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var o;if(t=t.toLowerCase(),Object.keys(e).length>0){const r={...null!==(o=this.defaultMessages[t])&&void 0!==o?o:{},...e};A(this.defaultMessages[t],r)||(this.defaultMessages[t]=r,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...o){var r,n,i;t=t.toLowerCase(),this.fetchContext(t);const a=null!==(n=null===(r=this.cache.getNow(t))||void 0===r?void 0:r.messages)&&void 0!==n?n:{};return new Be(null!==(i=this.defaultMessages[t])&&void 0!==i?i:{},a).resolve(e,...o)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,e){var o;return t=t.toLowerCase(),this.listeners[t]=null!==(o=this.listeners[t])&&void 0!==o?o:new Set,this.listeners[t].add(e),()=>{var o;return null===(o=this.listeners[t])||void 0===o?void 0:o.delete(e)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>{return(e=0,new Promise((t=>setTimeout(t,e)))).then((()=>t())).catch((()=>null));var e})))}}js=Fs,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new Ps((async(t,e)=>(await Ws.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new Ps((async(t,e)=>(await Ws.await()).getCustomMessageContext(t,e))));const Ks=window.FluidTopicsI18nService,Ms=window.FluidTopicsCustomI18nService;var Ds=function(t,e,o,r){for(var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(n=t[s])&&(a=(i<3?n(a):i>3?n(e,o,a):n(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a};class Bs extends Pe{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.availableUiLocales=[],this.editorMode=!1,this.noCustom=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.messageContexts=[],this.apiProvider=()=>Ws.get(),this.cache=new r,this.cleanSessionDebouncer=new L}render(){return ne`
|
|
933
933
|
<slot></slot>
|
|
934
|
-
`}update(t){super.update(t),t.has("baseUrl")&&
|
|
935
|
-
`;var
|
|
934
|
+
`}update(t){super.update(t),t.has("baseUrl")&&As.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&As.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&As.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&As.actions.setNoCustom(this.noCustom),t.has("editorMode")&&As.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&As.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&As.actions.setSession(this.session),t.has("availableUiLocales")&&As.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>Ks.addContext(t))),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){const t=this.apiProvider();!this.withManualResources&&t&&(null==this.session&&(this.session=await this.cache.get("session",(async()=>{const e=await t.getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),e.idleTimeoutInMillis),e}))),null==this.availableUiLocales&&(this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>t.getAvailableUiLocales()))))}}Bs.elementDefinitions={},Bs.styles=Ls,Ds([R()],Bs.prototype,"baseUrl",void 0),Ds([R()],Bs.prototype,"apiIntegrationIdentifier",void 0),Ds([R()],Bs.prototype,"uiLocale",void 0),Ds([j([])],Bs.prototype,"availableUiLocales",void 0),Ds([R({type:Boolean})],Bs.prototype,"editorMode",void 0),Ds([R({type:Boolean})],Bs.prototype,"noCustom",void 0),Ds([R({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],Bs.prototype,"noCustomComponent",void 0),Ds([R({type:Boolean})],Bs.prototype,"withManualResources",void 0),Ds([j([])],Bs.prototype,"messageContexts",void 0),Ds([j(void 0)],Bs.prototype,"session",void 0),Ds([R({type:Object})],Bs.prototype,"apiProvider",void 0);class Ts{async listMySearches(){var t;return(null===(t=As.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await Ws.await()).listMySearches(As.getState().session.profile.userId):[]}}const zs=new r;class Zs{async listMyBookmarks(){return zs.get("bookmarks",(async()=>(await Ws.await()).listMyBookmarks(As.getState().session.profile.userId)))}clearCache(){zs.clear("bookmarks")}}const _s=Dr.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});new class{constructor(){this.currentSession=As.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Zs,As.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=As.getState();A(null===(t=this.currentSession)||void 0===t?void 0:t.profile,null==e?void 0:e.profile)||(this.currentSession=e,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){_s.actions.savedSearches(void 0)}clearMyBookmarks(){_s.actions.bookmarks(void 0)}async reloadMySearches(){const t=new Ts,e=await t.listMySearches();_s.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){const e=(null===(t=this.currentSession)||void 0===t?void 0:t.sessionAuthenticated)?await this.bookmarksService.listMyBookmarks():void 0;_s.actions.bookmarks(e)}}},W("ft-app-context")(Bs);class Hs extends Event{constructor(){super(Hs.eventName)}}Hs.eventName="search-context-clear-all-filters";var Gs=function(t,e,o,r){for(var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(n=t[s])&&(a=(i<3?n(a):i>3?n(e,o,a):n(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a};class Vs extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}}const qs=Symbol("registerInterval");class Ys extends(function(t){var e;class o extends t{constructor(){super(...arguments),this[e]=0}setSearchStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[qs]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[qs]):this.dispatchEvent(new Vs)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=qs,Gs([$()],o.prototype,"stateManager",void 0),o}(Xe)){}const Xs=wt`
|
|
935
|
+
`;var Js=function(t,e,o,r){for(var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(n=t[s])&&(a=(i<3?n(a):i>3?n(e,o,a):n(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a};const Qs=Symbol("i18nProperties"),tc=Symbol("i18nUnsubs");function ec(t){var e;class o extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?Ms:Ks}i18n(t,e,...o){var r;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...o);const n=null!==(r=t.args)&&void 0!==r?r:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...n)}onI18nUpdate(t){var e;null===(e=this[Qs])||void 0===e||e.forEach(((e,o)=>{e.context.toLowerCase()===t.toLowerCase()&&(this[o]=this.i18n(e))})),setTimeout((()=>this.requestUpdate()),0)}update(t){var e;super.update(t),null===(e=this[Qs])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[Qs]&&new Set([...this[Qs].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[tc].has(t)||this[tc].set(t,this.i18nService.subscribe(t,(()=>this.onI18nUpdate(t)))),this.i18nService.prepareContext(t,null!=e?e:{})}addI18nContext(t,e){this.addI18nMessages(t.name,e)}disconnectedCallback(){super.disconnectedCallback(),this[tc].forEach((t=>t())),this[tc].clear()}}return e=tc,Js([R({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}class oc extends(ec(Pe)){}class rc extends(ec(Xe)){}var nc=function(t,e,o,r){for(var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(n=t[s])&&(a=(i<3?n(a):i>3?n(e,o,a):n(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a};class ic extends rc{constructor(){super(),this.editorMode=!1,this.addStore(As)}render(){return this.key&&this.context?ne`
|
|
936
936
|
<span class="ft-i18n">
|
|
937
937
|
${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
|
|
938
938
|
</span>
|
|
939
|
-
`:this.editorMode?"Select a context and a label key.":ae}update(t){var e;super.update(t),this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:null!==(e=this.defaultMessage)&&void 0!==e?e:""})}}
|
|
939
|
+
`:this.editorMode?"Select a context and a label key.":ae}update(t){var e;super.update(t),this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:null!==(e=this.defaultMessage)&&void 0!==e?e:""})}}ic.elementDefinitions={},ic.styles=Xs,nc([Te()],ic.prototype,"editorMode",void 0),nc([R()],ic.prototype,"context",void 0),nc([R()],ic.prototype,"key",void 0),nc([j([])],ic.prototype,"args",void 0),nc([R()],ic.prototype,"defaultMessage",void 0);class ac{static build(t){return new ac(t)}static fromGwt(t){return new ac(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,e)=>{const o=e;return t=>({context:this.name,key:o,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,e)=>(...t)=>Ks.resolveMessage(this.name,e,...t)})}}W("ft-i18n")(ic);const sc=ac.fromGwt("designedActionBlockAriaLabels");var cc=function(t,e,o,r){for(var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(n=t[s])&&(a=(i<3?n(a):i>3?n(e,o,a):n(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a};class lc extends(ec(Ys)){constructor(){super(),this.currentPage=1,this.isLastPage=!0,this.addI18nContext(sc)}render(){return this.isLastPage?ae:ne`
|
|
940
940
|
<ft-button @click="${this.loadMore}">
|
|
941
|
-
${
|
|
941
|
+
${sc.messages.searchPageLoadMore()}
|
|
942
942
|
</ft-button>
|
|
943
|
-
`}loadMore(){var t;null===(t=this.stateManager)||void 0===t||t.setPageNumber(this.currentPage+1)}}
|
|
943
|
+
`}loadMore(){var t;null===(t=this.stateManager)||void 0===t||t.setPageNumber(this.currentPage+1)}}lc.elementDefinitions={"ft-button":ds},lc.styles=Hr,cc([Te({store:"search",selector:t=>{var e,o;return null!==(o=null===(e=t.paging)||void 0===e?void 0:e.currentPage)&&void 0!==o?o:1}})],lc.prototype,"currentPage",void 0),cc([Te({store:"search",selector:t=>{var e,o;return null===(o=null===(e=t.paging)||void 0===e?void 0:e.isLastPage)||void 0===o||o}})],lc.prototype,"isLastPage",void 0),W("ft-search-load-more-button")(lc),t.FtSearchLoadMoreButton=lc,t.FtSearchLoadMoreButtonCssVariables={},t.styles=Hr}({});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-search-load-more-button",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.11",
|
|
4
4
|
"description": "A button to load more result in a search context",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-button": "1.1.
|
|
23
|
-
"@fluid-topics/ft-search-context": "1.1.
|
|
24
|
-
"@fluid-topics/ft-wc-utils": "1.1.
|
|
22
|
+
"@fluid-topics/ft-button": "1.1.11",
|
|
23
|
+
"@fluid-topics/ft-search-context": "1.1.11",
|
|
24
|
+
"@fluid-topics/ft-wc-utils": "1.1.11",
|
|
25
25
|
"@fluid-topics/public-api": "1.0.52",
|
|
26
26
|
"lit": "3.1.0"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "077ec0dd3948ed41aa130d5a4cdc3d77f0dd2e6c"
|
|
29
29
|
}
|