UNPKG

@digital-blueprint/greenlight-app

Version:

[GitHub Repository](https://github.com/digital-blueprint/greenlight-app) | [npmjs package](https://www.npmjs.com/package/@digital-blueprint/greenlight-app) | [Unpkg CDN](https://unpkg.com/browse/@digital-blueprint/greenlight-app/) | [Greenlight Bundle](ht

149 lines (140 loc) 42.7 kB
let t,e,n,i,r,o=t=>t;function a(){return a=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},a.apply(this,arguments)} /*! * License: LGPL-2.1-or-later * Dependencies: * * @webcomponents/scoped-custom-element-registry: 0.0.7 (BSD-3-Clause) * @dbp-toolkit/app-shell: 0.3.3 (LGPL-2.1-or-later) * @dbp-toolkit/language-select: 0.3.1 (LGPL-2.1-or-later) * @dbp-toolkit/common: 0.3.4 (LGPL-2.1-or-later) * @dbp-toolkit/auth: 0.3.1 (LGPL-2.1-or-later) * event-target-shim: 6.0.2 (MIT) * @dbp-toolkit/notification: 0.3.1 (LGPL-2.1-or-later) * @dbp-toolkit/theme-switcher: 0.0.5 (LGPL-2.1-or-later) * path-to-regexp: 6.2.0 (MIT) * universal-router: 9.1.0 (MIT) * generateUrls: 9.1.0 (MIT) * @dbp-toolkit/matomo: 0.2.6 (LGPL-2.1-or-later) * @tugraz/web-components: 0.3.6 (LGPL-2.1-or-later) * @babel/runtime: 7.20.13 (MIT) * i18next: 22.4.9 (MIT) * @lit/reactive-element: 1.6.1 (BSD-3-Clause) * lit-html: 2.6.1 (BSD-3-Clause) * lit-element: 3.2.2 (BSD-3-Clause) * @open-wc/dedupe-mixin: 1.3.1 (MIT) * @open-wc/scoped-elements: 2.1.4 (MIT) * jose: 4.11.2 (MIT) * @dbp-toolkit/file-handling: 0.3.5 (LGPL-2.1-or-later) * webdav: 4.8.0 (MIT) * tabulator-tables: 5.1.8 (MIT) * file-saver: 2.0.5 (MIT) * @dbp-toolkit/qr-code-scanner: 0.3.1 (LGPL-2.1-or-later) * async-mutex: 0.4.0 (MIT) * pdfjs-dist: 2.16.105 (Apache-2.0) * dommatrix: 1.0.3 (MIT) * web-streams-polyfill: 3.2.1 (MIT) * mockdate: 3.0.5 (MIT) * certlogic-js: 1.2.2 (Apache-2.0) * string-similarity: 4.0.4 (ISC) * @popperjs/core: 2.11.5 (MIT) * tippy.js: 6.3.7 (MIT) * @dbp-toolkit/tooltip: 0.0.3 (LGPL-2.1-or-later) */import{D as s,i as c,g as p,e as u,f,y as d,S as l,I as m,j as h,w as v}from"./notification.23e517da.es.js";class g extends s{constructor(){super(),this.type="",this.summary="",this.body=""}static get properties(){return{type:{type:String},summary:{type:String},body:{type:String}}}connectedCallback(){super.connectedCallback()}static get styles(){return c(t||(t=o` ${0} ${0} ${0} .notification:not(:last-child) { margin-bottom: 1.5rem; } .notification h3 { font-weight: bold; margin-bottom: 3px; } .notification h3 { margin: 0 0 3px 0; font: inherit; font-weight: bold; } `),p(),u(),f())}createBodyHtml(){return document.createRange().createContextualFragment(`<slot name="body">${this.body}</slot>`)}render(){const t=this.createBodyHtml();return d(e||(e=o` <div class="columns"> <div class="column"> <div id="inline-notification" class="notification is-${0}"> ${0} ${0} </div> </div> </div> `),""!==this.type?this.type:"info",""!==this.summary?d(n||(n=o` <h3>${0}</h3> `),this.summary):"",t)}}var y="top",b="bottom",x="right",w="left",O=[y,b,x,w],E=O.reduce((function(t,e){return t.concat([e+"-start",e+"-end"])}),[]),T=[].concat(O,["auto"]).reduce((function(t,e){return t.concat([e,e+"-start",e+"-end"])}),[]),A=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function j(t){return t?(t.nodeName||"").toLowerCase():null}function C(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function L(t){return t instanceof C(t).Element||t instanceof Element}function D(t){return t instanceof C(t).HTMLElement||t instanceof HTMLElement}function k(t){return"undefined"!=typeof ShadowRoot&&(t instanceof C(t).ShadowRoot||t instanceof ShadowRoot)}var M={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var n=e.styles[t]||{},i=e.attributes[t]||{},r=e.elements[t];D(r)&&j(r)&&(Object.assign(r.style,n),Object.keys(i).forEach((function(t){var e=i[t];!1===e?r.removeAttribute(t):r.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach((function(t){var i=e.elements[t],r=e.attributes[t]||{},o=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:n[t]).reduce((function(t,e){return t[e]="",t}),{});D(i)&&j(i)&&(Object.assign(i.style,o),Object.keys(r).forEach((function(t){i.removeAttribute(t)})))}))}},requires:["computeStyles"]};function S(t){return t.split("-")[0]}var V=Math.max,H=Math.min,P=Math.round;function R(t,e){void 0===e&&(e=!1);var n=t.getBoundingClientRect(),i=1,r=1;if(D(t)&&e){var o=t.offsetHeight,a=t.offsetWidth;a>0&&(i=P(n.width)/a||1),o>0&&(r=P(n.height)/o||1)}return{width:n.width/i,height:n.height/r,top:n.top/r,right:n.right/i,bottom:n.bottom/r,left:n.left/i,x:n.left/i,y:n.top/r}}function B(t){var e=R(t),n=t.offsetWidth,i=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:i}}function _(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&k(n)){var i=e;do{if(i&&t.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function W(t){return C(t).getComputedStyle(t)}function N(t){return["table","td","th"].indexOf(j(t))>=0}function $(t){return((L(t)?t.ownerDocument:t.document)||window.document).documentElement}function U(t){return"html"===j(t)?t:t.assignedSlot||t.parentNode||(k(t)?t.host:null)||$(t)}function I(t){return D(t)&&"fixed"!==W(t).position?t.offsetParent:null}function q(t){for(var e=C(t),n=I(t);n&&N(n)&&"static"===W(n).position;)n=I(n);return n&&("html"===j(n)||"body"===j(n)&&"static"===W(n).position)?e:n||function(t){var e=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&D(t)&&"fixed"===W(t).position)return null;var n=U(t);for(k(n)&&(n=n.host);D(n)&&["html","body"].indexOf(j(n))<0;){var i=W(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||e&&"filter"===i.willChange||e&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(t)||e}function z(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function F(t,e,n){return V(t,H(e,n))}function X(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function Y(t,e){return e.reduce((function(e,n){return e[n]=t,e}),{})}var J={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,n=t.state,i=t.name,r=t.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=S(n.placement),c=z(s),p=[w,x].indexOf(s)>=0?"height":"width";if(o&&a){var u=function(t,e){return X("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:Y(t,O))}(r.padding,n),f=B(o),d="y"===c?y:w,l="y"===c?b:x,m=n.rects.reference[p]+n.rects.reference[c]-a[c]-n.rects.popper[p],h=a[c]-n.rects.reference[c],v=q(o),g=v?"y"===c?v.clientHeight||0:v.clientWidth||0:0,E=m/2-h/2,T=u[d],A=g-f[p]-u[l],j=g/2-f[p]/2+E,C=F(T,j,A),L=c;n.modifiersData[i]=((e={})[L]=C,e.centerOffset=C-j,e)}},effect:function(t){var e=t.state,n=t.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=e.elements.popper.querySelector(i)))&&_(e.elements.popper,i)&&(e.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function G(t){return t.split("-")[1]}var K={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Q(t){var e,n=t.popper,i=t.popperRect,r=t.placement,o=t.variation,a=t.offsets,s=t.position,c=t.gpuAcceleration,p=t.adaptive,u=t.roundOffsets,f=t.isFixed,d=a.x,l=void 0===d?0:d,m=a.y,h=void 0===m?0:m,v="function"==typeof u?u({x:l,y:h}):{x:l,y:h};l=v.x,h=v.y;var g=a.hasOwnProperty("x"),O=a.hasOwnProperty("y"),E=w,T=y,A=window;if(p){var j=q(n),L="clientHeight",D="clientWidth";if(j===C(n)&&"static"!==W(j=$(n)).position&&"absolute"===s&&(L="scrollHeight",D="scrollWidth"),r===y||(r===w||r===x)&&"end"===o)T=b,h-=(f&&j===A&&A.visualViewport?A.visualViewport.height:j[L])-i.height,h*=c?1:-1;if(r===w||(r===y||r===b)&&"end"===o)E=x,l-=(f&&j===A&&A.visualViewport?A.visualViewport.width:j[D])-i.width,l*=c?1:-1}var k,M=Object.assign({position:s},p&&K),S=!0===u?function(t){var e=t.x,n=t.y,i=window.devicePixelRatio||1;return{x:P(e*i)/i||0,y:P(n*i)/i||0}}({x:l,y:h}):{x:l,y:h};return l=S.x,h=S.y,c?Object.assign({},M,((k={})[T]=O?"0":"",k[E]=g?"0":"",k.transform=(A.devicePixelRatio||1)<=1?"translate("+l+"px, "+h+"px)":"translate3d("+l+"px, "+h+"px, 0)",k)):Object.assign({},M,((e={})[T]=O?h+"px":"",e[E]=g?l+"px":"",e.transform="",e))}var Z={passive:!0};var tt={left:"right",right:"left",bottom:"top",top:"bottom"};function et(t){return t.replace(/left|right|bottom|top/g,(function(t){return tt[t]}))}var nt={start:"end",end:"start"};function it(t){return t.replace(/start|end/g,(function(t){return nt[t]}))}function rt(t){var e=C(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function ot(t){return R($(t)).left+rt(t).scrollLeft}function at(t){var e=W(t),n=e.overflow,i=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+i)}function st(t){return["html","body","#document"].indexOf(j(t))>=0?t.ownerDocument.body:D(t)&&at(t)?t:st(U(t))}function ct(t,e){var n;void 0===e&&(e=[]);var i=st(t),r=i===(null==(n=t.ownerDocument)?void 0:n.body),o=C(i),a=r?[o].concat(o.visualViewport||[],at(i)?i:[]):i,s=e.concat(a);return r?s:s.concat(ct(U(a)))}function pt(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function ut(t,e){return"viewport"===e?pt(function(t){var e=C(t),n=$(t),i=e.visualViewport,r=n.clientWidth,o=n.clientHeight,a=0,s=0;return i&&(r=i.width,o=i.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=i.offsetLeft,s=i.offsetTop)),{width:r,height:o,x:a+ot(t),y:s}}(t)):L(e)?function(t){var e=R(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}(e):pt(function(t){var e,n=$(t),i=rt(t),r=null==(e=t.ownerDocument)?void 0:e.body,o=V(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=V(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),s=-i.scrollLeft+ot(t),c=-i.scrollTop;return"rtl"===W(r||n).direction&&(s+=V(n.clientWidth,r?r.clientWidth:0)-o),{width:o,height:a,x:s,y:c}}($(t)))}function ft(t,e,n){var i="clippingParents"===e?function(t){var e=ct(U(t)),n=["absolute","fixed"].indexOf(W(t).position)>=0&&D(t)?q(t):t;return L(n)?e.filter((function(t){return L(t)&&_(t,n)&&"body"!==j(t)})):[]}(t):[].concat(e),r=[].concat(i,[n]),o=r[0],a=r.reduce((function(e,n){var i=ut(t,n);return e.top=V(i.top,e.top),e.right=H(i.right,e.right),e.bottom=H(i.bottom,e.bottom),e.left=V(i.left,e.left),e}),ut(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 dt(t){var e,n=t.reference,i=t.element,r=t.placement,o=r?S(r):null,a=r?G(r):null,s=n.x+n.width/2-i.width/2,c=n.y+n.height/2-i.height/2;switch(o){case y:e={x:s,y:n.y-i.height};break;case b:e={x:s,y:n.y+n.height};break;case x:e={x:n.x+n.width,y:c};break;case w:e={x:n.x-i.width,y:c};break;default:e={x:n.x,y:n.y}}var p=o?z(o):null;if(null!=p){var u="y"===p?"height":"width";switch(a){case"start":e[p]=e[p]-(n[u]/2-i[u]/2);break;case"end":e[p]=e[p]+(n[u]/2-i[u]/2)}}return e}function lt(t,e){void 0===e&&(e={});var n=e,i=n.placement,r=void 0===i?t.placement:i,o=n.boundary,a=void 0===o?"clippingParents":o,s=n.rootBoundary,c=void 0===s?"viewport":s,p=n.elementContext,u=void 0===p?"popper":p,f=n.altBoundary,d=void 0!==f&&f,l=n.padding,m=void 0===l?0:l,h=X("number"!=typeof m?m:Y(m,O)),v="popper"===u?"reference":"popper",g=t.rects.popper,w=t.elements[d?v:u],E=ft(L(w)?w:w.contextElement||$(t.elements.popper),a,c),T=R(t.elements.reference),A=dt({reference:T,element:g,strategy:"absolute",placement:r}),j=pt(Object.assign({},g,A)),C="popper"===u?j:T,D={top:E.top-C.top+h.top,bottom:C.bottom-E.bottom+h.bottom,left:E.left-C.left+h.left,right:C.right-E.right+h.right},k=t.modifiersData.offset;if("popper"===u&&k){var M=k[r];Object.keys(D).forEach((function(t){var e=[x,b].indexOf(t)>=0?1:-1,n=[y,b].indexOf(t)>=0?"y":"x";D[t]+=M[n]*e}))}return D}function mt(t,e){void 0===e&&(e={});var n=e,i=n.placement,r=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,p=void 0===c?T:c,u=G(i),f=u?s?E:E.filter((function(t){return G(t)===u})):O,d=f.filter((function(t){return p.indexOf(t)>=0}));0===d.length&&(d=f);var l=d.reduce((function(e,n){return e[n]=lt(t,{placement:n,boundary:r,rootBoundary:o,padding:a})[S(n)],e}),{});return Object.keys(l).sort((function(t,e){return l[t]-l[e]}))}var ht={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,i=t.name;if(!e.modifiersData[i]._skip){for(var r=n.mainAxis,o=void 0===r||r,a=n.altAxis,s=void 0===a||a,c=n.fallbackPlacements,p=n.padding,u=n.boundary,f=n.rootBoundary,d=n.altBoundary,l=n.flipVariations,m=void 0===l||l,h=n.allowedAutoPlacements,v=e.options.placement,g=S(v),O=c||(g===v||!m?[et(v)]:function(t){if("auto"===S(t))return[];var e=et(t);return[it(t),e,it(e)]}(v)),E=[v].concat(O).reduce((function(t,n){return t.concat("auto"===S(n)?mt(e,{placement:n,boundary:u,rootBoundary:f,padding:p,flipVariations:m,allowedAutoPlacements:h}):n)}),[]),T=e.rects.reference,A=e.rects.popper,j=new Map,C=!0,L=E[0],D=0;D<E.length;D++){var k=E[D],M=S(k),V="start"===G(k),H=[y,b].indexOf(M)>=0,P=H?"width":"height",R=lt(e,{placement:k,boundary:u,rootBoundary:f,altBoundary:d,padding:p}),B=H?V?x:w:V?b:y;T[P]>A[P]&&(B=et(B));var _=et(B),W=[];if(o&&W.push(R[M]<=0),s&&W.push(R[B]<=0,R[_]<=0),W.every((function(t){return t}))){L=k,C=!1;break}j.set(k,W)}if(C)for(var N=function(t){var e=E.find((function(e){var n=j.get(e);if(n)return n.slice(0,t).every((function(t){return t}))}));if(e)return L=e,"break"},$=m?3:1;$>0;$--){if("break"===N($))break}e.placement!==L&&(e.modifiersData[i]._skip=!0,e.placement=L,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function vt(t,e,n){return void 0===n&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function gt(t){return[y,x,b,w].some((function(e){return t[e]>=0}))}var yt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,n=t.options,i=t.name,r=n.offset,o=void 0===r?[0,0]:r,a=T.reduce((function(t,n){return t[n]=function(t,e,n){var i=S(t),r=[w,y].indexOf(i)>=0?-1:1,o="function"==typeof n?n(Object.assign({},e,{placement:t})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*r,[w,x].indexOf(i)>=0?{x:s,y:a}:{x:a,y:s}}(n,e.rects,o),t}),{}),s=a[e.placement],c=s.x,p=s.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=c,e.modifiersData.popperOffsets.y+=p),e.modifiersData[i]=a}};var bt={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,i=t.name,r=n.mainAxis,o=void 0===r||r,a=n.altAxis,s=void 0!==a&&a,c=n.boundary,p=n.rootBoundary,u=n.altBoundary,f=n.padding,d=n.tether,l=void 0===d||d,m=n.tetherOffset,h=void 0===m?0:m,v=lt(e,{boundary:c,rootBoundary:p,padding:f,altBoundary:u}),g=S(e.placement),O=G(e.placement),E=!O,T=z(g),A="x"===T?"y":"x",j=e.modifiersData.popperOffsets,C=e.rects.reference,L=e.rects.popper,D="function"==typeof h?h(Object.assign({},e.rects,{placement:e.placement})):h,k="number"==typeof D?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),M=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,P={x:0,y:0};if(j){if(o){var R,_="y"===T?y:w,W="y"===T?b:x,N="y"===T?"height":"width",$=j[T],U=$+v[_],I=$-v[W],X=l?-L[N]/2:0,Y="start"===O?C[N]:L[N],J="start"===O?-L[N]:-C[N],K=e.elements.arrow,Q=l&&K?B(K):{width:0,height:0},Z=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},tt=Z[_],et=Z[W],nt=F(0,C[N],Q[N]),it=E?C[N]/2-X-nt-tt-k.mainAxis:Y-nt-tt-k.mainAxis,rt=E?-C[N]/2+X+nt+et+k.mainAxis:J+nt+et+k.mainAxis,ot=e.elements.arrow&&q(e.elements.arrow),at=ot?"y"===T?ot.clientTop||0:ot.clientLeft||0:0,st=null!=(R=null==M?void 0:M[T])?R:0,ct=$+rt-st,pt=F(l?H(U,$+it-st-at):U,$,l?V(I,ct):I);j[T]=pt,P[T]=pt-$}if(s){var ut,ft="x"===T?y:w,dt="x"===T?b:x,mt=j[A],ht="y"===A?"height":"width",vt=mt+v[ft],gt=mt-v[dt],yt=-1!==[y,w].indexOf(g),bt=null!=(ut=null==M?void 0:M[A])?ut:0,xt=yt?vt:mt-C[ht]-L[ht]-bt+k.altAxis,wt=yt?mt+C[ht]+L[ht]-bt-k.altAxis:gt,Ot=l&&yt?function(t,e,n){var i=F(t,e,n);return i>n?n:i}(xt,mt,wt):F(l?xt:vt,mt,l?wt:gt);j[A]=Ot,P[A]=Ot-mt}e.modifiersData[i]=P}},requiresIfExists:["offset"]};function xt(t,e,n){void 0===n&&(n=!1);var i,r,o=D(e),a=D(e)&&function(t){var e=t.getBoundingClientRect(),n=P(e.width)/t.offsetWidth||1,i=P(e.height)/t.offsetHeight||1;return 1!==n||1!==i}(e),s=$(e),c=R(t,a),p={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(o||!o&&!n)&&(("body"!==j(e)||at(s))&&(p=(i=e)!==C(i)&&D(i)?{scrollLeft:(r=i).scrollLeft,scrollTop:r.scrollTop}:rt(i)),D(e)?((u=R(e,!0)).x+=e.clientLeft,u.y+=e.clientTop):s&&(u.x=ot(s))),{x:c.left+p.scrollLeft-u.x,y:c.top+p.scrollTop-u.y,width:c.width,height:c.height}}function wt(t){var e=new Map,n=new Set,i=[];function r(t){n.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!n.has(t)){var i=e.get(t);i&&r(i)}})),i.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){n.has(t.name)||r(t)})),i}var Ot={placement:"bottom",modifiers:[],strategy:"absolute"};function Et(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function Tt(t){void 0===t&&(t={});var e=t,n=e.defaultModifiers,i=void 0===n?[]:n,r=e.defaultOptions,o=void 0===r?Ot:r;return function(t,e,n){void 0===n&&(n=o);var r,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ot,o),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},c=[],p=!1,u={state:s,setOptions:function(n){var r="function"==typeof n?n(s.options):n;f(),s.options=Object.assign({},o,s.options,r),s.scrollParents={reference:L(t)?ct(t):t.contextElement?ct(t.contextElement):[],popper:ct(e)};var a,p,d=function(t){var e=wt(t);return A.reduce((function(t,n){return t.concat(e.filter((function(t){return t.phase===n})))}),[])}((a=[].concat(i,s.options.modifiers),p=a.reduce((function(t,e){var n=t[e.name];return t[e.name]=n?Object.assign({},n,e,{options:Object.assign({},n.options,e.options),data:Object.assign({},n.data,e.data)}):e,t}),{}),Object.keys(p).map((function(t){return p[t]}))));return s.orderedModifiers=d.filter((function(t){return t.enabled})),s.orderedModifiers.forEach((function(t){var e=t.name,n=t.options,i=void 0===n?{}:n,r=t.effect;if("function"==typeof r){var o=r({state:s,name:e,instance:u,options:i}),a=function(){};c.push(o||a)}})),u.update()},forceUpdate:function(){if(!p){var t=s.elements,e=t.reference,n=t.popper;if(Et(e,n)){s.rects={reference:xt(e,q(n),"fixed"===s.options.strategy),popper:B(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(t){return s.modifiersData[t.name]=Object.assign({},t.data)}));for(var i=0;i<s.orderedModifiers.length;i++)if(!0!==s.reset){var r=s.orderedModifiers[i],o=r.fn,a=r.options,c=void 0===a?{}:a,f=r.name;"function"==typeof o&&(s=o({state:s,options:c,name:f,instance:u})||s)}else s.reset=!1,i=-1}}},update:(r=function(){return new Promise((function(t){u.forceUpdate(),t(s)}))},function(){return a||(a=new Promise((function(t){Promise.resolve().then((function(){a=void 0,t(r())}))}))),a}),destroy:function(){f(),p=!0}};if(!Et(t,e))return u;function f(){c.forEach((function(t){return t()})),c=[]}return u.setOptions(n).then((function(t){!p&&n.onFirstUpdate&&n.onFirstUpdate(t)})),u}}var At=Tt({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,n=t.instance,i=t.options,r=i.scroll,o=void 0===r||r,a=i.resize,s=void 0===a||a,c=C(e.elements.popper),p=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&p.forEach((function(t){t.addEventListener("scroll",n.update,Z)})),s&&c.addEventListener("resize",n.update,Z),function(){o&&p.forEach((function(t){t.removeEventListener("scroll",n.update,Z)})),s&&c.removeEventListener("resize",n.update,Z)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,n=t.name;e.modifiersData[n]=dt({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,n=t.options,i=n.gpuAcceleration,r=void 0===i||i,o=n.adaptive,a=void 0===o||o,s=n.roundOffsets,c=void 0===s||s,p={placement:S(e.placement),variation:G(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,Q(Object.assign({},p,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:c})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,Q(Object.assign({},p,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}},M,yt,ht,bt,J,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,n=t.name,i=e.rects.reference,r=e.rects.popper,o=e.modifiersData.preventOverflow,a=lt(e,{elementContext:"reference"}),s=lt(e,{altBoundary:!0}),c=vt(a,i),p=vt(s,r,o),u=gt(c),f=gt(p);e.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:p,isReferenceHidden:u,hasPopperEscaped:f},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}}]}),jt={passive:!0,capture:!0},Ct=function(){return document.body};function Lt(t,e,n){if(Array.isArray(t)){var i=t[e];return null==i?Array.isArray(n)?n[e]:n:i}return t}function Dt(t,e){var n={}.toString.call(t);return 0===n.indexOf("[object")&&n.indexOf(e+"]")>-1}function kt(t,e){return"function"==typeof t?t.apply(void 0,e):t}function Mt(t,e){return 0===e?t:function(i){clearTimeout(n),n=setTimeout((function(){t(i)}),e)};var n}function St(t){return[].concat(t)}function Vt(t,e){-1===t.indexOf(e)&&t.push(e)}function Ht(t){return[].slice.call(t)}function Pt(t){return Object.keys(t).reduce((function(e,n){return void 0!==t[n]&&(e[n]=t[n]),e}),{})}function Rt(){return document.createElement("div")}function Bt(t){return["Element","Fragment"].some((function(e){return Dt(t,e)}))}function _t(t){return Bt(t)?[t]:function(t){return Dt(t,"NodeList")}(t)?Ht(t):Array.isArray(t)?t:Ht(document.querySelectorAll(t))}function Wt(t,e){t.forEach((function(t){t&&(t.style.transitionDuration=e+"ms")}))}function Nt(t,e){t.forEach((function(t){t&&t.setAttribute("data-state",e)}))}function $t(t,e,n){var i=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(e){t[i](e,n)}))}function Ut(t,e){for(var n=e;n;){var i;if(t.contains(n))return!0;n=null==n.getRootNode||null==(i=n.getRootNode())?void 0:i.host}return!1}var It={isTouch:!1},qt=0;function zt(){It.isTouch||(It.isTouch=!0,window.performance&&document.addEventListener("mousemove",Ft))}function Ft(){var t=performance.now();t-qt<20&&(It.isTouch=!1,document.removeEventListener("mousemove",Ft)),qt=t}function Xt(){var t,e=document.activeElement;if((t=e)&&t._tippy&&t._tippy.reference===t){var n=e._tippy;e.blur&&!n.state.isVisible&&e.blur()}}var Yt=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto,Jt=Object.assign({appendTo:Ct,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},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),Gt=Object.keys(Jt);function Kt(t){var e=(t.plugins||[]).reduce((function(e,n){var i,r=n.name,o=n.defaultValue;r&&(e[r]=void 0!==t[r]?t[r]:null!=(i=Jt[r])?i:o);return e}),{});return Object.assign({},t,e)}function Qt(t,e){var n=Object.assign({},e,{content:kt(e.content,[t])},e.ignoreAttributes?{}:function(t,e){return(e?Object.keys(Kt(Object.assign({},Jt,{plugins:e}))):Gt).reduce((function(e,n){var i=(t.getAttribute("data-tippy-"+n)||"").trim();if(!i)return e;if("content"===n)e[n]=i;else try{e[n]=JSON.parse(i)}catch(t){e[n]=i}return e}),{})}(t,e.plugins));return n.aria=Object.assign({},Jt.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?e.interactive:n.aria.expanded,content:"auto"===n.aria.content?e.interactive?null:"describedby":n.aria.content},n}function Zt(t,e){t.innerHTML=e}function te(t){var e=Rt();return!0===t?e.className="tippy-arrow":(e.className="tippy-svg-arrow",Bt(t)?e.appendChild(t):Zt(e,t)),e}function ee(t,e){Bt(e.content)?(Zt(t,""),t.appendChild(e.content)):"function"!=typeof e.content&&(e.allowHTML?Zt(t,e.content):t.textContent=e.content)}function ne(t){var e=t.firstElementChild,n=Ht(e.children);return{box:e,content:n.find((function(t){return t.classList.contains("tippy-content")})),arrow:n.find((function(t){return t.classList.contains("tippy-arrow")||t.classList.contains("tippy-svg-arrow")})),backdrop:n.find((function(t){return t.classList.contains("tippy-backdrop")}))}}function ie(t){var e=Rt(),n=Rt();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var i=Rt();function r(n,i){var r=ne(e),o=r.box,a=r.content,s=r.arrow;i.theme?o.setAttribute("data-theme",i.theme):o.removeAttribute("data-theme"),"string"==typeof i.animation?o.setAttribute("data-animation",i.animation):o.removeAttribute("data-animation"),i.inertia?o.setAttribute("data-inertia",""):o.removeAttribute("data-inertia"),o.style.maxWidth="number"==typeof i.maxWidth?i.maxWidth+"px":i.maxWidth,i.role?o.setAttribute("role",i.role):o.removeAttribute("role"),n.content===i.content&&n.allowHTML===i.allowHTML||ee(a,t.props),i.arrow?s?n.arrow!==i.arrow&&(o.removeChild(s),o.appendChild(te(i.arrow))):o.appendChild(te(i.arrow)):s&&o.removeChild(s)}return i.className="tippy-content",i.setAttribute("data-state","hidden"),ee(i,t.props),e.appendChild(n),n.appendChild(i),r(t.props,t.props),{popper:e,onUpdate:r}}ie.$$tippy=!0;var re=1,oe=[],ae=[];function se(t,e){var n,i,r,o,a,s,c,p,u=Qt(t,Object.assign({},Jt,Kt(Pt(e)))),f=!1,d=!1,l=!1,m=!1,h=[],v=Mt(X,u.interactiveDebounce),g=re++,y=(p=u.plugins).filter((function(t,e){return p.indexOf(t)===e})),b={id:g,reference:t,popper:Rt(),popperInstance:null,props:u,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:y,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(i),cancelAnimationFrame(r)},setProps:function(e){if(b.state.isDestroyed)return;V("onBeforeUpdate",[b,e]),z();var n=b.props,i=Qt(t,Object.assign({},n,Pt(e),{ignoreAttributes:!0}));b.props=i,q(),n.interactiveDebounce!==i.interactiveDebounce&&(R(),v=Mt(X,i.interactiveDebounce));n.triggerTarget&&!i.triggerTarget?St(n.triggerTarget).forEach((function(t){t.removeAttribute("aria-expanded")})):i.triggerTarget&&t.removeAttribute("aria-expanded");P(),S(),O&&O(n,i);b.popperInstance&&(K(),Z().forEach((function(t){requestAnimationFrame(t._tippy.popperInstance.forceUpdate)})));V("onAfterUpdate",[b,e])},setContent:function(t){b.setProps({content:t})},show:function(){var t=b.state.isVisible,e=b.state.isDestroyed,n=!b.state.isEnabled,i=It.isTouch&&!b.props.touch,r=Lt(b.props.duration,0,Jt.duration);if(t||e||n||i)return;if(L().hasAttribute("disabled"))return;if(V("onShow",[b],!1),!1===b.props.onShow(b))return;b.state.isVisible=!0,C()&&(w.style.visibility="visible");S(),N(),b.state.isMounted||(w.style.transition="none");if(C()){var o=k(),a=o.box,c=o.content;Wt([a,c],0)}s=function(){var t;if(b.state.isVisible&&!m){if(m=!0,w.offsetHeight,w.style.transition=b.props.moveTransition,C()&&b.props.animation){var e=k(),n=e.box,i=e.content;Wt([n,i],r),Nt([n,i],"visible")}H(),P(),Vt(ae,b),null==(t=b.popperInstance)||t.forceUpdate(),V("onMount",[b]),b.props.animation&&C()&&function(t,e){U(t,e)}(r,(function(){b.state.isShown=!0,V("onShown",[b])}))}},function(){var t,e=b.props.appendTo,n=L();t=b.props.interactive&&e===Ct||"parent"===e?n.parentNode:kt(e,[n]);t.contains(w)||t.appendChild(w);b.state.isMounted=!0,K()}()},hide:function(){var t=!b.state.isVisible,e=b.state.isDestroyed,n=!b.state.isEnabled,i=Lt(b.props.duration,1,Jt.duration);if(t||e||n)return;if(V("onHide",[b],!1),!1===b.props.onHide(b))return;b.state.isVisible=!1,b.state.isShown=!1,m=!1,f=!1,C()&&(w.style.visibility="hidden");if(R(),$(),S(!0),C()){var r=k(),o=r.box,a=r.content;b.props.animation&&(Wt([o,a],i),Nt([o,a],"hidden"))}H(),P(),b.props.animation?C()&&function(t,e){U(t,(function(){!b.state.isVisible&&w.parentNode&&w.parentNode.contains(w)&&e()}))}(i,b.unmount):b.unmount()},hideWithInteractivity:function(t){D().addEventListener("mousemove",v),Vt(oe,v),v(t)},enable:function(){b.state.isEnabled=!0},disable:function(){b.hide(),b.state.isEnabled=!1},unmount:function(){b.state.isVisible&&b.hide();if(!b.state.isMounted)return;Q(),Z().forEach((function(t){t._tippy.unmount()})),w.parentNode&&w.parentNode.removeChild(w);ae=ae.filter((function(t){return t!==b})),b.state.isMounted=!1,V("onHidden",[b])},destroy:function(){if(b.state.isDestroyed)return;b.clearDelayTimeouts(),b.unmount(),z(),delete t._tippy,b.state.isDestroyed=!0,V("onDestroy",[b])}};if(!u.render)return b;var x=u.render(b),w=x.popper,O=x.onUpdate;w.setAttribute("data-tippy-root",""),w.id="tippy-"+b.id,b.popper=w,t._tippy=b,w._tippy=b;var E=y.map((function(t){return t.fn(b)})),T=t.hasAttribute("aria-expanded");return q(),P(),S(),V("onCreate",[b]),u.showOnCreate&&tt(),w.addEventListener("mouseenter",(function(){b.props.interactive&&b.state.isVisible&&b.clearDelayTimeouts()})),w.addEventListener("mouseleave",(function(){b.props.interactive&&b.props.trigger.indexOf("mouseenter")>=0&&D().addEventListener("mousemove",v)})),b;function A(){var t=b.props.touch;return Array.isArray(t)?t:[t,0]}function j(){return"hold"===A()[0]}function C(){var t;return!(null==(t=b.props.render)||!t.$$tippy)}function L(){return c||t}function D(){var t,e,n=L().parentNode;return n?null!=(e=St(n)[0])&&null!=(t=e.ownerDocument)&&t.body?e.ownerDocument:document:document}function k(){return ne(w)}function M(t){return b.state.isMounted&&!b.state.isVisible||It.isTouch||o&&"focus"===o.type?0:Lt(b.props.delay,t?0:1,Jt.delay)}function S(t){void 0===t&&(t=!1),w.style.pointerEvents=b.props.interactive&&!t?"":"none",w.style.zIndex=""+b.props.zIndex}function V(t,e,n){var i;(void 0===n&&(n=!0),E.forEach((function(n){n[t]&&n[t].apply(n,e)})),n)&&(i=b.props)[t].apply(i,e)}function H(){var e=b.props.aria;if(e.content){var n="aria-"+e.content,i=w.id;St(b.props.triggerTarget||t).forEach((function(t){var e=t.getAttribute(n);if(b.state.isVisible)t.setAttribute(n,e?e+" "+i:i);else{var r=e&&e.replace(i,"").trim();r?t.setAttribute(n,r):t.removeAttribute(n)}}))}}function P(){!T&&b.props.aria.expanded&&St(b.props.triggerTarget||t).forEach((function(t){b.props.interactive?t.setAttribute("aria-expanded",b.state.isVisible&&t===L()?"true":"false"):t.removeAttribute("aria-expanded")}))}function R(){D().removeEventListener("mousemove",v),oe=oe.filter((function(t){return t!==v}))}function B(e){if(!It.isTouch||!l&&"mousedown"!==e.type){var n=e.composedPath&&e.composedPath()[0]||e.target;if(!b.props.interactive||!Ut(w,n)){if(St(b.props.triggerTarget||t).some((function(t){return Ut(t,n)}))){if(It.isTouch)return;if(b.state.isVisible&&b.props.trigger.indexOf("click")>=0)return}else V("onClickOutside",[b,e]);!0===b.props.hideOnClick&&(b.clearDelayTimeouts(),b.hide(),d=!0,setTimeout((function(){d=!1})),b.state.isMounted||$())}}}function _(){l=!0}function W(){l=!1}function N(){var t=D();t.addEventListener("mousedown",B,!0),t.addEventListener("touchend",B,jt),t.addEventListener("touchstart",W,jt),t.addEventListener("touchmove",_,jt)}function $(){var t=D();t.removeEventListener("mousedown",B,!0),t.removeEventListener("touchend",B,jt),t.removeEventListener("touchstart",W,jt),t.removeEventListener("touchmove",_,jt)}function U(t,e){var n=k().box;function i(t){t.target===n&&($t(n,"remove",i),e())}if(0===t)return e();$t(n,"remove",a),$t(n,"add",i),a=i}function I(e,n,i){void 0===i&&(i=!1),St(b.props.triggerTarget||t).forEach((function(t){t.addEventListener(e,n,i),h.push({node:t,eventType:e,handler:n,options:i})}))}function q(){var t;j()&&(I("touchstart",F,{passive:!0}),I("touchend",Y,{passive:!0})),(t=b.props.trigger,t.split(/\s+/).filter(Boolean)).forEach((function(t){if("manual"!==t)switch(I(t,F),t){case"mouseenter":I("mouseleave",Y);break;case"focus":I(Yt?"focusout":"blur",J);break;case"focusin":I("focusout",J)}}))}function z(){h.forEach((function(t){var e=t.node,n=t.eventType,i=t.handler,r=t.options;e.removeEventListener(n,i,r)})),h=[]}function F(t){var e,n=!1;if(b.state.isEnabled&&!G(t)&&!d){var i="focus"===(null==(e=o)?void 0:e.type);o=t,c=t.currentTarget,P(),!b.state.isVisible&&Dt(t,"MouseEvent")&&oe.forEach((function(e){return e(t)})),"click"===t.type&&(b.props.trigger.indexOf("mouseenter")<0||f)&&!1!==b.props.hideOnClick&&b.state.isVisible?n=!0:tt(t),"click"===t.type&&(f=!n),n&&!i&&et(t)}}function X(t){var e=t.target,n=L().contains(e)||w.contains(e);if("mousemove"!==t.type||!n){var i=Z().concat(w).map((function(t){var e,n=null==(e=t._tippy.popperInstance)?void 0:e.state;return n?{popperRect:t.getBoundingClientRect(),popperState:n,props:u}:null})).filter(Boolean);(function(t,e){var n=e.clientX,i=e.clientY;return t.every((function(t){var e=t.popperRect,r=t.popperState,o=t.props.interactiveBorder,a=r.placement.split("-")[0],s=r.modifiersData.offset;if(!s)return!0;var c="bottom"===a?s.top.y:0,p="top"===a?s.bottom.y:0,u="right"===a?s.left.x:0,f="left"===a?s.right.x:0,d=e.top-i+c>o,l=i-e.bottom-p>o,m=e.left-n+u>o,h=n-e.right-f>o;return d||l||m||h}))})(i,t)&&(R(),et(t))}}function Y(t){G(t)||b.props.trigger.indexOf("click")>=0&&f||(b.props.interactive?b.hideWithInteractivity(t):et(t))}function J(t){b.props.trigger.indexOf("focusin")<0&&t.target!==L()||b.props.interactive&&t.relatedTarget&&w.contains(t.relatedTarget)||et(t)}function G(t){return!!It.isTouch&&j()!==t.type.indexOf("touch")>=0}function K(){Q();var e=b.props,n=e.popperOptions,i=e.placement,r=e.offset,o=e.getReferenceClientRect,a=e.moveTransition,c=C()?ne(w).arrow:null,p=o?{getBoundingClientRect:o,contextElement:o.contextElement||L()}:t,u={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(t){var e=t.state;if(C()){var n=k().box;["placement","reference-hidden","escaped"].forEach((function(t){"placement"===t?n.setAttribute("data-placement",e.placement):e.attributes.popper["data-popper-"+t]?n.setAttribute("data-"+t,""):n.removeAttribute("data-"+t)})),e.attributes.popper={}}}},f=[{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}},u];C()&&c&&f.push({name:"arrow",options:{element:c,padding:3}}),f.push.apply(f,(null==n?void 0:n.modifiers)||[]),b.popperInstance=At(p,w,Object.assign({},n,{placement:i,onFirstUpdate:s,modifiers:f}))}function Q(){b.popperInstance&&(b.popperInstance.destroy(),b.popperInstance=null)}function Z(){return Ht(w.querySelectorAll("[data-tippy-root]"))}function tt(t){b.clearDelayTimeouts(),t&&V("onTrigger",[b,t]),N();var e=M(!0),i=A(),r=i[0],o=i[1];It.isTouch&&"hold"===r&&o&&(e=o),e?n=setTimeout((function(){b.show()}),e):b.show()}function et(t){if(b.clearDelayTimeouts(),V("onUntrigger",[b,t]),b.state.isVisible){if(!(b.props.trigger.indexOf("mouseenter")>=0&&b.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(t.type)>=0&&f)){var e=M(!1);e?i=setTimeout((function(){b.state.isVisible&&b.hide()}),e):r=requestAnimationFrame((function(){b.hide()}))}}else $()}}function ce(t,e){void 0===e&&(e={});var n=Jt.plugins.concat(e.plugins||[]);document.addEventListener("touchstart",zt,jt),window.addEventListener("blur",Xt);var i=Object.assign({},e,{plugins:n}),r=_t(t).reduce((function(t,e){var n=e&&se(e,i);return n&&t.push(n),t}),[]);return Bt(t)?r[0]:r}ce.defaultProps=Jt,ce.setDefaultProps=function(t){Object.keys(t).forEach((function(e){Jt[e]=t[e]}))},ce.currentInput=It,Object.assign({},M,{effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow)}}),ce.setDefaultProps({render:ie});class pe extends(l(s)){constructor(){super(),this.textContent="missing text.",this.interactive=!1}static get scopedElements(){return{"dbp-icon":m}}static get properties(){return a({},super.properties,{textContent:{type:String,attribute:"text-content"},interactive:{type:Boolean,attribute:!0}})}firstUpdated(){this.setOrUpdateTippy()}setOrUpdateTippy(){this._("#info-tooltip-icon")&&(this._("#info-tooltip-icon")._tippy?this._("#info-tooltip-icon")._tippy.setProps({content:this.textContent,appendTo:this.shadowRoot,interactive:this.interactive,allowHTML:!!this.interactive,hideOnClick:!this.interactive}):ce(this._("#info-tooltip-icon"),{content:this.textContent,appendTo:this.shadowRoot,interactive:this.interactive,allowHTML:!!this.interactive,hideOnClick:!this.interactive}))}static get styles(){return c(i||(i=o` ${0} ${0} ${0} .info-icon { display: inline; opacity: 0.7; font-size: 18px; padding: 4.5px 7px; } a { text-decoration-line: underline; text-decoration-style: dotted; } .tippy-box { background-color: var(--dbp-content-surface); color: var(--dbp-on-content-surface); } .tippy-arrow { color: var(--dbp-content); } `),p(),u(!1),h())}render(){const t=v("shared/tippy.e012f5144451ed83.css");return this.setOrUpdateTippy(),d(r||(r=o` <link rel="stylesheet" href="${0}" /> <div class="info-icon" id="info-tooltip-icon"> <dbp-icon name="information-circle"></dbp-icon> </div> `),t)}}class ue extends(l(s)){constructor(){super(),this.textContent="missing text.",this.iconName=""}static get scopedElements(){return{"dbp-icon":m}}static get properties(){return a({},super.properties,{textContent:{type:String,attribute:"text-content"},iconName:{type:String,attribute:"icon-name"}})}firstUpdated(){this.setOrUpdateTippy()}setOrUpdateTippy(){this._("#tooltip-icon")&&(this._("#tooltip-icon")._tippy?this._("#tooltip-icon")._tippy.setProps({content:this.textContent,appendTo:this.shadowRoot}):ce(this._("#tooltip-icon"),{content:this.textContent,appendTo:this.shadowRoot}))}static get styles(){return c(_t6||o` ${0} ${0} ${0} .tooltip-icon { display: inline; color: var(--dbp-content); } `,p(),u(!1),h())}render(){const t=v("shared/tippy.e012f5144451ed83.css");return this.setOrUpdateTippy(),d(_t7||o` <link rel="stylesheet" href="${0}" /> <div class="tooltip-icon"> ${0} </div> `,t,this.iconName?d(_t8||o` <dbp-icon name="${0}" id="tooltip-icon"></dbp-icon> `,this.iconName):d(_t9||o` <!-- https://www.svgrepo.com/svg/89416/skull --> <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" id="tooltip-icon" x="0" y="0" viewBox="0 0 360 360" xml:space="preserve"> <g> <path d="M180,0C97.157,0,30,67.157,30,150v109.667h0.016c0.337,13.559,7.045,22.475,19.879,26.753L105,305v30 c0,13.75,11.25,25,25,25h100c13.75,0,25-11.25,25-25v-30l55.051-18.668c12.834-4.278,19.597-13.106,19.934-26.665H330V150 C330,67.157,262.843,0,180,0z M300,258.063l-54.635,18.526L225,283.495V305v25h-90v-25v-21.544l-20.415-6.884L60,258.168V150 c0-32.053,12.482-62.188,35.147-84.853C117.813,42.482,147.947,30,180,30s62.188,12.482,84.853,35.147 C287.518,87.813,300,117.947,300,150V258.063z" /> <path d="M160,281c0,11.046,8.954,20,20,20s20-8.954,20-20s-20-40-20-40S160,269.954,160,281z" /> <path d="M125,161c-24.854,0-45,20.146-45,45s20.146,45,45,45s45-20.146,45-45S149.854,161,125,161z M125,221c-8.271,0-15-6.729-15-15s6.729-15,15-15s15,6.729,15,15S133.271,221,125,221z" /> <path d="M190,206c0,24.854,20.146,45,45,45s45-20.146,45-45s-20.147-45-45-45S190,181.146,190,206z M250,206c0,8.271-6.729,15-15,15s-15-6.729-15-15s6.729-15,15-15S250,197.729,250,206z" /> </g> </svg> `))}}export{g as I,pe as a}; //# sourceMappingURL=tooltip.bfc4555f.es.js.map