UNPKG

graphdb-workbench

Version:
2 lines 38.5 kB
export const __webpack_id__=58163;export const __webpack_ids__=[58163];export const __webpack_modules__={37792:(t,e,n)=>{n.d(e,{T:()=>ne});var r=n(44123);class i{constructor(){this.hideOnClick=!1,this.interactive=!0,this.appendTo=()=>document.body,this.trigger="manual",this.allowHTML=!0,this.theme="onto-tooltip",this.onShow=()=>document.querySelectorAll(".jfk-tooltip").forEach(t=>t.classList.add("hidden")),this.onHide=()=>document.querySelectorAll(".jfk-tooltip").forEach(t=>t.classList.remove("hidden"))}setHideOnClick(t){return this.hideOnClick=t,this}setContent(t){return this.content=t,this}setTrigger(t){return this.trigger=t||"manual",this}setPlacement(t){return this.placement=t||r.O.RIGHT,this}setAllowHTML(t){return this.allowHTML=t,this}setTheme(t){return this.theme=t||"onto-tooltip",this}setAppendTo(t){return this.appendTo=this.getAppendToTarget(t),this}getAppendToTarget(t){return"parent"===t?t:()=>document.body}}var o="top",a="bottom",s="right",c="left",u="auto",p=[o,a,s,c],f="start",l="end",d="viewport",h="popper",m=p.reduce(function(t,e){return t.concat([e+"-"+f,e+"-"+l])},[]),v=[].concat(p,[u]).reduce(function(t,e){return t.concat([e,e+"-"+f,e+"-"+l])},[]),g=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function b(t){return t?(t.nodeName||"").toLowerCase():null}function y(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function w(t){return t instanceof y(t).Element||t instanceof Element}function x(t){return t instanceof y(t).HTMLElement||t instanceof HTMLElement}function O(t){return"undefined"!=typeof ShadowRoot&&(t instanceof y(t).ShadowRoot||t instanceof ShadowRoot)}var T={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]||{},r=e.attributes[t]||{},i=e.elements[t];x(i)&&b(i)&&(Object.assign(i.style,n),Object.keys(r).forEach(function(t){var e=r[t];!1===e?i.removeAttribute(t):i.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 r=e.elements[t],i=e.attributes[t]||{},o=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:n[t]).reduce(function(t,e){return t[e]="",t},{});x(r)&&b(r)&&(Object.assign(r.style,o),Object.keys(i).forEach(function(t){r.removeAttribute(t)}))})}},requires:["computeStyles"]};function A(t){return t.split("-")[0]}var E=Math.max,C=Math.min,L=Math.round;function j(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function D(){return!/^((?!chrome|android).)*safari/i.test(j())}function k(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=!1);var r=t.getBoundingClientRect(),i=1,o=1;e&&x(t)&&(i=t.offsetWidth>0&&L(r.width)/t.offsetWidth||1,o=t.offsetHeight>0&&L(r.height)/t.offsetHeight||1);var a=(w(t)?y(t):window).visualViewport,s=!D()&&n,c=(r.left+(s&&a?a.offsetLeft:0))/i,u=(r.top+(s&&a?a.offsetTop:0))/o,p=r.width/i,f=r.height/o;return{width:p,height:f,top:u,right:c+p,bottom:u+f,left:c,x:c,y:u}}function S(t){var e=k(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function M(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&O(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function _(t){return y(t).getComputedStyle(t)}function P(t){return["table","td","th"].indexOf(b(t))>=0}function R(t){return((w(t)?t.ownerDocument:t.document)||window.document).documentElement}function B(t){return"html"===b(t)?t:t.assignedSlot||t.parentNode||(O(t)?t.host:null)||R(t)}function H(t){return x(t)&&"fixed"!==_(t).position?t.offsetParent:null}function I(t){for(var e=y(t),n=H(t);n&&P(n)&&"static"===_(n).position;)n=H(n);return n&&("html"===b(n)||"body"===b(n)&&"static"===_(n).position)?e:n||function(t){var e=/firefox/i.test(j());if(/Trident/i.test(j())&&x(t)&&"fixed"===_(t).position)return null;var n=B(t);for(O(n)&&(n=n.host);x(n)&&["html","body"].indexOf(b(n))<0;){var r=_(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||e&&"filter"===r.willChange||e&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(t)||e}function N(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function V(t,e,n){return E(t,C(e,n))}function W(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function q(t,e){return e.reduce(function(e,n){return e[n]=t,e},{})}var U={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,n=t.state,r=t.name,i=t.options,u=n.elements.arrow,f=n.modifiersData.popperOffsets,l=A(n.placement),d=N(l),h=[c,s].indexOf(l)>=0?"height":"width";if(u&&f){var m=function(t,e){return W("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:q(t,p))}(i.padding,n),v=S(u),g="y"===d?o:c,b="y"===d?a:s,y=n.rects.reference[h]+n.rects.reference[d]-f[d]-n.rects.popper[h],w=f[d]-n.rects.reference[d],x=I(u),O=x?"y"===d?x.clientHeight||0:x.clientWidth||0:0,T=y/2-w/2,E=m[g],C=O-v[h]-m[b],L=O/2-v[h]/2+T,j=V(E,L,C),D=d;n.modifiersData[r]=((e={})[D]=j,e.centerOffset=j-L,e)}},effect:function(t){var e=t.state,n=t.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=e.elements.popper.querySelector(r)))&&M(e.elements.popper,r)&&(e.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function F(t){return t.split("-")[1]}var $={top:"auto",right:"auto",bottom:"auto",left:"auto"};function z(t){var e,n=t.popper,r=t.popperRect,i=t.placement,u=t.variation,p=t.offsets,f=t.position,d=t.gpuAcceleration,h=t.adaptive,m=t.roundOffsets,v=t.isFixed,g=p.x,b=void 0===g?0:g,w=p.y,x=void 0===w?0:w,O="function"==typeof m?m({x:b,y:x}):{x:b,y:x};b=O.x,x=O.y;var T=p.hasOwnProperty("x"),A=p.hasOwnProperty("y"),E=c,C=o,j=window;if(h){var D=I(n),k="clientHeight",S="clientWidth";D===y(n)&&"static"!==_(D=R(n)).position&&"absolute"===f&&(k="scrollHeight",S="scrollWidth"),(i===o||(i===c||i===s)&&u===l)&&(C=a,x-=(v&&D===j&&j.visualViewport?j.visualViewport.height:D[k])-r.height,x*=d?1:-1),i!==c&&(i!==o&&i!==a||u!==l)||(E=s,b-=(v&&D===j&&j.visualViewport?j.visualViewport.width:D[S])-r.width,b*=d?1:-1)}var M,P=Object.assign({position:f},h&&$),B=!0===m?function(t,e){var n=t.x,r=t.y,i=e.devicePixelRatio||1;return{x:L(n*i)/i||0,y:L(r*i)/i||0}}({x:b,y:x},y(n)):{x:b,y:x};return b=B.x,x=B.y,d?Object.assign({},P,((M={})[C]=A?"0":"",M[E]=T?"0":"",M.transform=(j.devicePixelRatio||1)<=1?"translate("+b+"px, "+x+"px)":"translate3d("+b+"px, "+x+"px, 0)",M)):Object.assign({},P,((e={})[C]=A?x+"px":"",e[E]=T?b+"px":"",e.transform="",e))}var G={passive:!0},J={left:"right",right:"left",bottom:"top",top:"bottom"};function X(t){return t.replace(/left|right|bottom|top/g,function(t){return J[t]})}var Y={start:"end",end:"start"};function K(t){return t.replace(/start|end/g,function(t){return Y[t]})}function Q(t){var e=y(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Z(t){return k(R(t)).left+Q(t).scrollLeft}function tt(t){var e=_(t),n=e.overflow,r=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function et(t){return["html","body","#document"].indexOf(b(t))>=0?t.ownerDocument.body:x(t)&&tt(t)?t:et(B(t))}function nt(t,e){var n;void 0===e&&(e=[]);var r=et(t),i=r===(null==(n=t.ownerDocument)?void 0:n.body),o=y(r),a=i?[o].concat(o.visualViewport||[],tt(r)?r:[]):r,s=e.concat(a);return i?s:s.concat(nt(B(a)))}function rt(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function it(t,e,n){return e===d?rt(function(t,e){var n=y(t),r=R(t),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,c=0;if(i){o=i.width,a=i.height;var u=D();(u||!u&&"fixed"===e)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:o,height:a,x:s+Z(t),y:c}}(t,n)):w(e)?function(t,e){var n=k(t,!1,"fixed"===e);return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}(e,n):rt(function(t){var e,n=R(t),r=Q(t),i=null==(e=t.ownerDocument)?void 0:e.body,o=E(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=E(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+Z(t),c=-r.scrollTop;return"rtl"===_(i||n).direction&&(s+=E(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:c}}(R(t)))}function ot(t){var e,n=t.reference,r=t.element,i=t.placement,u=i?A(i):null,p=i?F(i):null,d=n.x+n.width/2-r.width/2,h=n.y+n.height/2-r.height/2;switch(u){case o:e={x:d,y:n.y-r.height};break;case a:e={x:d,y:n.y+n.height};break;case s:e={x:n.x+n.width,y:h};break;case c:e={x:n.x-r.width,y:h};break;default:e={x:n.x,y:n.y}}var m=u?N(u):null;if(null!=m){var v="y"===m?"height":"width";switch(p){case f:e[m]=e[m]-(n[v]/2-r[v]/2);break;case l:e[m]=e[m]+(n[v]/2-r[v]/2)}}return e}function at(t,e){void 0===e&&(e={});var n=e,r=n.placement,i=void 0===r?t.placement:r,c=n.strategy,u=void 0===c?t.strategy:c,f=n.boundary,l=void 0===f?"clippingParents":f,m=n.rootBoundary,v=void 0===m?d:m,g=n.elementContext,y=void 0===g?h:g,O=n.altBoundary,T=void 0!==O&&O,A=n.padding,L=void 0===A?0:A,j=W("number"!=typeof L?L:q(L,p)),D=y===h?"reference":h,S=t.rects.popper,P=t.elements[T?D:y],H=function(t,e,n,r){var i="clippingParents"===e?function(t){var e=nt(B(t)),n=["absolute","fixed"].indexOf(_(t).position)>=0&&x(t)?I(t):t;return w(n)?e.filter(function(t){return w(t)&&M(t,n)&&"body"!==b(t)}):[]}(t):[].concat(e),o=[].concat(i,[n]),a=o[0],s=o.reduce(function(e,n){var i=it(t,n,r);return e.top=E(i.top,e.top),e.right=C(i.right,e.right),e.bottom=C(i.bottom,e.bottom),e.left=E(i.left,e.left),e},it(t,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}(w(P)?P:P.contextElement||R(t.elements.popper),l,v,u),N=k(t.elements.reference),V=ot({reference:N,element:S,placement:i}),U=rt(Object.assign({},S,V)),F=y===h?U:N,$={top:H.top-F.top+j.top,bottom:F.bottom-H.bottom+j.bottom,left:H.left-F.left+j.left,right:F.right-H.right+j.right},z=t.modifiersData.offset;if(y===h&&z){var G=z[i];Object.keys($).forEach(function(t){var e=[s,a].indexOf(t)>=0?1:-1,n=[o,a].indexOf(t)>=0?"y":"x";$[t]+=G[n]*e})}return $}function st(t,e){void 0===e&&(e={});var n=e,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,u=void 0===c?v:c,f=F(r),l=f?s?m:m.filter(function(t){return F(t)===f}):p,d=l.filter(function(t){return u.indexOf(t)>=0});0===d.length&&(d=l);var h=d.reduce(function(e,n){return e[n]=at(t,{placement:n,boundary:i,rootBoundary:o,padding:a})[A(n)],e},{});return Object.keys(h).sort(function(t,e){return h[t]-h[e]})}var ct={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var i=n.mainAxis,p=void 0===i||i,l=n.altAxis,d=void 0===l||l,h=n.fallbackPlacements,m=n.padding,v=n.boundary,g=n.rootBoundary,b=n.altBoundary,y=n.flipVariations,w=void 0===y||y,x=n.allowedAutoPlacements,O=e.options.placement,T=A(O),E=h||(T!==O&&w?function(t){if(A(t)===u)return[];var e=X(t);return[K(t),e,K(e)]}(O):[X(O)]),C=[O].concat(E).reduce(function(t,n){return t.concat(A(n)===u?st(e,{placement:n,boundary:v,rootBoundary:g,padding:m,flipVariations:w,allowedAutoPlacements:x}):n)},[]),L=e.rects.reference,j=e.rects.popper,D=new Map,k=!0,S=C[0],M=0;M<C.length;M++){var _=C[M],P=A(_),R=F(_)===f,B=[o,a].indexOf(P)>=0,H=B?"width":"height",I=at(e,{placement:_,boundary:v,rootBoundary:g,altBoundary:b,padding:m}),N=B?R?s:c:R?a:o;L[H]>j[H]&&(N=X(N));var V=X(N),W=[];if(p&&W.push(I[P]<=0),d&&W.push(I[N]<=0,I[V]<=0),W.every(function(t){return t})){S=_,k=!1;break}D.set(_,W)}if(k)for(var q=function(t){var e=C.find(function(e){var n=D.get(e);if(n)return n.slice(0,t).every(function(t){return t})});if(e)return S=e,"break"},U=w?3:1;U>0&&"break"!==q(U);U--);e.placement!==S&&(e.modifiersData[r]._skip=!0,e.placement=S,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function ut(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 pt(t){return[o,s,a,c].some(function(e){return t[e]>=0})}function ft(t,e,n){void 0===n&&(n=!1);var r,i,o=x(e),a=x(e)&&function(t){var e=t.getBoundingClientRect(),n=L(e.width)/t.offsetWidth||1,r=L(e.height)/t.offsetHeight||1;return 1!==n||1!==r}(e),s=R(e),c=k(t,a,n),u={scrollLeft:0,scrollTop:0},p={x:0,y:0};return(o||!o&&!n)&&(("body"!==b(e)||tt(s))&&(u=(r=e)!==y(r)&&x(r)?{scrollLeft:(i=r).scrollLeft,scrollTop:i.scrollTop}:Q(r)),x(e)?((p=k(e,!0)).x+=e.clientLeft,p.y+=e.clientTop):s&&(p.x=Z(s))),{x:c.left+u.scrollLeft-p.x,y:c.top+u.scrollTop-p.y,width:c.width,height:c.height}}function lt(t){var e=new Map,n=new Set,r=[];function i(t){n.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!n.has(t)){var r=e.get(t);r&&i(r)}}),r.push(t)}return t.forEach(function(t){e.set(t.name,t)}),t.forEach(function(t){n.has(t.name)||i(t)}),r}var dt={placement:"bottom",modifiers:[],strategy:"absolute"};function ht(){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 mt(t){void 0===t&&(t={});var e=t,n=e.defaultModifiers,r=void 0===n?[]:n,i=e.defaultOptions,o=void 0===i?dt:i;return function(t,e,n){void 0===n&&(n=o);var i,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},dt,o),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},c=[],u=!1,p={state:s,setOptions:function(n){var i="function"==typeof n?n(s.options):n;f(),s.options=Object.assign({},o,s.options,i),s.scrollParents={reference:w(t)?nt(t):t.contextElement?nt(t.contextElement):[],popper:nt(e)};var a,u,l=function(t){var e=lt(t);return g.reduce(function(t,n){return t.concat(e.filter(function(t){return t.phase===n}))},[])}((a=[].concat(r,s.options.modifiers),u=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(u).map(function(t){return u[t]})));return s.orderedModifiers=l.filter(function(t){return t.enabled}),s.orderedModifiers.forEach(function(t){var e=t.name,n=t.options,r=void 0===n?{}:n,i=t.effect;if("function"==typeof i){var o=i({state:s,name:e,instance:p,options:r});c.push(o||function(){})}}),p.update()},forceUpdate:function(){if(!u){var t=s.elements,e=t.reference,n=t.popper;if(ht(e,n)){s.rects={reference:ft(e,I(n),"fixed"===s.options.strategy),popper:S(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 r=0;r<s.orderedModifiers.length;r++)if(!0!==s.reset){var i=s.orderedModifiers[r],o=i.fn,a=i.options,c=void 0===a?{}:a,f=i.name;"function"==typeof o&&(s=o({state:s,options:c,name:f,instance:p})||s)}else s.reset=!1,r=-1}}},update:(i=function(){return new Promise(function(t){p.forceUpdate(),t(s)})},function(){return a||(a=new Promise(function(t){Promise.resolve().then(function(){a=void 0,t(i())})})),a}),destroy:function(){f(),u=!0}};if(!ht(t,e))return p;function f(){c.forEach(function(t){return t()}),c=[]}return p.setOptions(n).then(function(t){!u&&n.onFirstUpdate&&n.onFirstUpdate(t)}),p}}var vt=mt({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,n=t.instance,r=t.options,i=r.scroll,o=void 0===i||i,a=r.resize,s=void 0===a||a,c=y(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&u.forEach(function(t){t.addEventListener("scroll",n.update,G)}),s&&c.addEventListener("resize",n.update,G),function(){o&&u.forEach(function(t){t.removeEventListener("scroll",n.update,G)}),s&&c.removeEventListener("resize",n.update,G)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,n=t.name;e.modifiersData[n]=ot({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,n=t.options,r=n.gpuAcceleration,i=void 0===r||r,o=n.adaptive,a=void 0===o||o,s=n.roundOffsets,c=void 0===s||s,u={placement:A(e.placement),variation:F(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,z(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:c})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,z(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}},T,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,n=t.options,r=t.name,i=n.offset,a=void 0===i?[0,0]:i,u=v.reduce(function(t,n){return t[n]=function(t,e,n){var r=A(t),i=[c,o].indexOf(r)>=0?-1:1,a="function"==typeof n?n(Object.assign({},e,{placement:t})):n,u=a[0],p=a[1];return u=u||0,p=(p||0)*i,[c,s].indexOf(r)>=0?{x:p,y:u}:{x:u,y:p}}(n,e.rects,a),t},{}),p=u[e.placement],f=p.x,l=p.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=f,e.modifiersData.popperOffsets.y+=l),e.modifiersData[r]=u}},ct,{name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,r=t.name,i=n.mainAxis,u=void 0===i||i,p=n.altAxis,l=void 0!==p&&p,d=n.boundary,h=n.rootBoundary,m=n.altBoundary,v=n.padding,g=n.tether,b=void 0===g||g,y=n.tetherOffset,w=void 0===y?0:y,x=at(e,{boundary:d,rootBoundary:h,padding:v,altBoundary:m}),O=A(e.placement),T=F(e.placement),L=!T,j=N(O),D="x"===j?"y":"x",k=e.modifiersData.popperOffsets,M=e.rects.reference,_=e.rects.popper,P="function"==typeof w?w(Object.assign({},e.rects,{placement:e.placement})):w,R="number"==typeof P?{mainAxis:P,altAxis:P}:Object.assign({mainAxis:0,altAxis:0},P),B=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,H={x:0,y:0};if(k){if(u){var W,q="y"===j?o:c,U="y"===j?a:s,$="y"===j?"height":"width",z=k[j],G=z+x[q],J=z-x[U],X=b?-_[$]/2:0,Y=T===f?M[$]:_[$],K=T===f?-_[$]:-M[$],Q=e.elements.arrow,Z=b&&Q?S(Q):{width:0,height:0},tt=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},et=tt[q],nt=tt[U],rt=V(0,M[$],Z[$]),it=L?M[$]/2-X-rt-et-R.mainAxis:Y-rt-et-R.mainAxis,ot=L?-M[$]/2+X+rt+nt+R.mainAxis:K+rt+nt+R.mainAxis,st=e.elements.arrow&&I(e.elements.arrow),ct=st?"y"===j?st.clientTop||0:st.clientLeft||0:0,ut=null!=(W=null==B?void 0:B[j])?W:0,pt=z+ot-ut,ft=V(b?C(G,z+it-ut-ct):G,z,b?E(J,pt):J);k[j]=ft,H[j]=ft-z}if(l){var lt,dt="x"===j?o:c,ht="x"===j?a:s,mt=k[D],vt="y"===D?"height":"width",gt=mt+x[dt],bt=mt-x[ht],yt=-1!==[o,c].indexOf(O),wt=null!=(lt=null==B?void 0:B[D])?lt:0,xt=yt?gt:mt-M[vt]-_[vt]-wt+R.altAxis,Ot=yt?mt+M[vt]+_[vt]-wt-R.altAxis:bt,Tt=b&&yt?function(t,e,n){var r=V(t,e,n);return r>n?n:r}(xt,mt,Ot):V(b?xt:gt,mt,b?Ot:bt);k[D]=Tt,H[D]=Tt-mt}e.modifiersData[r]=H}},requiresIfExists:["offset"]},U,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,n=t.name,r=e.rects.reference,i=e.rects.popper,o=e.modifiersData.preventOverflow,a=at(e,{elementContext:"reference"}),s=at(e,{altBoundary:!0}),c=ut(a,r),u=ut(s,i,o),p=pt(c),f=pt(u);e.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:p,hasPopperEscaped:f},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":f})}}]}),gt="tippy-content",bt="tippy-arrow",yt="tippy-svg-arrow",wt={passive:!0,capture:!0},xt=function(){return document.body};function Ot(t,e,n){if(Array.isArray(t)){var r=t[e];return null==r?Array.isArray(n)?n[e]:n:r}return t}function Tt(t,e){var n={}.toString.call(t);return 0===n.indexOf("[object")&&n.indexOf(e+"]")>-1}function At(t,e){return"function"==typeof t?t.apply(void 0,e):t}function Et(t,e){return 0===e?t:function(r){clearTimeout(n),n=setTimeout(function(){t(r)},e)};var n}function Ct(t){return[].concat(t)}function Lt(t,e){-1===t.indexOf(e)&&t.push(e)}function jt(t){return[].slice.call(t)}function Dt(t){return Object.keys(t).reduce(function(e,n){return void 0!==t[n]&&(e[n]=t[n]),e},{})}function kt(){return document.createElement("div")}function St(t){return["Element","Fragment"].some(function(e){return Tt(t,e)})}function Mt(t,e){t.forEach(function(t){t&&(t.style.transitionDuration=e+"ms")})}function _t(t,e){t.forEach(function(t){t&&t.setAttribute("data-state",e)})}function Pt(t,e,n){var r=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(e){t[r](e,n)})}function Rt(t,e){for(var n=e;n;){var r;if(t.contains(n))return!0;n=null==n.getRootNode||null==(r=n.getRootNode())?void 0:r.host}return!1}var Bt={isTouch:!1},Ht=0;function It(){Bt.isTouch||(Bt.isTouch=!0,window.performance&&document.addEventListener("mousemove",Nt))}function Nt(){var t=performance.now();t-Ht<20&&(Bt.isTouch=!1,document.removeEventListener("mousemove",Nt)),Ht=t}function Vt(){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 Wt=!("undefined"==typeof window||"undefined"==typeof document||!window.msCrypto),qt=Object.assign({appendTo:xt,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}),Ut=Object.keys(qt);function Ft(t){var e=(t.plugins||[]).reduce(function(e,n){var r,i=n.name,o=n.defaultValue;return i&&(e[i]=void 0!==t[i]?t[i]:null!=(r=qt[i])?r:o),e},{});return Object.assign({},t,e)}function $t(t,e){var n=Object.assign({},e,{content:At(e.content,[t])},e.ignoreAttributes?{}:function(t,e){return(e?Object.keys(Ft(Object.assign({},qt,{plugins:e}))):Ut).reduce(function(e,n){var r=(t.getAttribute("data-tippy-"+n)||"").trim();if(!r)return e;if("content"===n)e[n]=r;else try{e[n]=JSON.parse(r)}catch(t){e[n]=r}return e},{})}(t,e.plugins));return n.aria=Object.assign({},qt.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 Gt(t){var e=kt();return!0===t?e.className=bt:(e.className=yt,St(t)?e.appendChild(t):zt(e,t)),e}function Jt(t,e){St(e.content)?(zt(t,""),t.appendChild(e.content)):"function"!=typeof e.content&&(e.allowHTML?zt(t,e.content):t.textContent=e.content)}function Xt(t){var e=t.firstElementChild,n=jt(e.children);return{box:e,content:n.find(function(t){return t.classList.contains(gt)}),arrow:n.find(function(t){return t.classList.contains(bt)||t.classList.contains(yt)}),backdrop:n.find(function(t){return t.classList.contains("tippy-backdrop")})}}function Yt(t){var e=kt(),n=kt();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=kt();function i(n,r){var i=Xt(e),o=i.box,a=i.content,s=i.arrow;r.theme?o.setAttribute("data-theme",r.theme):o.removeAttribute("data-theme"),"string"==typeof r.animation?o.setAttribute("data-animation",r.animation):o.removeAttribute("data-animation"),r.inertia?o.setAttribute("data-inertia",""):o.removeAttribute("data-inertia"),o.style.maxWidth="number"==typeof r.maxWidth?r.maxWidth+"px":r.maxWidth,r.role?o.setAttribute("role",r.role):o.removeAttribute("role"),n.content===r.content&&n.allowHTML===r.allowHTML||Jt(a,t.props),r.arrow?s?n.arrow!==r.arrow&&(o.removeChild(s),o.appendChild(Gt(r.arrow))):o.appendChild(Gt(r.arrow)):s&&o.removeChild(s)}return r.className=gt,r.setAttribute("data-state","hidden"),Jt(r,t.props),e.appendChild(n),n.appendChild(r),i(t.props,t.props),{popper:e,onUpdate:i}}Yt.$$tippy=!0;var Kt=1,Qt=[],Zt=[];function te(t,e){var n,r,i,o,a,s,c,u,p=$t(t,Object.assign({},qt,Ft(Dt(e)))),f=!1,l=!1,d=!1,h=!1,m=[],v=Et(G,p.interactiveDebounce),g=Kt++,b=(u=p.plugins).filter(function(t,e){return u.indexOf(t)===e}),y={id:g,reference:t,popper:kt(),popperInstance:null,props:p,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:b,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(r),cancelAnimationFrame(i)},setProps:function(e){if(!y.state.isDestroyed){_("onBeforeUpdate",[y,e]),$();var n=y.props,r=$t(t,Object.assign({},n,Dt(e),{ignoreAttributes:!0}));y.props=r,F(),n.interactiveDebounce!==r.interactiveDebounce&&(B(),v=Et(G,r.interactiveDebounce)),n.triggerTarget&&!r.triggerTarget?Ct(n.triggerTarget).forEach(function(t){t.removeAttribute("aria-expanded")}):r.triggerTarget&&t.removeAttribute("aria-expanded"),R(),M(),O&&O(n,r),y.popperInstance&&(K(),Z().forEach(function(t){requestAnimationFrame(t._tippy.popperInstance.forceUpdate)})),_("onAfterUpdate",[y,e])}},setContent:function(t){y.setProps({content:t})},show:function(){var t=y.state.isVisible,e=y.state.isDestroyed,n=!y.state.isEnabled,r=Bt.isTouch&&!y.props.touch,i=Ot(y.props.duration,0,qt.duration);if(!(t||e||n||r||j().hasAttribute("disabled")||(_("onShow",[y],!1),!1===y.props.onShow(y)))){if(y.state.isVisible=!0,L()&&(x.style.visibility="visible"),M(),V(),y.state.isMounted||(x.style.transition="none"),L()){var o=k();Mt([o.box,o.content],0)}var a,c,u;s=function(){var t;if(y.state.isVisible&&!h){if(h=!0,x.style.transition=y.props.moveTransition,L()&&y.props.animation){var e=k(),n=e.box,r=e.content;Mt([n,r],i),_t([n,r],"visible")}P(),R(),Lt(Zt,y),null==(t=y.popperInstance)||t.forceUpdate(),_("onMount",[y]),y.props.animation&&L()&&function(t){q(t,function(){y.state.isShown=!0,_("onShown",[y])})}(i)}},c=y.props.appendTo,u=j(),(a=y.props.interactive&&c===xt||"parent"===c?u.parentNode:At(c,[u])).contains(x)||a.appendChild(x),y.state.isMounted=!0,K()}},hide:function(){var t=!y.state.isVisible,e=y.state.isDestroyed,n=!y.state.isEnabled,r=Ot(y.props.duration,1,qt.duration);if(!(t||e||n)&&(_("onHide",[y],!1),!1!==y.props.onHide(y))){if(y.state.isVisible=!1,y.state.isShown=!1,h=!1,f=!1,L()&&(x.style.visibility="hidden"),B(),W(),M(!0),L()){var i=k(),o=i.box,a=i.content;y.props.animation&&(Mt([o,a],r),_t([o,a],"hidden"))}P(),R(),y.props.animation?L()&&function(t,e){q(t,function(){!y.state.isVisible&&x.parentNode&&x.parentNode.contains(x)&&e()})}(r,y.unmount):y.unmount()}},hideWithInteractivity:function(t){D().addEventListener("mousemove",v),Lt(Qt,v),v(t)},enable:function(){y.state.isEnabled=!0},disable:function(){y.hide(),y.state.isEnabled=!1},unmount:function(){y.state.isVisible&&y.hide(),y.state.isMounted&&(Q(),Z().forEach(function(t){t._tippy.unmount()}),x.parentNode&&x.parentNode.removeChild(x),Zt=Zt.filter(function(t){return t!==y}),y.state.isMounted=!1,_("onHidden",[y]))},destroy:function(){y.state.isDestroyed||(y.clearDelayTimeouts(),y.unmount(),$(),delete t._tippy,y.state.isDestroyed=!0,_("onDestroy",[y]))}};if(!p.render)return y;var w=p.render(y),x=w.popper,O=w.onUpdate;x.setAttribute("data-tippy-root",""),x.id="tippy-"+y.id,y.popper=x,t._tippy=y,x._tippy=y;var T=b.map(function(t){return t.fn(y)}),A=t.hasAttribute("aria-expanded");return F(),R(),M(),_("onCreate",[y]),p.showOnCreate&&tt(),x.addEventListener("mouseenter",function(){y.props.interactive&&y.state.isVisible&&y.clearDelayTimeouts()}),x.addEventListener("mouseleave",function(){y.props.interactive&&y.props.trigger.indexOf("mouseenter")>=0&&D().addEventListener("mousemove",v)}),y;function E(){var t=y.props.touch;return Array.isArray(t)?t:[t,0]}function C(){return"hold"===E()[0]}function L(){var t;return!(null==(t=y.props.render)||!t.$$tippy)}function j(){return c||t}function D(){var t,e,n=j().parentNode;return n&&null!=(e=Ct(n)[0])&&null!=(t=e.ownerDocument)&&t.body?e.ownerDocument:document}function k(){return Xt(x)}function S(t){return y.state.isMounted&&!y.state.isVisible||Bt.isTouch||o&&"focus"===o.type?0:Ot(y.props.delay,t?0:1,qt.delay)}function M(t){void 0===t&&(t=!1),x.style.pointerEvents=y.props.interactive&&!t?"":"none",x.style.zIndex=""+y.props.zIndex}function _(t,e,n){var r;void 0===n&&(n=!0),T.forEach(function(n){n[t]&&n[t].apply(n,e)}),n&&(r=y.props)[t].apply(r,e)}function P(){var e=y.props.aria;if(e.content){var n="aria-"+e.content,r=x.id;Ct(y.props.triggerTarget||t).forEach(function(t){var e=t.getAttribute(n);if(y.state.isVisible)t.setAttribute(n,e?e+" "+r:r);else{var i=e&&e.replace(r,"").trim();i?t.setAttribute(n,i):t.removeAttribute(n)}})}}function R(){!A&&y.props.aria.expanded&&Ct(y.props.triggerTarget||t).forEach(function(t){y.props.interactive?t.setAttribute("aria-expanded",y.state.isVisible&&t===j()?"true":"false"):t.removeAttribute("aria-expanded")})}function B(){D().removeEventListener("mousemove",v),Qt=Qt.filter(function(t){return t!==v})}function H(e){if(!Bt.isTouch||!d&&"mousedown"!==e.type){var n=e.composedPath&&e.composedPath()[0]||e.target;if(!y.props.interactive||!Rt(x,n)){if(Ct(y.props.triggerTarget||t).some(function(t){return Rt(t,n)})){if(Bt.isTouch)return;if(y.state.isVisible&&y.props.trigger.indexOf("click")>=0)return}else _("onClickOutside",[y,e]);!0===y.props.hideOnClick&&(y.clearDelayTimeouts(),y.hide(),l=!0,setTimeout(function(){l=!1}),y.state.isMounted||W())}}}function I(){d=!0}function N(){d=!1}function V(){var t=D();t.addEventListener("mousedown",H,!0),t.addEventListener("touchend",H,wt),t.addEventListener("touchstart",N,wt),t.addEventListener("touchmove",I,wt)}function W(){var t=D();t.removeEventListener("mousedown",H,!0),t.removeEventListener("touchend",H,wt),t.removeEventListener("touchstart",N,wt),t.removeEventListener("touchmove",I,wt)}function q(t,e){var n=k().box;function r(t){t.target===n&&(Pt(n,"remove",r),e())}if(0===t)return e();Pt(n,"remove",a),Pt(n,"add",r),a=r}function U(e,n,r){void 0===r&&(r=!1),Ct(y.props.triggerTarget||t).forEach(function(t){t.addEventListener(e,n,r),m.push({node:t,eventType:e,handler:n,options:r})})}function F(){var t;C()&&(U("touchstart",z,{passive:!0}),U("touchend",J,{passive:!0})),(t=y.props.trigger,t.split(/\s+/).filter(Boolean)).forEach(function(t){if("manual"!==t)switch(U(t,z),t){case"mouseenter":U("mouseleave",J);break;case"focus":U(Wt?"focusout":"blur",X);break;case"focusin":U("focusout",X)}})}function $(){m.forEach(function(t){var e=t.node,n=t.eventType,r=t.handler,i=t.options;e.removeEventListener(n,r,i)}),m=[]}function z(t){var e,n=!1;if(y.state.isEnabled&&!Y(t)&&!l){var r="focus"===(null==(e=o)?void 0:e.type);o=t,c=t.currentTarget,R(),!y.state.isVisible&&Tt(t,"MouseEvent")&&Qt.forEach(function(e){return e(t)}),"click"===t.type&&(y.props.trigger.indexOf("mouseenter")<0||f)&&!1!==y.props.hideOnClick&&y.state.isVisible?n=!0:tt(t),"click"===t.type&&(f=!n),n&&!r&&et(t)}}function G(t){var e=t.target,n=j().contains(e)||x.contains(e);if("mousemove"!==t.type||!n){var r=Z().concat(x).map(function(t){var e,n=null==(e=t._tippy.popperInstance)?void 0:e.state;return n?{popperRect:t.getBoundingClientRect(),popperState:n,props:p}:null}).filter(Boolean);(function(t,e){var n=e.clientX,r=e.clientY;return t.every(function(t){var e=t.popperRect,i=t.popperState,o=t.props.interactiveBorder,a=i.placement.split("-")[0],s=i.modifiersData.offset;if(!s)return!0;var c="bottom"===a?s.top.y:0,u="top"===a?s.bottom.y:0,p="right"===a?s.left.x:0,f="left"===a?s.right.x:0,l=e.top-r+c>o,d=r-e.bottom-u>o,h=e.left-n+p>o,m=n-e.right-f>o;return l||d||h||m})})(r,t)&&(B(),et(t))}}function J(t){Y(t)||y.props.trigger.indexOf("click")>=0&&f||(y.props.interactive?y.hideWithInteractivity(t):et(t))}function X(t){y.props.trigger.indexOf("focusin")<0&&t.target!==j()||y.props.interactive&&t.relatedTarget&&x.contains(t.relatedTarget)||et(t)}function Y(t){return!!Bt.isTouch&&C()!==t.type.indexOf("touch")>=0}function K(){Q();var e=y.props,n=e.popperOptions,r=e.placement,i=e.offset,o=e.getReferenceClientRect,a=e.moveTransition,c=L()?Xt(x).arrow:null,u=o?{getBoundingClientRect:o,contextElement:o.contextElement||j()}:t,p=[{name:"offset",options:{offset:i}},{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(L()){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={}}}}];L()&&c&&p.push({name:"arrow",options:{element:c,padding:3}}),p.push.apply(p,(null==n?void 0:n.modifiers)||[]),y.popperInstance=vt(u,x,Object.assign({},n,{placement:r,onFirstUpdate:s,modifiers:p}))}function Q(){y.popperInstance&&(y.popperInstance.destroy(),y.popperInstance=null)}function Z(){return jt(x.querySelectorAll("[data-tippy-root]"))}function tt(t){y.clearDelayTimeouts(),t&&_("onTrigger",[y,t]),V();var e=S(!0),r=E(),i=r[0],o=r[1];Bt.isTouch&&"hold"===i&&o&&(e=o),e?n=setTimeout(function(){y.show()},e):y.show()}function et(t){if(y.clearDelayTimeouts(),_("onUntrigger",[y,t]),y.state.isVisible){if(!(y.props.trigger.indexOf("mouseenter")>=0&&y.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(t.type)>=0&&f)){var e=S(!1);e?r=setTimeout(function(){y.state.isVisible&&y.hide()},e):i=requestAnimationFrame(function(){y.hide()})}}else W()}}function ee(t,e){void 0===e&&(e={});var n=qt.plugins.concat(e.plugins||[]);document.addEventListener("touchstart",It,wt),window.addEventListener("blur",Vt);var r,i=Object.assign({},e,{plugins:n}),o=(r=t,St(r)?[r]:function(t){return Tt(t,"NodeList")}(r)?jt(r):Array.isArray(r)?r:jt(document.querySelectorAll(r))).reduce(function(t,e){var n=e&&te(e,i);return n&&t.push(n),t},[]);return St(t)?o[0]:o}ee.defaultProps=qt,ee.setDefaultProps=function(t){Object.keys(t).forEach(function(e){qt[e]=t[e]})},ee.currentInput=Bt,Object.assign({},T,{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)}}),ee.setDefaultProps({render:Yt});class ne{static getTooltipInstance(t){return t._tippy}static createTooltip(t){return t.classList.add(ne.TOOLTIP_CLASS),ee(t,ne.getConfig(t))}static getOrCreateTooltipInstance(t){return ne.getTooltipInstance(t)||ne.createTooltip(t)}static getConfig(t){return(new i).setContent(t.getAttribute(ne.ATTR_CONTENT)).setTheme(t.getAttribute(ne.ATTR_THEME)).setPlacement(t.getAttribute(ne.ATTR_PLACEMENT)).setTrigger(t.getAttribute(ne.ATTR_TRIGGER)).setAppendTo(t.getAttribute(ne.ATTR_APPEND_TO))}static updateTooltipContent(t,e){const n=ne.getTooltipInstance(t);n&&""!==e&&n.setContent(e)}static destroyTooltip(t){var e;const n=ne.getTooltipInstance(t);t.classList.contains(ne.TOOLTIP_CLASS)&&n&&!(null===(e=n.state)||void 0===e?void 0:e.isDestroyed)&&n.destroy()}static getTooltipTarget(t){for(;t&&!t.getAttribute(ne.ATTR_CONTENT);)t=t.parentElement;return t}}ne.ATTR_CONTENT="tooltip-content",ne.ATTR_THEME="tooltip-theme",ne.ATTR_PLACEMENT="tooltip-placement",ne.ATTR_TRIGGER="tooltip-trigger",ne.ATTR_APPEND_TO="tooltip-append-to",ne.TOOLTIP_CLASS="onto-tooltip"},44123:(t,e,n)=>{var r;n.d(e,{O:()=>r}),function(t){t.LEFT="left",t.RIGHT="right",t.TOP="top",t.BOTTOM="bottom",t.AUTO="auto"}(r||(r={}))},77050:(t,e,n)=>{n.d(e,{T:()=>a,s:()=>i});var r=n(57154);function i(t){const e=document.createElement("textarea");return e.innerHTML=t,e.value}class o{constructor(){this.languageContextService=r.ServiceProvider.get(r.LanguageContextService),this.translationChangedObservers={},this.defaultBundle=this.languageContextService.getDefaultBundle(),this.subscribeToBundleChange()}onTranslate(t,e=[],n=()=>{}){this.translationChangedObservers[t]=this.translationChangedObservers[t]||[];const r={parameters:e,callback:n};return this.translationChangedObservers[t].push(r),n(this.translate(t,e)),()=>{const e=this.translationChangedObservers[t].indexOf(r);-1!==e&&this.translationChangedObservers[t].splice(e,1)}}translate(t,e){return this.translateInLocale(t,e)}translateInLocale(t,e){let n=this.translateFromBundle(this.currentBundle,t);return n||(n=this.translateFromBundle(this.defaultBundle,t)),n?(n=this.applyParameters(n,e),i(n)):(console.warn(`Missing translation for key: [${t}]`),t)}translateFromBundle(t,e){if(!t)return;let n=t[e];return"string"!=typeof n&&(n=this.translateAsJsonObject(t,e)),n}translateAsJsonObject(t,e){let n=e.split(".");return this.getTranslation(t,n)}getTranslation(t,e){if(!e||!t)return;const n=t[e.splice(0,1)[0]];return 0===e.length?n:"string"!=typeof n?e.length>0?this.getTranslation(n,e):n:void 0}applyParameters(t,e){return e?e.reduce((t,e)=>o.replaceAll(t,e),t):t}static replaceAll(t,e){return e?t.split(`{{${e.key}}}`).join(e.value):t}notifyTranslationsChanged(){Object.keys(this.translationChangedObservers).forEach(t=>{(this.translationChangedObservers[t]||[]).forEach(e=>e.callback(this.translate(t,e.parameters)))})}subscribeToBundleChange(){this.languageChangeSubscription=this.languageContextService.onLanguageBundleChanged(t=>{t&&(this.currentBundle=t,this.notifyTranslationsChanged())})}destroy(){this.languageChangeSubscription&&this.languageChangeSubscription()}}const a=new o}}; //# sourceMappingURL=58163.747b20ea052b22b24bd0.bundle.js.map