@teipublisher/pb-components 1.24.20 → 1.25.0
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.
- package/CHANGELOG.md +7 -0
- package/dist/pb-components-bundle.js +20 -11
- package/dist/pb-elements.json +37 -9
- package/package.json +1 -1
- package/pb-elements.json +37 -9
- package/src/dts-client.js +51 -14
- package/src/dts-select-endpoint.js +5 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [1.25.0](https://github.com/eeditiones/tei-publisher-components/compare/v1.24.20...v1.25.0) (2021-10-05)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **dts-client:** support navigation to parent collection ([5985a70](https://github.com/eeditiones/tei-publisher-components/commit/5985a70253ac9f9b0f512a528b12e36178ea6413))
|
|
7
|
+
|
|
1
8
|
## [1.24.20](https://github.com/eeditiones/tei-publisher-components/compare/v1.24.19...v1.24.20) (2021-10-04)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -507,7 +507,7 @@ const W=i`
|
|
|
507
507
|
border-color: #999;
|
|
508
508
|
color: #999;
|
|
509
509
|
}
|
|
510
|
-
`}}customElements.define("pb-demo-snippet",Q);class Z{static subscribe(t,e,i,n=!1){e&&!Array.isArray(e)&&(e=[e]);const r=document.addEventListener(t,t=>{(e||t.detail&&t.detail.key)&&!(e&&t.detail&&t.detail.key&&e.indexOf(t.detail.key)>-1)||i&&i(t,r)},{once:n})}static subscribeOnce(t,e=null){return e&&!Array.isArray(e)&&(e=[e]),new Promise(i=>{document.addEventListener(t,t=>{(e||t.detail&&t.detail.key)&&!(e&&t.detail&&t.detail.key&&e.indexOf(t.detail.key)>-1)||i(t)},{once:!0})})}static emit(t,e=null,i=null){const n=i||{};e&&(n.key=e);const r=new CustomEvent(t,{detail:n});document.dispatchEvent(r)}}window.pbEvents||(window.pbEvents=Z);const Y="1.24.20";class J extends V{static get properties(){return Object.assign({version:{type:String,reflect:!0}},super.properties)}constructor(){super(),this.version=Y}connectedCallback(){if(super.connectedCallback(),!this.version){const t=O("../package.json");fetch(t).then(t=>t.json()).then(t=>{this.version=t.version})}}render(){return $`<span>${this.version?this.version:"unknown"}</span>`}createRenderRoot(){return this}}customElements.define("pb-version",J);var tt="top",et="bottom",it="right",nt="left",rt="auto",ot=[tt,et,it,nt],at="start",st="end",lt="clippingParents",ct="viewport",ht="popper",dt="reference",pt=ot.reduce((function(t,e){return t.concat([e+"-"+at,e+"-"+st])}),[]),ut=[].concat(ot,[rt]).reduce((function(t,e){return t.concat([e,e+"-"+at,e+"-"+st])}),[]),gt=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function mt(t){return t?(t.nodeName||"").toLowerCase():null}function ft(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function vt(t){return t instanceof ft(t).Element||t instanceof Element}function bt(t){return t instanceof ft(t).HTMLElement||t instanceof HTMLElement}function yt(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ft(t).ShadowRoot||t instanceof ShadowRoot)}function _t(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var i=e.styles[t]||{},n=e.attributes[t]||{},r=e.elements[t];bt(r)&&mt(r)&&(Object.assign(r.style,i),Object.keys(n).forEach((function(t){var e=n[t];!1===e?r.removeAttribute(t):r.setAttribute(t,!0===e?"":e)})))}))}function wt(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow),function(){Object.keys(e.elements).forEach((function(t){var n=e.elements[t],r=e.attributes[t]||{},o=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:i[t]).reduce((function(t,e){return t[e]="",t}),{});bt(n)&&mt(n)&&(Object.assign(n.style,o),Object.keys(r).forEach((function(t){n.removeAttribute(t)})))}))}}var xt={name:"applyStyles",enabled:!0,phase:"write",fn:_t,effect:wt,requires:["computeStyles"]};function kt(t){return t.split("-")[0]}function zt(t){var e=t.getBoundingClientRect();return{width:e.width,height:e.height,top:e.top,right:e.right,bottom:e.bottom,left:e.left,x:e.left,y:e.top}}function At(t){var e=zt(t),i=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-i)<=1&&(i=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:i,height:n}}function St(t,e){var i=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(i&&yt(i)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Mt(t){return ft(t).getComputedStyle(t)}function Et(t){return["table","td","th"].indexOf(mt(t))>=0}function Ct(t){return((vt(t)?t.ownerDocument:t.document)||window.document).documentElement}function Lt(t){return"html"===mt(t)?t:t.assignedSlot||t.parentNode||(yt(t)?t.host:null)||Ct(t)}function Ht(t){return bt(t)&&"fixed"!==Mt(t).position?t.offsetParent:null}function Tt(t){var e=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&bt(t)&&"fixed"===Mt(t).position)return null;for(var i=Lt(t);bt(i)&&["html","body"].indexOf(mt(i))<0;){var n=Mt(i);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||e&&"filter"===n.willChange||e&&n.filter&&"none"!==n.filter)return i;i=i.parentNode}return null}function Vt(t){for(var e=ft(t),i=Ht(t);i&&Et(i)&&"static"===Mt(i).position;)i=Ht(i);return i&&("html"===mt(i)||"body"===mt(i)&&"static"===Mt(i).position)?e:i||Tt(t)||e}function $t(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}var Ot=Math.max,Rt=Math.min,Pt=Math.round;function It(t,e,i){return Ot(t,Rt(e,i))}function Nt(){return{top:0,right:0,bottom:0,left:0}}function Bt(t){return Object.assign({},Nt(),t)}function Ft(t,e){return e.reduce((function(e,i){return e[i]=t,e}),{})}var Dt=function(t,e){return Bt("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:Ft(t,ot))};function jt(t){var e,i=t.state,n=t.name,r=t.options,o=i.elements.arrow,a=i.modifiersData.popperOffsets,s=kt(i.placement),l=$t(s),c=[nt,it].indexOf(s)>=0?"height":"width";if(o&&a){var h=Dt(r.padding,i),d=At(o),p="y"===l?tt:nt,u="y"===l?et:it,g=i.rects.reference[c]+i.rects.reference[l]-a[l]-i.rects.popper[c],m=a[l]-i.rects.reference[l],f=Vt(o),v=f?"y"===l?f.clientHeight||0:f.clientWidth||0:0,b=g/2-m/2,y=h[p],_=v-d[c]-h[u],w=v/2-d[c]/2+b,x=It(y,w,_),k=l;i.modifiersData[n]=((e={})[k]=x,e.centerOffset=x-w,e)}}function qt(t){var e=t.state,i=t.options.element,n=void 0===i?"[data-popper-arrow]":i;null!=n&&("string"!=typeof n||(n=e.elements.popper.querySelector(n)))&&St(e.elements.popper,n)&&(e.elements.arrow=n)}var Ut={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Wt(t){var e=t.x,i=t.y,n=window.devicePixelRatio||1;return{x:Pt(Pt(e*n)/n)||0,y:Pt(Pt(i*n)/n)||0}}function Gt(t){var e,i=t.popper,n=t.popperRect,r=t.placement,o=t.offsets,a=t.position,s=t.gpuAcceleration,l=t.adaptive,c=t.roundOffsets,h=!0===c?Wt(o):"function"==typeof c?c(o):o,d=h.x,p=void 0===d?0:d,u=h.y,g=void 0===u?0:u,m=o.hasOwnProperty("x"),f=o.hasOwnProperty("y"),v=nt,b=tt,y=window;if(l){var _=Vt(i),w="clientHeight",x="clientWidth";_===ft(i)&&"static"!==Mt(_=Ct(i)).position&&(w="scrollHeight",x="scrollWidth"),_=_,r===tt&&(b=et,g-=_[w]-n.height,g*=s?1:-1),r===nt&&(v=it,p-=_[x]-n.width,p*=s?1:-1)}var k,z=Object.assign({position:a},l&&Ut);return s?Object.assign({},z,((k={})[b]=f?"0":"",k[v]=m?"0":"",k.transform=(y.devicePixelRatio||1)<2?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",k)):Object.assign({},z,((e={})[b]=f?g+"px":"",e[v]=m?p+"px":"",e.transform="",e))}function Xt(t){var e=t.state,i=t.options,n=i.gpuAcceleration,r=void 0===n||n,o=i.adaptive,a=void 0===o||o,s=i.roundOffsets,l=void 0===s||s,c={placement:kt(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,Gt(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:l})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,Gt(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var Kt={passive:!0};function Qt(t){var e=t.state,i=t.instance,n=t.options,r=n.scroll,o=void 0===r||r,a=n.resize,s=void 0===a||a,l=ft(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&c.forEach((function(t){t.addEventListener("scroll",i.update,Kt)})),s&&l.addEventListener("resize",i.update,Kt),function(){o&&c.forEach((function(t){t.removeEventListener("scroll",i.update,Kt)})),s&&l.removeEventListener("resize",i.update,Kt)}}var Zt={left:"right",right:"left",bottom:"top",top:"bottom"};function Yt(t){return t.replace(/left|right|bottom|top/g,(function(t){return Zt[t]}))}var Jt={start:"end",end:"start"};function te(t){return t.replace(/start|end/g,(function(t){return Jt[t]}))}function ee(t){var e=ft(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function ie(t){return zt(Ct(t)).left+ee(t).scrollLeft}function ne(t){var e=ft(t),i=Ct(t),n=e.visualViewport,r=i.clientWidth,o=i.clientHeight,a=0,s=0;return n&&(r=n.width,o=n.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=n.offsetLeft,s=n.offsetTop)),{width:r,height:o,x:a+ie(t),y:s}}function re(t){var e,i=Ct(t),n=ee(t),r=null==(e=t.ownerDocument)?void 0:e.body,o=Ot(i.scrollWidth,i.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=Ot(i.scrollHeight,i.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),s=-n.scrollLeft+ie(t),l=-n.scrollTop;return"rtl"===Mt(r||i).direction&&(s+=Ot(i.clientWidth,r?r.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}function oe(t){var e=Mt(t),i=e.overflow,n=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(i+r+n)}function ae(t){return["html","body","#document"].indexOf(mt(t))>=0?t.ownerDocument.body:bt(t)&&oe(t)?t:ae(Lt(t))}function se(t,e){var i;void 0===e&&(e=[]);var n=ae(t),r=n===(null==(i=t.ownerDocument)?void 0:i.body),o=ft(n),a=r?[o].concat(o.visualViewport||[],oe(n)?n:[]):n,s=e.concat(a);return r?s:s.concat(se(Lt(a)))}function le(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function ce(t){var e=zt(t);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}function he(t,e){return e===ct?le(ne(t)):bt(e)?ce(e):le(re(Ct(t)))}function de(t){var e=se(Lt(t)),i=["absolute","fixed"].indexOf(Mt(t).position)>=0&&bt(t)?Vt(t):t;return vt(i)?e.filter((function(t){return vt(t)&&St(t,i)&&"body"!==mt(t)})):[]}function pe(t,e,i){var n="clippingParents"===e?de(t):[].concat(e),r=[].concat(n,[i]),o=r[0],a=r.reduce((function(e,i){var n=he(t,i);return e.top=Ot(n.top,e.top),e.right=Rt(n.right,e.right),e.bottom=Rt(n.bottom,e.bottom),e.left=Ot(n.left,e.left),e}),he(t,o));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function ue(t){return t.split("-")[1]}function ge(t){var e,i=t.reference,n=t.element,r=t.placement,o=r?kt(r):null,a=r?ue(r):null,s=i.x+i.width/2-n.width/2,l=i.y+i.height/2-n.height/2;switch(o){case tt:e={x:s,y:i.y-n.height};break;case et:e={x:s,y:i.y+i.height};break;case it:e={x:i.x+i.width,y:l};break;case nt:e={x:i.x-n.width,y:l};break;default:e={x:i.x,y:i.y}}var c=o?$t(o):null;if(null!=c){var h="y"===c?"height":"width";switch(a){case at:e[c]=e[c]-(i[h]/2-n[h]/2);break;case st:e[c]=e[c]+(i[h]/2-n[h]/2)}}return e}function me(t,e){void 0===e&&(e={});var i=e,n=i.placement,r=void 0===n?t.placement:n,o=i.boundary,a=void 0===o?lt:o,s=i.rootBoundary,l=void 0===s?ct:s,c=i.elementContext,h=void 0===c?ht:c,d=i.altBoundary,p=void 0!==d&&d,u=i.padding,g=void 0===u?0:u,m=Bt("number"!=typeof g?g:Ft(g,ot)),f=h===ht?dt:ht,v=t.elements.reference,b=t.rects.popper,y=t.elements[p?f:h],_=pe(vt(y)?y:y.contextElement||Ct(t.elements.popper),a,l),w=zt(v),x=ge({reference:w,element:b,strategy:"absolute",placement:r}),k=le(Object.assign({},b,x)),z=h===ht?k:w,A={top:_.top-z.top+m.top,bottom:z.bottom-_.bottom+m.bottom,left:_.left-z.left+m.left,right:z.right-_.right+m.right},S=t.modifiersData.offset;if(h===ht&&S){var M=S[r];Object.keys(A).forEach((function(t){var e=[it,et].indexOf(t)>=0?1:-1,i=[tt,et].indexOf(t)>=0?"y":"x";A[t]+=M[i]*e}))}return A}function fe(t,e){void 0===e&&(e={});var i=e,n=i.placement,r=i.boundary,o=i.rootBoundary,a=i.padding,s=i.flipVariations,l=i.allowedAutoPlacements,c=void 0===l?ut:l,h=ue(n),d=h?s?pt:pt.filter((function(t){return ue(t)===h})):ot,p=d.filter((function(t){return c.indexOf(t)>=0}));0===p.length&&(p=d);var u=p.reduce((function(e,i){return e[i]=me(t,{placement:i,boundary:r,rootBoundary:o,padding:a})[kt(i)],e}),{});return Object.keys(u).sort((function(t,e){return u[t]-u[e]}))}function ve(t){if(kt(t)===rt)return[];var e=Yt(t);return[te(t),e,te(e)]}function be(t){var e=t.state,i=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var r=i.mainAxis,o=void 0===r||r,a=i.altAxis,s=void 0===a||a,l=i.fallbackPlacements,c=i.padding,h=i.boundary,d=i.rootBoundary,p=i.altBoundary,u=i.flipVariations,g=void 0===u||u,m=i.allowedAutoPlacements,f=e.options.placement,v=kt(f),b=l||(v===f||!g?[Yt(f)]:ve(f)),y=[f].concat(b).reduce((function(t,i){return t.concat(kt(i)===rt?fe(e,{placement:i,boundary:h,rootBoundary:d,padding:c,flipVariations:g,allowedAutoPlacements:m}):i)}),[]),_=e.rects.reference,w=e.rects.popper,x=new Map,k=!0,z=y[0],A=0;A<y.length;A++){var S=y[A],M=kt(S),E=ue(S)===at,C=[tt,et].indexOf(M)>=0,L=C?"width":"height",H=me(e,{placement:S,boundary:h,rootBoundary:d,altBoundary:p,padding:c}),T=C?E?it:nt:E?et:tt;_[L]>w[L]&&(T=Yt(T));var V=Yt(T),$=[];if(o&&$.push(H[M]<=0),s&&$.push(H[T]<=0,H[V]<=0),$.every((function(t){return t}))){z=S,k=!1;break}x.set(S,$)}if(k)for(var O=function(t){var e=y.find((function(e){var i=x.get(e);if(i)return i.slice(0,t).every((function(t){return t}))}));if(e)return z=e,"break"},R=g?3:1;R>0;R--){if("break"===O(R))break}e.placement!==z&&(e.modifiersData[n]._skip=!0,e.placement=z,e.reset=!0)}}function ye(t,e,i){return void 0===i&&(i={x:0,y:0}),{top:t.top-e.height-i.y,right:t.right-e.width+i.x,bottom:t.bottom-e.height+i.y,left:t.left-e.width-i.x}}function _e(t){return[tt,it,et,nt].some((function(e){return t[e]>=0}))}function we(t){var e=t.state,i=t.name,n=e.rects.reference,r=e.rects.popper,o=e.modifiersData.preventOverflow,a=me(e,{elementContext:"reference"}),s=me(e,{altBoundary:!0}),l=ye(a,n),c=ye(s,r,o),h=_e(l),d=_e(c);e.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:h,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":d})}function xe(t,e,i){var n=kt(t),r=[nt,tt].indexOf(n)>=0?-1:1,o="function"==typeof i?i(Object.assign({},e,{placement:t})):i,a=o[0],s=o[1];return a=a||0,s=(s||0)*r,[nt,it].indexOf(n)>=0?{x:s,y:a}:{x:a,y:s}}function ke(t){var e=t.state,i=t.options,n=t.name,r=i.offset,o=void 0===r?[0,0]:r,a=ut.reduce((function(t,i){return t[i]=xe(i,e.rects,o),t}),{}),s=a[e.placement],l=s.x,c=s.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[n]=a}function ze(t){var e=t.state,i=t.name;e.modifiersData[i]=ge({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}function Ae(t){return"x"===t?"y":"x"}function Se(t){var e=t.state,i=t.options,n=t.name,r=i.mainAxis,o=void 0===r||r,a=i.altAxis,s=void 0!==a&&a,l=i.boundary,c=i.rootBoundary,h=i.altBoundary,d=i.padding,p=i.tether,u=void 0===p||p,g=i.tetherOffset,m=void 0===g?0:g,f=me(e,{boundary:l,rootBoundary:c,padding:d,altBoundary:h}),v=kt(e.placement),b=ue(e.placement),y=!b,_=$t(v),w=Ae(_),x=e.modifiersData.popperOffsets,k=e.rects.reference,z=e.rects.popper,A="function"==typeof m?m(Object.assign({},e.rects,{placement:e.placement})):m,S={x:0,y:0};if(x){if(o||s){var M="y"===_?tt:nt,E="y"===_?et:it,C="y"===_?"height":"width",L=x[_],H=x[_]+f[M],T=x[_]-f[E],V=u?-z[C]/2:0,$=b===at?k[C]:z[C],O=b===at?-z[C]:-k[C],R=e.elements.arrow,P=u&&R?At(R):{width:0,height:0},I=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Nt(),N=I[M],B=I[E],F=It(0,k[C],P[C]),D=y?k[C]/2-V-F-N-A:$-F-N-A,j=y?-k[C]/2+V+F+B+A:O+F+B+A,q=e.elements.arrow&&Vt(e.elements.arrow),U=q?"y"===_?q.clientTop||0:q.clientLeft||0:0,W=e.modifiersData.offset?e.modifiersData.offset[e.placement][_]:0,G=x[_]+D-W-U,X=x[_]+j-W;if(o){var K=It(u?Rt(H,G):H,L,u?Ot(T,X):T);x[_]=K,S[_]=K-L}if(s){var Q="x"===_?tt:nt,Z="x"===_?et:it,Y=x[w],J=Y+f[Q],rt=Y-f[Z],ot=It(u?Rt(J,G):J,Y,u?Ot(rt,X):rt);x[w]=ot,S[w]=ot-Y}}e.modifiersData[n]=S}}function Me(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function Ee(t){return t!==ft(t)&&bt(t)?Me(t):ee(t)}function Ce(t,e,i){void 0===i&&(i=!1);var n=Ct(e),r=zt(t),o=bt(e),a={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(o||!o&&!i)&&(("body"!==mt(e)||oe(n))&&(a=Ee(e)),bt(e)?((s=zt(e)).x+=e.clientLeft,s.y+=e.clientTop):n&&(s.x=ie(n))),{x:r.left+a.scrollLeft-s.x,y:r.top+a.scrollTop-s.y,width:r.width,height:r.height}}function Le(t){var e=new Map,i=new Set,n=[];function r(t){i.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!i.has(t)){var n=e.get(t);n&&r(n)}})),n.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){i.has(t.name)||r(t)})),n}function He(t){var e=Le(t);return gt.reduce((function(t,i){return t.concat(e.filter((function(t){return t.phase===i})))}),[])}function Te(t){var e;return function(){return e||(e=new Promise((function(i){Promise.resolve().then((function(){e=void 0,i(t())}))}))),e}}function Ve(t){var e=t.reduce((function(t,e){var i=t[e.name];return t[e.name]=i?Object.assign({},i,e,{options:Object.assign({},i.options,e.options),data:Object.assign({},i.data,e.data)}):e,t}),{});return Object.keys(e).map((function(t){return e[t]}))}var $e={placement:"bottom",modifiers:[],strategy:"absolute"};function Oe(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return!e.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function Re(t){void 0===t&&(t={});var e=t,i=e.defaultModifiers,n=void 0===i?[]:i,r=e.defaultOptions,o=void 0===r?$e:r;return function(t,e,i){void 0===i&&(i=o);var r={placement:"bottom",orderedModifiers:[],options:Object.assign({},$e,o),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},a=[],s=!1,l={state:r,setOptions:function(i){h(),r.options=Object.assign({},o,r.options,i),r.scrollParents={reference:vt(t)?se(t):t.contextElement?se(t.contextElement):[],popper:se(e)};var a=He(Ve([].concat(n,r.options.modifiers)));return r.orderedModifiers=a.filter((function(t){return t.enabled})),c(),l.update()},forceUpdate:function(){if(!s){var t=r.elements,e=t.reference,i=t.popper;if(Oe(e,i)){r.rects={reference:Ce(e,Vt(i),"fixed"===r.options.strategy),popper:At(i)},r.reset=!1,r.placement=r.options.placement,r.orderedModifiers.forEach((function(t){return r.modifiersData[t.name]=Object.assign({},t.data)}));for(var n=0;n<r.orderedModifiers.length;n++)if(!0!==r.reset){var o=r.orderedModifiers[n],a=o.fn,c=o.options,h=void 0===c?{}:c,d=o.name;"function"==typeof a&&(r=a({state:r,options:h,name:d,instance:l})||r)}else r.reset=!1,n=-1}}},update:Te((function(){return new Promise((function(t){l.forceUpdate(),t(r)}))})),destroy:function(){h(),s=!0}};if(!Oe(t,e))return l;function c(){r.orderedModifiers.forEach((function(t){var e=t.name,i=t.options,n=void 0===i?{}:i,o=t.effect;if("function"==typeof o){var s=o({state:r,name:e,instance:l,options:n}),c=function(){};a.push(s||c)}}))}function h(){a.forEach((function(t){return t()})),a=[]}return l.setOptions(i).then((function(t){!s&&i.onFirstUpdate&&i.onFirstUpdate(t)})),l}}var Pe=Re({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Qt,data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:ze,data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Xt,data:{}},xt,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:ke},{name:"flip",enabled:!0,phase:"main",fn:be,requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:Se,requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:jt,effect:qt,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:we}]}),Ie="tippy-box",Ne="tippy-content",Be="tippy-backdrop",Fe="tippy-arrow",De="tippy-svg-arrow",je={passive:!0,capture:!0};function qe(t,e,i){if(Array.isArray(t)){var n=t[e];return null==n?Array.isArray(i)?i[e]:i:n}return t}function Ue(t,e){var i={}.toString.call(t);return 0===i.indexOf("[object")&&i.indexOf(e+"]")>-1}function We(t,e){return"function"==typeof t?t.apply(void 0,e):t}function Ge(t,e){return 0===e?t:function(n){clearTimeout(i),i=setTimeout((function(){t(n)}),e)};var i}function Xe(t){return t.split(/\s+/).filter(Boolean)}function Ke(t){return[].concat(t)}function Qe(t,e){-1===t.indexOf(e)&&t.push(e)}function Ze(t){return t.filter((function(e,i){return t.indexOf(e)===i}))}function Ye(t){return t.split("-")[0]}function Je(t){return[].slice.call(t)}function ti(t){return Object.keys(t).reduce((function(e,i){return void 0!==t[i]&&(e[i]=t[i]),e}),{})}function ei(){return document.createElement("div")}function ii(t){return["Element","Fragment"].some((function(e){return Ue(t,e)}))}function ni(t){return Ue(t,"NodeList")}function ri(t){return Ue(t,"MouseEvent")}function oi(t){return!(!t||!t._tippy||t._tippy.reference!==t)}function ai(t){return ii(t)?[t]:ni(t)?Je(t):Array.isArray(t)?t:Je(document.querySelectorAll(t))}function si(t,e){t.forEach((function(t){t&&(t.style.transitionDuration=e+"ms")}))}function li(t,e){t.forEach((function(t){t&&t.setAttribute("data-state",e)}))}function ci(t){var e,i=Ke(t)[0];return(null==i||null==(e=i.ownerDocument)?void 0:e.body)?i.ownerDocument:document}function hi(t,e){var i=e.clientX,n=e.clientY;return t.every((function(t){var e=t.popperRect,r=t.popperState,o=t.props.interactiveBorder,a=Ye(r.placement),s=r.modifiersData.offset;if(!s)return!0;var l="bottom"===a?s.top.y:0,c="top"===a?s.bottom.y:0,h="right"===a?s.left.x:0,d="left"===a?s.right.x:0,p=e.top-n+l>o,u=n-e.bottom-c>o,g=e.left-i+h>o,m=i-e.right-d>o;return p||u||g||m}))}function di(t,e,i){var n=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(e){t[n](e,i)}))}var pi={isTouch:!1},ui=0;function gi(){pi.isTouch||(pi.isTouch=!0,window.performance&&document.addEventListener("mousemove",mi))}function mi(){var t=performance.now();t-ui<20&&(pi.isTouch=!1,document.removeEventListener("mousemove",mi)),ui=t}function fi(){var t=document.activeElement;if(oi(t)){var e=t._tippy;t.blur&&!e.state.isVisible&&t.blur()}}function vi(){document.addEventListener("touchstart",gi,je),window.addEventListener("blur",fi)}var bi="undefined"!=typeof window&&"undefined"!=typeof document?navigator.userAgent:"",yi=/MSIE |Trident\//.test(bi),_i={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},wi={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},xi=Object.assign({appendTo:function(){return document.body},aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},_i,{},wi),ki=Object.keys(xi),zi=function(t){Object.keys(t).forEach((function(e){xi[e]=t[e]}))};function Ai(t){var e=(t.plugins||[]).reduce((function(e,i){var n=i.name,r=i.defaultValue;return n&&(e[n]=void 0!==t[n]?t[n]:r),e}),{});return Object.assign({},t,{},e)}function Si(t,e){return(e?Object.keys(Ai(Object.assign({},xi,{plugins:e}))):ki).reduce((function(e,i){var n=(t.getAttribute("data-tippy-"+i)||"").trim();if(!n)return e;if("content"===i)e[i]=n;else try{e[i]=JSON.parse(n)}catch(t){e[i]=n}return e}),{})}function Mi(t,e){var i=Object.assign({},e,{content:We(e.content,[t])},e.ignoreAttributes?{}:Si(t,e.plugins));return i.aria=Object.assign({},xi.aria,{},i.aria),i.aria={expanded:"auto"===i.aria.expanded?e.interactive:i.aria.expanded,content:"auto"===i.aria.content?e.interactive?null:"describedby":i.aria.content},i}var Ei=function(){return"innerHTML"};function Ci(t,e){t[Ei()]=e}function Li(t){var e=ei();return!0===t?e.className=Fe:(e.className=De,ii(t)?e.appendChild(t):Ci(e,t)),e}function Hi(t,e){ii(e.content)?(Ci(t,""),t.appendChild(e.content)):"function"!=typeof e.content&&(e.allowHTML?Ci(t,e.content):t.textContent=e.content)}function Ti(t){var e=t.firstElementChild,i=Je(e.children);return{box:e,content:i.find((function(t){return t.classList.contains(Ne)})),arrow:i.find((function(t){return t.classList.contains(Fe)||t.classList.contains(De)})),backdrop:i.find((function(t){return t.classList.contains(Be)}))}}function Vi(t){var e=ei(),i=ei();i.className=Ie,i.setAttribute("data-state","hidden"),i.setAttribute("tabindex","-1");var n=ei();function r(i,n){var r=Ti(e),o=r.box,a=r.content,s=r.arrow;n.theme?o.setAttribute("data-theme",n.theme):o.removeAttribute("data-theme"),"string"==typeof n.animation?o.setAttribute("data-animation",n.animation):o.removeAttribute("data-animation"),n.inertia?o.setAttribute("data-inertia",""):o.removeAttribute("data-inertia"),o.style.maxWidth="number"==typeof n.maxWidth?n.maxWidth+"px":n.maxWidth,n.role?o.setAttribute("role",n.role):o.removeAttribute("role"),i.content===n.content&&i.allowHTML===n.allowHTML||Hi(a,t.props),n.arrow?s?i.arrow!==n.arrow&&(o.removeChild(s),o.appendChild(Li(n.arrow))):o.appendChild(Li(n.arrow)):s&&o.removeChild(s)}return n.className=Ne,n.setAttribute("data-state","hidden"),Hi(n,t.props),e.appendChild(i),i.appendChild(n),r(t.props,t.props),{popper:e,onUpdate:r}}Vi.$$tippy=!0;var $i=1,Oi=[],Ri=[];function Pi(t,e){var i,n,r,o,a,s,l,c=Mi(t,Object.assign({},xi,{},Ai(ti(e)))),h=!1,d=!1,p=!1,u=!1,g=[],m=Ge(Q,c.interactiveDebounce),f=$i++,v=null,b=Ze(c.plugins),y={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},_={id:f,reference:t,popper:ei(),popperInstance:v,props:c,state:y,plugins:b,clearDelayTimeouts:lt,setProps:ct,setContent:ht,show:dt,hide:pt,hideWithInteractivity:ut,enable:at,disable:st,unmount:gt,destroy:mt};if(!c.render)return _;var w=c.render(_),x=w.popper,k=w.onUpdate;x.setAttribute("data-tippy-root",""),x.id="tippy-"+_.id,_.popper=x,t._tippy=_,x._tippy=_;var z=b.map((function(t){return t.fn(_)})),A=t.hasAttribute("aria-expanded");return G(),R(),V(),$("onCreate",[_]),c.showOnCreate&&rt(),x.addEventListener("mouseenter",(function(){_.props.interactive&&_.state.isVisible&&_.clearDelayTimeouts()})),x.addEventListener("mouseleave",(function(t){_.props.interactive&&_.props.trigger.indexOf("mouseenter")>=0&&(L().addEventListener("mousemove",m),m(t))})),_;function S(){var t=_.props.touch;return Array.isArray(t)?t:[t,0]}function M(){return"hold"===S()[0]}function E(){var t;return!!(null==(t=_.props.render)?void 0:t.$$tippy)}function C(){return l||t}function L(){var t=C().parentNode;return t?ci(t):document}function H(){return Ti(x)}function T(t){return _.state.isMounted&&!_.state.isVisible||pi.isTouch||o&&"focus"===o.type?0:qe(_.props.delay,t?0:1,xi.delay)}function V(){x.style.pointerEvents=_.props.interactive&&_.state.isVisible?"":"none",x.style.zIndex=""+_.props.zIndex}function $(t,e,i){var n;(void 0===i&&(i=!0),z.forEach((function(i){i[t]&&i[t].apply(void 0,e)})),i)&&(n=_.props)[t].apply(n,e)}function O(){var e=_.props.aria;if(e.content){var i="aria-"+e.content,n=x.id;Ke(_.props.triggerTarget||t).forEach((function(t){var e=t.getAttribute(i);if(_.state.isVisible)t.setAttribute(i,e?e+" "+n:n);else{var r=e&&e.replace(n,"").trim();r?t.setAttribute(i,r):t.removeAttribute(i)}}))}}function R(){!A&&_.props.aria.expanded&&Ke(_.props.triggerTarget||t).forEach((function(t){_.props.interactive?t.setAttribute("aria-expanded",_.state.isVisible&&t===C()?"true":"false"):t.removeAttribute("aria-expanded")}))}function P(){L().removeEventListener("mousemove",m),Oi=Oi.filter((function(t){return t!==m}))}function I(t){if(!(pi.isTouch&&(p||"mousedown"===t.type)||_.props.interactive&&x.contains(t.target))){if(C().contains(t.target)){if(pi.isTouch)return;if(_.state.isVisible&&_.props.trigger.indexOf("click")>=0)return}else $("onClickOutside",[_,t]);!0===_.props.hideOnClick&&(_.clearDelayTimeouts(),_.hide(),d=!0,setTimeout((function(){d=!1})),_.state.isMounted||D())}}function N(){p=!0}function B(){p=!1}function F(){var t=L();t.addEventListener("mousedown",I,!0),t.addEventListener("touchend",I,je),t.addEventListener("touchstart",B,je),t.addEventListener("touchmove",N,je)}function D(){var t=L();t.removeEventListener("mousedown",I,!0),t.removeEventListener("touchend",I,je),t.removeEventListener("touchstart",B,je),t.removeEventListener("touchmove",N,je)}function j(t,e){U(t,(function(){!_.state.isVisible&&x.parentNode&&x.parentNode.contains(x)&&e()}))}function q(t,e){U(t,e)}function U(t,e){var i=H().box;function n(t){t.target===i&&(di(i,"remove",n),e())}if(0===t)return e();di(i,"remove",a),di(i,"add",n),a=n}function W(e,i,n){void 0===n&&(n=!1),Ke(_.props.triggerTarget||t).forEach((function(t){t.addEventListener(e,i,n),g.push({node:t,eventType:e,handler:i,options:n})}))}function G(){M()&&(W("touchstart",K,{passive:!0}),W("touchend",Z,{passive:!0})),Xe(_.props.trigger).forEach((function(t){if("manual"!==t)switch(W(t,K),t){case"mouseenter":W("mouseleave",Z);break;case"focus":W(yi?"focusout":"blur",Y);break;case"focusin":W("focusout",Y)}}))}function X(){g.forEach((function(t){var e=t.node,i=t.eventType,n=t.handler,r=t.options;e.removeEventListener(i,n,r)})),g=[]}function K(t){var e,i=!1;if(_.state.isEnabled&&!J(t)&&!d){var n="focus"===(null==(e=o)?void 0:e.type);o=t,l=t.currentTarget,R(),!_.state.isVisible&&ri(t)&&Oi.forEach((function(e){return e(t)})),"click"===t.type&&(_.props.trigger.indexOf("mouseenter")<0||h)&&!1!==_.props.hideOnClick&&_.state.isVisible?i=!0:rt(t),"click"===t.type&&(h=!i),i&&!n&&ot(t)}}function Q(t){var e=t.target,i=C().contains(e)||x.contains(e);"mousemove"===t.type&&i||hi(nt().concat(x).map((function(t){var e,i=null==(e=t._tippy.popperInstance)?void 0:e.state;return i?{popperRect:t.getBoundingClientRect(),popperState:i,props:c}:null})).filter(Boolean),t)&&(P(),ot(t))}function Z(t){J(t)||_.props.trigger.indexOf("click")>=0&&h||(_.props.interactive?_.hideWithInteractivity(t):ot(t))}function Y(t){_.props.trigger.indexOf("focusin")<0&&t.target!==C()||_.props.interactive&&t.relatedTarget&&x.contains(t.relatedTarget)||ot(t)}function J(t){return!!pi.isTouch&&M()!==t.type.indexOf("touch")>=0}function tt(){et();var e=_.props,i=e.popperOptions,n=e.placement,r=e.offset,o=e.getReferenceClientRect,a=e.moveTransition,l=E()?Ti(x).arrow:null,c=o?{getBoundingClientRect:o,contextElement:o.contextElement||C()}:t,h=[{name:"offset",options:{offset:r}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(t){var e=t.state;if(E()){var i=H().box;["placement","reference-hidden","escaped"].forEach((function(t){"placement"===t?i.setAttribute("data-placement",e.placement):e.attributes.popper["data-popper-"+t]?i.setAttribute("data-"+t,""):i.removeAttribute("data-"+t)})),e.attributes.popper={}}}}];E()&&l&&h.push({name:"arrow",options:{element:l,padding:3}}),h.push.apply(h,(null==i?void 0:i.modifiers)||[]),_.popperInstance=Pe(c,x,Object.assign({},i,{placement:n,onFirstUpdate:s,modifiers:h}))}function et(){_.popperInstance&&(_.popperInstance.destroy(),_.popperInstance=null)}function it(){var t,e=_.props.appendTo,i=C();(t=_.props.interactive&&e===xi.appendTo||"parent"===e?i.parentNode:We(e,[i])).contains(x)||t.appendChild(x),tt()}function nt(){return Je(x.querySelectorAll("[data-tippy-root]"))}function rt(t){_.clearDelayTimeouts(),t&&$("onTrigger",[_,t]),F();var e=T(!0),n=S(),r=n[0],o=n[1];pi.isTouch&&"hold"===r&&o&&(e=o),e?i=setTimeout((function(){_.show()}),e):_.show()}function ot(t){if(_.clearDelayTimeouts(),$("onUntrigger",[_,t]),_.state.isVisible){if(!(_.props.trigger.indexOf("mouseenter")>=0&&_.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(t.type)>=0&&h)){var e=T(!1);e?n=setTimeout((function(){_.state.isVisible&&_.hide()}),e):r=requestAnimationFrame((function(){_.hide()}))}}else D()}function at(){_.state.isEnabled=!0}function st(){_.hide(),_.state.isEnabled=!1}function lt(){clearTimeout(i),clearTimeout(n),cancelAnimationFrame(r)}function ct(e){if(!_.state.isDestroyed){$("onBeforeUpdate",[_,e]),X();var i=_.props,n=Mi(t,Object.assign({},_.props,{},e,{ignoreAttributes:!0}));_.props=n,G(),i.interactiveDebounce!==n.interactiveDebounce&&(P(),m=Ge(Q,n.interactiveDebounce)),i.triggerTarget&&!n.triggerTarget?Ke(i.triggerTarget).forEach((function(t){t.removeAttribute("aria-expanded")})):n.triggerTarget&&t.removeAttribute("aria-expanded"),R(),V(),k&&k(i,n),_.popperInstance&&(tt(),nt().forEach((function(t){requestAnimationFrame(t._tippy.popperInstance.forceUpdate)}))),$("onAfterUpdate",[_,e])}}function ht(t){_.setProps({content:t})}function dt(){var t=_.state.isVisible,e=_.state.isDestroyed,i=!_.state.isEnabled,n=pi.isTouch&&!_.props.touch,r=qe(_.props.duration,0,xi.duration);if(!(t||e||i||n||C().hasAttribute("disabled")||($("onShow",[_],!1),!1===_.props.onShow(_)))){if(_.state.isVisible=!0,E()&&(x.style.visibility="visible"),V(),F(),_.state.isMounted||(x.style.transition="none"),E()){var o=H();si([o.box,o.content],0)}s=function(){var t;if(_.state.isVisible&&!u){if(u=!0,x.offsetHeight,x.style.transition=_.props.moveTransition,E()&&_.props.animation){var e=H(),i=e.box,n=e.content;si([i,n],r),li([i,n],"visible")}O(),R(),Qe(Ri,_),null==(t=_.popperInstance)||t.forceUpdate(),_.state.isMounted=!0,$("onMount",[_]),_.props.animation&&E()&&q(r,(function(){_.state.isShown=!0,$("onShown",[_])}))}},it()}}function pt(){var t=!_.state.isVisible,e=_.state.isDestroyed,i=!_.state.isEnabled,n=qe(_.props.duration,1,xi.duration);if(!(t||e||i)&&($("onHide",[_],!1),!1!==_.props.onHide(_))){if(_.state.isVisible=!1,_.state.isShown=!1,u=!1,h=!1,E()&&(x.style.visibility="hidden"),P(),D(),V(),E()){var r=H(),o=r.box,a=r.content;_.props.animation&&(si([o,a],n),li([o,a],"hidden"))}O(),R(),_.props.animation?E()&&j(n,_.unmount):_.unmount()}}function ut(t){L().addEventListener("mousemove",m),Qe(Oi,m),m(t)}function gt(){_.state.isVisible&&_.hide(),_.state.isMounted&&(et(),nt().forEach((function(t){t._tippy.unmount()})),x.parentNode&&x.parentNode.removeChild(x),Ri=Ri.filter((function(t){return t!==_})),_.state.isMounted=!1,$("onHidden",[_]))}function mt(){_.state.isDestroyed||(_.clearDelayTimeouts(),_.unmount(),X(),delete t._tippy,_.state.isDestroyed=!0,$("onDestroy",[_]))}}function Ii(t,e){void 0===e&&(e={});var i=xi.plugins.concat(e.plugins||[]);vi();var n=Object.assign({},e,{plugins:i}),r=ai(t).reduce((function(t,e){var i=e&&Pi(e,n);return i&&t.push(i),t}),[]);return ii(t)?r[0]:r}Ii.defaultProps=xi,Ii.setDefaultProps=zi,Ii.currentInput=pi;Object.assign({},xt,{effect:function(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow)}});function Ni(t){return t.replace(/(?:^\w|[A-Z]|\b\w)/g,(t,e)=>0==+t?"":0===e?t.toLowerCase():t.toUpperCase()).replace("-","")}Ii.setDefaultProps({render:Vi});const Bi='\n .tippy-box[data-animation=fade][data-state=hidden] {\n opacity: 0\n }\n\n .tippy-iOS {\n cursor: pointer!important;\n -webkit-tap-highlight-color: transparent\n }\n\n [data-tippy-root] {\n max-width: calc(100vw - 10px)\n }\n\n .tippy-box {\n position: relative;\n background-color: #333;\n color: #fff;\n border-radius: 4px;\n font-size: var(--pb-popover-font-size, var(--pb-base-font-size, 14px));\n line-height: var(--pb-popover-line-height, var(--pb-base-line-height, 1.4));\n text-align: left;\n font-style: normal;\n font-weight: normal;\n outline: 0;\n transition-property: transform, visibility, opacity\n }\n\n .tippy-box[data-placement^=top]>.tippy-arrow {\n bottom: 0\n }\n\n .tippy-box[data-placement^=top]>.tippy-arrow:before {\n bottom: -7px;\n left: 0;\n border-width: 8px 8px 0;\n border-top-color: initial;\n transform-origin: center top\n }\n\n .tippy-box[data-placement^=bottom]>.tippy-arrow {\n top: 0\n }\n\n .tippy-box[data-placement^=bottom]>.tippy-arrow:before {\n top: -7px;\n left: 0;\n border-width: 0 8px 8px;\n border-bottom-color: initial;\n transform-origin: center bottom\n }\n\n .tippy-box[data-placement^=left]>.tippy-arrow {\n right: 0\n }\n\n .tippy-box[data-placement^=left]>.tippy-arrow:before {\n border-width: 8px 0 8px 8px;\n border-left-color: initial;\n right: -7px;\n transform-origin: center left\n }\n\n .tippy-box[data-placement^=right]>.tippy-arrow {\n left: 0\n }\n\n .tippy-box[data-placement^=right]>.tippy-arrow:before {\n left: -7px;\n border-width: 8px 8px 8px 0;\n border-right-color: initial;\n transform-origin: center right\n }\n\n .tippy-box[data-inertia][data-state=visible] {\n transition-timing-function: cubic-bezier(.54, 1.5, .38, 1.11)\n }\n\n .tippy-arrow {\n width: 16px;\n height: 16px;\n color: #333\n }\n\n .tippy-arrow:before {\n content: "";\n position: absolute;\n border-color: transparent;\n border-style: solid\n }\n\n .tippy-content {\n position: relative;\n padding: 5px 9px;\n z-index: 1;\n overflow: auto;\n max-height: var(--pb-popover-max-height, calc(100vh - 60px));\n min-height: var(--pb-popover-min-height, auto);\n max-width: var(--pb-popover-max-width, auto);\n min-width: var(--pb-popover-min-width, auto);\n color: var(--pb-popover-color);\n }\n',Fi='\n .tippy-box[data-theme~=light-border] {\n background-color: #fff;\n background-clip: padding-box;\n border: 1px solid rgba(0, 8, 16, .15);\n color: #333;\n box-shadow: 0 4px 14px -2px rgba(0, 8, 16, .08)\n }\n\n .tippy-box[data-theme~=light-border]>.tippy-backdrop {\n background-color: #fff\n }\n\n .tippy-box[data-theme~=light-border]>.tippy-arrow:after, .tippy-box[data-theme~=light-border]>.tippy-svg-arrow:after {\n content: "";\n position: absolute;\n z-index: -1\n }\n\n .tippy-box[data-theme~=light-border]>.tippy-arrow:after {\n border-color: transparent;\n border-style: solid\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-arrow:before {\n border-top-color: #fff\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-arrow:after {\n border-top-color: rgba(0, 8, 16, .2);\n border-width: 7px 7px 0;\n top: 17px;\n left: 1px\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-svg-arrow>svg {\n top: 16px\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-svg-arrow:after {\n top: 17px\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-arrow:before {\n border-bottom-color: #fff;\n bottom: 16px\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-arrow:after {\n border-bottom-color: rgba(0, 8, 16, .2);\n border-width: 0 7px 7px;\n bottom: 17px;\n left: 1px\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-svg-arrow>svg {\n bottom: 16px\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-svg-arrow:after {\n bottom: 17px\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-arrow:before {\n border-left-color: #fff\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-arrow:after {\n border-left-color: rgba(0, 8, 16, .2);\n border-width: 7px 0 7px 7px;\n left: 17px;\n top: 1px\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-svg-arrow>svg {\n left: 11px\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-svg-arrow:after {\n left: 12px\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-arrow:before {\n border-right-color: #fff;\n right: 16px\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-arrow:after {\n border-width: 7px 7px 7px 0;\n right: 17px;\n top: 1px;\n border-right-color: rgba(0, 8, 16, .2)\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-svg-arrow>svg {\n right: 11px\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-svg-arrow:after {\n right: 12px\n }\n\n .tippy-box[data-theme~=light-border]>.tippy-svg-arrow {\n fill: #fff\n }\n\n .tippy-box[data-theme~=light-border]>.tippy-svg-arrow:after {\n background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMCA2czEuNzk2LS4wMTMgNC42Ny0zLjYxNUM1Ljg1MS45IDYuOTMuMDA2IDggMGMxLjA3LS4wMDYgMi4xNDguODg3IDMuMzQzIDIuMzg1QzE0LjIzMyA2LjAwNSAxNiA2IDE2IDZIMHoiIGZpbGw9InJnYmEoMCwgOCwgMTYsIDAuMikiLz48L3N2Zz4=);\n background-size: 16px 6px;\n width: 16px;\n height: 6px\n }\n',Di="\n .tippy-box[data-theme~=light] {\n color: #26323d;\n box-shadow: 0 0 20px 4px rgba(154, 161, 177, .15), 0 4px 80px -8px rgba(36, 40, 47, .25), 0 4px 4px -2px rgba(91, 94, 105, .15);\n background-color: #fff\n }\n\n .tippy-box[data-theme~=light][data-placement^=top]>.tippy-arrow:before {\n border-top-color: #fff\n }\n\n .tippy-box[data-theme~=light][data-placement^=bottom]>.tippy-arrow:before {\n border-bottom-color: #fff\n }\n\n .tippy-box[data-theme~=light][data-placement^=left]>.tippy-arrow:before {\n border-left-color: #fff\n }\n\n .tippy-box[data-theme~=light][data-placement^=right]>.tippy-arrow:before {\n border-right-color: #fff\n }\n\n .tippy-box[data-theme~=light]>.tippy-backdrop {\n background-color: #fff\n }\n\n .tippy-box[data-theme~=light]>.tippy-svg-arrow {\n fill: #fff\n }",ji="\n .tippy-box[data-theme~=material] {\n background-color: #505355;\n font-weight: 600\n }\n\n .tippy-box[data-theme~=material][data-placement^=top]>.tippy-arrow:before {\n border-top-color: #505355\n }\n\n .tippy-box[data-theme~=material][data-placement^=bottom]>.tippy-arrow:before {\n border-bottom-color: #505355\n }\n\n .tippy-box[data-theme~=material][data-placement^=left]>.tippy-arrow:before {\n border-left-color: #505355\n }\n\n .tippy-box[data-theme~=material][data-placement^=right]>.tippy-arrow:before {\n border-right-color: #505355\n }\n\n .tippy-box[data-theme~=material]>.tippy-backdrop {\n background-color: #505355\n }\n\n .tippy-box[data-theme~=material]>.tippy-svg-arrow {\n fill: #505355\n }\n",qi="\n .tippy-box[data-theme~=translucent] {\n background-color: rgba(0, 0, 0, .7)\n }\n\n .tippy-box[data-theme~=translucent]>.tippy-arrow {\n width: 14px;\n height: 14px\n }\n\n .tippy-box[data-theme~=translucent][data-placement^=top]>.tippy-arrow:before {\n border-width: 7px 7px 0;\n border-top-color: rgba(0, 0, 0, .7)\n }\n\n .tippy-box[data-theme~=translucent][data-placement^=bottom]>.tippy-arrow:before {\n border-width: 0 7px 7px;\n border-bottom-color: rgba(0, 0, 0, .7)\n }\n\n .tippy-box[data-theme~=translucent][data-placement^=left]>.tippy-arrow:before {\n border-width: 7px 0 7px 7px;\n border-left-color: rgba(0, 0, 0, .7)\n }\n\n .tippy-box[data-theme~=translucent][data-placement^=right]>.tippy-arrow:before {\n border-width: 7px 7px 7px 0;\n border-right-color: rgba(0, 0, 0, .7)\n }\n\n .tippy-box[data-theme~=translucent]>.tippy-backdrop {\n background-color: rgba(0, 0, 0, .7)\n }\n\n .tippy-box[data-theme~=translucent]>.tippy-svg-arrow {\n fill: rgba(0, 0, 0, .7)\n }\n";var Ui=Object.freeze({__proto__:null,camelize:Ni,base:Bi,lightBorder:Fi,light:Di,material:ji,translucent:qi});function Wi(t,e,i){if(!t.querySelector("#pb-popover-"+e)){const n=t.nodeType===Node.DOCUMENT_NODE?document.head:t;console.log("Loading tippy styles for theme %s into %o",e,n);const r=document.createElement("style");r.type="text/css",r.id="pb-popover-"+e,r.innerHTML=i,n.appendChild(r)}}function Gi(t,e){if(Wi(t,"base",Bi),e&&"none"!==e){const i=Ni(e),n=Ui[i];n&&Wi(t,i,n)}}class Xi extends(P(V)){static get properties(){return Object.assign(Object.assign({},super.properties),{},{for:{type:String},theme:{type:String},placement:{type:String},fallbackPlacement:{type:String,attribute:"fallback-placement"},persistent:{type:Boolean},trigger:{type:String},popupClass:{type:String,attribute:"popup-class"},remote:{type:String}})}constructor(){super(),this.persistent=!1,this.trigger=null,this.for=null,this.theme=null,this.placement=null,this.fallbackPlacement=null,this.popupClass=null,this._tippy=null,this._content=null}render(){return this.for?$`<div class="hidden"><slot></slot></div>`:$`<span id="link" part="trigger" class="${this.persistent?"persistent":""}"><slot name="default"><slot></slot></slot></span><span class="hidden"><slot name="alternate"></slot></span>`}disconnectedCallback(){super.disconnectedCallback(),this._tippy&&this._tippy.destroy(),this._observer&&this._observer.disconnect()}_checkCSSProperties(){this.theme||"none"===this.theme||(this.theme=this._getCSSProperty("--pb-popover-theme","none")),this.placement||(this.placement=this._getCSSProperty("--pb-popover-placement","auto")),this.fallbackPlacement||(this.fallbackPlacement=this._getCSSProperty("--pb-popover-fallback-placement",null)),this.persistent||(this.persistent=this._getCSSProperty("--pb-popover-persistent",!1)),this.trigger||(this.trigger=this._getCSSProperty("--pb-popover-trigger",null))}_getCSSProperty(t,e){const i=getComputedStyle(this).getPropertyValue(t);if(i)try{return JSON.parse(i)}catch(t){return e}return e}_injectStyles(){this._checkCSSProperties(),Gi(this.getRootNode(),this.theme)}_getContent(){if(this._content)return this._content;const t=this._getSlot();if(t){const e=document.createElement("div");return t.assignedNodes().forEach(t=>{e.appendChild(t.content?t.content.cloneNode(!0):t.cloneNode(!0))}),this._content=e,e}return null}_getSlot(){return this.for?this.shadowRoot.querySelector("slot"):this.shadowRoot.querySelector("[name=alternate]")}_registerMutationObserver(){const t=this._getSlot();this._observer=new MutationObserver(()=>{this.alternate=this._getContent(),console.log("alternate changed"),this.emitTo("pb-popover-changed",this.alternate)}),this._observer.observe(this,{subtree:!0,childList:!0,characterData:!0}),t&&t.assignedNodes().forEach(t=>{this._observer.observe(t.content?t.content:t,{subtree:!0,childList:!0,characterData:!0})})}get alternate(){return this._getContent()}set alternate(t){this._content=t,this._tippy&&this._tippy.setContent(this._content)}command(t,e){"disable"===t&&(this.disabled=e,this._tippy&&(e?this._tippy.disable():this._tippy.enable()))}firstUpdated(){super.firstUpdated(),this._injectStyles(),this._registerMutationObserver(),this.trigger||(this.trigger=this.persistent?"click":"mouseenter");const t=this.getRootNode();let e;if(this.for?(e=t.getElementById(this.for),e||console.error("<pb-popover> target element %s not found",this.for)):e=this.shadowRoot.getElementById("link"),e){const i={allowHTML:!0,appendTo:t.nodeType===Node.DOCUMENT_NODE?document.body:t,placement:this.placement,interactive:!0,ignoreAttributes:!0,boundary:"viewport",maxWidth:"none",touch:"hold",hideOnClick:!1,trigger:this.trigger};if(this.persistent&&(i.onClickOutside=(t,e)=>{t.hideWithInteractivity(e)}),this.theme&&"none"!==this.theme&&(i.theme=this.theme),this.fallbackPlacement){const t=this.fallbackPlacement.split(" ");i.popperOptions={modifiers:[{name:"flip",options:{fallbackPlacements:t}}]}}this.popupClass&&(i.onCreate=t=>{t.popper.classList.add(this.popupClass)}),i.onShow=t=>{this.remote?this._loadRemoteContent():t.setContent(this._getContent()),this.emitTo("pb-popover-show",{source:this})},this._tippy=Ii(e,i)}}_loadRemoteContent(){const t=this.toAbsoluteURL(this.remote);fetch(t,{method:"GET",mode:"cors",credentials:"same-origin"}).then(t=>t.text()).then(t=>{this.alternate=t}).catch(t=>{console.error("<pb-popover> Error retrieving remote content: %o",t)})}static get styles(){return[R`
|
|
510
|
+
`}}customElements.define("pb-demo-snippet",Q);class Z{static subscribe(t,e,i,n=!1){e&&!Array.isArray(e)&&(e=[e]);const r=document.addEventListener(t,t=>{(e||t.detail&&t.detail.key)&&!(e&&t.detail&&t.detail.key&&e.indexOf(t.detail.key)>-1)||i&&i(t,r)},{once:n})}static subscribeOnce(t,e=null){return e&&!Array.isArray(e)&&(e=[e]),new Promise(i=>{document.addEventListener(t,t=>{(e||t.detail&&t.detail.key)&&!(e&&t.detail&&t.detail.key&&e.indexOf(t.detail.key)>-1)||i(t)},{once:!0})})}static emit(t,e=null,i=null){const n=i||{};e&&(n.key=e);const r=new CustomEvent(t,{detail:n});document.dispatchEvent(r)}}window.pbEvents||(window.pbEvents=Z);const Y="1.25.0";class J extends V{static get properties(){return Object.assign({version:{type:String,reflect:!0}},super.properties)}constructor(){super(),this.version=Y}connectedCallback(){if(super.connectedCallback(),!this.version){const t=O("../package.json");fetch(t).then(t=>t.json()).then(t=>{this.version=t.version})}}render(){return $`<span>${this.version?this.version:"unknown"}</span>`}createRenderRoot(){return this}}customElements.define("pb-version",J);var tt="top",et="bottom",it="right",nt="left",rt="auto",ot=[tt,et,it,nt],at="start",st="end",lt="clippingParents",ct="viewport",ht="popper",dt="reference",pt=ot.reduce((function(t,e){return t.concat([e+"-"+at,e+"-"+st])}),[]),ut=[].concat(ot,[rt]).reduce((function(t,e){return t.concat([e,e+"-"+at,e+"-"+st])}),[]),gt=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function mt(t){return t?(t.nodeName||"").toLowerCase():null}function ft(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function vt(t){return t instanceof ft(t).Element||t instanceof Element}function bt(t){return t instanceof ft(t).HTMLElement||t instanceof HTMLElement}function yt(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ft(t).ShadowRoot||t instanceof ShadowRoot)}function _t(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var i=e.styles[t]||{},n=e.attributes[t]||{},r=e.elements[t];bt(r)&&mt(r)&&(Object.assign(r.style,i),Object.keys(n).forEach((function(t){var e=n[t];!1===e?r.removeAttribute(t):r.setAttribute(t,!0===e?"":e)})))}))}function wt(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow),function(){Object.keys(e.elements).forEach((function(t){var n=e.elements[t],r=e.attributes[t]||{},o=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:i[t]).reduce((function(t,e){return t[e]="",t}),{});bt(n)&&mt(n)&&(Object.assign(n.style,o),Object.keys(r).forEach((function(t){n.removeAttribute(t)})))}))}}var xt={name:"applyStyles",enabled:!0,phase:"write",fn:_t,effect:wt,requires:["computeStyles"]};function kt(t){return t.split("-")[0]}function zt(t){var e=t.getBoundingClientRect();return{width:e.width,height:e.height,top:e.top,right:e.right,bottom:e.bottom,left:e.left,x:e.left,y:e.top}}function At(t){var e=zt(t),i=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-i)<=1&&(i=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:i,height:n}}function St(t,e){var i=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(i&&yt(i)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Mt(t){return ft(t).getComputedStyle(t)}function Et(t){return["table","td","th"].indexOf(mt(t))>=0}function Ct(t){return((vt(t)?t.ownerDocument:t.document)||window.document).documentElement}function Lt(t){return"html"===mt(t)?t:t.assignedSlot||t.parentNode||(yt(t)?t.host:null)||Ct(t)}function Ht(t){return bt(t)&&"fixed"!==Mt(t).position?t.offsetParent:null}function Tt(t){var e=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&bt(t)&&"fixed"===Mt(t).position)return null;for(var i=Lt(t);bt(i)&&["html","body"].indexOf(mt(i))<0;){var n=Mt(i);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||e&&"filter"===n.willChange||e&&n.filter&&"none"!==n.filter)return i;i=i.parentNode}return null}function Vt(t){for(var e=ft(t),i=Ht(t);i&&Et(i)&&"static"===Mt(i).position;)i=Ht(i);return i&&("html"===mt(i)||"body"===mt(i)&&"static"===Mt(i).position)?e:i||Tt(t)||e}function $t(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}var Ot=Math.max,Rt=Math.min,Pt=Math.round;function It(t,e,i){return Ot(t,Rt(e,i))}function Nt(){return{top:0,right:0,bottom:0,left:0}}function Bt(t){return Object.assign({},Nt(),t)}function Ft(t,e){return e.reduce((function(e,i){return e[i]=t,e}),{})}var Dt=function(t,e){return Bt("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:Ft(t,ot))};function jt(t){var e,i=t.state,n=t.name,r=t.options,o=i.elements.arrow,a=i.modifiersData.popperOffsets,s=kt(i.placement),l=$t(s),c=[nt,it].indexOf(s)>=0?"height":"width";if(o&&a){var h=Dt(r.padding,i),d=At(o),p="y"===l?tt:nt,u="y"===l?et:it,g=i.rects.reference[c]+i.rects.reference[l]-a[l]-i.rects.popper[c],m=a[l]-i.rects.reference[l],f=Vt(o),v=f?"y"===l?f.clientHeight||0:f.clientWidth||0:0,b=g/2-m/2,y=h[p],_=v-d[c]-h[u],w=v/2-d[c]/2+b,x=It(y,w,_),k=l;i.modifiersData[n]=((e={})[k]=x,e.centerOffset=x-w,e)}}function qt(t){var e=t.state,i=t.options.element,n=void 0===i?"[data-popper-arrow]":i;null!=n&&("string"!=typeof n||(n=e.elements.popper.querySelector(n)))&&St(e.elements.popper,n)&&(e.elements.arrow=n)}var Ut={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Wt(t){var e=t.x,i=t.y,n=window.devicePixelRatio||1;return{x:Pt(Pt(e*n)/n)||0,y:Pt(Pt(i*n)/n)||0}}function Gt(t){var e,i=t.popper,n=t.popperRect,r=t.placement,o=t.offsets,a=t.position,s=t.gpuAcceleration,l=t.adaptive,c=t.roundOffsets,h=!0===c?Wt(o):"function"==typeof c?c(o):o,d=h.x,p=void 0===d?0:d,u=h.y,g=void 0===u?0:u,m=o.hasOwnProperty("x"),f=o.hasOwnProperty("y"),v=nt,b=tt,y=window;if(l){var _=Vt(i),w="clientHeight",x="clientWidth";_===ft(i)&&"static"!==Mt(_=Ct(i)).position&&(w="scrollHeight",x="scrollWidth"),_=_,r===tt&&(b=et,g-=_[w]-n.height,g*=s?1:-1),r===nt&&(v=it,p-=_[x]-n.width,p*=s?1:-1)}var k,z=Object.assign({position:a},l&&Ut);return s?Object.assign({},z,((k={})[b]=f?"0":"",k[v]=m?"0":"",k.transform=(y.devicePixelRatio||1)<2?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",k)):Object.assign({},z,((e={})[b]=f?g+"px":"",e[v]=m?p+"px":"",e.transform="",e))}function Xt(t){var e=t.state,i=t.options,n=i.gpuAcceleration,r=void 0===n||n,o=i.adaptive,a=void 0===o||o,s=i.roundOffsets,l=void 0===s||s,c={placement:kt(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,Gt(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:l})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,Gt(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var Kt={passive:!0};function Qt(t){var e=t.state,i=t.instance,n=t.options,r=n.scroll,o=void 0===r||r,a=n.resize,s=void 0===a||a,l=ft(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&c.forEach((function(t){t.addEventListener("scroll",i.update,Kt)})),s&&l.addEventListener("resize",i.update,Kt),function(){o&&c.forEach((function(t){t.removeEventListener("scroll",i.update,Kt)})),s&&l.removeEventListener("resize",i.update,Kt)}}var Zt={left:"right",right:"left",bottom:"top",top:"bottom"};function Yt(t){return t.replace(/left|right|bottom|top/g,(function(t){return Zt[t]}))}var Jt={start:"end",end:"start"};function te(t){return t.replace(/start|end/g,(function(t){return Jt[t]}))}function ee(t){var e=ft(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function ie(t){return zt(Ct(t)).left+ee(t).scrollLeft}function ne(t){var e=ft(t),i=Ct(t),n=e.visualViewport,r=i.clientWidth,o=i.clientHeight,a=0,s=0;return n&&(r=n.width,o=n.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=n.offsetLeft,s=n.offsetTop)),{width:r,height:o,x:a+ie(t),y:s}}function re(t){var e,i=Ct(t),n=ee(t),r=null==(e=t.ownerDocument)?void 0:e.body,o=Ot(i.scrollWidth,i.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=Ot(i.scrollHeight,i.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),s=-n.scrollLeft+ie(t),l=-n.scrollTop;return"rtl"===Mt(r||i).direction&&(s+=Ot(i.clientWidth,r?r.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}function oe(t){var e=Mt(t),i=e.overflow,n=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(i+r+n)}function ae(t){return["html","body","#document"].indexOf(mt(t))>=0?t.ownerDocument.body:bt(t)&&oe(t)?t:ae(Lt(t))}function se(t,e){var i;void 0===e&&(e=[]);var n=ae(t),r=n===(null==(i=t.ownerDocument)?void 0:i.body),o=ft(n),a=r?[o].concat(o.visualViewport||[],oe(n)?n:[]):n,s=e.concat(a);return r?s:s.concat(se(Lt(a)))}function le(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function ce(t){var e=zt(t);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}function he(t,e){return e===ct?le(ne(t)):bt(e)?ce(e):le(re(Ct(t)))}function de(t){var e=se(Lt(t)),i=["absolute","fixed"].indexOf(Mt(t).position)>=0&&bt(t)?Vt(t):t;return vt(i)?e.filter((function(t){return vt(t)&&St(t,i)&&"body"!==mt(t)})):[]}function pe(t,e,i){var n="clippingParents"===e?de(t):[].concat(e),r=[].concat(n,[i]),o=r[0],a=r.reduce((function(e,i){var n=he(t,i);return e.top=Ot(n.top,e.top),e.right=Rt(n.right,e.right),e.bottom=Rt(n.bottom,e.bottom),e.left=Ot(n.left,e.left),e}),he(t,o));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function ue(t){return t.split("-")[1]}function ge(t){var e,i=t.reference,n=t.element,r=t.placement,o=r?kt(r):null,a=r?ue(r):null,s=i.x+i.width/2-n.width/2,l=i.y+i.height/2-n.height/2;switch(o){case tt:e={x:s,y:i.y-n.height};break;case et:e={x:s,y:i.y+i.height};break;case it:e={x:i.x+i.width,y:l};break;case nt:e={x:i.x-n.width,y:l};break;default:e={x:i.x,y:i.y}}var c=o?$t(o):null;if(null!=c){var h="y"===c?"height":"width";switch(a){case at:e[c]=e[c]-(i[h]/2-n[h]/2);break;case st:e[c]=e[c]+(i[h]/2-n[h]/2)}}return e}function me(t,e){void 0===e&&(e={});var i=e,n=i.placement,r=void 0===n?t.placement:n,o=i.boundary,a=void 0===o?lt:o,s=i.rootBoundary,l=void 0===s?ct:s,c=i.elementContext,h=void 0===c?ht:c,d=i.altBoundary,p=void 0!==d&&d,u=i.padding,g=void 0===u?0:u,m=Bt("number"!=typeof g?g:Ft(g,ot)),f=h===ht?dt:ht,v=t.elements.reference,b=t.rects.popper,y=t.elements[p?f:h],_=pe(vt(y)?y:y.contextElement||Ct(t.elements.popper),a,l),w=zt(v),x=ge({reference:w,element:b,strategy:"absolute",placement:r}),k=le(Object.assign({},b,x)),z=h===ht?k:w,A={top:_.top-z.top+m.top,bottom:z.bottom-_.bottom+m.bottom,left:_.left-z.left+m.left,right:z.right-_.right+m.right},S=t.modifiersData.offset;if(h===ht&&S){var M=S[r];Object.keys(A).forEach((function(t){var e=[it,et].indexOf(t)>=0?1:-1,i=[tt,et].indexOf(t)>=0?"y":"x";A[t]+=M[i]*e}))}return A}function fe(t,e){void 0===e&&(e={});var i=e,n=i.placement,r=i.boundary,o=i.rootBoundary,a=i.padding,s=i.flipVariations,l=i.allowedAutoPlacements,c=void 0===l?ut:l,h=ue(n),d=h?s?pt:pt.filter((function(t){return ue(t)===h})):ot,p=d.filter((function(t){return c.indexOf(t)>=0}));0===p.length&&(p=d);var u=p.reduce((function(e,i){return e[i]=me(t,{placement:i,boundary:r,rootBoundary:o,padding:a})[kt(i)],e}),{});return Object.keys(u).sort((function(t,e){return u[t]-u[e]}))}function ve(t){if(kt(t)===rt)return[];var e=Yt(t);return[te(t),e,te(e)]}function be(t){var e=t.state,i=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var r=i.mainAxis,o=void 0===r||r,a=i.altAxis,s=void 0===a||a,l=i.fallbackPlacements,c=i.padding,h=i.boundary,d=i.rootBoundary,p=i.altBoundary,u=i.flipVariations,g=void 0===u||u,m=i.allowedAutoPlacements,f=e.options.placement,v=kt(f),b=l||(v===f||!g?[Yt(f)]:ve(f)),y=[f].concat(b).reduce((function(t,i){return t.concat(kt(i)===rt?fe(e,{placement:i,boundary:h,rootBoundary:d,padding:c,flipVariations:g,allowedAutoPlacements:m}):i)}),[]),_=e.rects.reference,w=e.rects.popper,x=new Map,k=!0,z=y[0],A=0;A<y.length;A++){var S=y[A],M=kt(S),E=ue(S)===at,C=[tt,et].indexOf(M)>=0,L=C?"width":"height",H=me(e,{placement:S,boundary:h,rootBoundary:d,altBoundary:p,padding:c}),T=C?E?it:nt:E?et:tt;_[L]>w[L]&&(T=Yt(T));var V=Yt(T),$=[];if(o&&$.push(H[M]<=0),s&&$.push(H[T]<=0,H[V]<=0),$.every((function(t){return t}))){z=S,k=!1;break}x.set(S,$)}if(k)for(var O=function(t){var e=y.find((function(e){var i=x.get(e);if(i)return i.slice(0,t).every((function(t){return t}))}));if(e)return z=e,"break"},R=g?3:1;R>0;R--){if("break"===O(R))break}e.placement!==z&&(e.modifiersData[n]._skip=!0,e.placement=z,e.reset=!0)}}function ye(t,e,i){return void 0===i&&(i={x:0,y:0}),{top:t.top-e.height-i.y,right:t.right-e.width+i.x,bottom:t.bottom-e.height+i.y,left:t.left-e.width-i.x}}function _e(t){return[tt,it,et,nt].some((function(e){return t[e]>=0}))}function we(t){var e=t.state,i=t.name,n=e.rects.reference,r=e.rects.popper,o=e.modifiersData.preventOverflow,a=me(e,{elementContext:"reference"}),s=me(e,{altBoundary:!0}),l=ye(a,n),c=ye(s,r,o),h=_e(l),d=_e(c);e.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:h,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":d})}function xe(t,e,i){var n=kt(t),r=[nt,tt].indexOf(n)>=0?-1:1,o="function"==typeof i?i(Object.assign({},e,{placement:t})):i,a=o[0],s=o[1];return a=a||0,s=(s||0)*r,[nt,it].indexOf(n)>=0?{x:s,y:a}:{x:a,y:s}}function ke(t){var e=t.state,i=t.options,n=t.name,r=i.offset,o=void 0===r?[0,0]:r,a=ut.reduce((function(t,i){return t[i]=xe(i,e.rects,o),t}),{}),s=a[e.placement],l=s.x,c=s.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[n]=a}function ze(t){var e=t.state,i=t.name;e.modifiersData[i]=ge({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}function Ae(t){return"x"===t?"y":"x"}function Se(t){var e=t.state,i=t.options,n=t.name,r=i.mainAxis,o=void 0===r||r,a=i.altAxis,s=void 0!==a&&a,l=i.boundary,c=i.rootBoundary,h=i.altBoundary,d=i.padding,p=i.tether,u=void 0===p||p,g=i.tetherOffset,m=void 0===g?0:g,f=me(e,{boundary:l,rootBoundary:c,padding:d,altBoundary:h}),v=kt(e.placement),b=ue(e.placement),y=!b,_=$t(v),w=Ae(_),x=e.modifiersData.popperOffsets,k=e.rects.reference,z=e.rects.popper,A="function"==typeof m?m(Object.assign({},e.rects,{placement:e.placement})):m,S={x:0,y:0};if(x){if(o||s){var M="y"===_?tt:nt,E="y"===_?et:it,C="y"===_?"height":"width",L=x[_],H=x[_]+f[M],T=x[_]-f[E],V=u?-z[C]/2:0,$=b===at?k[C]:z[C],O=b===at?-z[C]:-k[C],R=e.elements.arrow,P=u&&R?At(R):{width:0,height:0},I=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Nt(),N=I[M],B=I[E],F=It(0,k[C],P[C]),D=y?k[C]/2-V-F-N-A:$-F-N-A,j=y?-k[C]/2+V+F+B+A:O+F+B+A,q=e.elements.arrow&&Vt(e.elements.arrow),U=q?"y"===_?q.clientTop||0:q.clientLeft||0:0,W=e.modifiersData.offset?e.modifiersData.offset[e.placement][_]:0,G=x[_]+D-W-U,X=x[_]+j-W;if(o){var K=It(u?Rt(H,G):H,L,u?Ot(T,X):T);x[_]=K,S[_]=K-L}if(s){var Q="x"===_?tt:nt,Z="x"===_?et:it,Y=x[w],J=Y+f[Q],rt=Y-f[Z],ot=It(u?Rt(J,G):J,Y,u?Ot(rt,X):rt);x[w]=ot,S[w]=ot-Y}}e.modifiersData[n]=S}}function Me(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function Ee(t){return t!==ft(t)&&bt(t)?Me(t):ee(t)}function Ce(t,e,i){void 0===i&&(i=!1);var n=Ct(e),r=zt(t),o=bt(e),a={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(o||!o&&!i)&&(("body"!==mt(e)||oe(n))&&(a=Ee(e)),bt(e)?((s=zt(e)).x+=e.clientLeft,s.y+=e.clientTop):n&&(s.x=ie(n))),{x:r.left+a.scrollLeft-s.x,y:r.top+a.scrollTop-s.y,width:r.width,height:r.height}}function Le(t){var e=new Map,i=new Set,n=[];function r(t){i.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!i.has(t)){var n=e.get(t);n&&r(n)}})),n.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){i.has(t.name)||r(t)})),n}function He(t){var e=Le(t);return gt.reduce((function(t,i){return t.concat(e.filter((function(t){return t.phase===i})))}),[])}function Te(t){var e;return function(){return e||(e=new Promise((function(i){Promise.resolve().then((function(){e=void 0,i(t())}))}))),e}}function Ve(t){var e=t.reduce((function(t,e){var i=t[e.name];return t[e.name]=i?Object.assign({},i,e,{options:Object.assign({},i.options,e.options),data:Object.assign({},i.data,e.data)}):e,t}),{});return Object.keys(e).map((function(t){return e[t]}))}var $e={placement:"bottom",modifiers:[],strategy:"absolute"};function Oe(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return!e.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function Re(t){void 0===t&&(t={});var e=t,i=e.defaultModifiers,n=void 0===i?[]:i,r=e.defaultOptions,o=void 0===r?$e:r;return function(t,e,i){void 0===i&&(i=o);var r={placement:"bottom",orderedModifiers:[],options:Object.assign({},$e,o),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},a=[],s=!1,l={state:r,setOptions:function(i){h(),r.options=Object.assign({},o,r.options,i),r.scrollParents={reference:vt(t)?se(t):t.contextElement?se(t.contextElement):[],popper:se(e)};var a=He(Ve([].concat(n,r.options.modifiers)));return r.orderedModifiers=a.filter((function(t){return t.enabled})),c(),l.update()},forceUpdate:function(){if(!s){var t=r.elements,e=t.reference,i=t.popper;if(Oe(e,i)){r.rects={reference:Ce(e,Vt(i),"fixed"===r.options.strategy),popper:At(i)},r.reset=!1,r.placement=r.options.placement,r.orderedModifiers.forEach((function(t){return r.modifiersData[t.name]=Object.assign({},t.data)}));for(var n=0;n<r.orderedModifiers.length;n++)if(!0!==r.reset){var o=r.orderedModifiers[n],a=o.fn,c=o.options,h=void 0===c?{}:c,d=o.name;"function"==typeof a&&(r=a({state:r,options:h,name:d,instance:l})||r)}else r.reset=!1,n=-1}}},update:Te((function(){return new Promise((function(t){l.forceUpdate(),t(r)}))})),destroy:function(){h(),s=!0}};if(!Oe(t,e))return l;function c(){r.orderedModifiers.forEach((function(t){var e=t.name,i=t.options,n=void 0===i?{}:i,o=t.effect;if("function"==typeof o){var s=o({state:r,name:e,instance:l,options:n}),c=function(){};a.push(s||c)}}))}function h(){a.forEach((function(t){return t()})),a=[]}return l.setOptions(i).then((function(t){!s&&i.onFirstUpdate&&i.onFirstUpdate(t)})),l}}var Pe=Re({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Qt,data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:ze,data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Xt,data:{}},xt,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:ke},{name:"flip",enabled:!0,phase:"main",fn:be,requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:Se,requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:jt,effect:qt,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:we}]}),Ie="tippy-box",Ne="tippy-content",Be="tippy-backdrop",Fe="tippy-arrow",De="tippy-svg-arrow",je={passive:!0,capture:!0};function qe(t,e,i){if(Array.isArray(t)){var n=t[e];return null==n?Array.isArray(i)?i[e]:i:n}return t}function Ue(t,e){var i={}.toString.call(t);return 0===i.indexOf("[object")&&i.indexOf(e+"]")>-1}function We(t,e){return"function"==typeof t?t.apply(void 0,e):t}function Ge(t,e){return 0===e?t:function(n){clearTimeout(i),i=setTimeout((function(){t(n)}),e)};var i}function Xe(t){return t.split(/\s+/).filter(Boolean)}function Ke(t){return[].concat(t)}function Qe(t,e){-1===t.indexOf(e)&&t.push(e)}function Ze(t){return t.filter((function(e,i){return t.indexOf(e)===i}))}function Ye(t){return t.split("-")[0]}function Je(t){return[].slice.call(t)}function ti(t){return Object.keys(t).reduce((function(e,i){return void 0!==t[i]&&(e[i]=t[i]),e}),{})}function ei(){return document.createElement("div")}function ii(t){return["Element","Fragment"].some((function(e){return Ue(t,e)}))}function ni(t){return Ue(t,"NodeList")}function ri(t){return Ue(t,"MouseEvent")}function oi(t){return!(!t||!t._tippy||t._tippy.reference!==t)}function ai(t){return ii(t)?[t]:ni(t)?Je(t):Array.isArray(t)?t:Je(document.querySelectorAll(t))}function si(t,e){t.forEach((function(t){t&&(t.style.transitionDuration=e+"ms")}))}function li(t,e){t.forEach((function(t){t&&t.setAttribute("data-state",e)}))}function ci(t){var e,i=Ke(t)[0];return(null==i||null==(e=i.ownerDocument)?void 0:e.body)?i.ownerDocument:document}function hi(t,e){var i=e.clientX,n=e.clientY;return t.every((function(t){var e=t.popperRect,r=t.popperState,o=t.props.interactiveBorder,a=Ye(r.placement),s=r.modifiersData.offset;if(!s)return!0;var l="bottom"===a?s.top.y:0,c="top"===a?s.bottom.y:0,h="right"===a?s.left.x:0,d="left"===a?s.right.x:0,p=e.top-n+l>o,u=n-e.bottom-c>o,g=e.left-i+h>o,m=i-e.right-d>o;return p||u||g||m}))}function di(t,e,i){var n=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(e){t[n](e,i)}))}var pi={isTouch:!1},ui=0;function gi(){pi.isTouch||(pi.isTouch=!0,window.performance&&document.addEventListener("mousemove",mi))}function mi(){var t=performance.now();t-ui<20&&(pi.isTouch=!1,document.removeEventListener("mousemove",mi)),ui=t}function fi(){var t=document.activeElement;if(oi(t)){var e=t._tippy;t.blur&&!e.state.isVisible&&t.blur()}}function vi(){document.addEventListener("touchstart",gi,je),window.addEventListener("blur",fi)}var bi="undefined"!=typeof window&&"undefined"!=typeof document?navigator.userAgent:"",yi=/MSIE |Trident\//.test(bi),_i={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},wi={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},xi=Object.assign({appendTo:function(){return document.body},aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},_i,{},wi),ki=Object.keys(xi),zi=function(t){Object.keys(t).forEach((function(e){xi[e]=t[e]}))};function Ai(t){var e=(t.plugins||[]).reduce((function(e,i){var n=i.name,r=i.defaultValue;return n&&(e[n]=void 0!==t[n]?t[n]:r),e}),{});return Object.assign({},t,{},e)}function Si(t,e){return(e?Object.keys(Ai(Object.assign({},xi,{plugins:e}))):ki).reduce((function(e,i){var n=(t.getAttribute("data-tippy-"+i)||"").trim();if(!n)return e;if("content"===i)e[i]=n;else try{e[i]=JSON.parse(n)}catch(t){e[i]=n}return e}),{})}function Mi(t,e){var i=Object.assign({},e,{content:We(e.content,[t])},e.ignoreAttributes?{}:Si(t,e.plugins));return i.aria=Object.assign({},xi.aria,{},i.aria),i.aria={expanded:"auto"===i.aria.expanded?e.interactive:i.aria.expanded,content:"auto"===i.aria.content?e.interactive?null:"describedby":i.aria.content},i}var Ei=function(){return"innerHTML"};function Ci(t,e){t[Ei()]=e}function Li(t){var e=ei();return!0===t?e.className=Fe:(e.className=De,ii(t)?e.appendChild(t):Ci(e,t)),e}function Hi(t,e){ii(e.content)?(Ci(t,""),t.appendChild(e.content)):"function"!=typeof e.content&&(e.allowHTML?Ci(t,e.content):t.textContent=e.content)}function Ti(t){var e=t.firstElementChild,i=Je(e.children);return{box:e,content:i.find((function(t){return t.classList.contains(Ne)})),arrow:i.find((function(t){return t.classList.contains(Fe)||t.classList.contains(De)})),backdrop:i.find((function(t){return t.classList.contains(Be)}))}}function Vi(t){var e=ei(),i=ei();i.className=Ie,i.setAttribute("data-state","hidden"),i.setAttribute("tabindex","-1");var n=ei();function r(i,n){var r=Ti(e),o=r.box,a=r.content,s=r.arrow;n.theme?o.setAttribute("data-theme",n.theme):o.removeAttribute("data-theme"),"string"==typeof n.animation?o.setAttribute("data-animation",n.animation):o.removeAttribute("data-animation"),n.inertia?o.setAttribute("data-inertia",""):o.removeAttribute("data-inertia"),o.style.maxWidth="number"==typeof n.maxWidth?n.maxWidth+"px":n.maxWidth,n.role?o.setAttribute("role",n.role):o.removeAttribute("role"),i.content===n.content&&i.allowHTML===n.allowHTML||Hi(a,t.props),n.arrow?s?i.arrow!==n.arrow&&(o.removeChild(s),o.appendChild(Li(n.arrow))):o.appendChild(Li(n.arrow)):s&&o.removeChild(s)}return n.className=Ne,n.setAttribute("data-state","hidden"),Hi(n,t.props),e.appendChild(i),i.appendChild(n),r(t.props,t.props),{popper:e,onUpdate:r}}Vi.$$tippy=!0;var $i=1,Oi=[],Ri=[];function Pi(t,e){var i,n,r,o,a,s,l,c=Mi(t,Object.assign({},xi,{},Ai(ti(e)))),h=!1,d=!1,p=!1,u=!1,g=[],m=Ge(Q,c.interactiveDebounce),f=$i++,v=null,b=Ze(c.plugins),y={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},_={id:f,reference:t,popper:ei(),popperInstance:v,props:c,state:y,plugins:b,clearDelayTimeouts:lt,setProps:ct,setContent:ht,show:dt,hide:pt,hideWithInteractivity:ut,enable:at,disable:st,unmount:gt,destroy:mt};if(!c.render)return _;var w=c.render(_),x=w.popper,k=w.onUpdate;x.setAttribute("data-tippy-root",""),x.id="tippy-"+_.id,_.popper=x,t._tippy=_,x._tippy=_;var z=b.map((function(t){return t.fn(_)})),A=t.hasAttribute("aria-expanded");return G(),R(),V(),$("onCreate",[_]),c.showOnCreate&&rt(),x.addEventListener("mouseenter",(function(){_.props.interactive&&_.state.isVisible&&_.clearDelayTimeouts()})),x.addEventListener("mouseleave",(function(t){_.props.interactive&&_.props.trigger.indexOf("mouseenter")>=0&&(L().addEventListener("mousemove",m),m(t))})),_;function S(){var t=_.props.touch;return Array.isArray(t)?t:[t,0]}function M(){return"hold"===S()[0]}function E(){var t;return!!(null==(t=_.props.render)?void 0:t.$$tippy)}function C(){return l||t}function L(){var t=C().parentNode;return t?ci(t):document}function H(){return Ti(x)}function T(t){return _.state.isMounted&&!_.state.isVisible||pi.isTouch||o&&"focus"===o.type?0:qe(_.props.delay,t?0:1,xi.delay)}function V(){x.style.pointerEvents=_.props.interactive&&_.state.isVisible?"":"none",x.style.zIndex=""+_.props.zIndex}function $(t,e,i){var n;(void 0===i&&(i=!0),z.forEach((function(i){i[t]&&i[t].apply(void 0,e)})),i)&&(n=_.props)[t].apply(n,e)}function O(){var e=_.props.aria;if(e.content){var i="aria-"+e.content,n=x.id;Ke(_.props.triggerTarget||t).forEach((function(t){var e=t.getAttribute(i);if(_.state.isVisible)t.setAttribute(i,e?e+" "+n:n);else{var r=e&&e.replace(n,"").trim();r?t.setAttribute(i,r):t.removeAttribute(i)}}))}}function R(){!A&&_.props.aria.expanded&&Ke(_.props.triggerTarget||t).forEach((function(t){_.props.interactive?t.setAttribute("aria-expanded",_.state.isVisible&&t===C()?"true":"false"):t.removeAttribute("aria-expanded")}))}function P(){L().removeEventListener("mousemove",m),Oi=Oi.filter((function(t){return t!==m}))}function I(t){if(!(pi.isTouch&&(p||"mousedown"===t.type)||_.props.interactive&&x.contains(t.target))){if(C().contains(t.target)){if(pi.isTouch)return;if(_.state.isVisible&&_.props.trigger.indexOf("click")>=0)return}else $("onClickOutside",[_,t]);!0===_.props.hideOnClick&&(_.clearDelayTimeouts(),_.hide(),d=!0,setTimeout((function(){d=!1})),_.state.isMounted||D())}}function N(){p=!0}function B(){p=!1}function F(){var t=L();t.addEventListener("mousedown",I,!0),t.addEventListener("touchend",I,je),t.addEventListener("touchstart",B,je),t.addEventListener("touchmove",N,je)}function D(){var t=L();t.removeEventListener("mousedown",I,!0),t.removeEventListener("touchend",I,je),t.removeEventListener("touchstart",B,je),t.removeEventListener("touchmove",N,je)}function j(t,e){U(t,(function(){!_.state.isVisible&&x.parentNode&&x.parentNode.contains(x)&&e()}))}function q(t,e){U(t,e)}function U(t,e){var i=H().box;function n(t){t.target===i&&(di(i,"remove",n),e())}if(0===t)return e();di(i,"remove",a),di(i,"add",n),a=n}function W(e,i,n){void 0===n&&(n=!1),Ke(_.props.triggerTarget||t).forEach((function(t){t.addEventListener(e,i,n),g.push({node:t,eventType:e,handler:i,options:n})}))}function G(){M()&&(W("touchstart",K,{passive:!0}),W("touchend",Z,{passive:!0})),Xe(_.props.trigger).forEach((function(t){if("manual"!==t)switch(W(t,K),t){case"mouseenter":W("mouseleave",Z);break;case"focus":W(yi?"focusout":"blur",Y);break;case"focusin":W("focusout",Y)}}))}function X(){g.forEach((function(t){var e=t.node,i=t.eventType,n=t.handler,r=t.options;e.removeEventListener(i,n,r)})),g=[]}function K(t){var e,i=!1;if(_.state.isEnabled&&!J(t)&&!d){var n="focus"===(null==(e=o)?void 0:e.type);o=t,l=t.currentTarget,R(),!_.state.isVisible&&ri(t)&&Oi.forEach((function(e){return e(t)})),"click"===t.type&&(_.props.trigger.indexOf("mouseenter")<0||h)&&!1!==_.props.hideOnClick&&_.state.isVisible?i=!0:rt(t),"click"===t.type&&(h=!i),i&&!n&&ot(t)}}function Q(t){var e=t.target,i=C().contains(e)||x.contains(e);"mousemove"===t.type&&i||hi(nt().concat(x).map((function(t){var e,i=null==(e=t._tippy.popperInstance)?void 0:e.state;return i?{popperRect:t.getBoundingClientRect(),popperState:i,props:c}:null})).filter(Boolean),t)&&(P(),ot(t))}function Z(t){J(t)||_.props.trigger.indexOf("click")>=0&&h||(_.props.interactive?_.hideWithInteractivity(t):ot(t))}function Y(t){_.props.trigger.indexOf("focusin")<0&&t.target!==C()||_.props.interactive&&t.relatedTarget&&x.contains(t.relatedTarget)||ot(t)}function J(t){return!!pi.isTouch&&M()!==t.type.indexOf("touch")>=0}function tt(){et();var e=_.props,i=e.popperOptions,n=e.placement,r=e.offset,o=e.getReferenceClientRect,a=e.moveTransition,l=E()?Ti(x).arrow:null,c=o?{getBoundingClientRect:o,contextElement:o.contextElement||C()}:t,h=[{name:"offset",options:{offset:r}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(t){var e=t.state;if(E()){var i=H().box;["placement","reference-hidden","escaped"].forEach((function(t){"placement"===t?i.setAttribute("data-placement",e.placement):e.attributes.popper["data-popper-"+t]?i.setAttribute("data-"+t,""):i.removeAttribute("data-"+t)})),e.attributes.popper={}}}}];E()&&l&&h.push({name:"arrow",options:{element:l,padding:3}}),h.push.apply(h,(null==i?void 0:i.modifiers)||[]),_.popperInstance=Pe(c,x,Object.assign({},i,{placement:n,onFirstUpdate:s,modifiers:h}))}function et(){_.popperInstance&&(_.popperInstance.destroy(),_.popperInstance=null)}function it(){var t,e=_.props.appendTo,i=C();(t=_.props.interactive&&e===xi.appendTo||"parent"===e?i.parentNode:We(e,[i])).contains(x)||t.appendChild(x),tt()}function nt(){return Je(x.querySelectorAll("[data-tippy-root]"))}function rt(t){_.clearDelayTimeouts(),t&&$("onTrigger",[_,t]),F();var e=T(!0),n=S(),r=n[0],o=n[1];pi.isTouch&&"hold"===r&&o&&(e=o),e?i=setTimeout((function(){_.show()}),e):_.show()}function ot(t){if(_.clearDelayTimeouts(),$("onUntrigger",[_,t]),_.state.isVisible){if(!(_.props.trigger.indexOf("mouseenter")>=0&&_.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(t.type)>=0&&h)){var e=T(!1);e?n=setTimeout((function(){_.state.isVisible&&_.hide()}),e):r=requestAnimationFrame((function(){_.hide()}))}}else D()}function at(){_.state.isEnabled=!0}function st(){_.hide(),_.state.isEnabled=!1}function lt(){clearTimeout(i),clearTimeout(n),cancelAnimationFrame(r)}function ct(e){if(!_.state.isDestroyed){$("onBeforeUpdate",[_,e]),X();var i=_.props,n=Mi(t,Object.assign({},_.props,{},e,{ignoreAttributes:!0}));_.props=n,G(),i.interactiveDebounce!==n.interactiveDebounce&&(P(),m=Ge(Q,n.interactiveDebounce)),i.triggerTarget&&!n.triggerTarget?Ke(i.triggerTarget).forEach((function(t){t.removeAttribute("aria-expanded")})):n.triggerTarget&&t.removeAttribute("aria-expanded"),R(),V(),k&&k(i,n),_.popperInstance&&(tt(),nt().forEach((function(t){requestAnimationFrame(t._tippy.popperInstance.forceUpdate)}))),$("onAfterUpdate",[_,e])}}function ht(t){_.setProps({content:t})}function dt(){var t=_.state.isVisible,e=_.state.isDestroyed,i=!_.state.isEnabled,n=pi.isTouch&&!_.props.touch,r=qe(_.props.duration,0,xi.duration);if(!(t||e||i||n||C().hasAttribute("disabled")||($("onShow",[_],!1),!1===_.props.onShow(_)))){if(_.state.isVisible=!0,E()&&(x.style.visibility="visible"),V(),F(),_.state.isMounted||(x.style.transition="none"),E()){var o=H();si([o.box,o.content],0)}s=function(){var t;if(_.state.isVisible&&!u){if(u=!0,x.offsetHeight,x.style.transition=_.props.moveTransition,E()&&_.props.animation){var e=H(),i=e.box,n=e.content;si([i,n],r),li([i,n],"visible")}O(),R(),Qe(Ri,_),null==(t=_.popperInstance)||t.forceUpdate(),_.state.isMounted=!0,$("onMount",[_]),_.props.animation&&E()&&q(r,(function(){_.state.isShown=!0,$("onShown",[_])}))}},it()}}function pt(){var t=!_.state.isVisible,e=_.state.isDestroyed,i=!_.state.isEnabled,n=qe(_.props.duration,1,xi.duration);if(!(t||e||i)&&($("onHide",[_],!1),!1!==_.props.onHide(_))){if(_.state.isVisible=!1,_.state.isShown=!1,u=!1,h=!1,E()&&(x.style.visibility="hidden"),P(),D(),V(),E()){var r=H(),o=r.box,a=r.content;_.props.animation&&(si([o,a],n),li([o,a],"hidden"))}O(),R(),_.props.animation?E()&&j(n,_.unmount):_.unmount()}}function ut(t){L().addEventListener("mousemove",m),Qe(Oi,m),m(t)}function gt(){_.state.isVisible&&_.hide(),_.state.isMounted&&(et(),nt().forEach((function(t){t._tippy.unmount()})),x.parentNode&&x.parentNode.removeChild(x),Ri=Ri.filter((function(t){return t!==_})),_.state.isMounted=!1,$("onHidden",[_]))}function mt(){_.state.isDestroyed||(_.clearDelayTimeouts(),_.unmount(),X(),delete t._tippy,_.state.isDestroyed=!0,$("onDestroy",[_]))}}function Ii(t,e){void 0===e&&(e={});var i=xi.plugins.concat(e.plugins||[]);vi();var n=Object.assign({},e,{plugins:i}),r=ai(t).reduce((function(t,e){var i=e&&Pi(e,n);return i&&t.push(i),t}),[]);return ii(t)?r[0]:r}Ii.defaultProps=xi,Ii.setDefaultProps=zi,Ii.currentInput=pi;Object.assign({},xt,{effect:function(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow)}});function Ni(t){return t.replace(/(?:^\w|[A-Z]|\b\w)/g,(t,e)=>0==+t?"":0===e?t.toLowerCase():t.toUpperCase()).replace("-","")}Ii.setDefaultProps({render:Vi});const Bi='\n .tippy-box[data-animation=fade][data-state=hidden] {\n opacity: 0\n }\n\n .tippy-iOS {\n cursor: pointer!important;\n -webkit-tap-highlight-color: transparent\n }\n\n [data-tippy-root] {\n max-width: calc(100vw - 10px)\n }\n\n .tippy-box {\n position: relative;\n background-color: #333;\n color: #fff;\n border-radius: 4px;\n font-size: var(--pb-popover-font-size, var(--pb-base-font-size, 14px));\n line-height: var(--pb-popover-line-height, var(--pb-base-line-height, 1.4));\n text-align: left;\n font-style: normal;\n font-weight: normal;\n outline: 0;\n transition-property: transform, visibility, opacity\n }\n\n .tippy-box[data-placement^=top]>.tippy-arrow {\n bottom: 0\n }\n\n .tippy-box[data-placement^=top]>.tippy-arrow:before {\n bottom: -7px;\n left: 0;\n border-width: 8px 8px 0;\n border-top-color: initial;\n transform-origin: center top\n }\n\n .tippy-box[data-placement^=bottom]>.tippy-arrow {\n top: 0\n }\n\n .tippy-box[data-placement^=bottom]>.tippy-arrow:before {\n top: -7px;\n left: 0;\n border-width: 0 8px 8px;\n border-bottom-color: initial;\n transform-origin: center bottom\n }\n\n .tippy-box[data-placement^=left]>.tippy-arrow {\n right: 0\n }\n\n .tippy-box[data-placement^=left]>.tippy-arrow:before {\n border-width: 8px 0 8px 8px;\n border-left-color: initial;\n right: -7px;\n transform-origin: center left\n }\n\n .tippy-box[data-placement^=right]>.tippy-arrow {\n left: 0\n }\n\n .tippy-box[data-placement^=right]>.tippy-arrow:before {\n left: -7px;\n border-width: 8px 8px 8px 0;\n border-right-color: initial;\n transform-origin: center right\n }\n\n .tippy-box[data-inertia][data-state=visible] {\n transition-timing-function: cubic-bezier(.54, 1.5, .38, 1.11)\n }\n\n .tippy-arrow {\n width: 16px;\n height: 16px;\n color: #333\n }\n\n .tippy-arrow:before {\n content: "";\n position: absolute;\n border-color: transparent;\n border-style: solid\n }\n\n .tippy-content {\n position: relative;\n padding: 5px 9px;\n z-index: 1;\n overflow: auto;\n max-height: var(--pb-popover-max-height, calc(100vh - 60px));\n min-height: var(--pb-popover-min-height, auto);\n max-width: var(--pb-popover-max-width, auto);\n min-width: var(--pb-popover-min-width, auto);\n color: var(--pb-popover-color);\n }\n',Fi='\n .tippy-box[data-theme~=light-border] {\n background-color: #fff;\n background-clip: padding-box;\n border: 1px solid rgba(0, 8, 16, .15);\n color: #333;\n box-shadow: 0 4px 14px -2px rgba(0, 8, 16, .08)\n }\n\n .tippy-box[data-theme~=light-border]>.tippy-backdrop {\n background-color: #fff\n }\n\n .tippy-box[data-theme~=light-border]>.tippy-arrow:after, .tippy-box[data-theme~=light-border]>.tippy-svg-arrow:after {\n content: "";\n position: absolute;\n z-index: -1\n }\n\n .tippy-box[data-theme~=light-border]>.tippy-arrow:after {\n border-color: transparent;\n border-style: solid\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-arrow:before {\n border-top-color: #fff\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-arrow:after {\n border-top-color: rgba(0, 8, 16, .2);\n border-width: 7px 7px 0;\n top: 17px;\n left: 1px\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-svg-arrow>svg {\n top: 16px\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-svg-arrow:after {\n top: 17px\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-arrow:before {\n border-bottom-color: #fff;\n bottom: 16px\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-arrow:after {\n border-bottom-color: rgba(0, 8, 16, .2);\n border-width: 0 7px 7px;\n bottom: 17px;\n left: 1px\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-svg-arrow>svg {\n bottom: 16px\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-svg-arrow:after {\n bottom: 17px\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-arrow:before {\n border-left-color: #fff\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-arrow:after {\n border-left-color: rgba(0, 8, 16, .2);\n border-width: 7px 0 7px 7px;\n left: 17px;\n top: 1px\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-svg-arrow>svg {\n left: 11px\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-svg-arrow:after {\n left: 12px\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-arrow:before {\n border-right-color: #fff;\n right: 16px\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-arrow:after {\n border-width: 7px 7px 7px 0;\n right: 17px;\n top: 1px;\n border-right-color: rgba(0, 8, 16, .2)\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-svg-arrow>svg {\n right: 11px\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-svg-arrow:after {\n right: 12px\n }\n\n .tippy-box[data-theme~=light-border]>.tippy-svg-arrow {\n fill: #fff\n }\n\n .tippy-box[data-theme~=light-border]>.tippy-svg-arrow:after {\n background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMCA2czEuNzk2LS4wMTMgNC42Ny0zLjYxNUM1Ljg1MS45IDYuOTMuMDA2IDggMGMxLjA3LS4wMDYgMi4xNDguODg3IDMuMzQzIDIuMzg1QzE0LjIzMyA2LjAwNSAxNiA2IDE2IDZIMHoiIGZpbGw9InJnYmEoMCwgOCwgMTYsIDAuMikiLz48L3N2Zz4=);\n background-size: 16px 6px;\n width: 16px;\n height: 6px\n }\n',Di="\n .tippy-box[data-theme~=light] {\n color: #26323d;\n box-shadow: 0 0 20px 4px rgba(154, 161, 177, .15), 0 4px 80px -8px rgba(36, 40, 47, .25), 0 4px 4px -2px rgba(91, 94, 105, .15);\n background-color: #fff\n }\n\n .tippy-box[data-theme~=light][data-placement^=top]>.tippy-arrow:before {\n border-top-color: #fff\n }\n\n .tippy-box[data-theme~=light][data-placement^=bottom]>.tippy-arrow:before {\n border-bottom-color: #fff\n }\n\n .tippy-box[data-theme~=light][data-placement^=left]>.tippy-arrow:before {\n border-left-color: #fff\n }\n\n .tippy-box[data-theme~=light][data-placement^=right]>.tippy-arrow:before {\n border-right-color: #fff\n }\n\n .tippy-box[data-theme~=light]>.tippy-backdrop {\n background-color: #fff\n }\n\n .tippy-box[data-theme~=light]>.tippy-svg-arrow {\n fill: #fff\n }",ji="\n .tippy-box[data-theme~=material] {\n background-color: #505355;\n font-weight: 600\n }\n\n .tippy-box[data-theme~=material][data-placement^=top]>.tippy-arrow:before {\n border-top-color: #505355\n }\n\n .tippy-box[data-theme~=material][data-placement^=bottom]>.tippy-arrow:before {\n border-bottom-color: #505355\n }\n\n .tippy-box[data-theme~=material][data-placement^=left]>.tippy-arrow:before {\n border-left-color: #505355\n }\n\n .tippy-box[data-theme~=material][data-placement^=right]>.tippy-arrow:before {\n border-right-color: #505355\n }\n\n .tippy-box[data-theme~=material]>.tippy-backdrop {\n background-color: #505355\n }\n\n .tippy-box[data-theme~=material]>.tippy-svg-arrow {\n fill: #505355\n }\n",qi="\n .tippy-box[data-theme~=translucent] {\n background-color: rgba(0, 0, 0, .7)\n }\n\n .tippy-box[data-theme~=translucent]>.tippy-arrow {\n width: 14px;\n height: 14px\n }\n\n .tippy-box[data-theme~=translucent][data-placement^=top]>.tippy-arrow:before {\n border-width: 7px 7px 0;\n border-top-color: rgba(0, 0, 0, .7)\n }\n\n .tippy-box[data-theme~=translucent][data-placement^=bottom]>.tippy-arrow:before {\n border-width: 0 7px 7px;\n border-bottom-color: rgba(0, 0, 0, .7)\n }\n\n .tippy-box[data-theme~=translucent][data-placement^=left]>.tippy-arrow:before {\n border-width: 7px 0 7px 7px;\n border-left-color: rgba(0, 0, 0, .7)\n }\n\n .tippy-box[data-theme~=translucent][data-placement^=right]>.tippy-arrow:before {\n border-width: 7px 7px 7px 0;\n border-right-color: rgba(0, 0, 0, .7)\n }\n\n .tippy-box[data-theme~=translucent]>.tippy-backdrop {\n background-color: rgba(0, 0, 0, .7)\n }\n\n .tippy-box[data-theme~=translucent]>.tippy-svg-arrow {\n fill: rgba(0, 0, 0, .7)\n }\n";var Ui=Object.freeze({__proto__:null,camelize:Ni,base:Bi,lightBorder:Fi,light:Di,material:ji,translucent:qi});function Wi(t,e,i){if(!t.querySelector("#pb-popover-"+e)){const n=t.nodeType===Node.DOCUMENT_NODE?document.head:t;console.log("Loading tippy styles for theme %s into %o",e,n);const r=document.createElement("style");r.type="text/css",r.id="pb-popover-"+e,r.innerHTML=i,n.appendChild(r)}}function Gi(t,e){if(Wi(t,"base",Bi),e&&"none"!==e){const i=Ni(e),n=Ui[i];n&&Wi(t,i,n)}}class Xi extends(P(V)){static get properties(){return Object.assign(Object.assign({},super.properties),{},{for:{type:String},theme:{type:String},placement:{type:String},fallbackPlacement:{type:String,attribute:"fallback-placement"},persistent:{type:Boolean},trigger:{type:String},popupClass:{type:String,attribute:"popup-class"},remote:{type:String}})}constructor(){super(),this.persistent=!1,this.trigger=null,this.for=null,this.theme=null,this.placement=null,this.fallbackPlacement=null,this.popupClass=null,this._tippy=null,this._content=null}render(){return this.for?$`<div class="hidden"><slot></slot></div>`:$`<span id="link" part="trigger" class="${this.persistent?"persistent":""}"><slot name="default"><slot></slot></slot></span><span class="hidden"><slot name="alternate"></slot></span>`}disconnectedCallback(){super.disconnectedCallback(),this._tippy&&this._tippy.destroy(),this._observer&&this._observer.disconnect()}_checkCSSProperties(){this.theme||"none"===this.theme||(this.theme=this._getCSSProperty("--pb-popover-theme","none")),this.placement||(this.placement=this._getCSSProperty("--pb-popover-placement","auto")),this.fallbackPlacement||(this.fallbackPlacement=this._getCSSProperty("--pb-popover-fallback-placement",null)),this.persistent||(this.persistent=this._getCSSProperty("--pb-popover-persistent",!1)),this.trigger||(this.trigger=this._getCSSProperty("--pb-popover-trigger",null))}_getCSSProperty(t,e){const i=getComputedStyle(this).getPropertyValue(t);if(i)try{return JSON.parse(i)}catch(t){return e}return e}_injectStyles(){this._checkCSSProperties(),Gi(this.getRootNode(),this.theme)}_getContent(){if(this._content)return this._content;const t=this._getSlot();if(t){const e=document.createElement("div");return t.assignedNodes().forEach(t=>{e.appendChild(t.content?t.content.cloneNode(!0):t.cloneNode(!0))}),this._content=e,e}return null}_getSlot(){return this.for?this.shadowRoot.querySelector("slot"):this.shadowRoot.querySelector("[name=alternate]")}_registerMutationObserver(){const t=this._getSlot();this._observer=new MutationObserver(()=>{this.alternate=this._getContent(),console.log("alternate changed"),this.emitTo("pb-popover-changed",this.alternate)}),this._observer.observe(this,{subtree:!0,childList:!0,characterData:!0}),t&&t.assignedNodes().forEach(t=>{this._observer.observe(t.content?t.content:t,{subtree:!0,childList:!0,characterData:!0})})}get alternate(){return this._getContent()}set alternate(t){this._content=t,this._tippy&&this._tippy.setContent(this._content)}command(t,e){"disable"===t&&(this.disabled=e,this._tippy&&(e?this._tippy.disable():this._tippy.enable()))}firstUpdated(){super.firstUpdated(),this._injectStyles(),this._registerMutationObserver(),this.trigger||(this.trigger=this.persistent?"click":"mouseenter");const t=this.getRootNode();let e;if(this.for?(e=t.getElementById(this.for),e||console.error("<pb-popover> target element %s not found",this.for)):e=this.shadowRoot.getElementById("link"),e){const i={allowHTML:!0,appendTo:t.nodeType===Node.DOCUMENT_NODE?document.body:t,placement:this.placement,interactive:!0,ignoreAttributes:!0,boundary:"viewport",maxWidth:"none",touch:"hold",hideOnClick:!1,trigger:this.trigger};if(this.persistent&&(i.onClickOutside=(t,e)=>{t.hideWithInteractivity(e)}),this.theme&&"none"!==this.theme&&(i.theme=this.theme),this.fallbackPlacement){const t=this.fallbackPlacement.split(" ");i.popperOptions={modifiers:[{name:"flip",options:{fallbackPlacements:t}}]}}this.popupClass&&(i.onCreate=t=>{t.popper.classList.add(this.popupClass)}),i.onShow=t=>{this.remote?this._loadRemoteContent():t.setContent(this._getContent()),this.emitTo("pb-popover-show",{source:this})},this._tippy=Ii(e,i)}}_loadRemoteContent(){const t=this.toAbsoluteURL(this.remote);fetch(t,{method:"GET",mode:"cors",credentials:"same-origin"}).then(t=>t.text()).then(t=>{this.alternate=t}).catch(t=>{console.error("<pb-popover> Error retrieving remote content: %o",t)})}static get styles(){return[R`
|
|
511
511
|
:host {
|
|
512
512
|
display: inline;
|
|
513
513
|
}
|
|
@@ -3673,7 +3673,7 @@ e({is:"transform-animation",behaviors:[z],configure:function(t){var e=t.node,i=t
|
|
|
3673
3673
|
:host {
|
|
3674
3674
|
display: block;
|
|
3675
3675
|
}
|
|
3676
|
-
`}_selected(){const t=this.shadowRoot.getElementById("endpoints").selectedItem;if(!t)return;const e=t.getAttribute("value");e
|
|
3676
|
+
`}_selected(){const t=this.shadowRoot.getElementById("endpoints").selectedItem;if(!t)return;const e=t.getAttribute("value");if(!e)return;const i=this.endpoints.find(t=>t.url===e);this.setParameter("endpoint",i.url),this.pushHistory("dts-endpoint"),console.log("<dts-select-endpoint> Setting endpoint to %s",e),this.emitTo("dts-endpoint",{endpoint:i.url,collection:i.collection,reload:!this.endpoint}),this.endpoint=i.url}}customElements.define("dts-select-endpoint",Cs);class Ls extends(P(V)){static get properties(){return Object.assign(Object.assign({},super.properties),{},{baseUri:{type:String},data:{type:Object},collection:{type:String},page:{type:Number},perPage:{type:Number},_collectionEndpoint:{type:String}})}constructor(){super(),this._parentCollections=[],this.collection="default"}connectedCallback(){super.connectedCallback(),this.collection=this.getParameter("id"),this.page=this.getParameter("page"),this.subscribeTo("dts-endpoint",t=>{this._setEndpoint(t.detail.endpoint,t.detail.collection,t.detail.reload)}),this.subscribeTo("pb-load",t=>{this.page=t.detail.params.page,console.log("<dts-client> Loading page %d",this.page),this._update()})}firstUpdated(){super.firstUpdated(),this.queryAPI=this.shadowRoot.getElementById("queryAPI"),this.documentsAPI=this.shadowRoot.getElementById("documentsAPI"),this.signalReady()}_setEndpoint(t,e,i){i||(this.page=null),this.collection=e,this._configureEndpoint(t),this.baseUri=t}_configureEndpoint(t){t&&(console.log("<dts-client> initializing connection to endpoint %s",t),this.emitTo("pb-start-update"),this.queryAPI.url=t,this.queryAPI.generateRequest())}_navigate(t,e,i=!0){t.preventDefault(),i&&this._parentCollections.push(this.collection),this.collection=e&&"object"==typeof e?e["@id"]:e,this.page=null,console.log("<dts-client> navigating to collection %s",this.collection),this._update()}_navigateUp(t){0!==this._parentCollections.length&&this._navigate(t,this._parentCollections.pop(),!1)}_preview(t,e){t.preventDefault(),this.emitTo("pb-start-update");const i=e["dts:passage"]||e["dts:download"],n=new URL(i,this.baseUri).toString();console.log("<dts-client> downloading %s",n),this.lessThanApiVersion("1.0.0")?(this.documentsAPI.url=this.getEndpoint()+"/modules/lib/dts.xql",this.documentsAPI.params={preview:n,id:e["@id"]}):(this.documentsAPI.url=this.getEndpoint()+"/api/dts/import",this.documentsAPI.params={uri:n,temp:!0}),this.documentsAPI.generateRequest()}_download(t,e){this.emitTo("pb-start-update");const i=e["dts:passage"]||e["dts:download"],n=new URL(i,this.baseUri).toString();console.log("<dts-client> importing %s",n),this.lessThanApiVersion("1.0.0")?(this.documentsAPI.url=this.getEndpoint()+"/modules/lib/dts.xql",this.documentsAPI.params={import:n,id:e["@id"]}):(this.documentsAPI.url=this.getEndpoint()+"/api/dts/import",this.documentsAPI.params={uri:n,temp:!1}),this.documentsAPI.generateRequest()}_update(){this.emitTo("pb-start-update");const t={};this.collection&&(t.id=this.collection,this.setParameter("id",this.collection)),this.page&&(t.page=this.page+1,this.setParameter("page",this.page)),this.pushHistory("dts-client-navigate"),this.queryAPI.params=t,this.queryAPI.url=this._collectionEndpoint,this.queryAPI.generateRequest()}_handleResponse(){const t=this.queryAPI.lastResponse;"EntryPoint"===t["@type"]?(this._collectionEndpoint=new URL(t.collections,this.baseUri).toString(),console.log("<dts-client> configured collection endpoint: %s",this._collectionEndpoint),this._update()):(this.data=t,console.log("<dts-client> received collection data: %o",t),!this.page&&t.totalItems>t.member.length&&(this.perPage=t.member.length),this.emitTo("pb-results-received",{start:this.page&&this.page>0?this.page*this.perPage+1:1,count:t.totalItems})),this.emitTo("pb-end-update")}_handlePreview(){const t=this.documentsAPI.lastResponse;this.emitTo("pb-end-update");const e=new URL(t.path,window.location.href);window.location=e}_handleError(t){this.emitTo("pb-end-update");const e=t.target.lastError.response,i=(new DOMParser).parseFromString(e,"application/xml").querySelector("message"),n=document.getElementById("errorDialog"),r=n.querySelector("paper-dialog-scrollable");r.innerHTML=i?i.textContent:t.detail.error.message,n.open()}static _getCreator(t){const e=t["dts:dublincore"];return e?e["dc:creator"]:null}static _getLicense(t){const e=t["dts:dublincore"];return e?e["dc:license"]:null}render(){return $`
|
|
3677
3677
|
<slot name="toolbar"></slot>
|
|
3678
3678
|
${this.baseUri?this._renderClient():""}
|
|
3679
3679
|
|
|
@@ -3693,25 +3693,34 @@ e({is:"transform-animation",behaviors:[z],configure:function(t){var e=t.node,i=t
|
|
|
3693
3693
|
@error="${this._handleError}"></iron-ajax>
|
|
3694
3694
|
`}_renderClient(){return $`
|
|
3695
3695
|
<div class="uri">${this.baseUri}</div>
|
|
3696
|
-
<h3>${this.data?this.data.title:"Loading ..."}</h3>
|
|
3696
|
+
<h3 part="collection-title">${this.data?this.data.title:"Loading ..."}</h3>
|
|
3697
3697
|
<slot name="pagination"></slot>
|
|
3698
|
+
${this._parentCollections.length>0||this.collection?$`
|
|
3699
|
+
<paper-button part="parent-link" @click="${this._navigateUp}">
|
|
3700
|
+
<iron-icon icon="icons:arrow-upward"></iron-icon>
|
|
3701
|
+
${r("browse.up")}
|
|
3702
|
+
</paper-button>`:null}
|
|
3698
3703
|
${this.data?this._renderMembers():""}
|
|
3699
3704
|
`}_renderMembers(){const t=[];return this.data.member.forEach(e=>{t.push($`<div class="member">${this._renderMember(e)}</div>`)}),t}_renderMember(t){if("Collection"==t["@type"])return $`
|
|
3700
3705
|
<iron-icon icon="icons:folder-open"></iron-icon>
|
|
3701
3706
|
<div class="details">
|
|
3702
|
-
<
|
|
3703
|
-
<
|
|
3704
|
-
|
|
3707
|
+
<a href="#" @click="${e=>this._navigate(e,t)}" part="link">
|
|
3708
|
+
<h4 class="collection" part="collection-title">
|
|
3709
|
+
${t.title}
|
|
3710
|
+
</h4>
|
|
3711
|
+
</a>
|
|
3705
3712
|
</div>
|
|
3706
3713
|
`;const e=Ls._getLicense(t);return $`
|
|
3707
3714
|
<iron-icon icon="icons:code"></iron-icon>
|
|
3708
3715
|
<div class="details">
|
|
3709
3716
|
<div>
|
|
3710
|
-
<
|
|
3711
|
-
<
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
|
|
3717
|
+
<a href="#" @click="${e=>this._preview(e,t)}" part="link">
|
|
3718
|
+
<h4 part="title">
|
|
3719
|
+
${t.title}
|
|
3720
|
+
</h4>
|
|
3721
|
+
</a>
|
|
3722
|
+
<p part="creator" class="creator">${Ls._getCreator(t)}</p>
|
|
3723
|
+
${e?$`<p part="license" class="license"><a href="${e}">${r("dts.licence")}</a></p>`:""}
|
|
3715
3724
|
</div>
|
|
3716
3725
|
<iron-icon title="${r("dts.import")}" icon="icons:file-download"
|
|
3717
3726
|
@click="${e=>this._download(e,t)}">
|
package/dist/pb-elements.json
CHANGED
|
@@ -151,10 +151,6 @@
|
|
|
151
151
|
"name": "data",
|
|
152
152
|
"type": "object"
|
|
153
153
|
},
|
|
154
|
-
{
|
|
155
|
-
"name": "collection",
|
|
156
|
-
"type": "string"
|
|
157
|
-
},
|
|
158
154
|
{
|
|
159
155
|
"name": "page",
|
|
160
156
|
"type": "number"
|
|
@@ -163,6 +159,11 @@
|
|
|
163
159
|
"name": "perPage",
|
|
164
160
|
"type": "number"
|
|
165
161
|
},
|
|
162
|
+
{
|
|
163
|
+
"name": "collection",
|
|
164
|
+
"type": "string",
|
|
165
|
+
"default": "\"default\""
|
|
166
|
+
},
|
|
166
167
|
{
|
|
167
168
|
"name": "subscribe",
|
|
168
169
|
"description": "The name of the channel to subscribe to. Only events on a channel corresponding\nto this property are listened to.",
|
|
@@ -206,11 +207,6 @@
|
|
|
206
207
|
"attribute": "data",
|
|
207
208
|
"type": "object"
|
|
208
209
|
},
|
|
209
|
-
{
|
|
210
|
-
"name": "collection",
|
|
211
|
-
"attribute": "collection",
|
|
212
|
-
"type": "string"
|
|
213
|
-
},
|
|
214
210
|
{
|
|
215
211
|
"name": "page",
|
|
216
212
|
"attribute": "page",
|
|
@@ -221,6 +217,12 @@
|
|
|
221
217
|
"attribute": "perPage",
|
|
222
218
|
"type": "number"
|
|
223
219
|
},
|
|
220
|
+
{
|
|
221
|
+
"name": "collection",
|
|
222
|
+
"attribute": "collection",
|
|
223
|
+
"type": "string",
|
|
224
|
+
"default": "\"default\""
|
|
225
|
+
},
|
|
224
226
|
{
|
|
225
227
|
"name": "subscribe",
|
|
226
228
|
"attribute": "subscribe",
|
|
@@ -290,6 +292,32 @@
|
|
|
290
292
|
"name": "pagination",
|
|
291
293
|
"description": "pagination area"
|
|
292
294
|
}
|
|
295
|
+
],
|
|
296
|
+
"cssParts": [
|
|
297
|
+
{
|
|
298
|
+
"name": "parent-link",
|
|
299
|
+
"description": "Link to parent collection"
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
"name": "collection-title",
|
|
303
|
+
"description": "Collection title"
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
"name": "title",
|
|
307
|
+
"description": "Member title"
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
"name": "author",
|
|
311
|
+
"description": "Author"
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
"name": "license",
|
|
315
|
+
"description": "License information"
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
"name": "link",
|
|
319
|
+
"description": "Links"
|
|
320
|
+
}
|
|
293
321
|
]
|
|
294
322
|
},
|
|
295
323
|
{
|
package/package.json
CHANGED
package/pb-elements.json
CHANGED
|
@@ -151,10 +151,6 @@
|
|
|
151
151
|
"name": "data",
|
|
152
152
|
"type": "object"
|
|
153
153
|
},
|
|
154
|
-
{
|
|
155
|
-
"name": "collection",
|
|
156
|
-
"type": "string"
|
|
157
|
-
},
|
|
158
154
|
{
|
|
159
155
|
"name": "page",
|
|
160
156
|
"type": "number"
|
|
@@ -163,6 +159,11 @@
|
|
|
163
159
|
"name": "perPage",
|
|
164
160
|
"type": "number"
|
|
165
161
|
},
|
|
162
|
+
{
|
|
163
|
+
"name": "collection",
|
|
164
|
+
"type": "string",
|
|
165
|
+
"default": "\"default\""
|
|
166
|
+
},
|
|
166
167
|
{
|
|
167
168
|
"name": "subscribe",
|
|
168
169
|
"description": "The name of the channel to subscribe to. Only events on a channel corresponding\nto this property are listened to.",
|
|
@@ -206,11 +207,6 @@
|
|
|
206
207
|
"attribute": "data",
|
|
207
208
|
"type": "object"
|
|
208
209
|
},
|
|
209
|
-
{
|
|
210
|
-
"name": "collection",
|
|
211
|
-
"attribute": "collection",
|
|
212
|
-
"type": "string"
|
|
213
|
-
},
|
|
214
210
|
{
|
|
215
211
|
"name": "page",
|
|
216
212
|
"attribute": "page",
|
|
@@ -221,6 +217,12 @@
|
|
|
221
217
|
"attribute": "perPage",
|
|
222
218
|
"type": "number"
|
|
223
219
|
},
|
|
220
|
+
{
|
|
221
|
+
"name": "collection",
|
|
222
|
+
"attribute": "collection",
|
|
223
|
+
"type": "string",
|
|
224
|
+
"default": "\"default\""
|
|
225
|
+
},
|
|
224
226
|
{
|
|
225
227
|
"name": "subscribe",
|
|
226
228
|
"attribute": "subscribe",
|
|
@@ -290,6 +292,32 @@
|
|
|
290
292
|
"name": "pagination",
|
|
291
293
|
"description": "pagination area"
|
|
292
294
|
}
|
|
295
|
+
],
|
|
296
|
+
"cssParts": [
|
|
297
|
+
{
|
|
298
|
+
"name": "parent-link",
|
|
299
|
+
"description": "Link to parent collection"
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
"name": "collection-title",
|
|
303
|
+
"description": "Collection title"
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
"name": "title",
|
|
307
|
+
"description": "Member title"
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
"name": "author",
|
|
311
|
+
"description": "Author"
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
"name": "license",
|
|
315
|
+
"description": "License information"
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
"name": "link",
|
|
319
|
+
"description": "Links"
|
|
320
|
+
}
|
|
293
321
|
]
|
|
294
322
|
},
|
|
295
323
|
{
|
package/src/dts-client.js
CHANGED
|
@@ -4,6 +4,7 @@ import { translate } from "./pb-i18n.js";
|
|
|
4
4
|
import '@polymer/iron-ajax';
|
|
5
5
|
import '@polymer/iron-icon';
|
|
6
6
|
import '@polymer/iron-icons';
|
|
7
|
+
import '@polymer/paper-button';
|
|
7
8
|
|
|
8
9
|
/**
|
|
9
10
|
* A client for the Distributed Text Services (DTS) protocol. This defines an API
|
|
@@ -13,6 +14,13 @@ import '@polymer/iron-icons';
|
|
|
13
14
|
* @slot toolbar - toolbar area
|
|
14
15
|
* @slot pagination - pagination area
|
|
15
16
|
*
|
|
17
|
+
* @csspart parent-link - Link to parent collection
|
|
18
|
+
* @csspart collection-title - Collection title
|
|
19
|
+
* @csspart title - Member title
|
|
20
|
+
* @csspart author - Author
|
|
21
|
+
* @csspart license - License information
|
|
22
|
+
* @csspart link - Links
|
|
23
|
+
*
|
|
16
24
|
* @fires pb-start-update - Fired before the element updates its content
|
|
17
25
|
* @fires pb-results-received - Fired when results are received from the server
|
|
18
26
|
* @fires pb-end-update - Fired after the element has finished updating its content
|
|
@@ -44,6 +52,12 @@ export class DtsClient extends pbMixin(LitElement) {
|
|
|
44
52
|
};
|
|
45
53
|
}
|
|
46
54
|
|
|
55
|
+
constructor() {
|
|
56
|
+
super();
|
|
57
|
+
this._parentCollections = [];
|
|
58
|
+
this.collection = 'default';
|
|
59
|
+
}
|
|
60
|
+
|
|
47
61
|
connectedCallback() {
|
|
48
62
|
super.connectedCallback();
|
|
49
63
|
|
|
@@ -51,7 +65,7 @@ export class DtsClient extends pbMixin(LitElement) {
|
|
|
51
65
|
this.page = this.getParameter('page');
|
|
52
66
|
|
|
53
67
|
this.subscribeTo('dts-endpoint', (ev) => {
|
|
54
|
-
this._setEndpoint(ev.detail.endpoint, ev.detail.reload);
|
|
68
|
+
this._setEndpoint(ev.detail.endpoint, ev.detail.collection, ev.detail.reload);
|
|
55
69
|
});
|
|
56
70
|
this.subscribeTo('pb-load', (ev) => {
|
|
57
71
|
this.page = ev.detail.params.page;
|
|
@@ -68,11 +82,11 @@ export class DtsClient extends pbMixin(LitElement) {
|
|
|
68
82
|
this.signalReady();
|
|
69
83
|
}
|
|
70
84
|
|
|
71
|
-
_setEndpoint(endpoint, reload) {
|
|
85
|
+
_setEndpoint(endpoint, collection, reload) {
|
|
72
86
|
if (!reload) {
|
|
73
87
|
this.page = null;
|
|
74
|
-
this.collection = null;
|
|
75
88
|
}
|
|
89
|
+
this.collection = collection;
|
|
76
90
|
this._configureEndpoint(endpoint);
|
|
77
91
|
this.baseUri = endpoint;
|
|
78
92
|
}
|
|
@@ -86,14 +100,24 @@ export class DtsClient extends pbMixin(LitElement) {
|
|
|
86
100
|
}
|
|
87
101
|
}
|
|
88
102
|
|
|
89
|
-
_navigate(ev, member) {
|
|
103
|
+
_navigate(ev, member, downwards = true) {
|
|
90
104
|
ev.preventDefault();
|
|
91
|
-
|
|
105
|
+
if (downwards) {
|
|
106
|
+
this._parentCollections.push(this.collection);
|
|
107
|
+
}
|
|
108
|
+
this.collection = member && typeof member === 'object' ? member['@id'] : member;
|
|
92
109
|
this.page = null;
|
|
93
110
|
console.log('<dts-client> navigating to collection %s', this.collection);
|
|
94
111
|
this._update();
|
|
95
112
|
}
|
|
96
113
|
|
|
114
|
+
_navigateUp(ev) {
|
|
115
|
+
if (this._parentCollections.length === 0) {
|
|
116
|
+
return;
|
|
117
|
+
}
|
|
118
|
+
this._navigate(ev, this._parentCollections.pop(), false);
|
|
119
|
+
}
|
|
120
|
+
|
|
97
121
|
_preview(ev, member) {
|
|
98
122
|
ev.preventDefault();
|
|
99
123
|
this.emitTo('pb-start-update');
|
|
@@ -236,8 +260,17 @@ export class DtsClient extends pbMixin(LitElement) {
|
|
|
236
260
|
_renderClient() {
|
|
237
261
|
return html`
|
|
238
262
|
<div class="uri">${this.baseUri}</div>
|
|
239
|
-
<h3>${this.data ? this.data.title : 'Loading ...'}</h3>
|
|
263
|
+
<h3 part="collection-title">${this.data ? this.data.title : 'Loading ...'}</h3>
|
|
240
264
|
<slot name="pagination"></slot>
|
|
265
|
+
${
|
|
266
|
+
this._parentCollections.length > 0 || this.collection ?
|
|
267
|
+
html`
|
|
268
|
+
<paper-button part="parent-link" @click="${this._navigateUp}">
|
|
269
|
+
<iron-icon icon="icons:arrow-upward"></iron-icon>
|
|
270
|
+
${translate('browse.up')}
|
|
271
|
+
</paper-button>`
|
|
272
|
+
: null
|
|
273
|
+
}
|
|
241
274
|
${this.data ? this._renderMembers() : ''}
|
|
242
275
|
`;
|
|
243
276
|
}
|
|
@@ -255,9 +288,11 @@ export class DtsClient extends pbMixin(LitElement) {
|
|
|
255
288
|
return html`
|
|
256
289
|
<iron-icon icon="icons:folder-open"></iron-icon>
|
|
257
290
|
<div class="details">
|
|
258
|
-
<
|
|
259
|
-
<
|
|
260
|
-
|
|
291
|
+
<a href="#" @click="${(ev) => this._navigate(ev, member)}" part="link">
|
|
292
|
+
<h4 class="collection" part="collection-title">
|
|
293
|
+
${member.title}
|
|
294
|
+
</h4>
|
|
295
|
+
</a>
|
|
261
296
|
</div>
|
|
262
297
|
`;
|
|
263
298
|
}
|
|
@@ -266,11 +301,13 @@ export class DtsClient extends pbMixin(LitElement) {
|
|
|
266
301
|
<iron-icon icon="icons:code"></iron-icon>
|
|
267
302
|
<div class="details">
|
|
268
303
|
<div>
|
|
269
|
-
<
|
|
270
|
-
<
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
304
|
+
<a href="#" @click="${(ev) => this._preview(ev, member)}" part="link">
|
|
305
|
+
<h4 part="title">
|
|
306
|
+
${member.title}
|
|
307
|
+
</h4>
|
|
308
|
+
</a>
|
|
309
|
+
<p part="creator" class="creator">${DtsClient._getCreator(member)}</p>
|
|
310
|
+
${license ? html`<p part="license" class="license"><a href="${license}">${translate('dts.licence')}</a></p>` : ''}
|
|
274
311
|
</div>
|
|
275
312
|
<iron-icon title="${translate('dts.import')}" icon="icons:file-download"
|
|
276
313
|
@click="${(ev) => this._download(ev, member)}">
|
|
@@ -95,14 +95,16 @@ export class DtsSelectEndpoint extends pbMixin(LitElement) {
|
|
|
95
95
|
if (!newEndpoint) {
|
|
96
96
|
return;
|
|
97
97
|
}
|
|
98
|
-
this.
|
|
98
|
+
const endpoint = this.endpoints.find((endp) => endp.url === newEndpoint);
|
|
99
|
+
this.setParameter('endpoint', endpoint.url);
|
|
99
100
|
this.pushHistory('dts-endpoint');
|
|
100
101
|
console.log('<dts-select-endpoint> Setting endpoint to %s', newEndpoint);
|
|
101
102
|
this.emitTo('dts-endpoint', {
|
|
102
|
-
endpoint:
|
|
103
|
+
endpoint: endpoint.url,
|
|
104
|
+
collection: endpoint.collection,
|
|
103
105
|
reload: !this.endpoint
|
|
104
106
|
});
|
|
105
|
-
this.endpoint =
|
|
107
|
+
this.endpoint = endpoint.url;
|
|
106
108
|
}
|
|
107
109
|
}
|
|
108
110
|
customElements.define('dts-select-endpoint', DtsSelectEndpoint);
|