@memori.ai/memori-webcomponent 9.0.0-rc.3 → 9.0.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.
@@ -1065,7 +1065,7 @@ ${o("memoriBlockedGiverHelper")}`]}),children:(0,ed.jsxs)("div",{className:"bloc
1065
1065
  </div>
1066
1066
  </body>
1067
1067
  </html>
1068
- `})(i,r,a),s=window.open("","_blank","width=800,height=600,scrollbars=yes,resizable=yes");if(!s)throw Error("Popup blocked! Please enable popups to export PDF.");s.document.write(o),s.document.close(),s.document.title=r,setTimeout(()=>{s&&!s.closed&&(s.focus(),s.print(),setTimeout(()=>{s&&!s.closed&&s.close()},1e3))},500),g(v7({description:m("exportChatHistory.success")||"Chat exported to PDF successfully",severity:"success"})),P("export-pdf")}catch(e){console.error("PDF export error:",e),g(v7({description:m("exportChatHistory.error")||"Failed to export chat to PDF. Please try again.",severity:"error"}))}finally{x(!1)}},H=(0,ep.useMemo)(()=>{if(t&&n){if(t.ownerUserID)return`${null!=a?a:"https://www.aisuru.com"}/${"it"===f.language?"it":"en"}/shared/${t.ownerUserID}/${t.memoriID}/${n}`;if(t.exposed)return`${null!=a?a:"https://www.aisuru.com"}/${"it"===f.language?"it":"en"}/shared/${t.ownerUserName}/${t.name}/${n}`}},[t,n,a,f.language]),G=(0,ed.jsxs)(ed.Fragment,{children:[(0,ed.jsxs)("div",{className:"memori-share-button--dropdown-section memori-share-button--dropdown-section-primary",children:[t&&n&&H&&(0,ed.jsxs)("button",{type:"button",className:(b(tA))("memori-share-button--inline-item",{"memori-share-button--menu-item--flash":"share-chat"===T}),onClick:()=>{window.open(H,"_blank"),P("share-chat")},children:[(0,ed.jsx)($s,{}),(0,ed.jsx)("span",{children:m("widget.shareChat")||"Share chat"})]}),l&&l.length>0&&(0,ed.jsxs)("button",{type:"button",className:(b(tA))("memori-share-button--inline-item",{"memori-share-button--menu-item--flash":"export-pdf"===T}),onClick:z,disabled:_,children:[(0,ed.jsx)(Hh,{}),(0,ed.jsx)("span",{children:_?m("exportChatHistory.exporting")||"Exporting...":m("exportChatHistory.exportPDF")||"Export chat as PDF"})]}),(0,ed.jsxs)("button",{type:"button",className:(b(tA))("memori-share-button--inline-item",{"memori-share-button--copy-item--success":"success"===E,"memori-share-button--copy-item--error":"error"===E}),onClick:D,children:["success"===E?(0,ed.jsx)(Lo,{strokeWidth:2.5}):(0,ed.jsx)(HZ,{}),(0,ed.jsx)("span",{children:"success"===E?m("copied"):"error"===E?m("copyFailed",{defaultValue:"Could not copy"}):m("copyToClipboard")||void 0})]})]}),(0,ed.jsx)("div",{className:"memori-share-button--dropdown-divider"}),(0,ed.jsx)("div",{className:"memori-share-button--dropdown-section memori-share-button--dropdown-section-social",children:F.map(e=>{let t=e.icon;return(0,ed.jsxs)("button",{type:"button",className:(b(tA))("memori-share-button--inline-item",{"memori-share-button--menu-item--flash":T===e.id}),onClick:()=>{j(e),P(e.id)},children:[(0,ed.jsx)(t,{"aria-hidden":!0}),(0,ed.jsx)("span",{children:e.title})]},e.id)})}),o&&(0,ed.jsxs)(ed.Fragment,{children:[(0,ed.jsx)("div",{className:"memori-share-button--dropdown-divider"}),(0,ed.jsxs)("div",{className:"memori-share-button--qr-content",children:[(0,ed.jsx)($v,{id:"qr-canvas",value:null!=v?v:"",size:96,bgColor:"#ffffff",fgColor:"#000000",level:"H",includeMargin:!1,imageSettings:{src:B,x:void 0,y:void 0,height:24,width:24,excavate:!0}}),(0,ed.jsxs)("button",{type:"button",className:"memori-share-button--qr-download",onClick:U,children:[(0,ed.jsx)(HQ,{"aria-hidden":!0}),(0,ed.jsx)("span",{children:m("widget.downloadQrCode")||m("download",{defaultValue:"Download"})})]})]})]})]});return"inline"===p?(0,ed.jsx)("div",{className:(b(tA))("memori-share-button--inline-list",u),children:G}):(0,ed.jsxs)(xp,{onOpenChange:e=>{S(e),e||(R(),O(),A("idle"))},className:(b(tA))("memori-share-button",{"memori-share-button--align-left":"left"===s},u),children:[(0,ed.jsx)(_z,{content:m("widget.share")||void 0,placement:"bottom",children:(0,ed.jsx)(xp.Trigger,{showChevron:!1,className:"memori-share-button--trigger",render:e=>(0,ed.jsx)(Gi,{...e,variant:h,active:w,title:String(d||m("widget.share")||"Share"),"aria-label":String(d||m("widget.share")||"Share"),icon:(0,ed.jsx)($s,{"aria-hidden":!0}),className:(b(tA))({"memori-share-button--trigger-menu-item":"menu-item"===c}),children:"menu-item"===c||d?(0,ed.jsx)("span",{className:"memori-header--action-label",children:d||m("widget.share")}):void 0})})}),(0,ed.jsx)(xp.Menu,{className:"memori-share-button--dropdown-menu",children:(0,ed.jsxs)("div",{ref:N,className:"memori-share-button--dropdown-content",onMouseLeave:()=>{var e;let t=document.activeElement;t instanceof HTMLElement&&(null==(e=N.current)?void 0:e.contains(t))&&t.blur()},children:[(0,ed.jsxs)("div",{className:"memori-share-button--dropdown-section",children:[t&&n&&H&&(0,ed.jsx)(xp.Item,{closeOnClick:!1,className:(b(tA))("memori-share-button--menu-item",{"memori-share-button--menu-item--flash":"share-chat"===T}),onClick:()=>{window.open(H,"_blank"),P("share-chat")},icon:(0,ed.jsx)($s,{}),children:(0,ed.jsx)("span",{className:"memori-share-button--dropdown-item-content",children:m("widget.shareChat")||"Share chat"})},"shared"),l&&l.length>0&&(0,ed.jsx)(xp.Item,{closeOnClick:!1,className:(b(tA))("memori-share-button--menu-item",{"memori-share-button--menu-item--flash":"export-pdf"===T}),onClick:z,disabled:_,icon:(0,ed.jsx)(Hh,{}),children:(0,ed.jsx)("span",{className:"memori-share-button--dropdown-item-content",children:_?m("exportChatHistory.exporting")||"Exporting...":m("exportChatHistory.exportPDF")||"Export chat as PDF"})},"export-pdf"),(0,ed.jsx)(xp.Item,{closeOnClick:!1,className:(b(tA))("memori-share-button--menu-item","memori-share-button--copy-item",{"memori-share-button--copy-item--success":"success"===E,"memori-share-button--copy-item--error":"error"===E}),onClick:D,icon:"success"===E?(0,ed.jsx)(Lo,{className:"memori-share-button--copy-icon","aria-hidden":!0,strokeWidth:2.5}):(0,ed.jsx)(HZ,{className:"memori-share-button--copy-icon","aria-hidden":!0}),children:(0,ed.jsx)("span",{className:"memori-share-button--dropdown-item-content memori-share-button--copy-label","aria-live":"polite",children:"success"===E?m("copied"):"error"===E?m("copyFailed",{defaultValue:"Could not copy"}):m("copyToClipboard")||void 0})})]}),(0,ed.jsx)("div",{className:"memori-share-button--dropdown-divider"}),(0,ed.jsx)("div",{className:"memori-share-button--dropdown-section",children:F.map(e=>{let t=e.icon;return(0,ed.jsx)(xp.Item,{closeOnClick:!1,className:(b(tA))("memori-share-button--menu-item",{"memori-share-button--menu-item--flash":T===e.id}),onClick:()=>{j(e),P(e.id)},icon:(0,ed.jsx)(t,{}),children:(0,ed.jsx)("span",{className:"memori-share-button--dropdown-item-content",children:e.title})},e.id)})}),o&&(0,ed.jsxs)(ed.Fragment,{children:[(0,ed.jsx)("div",{className:"memori-share-button--dropdown-divider"}),(0,ed.jsx)(xp.Item,{closeOnClick:!1,className:(b(tA))("memori-share-button--menu-item","memori-share-button--qr-item",{"memori-share-button--menu-item--flash":"qr-download"===T}),onClick:U,children:(0,ed.jsxs)("div",{className:"memori-share-button--qr-content",children:[(0,ed.jsx)($v,{id:"qr-canvas",value:null!=v?v:"",size:128,bgColor:"#ffffff",fgColor:"#000000",level:"H",includeMargin:!1,imageSettings:{src:B,x:void 0,y:void 0,height:32,width:32,excavate:!0}}),(0,ed.jsxs)("button",{type:"button",className:"memori-share-button--qr-download",onClick:e=>{e.stopPropagation(),U()},children:[(0,ed.jsx)(HQ,{"aria-hidden":!0}),(0,ed.jsx)("span",{children:String(m("widget.downloadQrCode")||m("download",{defaultValue:"Download"}))})]})]})})]})]})})]})},ep=eu("85Hg2");let $E=Math.PI/180;var ep=(eu("85Hg2"),eu("85Hg2"));let $A=(0,ep.createContext)(null),$T=$A.Provider;function $I(){let e=(0,ep.useContext)($A);if(null==e)throw Error("No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>");return e}var ep=eu("85Hg2"),$C={};!function(e){"use strict";function t(e){var t,n,r,i;for(n=1,r=arguments.length;n<r;n++)for(t in i=arguments[n])e[t]=i[t];return e}var n,r,i,a,o,s,l,u,c,d,h=Object.create||function(){function e(){}return function(t){return e.prototype=t,new e}}();function p(e,t){var n=Array.prototype.slice;if(e.bind)return e.bind.apply(e,n.call(arguments,1));var r=n.call(arguments,2);return function(){return e.apply(t,r.length?r.concat(n.call(arguments)):arguments)}}var m=0;function f(e){return"_leaflet_id"in e||(e._leaflet_id=++m),e._leaflet_id}function g(e,t,n){var r,i,a,o;return o=function(){r=!1,i&&(a.apply(n,i),i=!1)},a=function(){r?i=arguments:(e.apply(n,arguments),setTimeout(o,t),r=!0)}}function v(e,t,n){var r=t[1],i=t[0],a=r-i;return e===r&&n?e:((e-i)%a+a)%a+i}function y(){return!1}function b(e,t){if(!1===t)return e;var n=Math.pow(10,void 0===t?6:t);return Math.round(e*n)/n}function _(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function x(e){return _(e).split(/\s+/)}function w(e,t){for(var n in Object.prototype.hasOwnProperty.call(e,"options")||(e.options=e.options?h(e.options):{}),t)e.options[n]=t[n];return e.options}function S(e,t,n){var r=[];for(var i in e)r.push(encodeURIComponent(n?i.toUpperCase():i)+"="+encodeURIComponent(e[i]));return(t&&-1!==t.indexOf("?")?"&":"?")+r.join("&")}var E=/\{ *([\w_ -]+) *\}/g;function A(e,t){return e.replace(E,function(e,n){var r=t[n];if(void 0===r)throw Error("No value provided for variable "+e);return"function"==typeof r&&(r=r(t)),r})}var T=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function I(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return n;return -1}var C="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function M(e){return window["webkit"+e]||window["moz"+e]||window["ms"+e]}var N=0;function R(e){var t=+new Date,n=Math.max(0,16-(t-N));return N=t+n,window.setTimeout(e,n)}var O=window.requestAnimationFrame||M("RequestAnimationFrame")||R,P=window.cancelAnimationFrame||M("CancelAnimationFrame")||M("CancelRequestAnimationFrame")||function(e){window.clearTimeout(e)};function k(e,t,n){if(!n||O!==R)return O.call(window,p(e,t));e.call(t)}function D(e){e&&P.call(window,e)}function B(){}B.extend=function(e){var n=function(){w(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},r=n.__super__=this.prototype,i=h(r);for(var a in i.constructor=n,n.prototype=i,this)Object.prototype.hasOwnProperty.call(this,a)&&"prototype"!==a&&"__super__"!==a&&(n[a]=this[a]);return e.statics&&t(n,e.statics),e.includes&&(function(e){if("u">typeof L&&L&&L.Mixin){e=T(e)?e:[e];for(var t=0;t<e.length;t++)e[t]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",Error().stack)}}(e.includes),t.apply(null,[i].concat(e.includes))),t(i,e),delete i.statics,delete i.includes,i.options&&(i.options=r.options?h(r.options):{},t(i.options,e.options)),i._initHooks=[],i.callInitHooks=function(){if(!this._initHooksCalled){r.callInitHooks&&r.callInitHooks.call(this),this._initHooksCalled=!0;for(var e=0,t=i._initHooks.length;e<t;e++)i._initHooks[e].call(this)}},n},B.include=function(e){var n=this.prototype.options;return t(this.prototype,e),e.options&&(this.prototype.options=n,this.mergeOptions(e.options)),this},B.mergeOptions=function(e){return t(this.prototype.options,e),this},B.addInitHook=function(e){var t=Array.prototype.slice.call(arguments,1),n="function"==typeof e?e:function(){this[e].apply(this,t)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(n),this};var F={on:function(e,t,n){if("object"==typeof e)for(var r in e)this._on(r,e[r],t);else{e=x(e);for(var i=0,a=e.length;i<a;i++)this._on(e[i],t,n)}return this},off:function(e,t,n){if(arguments.length)if("object"==typeof e)for(var r in e)this._off(r,e[r],t);else{e=x(e);for(var i=1==arguments.length,a=0,o=e.length;a<o;a++)i?this._off(e[a]):this._off(e[a],t,n)}else delete this._events;return this},_on:function(e,t,n,r){if("function"!=typeof t)return void console.warn("wrong listener type: "+typeof t);if(!1===this._listens(e,t,n)){n===this&&(n=void 0);var i={fn:t,ctx:n};r&&(i.once=!0),this._events=this._events||{},this._events[e]=this._events[e]||[],this._events[e].push(i)}},_off:function(e,t,n){if(this._events&&(r=this._events[e])){if(1==arguments.length){if(this._firingCount)for(i=0,a=r.length;i<a;i++)r[i].fn=y;delete this._events[e];return}if("function"!=typeof t)return void console.warn("wrong listener type: "+typeof t);var r,i,a,o=this._listens(e,t,n);if(!1!==o){var s=r[o];this._firingCount&&(s.fn=y,this._events[e]=r=r.slice()),r.splice(o,1)}}},fire:function(e,n,r){if(!this.listens(e,r))return this;var i=t({},n,{type:e,target:this,sourceTarget:n&&n.sourceTarget||this});if(this._events){var a=this._events[e];if(a){this._firingCount=this._firingCount+1||1;for(var o=0,s=a.length;o<s;o++){var l=a[o],u=l.fn;l.once&&this.off(e,u,l.ctx),u.call(l.ctx||this,i)}this._firingCount--}}return r&&this._propagateEvent(i),this},listens:function(e,t,n,r){"string"!=typeof e&&console.warn('"string" type argument expected');var i=t;"function"!=typeof t&&(r=!!t,i=void 0,n=void 0);var a=this._events&&this._events[e];if(a&&a.length&&!1!==this._listens(e,i,n))return!0;if(r){for(var o in this._eventParents)if(this._eventParents[o].listens(e,t,n,r))return!0}return!1},_listens:function(e,t,n){if(!this._events)return!1;var r=this._events[e]||[];if(!t)return!!r.length;n===this&&(n=void 0);for(var i=0,a=r.length;i<a;i++)if(r[i].fn===t&&r[i].ctx===n)return i;return!1},once:function(e,t,n){if("object"==typeof e)for(var r in e)this._on(r,e[r],t,!0);else{e=x(e);for(var i=0,a=e.length;i<a;i++)this._on(e[i],t,n,!0)}return this},addEventParent:function(e){return this._eventParents=this._eventParents||{},this._eventParents[f(e)]=e,this},removeEventParent:function(e){return this._eventParents&&delete this._eventParents[f(e)],this},_propagateEvent:function(e){for(var n in this._eventParents)this._eventParents[n].fire(e.type,t({layer:e.target,propagatedFrom:e.target},e),!0)}};F.addEventListener=F.on,F.removeEventListener=F.clearAllEventListeners=F.off,F.addOneTimeEventListener=F.once,F.fireEvent=F.fire,F.hasEventListeners=F.listens;var U=B.extend(F);function j(e,t,n){this.x=n?Math.round(e):e,this.y=n?Math.round(t):t}var z=Math.trunc||function(e){return e>0?Math.floor(e):Math.ceil(e)};function H(e,t,n){return e instanceof j?e:T(e)?new j(e[0],e[1]):null==e?e:"object"==typeof e&&"x"in e&&"y"in e?new j(e.x,e.y):new j(e,t,n)}function G(e,t){if(e)for(var n=t?[e,t]:e,r=0,i=n.length;r<i;r++)this.extend(n[r])}function V(e,t){return!e||e instanceof G?e:new G(e,t)}function W(e,t){if(e)for(var n=t?[e,t]:e,r=0,i=n.length;r<i;r++)this.extend(n[r])}function q(e,t){return e instanceof W?e:new W(e,t)}function $(e,t,n){if(isNaN(e)||isNaN(t))throw Error("Invalid LatLng object: ("+e+", "+t+")");this.lat=+e,this.lng=+t,void 0!==n&&(this.alt=+n)}function J(e,t,n){return e instanceof $?e:T(e)&&"object"!=typeof e[0]?3===e.length?new $(e[0],e[1],e[2]):2===e.length?new $(e[0],e[1]):null:null==e?e:"object"==typeof e&&"lat"in e?new $(e.lat,"lng"in e?e.lng:e.lon,e.alt):void 0===t?null:new $(e,t,n)}j.prototype={clone:function(){return new j(this.x,this.y)},add:function(e){return this.clone()._add(H(e))},_add:function(e){return this.x+=e.x,this.y+=e.y,this},subtract:function(e){return this.clone()._subtract(H(e))},_subtract:function(e){return this.x-=e.x,this.y-=e.y,this},divideBy:function(e){return this.clone()._divideBy(e)},_divideBy:function(e){return this.x/=e,this.y/=e,this},multiplyBy:function(e){return this.clone()._multiplyBy(e)},_multiplyBy:function(e){return this.x*=e,this.y*=e,this},scaleBy:function(e){return new j(this.x*e.x,this.y*e.y)},unscaleBy:function(e){return new j(this.x/e.x,this.y/e.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=z(this.x),this.y=z(this.y),this},distanceTo:function(e){var t=(e=H(e)).x-this.x,n=e.y-this.y;return Math.sqrt(t*t+n*n)},equals:function(e){return(e=H(e)).x===this.x&&e.y===this.y},contains:function(e){return Math.abs((e=H(e)).x)<=Math.abs(this.x)&&Math.abs(e.y)<=Math.abs(this.y)},toString:function(){return"Point("+b(this.x)+", "+b(this.y)+")"}},G.prototype={extend:function(e){var t,n;if(!e)return this;if(e instanceof j||"number"==typeof e[0]||"x"in e)t=n=H(e);else if(t=(e=V(e)).min,n=e.max,!t||!n)return this;return this.min||this.max?(this.min.x=Math.min(t.x,this.min.x),this.max.x=Math.max(n.x,this.max.x),this.min.y=Math.min(t.y,this.min.y),this.max.y=Math.max(n.y,this.max.y)):(this.min=t.clone(),this.max=n.clone()),this},getCenter:function(e){return H((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,e)},getBottomLeft:function(){return H(this.min.x,this.max.y)},getTopRight:function(){return H(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(e){var t,n;return(e="number"==typeof e[0]||e instanceof j?H(e):V(e))instanceof G?(t=e.min,n=e.max):t=n=e,t.x>=this.min.x&&n.x<=this.max.x&&t.y>=this.min.y&&n.y<=this.max.y},intersects:function(e){e=V(e);var t=this.min,n=this.max,r=e.min,i=e.max,a=i.x>=t.x&&r.x<=n.x,o=i.y>=t.y&&r.y<=n.y;return a&&o},overlaps:function(e){e=V(e);var t=this.min,n=this.max,r=e.min,i=e.max,a=i.x>t.x&&r.x<n.x,o=i.y>t.y&&r.y<n.y;return a&&o},isValid:function(){return!!(this.min&&this.max)},pad:function(e){var t=this.min,n=this.max,r=Math.abs(t.x-n.x)*e,i=Math.abs(t.y-n.y)*e;return V(H(t.x-r,t.y-i),H(n.x+r,n.y+i))},equals:function(e){return!!e&&(e=V(e),this.min.equals(e.getTopLeft())&&this.max.equals(e.getBottomRight()))}},W.prototype={extend:function(e){var t,n,r=this._southWest,i=this._northEast;if(e instanceof $)t=e,n=e;else if(!(e instanceof W))return e?this.extend(J(e)||q(e)):this;else if(t=e._southWest,n=e._northEast,!t||!n)return this;return r||i?(r.lat=Math.min(t.lat,r.lat),r.lng=Math.min(t.lng,r.lng),i.lat=Math.max(n.lat,i.lat),i.lng=Math.max(n.lng,i.lng)):(this._southWest=new $(t.lat,t.lng),this._northEast=new $(n.lat,n.lng)),this},pad:function(e){var t=this._southWest,n=this._northEast,r=Math.abs(t.lat-n.lat)*e,i=Math.abs(t.lng-n.lng)*e;return new W(new $(t.lat-r,t.lng-i),new $(n.lat+r,n.lng+i))},getCenter:function(){return new $((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new $(this.getNorth(),this.getWest())},getSouthEast:function(){return new $(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(e){e="number"==typeof e[0]||e instanceof $||"lat"in e?J(e):q(e);var t,n,r=this._southWest,i=this._northEast;return e instanceof W?(t=e.getSouthWest(),n=e.getNorthEast()):t=n=e,t.lat>=r.lat&&n.lat<=i.lat&&t.lng>=r.lng&&n.lng<=i.lng},intersects:function(e){e=q(e);var t=this._southWest,n=this._northEast,r=e.getSouthWest(),i=e.getNorthEast(),a=i.lat>=t.lat&&r.lat<=n.lat,o=i.lng>=t.lng&&r.lng<=n.lng;return a&&o},overlaps:function(e){e=q(e);var t=this._southWest,n=this._northEast,r=e.getSouthWest(),i=e.getNorthEast(),a=i.lat>t.lat&&r.lat<n.lat,o=i.lng>t.lng&&r.lng<n.lng;return a&&o},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(e,t){return!!e&&(e=q(e),this._southWest.equals(e.getSouthWest(),t)&&this._northEast.equals(e.getNorthEast(),t))},isValid:function(){return!!(this._southWest&&this._northEast)}},$.prototype={equals:function(e,t){return!!e&&(e=J(e),Math.max(Math.abs(this.lat-e.lat),Math.abs(this.lng-e.lng))<=(void 0===t?1e-9:t))},toString:function(e){return"LatLng("+b(this.lat,e)+", "+b(this.lng,e)+")"},distanceTo:function(e){return Y.distance(this,J(e))},wrap:function(){return Y.wrapLatLng(this)},toBounds:function(e){var t=180*e/0x2637f09,n=t/Math.cos(Math.PI/180*this.lat);return q([this.lat-t,this.lng-n],[this.lat+t,this.lng+n])},clone:function(){return new $(this.lat,this.lng,this.alt)}};var K={latLngToPoint:function(e,t){var n=this.projection.project(e),r=this.scale(t);return this.transformation._transform(n,r)},pointToLatLng:function(e,t){var n=this.scale(t),r=this.transformation.untransform(e,n);return this.projection.unproject(r)},project:function(e){return this.projection.project(e)},unproject:function(e){return this.projection.unproject(e)},scale:function(e){return 256*Math.pow(2,e)},zoom:function(e){return Math.log(e/256)/Math.LN2},getProjectedBounds:function(e){if(this.infinite)return null;var t=this.projection.bounds,n=this.scale(e);return new G(this.transformation.transform(t.min,n),this.transformation.transform(t.max,n))},infinite:!1,wrapLatLng:function(e){var t=this.wrapLng?v(e.lng,this.wrapLng,!0):e.lng;return new $(this.wrapLat?v(e.lat,this.wrapLat,!0):e.lat,t,e.alt)},wrapLatLngBounds:function(e){var t=e.getCenter(),n=this.wrapLatLng(t),r=t.lat-n.lat,i=t.lng-n.lng;if(0===r&&0===i)return e;var a=e.getSouthWest(),o=e.getNorthEast();return new W(new $(a.lat-r,a.lng-i),new $(o.lat-r,o.lng-i))}},Y=t({},K,{wrapLng:[-180,180],R:6371e3,distance:function(e,t){var n=Math.PI/180,r=e.lat*n,i=t.lat*n,a=Math.sin((t.lat-e.lat)*n/2),o=Math.sin((t.lng-e.lng)*n/2),s=a*a+Math.cos(r)*Math.cos(i)*o*o,l=2*Math.atan2(Math.sqrt(s),Math.sqrt(1-s));return this.R*l}}),X={R:6378137,MAX_LATITUDE:85.0511287798,project:function(e){var t=Math.PI/180,n=this.MAX_LATITUDE,r=Math.sin(Math.max(Math.min(n,e.lat),-n)*t);return new j(this.R*e.lng*t,this.R*Math.log((1+r)/(1-r))/2)},unproject:function(e){var t=180/Math.PI;return new $((2*Math.atan(Math.exp(e.y/this.R))-Math.PI/2)*t,e.x*t/this.R)},bounds:new G([-(l=6378137*Math.PI),-l],[l,l])};function Z(e,t,n,r){if(T(e)){this._a=e[0],this._b=e[1],this._c=e[2],this._d=e[3];return}this._a=e,this._b=t,this._c=n,this._d=r}function Q(e,t,n,r){return new Z(e,t,n,r)}Z.prototype={transform:function(e,t){return this._transform(e.clone(),t)},_transform:function(e,t){return e.x=(t=t||1)*(this._a*e.x+this._b),e.y=t*(this._c*e.y+this._d),e},untransform:function(e,t){return t=t||1,new j((e.x/t-this._b)/this._a,(e.y/t-this._d)/this._c)}};var ee=t({},Y,{code:"EPSG:3857",projection:X,transformation:Q(u=.5/(Math.PI*X.R),.5,-u,.5)}),et=t({},ee,{code:"EPSG:900913"});function en(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function er(e,t){var n,r,i,a,o,s,l="";for(n=0,i=e.length;n<i;n++){for(r=0,a=(o=e[n]).length;r<a;r++)s=o[r],l+=(r?"L":"M")+s.x+" "+s.y;l+=t?eD.svg?"z":"x":""}return l||"M0 0"}var ei=document.documentElement.style,ea="ActiveXObject"in window,eo=ea&&!document.addEventListener,es="msLaunchUri"in navigator&&!("documentMode"in document),el=eL("webkit"),eu=eL("android"),ec=eL("android 2")||eL("android 3"),ed=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),eh=eu&&eL("Google")&&ed<537&&!("AudioNode"in window),ep=!!window.opera,em=!es&&eL("chrome"),ef=eL("gecko")&&!el&&!ep&&!ea,eg=!em&&eL("safari"),ev=eL("phantom"),ey="OTransition"in ei,eb=0===navigator.platform.indexOf("Win"),e_=ea&&"transition"in ei,ex="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!ec,ew="MozPerspective"in ei,eS=!window.L_DISABLE_3D&&(e_||ex||ew)&&!ey&&!ev,eE="u">typeof orientation||eL("mobile"),eA=!window.PointerEvent&&window.MSPointerEvent,eT=!!(window.PointerEvent||eA),eI="ontouchstart"in window||!!window.TouchEvent,eC=!window.L_NO_TOUCH&&(eI||eT),eM=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,eN=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("testPassiveEventSupport",y,t),window.removeEventListener("testPassiveEventSupport",y,t)}catch(e){}return e}(),eR=!!document.createElement("canvas").getContext,eO=!!(document.createElementNS&&en("svg").createSVGRect),eP=!!eO&&((c=document.createElement("div")).innerHTML="<svg/>","http://www.w3.org/2000/svg"===(c.firstChild&&c.firstChild.namespaceURI)),ek=!eO&&function(){try{var e=document.createElement("div");e.innerHTML='<v:shape adj="1"/>';var t=e.firstChild;return t.style.behavior="url(#default#VML)",t&&"object"==typeof t.adj}catch(e){return!1}}();function eL(e){return navigator.userAgent.toLowerCase().indexOf(e)>=0}var eD={ie:ea,ielt9:eo,edge:es,webkit:el,android:eu,android23:ec,androidStock:eh,opera:ep,chrome:em,gecko:ef,safari:eg,phantom:ev,opera12:ey,win:eb,ie3d:e_,webkit3d:ex,gecko3d:ew,any3d:eS,mobile:eE,mobileWebkit:eE&&el,mobileWebkit3d:eE&&ex,msPointer:eA,pointer:eT,touch:eC,touchNative:eI,mobileOpera:eE&&ep,mobileGecko:eE&&ef,retina:eM,passiveEvents:eN,canvas:eR,svg:eO,vml:ek,inlineSvg:eP,mac:0===navigator.platform.indexOf("Mac"),linux:0===navigator.platform.indexOf("Linux")},eB=eD.msPointer?"MSPointerDown":"pointerdown",eF=eD.msPointer?"MSPointerMove":"pointermove",eU=eD.msPointer?"MSPointerUp":"pointerup",ej=eD.msPointer?"MSPointerCancel":"pointercancel",ez={touchstart:eB,touchmove:eF,touchend:eU,touchcancel:ej},eH={touchstart:function(e,t){t.MSPOINTER_TYPE_TOUCH&&t.pointerType===t.MSPOINTER_TYPE_TOUCH&&tw(t),eJ(e,t)},touchmove:eJ,touchend:eJ,touchcancel:eJ},eG={},eV=!1;function eW(e){eG[e.pointerId]=e}function eq(e){eG[e.pointerId]&&(eG[e.pointerId]=e)}function e$(e){delete eG[e.pointerId]}function eJ(e,t){if(t.pointerType!==(t.MSPOINTER_TYPE_MOUSE||"mouse")){for(var n in t.touches=[],eG)t.touches.push(eG[n]);t.changedTouches=[t],e(t)}}var eK=tt(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),eY=tt(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),eX="webkitTransition"===eY||"OTransition"===eY?eY+"End":"transitionend";function eZ(e){return"string"==typeof e?document.getElementById(e):e}function eQ(e,t){var n=e.style[t]||e.currentStyle&&e.currentStyle[t];if((!n||"auto"===n)&&document.defaultView){var r=document.defaultView.getComputedStyle(e,null);n=r?r[t]:null}return"auto"===n?null:n}function e0(e,t,n){var r=document.createElement(e);return r.className=t||"",n&&n.appendChild(r),r}function e1(e){var t=e.parentNode;t&&t.removeChild(e)}function e2(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function e3(e){var t=e.parentNode;t&&t.lastChild!==e&&t.appendChild(e)}function e4(e){var t=e.parentNode;t&&t.firstChild!==e&&t.insertBefore(e,t.firstChild)}function e5(e,t){if(void 0!==e.classList)return e.classList.contains(t);var n=e9(e);return n.length>0&&RegExp("(^|\\s)"+t+"(\\s|$)").test(n)}function e6(e,t){if(void 0!==e.classList)for(var n=x(t),r=0,i=n.length;r<i;r++)e.classList.add(n[r]);else if(!e5(e,t)){var a=e9(e);e7(e,(a?a+" ":"")+t)}}function e8(e,t){void 0!==e.classList?e.classList.remove(t):e7(e,_((" "+e9(e)+" ").replace(" "+t+" "," ")))}function e7(e,t){void 0===e.className.baseVal?e.className=t:e.className.baseVal=t}function e9(e){return e.correspondingElement&&(e=e.correspondingElement),void 0===e.className.baseVal?e.className:e.className.baseVal}function te(e,t){"opacity"in e.style?e.style.opacity=t:"filter"in e.style&&function(e,t){var n=!1,r="DXImageTransform.Microsoft.Alpha";try{n=e.filters.item(r)}catch(e){if(1===t)return}t=Math.round(100*t),n?(n.Enabled=100!==t,n.Opacity=t):e.style.filter+=" progid:"+r+"(opacity="+t+")"}(e,t)}function tt(e){for(var t=document.documentElement.style,n=0;n<e.length;n++)if(e[n]in t)return e[n];return!1}function tn(e,t,n){var r=t||new j(0,0);e.style[eK]=(eD.ie3d?"translate("+r.x+"px,"+r.y+"px)":"translate3d("+r.x+"px,"+r.y+"px,0)")+(n?" scale("+n+")":"")}function tr(e,t){e._leaflet_pos=t,eD.any3d?tn(e,t):(e.style.left=t.x+"px",e.style.top=t.y+"px")}function ti(e){return e._leaflet_pos||new j(0,0)}if("onselectstart"in document)n=function(){th(window,"selectstart",tw)},r=function(){tm(window,"selectstart",tw)};else{var ta=tt(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);n=function(){if(ta){var e=document.documentElement.style;i=e[ta],e[ta]="none"}},r=function(){ta&&(document.documentElement.style[ta]=i,i=void 0)}}function to(){th(window,"dragstart",tw)}function ts(){tm(window,"dragstart",tw)}function tl(e){for(;-1===e.tabIndex;)e=e.parentNode;e.style&&(tu(),a=e,o=e.style.outlineStyle,e.style.outlineStyle="none",th(window,"keydown",tu))}function tu(){a&&(a.style.outlineStyle=o,a=void 0,o=void 0,tm(window,"keydown",tu))}function tc(e){do e=e.parentNode;while((!e.offsetWidth||!e.offsetHeight)&&e!==document.body)return e}function td(e){var t=e.getBoundingClientRect();return{x:t.width/e.offsetWidth||1,y:t.height/e.offsetHeight||1,boundingClientRect:t}}function th(e,t,n,r){if(t&&"object"==typeof t)for(var i in t)tv(e,i,t[i],n);else{t=x(t);for(var a=0,o=t.length;a<o;a++)tv(e,t[a],n,r)}return this}var tp="_leaflet_events";function tm(e,t,n,r){if(1==arguments.length)tf(e),delete e[tp];else if(t&&"object"==typeof t)for(var i in t)ty(e,i,t[i],n);else if(t=x(t),2==arguments.length)tf(e,function(e){return -1!==I(t,e)});else for(var a=0,o=t.length;a<o;a++)ty(e,t[a],n,r);return this}function tf(e,t){for(var n in e[tp]){var r=n.split(/\d/)[0];(!t||t(r))&&ty(e,r,null,null,n)}}var tg={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function tv(e,t,n,r){var i=t+f(n)+(r?"_"+f(r):"");if(e[tp]&&e[tp][i])return this;var a=function(t){return n.call(r||e,t||window.event)},o=a;!eD.touchNative&&eD.pointer&&0===t.indexOf("touch")?a=function(e,t,n){return("touchstart"===t&&(eV||(document.addEventListener(eB,eW,!0),document.addEventListener(eF,eq,!0),document.addEventListener(eU,e$,!0),document.addEventListener(ej,e$,!0),eV=!0)),eH[t])?(n=eH[t].bind(this,n),e.addEventListener(ez[t],n,!1),n):(console.warn("wrong event specified:",t),y)}(e,t,a):eD.touch&&"dblclick"===t?a=function(e,t){e.addEventListener("dblclick",t);var n,r=0;function i(e){if(1!==e.detail){n=e.detail;return}if("mouse"!==e.pointerType&&(!e.sourceCapabilities||e.sourceCapabilities.firesTouchEvents)){var i=tE(e);if(!i.some(function(e){return e instanceof HTMLLabelElement&&e.attributes.for})||i.some(function(e){return e instanceof HTMLInputElement||e instanceof HTMLSelectElement})){var a=Date.now();a-r<=200?2==++n&&t(function(e){var t,n,r={};for(n in e)t=e[n],r[n]=t&&t.bind?t.bind(e):t;return e=r,r.type="dblclick",r.detail=2,r.isTrusted=!1,r._simulated=!0,r}(e)):n=1,r=a}}}return e.addEventListener("click",i),{dblclick:t,simDblclick:i}}(e,a):"addEventListener"in e?"touchstart"===t||"touchmove"===t||"wheel"===t||"mousewheel"===t?e.addEventListener(tg[t]||t,a,!!eD.passiveEvents&&{passive:!1}):"mouseenter"===t||"mouseleave"===t?(a=function(t){tC(e,t=t||window.event)&&o(t)},e.addEventListener(tg[t],a,!1)):e.addEventListener(t,o,!1):e.attachEvent("on"+t,a),e[tp]=e[tp]||{},e[tp][i]=a}function ty(e,t,n,r,i){i=i||t+f(n)+(r?"_"+f(r):"");var a=e[tp]&&e[tp][i];if(!a)return this;!eD.touchNative&&eD.pointer&&0===t.indexOf("touch")?ez[t]?e.removeEventListener(ez[t],a,!1):console.warn("wrong event specified:",t):eD.touch&&"dblclick"===t?(e.removeEventListener("dblclick",a.dblclick),e.removeEventListener("click",a.simDblclick)):"removeEventListener"in e?e.removeEventListener(tg[t]||t,a,!1):e.detachEvent("on"+t,a),e[tp][i]=null}function tb(e){return e.stopPropagation?e.stopPropagation():e.originalEvent?e.originalEvent._stopped=!0:e.cancelBubble=!0,this}function t_(e){return tv(e,"wheel",tb),this}function tx(e){return th(e,"mousedown touchstart dblclick contextmenu",tb),e._leaflet_disable_click=!0,this}function tw(e){return e.preventDefault?e.preventDefault():e.returnValue=!1,this}function tS(e){return tw(e),tb(e),this}function tE(e){if(e.composedPath)return e.composedPath();for(var t=[],n=e.target;n;)t.push(n),n=n.parentNode;return t}function tA(e,t){if(!t)return new j(e.clientX,e.clientY);var n=td(t),r=n.boundingClientRect;return new j((e.clientX-r.left)/n.x-t.clientLeft,(e.clientY-r.top)/n.y-t.clientTop)}var tT=eD.linux&&eD.chrome?window.devicePixelRatio:eD.mac?3*window.devicePixelRatio:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function tI(e){return eD.edge?e.wheelDeltaY/2:e.deltaY&&0===e.deltaMode?-e.deltaY/tT:e.deltaY&&1===e.deltaMode?-(20*e.deltaY):e.deltaY&&2===e.deltaMode?-(60*e.deltaY):e.deltaX||e.deltaZ?0:e.wheelDelta?(e.wheelDeltaY||e.wheelDelta)/2:e.detail&&32765>Math.abs(e.detail)?-(20*e.detail):e.detail?-(60*(e.detail/32765)):0}function tC(e,t){var n=t.relatedTarget;if(!n)return!0;try{for(;n&&n!==e;)n=n.parentNode}catch(e){return!1}return n!==e}var tM=U.extend({run:function(e,t,n,r){this.stop(),this._el=e,this._inProgress=!0,this._duration=n||.25,this._easeOutPower=1/Math.max(r||.5,.2),this._startPos=ti(e),this._offset=t.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=k(this._animate,this),this._step()},_step:function(e){var t=new Date-this._startTime,n=1e3*this._duration;t<n?this._runFrame(this._easeOut(t/n),e):(this._runFrame(1),this._complete())},_runFrame:function(e,t){var n=this._startPos.add(this._offset.multiplyBy(e));t&&n._round(),tr(this._el,n),this.fire("step")},_complete:function(){D(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(e){return 1-Math.pow(1-e,this._easeOutPower)}}),tN=U.extend({options:{crs:ee,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(e,t){t=w(this,t),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(e),this._initLayout(),this._onResize=p(this._onResize,this),this._initEvents(),t.maxBounds&&this.setMaxBounds(t.maxBounds),void 0!==t.zoom&&(this._zoom=this._limitZoom(t.zoom)),t.center&&void 0!==t.zoom&&this.setView(J(t.center),t.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=eY&&eD.any3d&&!eD.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),th(this._proxy,eX,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(e,n,r){return(n=void 0===n?this._zoom:this._limitZoom(n),e=this._limitCenter(J(e),n,this.options.maxBounds),r=r||{},this._stop(),this._loaded&&!r.reset&&!0!==r&&(void 0!==r.animate&&(r.zoom=t({animate:r.animate},r.zoom),r.pan=t({animate:r.animate,duration:r.duration},r.pan)),this._zoom!==n?this._tryAnimatedZoom&&this._tryAnimatedZoom(e,n,r.zoom):this._tryAnimatedPan(e,r.pan)))?(clearTimeout(this._sizeTimer),this):(this._resetView(e,n,r.pan&&r.pan.noMoveStart),this)},setZoom:function(e,t){return this._loaded?this.setView(this.getCenter(),e,{zoom:t}):(this._zoom=e,this)},zoomIn:function(e,t){return e=e||(eD.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+e,t)},zoomOut:function(e,t){return e=e||(eD.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-e,t)},setZoomAround:function(e,t,n){var r=this.getZoomScale(t),i=this.getSize().divideBy(2),a=(e instanceof j?e:this.latLngToContainerPoint(e)).subtract(i).multiplyBy(1-1/r),o=this.containerPointToLatLng(i.add(a));return this.setView(o,t,{zoom:n})},_getBoundsCenterZoom:function(e,t){t=t||{},e=e.getBounds?e.getBounds():q(e);var n=H(t.paddingTopLeft||t.padding||[0,0]),r=H(t.paddingBottomRight||t.padding||[0,0]),i=this.getBoundsZoom(e,!1,n.add(r));if(1/0===(i="number"==typeof t.maxZoom?Math.min(t.maxZoom,i):i))return{center:e.getCenter(),zoom:i};var a=r.subtract(n).divideBy(2),o=this.project(e.getSouthWest(),i),s=this.project(e.getNorthEast(),i);return{center:this.unproject(o.add(s).divideBy(2).add(a),i),zoom:i}},fitBounds:function(e,t){if(!(e=q(e)).isValid())throw Error("Bounds are not valid.");var n=this._getBoundsCenterZoom(e,t);return this.setView(n.center,n.zoom,t)},fitWorld:function(e){return this.fitBounds([[-90,-180],[90,180]],e)},panTo:function(e,t){return this.setView(e,this._zoom,{pan:t})},panBy:function(e,t){if(e=H(e).round(),t=t||{},!e.x&&!e.y)return this.fire("moveend");if(!0!==t.animate&&!this.getSize().contains(e))return this._resetView(this.unproject(this.project(this.getCenter()).add(e)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new tM,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),t.noMoveStart||this.fire("movestart"),!1!==t.animate){e6(this._mapPane,"leaflet-pan-anim");var n=this._getMapPanePos().subtract(e).round();this._panAnim.run(this._mapPane,n,t.duration||.25,t.easeLinearity)}else this._rawPanBy(e),this.fire("move").fire("moveend");return this},flyTo:function(e,t,n){if(!1===(n=n||{}).animate||!eD.any3d)return this.setView(e,t,n);this._stop();var r=this.project(this.getCenter()),i=this.project(e),a=this.getSize(),o=this._zoom;e=J(e),t=void 0===t?o:t;var s=Math.max(a.x,a.y),l=s*this.getZoomScale(o,t),u=i.distanceTo(r)||1;function c(e){var t=(l*l-s*s+(e?-1:1)*2.0164*2.0164*u*u)/(2*(e?l:s)*2.0164*u),n=Math.sqrt(t*t+1)-t;return n<1e-9?-18:Math.log(n)}function d(e){return(Math.exp(e)-Math.exp(-e))/2}function h(e){return(Math.exp(e)+Math.exp(-e))/2}var p=c(0),m=Date.now(),f=(c(1)-p)/1.42,g=n.duration?1e3*n.duration:1e3*f*.8;function v(){var n,a=(Date.now()-m)/g,l=(1-Math.pow(1-a,1.5))*f;a<=1?(this._flyToFrame=k(v,this),this._move(this.unproject(r.add(i.subtract(r).multiplyBy(s*(h(p)*(d(n=p+1.42*l)/h(n))-d(p))/2.0164/u)),o),this.getScaleZoom(s/(s*(h(p)/h(p+1.42*l))),o),{flyTo:!0})):this._move(e,t)._moveEnd(!0)}return this._moveStart(!0,n.noMoveStart),v.call(this),this},flyToBounds:function(e,t){var n=this._getBoundsCenterZoom(e,t);return this.flyTo(n.center,n.zoom,t)},setMaxBounds:function(e){return(e=q(e),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),e.isValid())?(this.options.maxBounds=e,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(e){var t=this.options.minZoom;return(this.options.minZoom=e,this._loaded&&t!==e&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom))?this.setZoom(e):this},setMaxZoom:function(e){var t=this.options.maxZoom;return(this.options.maxZoom=e,this._loaded&&t!==e&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom))?this.setZoom(e):this},panInsideBounds:function(e,t){this._enforcingBounds=!0;var n=this.getCenter(),r=this._limitCenter(n,this._zoom,q(e));return n.equals(r)||this.panTo(r,t),this._enforcingBounds=!1,this},panInside:function(e,t){var n=H((t=t||{}).paddingTopLeft||t.padding||[0,0]),r=H(t.paddingBottomRight||t.padding||[0,0]),i=this.project(this.getCenter()),a=this.project(e),o=this.getPixelBounds(),s=V([o.min.add(n),o.max.subtract(r)]),l=s.getSize();if(!s.contains(a)){this._enforcingBounds=!0;var u=a.subtract(s.getCenter()),c=s.extend(a).getSize().subtract(l);i.x+=u.x<0?-c.x:c.x,i.y+=u.y<0?-c.y:c.y,this.panTo(this.unproject(i),t),this._enforcingBounds=!1}return this},invalidateSize:function(e){if(!this._loaded)return this;e=t({animate:!1,pan:!0},!0===e?{animate:!0}:e);var n=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var r=this.getSize(),i=n.divideBy(2).round(),a=r.divideBy(2).round(),o=i.subtract(a);return o.x||o.y?(e.animate&&e.pan?this.panBy(o):(e.pan&&this._rawPanBy(o),this.fire("move"),e.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(p(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:n,newSize:r})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(e){if(e=this._locateOptions=t({timeout:1e4,watch:!1},e),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var n=p(this._handleGeolocationResponse,this),r=p(this._handleGeolocationError,this);return e.watch?this._locationWatchId=navigator.geolocation.watchPosition(n,r,e):navigator.geolocation.getCurrentPosition(n,r,e),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(e){if(this._container._leaflet_id){var t=e.code,n=e.message||(1===t?"permission denied":2===t?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:t,message:"Geolocation error: "+n+"."})}},_handleGeolocationResponse:function(e){if(this._container._leaflet_id){var t=new $(e.coords.latitude,e.coords.longitude),n=t.toBounds(2*e.coords.accuracy),r=this._locateOptions;if(r.setView){var i=this.getBoundsZoom(n);this.setView(t,r.maxZoom?Math.min(i,r.maxZoom):i)}var a={latlng:t,bounds:n,timestamp:e.timestamp};for(var o in e.coords)"number"==typeof e.coords[o]&&(a[o]=e.coords[o]);this.fire("locationfound",a)}},addHandler:function(e,t){if(!t)return this;var n=this[e]=new t(this);return this._handlers.push(n),this.options[e]&&n.enable(),this},remove:function(){var e;if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(e){this._container._leaflet_id=void 0,this._containerId=void 0}for(e in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),e1(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(D(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[e].remove();for(e in this._panes)e1(this._panes[e]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(e,t){var n=e0("div","leaflet-pane"+(e?" leaflet-"+e.replace("Pane","")+"-pane":""),t||this._mapPane);return e&&(this._panes[e]=n),n},getCenter:function(){return(this._checkIfLoaded(),this._lastCenter&&!this._moved())?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var e=this.getPixelBounds();return new W(this.unproject(e.getBottomLeft()),this.unproject(e.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(e,t,n){e=q(e),n=H(n||[0,0]);var r=this.getZoom()||0,i=this.getMinZoom(),a=this.getMaxZoom(),o=e.getNorthWest(),s=e.getSouthEast(),l=this.getSize().subtract(n),u=V(this.project(s,r),this.project(o,r)).getSize(),c=eD.any3d?this.options.zoomSnap:1,d=l.x/u.x,h=l.y/u.y,p=t?Math.max(d,h):Math.min(d,h);return r=this.getScaleZoom(p,r),c&&(r=c/100*Math.round(r/(c/100)),r=t?Math.ceil(r/c)*c:Math.floor(r/c)*c),Math.max(i,Math.min(a,r))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new j(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(e,t){var n=this._getTopLeftPoint(e,t);return new G(n,n.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(e){return this.options.crs.getProjectedBounds(void 0===e?this.getZoom():e)},getPane:function(e){return"string"==typeof e?this._panes[e]:e},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(e,t){var n=this.options.crs;return t=void 0===t?this._zoom:t,n.scale(e)/n.scale(t)},getScaleZoom:function(e,t){var n=this.options.crs;t=void 0===t?this._zoom:t;var r=n.zoom(e*n.scale(t));return isNaN(r)?1/0:r},project:function(e,t){return t=void 0===t?this._zoom:t,this.options.crs.latLngToPoint(J(e),t)},unproject:function(e,t){return t=void 0===t?this._zoom:t,this.options.crs.pointToLatLng(H(e),t)},layerPointToLatLng:function(e){var t=H(e).add(this.getPixelOrigin());return this.unproject(t)},latLngToLayerPoint:function(e){return this.project(J(e))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(e){return this.options.crs.wrapLatLng(J(e))},wrapLatLngBounds:function(e){return this.options.crs.wrapLatLngBounds(q(e))},distance:function(e,t){return this.options.crs.distance(J(e),J(t))},containerPointToLayerPoint:function(e){return H(e).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(e){return H(e).add(this._getMapPanePos())},containerPointToLatLng:function(e){var t=this.containerPointToLayerPoint(H(e));return this.layerPointToLatLng(t)},latLngToContainerPoint:function(e){return this.layerPointToContainerPoint(this.latLngToLayerPoint(J(e)))},mouseEventToContainerPoint:function(e){return tA(e,this._container)},mouseEventToLayerPoint:function(e){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(e))},mouseEventToLatLng:function(e){return this.layerPointToLatLng(this.mouseEventToLayerPoint(e))},_initContainer:function(e){var t=this._container=eZ(e);if(t){if(t._leaflet_id)throw Error("Map container is already initialized.")}else throw Error("Map container not found.");th(t,"scroll",this._onScroll,this),this._containerId=f(t)},_initLayout:function(){var e=this._container;this._fadeAnimated=this.options.fadeAnimation&&eD.any3d,e6(e,"leaflet-container"+(eD.touch?" leaflet-touch":"")+(eD.retina?" leaflet-retina":"")+(eD.ielt9?" leaflet-oldie":"")+(eD.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var t=eQ(e,"position");"absolute"!==t&&"relative"!==t&&"fixed"!==t&&"sticky"!==t&&(e.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var e=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),tr(this._mapPane,new j(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(e6(e.markerPane,"leaflet-zoom-hide"),e6(e.shadowPane,"leaflet-zoom-hide"))},_resetView:function(e,t,n){tr(this._mapPane,new j(0,0));var r=!this._loaded;this._loaded=!0,t=this._limitZoom(t),this.fire("viewprereset");var i=this._zoom!==t;this._moveStart(i,n)._move(e,t)._moveEnd(i),this.fire("viewreset"),r&&this.fire("load")},_moveStart:function(e,t){return e&&this.fire("zoomstart"),t||this.fire("movestart"),this},_move:function(e,t,n,r){void 0===t&&(t=this._zoom);var i=this._zoom!==t;return this._zoom=t,this._lastCenter=e,this._pixelOrigin=this._getNewPixelOrigin(e),r?n&&n.pinch&&this.fire("zoom",n):((i||n&&n.pinch)&&this.fire("zoom",n),this.fire("move",n)),this},_moveEnd:function(e){return e&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return D(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(e){tr(this._mapPane,this._getMapPanePos().subtract(e))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw Error("Set map center and zoom first.")},_initEvents:function(e){this._targets={},this._targets[f(this._container)]=this;var t=e?tm:th;t(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&t(window,"resize",this._onResize,this),eD.any3d&&this.options.transform3DLimit&&(e?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){D(this._resizeRequest),this._resizeRequest=k(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var e=this._getMapPanePos();Math.max(Math.abs(e.x),Math.abs(e.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(e,t){for(var n,r=[],i="mouseout"===t||"mouseover"===t,a=e.target||e.srcElement,o=!1;a;){if((n=this._targets[f(a)])&&("click"===t||"preclick"===t)&&this._draggableMoved(n)){o=!0;break}if(n&&n.listens(t,!0)&&(i&&!tC(a,e)||(r.push(n),i)))break;if(a===this._container)break;a=a.parentNode}return!r.length&&!o&&!i&&this.listens(t,!0)&&(r=[this]),r},_isClickDisabled:function(e){for(;e&&e!==this._container;){if(e._leaflet_disable_click)return!0;e=e.parentNode}},_handleDOMEvent:function(e){var t=e.target||e.srcElement;if(!(!this._loaded||t._leaflet_disable_events||"click"===e.type&&this._isClickDisabled(t))){var n=e.type;"mousedown"===n&&tl(t),this._fireDOMEvent(e,n)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(e,n,r){if("click"===e.type){var i=t({},e);i.type="preclick",this._fireDOMEvent(i,i.type,r)}var a=this._findEventTargets(e,n);if(r){for(var o=[],s=0;s<r.length;s++)r[s].listens(n,!0)&&o.push(r[s]);a=o.concat(a)}if(a.length){"contextmenu"===n&&tw(e);var l=a[0],u={originalEvent:e};if("keypress"!==e.type&&"keydown"!==e.type&&"keyup"!==e.type){var c=l.getLatLng&&(!l._radius||l._radius<=10);u.containerPoint=c?this.latLngToContainerPoint(l.getLatLng()):this.mouseEventToContainerPoint(e),u.layerPoint=this.containerPointToLayerPoint(u.containerPoint),u.latlng=c?l.getLatLng():this.layerPointToLatLng(u.layerPoint)}for(s=0;s<a.length;s++)if(a[s].fire(n,u,!0),u.originalEvent._stopped||!1===a[s].options.bubblingMouseEvents&&-1!==I(this._mouseEvents,n))return}},_draggableMoved:function(e){return(e=e.dragging&&e.dragging.enabled()?e:this).dragging&&e.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var e=0,t=this._handlers.length;e<t;e++)this._handlers[e].disable()},whenReady:function(e,t){return this._loaded?e.call(t||this,{target:this}):this.on("load",e,t),this},_getMapPanePos:function(){return ti(this._mapPane)||new j(0,0)},_moved:function(){var e=this._getMapPanePos();return e&&!e.equals([0,0])},_getTopLeftPoint:function(e,t){return(e&&void 0!==t?this._getNewPixelOrigin(e,t):this.getPixelOrigin()).subtract(this._getMapPanePos())},_getNewPixelOrigin:function(e,t){var n=this.getSize()._divideBy(2);return this.project(e,t)._subtract(n)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(e,t,n){var r=this._getNewPixelOrigin(n,t);return this.project(e,t)._subtract(r)},_latLngBoundsToNewLayerBounds:function(e,t,n){var r=this._getNewPixelOrigin(n,t);return V([this.project(e.getSouthWest(),t)._subtract(r),this.project(e.getNorthWest(),t)._subtract(r),this.project(e.getSouthEast(),t)._subtract(r),this.project(e.getNorthEast(),t)._subtract(r)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(e){return this.latLngToLayerPoint(e).subtract(this._getCenterLayerPoint())},_limitCenter:function(e,t,n){if(!n)return e;var r=this.project(e,t),i=this.getSize().divideBy(2),a=new G(r.subtract(i),r.add(i)),o=this._getBoundsOffset(a,n,t);return 1>=Math.abs(o.x)&&1>=Math.abs(o.y)?e:this.unproject(r.add(o),t)},_limitOffset:function(e,t){if(!t)return e;var n=this.getPixelBounds(),r=new G(n.min.add(e),n.max.add(e));return e.add(this._getBoundsOffset(r,t))},_getBoundsOffset:function(e,t,n){var r=V(this.project(t.getNorthEast(),n),this.project(t.getSouthWest(),n)),i=r.min.subtract(e.min),a=r.max.subtract(e.max);return new j(this._rebound(i.x,-a.x),this._rebound(i.y,-a.y))},_rebound:function(e,t){return e+t>0?Math.round(e-t)/2:Math.max(0,Math.ceil(e))-Math.max(0,Math.floor(t))},_limitZoom:function(e){var t=this.getMinZoom(),n=this.getMaxZoom(),r=eD.any3d?this.options.zoomSnap:1;return r&&(e=Math.round(e/r)*r),Math.max(t,Math.min(n,e))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){e8(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(e,t){var n=this._getCenterOffset(e)._trunc();return(!0===(t&&t.animate)||!!this.getSize().contains(n))&&(this.panBy(n,t),!0)},_createAnimProxy:function(){var e=this._proxy=e0("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(e),this.on("zoomanim",function(e){var t=this._proxy.style[eK];tn(this._proxy,this.project(e.center,e.zoom),this.getZoomScale(e.zoom,1)),t===this._proxy.style[eK]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){e1(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var e=this.getCenter(),t=this.getZoom();tn(this._proxy,this.project(e,t),this.getZoomScale(t,1))},_catchTransitionEnd:function(e){this._animatingZoom&&e.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(e,t,n){if(this._animatingZoom)return!0;if(n=n||{},!this._zoomAnimated||!1===n.animate||this._nothingToAnimate()||Math.abs(t-this._zoom)>this.options.zoomAnimationThreshold)return!1;var r=this.getZoomScale(t),i=this._getCenterOffset(e)._divideBy(1-1/r);return(!0===n.animate||!!this.getSize().contains(i))&&(k(function(){this._moveStart(!0,n.noMoveStart||!1)._animateZoom(e,t,!0)},this),!0)},_animateZoom:function(e,t,n,r){this._mapPane&&(n&&(this._animatingZoom=!0,this._animateToCenter=e,this._animateToZoom=t,e6(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:e,zoom:t,noUpdate:r}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(p(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&e8(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}}),tR=B.extend({options:{position:"topright"},initialize:function(e){w(this,e)},getPosition:function(){return this.options.position},setPosition:function(e){var t=this._map;return t&&t.removeControl(this),this.options.position=e,t&&t.addControl(this),this},getContainer:function(){return this._container},addTo:function(e){this.remove(),this._map=e;var t=this._container=this.onAdd(e),n=this.getPosition(),r=e._controlCorners[n];return e6(t,"leaflet-control"),-1!==n.indexOf("bottom")?r.insertBefore(t,r.firstChild):r.appendChild(t),this._map.on("unload",this.remove,this),this},remove:function(){return this._map&&(e1(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null),this},_refocusOnMap:function(e){this._map&&e&&e.screenX>0&&e.screenY>0&&this._map.getContainer().focus()}}),tO=function(e){return new tR(e)};tN.include({addControl:function(e){return e.addTo(this),this},removeControl:function(e){return e.remove(),this},_initControlPos:function(){var e=this._controlCorners={},t="leaflet-",n=this._controlContainer=e0("div",t+"control-container",this._container);function r(r,i){e[r+i]=e0("div",t+r+" "+t+i,n)}r("top","left"),r("top","right"),r("bottom","left"),r("bottom","right")},_clearControlPos:function(){for(var e in this._controlCorners)e1(this._controlCorners[e]);e1(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var tP=tR.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(e,t,n,r){return n<r?-1:+(r<n)}},initialize:function(e,t,n){for(var r in w(this,n),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1,e)this._addLayer(e[r],r);for(r in t)this._addLayer(t[r],r,!0)},onAdd:function(e){this._initLayout(),this._update(),this._map=e,e.on("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++)this._layers[t].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(e){return tR.prototype.addTo.call(this,e),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var e=0;e<this._layers.length;e++)this._layers[e].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(e,t){return this._addLayer(e,t),this._map?this._update():this},addOverlay:function(e,t){return this._addLayer(e,t,!0),this._map?this._update():this},removeLayer:function(e){e.off("add remove",this._onLayerChange,this);var t=this._getLayer(f(e));return t&&this._layers.splice(this._layers.indexOf(t),1),this._map?this._update():this},expand:function(){e6(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var e=this._map.getSize().y-(this._container.offsetTop+50);return e<this._section.clientHeight?(e6(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=e+"px"):e8(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return e8(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var e="leaflet-control-layers",t=this._container=e0("div",e),n=this.options.collapsed;t.setAttribute("aria-haspopup",!0),tx(t),t_(t);var r=this._section=e0("section",e+"-list");n&&(this._map.on("click",this.collapse,this),th(t,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var i=this._layersLink=e0("a",e+"-toggle",t);i.href="#",i.title="Layers",i.setAttribute("role","button"),th(i,{keydown:function(e){13===e.keyCode&&this._expandSafely()},click:function(e){tw(e),this._expandSafely()}},this),n||this.expand(),this._baseLayersList=e0("div",e+"-base",r),this._separator=e0("div",e+"-separator",r),this._overlaysList=e0("div",e+"-overlays",r),t.appendChild(r)},_getLayer:function(e){for(var t=0;t<this._layers.length;t++)if(this._layers[t]&&f(this._layers[t].layer)===e)return this._layers[t]},_addLayer:function(e,t,n){this._map&&e.on("add remove",this._onLayerChange,this),this._layers.push({layer:e,name:t,overlay:n}),this.options.sortLayers&&this._layers.sort(p(function(e,t){return this.options.sortFunction(e.layer,t.layer,e.name,t.name)},this)),this.options.autoZIndex&&e.setZIndex&&(this._lastZIndex++,e.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;e2(this._baseLayersList),e2(this._overlaysList),this._layerControlInputs=[];var e,t,n,r,i=0;for(n=0;n<this._layers.length;n++)r=this._layers[n],this._addItem(r),t=t||r.overlay,e=e||!r.overlay,i+=+!r.overlay;return this.options.hideSingleBase&&(e=e&&i>1,this._baseLayersList.style.display=e?"":"none"),this._separator.style.display=t&&e?"":"none",this},_onLayerChange:function(e){this._handlingClick||this._update();var t=this._getLayer(f(e.target)),n=t.overlay?"add"===e.type?"overlayadd":"overlayremove":"add"===e.type?"baselayerchange":null;n&&this._map.fire(n,t)},_createRadioElement:function(e,t){var n=document.createElement("div");return n.innerHTML='<input type="radio" class="leaflet-control-layers-selector" name="'+e+'"'+(t?' checked="checked"':"")+"/>",n.firstChild},_addItem:function(e){var t,n=document.createElement("label"),r=this._map.hasLayer(e.layer);e.overlay?((t=document.createElement("input")).type="checkbox",t.className="leaflet-control-layers-selector",t.defaultChecked=r):t=this._createRadioElement("leaflet-base-layers_"+f(this),r),this._layerControlInputs.push(t),t.layerId=f(e.layer),th(t,"click",this._onInputClick,this);var i=document.createElement("span");i.innerHTML=" "+e.name;var a=document.createElement("span");return n.appendChild(a),a.appendChild(t),a.appendChild(i),(e.overlay?this._overlaysList:this._baseLayersList).appendChild(n),this._checkDisabledLayers(),n},_onInputClick:function(){if(!this._preventClick){var e,t,n=this._layerControlInputs,r=[],i=[];this._handlingClick=!0;for(var a=n.length-1;a>=0;a--)e=n[a],t=this._getLayer(e.layerId).layer,e.checked?r.push(t):e.checked||i.push(t);for(a=0;a<i.length;a++)this._map.hasLayer(i[a])&&this._map.removeLayer(i[a]);for(a=0;a<r.length;a++)this._map.hasLayer(r[a])||this._map.addLayer(r[a]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var e,t,n=this._layerControlInputs,r=this._map.getZoom(),i=n.length-1;i>=0;i--)e=n[i],t=this._getLayer(e.layerId).layer,e.disabled=void 0!==t.options.minZoom&&r<t.options.minZoom||void 0!==t.options.maxZoom&&r>t.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var e=this._section;this._preventClick=!0,th(e,"click",tw),this.expand();var t=this;setTimeout(function(){tm(e,"click",tw),t._preventClick=!1})}}),tk=tR.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:function(e){var t="leaflet-control-zoom",n=e0("div",t+" leaflet-bar"),r=this.options;return this._zoomInButton=this._createButton(r.zoomInText,r.zoomInTitle,t+"-in",n,this._zoomIn),this._zoomOutButton=this._createButton(r.zoomOutText,r.zoomOutTitle,t+"-out",n,this._zoomOut),this._updateDisabled(),e.on("zoomend zoomlevelschange",this._updateDisabled,this),n},onRemove:function(e){e.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(e){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(e.shiftKey?3:1))},_zoomOut:function(e){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(e.shiftKey?3:1))},_createButton:function(e,t,n,r,i){var a=e0("a",n,r);return a.innerHTML=e,a.href="#",a.title=t,a.setAttribute("role","button"),a.setAttribute("aria-label",t),tx(a),th(a,"click",tS),th(a,"click",i,this),th(a,"click",this._refocusOnMap,this),a},_updateDisabled:function(){var e=this._map,t="leaflet-disabled";e8(this._zoomInButton,t),e8(this._zoomOutButton,t),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||e._zoom===e.getMinZoom())&&(e6(this._zoomOutButton,t),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||e._zoom===e.getMaxZoom())&&(e6(this._zoomInButton,t),this._zoomInButton.setAttribute("aria-disabled","true"))}});tN.mergeOptions({zoomControl:!0}),tN.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new tk,this.addControl(this.zoomControl))});var tL=tR.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(e){var t="leaflet-control-scale",n=e0("div",t),r=this.options;return this._addScales(r,t+"-line",n),e.on(r.updateWhenIdle?"moveend":"move",this._update,this),e.whenReady(this._update,this),n},onRemove:function(e){e.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(e,t,n){e.metric&&(this._mScale=e0("div",t,n)),e.imperial&&(this._iScale=e0("div",t,n))},_update:function(){var e=this._map,t=e.getSize().y/2,n=e.distance(e.containerPointToLatLng([0,t]),e.containerPointToLatLng([this.options.maxWidth,t]));this._updateScales(n)},_updateScales:function(e){this.options.metric&&e&&this._updateMetric(e),this.options.imperial&&e&&this._updateImperial(e)},_updateMetric:function(e){var t=this._getRoundNum(e);this._updateScale(this._mScale,t<1e3?t+" m":t/1e3+" km",t/e)},_updateImperial:function(e){var t,n,r,i=3.2808399*e;i>5280?(t=i/5280,n=this._getRoundNum(t),this._updateScale(this._iScale,n+" mi",n/t)):(r=this._getRoundNum(i),this._updateScale(this._iScale,r+" ft",r/i))},_updateScale:function(e,t,n){e.style.width=Math.round(this.options.maxWidth*n)+"px",e.innerHTML=t},_getRoundNum:function(e){var t=Math.pow(10,(Math.floor(e)+"").length-1),n=e/t;return t*(n=n>=10?10:n>=5?5:n>=3?3:n>=2?2:1)}}),tD=tR.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(eD.inlineSvg?'<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg> ':"")+"Leaflet</a>"},initialize:function(e){w(this,e),this._attributions={}},onAdd:function(e){for(var t in e.attributionControl=this,this._container=e0("div","leaflet-control-attribution"),tx(this._container),e._layers)e._layers[t].getAttribution&&this.addAttribution(e._layers[t].getAttribution());return this._update(),e.on("layeradd",this._addAttribution,this),this._container},onRemove:function(e){e.off("layeradd",this._addAttribution,this)},_addAttribution:function(e){e.layer.getAttribution&&(this.addAttribution(e.layer.getAttribution()),e.layer.once("remove",function(){this.removeAttribution(e.layer.getAttribution())},this))},setPrefix:function(e){return this.options.prefix=e,this._update(),this},addAttribution:function(e){return e&&(this._attributions[e]||(this._attributions[e]=0),this._attributions[e]++,this._update()),this},removeAttribution:function(e){return e&&this._attributions[e]&&(this._attributions[e]--,this._update()),this},_update:function(){if(this._map){var e=[];for(var t in this._attributions)this._attributions[t]&&e.push(t);var n=[];this.options.prefix&&n.push(this.options.prefix),e.length&&n.push(e.join(", ")),this._container.innerHTML=n.join(' <span aria-hidden="true">|</span> ')}}});tN.mergeOptions({attributionControl:!0}),tN.addInitHook(function(){this.options.attributionControl&&new tD().addTo(this)}),tR.Layers=tP,tR.Zoom=tk,tR.Scale=tL,tR.Attribution=tD,tO.layers=function(e,t,n){return new tP(e,t,n)},tO.zoom=function(e){return new tk(e)},tO.scale=function(e){return new tL(e)},tO.attribution=function(e){return new tD(e)};var tB=B.extend({initialize:function(e){this._map=e},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled&&(this._enabled=!1,this.removeHooks()),this},enabled:function(){return!!this._enabled}});tB.addTo=function(e,t){return e.addHandler(t,this),this};var tF=eD.touch?"touchstart mousedown":"mousedown",tU=U.extend({options:{clickTolerance:3},initialize:function(e,t,n,r){w(this,r),this._element=e,this._dragStartTarget=t||e,this._preventOutline=n},enable:function(){this._enabled||(th(this._dragStartTarget,tF,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(tU._dragging===this&&this.finishDrag(!0),tm(this._dragStartTarget,tF,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(e){if(!(!this._enabled||(this._moved=!1,e5(this._element,"leaflet-zoom-anim")))){if(e.touches&&1!==e.touches.length){tU._dragging===this&&this.finishDrag();return}if(!tU._dragging&&!e.shiftKey&&(1===e.which||1===e.button||e.touches)&&(tU._dragging=this,this._preventOutline&&tl(this._element),to(),n(),!this._moving)){this.fire("down");var t=e.touches?e.touches[0]:e,r=tc(this._element);this._startPoint=new j(t.clientX,t.clientY),this._startPos=ti(this._element),this._parentScale=td(r);var i="mousedown"===e.type;th(document,i?"mousemove":"touchmove",this._onMove,this),th(document,i?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(e){if(this._enabled){if(e.touches&&e.touches.length>1){this._moved=!0;return}var t=e.touches&&1===e.touches.length?e.touches[0]:e,n=new j(t.clientX,t.clientY)._subtract(this._startPoint);(n.x||n.y)&&(Math.abs(n.x)+Math.abs(n.y)<this.options.clickTolerance||(n.x/=this._parentScale.x,n.y/=this._parentScale.y,tw(e),this._moved||(this.fire("dragstart"),this._moved=!0,e6(document.body,"leaflet-dragging"),this._lastTarget=e.target||e.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),e6(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(n),this._moving=!0,this._lastEvent=e,this._updatePosition()))}},_updatePosition:function(){var e={originalEvent:this._lastEvent};this.fire("predrag",e),tr(this._element,this._newPos),this.fire("drag",e)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(e){e8(document.body,"leaflet-dragging"),this._lastTarget&&(e8(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),tm(document,"mousemove touchmove",this._onMove,this),tm(document,"mouseup touchend touchcancel",this._onUp,this),ts(),r();var t=this._moved&&this._moving;this._moving=!1,tU._dragging=!1,t&&this.fire("dragend",{noInertia:e,distance:this._newPos.distanceTo(this._startPos)})}});function tj(e,t,n){var r,i,a,o,s,l,u,c,d,h=[1,4,2,8];for(i=0,u=e.length;i<u;i++)e[i]._code=t$(e[i],t);for(o=0;o<4;o++){for(c=h[o],r=[],i=0,a=(u=e.length)-1;i<u;a=i++)s=e[i],l=e[a],s._code&c?l._code&c||((d=tq(l,s,c,t,n))._code=t$(d,t),r.push(d)):(l._code&c&&((d=tq(l,s,c,t,n))._code=t$(d,t),r.push(d)),r.push(s));e=r}return e}function tz(e,t){if(!e||0===e.length)throw Error("latlngs not passed");tK(e)||(console.warn("latlngs are not flat! Only the first ring will be used"),e=e[0]);var n,r,i,a,o,s,l,u,c,d=J([0,0]),h=q(e);h.getNorthWest().distanceTo(h.getSouthWest())*h.getNorthEast().distanceTo(h.getNorthWest())<1700&&(d=tH(e));var p=e.length,m=[];for(n=0;n<p;n++){var f=J(e[n]);m.push(t.project(J([f.lat-d.lat,f.lng-d.lng])))}for(s=l=u=0,n=0,r=p-1;n<p;r=n++)i=m[n],a=m[r],o=i.y*a.x-a.y*i.x,l+=(i.x+a.x)*o,u+=(i.y+a.y)*o,s+=3*o;c=0===s?m[0]:[l/s,u/s];var g=t.unproject(H(c));return J([g.lat+d.lat,g.lng+d.lng])}function tH(e){for(var t=0,n=0,r=0,i=0;i<e.length;i++){var a=J(e[i]);t+=a.lat,n+=a.lng,r++}return J([t/r,n/r])}function tG(e,t){if(!t||!e.length)return e.slice();var n=t*t;return function(e,t){var n=e.length,r=new("u">typeof Uint8Array?Uint8Array:Array)(n);r[0]=r[n-1]=1,function e(t,n,r,i,a){var o,s,l,u=0;for(s=i+1;s<=a-1;s++)(l=tJ(t[s],t[i],t[a],!0))>u&&(o=s,u=l);u>r&&(n[o]=1,e(t,n,r,i,o),e(t,n,r,o,a))}(e,r,t,0,n-1);var i,a=[];for(i=0;i<n;i++)r[i]&&a.push(e[i]);return a}(e=function(e,t){for(var n=[e[0]],r=1,i=0,a=e.length;r<a;r++)(function(e,t){var n=t.x-e.x,r=t.y-e.y;return n*n+r*r})(e[r],e[i])>t&&(n.push(e[r]),i=r);return i<a-1&&n.push(e[a-1]),n}(e,n),n)}function tV(e,t,n){return Math.sqrt(tJ(e,t,n,!0))}function tW(e,t,n,r,i){var a,o,l,u=r?s:t$(e,n),c=t$(t,n);for(s=c;;){if(!(u|c))return[e,t];if(u&c)return!1;l=t$(o=tq(e,t,a=u||c,n,i),n),a===u?(e=o,u=l):(t=o,c=l)}}function tq(e,t,n,r,i){var a,o,s=t.x-e.x,l=t.y-e.y,u=r.min,c=r.max;return 8&n?(a=e.x+s*(c.y-e.y)/l,o=c.y):4&n?(a=e.x+s*(u.y-e.y)/l,o=u.y):2&n?(a=c.x,o=e.y+l*(c.x-e.x)/s):1&n&&(a=u.x,o=e.y+l*(u.x-e.x)/s),new j(a,o,i)}function t$(e,t){var n=0;return e.x<t.min.x?n|=1:e.x>t.max.x&&(n|=2),e.y<t.min.y?n|=4:e.y>t.max.y&&(n|=8),n}function tJ(e,t,n,r){var i,a=t.x,o=t.y,s=n.x-a,l=n.y-o,u=s*s+l*l;return u>0&&((i=((e.x-a)*s+(e.y-o)*l)/u)>1?(a=n.x,o=n.y):i>0&&(a+=s*i,o+=l*i)),s=e.x-a,l=e.y-o,r?s*s+l*l:new j(a,o)}function tK(e){return!T(e[0])||"object"!=typeof e[0][0]&&void 0!==e[0][0]}function tY(e){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),tK(e)}function tX(e,t){if(!e||0===e.length)throw Error("latlngs not passed");tK(e)||(console.warn("latlngs are not flat! Only the first ring will be used"),e=e[0]);var n,r,i,a,o,s,l,u,c=J([0,0]),d=q(e);d.getNorthWest().distanceTo(d.getSouthWest())*d.getNorthEast().distanceTo(d.getNorthWest())<1700&&(c=tH(e));var h=e.length,p=[];for(n=0;n<h;n++){var m=J(e[n]);p.push(t.project(J([m.lat-c.lat,m.lng-c.lng])))}for(n=0,r=0;n<h-1;n++)r+=p[n].distanceTo(p[n+1])/2;if(0===r)u=p[0];else for(n=0,a=0;n<h-1;n++)if(o=p[n],s=p[n+1],(a+=i=o.distanceTo(s))>r){l=(a-r)/i,u=[s.x-l*(s.x-o.x),s.y-l*(s.y-o.y)];break}var f=t.unproject(H(u));return J([f.lat+c.lat,f.lng+c.lng])}var tZ={project:function(e){return new j(e.lng,e.lat)},unproject:function(e){return new $(e.y,e.x)},bounds:new G([-180,-90],[180,90])},tQ={R:6378137,R_MINOR:6356752.314245179,bounds:new G([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(e){var t=Math.PI/180,n=this.R,r=e.lat*t,i=this.R_MINOR/n,a=Math.sqrt(1-i*i),o=a*Math.sin(r);return r=-n*Math.log(Math.max(Math.tan(Math.PI/4-r/2)/Math.pow((1-o)/(1+o),a/2),1e-10)),new j(e.lng*t*n,r)},unproject:function(e){for(var t,n=180/Math.PI,r=this.R,i=this.R_MINOR/r,a=Math.sqrt(1-i*i),o=Math.exp(-e.y/r),s=Math.PI/2-2*Math.atan(o),l=0,u=.1;l<15&&Math.abs(u)>1e-7;l++)u=Math.PI/2-2*Math.atan(o*(t=Math.pow((1-(t=a*Math.sin(s)))/(1+t),a/2)))-s,s+=u;return new $(s*n,e.x*n/r)}},t0=t({},Y,{code:"EPSG:3395",projection:tQ,transformation:Q(d=.5/(Math.PI*tQ.R),.5,-d,.5)}),t1=t({},Y,{code:"EPSG:4326",projection:tZ,transformation:Q(1/180,1,-1/180,.5)}),t2=t({},K,{projection:tZ,transformation:Q(1,0,-1,0),scale:function(e){return Math.pow(2,e)},zoom:function(e){return Math.log(e)/Math.LN2},distance:function(e,t){var n=t.lng-e.lng,r=t.lat-e.lat;return Math.sqrt(n*n+r*r)},infinite:!0});K.Earth=Y,K.EPSG3395=t0,K.EPSG3857=ee,K.EPSG900913=et,K.EPSG4326=t1,K.Simple=t2;var t3=U.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(e){return e.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(e){return e&&e.removeLayer(this),this},getPane:function(e){return this._map.getPane(e?this.options[e]||e:this.options.pane)},addInteractiveTarget:function(e){return this._map._targets[f(e)]=this,this},removeInteractiveTarget:function(e){return delete this._map._targets[f(e)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(e){var t=e.target;if(t.hasLayer(this)){if(this._map=t,this._zoomAnimated=t._zoomAnimated,this.getEvents){var n=this.getEvents();t.on(n,this),this.once("remove",function(){t.off(n,this)},this)}this.onAdd(t),this.fire("add"),t.fire("layeradd",{layer:this})}}});tN.include({addLayer:function(e){if(!e._layerAdd)throw Error("The provided object is not a Layer.");var t=f(e);return this._layers[t]||(this._layers[t]=e,e._mapToAdd=this,e.beforeAdd&&e.beforeAdd(this),this.whenReady(e._layerAdd,e)),this},removeLayer:function(e){var t=f(e);return this._layers[t]&&(this._loaded&&e.onRemove(this),delete this._layers[t],this._loaded&&(this.fire("layerremove",{layer:e}),e.fire("remove")),e._map=e._mapToAdd=null),this},hasLayer:function(e){return f(e)in this._layers},eachLayer:function(e,t){for(var n in this._layers)e.call(t,this._layers[n]);return this},_addLayers:function(e){e=e?T(e)?e:[e]:[];for(var t=0,n=e.length;t<n;t++)this.addLayer(e[t])},_addZoomLimit:function(e){isNaN(e.options.maxZoom)&&isNaN(e.options.minZoom)||(this._zoomBoundLayers[f(e)]=e,this._updateZoomLevels())},_removeZoomLimit:function(e){var t=f(e);this._zoomBoundLayers[t]&&(delete this._zoomBoundLayers[t],this._updateZoomLevels())},_updateZoomLevels:function(){var e=1/0,t=-1/0,n=this._getZoomSpan();for(var r in this._zoomBoundLayers){var i=this._zoomBoundLayers[r].options;e=void 0===i.minZoom?e:Math.min(e,i.minZoom),t=void 0===i.maxZoom?t:Math.max(t,i.maxZoom)}this._layersMaxZoom=-1/0===t?void 0:t,this._layersMinZoom=1/0===e?void 0:e,n!==this._getZoomSpan()&&this.fire("zoomlevelschange"),void 0===this.options.maxZoom&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var t4=t3.extend({initialize:function(e,t){var n,r;if(w(this,t),this._layers={},e)for(n=0,r=e.length;n<r;n++)this.addLayer(e[n])},addLayer:function(e){var t=this.getLayerId(e);return this._layers[t]=e,this._map&&this._map.addLayer(e),this},removeLayer:function(e){var t=e in this._layers?e:this.getLayerId(e);return this._map&&this._layers[t]&&this._map.removeLayer(this._layers[t]),delete this._layers[t],this},hasLayer:function(e){return("number"==typeof e?e:this.getLayerId(e))in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(e){var t,n,r=Array.prototype.slice.call(arguments,1);for(t in this._layers)(n=this._layers[t])[e]&&n[e].apply(n,r);return this},onAdd:function(e){this.eachLayer(e.addLayer,e)},onRemove:function(e){this.eachLayer(e.removeLayer,e)},eachLayer:function(e,t){for(var n in this._layers)e.call(t,this._layers[n]);return this},getLayer:function(e){return this._layers[e]},getLayers:function(){var e=[];return this.eachLayer(e.push,e),e},setZIndex:function(e){return this.invoke("setZIndex",e)},getLayerId:function(e){return f(e)}}),t5=t4.extend({addLayer:function(e){return this.hasLayer(e)?this:(e.addEventParent(this),t4.prototype.addLayer.call(this,e),this.fire("layeradd",{layer:e}))},removeLayer:function(e){return this.hasLayer(e)?(e in this._layers&&(e=this._layers[e]),e.removeEventParent(this),t4.prototype.removeLayer.call(this,e),this.fire("layerremove",{layer:e})):this},setStyle:function(e){return this.invoke("setStyle",e)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var e=new W;for(var t in this._layers){var n=this._layers[t];e.extend(n.getBounds?n.getBounds():n.getLatLng())}return e}}),t6=B.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(e){w(this,e)},createIcon:function(e){return this._createIcon("icon",e)},createShadow:function(e){return this._createIcon("shadow",e)},_createIcon:function(e,t){var n=this._getIconUrl(e);if(!n){if("icon"===e)throw Error("iconUrl not set in Icon options (see the docs).");return null}var r=this._createImg(n,t&&"IMG"===t.tagName?t:null);return this._setIconStyles(r,e),(this.options.crossOrigin||""===this.options.crossOrigin)&&(r.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),r},_setIconStyles:function(e,t){var n=this.options,r=n[t+"Size"];"number"==typeof r&&(r=[r,r]);var i=H(r),a=H("shadow"===t&&n.shadowAnchor||n.iconAnchor||i&&i.divideBy(2,!0));e.className="leaflet-marker-"+t+" "+(n.className||""),a&&(e.style.marginLeft=-a.x+"px",e.style.marginTop=-a.y+"px"),i&&(e.style.width=i.x+"px",e.style.height=i.y+"px")},_createImg:function(e,t){return(t=t||document.createElement("img")).src=e,t},_getIconUrl:function(e){return eD.retina&&this.options[e+"RetinaUrl"]||this.options[e+"Url"]}}),t8=t6.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(e){return"string"!=typeof t8.imagePath&&(t8.imagePath=this._detectIconPath()),(this.options.imagePath||t8.imagePath)+t6.prototype._getIconUrl.call(this,e)},_stripUrl:function(e){var t=function(e,t,n){var r=t.exec(e);return r&&r[n]};return(e=t(e,/^url\((['"])?(.+)\1\)$/,2))&&t(e,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var e=e0("div","leaflet-default-icon-path",document.body),t=eQ(e,"background-image")||eQ(e,"backgroundImage");if(document.body.removeChild(e),t=this._stripUrl(t))return t;var n=document.querySelector('link[href$="leaflet.css"]');return n?n.href.substring(0,n.href.length-11-1):""}}),t7=tB.extend({initialize:function(e){this._marker=e},addHooks:function(){var e=this._marker._icon;this._draggable||(this._draggable=new tU(e,e,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),e6(e,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&e8(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(e){var t=this._marker,n=t._map,r=this._marker.options.autoPanSpeed,i=this._marker.options.autoPanPadding,a=ti(t._icon),o=n.getPixelBounds(),s=n.getPixelOrigin(),l=V(o.min._subtract(s).add(i),o.max._subtract(s).subtract(i));if(!l.contains(a)){var u=H((Math.max(l.max.x,a.x)-l.max.x)/(o.max.x-l.max.x)-(Math.min(l.min.x,a.x)-l.min.x)/(o.min.x-l.min.x),(Math.max(l.max.y,a.y)-l.max.y)/(o.max.y-l.max.y)-(Math.min(l.min.y,a.y)-l.min.y)/(o.min.y-l.min.y)).multiplyBy(r);n.panBy(u,{animate:!1}),this._draggable._newPos._add(u),this._draggable._startPos._add(u),tr(t._icon,this._draggable._newPos),this._onDrag(e),this._panRequest=k(this._adjustPan.bind(this,e))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(e){this._marker.options.autoPan&&(D(this._panRequest),this._panRequest=k(this._adjustPan.bind(this,e)))},_onDrag:function(e){var t=this._marker,n=t._shadow,r=ti(t._icon),i=t._map.layerPointToLatLng(r);n&&tr(n,r),t._latlng=i,e.latlng=i,e.oldLatLng=this._oldLatLng,t.fire("move",e).fire("drag",e)},_onDragEnd:function(e){D(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",e)}}),t9=t3.extend({options:{icon:new t8,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(e,t){w(this,t),this._latlng=J(e)},onAdd:function(e){this._zoomAnimated=this._zoomAnimated&&e.options.markerZoomAnimation,this._zoomAnimated&&e.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(e){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&e.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(e){var t=this._latlng;return this._latlng=J(e),this.update(),this.fire("move",{oldLatLng:t,latlng:this._latlng})},setZIndexOffset:function(e){return this.options.zIndexOffset=e,this.update()},getIcon:function(){return this.options.icon},setIcon:function(e){return this.options.icon=e,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var e=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(e)}return this},_initIcon:function(){var e=this.options,t="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),n=e.icon.createIcon(this._icon),r=!1;n!==this._icon&&(this._icon&&this._removeIcon(),r=!0,e.title&&(n.title=e.title),"IMG"===n.tagName&&(n.alt=e.alt||"")),e6(n,t),e.keyboard&&(n.tabIndex="0",n.setAttribute("role","button")),this._icon=n,e.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&th(n,"focus",this._panOnFocus,this);var i=e.icon.createShadow(this._shadow),a=!1;i!==this._shadow&&(this._removeShadow(),a=!0),i&&(e6(i,t),i.alt=""),this._shadow=i,e.opacity<1&&this._updateOpacity(),r&&this.getPane().appendChild(this._icon),this._initInteraction(),i&&a&&this.getPane(e.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&tm(this._icon,"focus",this._panOnFocus,this),e1(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&e1(this._shadow),this._shadow=null},_setPos:function(e){this._icon&&tr(this._icon,e),this._shadow&&tr(this._shadow,e),this._zIndex=e.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(e){this._icon&&(this._icon.style.zIndex=this._zIndex+e)},_animateZoom:function(e){var t=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center).round();this._setPos(t)},_initInteraction:function(){if(this.options.interactive&&(e6(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),t7)){var e=this.options.draggable;this.dragging&&(e=this.dragging.enabled(),this.dragging.disable()),this.dragging=new t7(this),e&&this.dragging.enable()}},setOpacity:function(e){return this.options.opacity=e,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var e=this.options.opacity;this._icon&&te(this._icon,e),this._shadow&&te(this._shadow,e)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var e=this._map;if(e){var t=this.options.icon.options,n=t.iconSize?H(t.iconSize):H(0,0),r=t.iconAnchor?H(t.iconAnchor):H(0,0);e.panInside(this._latlng,{paddingTopLeft:r,paddingBottomRight:n.subtract(r)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}}),ne=t3.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(e){this._renderer=e.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(e){return w(this,e),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&e&&Object.prototype.hasOwnProperty.call(e,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),nt=ne.extend({options:{fill:!0,radius:10},initialize:function(e,t){w(this,t),this._latlng=J(e),this._radius=this.options.radius},setLatLng:function(e){var t=this._latlng;return this._latlng=J(e),this.redraw(),this.fire("move",{oldLatLng:t,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(e){return this.options.radius=this._radius=e,this.redraw()},getRadius:function(){return this._radius},setStyle:function(e){var t=e&&e.radius||this._radius;return ne.prototype.setStyle.call(this,e),this.setRadius(t),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var e=this._radius,t=this._radiusY||e,n=this._clickTolerance(),r=[e+n,t+n];this._pxBounds=new G(this._point.subtract(r),this._point.add(r))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(e){return e.distanceTo(this._point)<=this._radius+this._clickTolerance()}}),nn=nt.extend({initialize:function(e,n,r){if("number"==typeof n&&(n=t({},r,{radius:n})),w(this,n),this._latlng=J(e),isNaN(this.options.radius))throw Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(e){return this._mRadius=e,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var e=[this._radius,this._radiusY||this._radius];return new W(this._map.layerPointToLatLng(this._point.subtract(e)),this._map.layerPointToLatLng(this._point.add(e)))},setStyle:ne.prototype.setStyle,_project:function(){var e=this._latlng.lng,t=this._latlng.lat,n=this._map,r=n.options.crs;if(r.distance===Y.distance){var i=Math.PI/180,a=this._mRadius/Y.R/i,o=n.project([t+a,e]),s=n.project([t-a,e]),l=o.add(s).divideBy(2),u=n.unproject(l).lat,c=Math.acos((Math.cos(a*i)-Math.sin(t*i)*Math.sin(u*i))/(Math.cos(t*i)*Math.cos(u*i)))/i;(isNaN(c)||0===c)&&(c=a/Math.cos(Math.PI/180*t)),this._point=l.subtract(n.getPixelOrigin()),this._radius=isNaN(c)?0:l.x-n.project([u,e-c]).x,this._radiusY=l.y-o.y}else{var d=r.unproject(r.project(this._latlng).subtract([this._mRadius,0]));this._point=n.latLngToLayerPoint(this._latlng),this._radius=this._point.x-n.latLngToLayerPoint(d).x}this._updateBounds()}}),nr=ne.extend({options:{smoothFactor:1,noClip:!1},initialize:function(e,t){w(this,t),this._setLatLngs(e)},getLatLngs:function(){return this._latlngs},setLatLngs:function(e){return this._setLatLngs(e),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(e){for(var t,n,r=1/0,i=null,a=tJ,o=0,s=this._parts.length;o<s;o++)for(var l=this._parts[o],u=1,c=l.length;u<c;u++){var d=a(e,t=l[u-1],n=l[u],!0);d<r&&(r=d,i=a(e,t,n))}return i&&(i.distance=Math.sqrt(r)),i},getCenter:function(){if(!this._map)throw Error("Must add layer to map before using getCenter()");return tX(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(e,t){return t=t||this._defaultShape(),e=J(e),t.push(e),this._bounds.extend(e),this.redraw()},_setLatLngs:function(e){this._bounds=new W,this._latlngs=this._convertLatLngs(e)},_defaultShape:function(){return tK(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(e){for(var t=[],n=tK(e),r=0,i=e.length;r<i;r++)n?(t[r]=J(e[r]),this._bounds.extend(t[r])):t[r]=this._convertLatLngs(e[r]);return t},_project:function(){var e=new G;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,e),this._bounds.isValid()&&e.isValid()&&(this._rawPxBounds=e,this._updateBounds())},_updateBounds:function(){var e=this._clickTolerance(),t=new j(e,e);this._rawPxBounds&&(this._pxBounds=new G([this._rawPxBounds.min.subtract(t),this._rawPxBounds.max.add(t)]))},_projectLatlngs:function(e,t,n){var r,i,a=e[0]instanceof $,o=e.length;if(a){for(r=0,i=[];r<o;r++)i[r]=this._map.latLngToLayerPoint(e[r]),n.extend(i[r]);t.push(i)}else for(r=0;r<o;r++)this._projectLatlngs(e[r],t,n)},_clipPoints:function(){var e=this._renderer._bounds;if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(e)){if(this.options.noClip){this._parts=this._rings;return}var t,n,r,i,a,o,s,l=this._parts;for(t=0,r=0,i=this._rings.length;t<i;t++)for(n=0,a=(s=this._rings[t]).length;n<a-1;n++)(o=tW(s[n],s[n+1],e,n,!0))&&(l[r]=l[r]||[],l[r].push(o[0]),(o[1]!==s[n+1]||n===a-2)&&(l[r].push(o[1]),r++))}},_simplifyPoints:function(){for(var e=this._parts,t=this.options.smoothFactor,n=0,r=e.length;n<r;n++)e[n]=tG(e[n],t)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(e,t){var n,r,i,a,o,s,l=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(e))return!1;for(n=0,a=this._parts.length;n<a;n++)for(r=0,i=(o=(s=this._parts[n]).length)-1;r<o;i=r++)if((t||0!==r)&&tV(e,s[i],s[r])<=l)return!0;return!1}});nr._flat=tY;var ni=nr.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw Error("Must add layer to map before using getCenter()");return tz(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(e){var t=nr.prototype._convertLatLngs.call(this,e),n=t.length;return n>=2&&t[0]instanceof $&&t[0].equals(t[n-1])&&t.pop(),t},_setLatLngs:function(e){nr.prototype._setLatLngs.call(this,e),tK(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return tK(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var e=this._renderer._bounds,t=this.options.weight,n=new j(t,t);if(e=new G(e.min.subtract(n),e.max.add(n)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(e)){if(this.options.noClip){this._parts=this._rings;return}for(var r,i=0,a=this._rings.length;i<a;i++)(r=tj(this._rings[i],e,!0)).length&&this._parts.push(r)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(e){var t,n,r,i,a,o,s,l,u=!1;if(!this._pxBounds||!this._pxBounds.contains(e))return!1;for(i=0,s=this._parts.length;i<s;i++)for(a=0,o=(l=(t=this._parts[i]).length)-1;a<l;o=a++)n=t[a],r=t[o],n.y>e.y!=r.y>e.y&&e.x<(r.x-n.x)*(e.y-n.y)/(r.y-n.y)+n.x&&(u=!u);return u||nr.prototype._containsPoint.call(this,e,!0)}}),na=t5.extend({initialize:function(e,t){w(this,t),this._layers={},e&&this.addData(e)},addData:function(e){var t,n,r,i=T(e)?e:e.features;if(i){for(t=0,n=i.length;t<n;t++)((r=i[t]).geometries||r.geometry||r.features||r.coordinates)&&this.addData(r);return this}var a=this.options;if(a.filter&&!a.filter(e))return this;var o=no(e,a);return o?(o.feature=np(e),o.defaultOptions=o.options,this.resetStyle(o),a.onEachFeature&&a.onEachFeature(e,o),this.addLayer(o)):this},resetStyle:function(e){return void 0===e?this.eachLayer(this.resetStyle,this):(e.options=t({},e.defaultOptions),this._setLayerStyle(e,this.options.style),this)},setStyle:function(e){return this.eachLayer(function(t){this._setLayerStyle(t,e)},this)},_setLayerStyle:function(e,t){e.setStyle&&("function"==typeof t&&(t=t(e.feature)),e.setStyle(t))}});function no(e,t){var n,r,i,a="Feature"===e.type?e.geometry:e,o=a?a.coordinates:null,s=[],l=t&&t.pointToLayer,u=t&&t.coordsToLatLng||nl;if(!o&&!a)return null;switch(a.type){case"Point":return ns(l,e,n=u(o),t);case"MultiPoint":for(r=0,i=o.length;r<i;r++)n=u(o[r]),s.push(ns(l,e,n,t));return new t5(s);case"LineString":case"MultiLineString":return new nr(nu(o,+("LineString"!==a.type),u),t);case"Polygon":case"MultiPolygon":return new ni(nu(o,"Polygon"===a.type?1:2,u),t);case"GeometryCollection":for(r=0,i=a.geometries.length;r<i;r++){var c=no({geometry:a.geometries[r],type:"Feature",properties:e.properties},t);c&&s.push(c)}return new t5(s);case"FeatureCollection":for(r=0,i=a.features.length;r<i;r++){var d=no(a.features[r],t);d&&s.push(d)}return new t5(s);default:throw Error("Invalid GeoJSON object.")}}function ns(e,t,n,r){return e?e(t,n):new t9(n,r&&r.markersInheritOptions&&r)}function nl(e){return new $(e[1],e[0],e[2])}function nu(e,t,n){for(var r=[],i=0,a=e.length;i<a;i++)r.push(t?nu(e[i],t-1,n):(n||nl)(e[i]));return r}function nc(e,t){return void 0!==(e=J(e)).alt?[b(e.lng,t),b(e.lat,t),b(e.alt,t)]:[b(e.lng,t),b(e.lat,t)]}function nd(e,t,n,r){for(var i=[],a=0,o=e.length;a<o;a++)i.push(t?nd(e[a],tK(e[a])?0:t-1,n,r):nc(e[a],r));return!t&&n&&i.length>0&&i.push(i[0].slice()),i}function nh(e,n){return e.feature?t({},e.feature,{geometry:n}):np(n)}function np(e){return"Feature"===e.type||"FeatureCollection"===e.type?e:{type:"Feature",properties:{},geometry:e}}var nm={toGeoJSON:function(e){return nh(this,{type:"Point",coordinates:nc(this.getLatLng(),e)})}};function nf(e,t){return new na(e,t)}t9.include(nm),nn.include(nm),nt.include(nm),nr.include({toGeoJSON:function(e){var t=!tK(this._latlngs),n=nd(this._latlngs,+!!t,!1,e);return nh(this,{type:(t?"Multi":"")+"LineString",coordinates:n})}}),ni.include({toGeoJSON:function(e){var t=!tK(this._latlngs),n=t&&!tK(this._latlngs[0]),r=nd(this._latlngs,n?2:+!!t,!0,e);return t||(r=[r]),nh(this,{type:(n?"Multi":"")+"Polygon",coordinates:r})}}),t4.include({toMultiPoint:function(e){var t=[];return this.eachLayer(function(n){t.push(n.toGeoJSON(e).geometry.coordinates)}),nh(this,{type:"MultiPoint",coordinates:t})},toGeoJSON:function(e){var t=this.feature&&this.feature.geometry&&this.feature.geometry.type;if("MultiPoint"===t)return this.toMultiPoint(e);var n="GeometryCollection"===t,r=[];return(this.eachLayer(function(t){if(t.toGeoJSON){var i=t.toGeoJSON(e);if(n)r.push(i.geometry);else{var a=np(i);"FeatureCollection"===a.type?r.push.apply(r,a.features):r.push(a)}}}),n)?nh(this,{geometries:r,type:"GeometryCollection"}):{type:"FeatureCollection",features:r}}});var ng=t3.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(e,t,n){this._url=e,this._bounds=q(t),w(this,n)},onAdd:function(){!this._image&&(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(e6(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){e1(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(e){return this.options.opacity=e,this._image&&this._updateOpacity(),this},setStyle:function(e){return e.opacity&&this.setOpacity(e.opacity),this},bringToFront:function(){return this._map&&e3(this._image),this},bringToBack:function(){return this._map&&e4(this._image),this},setUrl:function(e){return this._url=e,this._image&&(this._image.src=e),this},setBounds:function(e){return this._bounds=q(e),this._map&&this._reset(),this},getEvents:function(){var e={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(e.zoomanim=this._animateZoom),e},setZIndex:function(e){return this.options.zIndex=e,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var e="IMG"===this._url.tagName,t=this._image=e?this._url:e0("img");if(e6(t,"leaflet-image-layer"),this._zoomAnimated&&e6(t,"leaflet-zoom-animated"),this.options.className&&e6(t,this.options.className),t.onselectstart=y,t.onmousemove=y,t.onload=p(this.fire,this,"load"),t.onerror=p(this._overlayOnError,this,"error"),(this.options.crossOrigin||""===this.options.crossOrigin)&&(t.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),e){this._url=t.src;return}t.src=this._url,t.alt=this.options.alt},_animateZoom:function(e){var t=this._map.getZoomScale(e.zoom),n=this._map._latLngBoundsToNewLayerBounds(this._bounds,e.zoom,e.center).min;tn(this._image,n,t)},_reset:function(){var e=this._image,t=new G(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),n=t.getSize();tr(e,t.min),e.style.width=n.x+"px",e.style.height=n.y+"px"},_updateOpacity:function(){te(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var e=this.options.errorOverlayUrl;e&&this._url!==e&&(this._url=e,this._image.src=e)},getCenter:function(){return this._bounds.getCenter()}}),nv=ng.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var e="VIDEO"===this._url.tagName,t=this._image=e?this._url:e0("video");if(e6(t,"leaflet-image-layer"),this._zoomAnimated&&e6(t,"leaflet-zoom-animated"),this.options.className&&e6(t,this.options.className),t.onselectstart=y,t.onmousemove=y,t.onloadeddata=p(this.fire,this,"load"),e){for(var n=t.getElementsByTagName("source"),r=[],i=0;i<n.length;i++)r.push(n[i].src);this._url=n.length>0?r:[t.src];return}T(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(t.style,"objectFit")&&(t.style.objectFit="fill"),t.autoplay=!!this.options.autoplay,t.loop=!!this.options.loop,t.muted=!!this.options.muted,t.playsInline=!!this.options.playsInline;for(var a=0;a<this._url.length;a++){var o=e0("source");o.src=this._url[a],t.appendChild(o)}}}),ny=ng.extend({_initImage:function(){var e=this._image=this._url;e6(e,"leaflet-image-layer"),this._zoomAnimated&&e6(e,"leaflet-zoom-animated"),this.options.className&&e6(e,this.options.className),e.onselectstart=y,e.onmousemove=y}}),nb=t3.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(e,t){e&&(e instanceof $||T(e))?(this._latlng=J(e),w(this,t)):(w(this,e),this._source=t),this.options.content&&(this._content=this.options.content)},openOn:function(e){return e=arguments.length?e:this._source._map,e.hasLayer(this)||e.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(e){return this._map?this.close():(arguments.length?this._source=e:e=this._source,this._prepareOpen(),this.openOn(e._map)),this},onAdd:function(e){this._zoomAnimated=e._zoomAnimated,this._container||this._initLayout(),e._fadeAnimated&&te(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),e._fadeAnimated&&te(this._container,1),this.bringToFront(),this.options.interactive&&(e6(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(e){e._fadeAnimated?(te(this._container,0),this._removeTimeout=setTimeout(p(e1,void 0,this._container),200)):e1(this._container),this.options.interactive&&(e8(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(e){return this._latlng=J(e),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(e){return this._content=e,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var e={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(e.zoomanim=this._animateZoom),e},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&e3(this._container),this},bringToBack:function(){return this._map&&e4(this._container),this},_prepareOpen:function(e){var t=this._source;if(!t._map)return!1;if(t instanceof t5){t=null;var n=this._source._layers;for(var r in n)if(n[r]._map){t=n[r];break}if(!t)return!1;this._source=t}if(!e)if(t.getCenter)e=t.getCenter();else if(t.getLatLng)e=t.getLatLng();else if(t.getBounds)e=t.getBounds().getCenter();else throw Error("Unable to get source layer LatLng.");return this.setLatLng(e),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var e=this._contentNode,t="function"==typeof this._content?this._content(this._source||this):this._content;if("string"==typeof t)e.innerHTML=t;else{for(;e.hasChildNodes();)e.removeChild(e.firstChild);e.appendChild(t)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var e=this._map.latLngToLayerPoint(this._latlng),t=H(this.options.offset),n=this._getAnchor();this._zoomAnimated?tr(this._container,e.add(n)):t=t.add(e).add(n);var r=this._containerBottom=-t.y,i=this._containerLeft=-Math.round(this._containerWidth/2)+t.x;this._container.style.bottom=r+"px",this._container.style.left=i+"px"}},_getAnchor:function(){return[0,0]}});tN.include({_initOverlay:function(e,t,n,r){var i=t;return i instanceof e||(i=new e(r).setContent(t)),n&&i.setLatLng(n),i}}),t3.include({_initOverlay:function(e,t,n,r){var i=n;return i instanceof e?(w(i,r),i._source=this):(i=t&&!r?t:new e(r,this)).setContent(n),i}});var n_=nb.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(e){return e=arguments.length?e:this._source._map,!e.hasLayer(this)&&e._popup&&e._popup.options.autoClose&&e.removeLayer(e._popup),e._popup=this,nb.prototype.openOn.call(this,e)},onAdd:function(e){nb.prototype.onAdd.call(this,e),e.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof ne||this._source.on("preclick",tb))},onRemove:function(e){nb.prototype.onRemove.call(this,e),e.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof ne||this._source.off("preclick",tb))},getEvents:function(){var e=nb.prototype.getEvents.call(this);return(void 0!==this.options.closeOnClick?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(e.preclick=this.close),this.options.keepInView&&(e.moveend=this._adjustPan),e},_initLayout:function(){var e="leaflet-popup",t=this._container=e0("div",e+" "+(this.options.className||"")+" leaflet-zoom-animated"),n=this._wrapper=e0("div",e+"-content-wrapper",t);if(this._contentNode=e0("div",e+"-content",n),tx(t),t_(this._contentNode),th(t,"contextmenu",tb),this._tipContainer=e0("div",e+"-tip-container",t),this._tip=e0("div",e+"-tip",this._tipContainer),this.options.closeButton){var r=this._closeButton=e0("a",e+"-close-button",t);r.setAttribute("role","button"),r.setAttribute("aria-label","Close popup"),r.href="#close",r.innerHTML='<span aria-hidden="true">&#215;</span>',th(r,"click",function(e){tw(e),this.close()},this)}},_updateLayout:function(){var e=this._contentNode,t=e.style;t.width="",t.whiteSpace="nowrap";var n=e.offsetWidth;t.width=(n=Math.max(n=Math.min(n,this.options.maxWidth),this.options.minWidth))+1+"px",t.whiteSpace="",t.height="";var r=e.offsetHeight,i=this.options.maxHeight,a="leaflet-popup-scrolled";i&&r>i?(t.height=i+"px",e6(e,a)):e8(e,a),this._containerWidth=this._container.offsetWidth},_animateZoom:function(e){var t=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center),n=this._getAnchor();tr(this._container,t.add(n))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var e=this._map,t=parseInt(eQ(this._container,"marginBottom"),10)||0,n=this._container.offsetHeight+t,r=this._containerWidth,i=new j(this._containerLeft,-n-this._containerBottom);i._add(ti(this._container));var a=e.layerPointToContainerPoint(i),o=H(this.options.autoPanPadding),s=H(this.options.autoPanPaddingTopLeft||o),l=H(this.options.autoPanPaddingBottomRight||o),u=e.getSize(),c=0,d=0;a.x+r+l.x>u.x&&(c=a.x+r-u.x+l.x),a.x-c-s.x<0&&(c=a.x-s.x),a.y+n+l.y>u.y&&(d=a.y+n-u.y+l.y),a.y-d-s.y<0&&(d=a.y-s.y),(c||d)&&(this.options.keepInView&&(this._autopanning=!0),e.fire("autopanstart").panBy([c,d]))}},_getAnchor:function(){return H(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}});tN.mergeOptions({closePopupOnClick:!0}),tN.include({openPopup:function(e,t,n){return this._initOverlay(n_,e,t,n).openOn(this),this},closePopup:function(e){return e=arguments.length?e:this._popup,e&&e.close(),this}}),t3.include({bindPopup:function(e,t){return this._popup=this._initOverlay(n_,this._popup,e,t),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(e){return this._popup&&(this instanceof t5||(this._popup._source=this),this._popup._prepareOpen(e||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(e){return this._popup&&this._popup.setContent(e),this},getPopup:function(){return this._popup},_openPopup:function(e){if(this._popup&&this._map){tS(e);var t=e.layer||e.target;if(this._popup._source===t&&!(t instanceof ne))return void(this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(e.latlng));this._popup._source=t,this.openPopup(e.latlng)}},_movePopup:function(e){this._popup.setLatLng(e.latlng)},_onKeyPress:function(e){13===e.originalEvent.keyCode&&this._openPopup(e)}});var nx=nb.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(e){nb.prototype.onAdd.call(this,e),this.setOpacity(this.options.opacity),e.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(e){nb.prototype.onRemove.call(this,e),e.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var e=nb.prototype.getEvents.call(this);return this.options.permanent||(e.preclick=this.close),e},_initLayout:function(){var e="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=e0("div",e),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+f(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(e){var t,n,r=this._map,i=this._container,a=r.latLngToContainerPoint(r.getCenter()),o=r.layerPointToContainerPoint(e),s=this.options.direction,l=i.offsetWidth,u=i.offsetHeight,c=H(this.options.offset),d=this._getAnchor();"top"===s?(t=l/2,n=u):"bottom"===s?(t=l/2,n=0):("center"===s?t=l/2:"right"===s?t=0:"left"===s?t=l:o.x<a.x?(s="right",t=0):(s="left",t=l+(c.x+d.x)*2),n=u/2),e=e.subtract(H(t,n,!0)).add(c).add(d),e8(i,"leaflet-tooltip-right"),e8(i,"leaflet-tooltip-left"),e8(i,"leaflet-tooltip-top"),e8(i,"leaflet-tooltip-bottom"),e6(i,"leaflet-tooltip-"+s),tr(i,e)},_updatePosition:function(){var e=this._map.latLngToLayerPoint(this._latlng);this._setPosition(e)},setOpacity:function(e){this.options.opacity=e,this._container&&te(this._container,e)},_animateZoom:function(e){var t=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center);this._setPosition(t)},_getAnchor:function(){return H(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}});tN.include({openTooltip:function(e,t,n){return this._initOverlay(nx,e,t,n).openOn(this),this},closeTooltip:function(e){return e.close(),this}}),t3.include({bindTooltip:function(e,t){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(nx,this._tooltip,e,t),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(e){if(e||!this._tooltipHandlersAdded){var t={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?t.add=this._openTooltip:(t.mouseover=this._openTooltip,t.mouseout=this.closeTooltip,t.click=this._openTooltip,this._map?this._addFocusListeners():t.add=this._addFocusListeners),this._tooltip.options.sticky&&(t.mousemove=this._moveTooltip),this[e?"off":"on"](t),this._tooltipHandlersAdded=!e}},openTooltip:function(e){return this._tooltip&&(this instanceof t5||(this._tooltip._source=this),this._tooltip._prepareOpen(e)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(e){return this._tooltip&&this._tooltip.setContent(e),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(e){var t="function"==typeof e.getElement&&e.getElement();t&&(th(t,"focus",function(){this._tooltip._source=e,this.openTooltip()},this),th(t,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(e){var t="function"==typeof e.getElement&&e.getElement();t&&t.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(e){if(this._tooltip&&this._map){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var t=this;this._map.once("moveend",function(){t._openOnceFlag=!1,t._openTooltip(e)});return}this._tooltip._source=e.layer||e.target,this.openTooltip(this._tooltip.options.sticky?e.latlng:void 0)}},_moveTooltip:function(e){var t,n,r=e.latlng;this._tooltip.options.sticky&&e.originalEvent&&(t=this._map.mouseEventToContainerPoint(e.originalEvent),n=this._map.containerPointToLayerPoint(t),r=this._map.layerPointToLatLng(n)),this._tooltip.setLatLng(r)}});var nw=t6.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(e){var t=e&&"DIV"===e.tagName?e:document.createElement("div"),n=this.options;if(n.html instanceof Element?(e2(t),t.appendChild(n.html)):t.innerHTML=!1!==n.html?n.html:"",n.bgPos){var r=H(n.bgPos);t.style.backgroundPosition=-r.x+"px "+-r.y+"px"}return this._setIconStyles(t,"icon"),t},createShadow:function(){return null}});t6.Default=t8;var nS=t3.extend({options:{tileSize:256,opacity:1,updateWhenIdle:eD.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(e){w(this,e)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(e){e._addZoomLimit(this)},onRemove:function(e){this._removeAllTiles(),e1(this._container),e._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(e3(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(e4(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(e){return this.options.opacity=e,this._updateOpacity(),this},setZIndex:function(e){return this.options.zIndex=e,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var e=this._clampZoom(this._map.getZoom());e!==this._tileZoom&&(this._tileZoom=e,this._updateLevels()),this._update()}return this},getEvents:function(){var e={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=g(this._onMoveEnd,this.options.updateInterval,this)),e.move=this._onMove),this._zoomAnimated&&(e.zoomanim=this._animateZoom),e},createTile:function(){return document.createElement("div")},getTileSize:function(){var e=this.options.tileSize;return e instanceof j?e:new j(e,e)},_updateZIndex:function(){this._container&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(e){for(var t,n=this.getPane().children,r=-e(-1/0,1/0),i=0,a=n.length;i<a;i++)t=n[i].style.zIndex,n[i]!==this._container&&t&&(r=e(r,+t));isFinite(r)&&(this.options.zIndex=r+e(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!eD.ielt9){te(this._container,this.options.opacity);var e=+new Date,t=!1,n=!1;for(var r in this._tiles){var i=this._tiles[r];if(i.current&&i.loaded){var a=Math.min(1,(e-i.loaded)/200);te(i.el,a),a<1?t=!0:(i.active?n=!0:this._onOpaqueTile(i),i.active=!0)}}n&&!this._noPrune&&this._pruneTiles(),t&&(D(this._fadeFrame),this._fadeFrame=k(this._updateOpacity,this))}},_onOpaqueTile:y,_initContainer:function(){this._container||(this._container=e0("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var e=this._tileZoom,t=this.options.maxZoom;if(void 0!==e){for(var n in this._levels)n=Number(n),this._levels[n].el.children.length||n===e?(this._levels[n].el.style.zIndex=t-Math.abs(e-n),this._onUpdateLevel(n)):(e1(this._levels[n].el),this._removeTilesAtZoom(n),this._onRemoveLevel(n),delete this._levels[n]);var r=this._levels[e],i=this._map;return r||((r=this._levels[e]={}).el=e0("div","leaflet-tile-container leaflet-zoom-animated",this._container),r.el.style.zIndex=t,r.origin=i.project(i.unproject(i.getPixelOrigin()),e).round(),r.zoom=e,this._setZoomTransform(r,i.getCenter(),i.getZoom()),y(r.el.offsetWidth),this._onCreateLevel(r)),this._level=r,r}},_onUpdateLevel:y,_onRemoveLevel:y,_onCreateLevel:y,_pruneTiles:function(){if(this._map){var e,t,n=this._map.getZoom();if(n>this.options.maxZoom||n<this.options.minZoom)return void this._removeAllTiles();for(e in this._tiles)(t=this._tiles[e]).retain=t.current;for(e in this._tiles)if((t=this._tiles[e]).current&&!t.active){var r=t.coords;this._retainParent(r.x,r.y,r.z,r.z-5)||this._retainChildren(r.x,r.y,r.z,r.z+2)}for(e in this._tiles)this._tiles[e].retain||this._removeTile(e)}},_removeTilesAtZoom:function(e){for(var t in this._tiles)this._tiles[t].coords.z===e&&this._removeTile(t)},_removeAllTiles:function(){for(var e in this._tiles)this._removeTile(e)},_invalidateAll:function(){for(var e in this._levels)e1(this._levels[e].el),this._onRemoveLevel(Number(e)),delete this._levels[e];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(e,t,n,r){var i=Math.floor(e/2),a=Math.floor(t/2),o=n-1,s=new j(+i,+a);s.z=+o;var l=this._tileCoordsToKey(s),u=this._tiles[l];return u&&u.active?(u.retain=!0,!0):(u&&u.loaded&&(u.retain=!0),o>r&&this._retainParent(i,a,o,r))},_retainChildren:function(e,t,n,r){for(var i=2*e;i<2*e+2;i++)for(var a=2*t;a<2*t+2;a++){var o=new j(i,a);o.z=n+1;var s=this._tileCoordsToKey(o),l=this._tiles[s];if(l&&l.active){l.retain=!0;continue}l&&l.loaded&&(l.retain=!0),n+1<r&&this._retainChildren(i,a,n+1,r)}},_resetView:function(e){var t=e&&(e.pinch||e.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),t,t)},_animateZoom:function(e){this._setView(e.center,e.zoom,!0,e.noUpdate)},_clampZoom:function(e){var t=this.options;return void 0!==t.minNativeZoom&&e<t.minNativeZoom?t.minNativeZoom:void 0!==t.maxNativeZoom&&t.maxNativeZoom<e?t.maxNativeZoom:e},_setView:function(e,t,n,r){var i=Math.round(t);i=void 0!==this.options.maxZoom&&i>this.options.maxZoom||void 0!==this.options.minZoom&&i<this.options.minZoom?void 0:this._clampZoom(i);var a=this.options.updateWhenZooming&&i!==this._tileZoom;(!r||a)&&(this._tileZoom=i,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),void 0!==i&&this._update(e),n||this._pruneTiles(),this._noPrune=!!n),this._setZoomTransforms(e,t)},_setZoomTransforms:function(e,t){for(var n in this._levels)this._setZoomTransform(this._levels[n],e,t)},_setZoomTransform:function(e,t,n){var r=this._map.getZoomScale(n,e.zoom),i=e.origin.multiplyBy(r).subtract(this._map._getNewPixelOrigin(t,n)).round();eD.any3d?tn(e.el,i,r):tr(e.el,i)},_resetGrid:function(){var e=this._map,t=e.options.crs,n=this._tileSize=this.getTileSize(),r=this._tileZoom,i=this._map.getPixelWorldBounds(this._tileZoom);i&&(this._globalTileRange=this._pxBoundsToTileRange(i)),this._wrapX=t.wrapLng&&!this.options.noWrap&&[Math.floor(e.project([0,t.wrapLng[0]],r).x/n.x),Math.ceil(e.project([0,t.wrapLng[1]],r).x/n.y)],this._wrapY=t.wrapLat&&!this.options.noWrap&&[Math.floor(e.project([t.wrapLat[0],0],r).y/n.x),Math.ceil(e.project([t.wrapLat[1],0],r).y/n.y)]},_onMoveEnd:function(){this._map&&!this._map._animatingZoom&&this._update()},_getTiledPixelBounds:function(e){var t=this._map,n=t._animatingZoom?Math.max(t._animateToZoom,t.getZoom()):t.getZoom(),r=t.getZoomScale(n,this._tileZoom),i=t.project(e,this._tileZoom).floor(),a=t.getSize().divideBy(2*r);return new G(i.subtract(a),i.add(a))},_update:function(e){var t=this._map;if(t){var n=this._clampZoom(t.getZoom());if(void 0===e&&(e=t.getCenter()),void 0!==this._tileZoom){var r=this._getTiledPixelBounds(e),i=this._pxBoundsToTileRange(r),a=i.getCenter(),o=[],s=this.options.keepBuffer,l=new G(i.getBottomLeft().subtract([s,-s]),i.getTopRight().add([s,-s]));if(!(isFinite(i.min.x)&&isFinite(i.min.y)&&isFinite(i.max.x)&&isFinite(i.max.y)))throw Error("Attempted to load an infinite number of tiles");for(var u in this._tiles){var c=this._tiles[u].coords;c.z===this._tileZoom&&l.contains(new j(c.x,c.y))||(this._tiles[u].current=!1)}if(Math.abs(n-this._tileZoom)>1)return void this._setView(e,n);for(var d=i.min.y;d<=i.max.y;d++)for(var h=i.min.x;h<=i.max.x;h++){var p=new j(h,d);if(p.z=this._tileZoom,this._isValidTile(p)){var m=this._tiles[this._tileCoordsToKey(p)];m?m.current=!0:o.push(p)}}if(o.sort(function(e,t){return e.distanceTo(a)-t.distanceTo(a)}),0!==o.length){this._loading||(this._loading=!0,this.fire("loading"));var f=document.createDocumentFragment();for(h=0;h<o.length;h++)this._addTile(o[h],f);this._level.el.appendChild(f)}}}},_isValidTile:function(e){var t=this._map.options.crs;if(!t.infinite){var n=this._globalTileRange;if(!t.wrapLng&&(e.x<n.min.x||e.x>n.max.x)||!t.wrapLat&&(e.y<n.min.y||e.y>n.max.y))return!1}if(!this.options.bounds)return!0;var r=this._tileCoordsToBounds(e);return q(this.options.bounds).overlaps(r)},_keyToBounds:function(e){return this._tileCoordsToBounds(this._keyToTileCoords(e))},_tileCoordsToNwSe:function(e){var t=this._map,n=this.getTileSize(),r=e.scaleBy(n),i=r.add(n);return[t.unproject(r,e.z),t.unproject(i,e.z)]},_tileCoordsToBounds:function(e){var t=this._tileCoordsToNwSe(e),n=new W(t[0],t[1]);return this.options.noWrap||(n=this._map.wrapLatLngBounds(n)),n},_tileCoordsToKey:function(e){return e.x+":"+e.y+":"+e.z},_keyToTileCoords:function(e){var t=e.split(":"),n=new j(+t[0],+t[1]);return n.z=+t[2],n},_removeTile:function(e){var t=this._tiles[e];t&&(e1(t.el),delete this._tiles[e],this.fire("tileunload",{tile:t.el,coords:this._keyToTileCoords(e)}))},_initTile:function(e){e6(e,"leaflet-tile");var t=this.getTileSize();e.style.width=t.x+"px",e.style.height=t.y+"px",e.onselectstart=y,e.onmousemove=y,eD.ielt9&&this.options.opacity<1&&te(e,this.options.opacity)},_addTile:function(e,t){var n=this._getTilePos(e),r=this._tileCoordsToKey(e),i=this.createTile(this._wrapCoords(e),p(this._tileReady,this,e));this._initTile(i),this.createTile.length<2&&k(p(this._tileReady,this,e,null,i)),tr(i,n),this._tiles[r]={el:i,coords:e,current:!0},t.appendChild(i),this.fire("tileloadstart",{tile:i,coords:e})},_tileReady:function(e,t,n){t&&this.fire("tileerror",{error:t,tile:n,coords:e});var r=this._tileCoordsToKey(e);(n=this._tiles[r])&&(n.loaded=+new Date,this._map._fadeAnimated?(te(n.el,0),D(this._fadeFrame),this._fadeFrame=k(this._updateOpacity,this)):(n.active=!0,this._pruneTiles()),t||(e6(n.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:n.el,coords:e})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),eD.ielt9||!this._map._fadeAnimated?k(this._pruneTiles,this):setTimeout(p(this._pruneTiles,this),250)))},_getTilePos:function(e){return e.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(e){var t=new j(this._wrapX?v(e.x,this._wrapX):e.x,this._wrapY?v(e.y,this._wrapY):e.y);return t.z=e.z,t},_pxBoundsToTileRange:function(e){var t=this.getTileSize();return new G(e.min.unscaleBy(t).floor(),e.max.unscaleBy(t).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var e in this._tiles)if(!this._tiles[e].loaded)return!1;return!0}}),nE=nS.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(e,t){this._url=e,(t=w(this,t)).detectRetina&&eD.retina&&t.maxZoom>0?(t.tileSize=Math.floor(t.tileSize/2),t.zoomReverse?(t.zoomOffset--,t.minZoom=Math.min(t.maxZoom,t.minZoom+1)):(t.zoomOffset++,t.maxZoom=Math.max(t.minZoom,t.maxZoom-1)),t.minZoom=Math.max(0,t.minZoom)):t.zoomReverse?t.minZoom=Math.min(t.maxZoom,t.minZoom):t.maxZoom=Math.max(t.minZoom,t.maxZoom),"string"==typeof t.subdomains&&(t.subdomains=t.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(e,t){return this._url===e&&void 0===t&&(t=!0),this._url=e,t||this.redraw(),this},createTile:function(e,t){var n=document.createElement("img");return th(n,"load",p(this._tileOnLoad,this,t,n)),th(n,"error",p(this._tileOnError,this,t,n)),(this.options.crossOrigin||""===this.options.crossOrigin)&&(n.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),"string"==typeof this.options.referrerPolicy&&(n.referrerPolicy=this.options.referrerPolicy),n.alt="",n.src=this.getTileUrl(e),n},getTileUrl:function(e){var n={r:eD.retina?"@2x":"",s:this._getSubdomain(e),x:e.x,y:e.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var r=this._globalTileRange.max.y-e.y;this.options.tms&&(n.y=r),n["-y"]=r}return A(this._url,t(n,this.options))},_tileOnLoad:function(e,t){eD.ielt9?setTimeout(p(e,this,null,t),0):e(null,t)},_tileOnError:function(e,t,n){var r=this.options.errorTileUrl;r&&t.getAttribute("src")!==r&&(t.src=r),e(n,t)},_onTileRemove:function(e){e.tile.onload=null},_getZoomForUrl:function(){var e=this._tileZoom,t=this.options.maxZoom,n=this.options.zoomReverse,r=this.options.zoomOffset;return n&&(e=t-e),e+r},_getSubdomain:function(e){var t=Math.abs(e.x+e.y)%this.options.subdomains.length;return this.options.subdomains[t]},_abortLoading:function(){var e,t;for(e in this._tiles)if(this._tiles[e].coords.z!==this._tileZoom&&((t=this._tiles[e].el).onload=y,t.onerror=y,!t.complete)){t.src=C;var n=this._tiles[e].coords;e1(t),delete this._tiles[e],this.fire("tileabort",{tile:t,coords:n})}},_removeTile:function(e){var t=this._tiles[e];if(t)return t.el.setAttribute("src",C),nS.prototype._removeTile.call(this,e)},_tileReady:function(e,t,n){if(this._map&&(!n||n.getAttribute("src")!==C))return nS.prototype._tileReady.call(this,e,t,n)}});function nA(e,t){return new nE(e,t)}var nT=nE.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(e,n){this._url=e;var r=t({},this.defaultWmsParams);for(var i in n)i in this.options||(r[i]=n[i]);var a=(n=w(this,n)).detectRetina&&eD.retina?2:1,o=this.getTileSize();r.width=o.x*a,r.height=o.y*a,this.wmsParams=r},onAdd:function(e){this._crs=this.options.crs||e.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var t=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[t]=this._crs.code,nE.prototype.onAdd.call(this,e)},getTileUrl:function(e){var t=this._tileCoordsToNwSe(e),n=this._crs,r=V(n.project(t[0]),n.project(t[1])),i=r.min,a=r.max,o=(this._wmsVersion>=1.3&&this._crs===t1?[i.y,i.x,a.y,a.x]:[i.x,i.y,a.x,a.y]).join(","),s=nE.prototype.getTileUrl.call(this,e);return s+S(this.wmsParams,s,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+o},setParams:function(e,n){return t(this.wmsParams,e),n||this.redraw(),this}});nE.WMS=nT,nA.wms=function(e,t){return new nT(e,t)};var nI=t3.extend({options:{padding:.1},initialize:function(e){w(this,e),f(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),e6(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var e={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(e.zoomanim=this._onAnimZoom),e},_onAnimZoom:function(e){this._updateTransform(e.center,e.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(e,t){var n=this._map.getZoomScale(t,this._zoom),r=this._map.getSize().multiplyBy(.5+this.options.padding),i=this._map.project(this._center,t),a=r.multiplyBy(-n).add(i).subtract(this._map._getNewPixelOrigin(e,t));eD.any3d?tn(this._container,a,n):tr(this._container,a)},_reset:function(){for(var e in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[e]._reset()},_onZoomEnd:function(){for(var e in this._layers)this._layers[e]._project()},_updatePaths:function(){for(var e in this._layers)this._layers[e]._update()},_update:function(){var e=this.options.padding,t=this._map.getSize(),n=this._map.containerPointToLayerPoint(t.multiplyBy(-e)).round();this._bounds=new G(n,n.add(t.multiplyBy(1+2*e)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),nC=nI.extend({options:{tolerance:0},getEvents:function(){var e=nI.prototype.getEvents.call(this);return e.viewprereset=this._onViewPreReset,e},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){nI.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var e=this._container=document.createElement("canvas");th(e,"mousemove",this._onMouseMove,this),th(e,"click dblclick mousedown mouseup contextmenu",this._onClick,this),th(e,"mouseout",this._handleMouseOut,this),e._leaflet_disable_events=!0,this._ctx=e.getContext("2d")},_destroyContainer:function(){D(this._redrawRequest),delete this._ctx,e1(this._container),tm(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var e in this._redrawBounds=null,this._layers)this._layers[e]._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){nI.prototype._update.call(this);var e=this._bounds,t=this._container,n=e.getSize(),r=eD.retina?2:1;tr(t,e.min),t.width=r*n.x,t.height=r*n.y,t.style.width=n.x+"px",t.style.height=n.y+"px",eD.retina&&this._ctx.scale(2,2),this._ctx.translate(-e.min.x,-e.min.y),this.fire("update")}},_reset:function(){nI.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(e){this._updateDashArray(e),this._layers[f(e)]=e;var t=e._order={layer:e,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=t),this._drawLast=t,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(e){this._requestRedraw(e)},_removePath:function(e){var t=e._order,n=t.next,r=t.prev;n?n.prev=r:this._drawLast=r,r?r.next=n:this._drawFirst=n,delete e._order,delete this._layers[f(e)],this._requestRedraw(e)},_updatePath:function(e){this._extendRedrawBounds(e),e._project(),e._update(),this._requestRedraw(e)},_updateStyle:function(e){this._updateDashArray(e),this._requestRedraw(e)},_updateDashArray:function(e){if("string"==typeof e.options.dashArray){var t,n,r=e.options.dashArray.split(/[, ]+/),i=[];for(n=0;n<r.length;n++){if(isNaN(t=Number(r[n])))return;i.push(t)}e.options._dashArray=i}else e.options._dashArray=e.options.dashArray},_requestRedraw:function(e){this._map&&(this._extendRedrawBounds(e),this._redrawRequest=this._redrawRequest||k(this._redraw,this))},_extendRedrawBounds:function(e){if(e._pxBounds){var t=(e.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new G,this._redrawBounds.extend(e._pxBounds.min.subtract([t,t])),this._redrawBounds.extend(e._pxBounds.max.add([t,t]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var e=this._redrawBounds;if(e){var t=e.getSize();this._ctx.clearRect(e.min.x,e.min.y,t.x,t.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var e,t=this._redrawBounds;if(this._ctx.save(),t){var n=t.getSize();this._ctx.beginPath(),this._ctx.rect(t.min.x,t.min.y,n.x,n.y),this._ctx.clip()}this._drawing=!0;for(var r=this._drawFirst;r;r=r.next)e=r.layer,(!t||e._pxBounds&&e._pxBounds.intersects(t))&&e._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(e,t){if(this._drawing){var n,r,i,a,o=e._parts,s=o.length,l=this._ctx;if(s){for(l.beginPath(),n=0;n<s;n++){for(r=0,i=o[n].length;r<i;r++)a=o[n][r],l[r?"lineTo":"moveTo"](a.x,a.y);t&&l.closePath()}this._fillStroke(l,e)}}},_updateCircle:function(e){if(!(!this._drawing||e._empty())){var t=e._point,n=this._ctx,r=Math.max(Math.round(e._radius),1),i=(Math.max(Math.round(e._radiusY),1)||r)/r;1!==i&&(n.save(),n.scale(1,i)),n.beginPath(),n.arc(t.x,t.y/i,r,0,2*Math.PI,!1),1!==i&&n.restore(),this._fillStroke(n,e)}},_fillStroke:function(e,t){var n=t.options;n.fill&&(e.globalAlpha=n.fillOpacity,e.fillStyle=n.fillColor||n.color,e.fill(n.fillRule||"evenodd")),n.stroke&&0!==n.weight&&(e.setLineDash&&e.setLineDash(t.options&&t.options._dashArray||[]),e.globalAlpha=n.opacity,e.lineWidth=n.weight,e.strokeStyle=n.color,e.lineCap=n.lineCap,e.lineJoin=n.lineJoin,e.stroke())},_onClick:function(e){for(var t,n,r=this._map.mouseEventToLayerPoint(e),i=this._drawFirst;i;i=i.next)(t=i.layer).options.interactive&&t._containsPoint(r)&&("click"!==e.type&&"preclick"!==e.type||!this._map._draggableMoved(t))&&(n=t);this._fireEvent(!!n&&[n],e)},_onMouseMove:function(e){if(!(!this._map||this._map.dragging.moving())&&!this._map._animatingZoom){var t=this._map.mouseEventToLayerPoint(e);this._handleMouseHover(e,t)}},_handleMouseOut:function(e){var t=this._hoveredLayer;t&&(e8(this._container,"leaflet-interactive"),this._fireEvent([t],e,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(e,t){if(!this._mouseHoverThrottled){for(var n,r,i=this._drawFirst;i;i=i.next)(n=i.layer).options.interactive&&n._containsPoint(t)&&(r=n);r!==this._hoveredLayer&&(this._handleMouseOut(e),r&&(e6(this._container,"leaflet-interactive"),this._fireEvent([r],e,"mouseover"),this._hoveredLayer=r)),this._fireEvent(!!this._hoveredLayer&&[this._hoveredLayer],e),this._mouseHoverThrottled=!0,setTimeout(p(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(e,t,n){this._map._fireDOMEvent(t,n||t.type,e)},_bringToFront:function(e){var t=e._order;if(t){var n=t.next,r=t.prev;if(!n)return;n.prev=r,r?r.next=n:n&&(this._drawFirst=n),t.prev=this._drawLast,this._drawLast.next=t,t.next=null,this._drawLast=t,this._requestRedraw(e)}},_bringToBack:function(e){var t=e._order;if(t){var n=t.next,r=t.prev;if(!r)return;r.next=n,n?n.prev=r:r&&(this._drawLast=r),t.prev=null,t.next=this._drawFirst,this._drawFirst.prev=t,this._drawFirst=t,this._requestRedraw(e)}}});function nM(e){return eD.canvas?new nC(e):null}var nN=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(e){return document.createElement("<lvml:"+e+' class="lvml">')}}catch(e){}return function(e){return document.createElement("<"+e+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),nR=eD.vml?nN:en,nO=nI.extend({_initContainer:function(){this._container=nR("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=nR("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){e1(this._container),tm(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!this._map._animatingZoom||!this._bounds){nI.prototype._update.call(this);var e=this._bounds,t=e.getSize(),n=this._container;this._svgSize&&this._svgSize.equals(t)||(this._svgSize=t,n.setAttribute("width",t.x),n.setAttribute("height",t.y)),tr(n,e.min),n.setAttribute("viewBox",[e.min.x,e.min.y,t.x,t.y].join(" ")),this.fire("update")}},_initPath:function(e){var t=e._path=nR("path");e.options.className&&e6(t,e.options.className),e.options.interactive&&e6(t,"leaflet-interactive"),this._updateStyle(e),this._layers[f(e)]=e},_addPath:function(e){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(e._path),e.addInteractiveTarget(e._path)},_removePath:function(e){e1(e._path),e.removeInteractiveTarget(e._path),delete this._layers[f(e)]},_updatePath:function(e){e._project(),e._update()},_updateStyle:function(e){var t=e._path,n=e.options;t&&(n.stroke?(t.setAttribute("stroke",n.color),t.setAttribute("stroke-opacity",n.opacity),t.setAttribute("stroke-width",n.weight),t.setAttribute("stroke-linecap",n.lineCap),t.setAttribute("stroke-linejoin",n.lineJoin),n.dashArray?t.setAttribute("stroke-dasharray",n.dashArray):t.removeAttribute("stroke-dasharray"),n.dashOffset?t.setAttribute("stroke-dashoffset",n.dashOffset):t.removeAttribute("stroke-dashoffset")):t.setAttribute("stroke","none"),n.fill?(t.setAttribute("fill",n.fillColor||n.color),t.setAttribute("fill-opacity",n.fillOpacity),t.setAttribute("fill-rule",n.fillRule||"evenodd")):t.setAttribute("fill","none"))},_updatePoly:function(e,t){this._setPath(e,er(e._parts,t))},_updateCircle:function(e){var t=e._point,n=Math.max(Math.round(e._radius),1),r=Math.max(Math.round(e._radiusY),1)||n,i="a"+n+","+r+" 0 1,0 ",a=e._empty()?"M0 0":"M"+(t.x-n)+","+t.y+i+2*n+",0 "+i+-(2*n)+",0 ";this._setPath(e,a)},_setPath:function(e,t){e._path.setAttribute("d",t)},_bringToFront:function(e){e3(e._path)},_bringToBack:function(e){e4(e._path)}});function nP(e){return eD.svg||eD.vml?new nO(e):null}eD.vml&&nO.include({_initContainer:function(){this._container=e0("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(nI.prototype._update.call(this),this.fire("update"))},_initPath:function(e){var t=e._container=nN("shape");e6(t,"leaflet-vml-shape "+(this.options.className||"")),t.coordsize="1 1",e._path=nN("path"),t.appendChild(e._path),this._updateStyle(e),this._layers[f(e)]=e},_addPath:function(e){var t=e._container;this._container.appendChild(t),e.options.interactive&&e.addInteractiveTarget(t)},_removePath:function(e){var t=e._container;e1(t),e.removeInteractiveTarget(t),delete this._layers[f(e)]},_updateStyle:function(e){var t=e._stroke,n=e._fill,r=e.options,i=e._container;i.stroked=!!r.stroke,i.filled=!!r.fill,r.stroke?(t||(t=e._stroke=nN("stroke")),i.appendChild(t),t.weight=r.weight+"px",t.color=r.color,t.opacity=r.opacity,r.dashArray?t.dashStyle=T(r.dashArray)?r.dashArray.join(" "):r.dashArray.replace(/( *, *)/g," "):t.dashStyle="",t.endcap=r.lineCap.replace("butt","flat"),t.joinstyle=r.lineJoin):t&&(i.removeChild(t),e._stroke=null),r.fill?(n||(n=e._fill=nN("fill")),i.appendChild(n),n.color=r.fillColor||r.color,n.opacity=r.fillOpacity):n&&(i.removeChild(n),e._fill=null)},_updateCircle:function(e){var t=e._point.round(),n=Math.round(e._radius),r=Math.round(e._radiusY||n);this._setPath(e,e._empty()?"M0 0":"AL "+t.x+","+t.y+" "+n+","+r+" 0,23592600")},_setPath:function(e,t){e._path.v=t},_bringToFront:function(e){e3(e._container)},_bringToBack:function(e){e4(e._container)}}),tN.include({getRenderer:function(e){var t=e.options.renderer||this._getPaneRenderer(e.options.pane)||this.options.renderer||this._renderer;return t||(t=this._renderer=this._createRenderer()),this.hasLayer(t)||this.addLayer(t),t},_getPaneRenderer:function(e){if("overlayPane"===e||void 0===e)return!1;var t=this._paneRenderers[e];return void 0===t&&(t=this._createRenderer({pane:e}),this._paneRenderers[e]=t),t},_createRenderer:function(e){return this.options.preferCanvas&&nM(e)||nP(e)}});var nk=ni.extend({initialize:function(e,t){ni.prototype.initialize.call(this,this._boundsToLatLngs(e),t)},setBounds:function(e){return this.setLatLngs(this._boundsToLatLngs(e))},_boundsToLatLngs:function(e){return[(e=q(e)).getSouthWest(),e.getNorthWest(),e.getNorthEast(),e.getSouthEast()]}});nO.create=nR,nO.pointsToPath=er,na.geometryToLayer=no,na.coordsToLatLng=nl,na.coordsToLatLngs=nu,na.latLngToCoords=nc,na.latLngsToCoords=nd,na.getFeature=nh,na.asFeature=np,tN.mergeOptions({boxZoom:!0});var nL=tB.extend({initialize:function(e){this._map=e,this._container=e._container,this._pane=e._panes.overlayPane,this._resetStateTimeout=0,e.on("unload",this._destroy,this)},addHooks:function(){th(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){tm(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){e1(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(e){if(!e.shiftKey||1!==e.which&&1!==e.button)return!1;this._clearDeferredResetState(),this._resetState(),n(),to(),this._startPoint=this._map.mouseEventToContainerPoint(e),th(document,{contextmenu:tS,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(e){this._moved||(this._moved=!0,this._box=e0("div","leaflet-zoom-box",this._container),e6(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(e);var t=new G(this._point,this._startPoint),n=t.getSize();tr(this._box,t.min),this._box.style.width=n.x+"px",this._box.style.height=n.y+"px"},_finish:function(){this._moved&&(e1(this._box),e8(this._container,"leaflet-crosshair")),r(),ts(),tm(document,{contextmenu:tS,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(e){if((1===e.which||1===e.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(p(this._resetState,this),0);var t=new W(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(t).fire("boxzoomend",{boxZoomBounds:t})}},_onKeyDown:function(e){27===e.keyCode&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});tN.addInitHook("addHandler","boxZoom",nL),tN.mergeOptions({doubleClickZoom:!0});var nD=tB.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(e){var t=this._map,n=t.getZoom(),r=t.options.zoomDelta,i=e.originalEvent.shiftKey?n-r:n+r;"center"===t.options.doubleClickZoom?t.setZoom(i):t.setZoomAround(e.containerPoint,i)}});tN.addInitHook("addHandler","doubleClickZoom",nD),tN.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var nB=tB.extend({addHooks:function(){if(!this._draggable){var e=this._map;this._draggable=new tU(e._mapPane,e._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),e.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),e.on("zoomend",this._onZoomEnd,this),e.whenReady(this._onZoomEnd,this))}e6(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){e8(this._map._container,"leaflet-grab"),e8(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var e=this._map;if(e._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var t=q(this._map.options.maxBounds);this._offsetLimit=V(this._map.latLngToContainerPoint(t.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(t.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;e.fire("movestart").fire("dragstart"),e.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(e){if(this._map.options.inertia){var t=this._lastTime=+new Date,n=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(n),this._times.push(t),this._prunePositions(t)}this._map.fire("move",e).fire("drag",e)},_prunePositions:function(e){for(;this._positions.length>1&&e-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var e=this._map.getSize().divideBy(2),t=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=t.subtract(e).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(e,t){return e-(e-t)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var e=this._draggable._newPos.subtract(this._draggable._startPos),t=this._offsetLimit;e.x<t.min.x&&(e.x=this._viscousLimit(e.x,t.min.x)),e.y<t.min.y&&(e.y=this._viscousLimit(e.y,t.min.y)),e.x>t.max.x&&(e.x=this._viscousLimit(e.x,t.max.x)),e.y>t.max.y&&(e.y=this._viscousLimit(e.y,t.max.y)),this._draggable._newPos=this._draggable._startPos.add(e)}},_onPreDragWrap:function(){var e=this._worldWidth,t=Math.round(e/2),n=this._initialWorldOffset,r=this._draggable._newPos.x,i=(r-t+n)%e+t-n,a=(r+t+n)%e-t-n,o=Math.abs(i+n)<Math.abs(a+n)?i:a;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=o},_onDragEnd:function(e){var t=this._map,n=t.options,r=!n.inertia||e.noInertia||this._times.length<2;if(t.fire("dragend",e),r)t.fire("moveend");else{this._prunePositions(+new Date);var i=this._lastPos.subtract(this._positions[0]),a=(this._lastTime-this._times[0])/1e3,o=n.easeLinearity,s=i.multiplyBy(o/a),l=s.distanceTo([0,0]),u=Math.min(n.inertiaMaxSpeed,l),c=s.multiplyBy(u/l),d=u/(n.inertiaDeceleration*o),h=c.multiplyBy(-d/2).round();h.x||h.y?(h=t._limitOffset(h,t.options.maxBounds),k(function(){t.panBy(h,{duration:d,easeLinearity:o,noMoveStart:!0,animate:!0})})):t.fire("moveend")}}});tN.addInitHook("addHandler","dragging",nB),tN.mergeOptions({keyboard:!0,keyboardPanDelta:80});var nF=tB.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(e){this._map=e,this._setPanDelta(e.options.keyboardPanDelta),this._setZoomDelta(e.options.zoomDelta)},addHooks:function(){var e=this._map._container;e.tabIndex<=0&&(e.tabIndex="0"),th(e,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),tm(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var e=document.body,t=document.documentElement,n=e.scrollTop||t.scrollTop,r=e.scrollLeft||t.scrollLeft;this._map._container.focus(),window.scrollTo(r,n)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(e){var t,n,r=this._panKeys={},i=this.keyCodes;for(t=0,n=i.left.length;t<n;t++)r[i.left[t]]=[-1*e,0];for(t=0,n=i.right.length;t<n;t++)r[i.right[t]]=[e,0];for(t=0,n=i.down.length;t<n;t++)r[i.down[t]]=[0,e];for(t=0,n=i.up.length;t<n;t++)r[i.up[t]]=[0,-1*e]},_setZoomDelta:function(e){var t,n,r=this._zoomKeys={},i=this.keyCodes;for(t=0,n=i.zoomIn.length;t<n;t++)r[i.zoomIn[t]]=e;for(t=0,n=i.zoomOut.length;t<n;t++)r[i.zoomOut[t]]=-e},_addHooks:function(){th(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){tm(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(e){if(!e.altKey&&!e.ctrlKey&&!e.metaKey){var t,n=e.keyCode,r=this._map;if(n in this._panKeys){if(!r._panAnim||!r._panAnim._inProgress)if(t=this._panKeys[n],e.shiftKey&&(t=H(t).multiplyBy(3)),r.options.maxBounds&&(t=r._limitOffset(H(t),r.options.maxBounds)),r.options.worldCopyJump){var i=r.wrapLatLng(r.unproject(r.project(r.getCenter()).add(t)));r.panTo(i)}else r.panBy(t)}else if(n in this._zoomKeys)r.setZoom(r.getZoom()+(e.shiftKey?3:1)*this._zoomKeys[n]);else{if(27!==n||!r._popup||!r._popup.options.closeOnEscapeKey)return;r.closePopup()}tS(e)}}});tN.addInitHook("addHandler","keyboard",nF),tN.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var nU=tB.extend({addHooks:function(){th(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){tm(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(e){var t=tI(e),n=this._map.options.wheelDebounceTime;this._delta+=t,this._lastMousePos=this._map.mouseEventToContainerPoint(e),this._startTime||(this._startTime=+new Date);var r=Math.max(n-(new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(p(this._performZoom,this),r),tS(e)},_performZoom:function(){var e=this._map,t=e.getZoom(),n=this._map.options.zoomSnap||0;e._stop();var r=4*Math.log(2/(1+Math.exp(-Math.abs(this._delta/(4*this._map.options.wheelPxPerZoomLevel)))))/Math.LN2,i=n?Math.ceil(r/n)*n:r,a=e._limitZoom(t+(this._delta>0?i:-i))-t;this._delta=0,this._startTime=null,a&&("center"===e.options.scrollWheelZoom?e.setZoom(t+a):e.setZoomAround(this._lastMousePos,t+a))}});tN.addInitHook("addHandler","scrollWheelZoom",nU),tN.mergeOptions({tapHold:eD.touchNative&&eD.safari&&eD.mobile,tapTolerance:15});var nj=tB.extend({addHooks:function(){th(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){tm(this._map._container,"touchstart",this._onDown,this)},_onDown:function(e){if(clearTimeout(this._holdTimeout),1===e.touches.length){var t=e.touches[0];this._startPos=this._newPos=new j(t.clientX,t.clientY),this._holdTimeout=setTimeout(p(function(){this._cancel(),this._isTapValid()&&(th(document,"touchend",tw),th(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",t))},this),600),th(document,"touchend touchcancel contextmenu",this._cancel,this),th(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function e(){tm(document,"touchend",tw),tm(document,"touchend touchcancel",e)},_cancel:function(){clearTimeout(this._holdTimeout),tm(document,"touchend touchcancel contextmenu",this._cancel,this),tm(document,"touchmove",this._onMove,this)},_onMove:function(e){var t=e.touches[0];this._newPos=new j(t.clientX,t.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(e,t){var n=new MouseEvent(e,{bubbles:!0,cancelable:!0,view:window,screenX:t.screenX,screenY:t.screenY,clientX:t.clientX,clientY:t.clientY});n._simulated=!0,t.target.dispatchEvent(n)}});tN.addInitHook("addHandler","tapHold",nj),tN.mergeOptions({touchZoom:eD.touch,bounceAtZoomLimits:!0});var nz=tB.extend({addHooks:function(){e6(this._map._container,"leaflet-touch-zoom"),th(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){e8(this._map._container,"leaflet-touch-zoom"),tm(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(e){var t=this._map;if(e.touches&&2===e.touches.length&&!t._animatingZoom&&!this._zooming){var n=t.mouseEventToContainerPoint(e.touches[0]),r=t.mouseEventToContainerPoint(e.touches[1]);this._centerPoint=t.getSize()._divideBy(2),this._startLatLng=t.containerPointToLatLng(this._centerPoint),"center"!==t.options.touchZoom&&(this._pinchStartLatLng=t.containerPointToLatLng(n.add(r)._divideBy(2))),this._startDist=n.distanceTo(r),this._startZoom=t.getZoom(),this._moved=!1,this._zooming=!0,t._stop(),th(document,"touchmove",this._onTouchMove,this),th(document,"touchend touchcancel",this._onTouchEnd,this),tw(e)}},_onTouchMove:function(e){if(e.touches&&2===e.touches.length&&this._zooming){var t=this._map,n=t.mouseEventToContainerPoint(e.touches[0]),r=t.mouseEventToContainerPoint(e.touches[1]),i=n.distanceTo(r)/this._startDist;if(this._zoom=t.getScaleZoom(i,this._startZoom),!t.options.bounceAtZoomLimits&&(this._zoom<t.getMinZoom()&&i<1||this._zoom>t.getMaxZoom()&&i>1)&&(this._zoom=t._limitZoom(this._zoom)),"center"===t.options.touchZoom){if(this._center=this._startLatLng,1===i)return}else{var a=n._add(r)._divideBy(2)._subtract(this._centerPoint);if(1===i&&0===a.x&&0===a.y)return;this._center=t.unproject(t.project(this._pinchStartLatLng,this._zoom).subtract(a),this._zoom)}this._moved||(t._moveStart(!0,!1),this._moved=!0),D(this._animRequest);var o=p(t._move,t,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=k(o,this,!0),tw(e)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,D(this._animRequest),tm(document,"touchmove",this._onTouchMove,this),tm(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});tN.addInitHook("addHandler","touchZoom",nz),tN.BoxZoom=nL,tN.DoubleClickZoom=nD,tN.Drag=nB,tN.Keyboard=nF,tN.ScrollWheelZoom=nU,tN.TapHold=nj,tN.TouchZoom=nz,e.Bounds=G,e.Browser=eD,e.CRS=K,e.Canvas=nC,e.Circle=nn,e.CircleMarker=nt,e.Class=B,e.Control=tR,e.DivIcon=nw,e.DivOverlay=nb,e.DomEvent={__proto__:null,on:th,off:tm,stopPropagation:tb,disableScrollPropagation:t_,disableClickPropagation:tx,preventDefault:tw,stop:tS,getPropagationPath:tE,getMousePosition:tA,getWheelDelta:tI,isExternalTarget:tC,addListener:th,removeListener:tm},e.DomUtil={__proto__:null,TRANSFORM:eK,TRANSITION:eY,TRANSITION_END:eX,get:eZ,getStyle:eQ,create:e0,remove:e1,empty:e2,toFront:e3,toBack:e4,hasClass:e5,addClass:e6,removeClass:e8,setClass:e7,getClass:e9,setOpacity:te,testProp:tt,setTransform:tn,setPosition:tr,getPosition:ti,get disableTextSelection(){return n},get enableTextSelection(){return r},disableImageDrag:to,enableImageDrag:ts,preventOutline:tl,restoreOutline:tu,getSizedParentNode:tc,getScale:td},e.Draggable=tU,e.Evented=U,e.FeatureGroup=t5,e.GeoJSON=na,e.GridLayer=nS,e.Handler=tB,e.Icon=t6,e.ImageOverlay=ng,e.LatLng=$,e.LatLngBounds=W,e.Layer=t3,e.LayerGroup=t4,e.LineUtil={__proto__:null,simplify:tG,pointToSegmentDistance:tV,closestPointOnSegment:function(e,t,n){return tJ(e,t,n)},clipSegment:tW,_getEdgeIntersection:tq,_getBitCode:t$,_sqClosestPointOnSegment:tJ,isFlat:tK,_flat:tY,polylineCenter:tX},e.Map=tN,e.Marker=t9,e.Mixin={Events:F},e.Path=ne,e.Point=j,e.PolyUtil={__proto__:null,clipPolygon:tj,polygonCenter:tz,centroid:tH},e.Polygon=ni,e.Polyline=nr,e.Popup=n_,e.PosAnimation=tM,e.Projection={__proto__:null,LonLat:tZ,Mercator:tQ,SphericalMercator:X},e.Rectangle=nk,e.Renderer=nI,e.SVG=nO,e.SVGOverlay=ny,e.TileLayer=nE,e.Tooltip=nx,e.Transformation=Z,e.Util={__proto__:null,extend:t,create:h,bind:p,get lastId(){return m},stamp:f,throttle:g,wrapNum:v,falseFn:y,formatNum:b,trim:_,splitWords:x,setOptions:w,getParamString:S,template:A,isArray:T,indexOf:I,emptyImageUrl:C,requestFn:O,cancelFn:P,requestAnimFrame:k,cancelAnimFrame:D},e.VideoOverlay=nv,e.bind=p,e.bounds=V,e.canvas=nM,e.circle=function(e,t,n){return new nn(e,t,n)},e.circleMarker=function(e,t){return new nt(e,t)},e.control=tO,e.divIcon=function(e){return new nw(e)},e.extend=t,e.featureGroup=function(e,t){return new t5(e,t)},e.geoJSON=nf,e.geoJson=nf,e.gridLayer=function(e){return new nS(e)},e.icon=function(e){return new t6(e)},e.imageOverlay=function(e,t,n){return new ng(e,t,n)},e.latLng=J,e.latLngBounds=q,e.layerGroup=function(e,t){return new t4(e,t)},e.map=function(e,t){return new tN(e,t)},e.marker=function(e,t){return new t9(e,t)},e.point=H,e.polygon=function(e,t){return new ni(e,t)},e.polyline=function(e,t){return new nr(e,t)},e.popup=function(e,t){return new n_(e,t)},e.rectangle=function(e,t){return new nk(e,t)},e.setOptions=w,e.stamp=f,e.svg=nP,e.svgOverlay=function(e,t,n){return new ny(e,t,n)},e.tileLayer=nA,e.tooltip=function(e,t){return new nx(e,t)},e.transformation=Q,e.version="1.9.4",e.videoOverlay=function(e,t,n){return new nv(e,t,n)};var nH=window.L;e.noConflict=function(){return window.L=nH,this},window.L=e}($C);var ep=eu("85Hg2");function $M(){return($M=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let $N=(0,ep.forwardRef)(function({bounds:e,boundsOptions:t,center:n,children:r,className:i,id:a,placeholder:o,style:s,whenReady:l,zoom:u,...c},d){let[h]=(0,ep.useState)({className:i,id:a,style:s}),[p,m]=(0,ep.useState)(null);(0,ep.useImperativeHandle)(d,()=>p?.map??null,[p]);let f=(0,ep.useCallback)(r=>{if(null!==r&&null===p){let i=new(0,$C.Map)(r,c);null!=n&&null!=u?i.setView(n,u):null!=e&&i.fitBounds(e,t),null!=l&&i.whenReady(l),m(Object.freeze({__version:1,map:i}))}},[]);(0,ep.useEffect)(()=>()=>{p?.map.remove()},[p]);let g=p?(b(ep)).createElement($T,{value:p},r):o??null;return(b(ep)).createElement("div",$M({},h,{ref:f}),g)});function $R(e,t,n){return Object.freeze({instance:e,context:t,container:n})}function $O(e,t){return null==t?function(t,n){let r=(0,ep.useRef)();return r.current||(r.current=e(t,n)),r}:function(n,r){let i=(0,ep.useRef)();i.current||(i.current=e(n,r));let a=(0,ep.useRef)(n),{instance:o}=i.current;return(0,ep.useEffect)(function(){a.current!==n&&(t(o,n,a.current),a.current=n)},[o,n,r]),i}}function $P(e,t){let n=(0,ep.useRef)(t);(0,ep.useEffect)(function(){t!==n.current&&null!=e.attributionControl&&(null!=n.current&&e.attributionControl.removeAttribution(n.current),null!=t&&e.attributionControl.addAttribution(t)),n.current=t},[e,t])}function $k(e,t){let n=(0,ep.useRef)();(0,ep.useEffect)(function(){return null!=t&&e.instance.on(t),n.current=t,function(){null!=n.current&&e.instance.off(n.current),n.current=null}},[e,t])}function $L(e,t){let n=e.pane??t.pane;return n?{...e,pane:n}:e}function $D(e){return function(t){var n;let r=$I(),i=e($L(t,r),r);return $P(r.map,t.attribution),$k(i.current,t.eventHandlers),n=i.current,(0,ep.useEffect)(function(){return(r.layerContainer??r.map).addLayer(n.instance),function(){r.layerContainer?.removeLayer(n.instance),r.map.removeLayer(n.instance)}},[r,n]),i}}var ep=(eu("85Hg2"),eu("85Hg2"),eu("85Hg2"),eu("85Hg2"),eu("85Hg2"),eu("85Hg2"),eu("85Hg2"));let $B=(J=$D($O(function({url:e,...t},n){return $R(new(0,$C.TileLayer)(e,$L(t,n)),n)},function(e,t,n){!function(e,t,n){let{opacity:r,zIndex:i}=t;null!=r&&r!==n.opacity&&e.setOpacity(r),null!=i&&i!==n.zIndex&&e.setZIndex(i)}(e,t,n);let{url:r}=t;null!=r&&r!==n.url&&e.setUrl(r)})),(0,ep.forwardRef)(function(e,t){let{instance:n}=J(e).current;return(0,ep.useImperativeHandle)(t,()=>n),null})),$F=(K=$D($O(function({position:e,...t},n){var r;let i=new(0,$C.Marker)(e,t);return $R(i,(r={overlayContainer:i},Object.freeze({...n,...r})))},function(e,t,n){t.position!==n.position&&e.setLatLng(t.position),null!=t.icon&&t.icon!==n.icon&&e.setIcon(t.icon),null!=t.zIndexOffset&&t.zIndexOffset!==n.zIndexOffset&&e.setZIndexOffset(t.zIndexOffset),null!=t.opacity&&t.opacity!==n.opacity&&e.setOpacity(t.opacity),null!=e.dragging&&t.draggable!==n.draggable&&(!0===t.draggable?e.dragging.enable():e.dragging.disable())})),(0,ep.forwardRef)(function(e,t){let{instance:n,context:r}=K(e).current;return(0,ep.useImperativeHandle)(t,()=>n),null==e.children?null:(b(ep)).createElement($T,{value:r},e.children)}));var ep=eu("85Hg2");let $U=(Y=function(e,t){return $R(new(0,$C.Popup)(e,t.overlayContainer),t)},X=function(e,t,{position:n},r){(0,ep.useEffect)(function(){let{instance:i}=e;function a(e){e.popup===i&&(i.update(),r(!0))}function o(e){e.popup===i&&r(!1)}return t.map.on({popupopen:a,popupclose:o}),null==t.overlayContainer?(null!=n&&i.setLatLng(n),i.openOn(t.map)):t.overlayContainer.bindPopup(i),function(){t.map.off({popupopen:a,popupclose:o}),t.overlayContainer?.unbindPopup(),t.map.removeLayer(i)}},[e,t,r,n])},Z=$O(Y),Q=function(e,t){let n=$I(),r=Z($L(e,n),n);return $P(n.map,e.attribution),$k(r.current,e.eventHandlers),X(r.current,n,e,t),r},(0,ep.forwardRef)(function(e,t){let[n,r]=(0,ep.useState)(!1),{instance:i}=Q(e,r).current;(0,ep.useImperativeHandle)(t,()=>i),(0,ep.useEffect)(function(){n&&i.update()},[i,n,e.children]);let a=i._contentNode;return a?(0,eh.createPortal)(e.children,a):null})),$j=({center:e,size:t})=>{let n=$I();return(0,ep.useEffect)(()=>{let r=new(b($C)).Circle(e,t),i=n.layerContainer||n.map;return i.addLayer(r),()=>{i.removeLayer(r)}}),null},$z=({center:e,uncertainty:t})=>{let[n,r]=(0,ep.useState)(!1),i=$I().map,a=(0,ep.useCallback)(()=>{let n=void 0!==t?Math.round(Math.log2(1e7/t)):i.getZoom();i.setView(e,n)},[e,t,i]);return(0,ep.useEffect)(()=>{n||(a(),r(!0))},[]),(0,ep.useEffect)(()=>{a()},[e,t,a]),null},$H=(b($C)).icon({iconUrl:"https://unpkg.com/leaflet@1.9.4/dist/images/marker-icon.png",shadowUrl:"https://unpkg.com/leaflet@1.9.4/dist/images/marker-shadow.png",iconSize:[25,41],iconAnchor:[12.5,20.5],shadowAnchor:[12.5,20.5]});function $G(e){let t="Position";return(null==e?void 0:e.address)?t=[e.address.village||e.address.suburb,e.address.town||e.address.city||e.address.county||e.address.state,e.address.country].filter(Boolean).filter((e,t,n)=>n.indexOf(e)===t).join(", "):(null==e?void 0:e.display_name)&&(t=e.display_name),t}(b($C)).Marker.prototype.options.icon=$H;let $V=({venue:e,query:t,fetching:n,suggestions:r,onQueryChange:i,onChange:a,getPlaceName:o,t:s,autocompleteRootId:l="venue-widget-search",inputRef:u})=>{var c;let[d,h]=(0,ep.useState)(!1),[p,m]=(0,ep.useState)(!1),[f,g]=(0,ep.useState)(!1),v=(0,ep.useRef)(null),y=null!=u?u:v,b=(null==e?void 0:e.latitude)!=null?{place_id:0,lat:e.latitude,lon:e.longitude,display_name:null!=(c=e.placeName)?c:"",type:"",category:"",importance:0,place_rank:0,boundingbox:[0,0,0,0]}:void 0,_=b?o(b):"";(0,ep.useLayoutEffect)(()=>{let e=y.current;if(!e)return;let n=()=>{m(!0),_&&""===t&&!f&&i(_,{skipSearch:!0})},r=()=>m(!1);return e.addEventListener("focus",n),e.addEventListener("blur",r),()=>{e.removeEventListener("focus",n),e.removeEventListener("blur",r)}},[d,t,_,i,f]);let x=p||d||""!==t||f?t:_,w=r.map(e=>({value:o(e)||e.display_name,label:e.display_name}));return(0,ed.jsxs)(ed.Fragment,{children:[(0,ed.jsx)("label",{htmlFor:l,className:"sr-only",children:s("searchVenue")}),(0,ed.jsx)(bw,{id:l,inputRef:y,className:"memori--venue-widget-search",options:w,mode:"none",filter:null,value:x,onChange:(e,t)=>{if("item-press"===t.reason){let t=r.find(t=>(o(t)||t.display_name)===e);t&&(g(!1),i(e,{skipSearch:!0}),a(t));return}g(""===e.trim()),i(e)},open:d,onOpenChange:e=>h(e),placeholder:s("searchVenue"),loading:n,loadingText:`${s("loading")}...`,emptyText:t.trim()?s("nothingFound"):"​",autoHighlight:!0,clearable:""!==x.trim()})]})},$W=({venue:e})=>{var t,n;let[r,i]=(0,ep.useState)(!1);return(0,ep.useEffect)(()=>{i(!0)},[]),(0,ep.useEffect)(()=>{let e=document.createElement("link");return e.href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css",e.rel="stylesheet",e.integrity="sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY=",e.crossOrigin="",document.head.appendChild(e),()=>{document.head.removeChild(e)}},[]),(0,ed.jsx)("div",{className:"memori--venue-widget__map-container",role:"region","aria-label":"Location map",children:r&&(0,ed.jsxs)($N,{className:"memori--venue-widget__map",center:(null==e?void 0:e.latitude)&&(null==e?void 0:e.longitude)?[e.latitude,e.longitude]:[44.66579,11.48823],zoom:13,scrollWheelZoom:!0,children:[(0,ed.jsx)($B,{attribution:'© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors',url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}),(0,ed.jsx)($z,{center:(null==e?void 0:e.latitude)&&(null==e?void 0:e.longitude)?[e.latitude,e.longitude]:[44.66579,11.48823],uncertainty:(null!=(t=null==e?void 0:e.uncertainty)?t:0)*1e3}),(null==e?void 0:e.latitude)&&(null==e?void 0:e.longitude)&&(0,ed.jsx)($F,{position:[e.latitude,e.longitude],icon:$H,children:(0,ed.jsx)($U,{children:null!=(n=e.placeName)?n:""})}),(null==e?void 0:e.latitude)&&(null==e?void 0:e.longitude)&&(null==e?void 0:e.uncertainty)!==void 0&&(0,ed.jsx)($j,{center:[e.latitude,e.longitude],size:1e3*e.uncertainty})]})})};function $q(e){return!!((null==e?void 0:e.latitude)&&(null==e?void 0:e.longitude))}let $$=({venue:e,setVenue:t,autoStartGeolocation:n=!1})=>{var r,i;let a,o,{t:s}=tE(),[l,u]=(0,ep.useState)(!1),[c,d]=(0,ep.useState)(!1),[h,p]=(0,ep.useState)(null),[m,f]=(0,ep.useState)(null),[g,v]=(0,ep.useState)(!1),[y,_]=(0,ep.useState)(""),[x,w]=(0,ep.useState)([]),S=(0,ep.useRef)(0),E=(0,ep.useRef)(null),A=(0,ep.useRef)(!1),T=l||$q(e),I=(i=async e=>{v(!0);try{let t=await fetch(`https://nominatim.openstreetmap.org/search?q=${encodeURIComponent(e)}&format=jsonv2&limit=5&addressdetails=1`),n=await t.json();w(n)}catch(e){f(String(s("widget.geocodingFailed")))}finally{v(!1)}},a=(0,ep.useRef)(),o=(0,ep.useRef)(null),(0,ep.useEffect)(()=>(o.current=i,()=>{o.current=null}),[i]),(0,ep.useEffect)(()=>()=>{clearTimeout(a.current)},[]),(0,ep.useMemo)(()=>(...e)=>{clearTimeout(a.current),a.current=window.setTimeout(()=>{o.current&&o.current(...e)},1e3)},[1e3])),C=(0,ep.useCallback)((e,t)=>{if(_(e),null==t||!t.skipSearch){if(!e.trim())return void w([]);I(e)}},[I]),M=(0,ep.useCallback)(e=>{let n=$G(e);t({latitude:e.lat,longitude:e.lon,placeName:n,uncertainty:(null==e?void 0:e.boundingbox)?(e=>{let[t,n,r,i]="string"==typeof e[0]?e.map(parseFloat):e,a=t*$E,o=r*$E,s=n*$E,l=i*$E;return 6367.5*(2*Math.asin(Math.sqrt(Math.sin((s-a)/2)*Math.sin((s-a)/2)+Math.cos(a)*Math.cos(s)*Math.sin((l-o)/2)*Math.sin((l-o)/2))))})(e.boundingbox):2}),d(!1),_(""),w([]),f(null),p(null)},[t,s]),N=(0,ep.useCallback)(()=>{let e=++S.current;if(p(null),f(null),!navigator.geolocation){u(!1),p(String(s("widget.positionUnavailableManual"))),d(!0);return}u(!0),navigator.geolocation.getCurrentPosition(n=>{if(e!==S.current)return;let r={latitude:n.coords.latitude,longitude:n.coords.longitude,placeName:"",uncertainty:n.coords.accuracy/1e3};t(r),u(!1);let i=new AbortController,a=window.setTimeout(()=>i.abort(),8e3);(async()=>{try{let a=await fetch(`https://nominatim.openstreetmap.org/reverse?lat=${n.coords.latitude}&lon=${n.coords.longitude}&format=jsonv2&addressdetails=1`,{signal:i.signal});if(e!==S.current)return;let o=await a.json(),s=$G(o);t({...r,placeName:s})}catch(t){if(e!==S.current||"AbortError"===t.name)return;console.error("[PositionPopover] reverse geocode failed",t),f(String(s("widget.geocodingFailed")))}finally{window.clearTimeout(a)}})()},n=>{e!==S.current||(u(!1),t(void 0),1===n.code?(p(String(s("widget.positionUnavailableManual"))),d(!0)):f(String(s("widget.geocodingFailed"))))},{enableHighAccuracy:!0,timeout:15e3,maximumAge:0})},[t,s]),R=(0,ep.useCallback)(()=>{if(p(null),f(null),T&&!l){S.current+=1,t({latitude:0,longitude:0,placeName:"",uncertainty:0}),d(!1),_(""),w([]);return}if(l){S.current+=1,u(!1),t(void 0);return}N()},[l,t,T,N]);(0,ep.useEffect)(()=>{if(!n){A.current=!1;return}A.current||$q(e)||l||(A.current=!0,N())},[n,l,N,e]),(0,ep.useEffect)(()=>{if(!c)return;let e=requestAnimationFrame(()=>{var e;null==(e=E.current)||e.focus()});return()=>cancelAnimationFrame(e)},[c]);let O=h||m,P=s("widget.shareLocationHint")||"Get answers tailored to where you are";return(0,ed.jsxs)(ed.Fragment,{children:[(0,ed.jsx)("div",{className:"memori-position-popover__row memori-position-popover__switch-row",children:(0,ed.jsxs)("button",{type:"button",className:"memori-dropdown--auth-row",onClick:()=>{R()},children:[(0,ed.jsx)("span",{className:"memori-dropdown--auth-icon-wrap",children:(0,ed.jsx)(Vy,{size:16})}),(0,ed.jsxs)("span",{className:"memori-dropdown--auth-copy",children:[(0,ed.jsx)("span",{className:"memori-dropdown--auth-title",children:s("widget.shareLocation")||"Share my location"}),(0,ed.jsx)(_z,{title:P,placement:"top",children:(0,ed.jsx)("span",{className:"memori-dropdown--auth-subtitle",children:P})})]}),(0,ed.jsx)("span",{className:(b(tA))("memori-dropdown--switch",T&&"memori-dropdown--switch--on"),"aria-hidden":!0})]})}),(T||l||c)&&(0,ed.jsx)("div",{className:"memori-position-popover__tag-block",children:l?(0,ed.jsxs)("div",{className:"memori-position-popover__tag memori-position-popover__tag--loading","aria-busy":"true","aria-live":"polite",children:[(0,ed.jsx)("span",{className:"memori-position-popover__spinner","aria-hidden":!0}),(0,ed.jsx)("span",{className:"memori-position-popover__tag-skeleton"})]}):c?(0,ed.jsx)("div",{className:"memori-position-popover__autocomplete-wrap",children:(0,ed.jsx)($V,{venue:e,query:y,fetching:g,suggestions:x,onQueryChange:C,onChange:M,getPlaceName:$G,t:s,autocompleteRootId:"memori-position-popover-venue-search",inputRef:E})}):(0,ed.jsxs)("div",{className:"memori-position-popover__tag",children:[(0,ed.jsx)("span",{className:"memori-position-popover__tag-text",children:(null==(r=null==e?void 0:e.placeName)?void 0:r.trim())?e.placeName:s("widget.positionResolving")}),(0,ed.jsx)(ye,{type:"button",variant:"ghost",icon:(0,ed.jsx)(VP,{size:16,strokeWidth:2,"aria-hidden":!0}),size:"sm",className:"memori-position-popover__tag-edit","aria-label":String(s("widget.editPositionAria")),onClick:()=>{d(!0),p(null)}})]})}),O&&(0,ed.jsx)("p",{className:"memori-position-popover__error",role:"alert",children:O}),$q(e)&&!l&&(0,ed.jsx)("div",{className:"memori-position-popover__map",children:(0,ed.jsx)($W,{venue:e})})]})};var $J=({venue:e,setVenue:t,open:n,onOpenChange:r,triggerClassName:i,triggerButtonVariant:a="toolbar",triggerAriaLabel:o,positionerClassName:s,autoStartGeolocation:l=!1})=>{let u=$q(e);return(0,ed.jsx)(x0,{open:n,onOpenChange:r,modal:!1,closable:!1,placement:"bottom-end",sideOffset:8,contentClassName:"memori-position-popover__popup",slotProps:{trigger:{className:i,render:e=>(0,ed.jsx)(Gi,{...e,type:"button",variant:a,active:n,className:(b(tA))("memori-header--button","memori-header--button--position",u&&"memori-header--button--position--active",i),"aria-label":o,"aria-expanded":n,icon:(0,ed.jsx)(Vy,{"aria-hidden":!0})})},positioner:{className:(b(tA))("memori-position-popover__positioner",s)}},content:(0,ed.jsx)($$,{venue:e,setVenue:t,autoStartGeolocation:n&&l}),children:null})},$K=({className:e,title:t})=>(0,ed.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:800,height:800,fill:"none",viewBox:"0 0 24 24",className:e,"aria-label":t,children:[(0,ed.jsx)("path",{stroke:"currentColor",strokeWidth:1.5,d:"M16 22V8c0-2.828 0-4.243-.879-5.121C14.243 2 12.828 2 10 2H9c-2.828 0-4.243 0-5.121.879C3 3.757 3 5.172 3 8v14"}),(0,ed.jsx)("path",{stroke:"currentColor",strokeWidth:1.5,d:"M11 6H8c-.943 0-1.414 0-1.707.293C6 6.586 6 7.057 6 8c0 .943 0 1.414.293 1.707C6.586 10 7.057 10 8 10h3c.943 0 1.414 0 1.707-.293C13 9.414 13 8.943 13 8c0-.943 0-1.414-.293-1.707C12.414 6 11.943 6 11 6Z"}),(0,ed.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:1.5,d:"M7 17h5M17 22H2M19.5 4l1.233.986c.138.11.207.166.27.222a3 3 0 0 1 .992 2.066c.005.084.005.172.005.348V18.5a1.5 1.5 0 0 1-3 0v-.071c0-.79-.64-1.429-1.429-1.429H16"}),(0,ed.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:1.5,d:"M22 8h-1.5A1.5 1.5 0 0 0 19 9.5v2.419a1.5 1.5 0 0 0 1.026 1.423L22 14"})]}),ep=eu("85Hg2");let $Y=e=>{if("number"==typeof e&&Number.isFinite(e))return e;if(e&&"object"==typeof e){if("number"==typeof e.parsedValue&&Number.isFinite(e.parsedValue))return e.parsedValue;if("string"==typeof e.source){let t=Number(e.source);if(Number.isFinite(t))return t}}},$X=(e,t)=>new Intl.NumberFormat(t,{minimumFractionDigits:0,maximumFractionDigits:Math.abs(e)>=1?3:4}).format(e),$Z=(e,t)=>new Intl.NumberFormat(t,{maximumFractionDigits:0}).format(e),$Q=(e,t,n)=>{let r=Math.abs(e);if("energy"===t){if(r>=1)return`${$X(e,n)} kWh`;let t=1e3*e;return Math.abs(t)>=1?`${$X(t,n)} Wh`:`${$X(1e3*t,n)} mWh`}if("co2"===t){if(r>=1)return`${$X(e,n)} kg`;let t=1e3*e;return Math.abs(t)>=1?`${$X(t,n)} g`:`${$X(1e3*t,n)} mg`}if(r>=1)return`${$X(e,n)} L`;let i=1e3*e;return Math.abs(i)>=1?`${$X(i,n)} mL`:`${$X(1e3*i,n)} \u{3BC}L`},$0=({history:e,showTitle:t=!0,className:n})=>{let{t:r,i18n:i}=tE(),a=i.language||navigator.language||"en",o=(0,ep.useMemo)(()=>({lines:e}),[e]),s=(0,ep.useMemo)(()=>{var e;let t={totalInputTokens:0,totalOutputTokens:0,energy:0,gwp:0,wcf:0,models:new Set};return(null!=(e=null==o?void 0:o.lines)?e:[]).forEach(e=>{var n,r,i,a,o;let s=e.llmUsage;if(!s||(t.totalInputTokens+=null!=(n=s.totalInputTokens)?n:0,t.totalOutputTokens+=null!=(r=s.outputTokens)?r:0,(s.provider||s.model)&&t.models.add([s.provider,s.model].filter(Boolean).join(" · ")),!s.energyImpact))return;let l=s.energyImpact;t.energy+=null!=(i=$Y(l.energy))?i:0,t.gwp+=null!=(a=$Y(l.gwp))?a:0,t.wcf+=null!=(o=$Y(l.wcf))?o:0}),t},[o]),l=(0,ep.useMemo)(()=>Array.from(s.models),[s.models]);return(0,ed.jsxs)("div",{className:(b(tA))("memori-dropdown--sustainability",n),children:[t&&(0,ed.jsx)("h4",{className:"memori-dropdown--sustainability-title",children:r("chatLogs.totalChatConsumptionTitle")||"Consumo Totale Chat"}),(0,ed.jsxs)("div",{className:"memori-dropdown--sustainability-section",children:[(0,ed.jsx)("h5",{className:"memori-dropdown--sustainability-section-title",children:r("chatLogs.modelUsage")||"Model usage"}),(0,ed.jsxs)("div",{className:"memori-dropdown--sustainability-summary",children:[(0,ed.jsxs)("div",{className:"memori-dropdown--sustainability-stat",children:[(0,ed.jsx)("span",{className:"memori-dropdown--sustainability-stat-label",children:r("chatLogs.input")||"Input"}),(0,ed.jsx)("strong",{className:"memori-dropdown--sustainability-stat-value",children:$Z(s.totalInputTokens,a)}),(0,ed.jsx)("span",{className:"memori-dropdown--sustainability-stat-meta",children:r("chatLogs.tokens")||"Tokens"})]}),(0,ed.jsxs)("div",{className:"memori-dropdown--sustainability-stat",children:[(0,ed.jsx)("span",{className:"memori-dropdown--sustainability-stat-label",children:r("chatLogs.output")||"Output"}),(0,ed.jsx)("strong",{className:"memori-dropdown--sustainability-stat-value",children:$Z(s.totalOutputTokens,a)}),(0,ed.jsx)("span",{className:"memori-dropdown--sustainability-stat-meta",children:r("chatLogs.tokens")||"Tokens"})]})]}),l.length>0&&(0,ed.jsxs)("div",{className:"memori-dropdown--sustainability-row memori-dropdown--sustainability-row--stacked",children:[(0,ed.jsxs)("span",{className:"memori-dropdown--sustainability-label",children:[r("chatLogs.provider")||"Provider"," /"," ",r("chatLogs.model")||"Model"]}),(0,ed.jsx)("div",{className:"memori-dropdown--sustainability-tags",children:l.map(e=>(0,ed.jsx)("span",{className:"memori-dropdown--sustainability-tag",children:e},e))})]})]}),(0,ed.jsxs)("div",{className:"memori-dropdown--sustainability-metrics",children:[(0,ed.jsx)("h5",{className:"memori-dropdown--sustainability-section-title",children:r("chatLogs.environmentalImpact")||"Environmental impact"}),(0,ed.jsxs)("div",{className:"memori-dropdown--sustainability-row",children:[(0,ed.jsxs)("span",{className:"memori-dropdown--sustainability-label",children:[(0,ed.jsx)("span",{"aria-hidden":"true",children:Vo.energy})," ",r("chatLogs.energy")||"Energy"]}),(0,ed.jsx)("strong",{className:"memori-dropdown--sustainability-value",children:$Q(s.energy,"energy",a)})]}),(0,ed.jsxs)("div",{className:"memori-dropdown--sustainability-row",children:[(0,ed.jsxs)("span",{className:"memori-dropdown--sustainability-label",children:[(0,ed.jsx)("span",{"aria-hidden":"true",children:Vo.co2})," ",r("chatLogs.co2")||"CO2"]}),(0,ed.jsx)("strong",{className:"memori-dropdown--sustainability-value",children:$Q(s.gwp,"co2",a)})]}),(0,ed.jsxs)("div",{className:"memori-dropdown--sustainability-row",children:[(0,ed.jsxs)("span",{className:"memori-dropdown--sustainability-label",children:[(0,ed.jsx)("span",{"aria-hidden":"true",children:Vo.water})," ",r("chatLogs.water")||"Water"]}),(0,ed.jsx)("strong",{className:"memori-dropdown--sustainability-value",children:$Q(s.wcf,"water",a)})]})]})]})};var $1=({history:e,triggerVariant:t="ghost",trigger:n,open:r,onOpenChange:i,hideTrigger:a=!1})=>{let{t:o}=tE(),[s,l]=(0,ep.useState)(!1),u=void 0!==r,c=u?r:s,d=e=>{u||l(e),null==i||i(e)},h=(0,ep.useMemo)(()=>(null!=e?e:[]).some(e=>!!e.llmUsage),[e]),p=o("write_and_speak.showMessageConsumptionLabel")||"Show chat consumption",m=o("chatLogs.totalChatConsumptionTitle")||"Consumo Totale Chat",f=e=>{var n;return(0,ed.jsx)(Gi,{...e,variant:t,shape:"default",active:c,disabled:null!=(n=e.disabled)?n:!h,className:(b(tA))("memori-header--button memori-header--button--sustainability",e.className),"aria-label":p,title:p,icon:(0,ed.jsx)($K,{className:"memori-header--button--sustainability-icon"})})};return h?(0,ed.jsxs)(ed.Fragment,{children:[!a&&(e=>{var t;if(!n)return f(e);if("function"==typeof n)return n(e,{open:c});if(!(b(ep)).isValidElement(n))return f(e);let r=null!=(t=n.props)?t:{},i=(b(tA))(e.className,r.className);return(b(ep)).cloneElement(n,{...r,...e,className:i||void 0,onClick:t=>{var n,i;null==(n=e.onClick)||n.call(e,t),null==(i=r.onClick)||i.call(r,t)}})})({onClick:e=>{h&&(d(!0),e.currentTarget.blur())}}),(0,ed.jsx)(_b,{open:c,onClose:()=>d(!1),title:m,className:"memori-chat--usage-modal memori-chat--consumption-modal",stacking:"stacked",closable:!0,children:(0,ed.jsx)($0,{history:e,showTitle:!1})})]}):a||n?null:f({disabled:!0})},$2=({className:e,buttonVariant:t="ghost",memori:n,tenant:r,history:i,position:a,setVenue:o,positionPopoverOpen:s,setPositionPopoverOpen:l,autoStartPositionGeolocation:u=!1,setShowSettingsDrawer:c,setShowChatHistoryDrawer:d,setShowKnownFactsDrawer:h,setShowExpertsDrawer:p,enableAudio:m=!0,speakerMuted:f,setSpeakerMuted:g,hasUserActivatedSpeak:v=!1,showShare:y=!0,showSettings:_=!0,showReload:x=!1,showClear:w=!1,showLogin:S=!0,setShowLoginDrawer:E,clearHistory:A,loginToken:T,user:I,sessionID:C,showChatHistory:M=!0,fullScreenHandler:N,baseUrl:R,onLogout:O,apiClient:P,layout:k,additionalSettings:D,showMessageConsumption:B=!1,showFullscreen:F=!0,extraActions:U})=>{var j;let z,H,{t:G,i18n:V}=tE(),{add:W}=vX(),{uploadAsset:q,pwlUpdateUser:$}=P.backend,[J,K]=(0,ep.useState)(!1),[Y,X]=(0,ep.useState)(!1),[Z,Q]=(0,ep.useState)(!1),[ee,et]=(0,ep.useState)(!1),[en,er]=(0,ep.useState)(!1),ei=Lp(),ea=e=>{if("number"==typeof e&&Number.isFinite(e))return e;if(e&&"object"==typeof e){if("number"==typeof e.parsedValue&&Number.isFinite(e.parsedValue))return e.parsedValue;if("string"==typeof e.source){let t=Number(e.source);if(Number.isFinite(t))return t}}},eo=(e,t)=>new Intl.NumberFormat(t,{minimumFractionDigits:0,maximumFractionDigits:Math.abs(e)>=1?3:4}).format(e),es=(e,t,n)=>{let r=Math.abs(e);if("energy"===t){if(r>=1)return`${eo(e,n)} kWh`;let t=1e3*e;return Math.abs(t)>=1?`${eo(t,n)} Wh`:`${eo(1e3*t,n)} mWh`}if("co2"===t){if(r>=1)return`${eo(e,n)} kg`;let t=1e3*e;return Math.abs(t)>=1?`${eo(t,n)} g`:`${eo(1e3*t,n)} mg`}if(r>=1)return`${eo(e,n)} L`;let i=1e3*e;return Math.abs(i)>=1?`${eo(i,n)} mL`:`${eo(1e3*i,n)} \u{3BC}L`},el=V.language||navigator.language||"en",eu=(0,ep.useMemo)(()=>({lines:i}),[i]),ec=(0,ep.useMemo)(()=>{var e;let t={energy:0,gwp:0,wcf:0};return(null!=(e=null==eu?void 0:eu.lines)?e:[]).forEach(e=>{var n,r,i,a;let o=null==(n=e.llmUsage)?void 0:n.energyImpact;o&&(t.energy+=null!=(r=ea(o.energy))?r:0,t.gwp+=null!=(i=ea(o.gwp))?i:0,t.wcf+=null!=(a=ea(o.wcf))?a:0)}),t},[eu]),eh=(0,ep.useMemo)(()=>{var e;return(null!=(e=null==eu?void 0:eu.lines)?e:[]).some(e=>{var t;return!!(null==(t=e.llmUsage)?void 0:t.energyImpact)})},[eu]),em=(0,ep.useMemo)(()=>{var e;return(null!=(e=null==eu?void 0:eu.lines)?e:[]).some(e=>!!e.llmUsage)},[eu]);(0,ep.useEffect)(()=>{document.fullscreenEnabled&&K(!0)},[]),(0,ep.useEffect)(()=>{let e=()=>{var e;let t=!!document.fullscreenElement;if(X(t),!t){let t=document.querySelector(".memori-widget");(null==(e=null==t?void 0:t.dataset)?void 0:e.memoriPrevBgColor)!==void 0&&(t.style.backgroundColor=t.dataset.memoriPrevBgColor,delete t.dataset.memoriPrevBgColor)}};return document.addEventListener("fullscreenchange",e),()=>document.removeEventListener("fullscreenchange",e)},[]);let[ef,eg]=(0,ep.useState)(()=>"u"<typeof window||!window.matchMedia||!window.matchMedia("(max-width: 767px)").matches);(0,ep.useEffect)(()=>{if(!window.matchMedia)return;let e=window.matchMedia("(max-width: 767px)"),t=()=>eg(!e.matches);return t(),e.addEventListener("change",t),()=>e.removeEventListener("change",t)},[]);let ev=(0,ep.useCallback)((e,t)=>"TOTEM"===e||t&&Object.keys(t).length>0||!1,[k,D]),ey=async e=>{if(e&&T){let t=new FileReader;t.onload=async t=>{var n,r,i;try{let{asset:a,...o}=await q(null!=(n=e.name)?n:"avatar",null==(r=t.target)?void 0:r.result,null!=T?T:"");if(0!==o.resultCode)console.error("[updateAvatar] Upload failed:",o),W(v7({description:G(L_(o.resultCode)),severity:"error"}));else if(a){let e={userID:null==I?void 0:I.userID,avatarURL:a.assetURL},{user:t,...n}=await $(null!=T?T:"",null!=(i=null==I?void 0:I.userID)?i:"",e);0!==n.resultCode?W(v7({description:G(L_(n.resultCode)),severity:"error"})):W(v7({description:G("login.avatarUploadSuccess"),severity:"success"}))}}catch(e){console.error("[updateAvatar] Error:",e),(null==e?void 0:e.message)&&W(v7({description:e.message,severity:"error"}))}},t.readAsDataURL(e)}else console.error("[updateAvatar] Missing avatar or login token",{avatar:e,loginToken:T}),W(v7({description:G("login.avatarUploadError"),severity:"error"}))},eb="FULLPAGE"===k||"CHAT"===k;(0,ep.useEffect)(()=>{if(!eb)return;let e=document.querySelector(".memori-widget .memori-chat--history");if(!e)return;let t=()=>{let t=e.scrollTop>2;document.querySelectorAll(".memori-widget .memori-chat-layout--header, .memori-widget .memori-fullpage-top-header, .memori-widget .memori-fullpage-header-row").forEach(e=>{e.classList.toggle("memori-header--scrolled",t)})};return t(),e.addEventListener("scroll",t,{passive:!0}),()=>{e.removeEventListener("scroll",t),document.querySelectorAll(".memori-header--scrolled").forEach(e=>e.classList.remove("memori-header--scrolled"))}},[eb,C,v]);let e_="TOTEM"===k?void 0:G("widget.headerHistory")||"History",ex=G("widget.headerLogin")||G("login.login")||"Login",ew=G("widget.mobileSession.sessionInfo")||"Session info",eS=f?G("widget.soundOff",{defaultValue:"Audio off"}):G("widget.sound",{defaultValue:"Audio"}),eE=Y?G("fullscreenExit")||"Exit fullscreen":G("fullscreenEnter")||"Full screen",eA=!!T&&!!(null==I?void 0:I.userID),eT=(null==I?void 0:I.userName)||(null==I?void 0:I.eMail)||G("login.user"),eI=(H=(z=((null==I?void 0:I.userName)||(null==I?void 0:I.eMail)||"U").trim()).split(/[\s._@-]+/).filter(Boolean)).length>=2?`${H[0][0]}${H[1][0]}`.toUpperCase():z.slice(0,2).toUpperCase(),eC=!!(C&&v),eM=!!n.enableDeepThought&&!!T&&!!(null==I?void 0:I.pAndCUAccepted),eN=eC&&ef&&(eM||B),eR=(null==(j=null==n?void 0:n.name)?void 0:j.trim())||"",eO=(0,ep.useMemo)(()=>{var e;let t=null==(e=null==n?void 0:n.description)?void 0:e.trim();return t?t.replace(/<[^>]+>/g," ").replace(/\s+/g," ").trim():""},[null==n?void 0:n.description]),eP=(0,ep.useMemo)(()=>{if(eb&&n)return n.avatarURL&&n.avatarURL.length>0?Lr({type:"avatar",tenantID:null==r?void 0:r.name,resourceURI:n.avatarURL,baseURL:R,apiURL:""}):Lr({type:"avatar",tenantID:null==r?void 0:r.name,baseURL:R,apiURL:""})},[eb,n,r,R]),ek=M&&!!T,eL=!!(_&&ev(k,D)),eD=!!n.needsPosition||x||w||B||F&&J||eM&&eC||!!n.enableBoardOfExperts||m||eL||y,eB=eN||F&&J||m||!!n.needsPosition||x||w||!!n.enableBoardOfExperts||eL||y,eF=ef&&ek&&(eA?eB||!!S:eD||!!S),eU=ef&&!!S&&(eA?eB:eD),ej=M&&!!T&&(0,ed.jsx)(_z,{title:G("write_and_speak.chatHistory")||"Chat history",placement:"bottom",children:(0,ed.jsx)("span",{style:{display:"inline-flex"},children:(0,ed.jsx)(Gi,{variant:t,className:"memori-header--chat-history-button",disabled:!T,"aria-label":G("write_and_speak.chatHistory")||"Chat history",icon:(0,ed.jsx)(q6,{}),onClick:()=>d(!0),children:e_?(0,ed.jsx)("span",{className:"memori-header--action-label",children:e_}):null})})}),ez=S&&(0,ed.jsx)(ed.Fragment,{children:T&&(null==I?void 0:I.userID)?(0,ed.jsx)(x0,{className:"memori-header--dropdown",open:Z,onOpenChange:e=>{Q(e),e&&(et(!1),l(!1))},placement:"bottom-end",sideOffset:8,closable:!1,contentClassName:"memori-dropdown--menu",slotProps:{trigger:{className:(b(tA))("memori-dropdown--user-trigger","memori-dropdown--user-trigger--identity",eb&&"memori-dropdown--user-trigger--fullpage"),render:e=>(0,ed.jsx)(_z,{title:eT,placement:"bottom",children:(0,ed.jsx)("span",{style:{display:"inline-flex"},children:(0,ed.jsxs)(Gi,{...e,active:Z,variant:t,className:(b(tA))("memori-dropdown--user-trigger-button","memori-dropdown--user-trigger-button--identity"),"aria-label":String(eT),children:[(0,ed.jsx)("span",{className:"memori-dropdown--user-trigger-name",children:(null==I?void 0:I.userName)||G("login.welcomeUser")}),(null==I?void 0:I.avatarURL)?(0,ed.jsx)("img",{src:I.avatarURL,alt:"",className:"memori-dropdown--user-trigger-avatar"}):(0,ed.jsx)("span",{className:"memori-dropdown--user-trigger-initials","aria-hidden":!0,children:eI})]})})})}},content:(0,ed.jsxs)("div",{className:"memori-dropdown--content",children:[(0,ed.jsx)("div",{className:"memori-dropdown--user-item",children:(0,ed.jsxs)("div",{className:"memori-dropdown--user-info",children:[(0,ed.jsx)("div",{className:"memori-dropdown--avatar-wrap",children:I.avatarURL?(0,ed.jsxs)(ed.Fragment,{children:[(0,ed.jsx)("img",{src:I.avatarURL,alt:I.userName||I.eMail,className:"memori-dropdown--avatar"}),(0,ed.jsx)("span",{className:"memori-dropdown--avatar-overlay","aria-hidden":!0,children:(0,ed.jsx)(q8,{size:20,strokeWidth:2})}),(0,ed.jsx)("label",{htmlFor:"avatar",className:"sr-only",children:G("login.avatarChange")}),(0,ed.jsx)("input",{type:"file",name:"avatar",id:"avatar",className:"memori-dropdown--avatar-input",onChange:e=>{var t,n;return ey(null!=(n=null==(t=e.target.files)?void 0:t[0])?n:null)},accept:Ln.join(", ")})]}):(0,ed.jsx)(ed.Fragment,{children:(0,ed.jsxs)("div",{className:"memori-dropdown--avatar-placeholder",children:[(0,ed.jsx)("span",{className:"memori-dropdown--avatar-initial",children:(I.userName||I.eMail||"U").charAt(0).toUpperCase()}),(0,ed.jsx)("span",{className:"memori-dropdown--avatar-overlay","aria-hidden":!0,children:(0,ed.jsx)(q8,{size:20,strokeWidth:2})}),(0,ed.jsx)("label",{htmlFor:"avatar",className:"sr-only",children:G("login.avatarChange")}),(0,ed.jsx)("input",{type:"file",name:"avatar",id:"avatar",className:"memori-dropdown--avatar-input",onChange:e=>{var t,n;return ey(null!=(n=null==(t=e.target.files)?void 0:t[0])?n:null)},accept:Ln.join(", ")})]})})}),(0,ed.jsxs)("div",{className:"memori-dropdown--user-details",children:[(0,ed.jsx)("h3",{className:"memori-dropdown--user-name",children:I.userName||G("login.welcomeUser")}),(0,ed.jsx)("p",{className:"memori-dropdown--user-email",children:I.eMail}),(0,ed.jsx)("div",{className:"memori-dropdown--user-badge",children:I.birthDate?new Date(I.birthDate).toLocaleDateString():G("login.notSet")})]})]})}),(0,ed.jsx)("div",{className:"memori-dropdown--separator"}),(0,ed.jsx)(Gi,{type:"button",variant:t,onClick:O,className:"memori-dropdown--action-button memori-dropdown--action-button--logout",icon:(0,ed.jsx)(q7,{size:18,strokeWidth:2,"aria-hidden":!0}),children:(0,ed.jsx)("span",{className:"memori-header--action-label",children:G("login.logout")||"Logout"})})]}),children:null}):eb?(0,ed.jsx)(_z,{title:G("login.login")||"Login",placement:"bottom",children:(0,ed.jsx)("span",{style:{display:"inline-flex"},children:(0,ed.jsx)(ye,{variant:"primary",className:"memori-header--button memori-header--button-login",icon:(0,ed.jsx)(Lh,{}),title:G("login.login")||"Login","aria-label":G("login.login")||"Login",onClick:()=>E(!0),children:ex})})}):(0,ed.jsx)(_z,{title:G("login.login")||"Login",placement:"bottom",children:(0,ed.jsx)("span",{style:{display:"inline-flex"},children:(0,ed.jsx)(Gi,{variant:t,className:"memori-header--button memori-header--button-login",icon:(0,ed.jsx)(Lh,{}),title:G("login.login")||"Login","aria-label":G("login.login")||"Login",onClick:()=>E(!0)})})})}),eH=(e,n="bottom")=>(0,ed.jsx)(_z,{title:G("reload")||"Reload",placement:n,children:(0,ed.jsx)("span",{style:{display:"inline-flex"},children:(0,ed.jsx)(Gi,{variant:t,className:e,"aria-label":G("reload")||"Reload",icon:(0,ed.jsx)(q9,{}),onClick:()=>{window.location.reload()}})})}),eG=(e,n="bottom")=>(0,ed.jsx)(_z,{title:G("clearHistory")||"Clear chat",placement:n,children:(0,ed.jsx)("span",{style:{display:"inline-flex"},children:(0,ed.jsx)(Gi,{variant:t,className:e,"aria-label":G("clearHistory")||"Clear chat",icon:(0,ed.jsx)($e,{}),onClick:()=>{A(),W(v7({description:G("clearHistoryDone"),severity:"success"}))}})})}),eV=(e,n="bottom")=>(0,ed.jsx)(_z,{title:G("widget.showExpertsInTheBoard")||"Experts in this board",placement:n,children:(0,ed.jsx)("span",{style:{display:"inline-flex"},children:(0,ed.jsx)(Gi,{variant:t,className:e,icon:(0,ed.jsx)(Vv,{}),disabled:!v||!C,"aria-label":G("widget.showExpertsInTheBoard")||"Experts in this board",onClick:()=>p(!0)})})}),eW=(e,n="bottom")=>(0,ed.jsx)(_z,{title:G("widget.settings")||"Settings",placement:n,children:(0,ed.jsx)("span",{style:{display:"inline-flex"},children:(0,ed.jsx)(Gi,{variant:t,className:e,icon:(0,ed.jsx)($t,{}),"aria-label":G("widget.settings")||"Settings",onClick:()=>c(!0)})})}),eq=(0,ed.jsxs)(ed.Fragment,{children:[n.needsPosition&&(0,ed.jsx)("div",{className:"memori-header--position",children:(0,ed.jsx)(_z,{title:G("widget.position")||"Position",placement:"bottom",children:(0,ed.jsx)("span",{style:{display:"inline-flex"},children:(0,ed.jsx)($J,{venue:a,setVenue:o,open:s,autoStartGeolocation:u,onOpenChange:e=>{l(e),e&&(et(!1),Q(!1))},triggerButtonVariant:t,triggerAriaLabel:G("widget.position")||"Position",positionerClassName:"WEBSITE_ASSISTANT"===k?"memori-position-popover__positioner--website-assistant":void 0})})})}),x&&eH(),w&&eG()]}),e$=(0,ed.jsxs)(ed.Fragment,{children:[B&&(0,ed.jsx)($1,{history:i,triggerVariant:t}),F&&J&&(0,ed.jsx)(_z,{title:eE,placement:"bottom",children:(0,ed.jsx)("span",{style:{display:"inline-flex"},children:(0,ed.jsx)(Gi,{variant:t,title:eE,"aria-label":eE,icon:Y?(0,ed.jsx)($n,{}):(0,ed.jsx)($r,{}),onClick:N||(()=>{var e;if(document.fullscreenElement)document.exitFullscreen&&document.exitFullscreen().then(()=>{var e;X(!1);let t=document.querySelector(".memori-widget");(null==(e=null==t?void 0:t.dataset)?void 0:e.memoriPrevBgColor)!==void 0&&(t.style.backgroundColor=t.dataset.memoriPrevBgColor,delete t.dataset.memoriPrevBgColor)}).catch(e=>{console.warn("Error attempting to exit fullscreen:",e)});else{let t="HIDDEN_CHAT"!==k&&"WEBSITE_ASSISTANT"!==k?document.body:document.querySelector(".memori-widget");if(t){let n=document.querySelector(".memori-widget");n&&(void 0===n.dataset.memoriPrevBgColor&&(n.dataset.memoriPrevBgColor=null!=(e=n.style.backgroundColor)?e:""),n.style.backgroundColor=""),t.requestFullscreen().then(()=>X(!0)).catch(e=>{console.warn("Error attempting to enable fullscreen:",e)})}}})})})}),eM&&eC&&(0,ed.jsx)(_z,{title:G("knownFacts.title")||"Known facts",placement:"bottom",children:(0,ed.jsx)("span",{style:{display:"inline-flex"},children:(0,ed.jsx)(Gi,{variant:t,icon:(0,ed.jsx)($i,{}),"aria-label":G("knownFacts.title")||"Known facts",onClick:()=>h(!0)})})}),n.enableBoardOfExperts&&eV(),m&&(0,ed.jsx)(_z,{title:eS,placement:"bottom",children:(0,ed.jsx)("span",{style:{display:"inline-flex"},children:(0,ed.jsx)(Gi,{variant:t,icon:f?(0,ed.jsx)($a,{size:20,strokeWidth:2.35,"aria-hidden":!0}):(0,ed.jsx)(GN,{size:20,strokeWidth:2,"aria-hidden":!0}),title:eS,"aria-label":eS,onClick:()=>g(!f)})})}),eL&&eW(),y&&(0,ed.jsx)($S,{title:n.name,memori:n,sessionID:C,tenant:r,showQrCode:!0,align:"left",baseUrl:R,history:i,triggerVariant:t})]}),eJ=eh?`${es(ec.energy,"energy",el)} \u{2022} ${es(ec.gwp,"co2",el)}`:G("widget.noData",{defaultValue:"Nessun dato disponibile"}),eK=(0,ed.jsxs)(ed.Fragment,{children:[(0,ed.jsxs)("div",{className:"memori-header--auth-icon-controls",children:[eN&&(0,ed.jsx)(x0,{className:"memori-header--dropdown",open:ee,onOpenChange:e=>{et(e),e&&(Q(!1),l(!1))},placement:"bottom-end",sideOffset:8,closable:!1,contentClassName:"memori-dropdown--menu memori-dropdown--auth-menu",slotProps:{trigger:{render:e=>(0,ed.jsx)(_z,{title:ew,placement:"bottom",children:(0,ed.jsx)("span",{style:{display:"inline-flex"},children:(0,ed.jsx)(Gi,{...e,active:ee,variant:t,className:"memori-header--auth-icon-button","aria-label":ew,icon:(0,ed.jsx)(HX,{})})})})}},content:(0,ed.jsxs)("div",{className:"memori-dropdown--auth-content",children:[eM&&(0,ed.jsxs)("button",{type:"button",className:"memori-dropdown--auth-row memori-dropdown--auth-row--navigable",onClick:()=>{h(!0),et(!1)},children:[(0,ed.jsx)("span",{className:"memori-dropdown--auth-icon-wrap",children:(0,ed.jsx)($i,{size:16})}),(0,ed.jsxs)("span",{className:"memori-dropdown--auth-copy",children:[(0,ed.jsx)("span",{className:"memori-dropdown--auth-title",children:G("knownFacts.title")||"Known facts"}),(0,ed.jsx)("span",{className:"memori-dropdown--auth-subtitle",children:G("widget.knownFactsHint")||"What I remember about you"})]})]}),B&&(em?(0,ed.jsxs)("button",{type:"button",className:(b(tA))("memori-dropdown--auth-row","memori-dropdown--auth-row--navigable",en&&"memori-dropdown--auth-row--active"),onClick:()=>{er(!0),et(!1)},children:[(0,ed.jsx)("span",{className:"memori-dropdown--auth-icon-wrap",children:(0,ed.jsx)($K,{})}),(0,ed.jsxs)("span",{className:"memori-dropdown--auth-copy",children:[(0,ed.jsx)("span",{className:"memori-dropdown--auth-title",children:G("widget.aiConsumption")||"AI usage"}),(0,ed.jsx)("span",{className:"memori-dropdown--auth-subtitle",children:eJ})]})]}):(0,ed.jsxs)("button",{type:"button",disabled:!0,className:"memori-dropdown--auth-row memori-dropdown--auth-row--navigable memori-dropdown--auth-row--disabled",children:[(0,ed.jsx)("span",{className:"memori-dropdown--auth-icon-wrap",children:(0,ed.jsx)($K,{})}),(0,ed.jsxs)("span",{className:"memori-dropdown--auth-copy",children:[(0,ed.jsx)("span",{className:"memori-dropdown--auth-title",children:G("widget.aiConsumption")||"AI usage"}),(0,ed.jsx)("span",{className:"memori-dropdown--auth-subtitle",children:eJ})]})]}))]}),children:null}),F&&J&&(0,ed.jsx)(_z,{title:eE,placement:"bottom",children:(0,ed.jsx)("span",{style:{display:"inline-flex"},children:(0,ed.jsx)(Gi,{variant:t,className:"memori-header--auth-icon-button",title:eE,"aria-label":eE,icon:Y?(0,ed.jsx)($n,{}):(0,ed.jsx)($r,{}),onClick:N||(()=>{var e;if(document.fullscreenElement)document.exitFullscreen&&document.exitFullscreen().then(()=>{var e;X(!1);let t=document.querySelector(".memori-widget");(null==(e=null==t?void 0:t.dataset)?void 0:e.memoriPrevBgColor)!==void 0&&(t.style.backgroundColor=t.dataset.memoriPrevBgColor,delete t.dataset.memoriPrevBgColor)}).catch(e=>{console.warn("Error attempting to exit fullscreen:",e)});else{let t="HIDDEN_CHAT"!==k&&"WEBSITE_ASSISTANT"!==k?document.body:document.querySelector(".memori-widget");if(t){let n=document.querySelector(".memori-widget");n&&(void 0===n.dataset.memoriPrevBgColor&&(n.dataset.memoriPrevBgColor=null!=(e=n.style.backgroundColor)?e:""),n.style.backgroundColor=""),t.requestFullscreen().then(()=>X(!0)).catch(e=>{console.warn("Error attempting to enable fullscreen:",e)})}}})})})}),m&&(0,ed.jsx)(_z,{title:eS,placement:"bottom",children:(0,ed.jsx)("span",{style:{display:"inline-flex"},children:(0,ed.jsx)(Gi,{variant:t,className:"memori-header--auth-icon-button",title:eS,"aria-label":eS,icon:f?(0,ed.jsx)($a,{size:20,strokeWidth:2.35,"aria-hidden":!0}):(0,ed.jsx)(GN,{size:20,strokeWidth:2,"aria-hidden":!0}),onClick:()=>g(!f)})})}),n.needsPosition&&(0,ed.jsx)(_z,{title:G("widget.position")||"Position",placement:"bottom",children:(0,ed.jsx)("span",{style:{display:"inline-flex"},children:(0,ed.jsx)($J,{venue:a,setVenue:o,open:s,autoStartGeolocation:u,onOpenChange:e=>{l(e),e&&(et(!1),Q(!1))},triggerButtonVariant:t,triggerClassName:"memori-header--auth-icon-button",triggerAriaLabel:G("widget.position")||"Position",positionerClassName:"WEBSITE_ASSISTANT"===k?"memori-position-popover__positioner--website-assistant":void 0})})}),x&&eH("memori-header--auth-icon-button"),w&&eG("memori-header--auth-icon-button"),n.enableBoardOfExperts&&eV("memori-header--auth-icon-button"),eL&&eW("memori-header--auth-icon-button"),y&&(0,ed.jsx)("span",{className:"memori-header--auth-share-button-wrap",children:(0,ed.jsx)($S,{title:n.name,memori:n,sessionID:C,tenant:r,showQrCode:!0,align:"left",baseUrl:R,history:i,triggerVariant:t,className:"memori-header--auth-share-button"})})]}),B&&em&&(0,ed.jsx)($1,{history:i,triggerVariant:t,hideTrigger:!0,open:en,onOpenChange:er})]}),eY=G("login.user")||"Account",eX=G("reload")||"Restart conversation",eZ=G("widget.settings")||"Settings",eQ=G("knownFacts.title")||"Known facts",e0=G("write_and_speak.chatHistory")||"Chat history",e1=eM&&eC,e2=!!(S||e1),e3=(0,ed.jsxs)("div",{className:(b(tA))("memori-totem-rail",e),role:"toolbar","aria-label":String(G("widget.sessionControls",{defaultValue:"Controlli"})),"aria-orientation":"vertical",children:[(0,ed.jsxs)("div",{className:"memori-totem-rail--group",children:[m&&(0,ed.jsx)(_z,{title:eS,placement:"left",children:(0,ed.jsx)("span",{style:{display:"inline-flex"},children:(0,ed.jsx)(Gi,{variant:t,className:"memori-totem-rail--button",icon:f?(0,ed.jsx)($a,{size:20,strokeWidth:2.35,"aria-hidden":!0}):(0,ed.jsx)(GN,{size:20,strokeWidth:2,"aria-hidden":!0}),title:eS,"aria-label":eS,"aria-pressed":f,onClick:()=>g(!f)})})}),F&&J&&(0,ed.jsx)(_z,{title:eE,placement:"left",children:(0,ed.jsx)("span",{style:{display:"inline-flex"},children:(0,ed.jsx)(Gi,{variant:t,className:"memori-totem-rail--button",icon:Y?(0,ed.jsx)($n,{}):(0,ed.jsx)($r,{}),title:eE,"aria-label":eE,"aria-pressed":Y,onClick:e=>{var t,n,r;N?N(e):document.fullscreenElement?null==(r=document.exitFullscreen)||r.call(document).then(()=>X(!1)).catch(()=>{}):null==(n=(t=document.documentElement).requestFullscreen)||n.call(t).then(()=>X(!0)).catch(()=>{})}})})}),y&&(0,ed.jsx)($S,{title:n.name,memori:n,sessionID:C,tenant:r,showQrCode:!0,align:"left",baseUrl:R,history:i,triggerVariant:t,className:"memori-totem-rail--button"}),x&&(0,ed.jsx)(_z,{title:eX,placement:"left",children:(0,ed.jsx)("span",{style:{display:"inline-flex"},children:(0,ed.jsx)(Gi,{variant:t,className:"memori-totem-rail--button",icon:(0,ed.jsx)(q9,{}),title:eX,"aria-label":eX,onClick:()=>{window.location.reload()}})})}),w&&eG("memori-totem-rail--button","left"),n.enableBoardOfExperts&&eV("memori-totem-rail--button","left"),eL&&(0,ed.jsx)(_z,{title:eZ,placement:"left",children:(0,ed.jsx)("span",{style:{display:"inline-flex"},children:(0,ed.jsx)(Gi,{variant:t,className:"memori-totem-rail--button",icon:(0,ed.jsx)($t,{}),title:eZ,"aria-label":eZ,onClick:()=>c(!0)})})}),M&&!!T&&(0,ed.jsx)(_z,{title:e0,placement:"left",children:(0,ed.jsx)("span",{style:{display:"inline-flex"},children:(0,ed.jsx)(Gi,{variant:t,className:"memori-totem-rail--button",icon:(0,ed.jsx)(q6,{}),title:e0,"aria-label":e0,onClick:()=>d(!0)})})})]}),e2&&(0,ed.jsxs)(ed.Fragment,{children:[(0,ed.jsx)("div",{className:"memori-totem-rail--divider","aria-hidden":"true"}),(0,ed.jsx)("div",{className:"memori-totem-rail--group",children:(0,ed.jsx)(x0,{className:"memori-header--dropdown",open:Z,onOpenChange:e=>{Q(e),e&&(et(!1),l(!1))},placement:"left-start",sideOffset:8,closable:!1,contentClassName:"memori-dropdown--menu memori-totem-rail--menu",slotProps:{trigger:{render:e=>(0,ed.jsx)(_z,{title:eY,placement:"left",children:(0,ed.jsx)("span",{style:{display:"inline-flex"},children:(0,ed.jsx)(Gi,{...e,active:Z,variant:t,className:(b(tA))("memori-totem-rail--button","memori-totem-rail--account-trigger"),title:eY,"aria-label":eY,icon:(0,ed.jsx)(Lh,{})})})})}},content:(0,ed.jsxs)("div",{className:"memori-totem-rail--menu-content",children:[S&&eA&&(0,ed.jsxs)("div",{className:"memori-totem-rail--menu-identity",children:[(0,ed.jsx)("span",{className:"memori-totem-rail--menu-identity-name",children:(null==I?void 0:I.userName)||G("login.welcomeUser")}),(null==I?void 0:I.eMail)&&(0,ed.jsx)("span",{className:"memori-totem-rail--menu-identity-email",children:I.eMail})]}),e1&&(0,ed.jsx)(ye,{type:"button",variant:"ghost",className:"memori-totem-rail--menu-item",icon:(0,ed.jsx)($i,{size:18,"aria-hidden":!0}),title:eQ,"aria-label":eQ,onClick:()=>{Q(!1),h(!0)},children:eQ}),S&&(eA?(0,ed.jsx)(ye,{type:"button",variant:"ghost",className:"memori-totem-rail--menu-item memori-totem-rail--menu-item--logout",icon:(0,ed.jsx)(q7,{size:18,"aria-hidden":!0}),title:G("login.logout")||"Logout","aria-label":G("login.logout")||"Logout",onClick:()=>{Q(!1),null==O||O()},children:G("login.logout")||"Logout"}):(0,ed.jsx)(ye,{type:"button",variant:"ghost",className:"memori-totem-rail--menu-item",icon:(0,ed.jsx)(Lh,{size:18,"aria-hidden":!0}),title:G("login.login")||"Login","aria-label":G("login.login")||"Login",onClick:()=>{Q(!1),E(!0)},children:G("login.login")||"Login"}))]}),children:null})})]})]}),e4=(0,ed.jsxs)("div",{className:(b(tA))("memori-header",e,eb&&"memori-header--fullpage","FULLPAGE"===k&&!T&&"memori-header--fullpage-guest"),children:[eb&&eA?(0,ed.jsxs)(ed.Fragment,{children:[ek&&(0,ed.jsx)("div",{className:"memori-header--fullpage-primary",children:ej}),eF&&(0,ed.jsx)("div",{className:"memori-header--fullpage-divider","aria-hidden":"true"}),eB&&(0,ed.jsx)("div",{className:"memori-header--fullpage-secondary",children:eK}),eU&&(0,ed.jsx)("div",{className:"memori-header--fullpage-divider","aria-hidden":"true"}),ez]}):eb?(0,ed.jsxs)(ed.Fragment,{children:[ek&&(0,ed.jsx)("div",{className:"memori-header--fullpage-primary",children:ej}),eF&&(0,ed.jsx)("div",{className:"memori-header--fullpage-divider","aria-hidden":"true"}),eD&&(0,ed.jsxs)("div",{className:"memori-header--fullpage-secondary",children:[eq,e$]}),eU&&(0,ed.jsx)("div",{className:"memori-header--fullpage-divider","aria-hidden":"true"}),ez]}):(0,ed.jsxs)(ed.Fragment,{children:[eq,ej,e$,ez]}),U]});return"TOTEM"===k?e3:eb?(0,ed.jsxs)(ed.Fragment,{children:[eC&&n&&(0,ed.jsxs)("div",{className:"memori-fullpage-header-brand",children:[eP?(0,ed.jsx)("img",{className:"memori-fullpage-header-brand-icon memori-fullpage-header-brand-icon--avatar",src:eP,alt:"",role:"presentation"}):(0,ed.jsx)("span",{className:"memori-fullpage-header-brand-icon","aria-hidden":!0}),(eR||eO)&&(0,ed.jsxs)("div",{className:"memori-fullpage-header-brand-text",children:[eR?(0,ed.jsx)("span",{className:"memori-fullpage-header-brand-name",title:eR,children:eR}):null,eO?(0,ed.jsx)(_z,{title:eO,placement:"bottom",...ei.tooltipProps,slotProps:{positioner:ei.positionerProps,popup:{className:"memori-fullpage-header-brand-role-tooltip"}},children:(0,ed.jsx)("span",{ref:ei.anchorRef,className:"memori-fullpage-header-brand-role",...ei.pressTriggerProps,children:eO})}):null]})]}),(0,ed.jsx)("div",{className:"memori-fullpage-header-actions",children:e4})]}):e4},$3=e=>(0,ed.jsxs)("svg",{className:"memori-ai-logo",width:800,height:800,fill:"currentColor",viewBox:"0 0 670.70013 639.67999","aria-label":"Memori AI",...e,children:[(0,ed.jsxs)("defs",{children:[(0,ed.jsx)("style",{children:"\n .cls-1 {\n fill: url(#Sfumatura_senza_nome_6);\n }\n\n .cls-1,\n .cls-2 {\n stroke-width: 0px;\n }\n\n .cls-2 {\n fill: var(--memori-text-color, '#744c99');\n }\n "}),(0,ed.jsxs)("linearGradient",{id:"Sfumatura_senza_nome_6","data-name":"Sfumatura senza nome 6",x1:392.82999,y1:-13.83,x2:786.29999,y2:628.33002,gradientUnits:"userSpaceOnUse",gradientTransform:"translate(-304.65445,-80.16)",children:[(0,ed.jsx)("stop",{offset:.18,stopColor:"#9ad2d5",id:"stop1"}),(0,ed.jsx)("stop",{offset:.32,stopColor:"#26b5cb",id:"stop2"}),(0,ed.jsx)("stop",{offset:.38,stopColor:"#379cbe",id:"stop3"}),(0,ed.jsx)("stop",{offset:.46,stopColor:"#4c7eb0",id:"stop4"}),(0,ed.jsx)("stop",{offset:.55,stopColor:"#5d66a4",id:"stop5"}),(0,ed.jsx)("stop",{offset:.65,stopColor:"#69569c",id:"stop6"}),(0,ed.jsx)("stop",{offset:.76,stopColor:"#704c97",id:"stop7"}),(0,ed.jsx)("stop",{offset:.89,stopColor:"#734996",id:"stop8"})]})]}),(0,ed.jsxs)("g",{id:"g13",transform:"translate(-304.65445,-80.16)",children:[(0,ed.jsx)("path",{className:"cls-2",d:"m 451.79,434.96 v -78.79 c 0,-15.73 8.09,-25.54 22.73,-25.54 7.01,0 12.93,3.11 16.82,8.41 3.9,-5.29 9.81,-8.41 16.82,-8.41 14.64,0 22.74,9.81 22.74,25.54 v 78.79 c 0,3.27 -2.65,5.92 -5.92,5.92 -3.27,0 -5.92,-2.65 -5.92,-5.92 v -77.08 c 0,-11.21 -3.74,-16.35 -10.9,-16.35 -7.16,0 -10.9,5.14 -10.9,16.35 v 77.08 c 0,3.27 -2.65,5.92 -5.92,5.92 -3.27,0 -5.92,-2.65 -5.92,-5.92 v -77.08 c 0,-11.21 -3.74,-16.35 -10.9,-16.35 -7.16,0 -10.9,5.14 -10.9,16.35 v 77.08 c 0,3.27 -2.65,5.92 -5.92,5.92 -3.27,0 -5.92,-2.65 -5.92,-5.92 z",id:"path8"}),(0,ed.jsx)("path",{className:"cls-2",d:"m 588.37,435.12 c 0,3.11 -2.65,5.45 -5.76,5.45 h -23.98 c -6.7,0 -9.5,-2.81 -9.5,-9.34 v -90.31 c 0,-6.54 2.8,-9.34 9.5,-9.34 h 23.98 c 3.11,0 5.76,2.33 5.76,5.45 0,3.12 -2.65,5.45 -5.76,5.45 h -21.65 v 32.7 h 19.31 c 3.11,0 5.76,2.33 5.76,5.45 0,3.12 -2.65,5.45 -5.76,5.45 h -19.31 v 43.6 h 21.65 c 3.11,0 5.76,2.33 5.76,5.45 z",id:"path9"}),(0,ed.jsx)("path",{className:"cls-2",d:"m 599.59,434.96 v -78.79 c 0,-15.73 8.09,-25.54 22.73,-25.54 7.01,0 12.93,3.11 16.82,8.41 3.9,-5.29 9.81,-8.41 16.82,-8.41 14.64,0 22.74,9.81 22.74,25.54 v 78.79 c 0,3.27 -2.65,5.92 -5.92,5.92 -3.27,0 -5.92,-2.65 -5.92,-5.92 v -77.08 c 0,-11.21 -3.74,-16.35 -10.9,-16.35 -7.16,0 -10.9,5.14 -10.9,16.35 v 77.08 c 0,3.27 -2.65,5.92 -5.92,5.92 -3.27,0 -5.92,-2.65 -5.92,-5.92 v -77.08 c 0,-11.21 -3.74,-16.35 -10.9,-16.35 -7.16,0 -10.9,5.14 -10.9,16.35 v 77.08 c 0,3.27 -2.65,5.92 -5.92,5.92 -3.27,0 -5.92,-2.65 -5.92,-5.92 z",id:"path10"}),(0,ed.jsx)("path",{className:"cls-2",d:"m 692.72,416.28 v -60.1 c 0,-15.73 8.09,-25.54 23.35,-25.54 15.26,0 23.36,9.81 23.36,25.54 v 60.1 c 0,15.73 -8.1,25.54 -23.36,25.54 -15.26,0 -23.35,-9.81 -23.35,-25.54 z m 34.88,-2.02 v -56.05 c 0,-11.68 -4.05,-16.35 -11.52,-16.35 -7.47,0 -11.52,4.67 -11.52,16.35 v 56.05 c 0,11.68 4.05,16.35 11.52,16.35 7.47,0 11.52,-4.67 11.52,-16.35 z",id:"path11"}),(0,ed.jsx)("path",{className:"cls-2",d:"m 789.27,391.52 c 4.36,2.49 8.88,8.88 8.88,18.07 v 25.38 c 0,3.27 -2.65,5.92 -5.92,5.92 -3.27,0 -5.92,-2.65 -5.92,-5.92 v -22.11 c 0,-8.88 -4.67,-15.73 -12.3,-15.73 h -8.25 v 37.84 c 0,3.27 -2.65,5.92 -5.92,5.92 -3.27,0 -5.92,-2.65 -5.92,-5.92 v -94.05 c 0,-6.54 2.8,-9.34 9.5,-9.34 h 10.43 c 15.57,0 24.6,10.27 24.6,29.11 v 7.32 c 0,10.75 -2.81,18.69 -9.19,23.51 z m -2.33,-26 v -2.34 c 0,-14.02 -4.2,-20.71 -14.17,-20.71 h -7.01 v 43.75 h 7.01 c 9.97,0 14.17,-6.7 14.17,-20.71 z",id:"path12"}),(0,ed.jsx)("path",{className:"cls-2",d:"m 812.95,434.96 v -98.1 c 0,-3.27 2.65,-5.92 5.92,-5.92 3.27,0 5.92,2.65 5.92,5.92 v 98.1 c 0,3.27 -2.65,5.92 -5.92,5.92 -3.27,0 -5.92,-2.65 -5.92,-5.92 z",id:"path13"})]}),(0,ed.jsx)("path",{className:"cls-1",d:"m 667.73555,242.64 c -6.38,-56.35 -42.43,-113.07 -98.9,-155.61 -49.7,-37.44 -109.37,-60.33 -170.6,-65.94 C 364.22555,7.6 328.15555,0 291.96555,0 c -69.91,0 -135.47,27.64 -189.6,79.93 C 82.235546,99.38 55.165546,139 38.215546,191.67 c -9.13,16.42 -16.91,33.67 -23.02,51.57 -33.85,99.22 -10.5500001,199.69 63.94,275.65 9.79,9.98 26.710004,23.27 49.530004,36.03 70.06,71.95 151.03,84.76 199.59,84.76 45.54,0 92.21,-11.24 124.84,-30.07 28.3,-16.34 52.64,-36.17 72.92,-59.28 108.74,-60.36 157.72,-166.32 141.72,-307.69 z m -73.68,9.57 c -8.31,-61.54 -42.48,-119.59 -90.75,-164.46 37.26,23.3 66.15,54.54 87.71,91.36 27.6,47.13 46.44,143.64 0.76,233.55 9.47,-47.57 10.27,-101.25 2.28,-160.44 z m -11.27,1.52 c 10.34,76.59 5.37,140.08 -11.29,192.23 -24.15,33.64 -58.84,65.28 -107.4,91.69 -31.3,17.03 -61.5,28.71 -90.28,36.23 -8.25,-0.19 -16.63,-0.69 -25.09,-1.54 22.94,-3.81 46.17,-10.56 69.46,-20.26 96.74,-40.31 136.66,-112.17 153.12,-165.35 20.63,-66.68 13.55,-131.72 1.21,-167.16 -36.47,-104.77 -118.35,-165.33 -237.85,-176.66 46.26,0.76 86.54,8.18 121.19,21.31 67.54,45.83 117.02,116.16 126.92,189.52 z m -78.06,294.93 c -21.61,10.54 -52.6,19.64 -88.2,23.43 17.75,-6.76 35.44,-14.89 53.01,-24.45 35,-19.04 64.77,-41.9 88.88,-67.95 -10.72,23.16 -24.08,43.65 -39.67,61.68 -4.6,2.51 -9.26,4.97 -14.02,7.29 z m -368.96,-2.75 c -19.71,-20.45 -38.150004,-45.4 -54.570004,-75.6 -59.13,-108.81 -54.64,-204.44 -32.59,-273.88 40.79,-72.66 110.320004,-128.92 184.840004,-145.21 -6.05,2.97 -12.04,6.12 -17.94,9.49 -48.68,23.3 -93.61,65.79 -123.390004,119.76 -51.8,93.85 -49.11,199.1 7.38,288.77 23.170004,36.78 95.600004,106.18 204.320004,106.77 10.31,2.55 20.33,4.47 29.9,5.87 -15.51,2.15 -30.53,3.16 -44.97,3.16 -63.65,0 -116.29,-18.88 -152.97,-39.14 z m 169.2,18.75 c -62.68,-15.85 -125.37,-53.95 -169.73,-129.36 -100.020004,-170.04 3.83,-303.77 44.43,-336.4 14.06,-11.3 28.49,-21 43.15,-29.29 24.09,-11.11 49.2,-17.27 73.97,-17.27 0.69,0 1.41,0 2.1,0.02 148.62,2.08 228.54,72.27 262.89,170.95 25.29,72.64 20.48,248.09 -147.96,318.27 -39.5,16.46 -75.82,23.09 -108.64,23.09 -0.07,0 -0.14,0 -0.21,0 z m -50.13,-5.41 c -78.55,-17.09 -129.59,-70.46 -145.73,-96.07 -63.580004,-100.94 -49.220004,-209.44 0.22,-289.59 -5.85,11.99 -11.140004,24.86 -15.460004,38.56 -23.54,74.64 -12.63,153.8 31.560004,228.92 36.33,61.76 83.37,97.63 129.41,118.18 z m 93.31,-527.42 c 6.92,-0.48 13.83,-0.76 20.7,-0.76 9.21,0 18.36,0.43 27.44,1.24 5.8,2.34 11.5,4.89 17.15,7.57 -20.54,-4.36 -42.3,-7.05 -65.28,-8.06 z m -237.88,56.28 c 56.12,-54.22 119.7,-76.74 181.69,-76.74 22.56,0 44.9,3.01 66.59,8.54 -27.97,0.93 -55.36,5.59 -81.73,13.89 -9.47,0.87 -19.03,1.9 -28.75,3.25 -66.39,9.19 -130.73,49.37 -177.320004,106.6 13.93,-26.25 28.93,-45.3 39.520004,-55.54 z M 87.255546,510.92 C 8.3455459,430.46 -2.7544541,333.8 25.095546,249.55 c -9.9,74.5 5.8,152.05 46.09,226.19 9.7,17.85 20.01,33.8 30.760004,48.04 -5.970004,-4.67 -10.990004,-9.07 -14.700004,-12.85 z m 360.150004,88.83 c -27.18,15.69 -70.3,28.55 -119.16,28.55 -52.11,0 -110.74,-14.68 -163.49,-56.16 34.18,13.85 76.16,24.27 123.97,24.27 28.75,0 57.59,-3.76 86.33,-11.13 2.13,0.04 4.2,0.06 6.22,0.06 40.23,0 81.61,-7.43 114.06,-20.19 -14.66,13.13 -30.69,24.65 -47.93,34.6 z m 98.55,-75.09 c 10.02,-14.65 18.69,-30.34 25.92,-47.11 3.74,-8.67 7.06,-17.66 10.05,-26.89 17.66,-24.96 30.8,-52.23 38.94,-81.46 22.51,-80.87 3.27,-156.05 -20.04,-195.85 -33.54,-57.28 -80.82,-97.29 -141.07,-119.95 -8.19,-5.44 -16.61,-10.57 -25.24,-15.28 116.19,24.92 211.36,112.54 221.92,205.8 15.48,136.7 -31.24,226.21 -110.47,280.75 z",id:"path14",style:{fill:"url(#Sfumatura_senza_nome_6)"}})]}),$4=({tenant:e,userLang:t="en",integrationID:n,memoriHash:r})=>{let i=`https://memori.ai/${(null==t?void 0:t.toLowerCase())==="it"?"it":"en"}${n?`?integrationID=${n}`:""}${r?`${n?"&":"?"}memori=${r}`:""}`;return(0,ed.jsxs)("div",{className:"memori--powered-by",children:[(0,ed.jsx)($3,{className:"memori--powered-by-icon","aria-hidden":!0}),(0,ed.jsxs)("p",{className:"memori--powered-by-label",children:[(0,ed.jsx)("span",{children:"Powered by "}),(0,ed.jsx)("a",{href:i,target:"_blank",rel:"noopener noreferrer",children:"Memori.AI"})]})]})},ep=eu("85Hg2");let $5=wf("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]),$6=(0,ep.memo)(({defaultDate:e,onChange:t,disabled:n=!1,minAge:r=18})=>{let{t:i}=tE(),a=(0,ep.useMemo)(()=>i4.now().minus({years:r}).startOf("day"),[r]),o=(0,ep.useMemo)(()=>i4.fromObject({year:1900,month:1,day:1}),[]),[s,l]=(0,ep.useState)(""),[u,c]=(0,ep.useState)(""),[d,h]=(0,ep.useState)("");(0,ep.useEffect)(()=>{if(e){let t="string"==typeof e?i4.fromISO(e):i4.fromJSDate(e);t.isValid&&(l(t.day.toString()),c(t.month.toString()),h(t.year.toString()))}},[e]);let[p,m]=(0,ep.useState)(!1),f=(0,ep.useRef)(null),g=(0,ep.useRef)(null),v=(0,ep.useRef)(null);(0,ep.useEffect)(()=>{let e=()=>{m(window.innerWidth<768)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);let y=(0,ep.useRef)(t);y.current=t;let b=(0,ep.useRef)(void 0);if((0,ep.useEffect)(()=>{let e=e=>{let t=(null==e?void 0:e.isValid)?e.toISODate():null;t!==b.current&&(b.current=t,y.current(e))};if(!s||!u||!d)return void e(void 0);let t=parseInt(s),n=parseInt(u),r=parseInt(d);if(isNaN(t)||isNaN(n)||isNaN(r))return void e(void 0);let i=i4.fromObject({year:r,month:n,day:t});e(i.isValid&&i>=o&&i<=a?i:void 0)},[s,u,d,o,a]),p){let e=s&&u&&d?i4.fromObject({year:parseInt(d),month:parseInt(u),day:parseInt(s)}):null,t=(null==e?void 0:e.isValid)&&e.toISODate()||"",r=!t,p=i("login.birthDatePlaceholder")||"DD/MM/YYYY";return(0,ed.jsxs)("div",{className:"memori--date-selector memori--date-selector--mobile",children:[(0,ed.jsxs)("label",{htmlFor:"birth-date-mobile",className:"memori--date-selector__mobile-label",children:[i("birthDate")||"Birth Date",":"]}),(0,ed.jsxs)("div",{className:`memori--date-selector__mobile-input-wrap${r?" memori--date-selector__mobile-input-wrap--empty":""}`,children:[(0,ed.jsx)("input",{id:"birth-date-mobile",type:"date",className:"memori--date-selector__mobile-input",value:t,onChange:e=>{let t=e.target.value;if(t){let e=i4.fromISO(t);e.isValid&&(l(e.day.toString()),c(e.month.toString()),h(e.year.toString()))}else l(""),c(""),h("")},disabled:n,min:o.toISODate()||"1900-01-01",max:a.toISODate()||"","aria-label":String(i("birthDate")||i("date"))}),r&&(0,ed.jsx)("span",{className:"memori--date-selector__mobile-placeholder","aria-hidden":!0,children:p}),(0,ed.jsx)($5,{className:"memori--date-selector__mobile-icon","aria-hidden":!0,size:20,strokeWidth:1.75})]})]})}return(0,ed.jsxs)("div",{className:"memori--date-selector memori--date-selector--desktop",children:[(0,ed.jsxs)("div",{className:"memori--date-selector__input-group",children:[(0,ed.jsx)("label",{htmlFor:"birth-day",className:"memori--date-selector__label",children:i("day")||"Day"}),(0,ed.jsx)("input",{id:"birth-day",ref:f,type:"number",inputMode:"numeric",className:"memori--date-selector__input",value:s,onChange:e=>{var t;let n=e.target.value;if(""===n||/^\d+$/.test(n)){if(n.length>2||parseInt(n)>31)return;l(n),n.length>=2&&(null==(t=g.current)||t.focus())}},placeholder:i("dayPlaceholder")||"DD",min:1,max:31,disabled:n})]}),(0,ed.jsxs)("div",{className:"memori--date-selector__input-group",children:[(0,ed.jsx)("label",{htmlFor:"birth-month",className:"memori--date-selector__label",children:i("month")||"Month"}),(0,ed.jsx)("input",{id:"birth-month",ref:g,type:"number",inputMode:"numeric",className:"memori--date-selector__input",value:u,onChange:e=>{var t;let n=e.target.value;if(""===n||/^\d+$/.test(n)){if(n.length>2||parseInt(n)>12)return;c(n),n.length>=2&&(null==(t=v.current)||t.focus())}},placeholder:i("monthPlaceholder")||"MM",min:1,max:12,disabled:n})]}),(0,ed.jsxs)("div",{className:"memori--date-selector__input-group memori--date-selector__input-group--year",children:[(0,ed.jsx)("label",{htmlFor:"birth-year",className:"memori--date-selector__label",children:i("year")||"Year"}),(0,ed.jsx)("input",{id:"birth-year",ref:v,type:"number",inputMode:"numeric",className:"memori--date-selector__input",value:d,onChange:e=>{let t=e.target.value;if(""===t||/^\d+$/.test(t)){if(t.length>4)return;h(t)}},placeholder:i("yearPlaceholder")||"YYYY",min:o.year,max:a.year,disabled:n})]})]})});$6.displayName="DateSelector";var ep=eu("85Hg2"),$8=({visible:e=!1,onClose:t,minAge:n})=>{let{t:r}=tE(),{add:i}=vX(),[a,o]=(0,ep.useState)(),[s,l]=(0,ep.useState)(),[u,c]=(0,ep.useState)(!1),d=(0,ep.useCallback)(()=>{if(c(!0),!a){i(v7({description:r("requiredField"),severity:"error"})),l(r("requiredField")||"Required field"),c(!1);return}if(i4.now().diff(a,"years").years<n){i(v7({description:r("underageTwinSession",{age:n}),severity:"error"})),l(r("underageTwinSession",{age:n})||`You must be at least ${n} years old to interact with this Agent`),c(!1);return}l(void 0),i(v7({description:r("ageVerificationSuccess"),severity:"success"})),t(a.toJSDate().toISOString()),c(!1)},[i,a,n,t,r]),h=(0,ep.useCallback)(e=>{o(e)},[]);return(0,ed.jsxs)(_b,{open:e,width:"600px",widthMd:"600px",stacking:"stacked",title:r("ageVerification"),className:"age-verification-modal",backdropClassName:"age-verification-modal-backdrop",closable:!1,children:[(0,ed.jsx)("p",{className:"age-verification-text",children:r("ageVerificationText",{minAge:n})}),(0,ed.jsxs)(xk,{name:"ageVerification",className:"age-verification-form",onSubmit:e=>{e.preventDefault(),d()},children:[(0,ed.jsx)(xO,{className:"age-verification-birth-field",helperText:r("birthDateHelper"),error:s,invalid:!!s,required:!0,children:(0,ed.jsx)($6,{minAge:n,onChange:e=>{h(e),l(void 0)}})}),(0,ed.jsx)(ye,{variant:"primary",type:"submit",size:"lg",loading:u,disabled:!a,style:{marginBottom:"0.25rem"},children:r("confirm")})]})]})},$7=({open:e,layout:t="FULLPAGE",onClose:n,controlsPosition:r,setControlsPosition:i,hideEmissions:a,setHideEmissions:o,additionalSettings:s,avatarType:l,setAvatarType:u,enablePositionControls:c,setEnablePositionControls:d,isAvatar3d:h})=>{let{t:p}=tE();return(0,ed.jsxs)(xm,{className:"memori-settings-drawer",open:e,onClose:n,title:p("widget.settings")||"Settings",children:["TOTEM"===t&&(0,ed.jsxs)(ed.Fragment,{children:[(0,ed.jsxs)("div",{className:"memori-settings-drawer--field controls",children:[(0,ed.jsxs)("label",{htmlFor:"#controlsPosition",children:[p("write_and_speak.controlsPosition")||"Controls",":"]}),(0,ed.jsxs)("div",{id:"controlsPosition",className:"memori-settings-drawer--controlsposition-radio",role:"radiogroup",children:[(0,ed.jsx)(ye,{role:"radio","aria-checked":"center"===r,variant:"center"===r?"primary":"outline",className:"memori-settings-drawer--controlsposition-radio-button",onClick:()=>{i("center"),qM("controlsPosition","center")},children:p("center")||"Center"}),(0,ed.jsx)(ye,{role:"radio","aria-checked":"bottom"===r,variant:"bottom"===r?"primary":"outline",className:"memori-settings-drawer--controlsposition-radio-button",onClick:()=>{i("bottom"),qM("controlsPosition","bottom")},children:p("bottom")||"Bottom"})]})]}),h&&(0,ed.jsxs)(ed.Fragment,{children:[(0,ed.jsxs)("div",{className:"memori-settings-drawer--field controls",children:[(0,ed.jsxs)("label",{htmlFor:"avatarType",className:"memori-settings-drawer-label",children:[p("write_and_speak.avatarType")||"Avatar type",":"]}),(0,ed.jsxs)("div",{id:"avatarType",className:"memori-settings-drawer--avatarType-radio",role:"radiogroup",children:[(0,ed.jsx)(ye,{role:"radio","aria-checked":"blob"===l,variant:"blob"===l?"primary":"outline",className:"memori-settings-drawer--avatarType-radio-button",onClick:()=>{null==u||u("blob"),qM("avatarType","blob")},children:p("write_and_speak.blob")||"Blob"}),(0,ed.jsx)(ye,{role:"radio","aria-checked":"avatar3d"===l,variant:"avatar3d"===l?"primary":"outline",className:"memori-settings-drawer--avatarType-radio-button",onClick:()=>{null==u||u("avatar3d"),qM("avatarType","avatar3d")},children:p("write_and_speak.avatar3d")||"Avatar 3D"})]})]}),(0,ed.jsx)("div",{className:"memori-settings-drawer--field",children:(0,ed.jsx)(bW,{label:p("write_and_speak.enablePositionControls")||"Enable position controls",name:"enablePositionControls",checked:c,onChange:e=>{d(e)}})})]}),(0,ed.jsx)("div",{className:"memori-settings-drawer--field",children:(0,ed.jsx)(bW,{label:p("write_and_speak.hideEmissionsLabel")||"Hide emissions",name:"hideControls",checked:a,onChange:e=>{o(e),qM("hideEmissions",e)}})})]}),s&&(0,ed.jsx)("div",{className:"memori-settings-drawer--field controls",children:s})]})},ep=eu("85Hg2");let $9=wf("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]),Je=wf("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]),Jt=e=>{if(!e)return null;let t=e instanceof Date?e:new Date(e);return Number.isNaN(t.getTime())?null:t},Jn=(e,t)=>{let n=t.trim().toLowerCase();return n?e.filter(e=>e.text.toLowerCase().includes(n)):e};var Jr=({apiClient:e,sessionID:t,memori:n,disableFetch:r=!1,visible:i=!0,initialKnownFacts:a=[],closeDrawer:o})=>{let{t:s,i18n:l}=tE(),{add:u}=vX(),{getKnownFacts:c,getKnownFactsPaginated:d,deleteKnownFact:h}=e.knownFacts,p=(0,ep.useRef)(a);p.current=a;let[m,f]=(0,ep.useState)(a.slice(0,8)),[g,v]=(0,ep.useState)(a.length),[y,_]=(0,ep.useState)(Math.min(8,a.length)),[x,w]=(0,ep.useState)(!1),[S,E]=(0,ep.useState)(!1),[A,T]=(0,ep.useState)(""),I=k0(A,300),[C,M]=(0,ep.useState)(!1),[N,R]=(0,ep.useState)([]),[O,P]=(0,ep.useState)(!1),[k,D]=(0,ep.useState)(!1),[B,F]=(0,ep.useState)(),[U,j]=(0,ep.useState)(!1),z=(0,ep.useCallback)((e,t)=>{let n=Jn(p.current,I),r=n.slice(0,e+8);f(r),v(n.length),_(r.length),t||R(e=>e.filter(e=>r.some(t=>t.knownFactID===e)))},[I]),H=(0,ep.useCallback)(async({from:e=0,append:n=!1}={})=>{if(r)return void z(e,n);if(t){n?E(!0):w(!0);try{if(I.trim()){let{knownFacts:n,count:r,...i}=await c(t);0!==i.resultCode&&u(v7({description:s(L_(i.resultCode)),severity:"error"}));let a=Jn(Array.isArray(n)?n:[],I),o=a.slice(0,e+8);f(o),v(a.length||r||0),_(o.length)}else{let{knownFacts:r,count:i,...a}=await d(t,e,8);0!==a.resultCode&&u(v7({description:s(L_(a.resultCode)),severity:"error"}));let o=Array.isArray(r)?r:[];f(e=>n?[...e,...o]:o),v(null!=i?i:0),_(e+o.length)}}catch(e){console.error("KNOWN_FACTS/FETCH",e),n||(f([]),v(0),_(0))}finally{w(!1),E(!1)}}},[u,z,r,c,d,I,t,s]);(0,ep.useEffect)(()=>{H({from:0,append:!1})},[t,I,r]),(0,ep.useEffect)(()=>{M(!1),R([])},[I]);let G=(0,ep.useMemo)(()=>s("knownFacts.selected",{count:N.length,defaultValue:s("knownFacts.selectedRows",{count:N.length})}),[N.length,s]),V=g>0||m.length>0,W=y<g,q=!x&&!I.trim()&&0===m.length,$=!x&&!!I.trim()&&0===m.length,J=async e=>{if(0===e.length)return;if(r){let t=p.current.filter(t=>!e.includes(t.knownFactID));return p.current=t,z(0,!1),!0}let n=await Promise.all(e.map(e=>h(t,e)));if(n.every(e=>0===e.resultCode))return u(v7({description:s("knownFacts.deleteSuccess"),severity:"success"})),await H({from:0,append:!1}),!0;let i=n.find(e=>0!==e.resultCode);return(null==i?void 0:i.resultCode)!==void 0&&u(v7({description:s(L_(i.resultCode)),severity:"error"})),!1},K=V&&!q?(0,ed.jsx)(Hc,{start:(0,ed.jsx)("span",{className:"memori-known-facts-count",children:s("knownFacts.shownOfTotal",{shown:m.length,total:g})}),end:W?(0,ed.jsx)(ye,{variant:"outline",loading:S,disabled:S,icon:(0,ed.jsx)(Ls,{"aria-hidden":!0}),iconPosition:"right",onClick:()=>void H({from:y,append:!0}),children:s("knownFacts.loadMore")}):void 0}):void 0;return(0,ed.jsxs)(Hu,{open:i,size:"md",className:"memori-known-facts-drawer",title:s("knownFacts.title"),description:s("knownFacts.description",{memoriName:n.name}),closeLabel:s("close")||"Close",footer:K,onClose:o,children:[!q&&(0,ed.jsxs)("div",{className:"memori-known-facts-toolbar",children:[(0,ed.jsxs)("div",{className:"memori-known-facts-search",children:[(0,ed.jsx)($9,{"aria-hidden":!0,className:"memori-known-facts-search__icon"}),(0,ed.jsx)("label",{className:"memori-sr-only",htmlFor:"memori-known-facts-search",children:s("knownFacts.searchPlaceholder")}),(0,ed.jsx)(xI,{id:"memori-known-facts-search",fullWidth:!0,value:A,placeholder:s("knownFacts.searchPlaceholder")||"",onValueChange:T})]}),(0,ed.jsx)(ye,{variant:"outline",active:C,icon:(0,ed.jsx)(Lo,{"aria-hidden":!0}),onClick:()=>{M(e=>!e),R([])},children:s("knownFacts.select")})]}),C&&N.length>0&&(0,ed.jsxs)("div",{className:"memori-known-facts-selection-bar",role:"region","aria-label":G,children:[(0,ed.jsx)("span",{className:"memori-known-facts-selection-bar__count",children:G}),(0,ed.jsxs)("div",{className:"memori-known-facts-selection-bar__actions",children:[(0,ed.jsx)(ye,{variant:"danger",className:"memori-known-facts-selection-bar__delete",icon:(0,ed.jsx)($e,{"aria-hidden":!0}),onClick:()=>P(!0),children:s("delete")}),(0,ed.jsx)(ye,{variant:"ghost",onClick:()=>{R([]),M(!1)},children:s("cancel")})]})]}),q&&(0,ed.jsx)(Hl,{icon:(0,ed.jsx)(Je,{}),title:s("knownFacts.emptyTitle"),description:s("knownFacts.emptyDescription")}),$&&(0,ed.jsx)(Hl,{icon:(0,ed.jsx)($9,{}),title:s("write_and_speak.noResultsFound",{searchText:I})}),!q&&!$&&(0,ed.jsx)("ul",{className:"memori-known-facts-list","aria-busy":x||void 0,children:m.map(e=>{var t,n;let r,i=N.includes(e.knownFactID),a=e.creationTimestamp?((e,t,n=new Date)=>{let r=Jt(e);if(!r)return"";let i=r.getTime()-n.getTime(),a=Math.abs(i),o=new Intl.RelativeTimeFormat(t,{numeric:"auto"});return a<6e4?o.format(Math.round(i/1e3),"second"):a<36e5?o.format(Math.round(i/6e4),"minute"):a<864e5?o.format(Math.round(i/36e5),"hour"):a<6048e5?o.format(Math.round(i/864e5),"day"):a<2592e6?o.format(Math.round(i/6048e5),"week"):a<31536e6?o.format(Math.round(i/2592e6),"month"):o.format(Math.round(i/31536e6),"year")})(e.creationTimestamp,l.language):"",o=e.creationTimestamp?(t=e.creationTimestamp,n=l.language,(r=Jt(t))?new Intl.DateTimeFormat(n,{dateStyle:"short",timeStyle:"short"}).format(r):""):"";return(0,ed.jsx)("li",{children:C?(0,ed.jsxs)("label",{className:(b(tA))("memori-known-facts-card",{"memori-known-facts-card--selected":i}),children:[(0,ed.jsx)(bW,{checked:i,onChange:()=>{var t;return t=e.knownFactID,void R(e=>e.includes(t)?e.filter(e=>e!==t):[...e,t])},"aria-label":s("selected")||void 0}),(0,ed.jsx)("span",{className:"memori-known-facts-card__text",children:e.text})]}):(0,ed.jsxs)("article",{className:"memori-known-facts-card",children:[(0,ed.jsxs)("div",{className:"memori-known-facts-card__content",children:[(0,ed.jsx)("p",{className:"memori-known-facts-card__text",children:e.text}),a&&(0,ed.jsx)(_z,{title:o,placement:"bottom",children:(0,ed.jsx)("time",{className:"memori-known-facts-card__date",dateTime:e.creationTimestamp,children:a})})]}),(0,ed.jsx)("div",{className:"memori-known-facts-card__actions",children:(0,ed.jsx)(ye,{variant:"ghost",shape:"circle",size:"sm",className:"memori-known-facts-card__delete","aria-label":s("knownFacts.deleteLabel")||void 0,title:s("delete")||"",icon:(0,ed.jsx)($e,{"aria-hidden":!0}),onClick:()=>F(e.knownFactID)})})]})},e.knownFactID)})}),(0,ed.jsx)(_b,{className:"memori-known-facts-modal",stacking:"stacked",open:O,closable:!0,title:N.length>1?s("knownFacts.deleteSelectedConfirmTitle"):s("knownFacts.deleteConfirmTitle"),description:`${G}. ${s("knownFacts.deleteSelectedConfirmMessage",{number:N.length})}`,onOpenChange:e=>{e||P(!1)},footer:(0,ed.jsxs)(ed.Fragment,{children:[(0,ed.jsx)(ye,{variant:"ghost",onClick:()=>P(!1),children:s("cancel")}),(0,ed.jsx)(ye,{variant:"danger",loading:k,disabled:k,onClick:async()=>{D(!0);try{await J(N)&&(R([]),M(!1),P(!1))}finally{D(!1)}},children:s("confirm")})]})}),(0,ed.jsx)(_b,{className:"memori-known-facts-modal",stacking:"stacked",open:void 0!==B,closable:!0,title:s("knownFacts.deleteConfirmTitle"),description:s("knownFacts.deleteConfirmMessage"),onOpenChange:e=>{e||F(void 0)},footer:(0,ed.jsxs)(ed.Fragment,{children:[(0,ed.jsx)(ye,{variant:"ghost",onClick:()=>F(void 0),children:s("cancel")}),(0,ed.jsx)(ye,{variant:"danger",loading:U,disabled:U,onClick:async()=>{if(B){j(!0);try{await J([B])&&F(void 0)}finally{j(!1)}}},children:s("confirm")})]})})]})},Ji=({open:e=!1,baseUrl:t,apiUrl:n,tenant:r,experts:i,onClose:a})=>{let{t:o}=tE();return(0,ed.jsx)(xm,{open:e,onClose:a,className:"memori--experts-drawer",title:(0,ed.jsx)("h2",{className:"memori--experts-drawer--title",children:o("widget.expertsInTheBoard")}),children:(0,ed.jsx)("ul",{className:"memori--experts-drawer--list",children:i.map(e=>(0,ed.jsxs)("li",{className:"memori--experts-drawer--item",children:[(0,ed.jsx)("figure",{className:"memori--experts-drawer--avatar",children:(0,ed.jsx)("img",{src:`${new URL(n).origin}/api/v1/memoriai/memori/avatar/${e.expertMemoriID}`,alt:e.name,onError:e=>{e.currentTarget.src=Lr({tenantID:null==r?void 0:r.name,type:"avatar",baseURL:t}),e.currentTarget.onerror=null}})}),(0,ed.jsx)("div",{className:"memori--experts-drawer--content",children:(0,ed.jsx)("h3",{className:"memori--experts-drawer--name",children:e.name})})]},e.expertID))})})},ep=eu("85Hg2"),Ja=({open:e=!1,onClose:t,onLogin:n,user:r,loginToken:i,setUser:a,tenant:o,apiClient:s,__TEST__signup:l=!1,__TEST__needMissingData:u=!1,modalClassName:c,memoriName:d,onLogout:h})=>{var p;let{t:m,i18n:f}=tE(),{add:g}=vX(),v="it"===f.language?"it":"en",{pwlUpdateUser:y,loginWithOTP:_,validateOTPCode:x,pwlGetCurrentUser:w}=s.backend,[S,E]=(0,ep.useState)(!1),[A,T]=(0,ep.useState)(null),[I,C]=(0,ep.useState)(""),[M,N]=(0,ep.useState)(""),[R,O]=(0,ep.useState)(null),[P,k]=(0,ep.useState)(!1),[D,B]=(0,ep.useState)(null),[F,U]=(0,ep.useState)(!1),[j,z]=(0,ep.useState)(0),[H,G]=(0,ep.useState)(""),[V,W]=(0,ep.useState)(!1),[q,$]=(0,ep.useState)(!1),[J,K]=(0,ep.useState)(!1),[Y,X]=(0,ep.useState)(!1),Z=(0,ep.useRef)([]),Q=(0,ep.useRef)(!1),[ee,et]=(0,ep.useState)(u?{token:"token",birthDate:!0,tnCAndPPAccepted:!0}:{});(0,ep.useEffect)(()=>{let e;return null!=D&&D>0&&(e=setInterval(()=>{B(e=>null!=e&&e>0?e-1:0)},1e3)),()=>{e&&clearInterval(e)}},[D]),(0,ep.useEffect)(()=>{0===D&&B(null)},[D]),(0,ep.useEffect)(()=>{let e=window.matchMedia("(max-width: 768px)"),t=()=>$(e.matches);return t(),e.addEventListener("change",t),()=>e.removeEventListener("change",t)},[]);let en=async(e,t=!1)=>{let n=e.trim();if(!n)return void O(m("login.emailRequired"));if(!kQ.test(n))return void O(m("login.emailInvalid"));t?U(!0):E(!0),O(null);try{let e=await _({tenant:o.name,eMail:n});0===e.resultCode?(N(n),k(!0),B(60),C(""),z(0)):O(e.resultMessage||m("login.otpSendError"))}catch(e){console.error("[OTP SEND]",e),O(m("login.otpSendError"))}finally{E(!1),U(!1)}},er=async e=>{var t,r,i;if(!Q.current){if(!e||4!==e.length)return void O(m("login.otpInvalidFormat"));if(!M||0===M.trim().length)return void O(m("login.emailRequired"));Q.current=!0,E(!0),O(null);try{let s=await x(e,o.name,void 0,M.trim());if(0===s.resultCode)try{let{user:e}=await w(s.newSessionToken);e.age&&e.tnCAndPPAccepted?(k(!1),C(""),N(""),n(e,s.newSessionToken)):(a(e),G(null!=(t=null==e?void 0:e.birthDate)?t:""),K(null!=(r=null==e?void 0:e.tnCAndPPAccepted)&&r),X(null!=(i=null==e?void 0:e.pAndCUAccepted)&&i),et({token:s.newSessionToken,birthDate:!e.age,tnCAndPPAccepted:!e.tnCAndPPAccepted}),k(!1),C(""))}catch(e){console.error("[GET USER]",e),O(m("login.userFetchError"))}else -107===s.resultCode?O(m("login.otpNotFound")):-108===s.resultCode?(O(m("login.otpExpired")),B(null)):-109===s.resultCode?(O(m("login.otpInvalid")),C(""),z(0),window.setTimeout(()=>{var e;null==(e=Z.current[0])||e.focus()},50)):-110===s.resultCode?(O(m("login.otpAttemptsExceeded")),C(""),B(null),k(!1)):O(s.resultMessage||m("login.otpInvalid"))}catch(e){console.error("[OTP VALIDATION]",e),O(m("login.otpError"))}finally{E(!1),Q.current=!1}}};(0,ep.useEffect)(()=>{P&&!S&&window.setTimeout(()=>{var e;null==(e=Z.current[0])||e.focus()},50)},[P,S]);let ei=async e=>{if(e.preventDefault(),!(null==r?void 0:r.userID)||!(null==ee?void 0:ee.token))return void T(m("login.userNotFound"));if(!H||!J)return void T(m("missingData"));let t={userID:r.userID,birthDate:(null==r?void 0:r.birthDate)||!ee.birthDate?void 0:H,tnCAndPPAccepted:J||(null==r?void 0:r.tnCAndPPAccepted),tnCAndPPAcceptanceDate:J?new Date().toISOString():void 0,pAndCUAccepted:Y||(null==r?void 0:r.pAndCUAccepted),pAndCUAcceptanceDate:Y?new Date().toISOString():void 0},{user:i,...a}=await y(ee.token,r.userID,t);0!==a.resultCode?(console.error(a),g(v7({description:m(L_(a.resultCode)),severity:"error"})),T(a.resultMessage)):n(i||t,ee.token)},ea=(null==d?void 0:d.trim())||m("login.defaultAgentName")||"AI",eo=m("login.login")||"Login",es=4===I.length,el=!!(null==(p=null==ee?void 0:ee.token)?void 0:p.length),eu=(0,ed.jsxs)("div",{className:"memori--login-modal--step",children:[(0,ed.jsx)("p",{className:"memori--login-modal--benefit",children:m("login.loginBenefitLine1",{memoriName:ea})}),(0,ed.jsxs)(xC,{className:"memori--login-modal--field",children:[(0,ed.jsx)(xM,{htmlFor:"otp-email",children:m("login.email")}),(0,ed.jsx)(xI,{id:"otp-email",name:"email",type:"email",size:"lg",className:(b(tA))("memori--login-modal--email-input",{error:!!R}),value:M,onChange:e=>{N(e.target.value),O(null)},placeholder:m("login.emailPlaceholder")||"Enter your email…",autoComplete:"email",spellCheck:!1,required:!0,disabled:S,"aria-invalid":!!R,"aria-describedby":R?"otp-email-error":"email-help"}),R?(0,ed.jsx)(xR,{id:"otp-email-error",children:R}):(0,ed.jsx)("p",{id:"email-help",className:"sr-only",children:m("login.otpEmailDescription")})]}),(0,ed.jsx)(ye,{variant:"primary",className:"memori--login-modal--primary",onClick:()=>en(M),disabled:S,loading:S,size:"lg",children:m("login.sendOtp")}),(0,ed.jsx)("p",{className:"memori--login-modal--footnote",children:m("login.passwordlessHint")})]}),ec=(0,ed.jsxs)("div",{className:"memori--login-modal--step",children:[(0,ed.jsx)("p",{className:"memori--login-modal--sent-copy",children:m("login.otpSentToPrefix")}),(0,ed.jsxs)("p",{className:"memori--login-modal--email-row",children:[(0,ed.jsx)("strong",{className:"memori--login-modal--email-value",children:M})," ",(0,ed.jsx)("button",{type:"button",className:"memori--login-modal--edit-link",onClick:()=>{k(!1),C(""),O(null),B(null)},disabled:S,children:m("login.editEmail")})]}),(0,ed.jsxs)("fieldset",{className:"memori--login-modal--otp-fieldset","aria-describedby":"otp-help",children:[(0,ed.jsx)("legend",{className:"memori--login-modal--otp-label",children:m("login.otpCodeShort")}),(0,ed.jsx)("div",{className:"memori--login-modal--otp-digits",children:[0,1,2,3].map(e=>(0,ed.jsx)(xI,{id:0===e?"otp-code":`otp-code-${e}`,name:`otp-code-${e}`,"aria-label":`${m("login.otpCode")} ${e+1} / 4`,type:"text",inputMode:"numeric",pattern:"[0-9]*",enterKeyHint:3===e?"done":"next",autoComplete:0===e?"one-time-code":"off",spellCheck:!1,className:(b(tA))("memori--login-modal--otp-digit",{active:j===e,error:!!R}),value:I[e]||"",onChange:t=>((e,t)=>{var n,r;let i=t.replace(/\D/g,""),a=I.padEnd(4," ").split("");if(!i.length){a[e]=" ",C(a.join("").replace(/\s/g,"")),O(null);return}if(i.length>1){let t=[...a];i.slice(0,4).split("").forEach((n,r)=>{e+r<4&&(t[e+r]=n)});let r=t.join("").replace(/\s/g,"").slice(0,4);C(r),O(null);let o=Math.min(e+i.length,3);null==(n=Z.current[o])||n.focus(),z(o),4===r.length&&M.trim().length>0&&er(r);return}a[e]=i[0];let o=a.join("").replace(/\s/g,"").slice(0,4);C(o),O(null),4===o.length&&M.trim().length>0&&er(o),e<3&&(null==(r=Z.current[e+1])||r.focus(),z(e+1))})(e,t.target.value),onFocus:()=>z(e),onKeyDown:t=>{var n,r,i;"Backspace"===t.key&&!I[e]&&e>0&&(null==(n=Z.current[e-1])||n.focus(),z(e-1)),"ArrowLeft"===t.key&&e>0&&(t.preventDefault(),null==(r=Z.current[e-1])||r.focus(),z(e-1)),"ArrowRight"===t.key&&e<3&&(t.preventDefault(),null==(i=Z.current[e+1])||i.focus(),z(e+1))},onPaste:t=>((e,t)=>{var n;let r=t.clipboardData.getData("text").replace(/\D/g,"").slice(0,4);if(!r.length)return;t.preventDefault();let i=I.padEnd(4," ").split("");r.split("").forEach((t,n)=>{e+n<4&&(i[e+n]=t)});let a=i.join("").replace(/\s/g,"").slice(0,4);C(a),O(null);let o=Math.min(e+r.length,3);null==(n=Z.current[o])||n.focus(),z(o),4===a.length&&M.trim().length>0&&er(a)})(e,t),maxLength:1,required:!0,disabled:S,ref:t=>{Z.current[e]=t}},e))}),(0,ed.jsx)("p",{id:"otp-help",className:"sr-only",children:m("login.otpCodeDescription",{email:M})})]}),R&&(0,ed.jsx)("p",{role:"alert",className:"memori--login-modal--inline-error",children:R}),(0,ed.jsx)(ye,{variant:"primary",className:"memori--login-modal--primary",onClick:()=>er(I),disabled:S||!es,loading:S,size:"lg",children:eo}),(0,ed.jsx)("p",{className:"memori--login-modal--resend",children:null!=D&&D>0?m("login.resendOtpPrompt",{seconds:D}):(0,ed.jsxs)(ed.Fragment,{children:[m("login.resendOtpQuestion")," ",(0,ed.jsx)("button",{type:"button",className:"memori--login-modal--edit-link",onClick:()=>{M&&kQ.test(M)&&en(M,!0)},disabled:S||F||!M,children:F?m("login.resending"):m("login.resendOtp")})]})})]}),eh=(0,ed.jsxs)("div",{className:"memori--login-modal--missing-data",children:[(0,ed.jsx)("p",{className:"memori--login-modal--missing-helper",children:m("login.missingDataHelper")}),(0,ed.jsxs)(xk,{name:"updateMissingData",className:"memori--login-modal--form memori--login-modal--form--missing",onSubmit:ei,children:[(0,ed.jsxs)("div",{className:"memori--login-modal--form-body",children:[ee.birthDate&&(0,ed.jsxs)(xC,{className:"memori--login-modal--field",children:[(0,ed.jsx)(xM,{htmlFor:"birthDate",children:m("login.birthDate")}),(0,ed.jsx)(xI,{id:"birthDate",name:"birthDate",type:!q||H||V?"date":"text",required:!0,onChange:e=>G(e.target.value),value:H,placeholder:q?m("login.birthDatePlaceholder")||"DD/MM/YYYY":void 0,onFocus:()=>W(!0),onBlur:()=>W(!1),autoComplete:"bday"}),(0,ed.jsx)(xN,{children:m("login.birthDateHelper")})]}),(null==ee?void 0:ee.tnCAndPPAccepted)&&(0,ed.jsxs)("div",{className:"memori--login-modal--consent-block",children:[(0,ed.jsx)(bW,{name:"tnCAndPPAccepted",className:"memori-login-modal--consent",checked:J,onChange:e=>K(e),label:(0,ed.jsxs)(ed.Fragment,{children:[m("login.privacyLabel")," ",(0,ed.jsx)("a",{href:`https://memori.ai/${v}/privacy_and_cookie`,target:"_blank",rel:"noopener noreferrer",children:m("login.privacyAndCookiePolicy")})," ",m("login.and")," ",(0,ed.jsx)("a",{href:`https://memori.ai/${v}/tos`,target:"_blank",rel:"noopener noreferrer",children:m("login.termsOfService")})]})}),(0,ed.jsx)(bW,{name:"pAndCUAccepted",className:"memori-login-modal--consent",checked:Y,onChange:e=>X(e),label:(0,ed.jsxs)(ed.Fragment,{children:[m("login.pAndCUAccepted")," ",(0,ed.jsx)("small",{children:(0,ed.jsxs)("em",{children:["(",m("login.optional"),")"]})})]})}),(0,ed.jsx)("p",{className:"memori--login-modal--consent-note",children:m("login.goToAccountToChangeYourPreferences")}),(0,ed.jsx)("p",{className:"memori--login-modal--consent-note memori--login-modal--deep-thought",children:m("login.deepThoughtExplaination")})]}),A&&(0,ed.jsx)("p",{className:"memori--login-modal--inline-error",children:A})]}),(0,ed.jsx)("div",{className:"memori--login-modal--form-footer",children:(0,ed.jsx)(ye,{type:"submit",variant:"primary",className:"memori--login-modal--primary",loading:S,children:m("login.save")})})]})]});return(0,ed.jsx)(_b,{open:e,onClose:t,onOpenChange:e=>{e||t()},className:(b(tA))("memori--login-modal",{"memori--login-modal--missing":el},c),contentClassName:"memori--login-modal--content",titleClassName:"memori--login-modal--title",title:el?m("login.missingData"):eo,size:"sm",width:el?"480px":"420px",widthMd:el?"480px":"420px",centered:!0,closable:!0,children:el?eh:P?ec:eu})},ep=eu("85Hg2");let Jo=wf("Expand",[["path",{d:"m21 21-6-6m6 6v-4.8m0 4.8h-4.8",key:"1c15vz"}],["path",{d:"M3 16.2V21m0 0h4.8M3 21l6-6",key:"1fsnz2"}],["path",{d:"M21 7.8V3m0 0h-4.8M21 3l-6 6",key:"hawz9i"}],["path",{d:"M3 7.8V3m0 0h4.8M3 3l6 6",key:"u9ee12"}]]);var ep=eu("85Hg2");let Js=wf("LogIn",[["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}],["polyline",{points:"10 17 15 12 10 7",key:"1ail0h"}],["line",{x1:"15",x2:"3",y1:"12",y2:"12",key:"v6grx8"}]]),Jl=wf("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),Ju=e=>{if("number"==typeof e&&Number.isFinite(e))return e;if(e&&"object"==typeof e){if("number"==typeof e.parsedValue&&Number.isFinite(e.parsedValue))return e.parsedValue;if("string"==typeof e.source){let t=Number(e.source);if(Number.isFinite(t))return t}}},Jc=(e,t)=>new Intl.NumberFormat(t,{minimumFractionDigits:0,maximumFractionDigits:Math.abs(e)>=1?3:4}).format(e),Jd=(e,t,n)=>{let r=Math.abs(e);if("energy"===t){if(r>=1)return`${Jc(e,n)} kWh`;let t=1e3*e;return Math.abs(t)>=1?`${Jc(t,n)} Wh`:`${Jc(1e3*t,n)} mWh`}if("co2"===t){if(r>=1)return`${Jc(e,n)} kg`;let t=1e3*e;return Math.abs(t)>=1?`${Jc(t,n)} g`:`${Jc(1e3*t,n)} mg`}if(r>=1)return`${Jc(e,n)} L`;let i=1e3*e;return Math.abs(i)>=1?`${Jc(i,n)} mL`:`${Jc(1e3*i,n)} \u{3BC}L`};var Jh=({open:e,onClose:t,presentation:n="sheet",title:r,loginToken:i,userName:a,user:o,apiClient:s,userEmail:l,birthDate:u,avatarURL:c,actions:d,logoutLabel:h="Log out",onLogout:p,onKnownFactsOpen:m,onLocationEnable:f,onLocationDisable:g,knownFactsPageTitle:v="Known facts",sharePageTitle:y="Share",locationPageTitle:b="Location tracking",backLabel:_="Back",locationStatusLabel:x="Status",locationPlace:w,locationUnknownLabel:S="Unknown position",locationEnableLabel:E="Use current position",locationDisableLabel:A="Disable location sharing",knownFactsDescription:T,knownFactsCtaLabel:I="Open full known facts",knownFactsCountLabel:C,shareContent:M,knownFactsDisabled:N=!1,knownFactsHint:R,showSessionInfo:O=!1,showKnownFacts:P=!1,history:k=[],aiUsageTitle:D,showMessageConsumption:B=!1,isLoggedIn:F=!1,showLogin:U=!1,loginLabel:j="Log in",onLogin:z,venue:H,setVenue:G,initialView:V="session",autoStartGeolocation:W=!1})=>{let q=U&&F,$=(0,ep.useRef)(null),J="mobile-session-panel-title",K=(0,ep.useRef)(0),[Y,X]=(0,ep.useState)(0),[Z,Q]=(0,ep.useState)("session"),{uploadAsset:ee,pwlUpdateUser:et}=(null==s?void 0:s.backend)||{},{add:en}=vX(),{t:er,i18n:ei}=tE(),ea=ei.language||navigator.language||"en",eo=(0,ep.useMemo)(()=>{let e={energy:0,gwp:0,wcf:0};return k.forEach(t=>{var n,r,i,a;let o=null==(n=t.llmUsage)?void 0:n.energyImpact;o&&(e.energy+=null!=(r=Ju(o.energy))?r:0,e.gwp+=null!=(i=Ju(o.gwp))?i:0,e.wcf+=null!=(a=Ju(o.wcf))?a:0)}),e},[k]),es=(0,ep.useMemo)(()=>k.some(e=>{var t;return!!(null==(t=e.llmUsage)?void 0:t.energyImpact)}),[k]),el=(0,ep.useMemo)(()=>k.some(e=>!!e.llmUsage),[k]),eu=es?`${Jd(eo.energy,"energy",ea)} \u{2022} ${Jd(eo.gwp,"co2",ea)}`:er("widget.noData",{defaultValue:"Nessun dato disponibile"}),ec=R||er("widget.knownFactsHint")||"What I remember about you",eh=D||er("widget.aiConsumption")||"AI usage";(0,ep.useEffect)(()=>{e&&Q(V)},[e,V]);let em=async e=>{if(!ee||!et)return void en(v7({description:er("login.avatarUploadError"),severity:"error"}));if(e&&i){let t=new FileReader;t.onload=async t=>{var n,r,a,s;try{let{asset:l,...u}=await ee(null!=(n=e.name)?n:"avatar",null==(r=t.target)?void 0:r.result,null!=i?i:"");if(0!==u.resultCode)console.error("[updateAvatar] Upload failed:",u),en(v7({description:er(L_(u.resultCode)),severity:"error"}));else if(l){let e={userID:null!=(a=null==o?void 0:o.userID)?a:"",avatarURL:l.assetURL},{...t}=await et(null!=i?i:"",null!=(s=null==o?void 0:o.userID)?s:"",e);0!==t.resultCode?en(v7({description:er(L_(t.resultCode)),severity:"error"})):en(v7({description:er("login.avatarUploadSuccess"),severity:"success"}))}}catch(e){console.error("[updateAvatar] Error:",e),(null==e?void 0:e.message)&&en(v7({description:e.message,severity:"error"}))}},t.readAsDataURL(e)}else console.error("[updateAvatar] Missing avatar or login token",{avatar:e,loginToken:i}),en(v7({description:er("login.avatarUploadError"),severity:"error"}))},ef="popover"===n,eg=!!(w&&w.trim().length>0&&w!==S),ev=d.filter(e=>{let t=e.key.toLowerCase(),n=e.title.toLowerCase(),r="knownFacts"===e.view,i=t.includes("audio")||n.includes("audio")||n.includes("sound");return!r&&!i}),ey=(0,ed.jsxs)("section",{ref:$,tabIndex:-1,className:`memori-mobile-session-panel ${ef?"memori-mobile-session-panel--popover":""}`,role:ef?"dialog":void 0,"aria-modal":!!ef||void 0,"aria-labelledby":J,onClick:e=>e.stopPropagation(),onTouchStart:ef?void 0:e=>{K.current=e.touches[0].clientY,X(0)},onTouchMove:ef?void 0:e=>{var t;let n=null==(t=$.current)?void 0:t.closest(".memori-drawer__body");if(n instanceof HTMLElement&&n.scrollTop>0)return;let r=e.touches[0].clientY-K.current;r>0&&X(r)},onTouchEnd:ef?void 0:()=>{Y>90&&t(),X(0)},style:{transform:Y?`translateY(${Y}px)`:void 0},children:[!ef&&(0,ed.jsx)("div",{className:"memori-mobile-session-panel--handle"}),"session"===Z?(0,ed.jsxs)(ed.Fragment,{children:[q&&(0,ed.jsxs)("div",{className:"memori-mobile-session-panel--user",children:[(0,ed.jsx)("div",{className:"memori-dropdown--avatar-wrap",children:c?(0,ed.jsxs)(ed.Fragment,{children:[(0,ed.jsx)("img",{src:c,alt:a||l,className:"memori-dropdown--avatar"}),(0,ed.jsx)("span",{className:"memori-dropdown--avatar-overlay","aria-hidden":!0,children:(0,ed.jsx)(q8,{size:20,strokeWidth:2})}),(0,ed.jsx)("label",{htmlFor:"mobile-session-avatar-upload",className:"sr-only",children:er("login.changeAvatar",{defaultValue:"Change profile picture"})}),(0,ed.jsx)("input",{type:"file",name:"avatar",id:"mobile-session-avatar-upload",className:"memori-dropdown--avatar-input",onChange:e=>{var t,n;return em(null!=(n=null==(t=e.target.files)?void 0:t[0])?n:null)},accept:Ln.join(", ")})]}):(0,ed.jsx)(ed.Fragment,{children:(0,ed.jsxs)("div",{className:"memori-dropdown--avatar-placeholder",children:[(0,ed.jsx)("span",{className:"memori-dropdown--avatar-initial",children:(a||l||"U").charAt(0).toUpperCase()}),(0,ed.jsx)("span",{className:"memori-dropdown--avatar-overlay","aria-hidden":!0,children:(0,ed.jsx)(q8,{size:20,strokeWidth:2})}),(0,ed.jsx)("label",{htmlFor:"mobile-session-avatar-upload-placeholder",className:"sr-only",children:er("login.changeAvatar",{defaultValue:"Change profile picture"})}),(0,ed.jsx)("input",{type:"file",name:"avatar",id:"mobile-session-avatar-upload-placeholder",className:"memori-dropdown--avatar-input",onChange:e=>{var t,n;return em(null!=(n=null==(t=e.target.files)?void 0:t[0])?n:null)},accept:Ln.join(", ")})]})})}),(0,ed.jsxs)("div",{className:"memori-dropdown--user-details",children:[(0,ed.jsx)("h3",{className:"memori-dropdown--user-name",children:a}),(0,ed.jsx)("p",{className:"memori-dropdown--user-email",children:l}),(0,ed.jsx)("div",{className:"memori-dropdown--user-badge",children:u?new Date(u).toLocaleDateString():"Not set"})]})]}),(0,ed.jsx)("h2",{id:J,className:"memori-mobile-session-panel--section-title",children:r}),O&&(P||B)&&(0,ed.jsxs)("ul",{className:"memori-mobile-session-panel--actions memori-mobile-session-panel--session-info",children:[F&&P&&(0,ed.jsx)("li",{children:(0,ed.jsxs)(ye,{variant:"toolbar",size:"sm",className:"memori-mobile-session-panel--action",disabled:N,onClick:()=>{N||null==m||m()},children:[(0,ed.jsx)("span",{className:"memori-mobile-session-panel--action-icon",children:(0,ed.jsx)($i,{size:18})}),(0,ed.jsxs)("span",{className:"memori-mobile-session-panel--action-copy",children:[(0,ed.jsx)("span",{className:"memori-mobile-session-panel--action-title",children:v}),(0,ed.jsx)("span",{className:"memori-mobile-session-panel--action-subtitle",children:ec})]})]})}),B&&(0,ed.jsx)("li",{children:(0,ed.jsxs)(ye,{variant:"toolbar",size:"sm",className:"memori-mobile-session-panel--action",disabled:!el,onClick:()=>{el&&Q("aiUsage")},children:[(0,ed.jsx)("span",{className:"memori-mobile-session-panel--action-icon",children:(0,ed.jsx)($K,{})}),(0,ed.jsxs)("span",{className:"memori-mobile-session-panel--action-copy",children:[(0,ed.jsx)("span",{className:"memori-mobile-session-panel--action-title",children:eh}),(0,ed.jsx)("span",{className:"memori-mobile-session-panel--action-subtitle",children:eu})]}),(0,ed.jsx)("span",{className:"memori-mobile-session-panel--action-trailing",children:(0,ed.jsx)(HS,{size:16})})]})})]}),(0,ed.jsx)("ul",{className:"memori-mobile-session-panel--actions",children:ev.map(e=>{let t,n,r;return(0,ed.jsx)("li",{children:(t="knownFacts"===e.view,n="share"===e.view,r=e.disabled||t&&!F,(0,ed.jsxs)(ye,{variant:"toolbar",size:"sm",className:"memori-mobile-session-panel--action",disabled:r,onClick:()=>{var t;if(!r){if("knownFacts"===e.view&&m)return void m();if(e.view)return void Q(e.view);null==(t=e.onClick)||t.call(e)}},children:[(0,ed.jsx)("span",{className:"memori-mobile-session-panel--action-icon",children:e.icon}),(0,ed.jsxs)("span",{className:"memori-mobile-session-panel--action-copy",children:[(0,ed.jsx)("span",{className:"memori-mobile-session-panel--action-title",children:e.title}),e.subtitle&&(0,ed.jsx)("span",{className:"memori-mobile-session-panel--action-subtitle",children:e.subtitle})]}),(n||"location"===e.view)&&(0,ed.jsx)("span",{className:"memori-mobile-session-panel--action-trailing",children:(0,ed.jsx)(HS,{size:16})})]}))},e.key)})}),q&&(0,ed.jsxs)(ye,{variant:"toolbar",size:"sm",shape:"default",className:"memori-mobile-session-panel--logout",onClick:p,children:[(0,ed.jsx)("span",{className:"memori-mobile-session-panel--action-icon",children:(0,ed.jsx)(q7,{size:18})}),(0,ed.jsx)("span",{className:"memori-mobile-session-panel--logout-label",children:h})]}),U&&!F&&(0,ed.jsx)("div",{className:"memori-mobile-session-panel--login-cta-wrap",children:(0,ed.jsxs)(ye,{variant:"toolbar",size:"sm",className:"memori-mobile-session-panel--login-cta",onClick:z,children:[(0,ed.jsx)("span",{className:"memori-mobile-session-panel--action-icon",children:(0,ed.jsx)(Js,{size:18})}),j]})})]}):(0,ed.jsxs)("div",{className:"memori-mobile-session-panel--page",children:[(0,ed.jsxs)("div",{className:"memori-mobile-session-panel--page-header",children:[(0,ed.jsxs)(ye,{variant:"toolbar",size:"sm",className:"memori-mobile-session-panel--back",onClick:()=>Q("session"),children:[(0,ed.jsx)(Jl,{size:16}),_]}),(0,ed.jsx)("h3",{className:"memori-mobile-session-panel--page-title",children:"location"===Z?b:"share"===Z?y:"aiUsage"===Z?eh:v})]}),"location"===Z?(0,ed.jsx)("div",{className:"memori-mobile-session-panel--page-content memori-mobile-session-panel--location-content",children:G?(0,ed.jsx)($$,{venue:H,setVenue:G,autoStartGeolocation:W}):(0,ed.jsxs)(ed.Fragment,{children:[(0,ed.jsx)("p",{className:"memori-mobile-session-panel--meta-label",children:x}),(0,ed.jsx)("p",{className:"memori-mobile-session-panel--meta-value",children:w||S}),(0,ed.jsxs)("div",{className:"memori-mobile-session-panel--page-actions",children:[(0,ed.jsx)(ye,{variant:"toolbar",size:"sm",className:`memori-mobile-session-panel--page-btn ${eg?"memori-mobile-session-panel--page-btn-active":""}`,onClick:f,children:(0,ed.jsx)("span",{children:E})}),(0,ed.jsx)(ye,{variant:"toolbar",size:"sm",className:"memori-mobile-session-panel--page-btn memori-mobile-session-panel--page-btn-secondary",onClick:g,children:A})]})]})}):"share"===Z?(0,ed.jsx)("div",{className:"memori-mobile-session-panel--page-content memori-mobile-session-panel--share-content",children:M}):"aiUsage"===Z?(0,ed.jsx)("div",{className:"memori-mobile-session-panel--page-content memori-mobile-session-panel--ai-usage-content",children:(0,ed.jsx)($0,{history:k,showTitle:!1,className:"memori-mobile-session-panel--ai-usage"})}):(0,ed.jsxs)("div",{className:"memori-mobile-session-panel--page-content",children:[T&&(0,ed.jsx)("p",{className:"memori-mobile-session-panel--known-facts-description",children:T}),C&&(0,ed.jsx)("p",{className:"memori-mobile-session-panel--known-facts-count",children:C}),(0,ed.jsx)(ye,{variant:"toolbar",size:"sm",className:"memori-mobile-session-panel--page-btn",disabled:N,onClick:m,children:I})]})]})]});return ef?e?(0,ed.jsx)("div",{className:"memori-mobile-session-panel--overlay memori-mobile-session-panel--overlay-popover",role:"presentation",children:ey}):null:(0,ed.jsx)(xm,{open:e,onClose:t,anchor:"bottom",size:"lg",className:"memori-mobile-session-panel-drawer",closable:!1,children:ey})},Jp=({Header:e,headerProps:t,Avatar:n,avatarProps:r,Chat:i,chatProps:a,StartPanel:o,startPanelProps:s,integrationStyle:l,integrationBackground:u,sessionId:c,hasUserActivatedSpeak:d,loading:h=!1,poweredBy:p})=>{var m,f,g,v,y,b,_,x;let{t:w}=tE(),{state:S}=e7();S.currentArtifact;let E=S.isDrawerOpen&&!S.isChatLogPanelPresentation,[A,T]=(0,ep.useState)(!1),[I,C]=(0,ep.useState)(!1),[M,N]=(0,ep.useState)(!1),[R,O]=(0,ep.useState)(720),[P,k]=(0,ep.useState)(!1),D=(0,ep.useRef)(null);(0,ep.useEffect)(()=>{let e=window.matchMedia("(max-width: 768px)"),t=window.matchMedia("(max-width: 1199px)"),n=()=>{T(e.matches),C(t.matches)};return n(),e.addEventListener("change",n),t.addEventListener("change",n),()=>{e.removeEventListener("change",n),t.removeEventListener("change",n)}},[]);let B=null==t?void 0:t.memori;null==t||t.tenant,null==t||t.baseUrl;let F=(null==t?void 0:t.loginToken)&&(null==(m=null==t?void 0:t.user)?void 0:m.userID)?t.user:void 0,U=[null==F?void 0:F.name,null==F?void 0:F.surname].filter(Boolean).join(" ").trim()||(null==F?void 0:F.userName)||(null==F?void 0:F.eMail)||(null==B?void 0:B.name)||"User",j=U.charAt(0).toUpperCase(),z=!!(c&&d),H=(0,ep.useMemo)(()=>(null==a?void 0:a.isPlayingAudio)?{key:"speaking",label:w("widget.agentStatusSpeaking",{defaultValue:"sta parlando"})}:(null==a?void 0:a.memoriTyping)?{key:"processing",label:w("widget.agentStatusProcessing",{defaultValue:"in elaborazione"})}:(null==a?void 0:a.listening)?{key:"listening",label:w("widget.agentStatusListening",{defaultValue:"in ascolto"})}:null,[null==a?void 0:a.isPlayingAudio,null==a?void 0:a.memoriTyping,null==a?void 0:a.listening,w]),G=(0,ep.useCallback)(()=>{if(function(){if("u"<typeof document)return!1;if(!0===document.fullscreenEnabled)return!0;let e=document.querySelector('meta[name="memori-fullscreen-enabled"], meta[name="fullscreen-enabled"]');return(null==e?void 0:e.getAttribute("content"))==="true"}()){if(!document.fullscreenElement)return void document.documentElement.requestFullscreen().catch(()=>{});document.exitFullscreen().catch(()=>{})}},[]),V=(0,ep.useCallback)(e=>{var t;return Go(e,(null==(t=D.current)?void 0:t.getBoundingClientRect().width)||window.innerWidth,I)},[I]);(0,ep.useEffect)(()=>{E&&O(e=>V(e))},[E,I,V]);let W=(0,ep.useCallback)(e=>{e.preventDefault(),e.currentTarget.setPointerCapture(e.pointerId),k(!0)},[]),q=(0,ep.useCallback)(e=>{if(!P)return;let t=D.current;t&&O(V(t.getBoundingClientRect().right-e.clientX))},[V,P]),$=(0,ep.useCallback)(()=>{k(!1)},[]),J=(0,ep.useCallback)(e=>{let t=e.shiftKey?40:16;"ArrowLeft"===e.key?(e.preventDefault(),O(e=>V(e+t))):"ArrowRight"===e.key?(e.preventDefault(),O(e=>V(e-t))):"Home"===e.key?(e.preventDefault(),O(e=>V(e+200))):"End"===e.key&&(e.preventDefault(),O(e=>V(e-200)))},[V]),K=(0,ep.useMemo)(()=>{if(t)return A?{...t,showReload:!1,showClear:!1,showSettings:!1,showShare:!1,showLogin:!1,showFullscreen:!1,showMessageConsumption:!1,memori:{...t.memori,needsPosition:!1,enableDeepThought:!1},showChatHistory:!1}:t},[t,A]),Y=(0,ep.useMemo)(()=>{var e,n;if(!t)return[];let r=A&&!!t.loginToken&&!1!==t.showChatHistory,i=!A&&!1!==t.showFullscreen,a=!1!==t.showShare,o=!!(null==(e=t.memori)?void 0:e.needsPosition);return[...r?[{key:"chatHistory",icon:(0,ed.jsx)(q6,{size:18}),title:w("widget.headerHistory")||w("write_and_speak.chatHistory")||"Chat history",onClick:()=>{t.setShowChatHistoryDrawer(!0),N(!1)}}]:[],...i?[{key:"fullscreen",icon:(0,ed.jsx)(Jo,{size:18}),title:w("fullscreenEnter")||"Full screen",subtitle:w("widget.expandToImmersive")||"Expand to immersive view",onClick:()=>{G(),N(!1)}}]:[],...a?[{key:"share",icon:(0,ed.jsx)($s,{size:18}),title:w("widget.share")||"Share chat",subtitle:w("widget.mobileSession.copyLinkOrDownload")||"Copy link or download",view:"share"}]:[],...o?[{key:"location",icon:(0,ed.jsx)(Vy,{size:18}),title:w("widget.mobileSession.locationTracking")||"Location tracking",subtitle:(null==(n=t.position)?void 0:n.placeName)||w("widget.mobileSession.currentlyOff")||"Currently off",view:"location",trailing:(0,ed.jsx)("span",{className:"memori-mobile-session-panel--chevron",children:">"})}]:[]]},[t,A,z,w,G]);return(0,ed.jsxs)(ed.Fragment,{children:[l,u,(0,ed.jsxs)(bG,{spinning:h,children:[e&&t&&K&&(0,ed.jsx)("div",{className:"memori-fullpage-top-header",children:(0,ed.jsx)("div",{className:"memori-chat-layout--header",children:(0,ed.jsx)("div",{className:"memori-fullpage-header-row",children:(0,ed.jsx)(e,{...K,layout:"FULLPAGE",buttonVariant:"outline",extraActions:A?(0,ed.jsx)(Gi,{className:"memori-chat-layout--overflow-trigger",active:M,"aria-label":w("widget.moreActions")||"More actions",icon:(0,ed.jsx)(HX,{}),onClick:()=>N(e=>!e)}):void 0})})})}),t&&(0,ed.jsx)(Jh,{open:M,presentation:"popover",onClose:()=>N(!1),title:w("widget.mobileSession.session")||"Session",loginToken:t.loginToken,user:t.user,apiClient:t.apiClient,userName:U,userEmail:null==F?void 0:F.eMail,userInitial:j,avatarURL:null==F?void 0:F.avatarURL,birthDate:null==F?void 0:F.birthDate,actions:Y,knownFactsPageTitle:w("knownFacts.title")||"Known facts",sharePageTitle:w("widget.share")||"Share",locationPageTitle:w("widget.mobileSession.locationTracking")||"Location tracking",backLabel:w("back")||"Back",locationStatusLabel:w("widget.mobileSession.locationStatus")||"Status",locationPlace:null==(f=t.position)?void 0:f.placeName,locationUnknownLabel:w("write_and_speak.unknownPosition")||"Unknown position",locationEnableLabel:w("widget.shareLocation")||"Share location",locationDisableLabel:w("widget.mobileSession.disableLocationSharing")||"Disable location sharing",knownFactsDescription:w("knownFacts.description",{memoriName:(null==B?void 0:B.name)||""})||"",knownFactsCtaLabel:w("widget.mobileSession.openKnownFacts")||"Open full known facts",knownFactsCountLabel:w("widget.mobileSession.knownFactsMessages",{count:(null==(g=t.history)?void 0:g.length)||0})||"",shareContent:(0,ed.jsx)($S,{tenant:null==t?void 0:t.tenant,memori:null==t?void 0:t.memori,sessionID:null==t?void 0:t.sessionID,title:null==(v=null==t?void 0:t.memori)?void 0:v.name,baseUrl:null==t?void 0:t.baseUrl,align:"left",history:null==t?void 0:t.history,renderMode:"inline"}),knownFactsDisabled:!z,showSessionInfo:z,showKnownFacts:!!(null==(y=t.memori)?void 0:y.enableDeepThought)&&!!t.loginToken&&!!(null==(b=t.user)?void 0:b.pAndCUAccepted),showMessageConsumption:!!t.showMessageConsumption,history:null!=(_=t.history)?_:[],isLoggedIn:!!F,showLogin:!!t.showLogin,loginLabel:w("login.login")||"Log in",onLogin:()=>{t.setShowLoginDrawer(!0),N(!1)},onKnownFactsOpen:()=>{z&&(t.setShowKnownFactsDrawer(!0),N(!1))},onLocationEnable:()=>{if(t){if(!navigator.geolocation)return void t.setPositionPopoverOpen(!0);navigator.geolocation.getCurrentPosition(e=>{let n=e.coords.latitude,r=e.coords.longitude;t.setVenue({latitude:n,longitude:r,placeName:`${n.toFixed(5)}, ${r.toFixed(5)}`,uncertainty:e.coords.accuracy/1e3})},()=>{t.setPositionPopoverOpen(!0)},{enableHighAccuracy:!0,timeout:15e3,maximumAge:0})}},onLocationDisable:()=>{null==t||t.setVenue({latitude:0,longitude:0,placeName:"",uncertainty:0})},venue:t.position,setVenue:t.setVenue,logoutLabel:w("login.logout")||"Log out",onLogout:()=>{(()=>{if(t){if(F&&t.onLogout)return t.onLogout();t.setShowLoginDrawer(!0)}})(),N(!1)}}),(0,ed.jsxs)("div",{ref:D,className:`memori-fullpage-content-row${E&&I?" memori-fullpage-content-row--artifact-overlay":""}${P?" memori-fullpage-content-row--resizing":""}`,style:E?{"--memori-artifact-column-width":`${R}px`}:void 0,children:[(0,ed.jsxs)("div",{className:"memori--grid",children:[(0,ed.jsxs)("div",{className:"memori--grid-column memori--grid-column-left",hidden:E,children:[z&&H&&(0,ed.jsxs)("div",{className:"memori-fullpage-agent-status",role:"status","aria-live":"polite",children:[(0,ed.jsx)("span",{className:`memori-fullpage-agent-status--dot memori-fullpage-agent-status--dot-${H.key}`,"aria-hidden":"true"}),(0,ed.jsx)("span",{className:"memori-fullpage-agent-status--label",children:H.label})]}),n&&r&&(0,ed.jsx)(n,{chatProps:a,...r}),(0,ed.jsx)("div",{id:"extension"})]}),(0,ed.jsx)("div",{className:"memori-chat-layout--main",children:(0,ed.jsx)("div",{className:S.isFullscreen?"memori-chat-layout-controls-hide":"memori-chat-layout--controls",children:c&&d&&i&&a?(0,ed.jsx)(i,{...a,footerBrand:p,showAiGeneratedNote:!0}):s?(0,ed.jsx)("div",{className:"memori-conversation-column",children:(0,ed.jsx)(o,{...s,footerBrand:p})}):null})})]}),(0,ed.jsx)("div",{className:`memori--grid-column-artifact${E?" memori--grid-column-artifact--open":""}`,children:E&&(0,ed.jsxs)(ed.Fragment,{children:[!A&&(0,ed.jsx)("div",{className:"memori-artifact-resize-handle",role:"separator","aria-orientation":"vertical","aria-label":w("artifact.resizeHandle")||"Resize artifact panel","aria-valuemin":360,"aria-valuemax":Math.round((null==(x=D.current)?void 0:x.getBoundingClientRect().width)||0)||void 0,"aria-valuenow":Math.round(R),tabIndex:0,onPointerDown:W,onPointerMove:q,onPointerUp:$,onPointerCancel:$,onKeyDown:J}),(0,ed.jsx)(Gs,{isLayoutColumn:!0})]})})]})]})]})},Jm=({Header:e,headerProps:t,Avatar:n,avatarProps:r,Chat:i,chatProps:a,StartPanel:o,startPanelProps:s,integrationStyle:l,integrationBackground:u,sessionId:c,hasUserActivatedSpeak:d,loading:h=!1,poweredBy:p,totemContentMaxWidth:m})=>{let f=null!=m?{"--memori-totem-max-width":"number"==typeof m?`${m}px`:m}:void 0;return(0,ed.jsxs)(ed.Fragment,{children:[l,u,(0,ed.jsxs)(bG,{spinning:h,className:"memori-totem-layout",style:f,children:[p,(0,ed.jsx)("div",{className:"memori-totem-layout--header",children:e&&t&&(0,ed.jsx)(e,{buttonVariant:"outline",...t})}),(0,ed.jsx)("div",{className:"memori-totem-layout--avatar",children:n&&r&&(0,ed.jsx)(n,{chatProps:a,...r,isTotem:!0})}),(0,ed.jsx)("div",{id:"extension"}),(0,ed.jsx)("div",{className:"memori-totem-layout--controls",children:c&&d&&i&&a?(0,ed.jsx)(i,{...a}):s?(0,ed.jsx)(o,{...s}):null})]})]})},ep=eu("85Hg2"),Jf=({Header:e,headerProps:t,Chat:n,chatProps:r,StartPanel:i,startPanelProps:a,integrationStyle:o,integrationBackground:s,sessionId:l,hasUserActivatedSpeak:u,loading:c=!1,poweredBy:d})=>{var h,p,m,f,g,v,y,b;let{t:_}=tE(),{state:x}=e7(),w=x.isDrawerOpen&&!x.isChatLogPanelPresentation,[S,E]=(0,ep.useState)(!1),[A,T]=(0,ep.useState)(!1);(0,ep.useEffect)(()=>{let e=window.matchMedia("(max-width: 768px)"),t=()=>E(e.matches);return t(),e.addEventListener("change",t),()=>e.removeEventListener("change",t)},[]);let I=null==r?void 0:r.globalBackground,C=null==t?void 0:t.memori;null==t||t.tenant,null==t||t.baseUrl;let M=(null==t?void 0:t.loginToken)&&(null==(h=null==t?void 0:t.user)?void 0:h.userID)?t.user:void 0,N=[null==M?void 0:M.name,null==M?void 0:M.surname].filter(Boolean).join(" ").trim()||(null==M?void 0:M.userName)||(null==M?void 0:M.eMail)||(null==C?void 0:C.name)||"User",R=N.charAt(0).toUpperCase(),O=!!(l&&u),P=(0,ep.useMemo)(()=>{if(t)return S?{...t,showReload:!1,showClear:!1,showSettings:!1,showShare:!1,showLogin:!1,showFullscreen:!1,showMessageConsumption:!1,memori:{...t.memori,needsPosition:!1,enableDeepThought:!1},showChatHistory:!1}:t},[t,S]),k=(0,ep.useMemo)(()=>{var e,n;if(!t)return[];let r=S&&!!t.loginToken&&!1!==t.showChatHistory,i=!1!==t.showShare,a=!!(null==(e=t.memori)?void 0:e.needsPosition);return[...r?[{key:"chatHistory",icon:(0,ed.jsx)(q6,{size:18}),title:_("widget.headerHistory")||_("write_and_speak.chatHistory")||"Chat history",onClick:()=>{t.setShowChatHistoryDrawer(!0),T(!1)}}]:[],...i?[{key:"share",icon:(0,ed.jsx)($s,{size:18}),title:_("widget.share")||"Share chat",subtitle:_("widget.mobileSession.copyLinkOrDownload")||"Copy link or download",view:"share"}]:[],...a?[{key:"location",icon:(0,ed.jsx)(Vy,{size:18}),title:_("widget.mobileSession.locationTracking")||"Location tracking",subtitle:(null==(n=t.position)?void 0:n.placeName)||_("widget.mobileSession.currentlyOff")||"Currently off",view:"location",trailing:(0,ed.jsx)("span",{className:"memori-mobile-session-panel--chevron",children:">"})}]:[]]},[t,S,_]);return(0,ed.jsxs)(ed.Fragment,{children:[o,s,(0,ed.jsxs)(bG,{spinning:c,className:"memori-chat-layout",children:[(0,ed.jsx)("div",{id:"extension"}),(0,ed.jsx)("div",{className:"memori-chat-layout--header",children:e&&t&&P&&(0,ed.jsx)("div",{className:"memori-fullpage-header-row",children:(0,ed.jsx)(e,{...P,buttonVariant:"outline",extraActions:S?(0,ed.jsx)(Gi,{className:"memori-chat-layout--overflow-trigger",active:A,"aria-label":_("widget.moreActions")||"More actions",icon:(0,ed.jsx)(HX,{}),onClick:()=>T(e=>!e)}):void 0})})}),t&&(0,ed.jsx)(Jh,{open:A,presentation:"popover",onClose:()=>T(!1),title:_("widget.mobileSession.session")||"Session",loginToken:t.loginToken,user:t.user,apiClient:t.apiClient,userName:N,userEmail:null==M?void 0:M.eMail,userInitial:R,avatarURL:null==M?void 0:M.avatarURL,birthDate:null==M?void 0:M.birthDate,actions:k,knownFactsPageTitle:_("knownFacts.title")||"Known facts",sharePageTitle:_("widget.share")||"Share",locationPageTitle:_("widget.mobileSession.locationTracking")||"Location tracking",backLabel:_("back")||"Back",locationStatusLabel:_("widget.mobileSession.locationStatus")||"Status",locationPlace:null==(p=t.position)?void 0:p.placeName,locationUnknownLabel:_("write_and_speak.unknownPosition")||"Unknown position",locationEnableLabel:_("widget.shareLocation")||"Share location",locationDisableLabel:_("widget.mobileSession.disableLocationSharing")||"Disable location sharing",knownFactsDescription:_("knownFacts.description",{memoriName:(null==C?void 0:C.name)||""})||"",knownFactsCtaLabel:_("widget.mobileSession.openKnownFacts")||"Open full known facts",knownFactsCountLabel:_("widget.mobileSession.knownFactsMessages",{count:(null==(m=t.history)?void 0:m.length)||0})||"",shareContent:(0,ed.jsx)($S,{tenant:null==t?void 0:t.tenant,memori:null==t?void 0:t.memori,sessionID:null==t?void 0:t.sessionID,title:null==(f=null==t?void 0:t.memori)?void 0:f.name,baseUrl:null==t?void 0:t.baseUrl,align:"left",history:null==t?void 0:t.history,renderMode:"inline"}),knownFactsDisabled:!O,showSessionInfo:O,showKnownFacts:!!(null==(g=t.memori)?void 0:g.enableDeepThought)&&!!t.loginToken&&!!(null==(v=t.user)?void 0:v.pAndCUAccepted),showMessageConsumption:!!t.showMessageConsumption,history:null!=(y=t.history)?y:[],isLoggedIn:!!M,showLogin:!!t.showLogin,loginLabel:_("login.login")||"Log in",onLogin:()=>{t.setShowLoginDrawer(!0),T(!1)},onKnownFactsOpen:()=>{O&&(t.setShowKnownFactsDrawer(!0),T(!1))},onLocationEnable:()=>{if(t){if(!navigator.geolocation)return void t.setPositionPopoverOpen(!0);navigator.geolocation.getCurrentPosition(e=>{let n=e.coords.latitude,r=e.coords.longitude;t.setVenue({latitude:n,longitude:r,placeName:`${n.toFixed(5)}, ${r.toFixed(5)}`,uncertainty:e.coords.accuracy/1e3})},()=>{t.setPositionPopoverOpen(!0)},{enableHighAccuracy:!0,timeout:15e3,maximumAge:0})}},onLocationDisable:()=>{null==t||t.setVenue({latitude:0,longitude:0,placeName:"",uncertainty:0})},venue:t.position,setVenue:t.setVenue,logoutLabel:_("login.logout")||"Log out",onLogout:()=>{(()=>{if(t){if(M&&t.onLogout)return t.onLogout();t.setShowLoginDrawer(!0)}})(),T(!1)}}),(0,ed.jsxs)("div",{className:`memori-chat-layout--main${I?" memori-chat-layout--main--has-background":""}`,style:I?{"--memori-chat-global-background":`url(${I})`}:void 0,children:[(0,ed.jsx)("div",{className:x.isFullscreen?"memori-chat-layout-controls-hide":"memori-chat-layout--controls",children:(0,ed.jsxs)("div",{className:"memori-conversation-column",children:[(0,ed.jsx)("div",{className:"memori-chat-layout--body",children:l&&u&&n&&r?(0,ed.jsx)(n,{...r,showInputs:!1}):a?(0,ed.jsx)("div",{className:"memori-chat-layout--start-shell",id:"chat-wrapper",children:(0,ed.jsx)("div",{className:"memori-chat-layout--start-panel-wrap",children:(0,ed.jsx)(i,{...a})})}):null}),n&&r&&!1!==r.showInputs&&(0,ed.jsx)(Vt,{userMessage:r.userMessage,onChangeUserMessage:r.onChangeUserMessage,dialogState:r.dialogState,instruct:r.instruct,authToken:r.authToken,sendMessage:r.sendMessage,isTyping:r.memoriTyping,microphoneMode:r.microphoneMode,sendOnEnter:r.sendOnEnter,setSendOnEnter:r.setSendOnEnter,client:r.client,sessionID:r.sessionID,showUpload:r.showUpload,attachmentsMenuOpen:r.attachmentsMenuOpen,setAttachmentsMenuOpen:r.setAttachmentsMenuOpen,onTextareaFocus:()=>{var e;null==(e=r.stopListening)||e.call(r)},onTextareaBlur:()=>{},onTextareaExpanded:()=>{},startListening:r.startListening,stopListening:r.stopListening,audioStream:r.audioStream,transcribing:r.transcribing,stopAudio:r.stopAudio,listening:r.listening,isPlayingAudio:r.isPlayingAudio,showMicrophone:r.showMicrophone,memoriID:null==(b=r.memori)?void 0:b.memoriID,maxTextareaCharacters:r.maxTextareaCharacters,maxTotalMessagePayload:r.maxTotalMessagePayload,maxDocumentsPerMessage:kY,maxDocumentContentLength:3e5,pasteAsCardLineThreshold:100,pasteAsCardCharThreshold:4200,showAiGeneratedNote:O,footerBrand:d})]})}),(0,ed.jsx)("div",{className:`memori--grid-column-artifact${w?" memori--grid-column-artifact--open":""}`,children:w&&(0,ed.jsx)(Gs,{isLayoutColumn:!0})})]})]})]})},ep=eu("85Hg2");let Jg="memori-widget--fullscreen";function Jv(e){var t;return null!=(t=e.closest(".memori-widget"))?t:e}function Jy(e,t){let n=Jv(e);return n.classList.add(Jg),"function"==typeof n.requestFullscreen&&n.requestFullscreen().catch(e=>{n.classList.remove(Jg),null==t||t(e)}),n}function Jb(e){Jv(e).classList.remove(Jg)}let J_="memori-website_assistant--fullscreen";var Jx=({Header:e,headerProps:t,Avatar:n,avatarProps:r,Chat:i,chatProps:a,StartPanel:o,startPanelProps:s,integrationStyle:l,sessionId:u,hasUserActivatedSpeak:c,loading:d=!1,show3dAvatar:h=!1,sideDrawerOpen:p=!1,onSidebarToggle:m})=>{var f,g,v,y,b,_;let{t:x}=tE(),{state:w}=e7(),S=w.isDrawerOpen&&!w.isChatLogPanelPresentation,E=S||p,[A,T]=(0,ep.useState)(!0),[I,C]=(0,ep.useState)(),[M,N]=(0,ep.useState)(!1),R=(0,ep.useRef)(null),O=(0,ep.useRef)({left:"",right:"",width:"",maxWidth:"",height:"",backgroundColor:""}),P=(0,ep.useMemo)(()=>null==a?void 0:a.stopAudio,[null==a?void 0:a.stopAudio]),k=null==t?void 0:t.memori,D=null==t?void 0:t.tenant,B=null==t?void 0:t.baseUrl,F=!!(u&&c),U=k?k.avatarURL&&k.avatarURL.length>0?Lr({type:"avatar",tenantID:null==D?void 0:D.name,resourceURI:k.avatarURL,baseURL:B,apiURL:""}):Lr({type:"avatar",tenantID:null==D?void 0:D.name,baseURL:B,apiURL:""}):void 0,{add:j}=vX(),[z,H]=(0,ep.useState)(!1),G=(null==t?void 0:t.loginToken)&&(null==(f=null==t?void 0:t.user)?void 0:f.userID)?t.user:void 0,V=(null==G?void 0:G.userName)||(null==G?void 0:G.eMail)||(null==k?void 0:k.name)||"User",W=!!(null==k?void 0:k.enableDeepThought)&&!!(null==t?void 0:t.loginToken)&&!!(null==(g=null==t?void 0:t.user)?void 0:g.pAndCUAccepted),q=!!(null==k?void 0:k.needsPosition)&&!!(null==t?void 0:t.positionPopoverOpen),$=()=>{H(!1),(null==t?void 0:t.positionPopoverOpen)&&t.setPositionPopoverOpen(!1)};(0,ep.useEffect)(()=>{q&&H(!0)},[q]);let J=(0,ep.useMemo)(()=>{var e,n,r;return t?[...t.showShare?[{key:"share",icon:(0,ed.jsx)($s,{size:18}),title:x("widget.share")||"Share chat",subtitle:x("widget.mobileSession.copyLinkOrDownload")||"Copy link or download",view:"share"}]:[],...(null==(e=t.memori)?void 0:e.needsPosition)?[{key:"location",icon:(0,ed.jsx)(Vy,{size:18}),title:x("widget.mobileSession.locationTracking")||"Location tracking",subtitle:(null==(n=t.position)?void 0:n.placeName)||x("widget.mobileSession.currentlyOff")||"Currently off",view:"location"}]:[],...(null==(r=t.memori)?void 0:r.enableBoardOfExperts)?[{key:"experts",icon:(0,ed.jsx)(Vv,{size:18}),title:x("widget.showExpertsInTheBoard")||"Experts in this board",disabled:!F,onClick:()=>{t.setShowExpertsDrawer(!0),H(!1)}}]:[],...t.showClear?[{key:"clear",icon:(0,ed.jsx)($e,{size:18}),title:x("clearHistory")||"Clear chat",onClick:()=>{t.clearHistory(),j(v7({description:x("clearHistoryDone"),severity:"success"})),H(!1)}}]:[]]:[]},[t,F,x,j]),K=J.length>0||!!(null==t?void 0:t.showLogin)||F&&(W||!!(null==t?void 0:t.showMessageConsumption)),Y=()=>{let e=R.current;e&&(e.style.left=O.current.left,e.style.right=O.current.right,e.style.width=O.current.width,e.style.maxWidth=O.current.maxWidth,e.style.height=O.current.height,e.style.backgroundColor=O.current.backgroundColor,e.classList.remove(J_),Jb(e)),N(!1)};(0,ep.useEffect)(()=>{let e=()=>{!document.fullscreenElement&&M&&Y()};return document.addEventListener("fullscreenchange",e),()=>{document.removeEventListener("fullscreenchange",e)}},[M]);let X=e=>{e&&M&&(document.fullscreenElement&&document.exitFullscreen().catch(e=>{console.warn("[WebsiteAssistantLayout] Error exiting fullscreen:",e)}),Y()),e&&$(),T(e),null==m||m(!e),C(e?void 0:new Date().toISOString());try{null==P||P()}catch(e){console.log(e)}};return(0,ed.jsxs)(ed.Fragment,{children:[A&&(0,ed.jsx)("div",{className:"memori-website_assistant--trigger",children:(0,ed.jsx)(ye,{className:"memori-website_assistant--trigger-button",variant:"ghost",shape:"circle",onClick:()=>X(!1),"aria-label":x("expand")||"Expand","aria-expanded":!1,title:x("expand")||"Expand",children:(0,ed.jsx)(VR,{avatar:null==r?void 0:r.memori.avatarURL})})}),(0,ed.jsx)("div",{ref:R,className:`memori-website_assistant--${A?"collapsed":"expanded"}${E?" memori-website_assistant--drawer-open memori-website_assistant--artifact-open":""}${M?` ${J_}`:""}`,children:!A&&(0,ed.jsxs)(ed.Fragment,{children:[l,(0,ed.jsxs)(bG,{spinning:d,className:"memori-website_assistant-layout",children:[(0,ed.jsxs)("div",{className:"memori-website_assistant-layout--header-row",children:[k&&U&&(0,ed.jsxs)("div",{className:"memori-chat-layout--brand",children:[(0,ed.jsx)("img",{className:"memori-chat-layout--brand-avatar",src:U,alt:"",role:"presentation"}),(0,ed.jsx)("div",{className:"memori-chat-layout--brand-text",children:F&&(0,ed.jsx)("span",{className:"memori-chat-layout--brand-name",title:k.name,children:k.name})})]}),(0,ed.jsxs)("div",{className:"memori-website_assistant-layout--header-actions",children:[e&&t&&(0,ed.jsx)(e,{...t,buttonVariant:"outline",memori:{...t.memori,needsPosition:!1,enableDeepThought:!1,enableBoardOfExperts:!1},showSettings:!1,showReload:!1,showChatHistory:!1,showShare:!1,showClear:!1,showLogin:!1,showMessageConsumption:!1,fullScreenHandler:()=>{if(document.fullscreenElement)document.exitFullscreen&&document.exitFullscreen().catch(e=>{console.warn("[WebsiteAssistantLayout] Error exiting fullscreen:",e)}),Y();else{let e=R.current;e&&(O.current={left:e.style.left,right:e.style.right,width:e.style.width,maxWidth:e.style.maxWidth,height:e.style.height,backgroundColor:e.style.backgroundColor},e.style.left="0",e.style.right="0",e.style.width="100%",e.style.maxWidth="none",e.style.height="100%",e.style.backgroundColor="",e.classList.add(J_),Jy(e,e=>{console.warn("[WebsiteAssistantLayout] Error enabling fullscreen:",e)})),N(!0)}},extraActions:K?(0,ed.jsx)(Gi,{className:"memori-chat-layout--overflow-trigger",active:z,"aria-label":x("widget.moreActions")||"More actions",icon:(0,ed.jsx)(HX,{}),onClick:()=>z?$():H(!0)}):void 0}),(0,ed.jsx)("button",{type:"button",className:"memori-website_assistant--close-button",onClick:()=>X(!0),"aria-label":x("collapse")||"Close",title:x("collapse")||"Close",children:(0,ed.jsx)(HY,{className:"memori-icon-close","aria-hidden":!0})})]})]}),h&&(0,ed.jsx)("div",{className:"memori-website_assistant-layout--avatar",children:n&&r&&(0,ep.createElement)(n,{...r,integrationConfig:r.integrationConfig?{...r.integrationConfig,avatarURL:(null==(v=r.integrationConfig)?void 0:v.avatarURL)?`${null==(y=r.integrationConfig)?void 0:y.avatarURL.split("#")[0]}#${I}`:void 0}:{},key:I})}),(0,ed.jsx)("div",{id:"extension"}),(0,ed.jsx)("div",{className:"memori-website_assistant-layout--controls",children:u&&c&&i&&a?(0,ed.jsx)(i,{...a}):s?(0,ed.jsx)(o,{...s,showFullDescriptionOnMobile:!0,showChatHistory:!1}):null})]}),t&&K&&(0,ed.jsx)(Jh,{open:z,presentation:"popover",onClose:$,initialView:q?"location":"session",autoStartGeolocation:q&&!!t.autoStartPositionGeolocation,title:x("widget.mobileSession.session")||"Session",loginToken:t.loginToken,user:t.user,apiClient:t.apiClient,userName:V,userEmail:null==G?void 0:G.eMail,userInitial:V.charAt(0).toUpperCase(),avatarURL:null==G?void 0:G.avatarURL,birthDate:null==G?void 0:G.birthDate,actions:J,knownFactsPageTitle:x("knownFacts.title")||"Known facts",sharePageTitle:x("widget.share")||"Share",locationPageTitle:x("widget.mobileSession.locationTracking")||"Location tracking",backLabel:x("back")||"Back",shareContent:(0,ed.jsx)($S,{tenant:t.tenant,memori:t.memori,sessionID:t.sessionID,title:null==(b=t.memori)?void 0:b.name,baseUrl:t.baseUrl,align:"left",history:t.history,renderMode:"inline"}),knownFactsDisabled:!F,showSessionInfo:F,showKnownFacts:W,showMessageConsumption:!!t.showMessageConsumption,history:null!=(_=t.history)?_:[],isLoggedIn:!!G,showLogin:!!t.showLogin,loginLabel:x("login.login")||"Log in",onLogin:()=>{t.setShowLoginDrawer(!0),$()},onKnownFactsOpen:()=>{F&&(t.setShowKnownFactsDrawer(!0),$())},venue:t.position,setVenue:t.setVenue,logoutLabel:x("login.logout")||"Log out",onLogout:()=>{var e;null==(e=t.onLogout)||e.call(t),$()}})]})}),S&&(0,ed.jsx)(Gs,{})]})},ep=eu("85Hg2"),Jw=({Header:e,headerProps:t,Chat:n,chatProps:r,startPanelProps:i,sessionId:a,hasUserActivatedSpeak:o,autoStart:s,StartPanel:l,onSidebarToggle:u})=>{var c,d,h,p,m,f;let{t:g}=tE(),[v,y]=(0,ep.useState)(!1),[b,_]=(0,ep.useState)(!1),x=(0,ep.useRef)(null),{state:w,closeArtifact:S}=e7(),E=w.isDrawerOpen&&!w.isChatLogPanelPresentation,A=null==t?void 0:t.memori,T=null==t?void 0:t.tenant,I=null==t?void 0:t.baseUrl,C=(0,ep.useMemo)(()=>{if(t)return{...t,showReload:!1,showClear:!1,showSettings:!1,showShare:!1,showLogin:!1,showMessageConsumption:!1,showFullscreen:!0,memori:{...t.memori,needsPosition:!1,enableDeepThought:!1},layout:"HIDDEN_CHAT",showChatHistory:!1}},[t]),M=!!i&&(h=!!i.memori.needsPosition,p=!!i.position,!!h&&!p||(m=!!i.memori.requireLoginToken,f=!!i.isUserLoggedIn,!!m&&!f)),N=A?A.avatarURL&&A.avatarURL.length>0?Lr({type:"avatar",tenantID:null==T?void 0:T.name,resourceURI:A.avatarURL,baseURL:I,apiURL:""}):Lr({type:"avatar",tenantID:null==T?void 0:T.name,baseURL:I,apiURL:""}):void 0,R=(0,ep.useRef)({left:"",right:"",width:"",maxWidth:"",backgroundColor:""});(0,ep.useEffect)(()=>{let e=()=>{!document.fullscreenElement&&b&&P()};return document.addEventListener("fullscreenchange",e),()=>{document.removeEventListener("fullscreenchange",e)}},[b]),(0,ep.useEffect)(()=>{var e;let t=document.body,n=document.querySelector(".memori-widget"),r=n&&(null==(e=getComputedStyle(n).getPropertyValue("--memori-hidden-chat-width"))?void 0:e.trim())||"min(450px, 100vw)";v?b?(t.style.width="100%",t.style.marginLeft="0"):"u">typeof window&&window.matchMedia("(max-width: 768px)").matches?(t.style.width="100%",t.style.marginRight="0",t.style.marginLeft="0"):(t.style.width=`calc(100% - ${r})`,t.style.marginRight=r,t.style.transition="all 0.5s"):(t.style.width="100%",t.style.marginRight="0",t.style.marginLeft="0",S())},[v,b]);let O=()=>{b&&v&&(document.fullscreenElement&&document.exitFullscreen().catch(e=>{console.warn("[HiddenChatLayout] Error exiting fullscreen:",e)}),P());let e=!v;y(e),u&&u(e)},P=()=>{let e=x.current;e&&(e.style.left=R.current.left,e.style.right=R.current.right,e.style.width=R.current.width,e.style.maxWidth=R.current.maxWidth,e.style.backgroundColor=R.current.backgroundColor,e.classList.remove("memori-sidebar-fullscreen"),Jb(e)),_(!1)};return(0,ed.jsxs)(ed.Fragment,{children:[(0,ed.jsx)("input",{type:"checkbox",id:"memori-sidebar-toggle",className:`memori-sidebar-toggle ${E?"memori-sidebar-toggle-artifact":""}`,checked:v,onChange:O}),(0,ed.jsxs)("div",{className:"memori-sidebar-container",children:[(0,ed.jsx)("label",{htmlFor:"memori-sidebar-toggle",className:"memori-sidebar-toggle-label memori-open-label",children:(0,ed.jsx)(Lc,{className:"memori-icon","aria-label":null!=(c=g("expand"))?c:void 0})}),(0,ed.jsx)("aside",{ref:x,className:`memori-sidebar memori-chat-layout ${b?"memori-sidebar-fullscreen":""}`,children:(0,ed.jsxs)("div",{className:"memori-hidden-chat-layout--controls memori-chat-layout--controls",children:[(0,ed.jsx)("div",{className:"memori-chat-layout--header",children:e&&t&&(0,ed.jsxs)("div",{className:"memori-chat-layout--header-row",children:[A&&N&&(0,ed.jsxs)("div",{className:"memori-chat-layout--brand",children:[(0,ed.jsx)("img",{className:"memori-chat-layout--brand-avatar",src:N,alt:"",role:"presentation"}),(0,ed.jsx)("div",{className:"memori-chat-layout--brand-text",children:!!(a&&o)&&(0,ed.jsx)("span",{className:"memori-chat-layout--brand-name",title:A.name,children:A.name})})]}),(0,ed.jsxs)("div",{className:"memori-hidden-chat-layout--header-actions",children:[C&&(0,ed.jsx)(e,{position:{latitude:0,longitude:0,placeName:""},...C,buttonVariant:"outline",fullScreenHandler:()=>{if(document.fullscreenElement)document.exitFullscreen&&document.exitFullscreen().catch(e=>{console.warn("[HiddenChatLayout] Error exiting fullscreen:",e)}),P();else{let e=x.current;e&&(R.current={left:e.style.left,right:e.style.right,width:e.style.width,maxWidth:e.style.maxWidth,backgroundColor:e.style.backgroundColor},e.style.left="0",e.style.right="0",e.style.width="100%",e.style.maxWidth="none",e.style.backgroundColor="",e.classList.add("memori-sidebar-fullscreen"),Jy(e,e=>{console.warn("[HiddenChatLayout] Error enabling fullscreen:",e)})),_(!0)}}}),(0,ed.jsx)("button",{type:"button",className:"memori-website_assistant--close-button memori-hidden-chat-layout--header-close",onClick:O,"aria-label":g("collapse")||"Close",title:g("collapse")||"Close",children:(0,ed.jsx)(HY,{className:"memori-icon-close","aria-hidden":!0})})]})]})}),(0,ed.jsxs)("div",{className:"memori-chat-layout--body",children:[a&&o&&n&&r?(0,ed.jsx)(n,{...r}):(!s||M)&&i?(0,ed.jsxs)("div",{className:"memori-chat-layout--start-shell",children:[(0,ed.jsx)("div",{className:"memori-chat-layout--start-panel-wrap",children:(0,ed.jsx)(l,{...i})}),n&&r&&!1!==r.showInputs&&(0,ed.jsx)("div",{className:"memori-chat-layout--prechat-inputs",children:(0,ed.jsx)(Vt,{userMessage:r.userMessage,onChangeUserMessage:r.onChangeUserMessage,dialogState:r.dialogState,instruct:r.instruct,authToken:r.authToken,sendMessage:r.sendMessage,isTyping:r.memoriTyping,microphoneMode:r.microphoneMode,sendOnEnter:r.sendOnEnter,setSendOnEnter:r.setSendOnEnter,client:r.client,sessionID:r.sessionID,showUpload:r.showUpload,attachmentsMenuOpen:r.attachmentsMenuOpen,setAttachmentsMenuOpen:r.setAttachmentsMenuOpen,onTextareaFocus:()=>{var e;null==(e=r.stopListening)||e.call(r)},onTextareaBlur:()=>{},onTextareaExpanded:()=>{},startListening:r.startListening,stopListening:r.stopListening,audioStream:r.audioStream,transcribing:r.transcribing,stopAudio:r.stopAudio,listening:r.listening,isPlayingAudio:r.isPlayingAudio,showMicrophone:r.showMicrophone,memoriID:null==(d=r.memori)?void 0:d.memoriID,maxTextareaCharacters:r.maxTextareaCharacters,maxDocumentsPerMessage:kY,maxDocumentContentLength:3e5,pasteAsCardLineThreshold:100,pasteAsCardCharThreshold:4200,showAiGeneratedNote:!1})})]}):(0,ed.jsx)("div",{className:"memori-loading",children:(0,ed.jsx)(bG,{spinning:!0})}),(0,ed.jsx)("div",{id:"extension"})]})]})})]}),E&&(0,ed.jsx)(Gs,{})]})},ep=eu("85Hg2"),JS=({Header:e,headerProps:t,Avatar:n,avatarProps:r,Chat:i,chatProps:a,StartPanel:o,startPanelProps:s,integrationStyle:l,integrationBackground:u,sessionId:c,hasUserActivatedSpeak:d,loading:h=!1,poweredBy:p})=>{var m,f,g,v,y,b,_,x;let{t:w}=tE(),{state:S}=e7();S.currentArtifact;let E=S.isDrawerOpen&&!S.isChatLogPanelPresentation,[A,T]=(0,ep.useState)(!1),[I,C]=(0,ep.useState)(!1),[M,N]=(0,ep.useState)(!1),[R,O]=(0,ep.useState)(720),[P,k]=(0,ep.useState)(!1),D=(0,ep.useRef)(null);(0,ep.useEffect)(()=>{let e=window.matchMedia("(max-width: 768px)"),t=window.matchMedia("(max-width: 1199px)"),n=()=>{T(e.matches),C(t.matches)};return n(),e.addEventListener("change",n),t.addEventListener("change",n),()=>{e.removeEventListener("change",n),t.removeEventListener("change",n)}},[]);let B=null==t?void 0:t.memori;null==t||t.tenant,null==t||t.baseUrl;let F=(null==t?void 0:t.loginToken)&&(null==(m=null==t?void 0:t.user)?void 0:m.userID)?t.user:void 0,U=[null==F?void 0:F.name,null==F?void 0:F.surname].filter(Boolean).join(" ").trim()||(null==F?void 0:F.userName)||(null==F?void 0:F.eMail)||(null==B?void 0:B.name)||"User",j=U.charAt(0).toUpperCase(),z=!!(c&&d),H=(0,ep.useMemo)(()=>(null==a?void 0:a.isPlayingAudio)?{key:"speaking",label:w("widget.agentStatusSpeaking",{defaultValue:"sta parlando"})}:(null==a?void 0:a.memoriTyping)?{key:"processing",label:w("widget.agentStatusProcessing",{defaultValue:"in elaborazione"})}:(null==a?void 0:a.listening)?{key:"listening",label:w("widget.agentStatusListening",{defaultValue:"in ascolto"})}:null,[null==a?void 0:a.isPlayingAudio,null==a?void 0:a.memoriTyping,null==a?void 0:a.listening,w]),G=(0,ep.useCallback)(()=>{if(function(){if("u"<typeof document)return!1;if(!0===document.fullscreenEnabled)return!0;let e=document.querySelector('meta[name="memori-fullscreen-enabled"], meta[name="fullscreen-enabled"]');return(null==e?void 0:e.getAttribute("content"))==="true"}()){if(!document.fullscreenElement)return void document.documentElement.requestFullscreen().catch(()=>{});document.exitFullscreen().catch(()=>{})}},[]),V=(0,ep.useCallback)(e=>{var t;return Go(e,(null==(t=D.current)?void 0:t.getBoundingClientRect().width)||window.innerWidth,I)},[I]);(0,ep.useEffect)(()=>{E&&O(e=>V(e))},[E,I,V]);let W=(0,ep.useCallback)(e=>{e.preventDefault(),e.currentTarget.setPointerCapture(e.pointerId),k(!0)},[]),q=(0,ep.useCallback)(e=>{if(!P)return;let t=D.current;t&&O(V(t.getBoundingClientRect().right-e.clientX))},[V,P]),$=(0,ep.useCallback)(()=>{k(!1)},[]),J=(0,ep.useCallback)(e=>{let t=e.shiftKey?40:16;"ArrowLeft"===e.key?(e.preventDefault(),O(e=>V(e+t))):"ArrowRight"===e.key?(e.preventDefault(),O(e=>V(e-t))):"Home"===e.key?(e.preventDefault(),O(e=>V(e+200))):"End"===e.key&&(e.preventDefault(),O(e=>V(e-200)))},[V]),K=(0,ep.useMemo)(()=>{if(t)return A?{...t,showReload:!1,showClear:!1,showSettings:!1,showShare:!1,showLogin:!1,showFullscreen:!1,showMessageConsumption:!1,memori:{...t.memori,needsPosition:!1,enableDeepThought:!1},showChatHistory:!1}:t},[t,A]),Y=(0,ep.useMemo)(()=>{var e,n;if(!t)return[];let r=A&&!!t.loginToken&&!1!==t.showChatHistory,i=!A&&!1!==t.showFullscreen,a=!1!==t.showShare,o=!!(null==(e=t.memori)?void 0:e.needsPosition);return[...r?[{key:"chatHistory",icon:(0,ed.jsx)(q6,{size:18}),title:w("widget.headerHistory")||w("write_and_speak.chatHistory")||"Chat history",onClick:()=>{t.setShowChatHistoryDrawer(!0),N(!1)}}]:[],...i?[{key:"fullscreen",icon:(0,ed.jsx)(Jo,{size:18}),title:w("fullscreenEnter")||"Full screen",subtitle:w("widget.expandToImmersive")||"Expand to immersive view",onClick:()=>{G(),N(!1)}}]:[],...a?[{key:"share",icon:(0,ed.jsx)($s,{size:18}),title:w("widget.share")||"Share chat",subtitle:w("widget.mobileSession.copyLinkOrDownload")||"Copy link or download",view:"share"}]:[],...o?[{key:"location",icon:(0,ed.jsx)(Vy,{size:18}),title:w("widget.mobileSession.locationTracking")||"Location tracking",subtitle:(null==(n=t.position)?void 0:n.placeName)||w("widget.mobileSession.currentlyOff")||"Currently off",view:"location",trailing:(0,ed.jsx)("span",{className:"memori-mobile-session-panel--chevron",children:">"})}]:[]]},[t,A,z,w,G]);return(0,ed.jsxs)(ed.Fragment,{children:[l,u,(0,ed.jsxs)(bG,{spinning:h,children:[e&&t&&K&&(0,ed.jsx)("div",{className:"memori-fullpage-top-header",children:(0,ed.jsx)("div",{className:"memori-chat-layout--header",children:(0,ed.jsx)("div",{className:"memori-fullpage-header-row",children:(0,ed.jsx)(e,{...K,layout:"FULLPAGE",buttonVariant:"outline",extraActions:A?(0,ed.jsx)(Gi,{className:"memori-chat-layout--overflow-trigger",active:M,"aria-label":w("widget.moreActions")||"More actions",icon:(0,ed.jsx)(HX,{}),onClick:()=>N(e=>!e)}):void 0})})})}),t&&(0,ed.jsx)(Jh,{open:M,presentation:"popover",onClose:()=>N(!1),title:w("widget.mobileSession.session")||"Session",loginToken:t.loginToken,user:t.user,apiClient:t.apiClient,userName:U,userEmail:null==F?void 0:F.eMail,userInitial:j,avatarURL:null==F?void 0:F.avatarURL,birthDate:null==F?void 0:F.birthDate,actions:Y,knownFactsPageTitle:w("knownFacts.title")||"Known facts",sharePageTitle:w("widget.share")||"Share",locationPageTitle:w("widget.mobileSession.locationTracking")||"Location tracking",backLabel:w("back")||"Back",locationStatusLabel:w("widget.mobileSession.locationStatus")||"Status",locationPlace:null==(f=t.position)?void 0:f.placeName,locationUnknownLabel:w("write_and_speak.unknownPosition")||"Unknown position",locationEnableLabel:w("widget.shareLocation")||"Share location",locationDisableLabel:w("widget.mobileSession.disableLocationSharing")||"Disable location sharing",knownFactsDescription:w("knownFacts.description",{memoriName:(null==B?void 0:B.name)||""})||"",knownFactsCtaLabel:w("widget.mobileSession.openKnownFacts")||"Open full known facts",knownFactsCountLabel:w("widget.mobileSession.knownFactsMessages",{count:(null==(g=t.history)?void 0:g.length)||0})||"",shareContent:(0,ed.jsx)($S,{tenant:null==t?void 0:t.tenant,memori:null==t?void 0:t.memori,sessionID:null==t?void 0:t.sessionID,title:null==(v=null==t?void 0:t.memori)?void 0:v.name,baseUrl:null==t?void 0:t.baseUrl,align:"left",history:null==t?void 0:t.history,renderMode:"inline"}),knownFactsDisabled:!z,showSessionInfo:z,showKnownFacts:!!(null==(y=t.memori)?void 0:y.enableDeepThought)&&!!t.loginToken&&!!(null==(b=t.user)?void 0:b.pAndCUAccepted),showMessageConsumption:!!t.showMessageConsumption,history:null!=(_=t.history)?_:[],isLoggedIn:!!F,showLogin:!!t.showLogin,loginLabel:w("login.login")||"Log in",onLogin:()=>{t.setShowLoginDrawer(!0),N(!1)},onKnownFactsOpen:()=>{z&&(t.setShowKnownFactsDrawer(!0),N(!1))},onLocationEnable:()=>{if(t){if(!navigator.geolocation)return void t.setPositionPopoverOpen(!0);navigator.geolocation.getCurrentPosition(e=>{let n=e.coords.latitude,r=e.coords.longitude;t.setVenue({latitude:n,longitude:r,placeName:`${n.toFixed(5)}, ${r.toFixed(5)}`,uncertainty:e.coords.accuracy/1e3})},()=>{t.setPositionPopoverOpen(!0)},{enableHighAccuracy:!0,timeout:15e3,maximumAge:0})}},onLocationDisable:()=>{null==t||t.setVenue({latitude:0,longitude:0,placeName:"",uncertainty:0})},venue:t.position,setVenue:t.setVenue,logoutLabel:w("login.logout")||"Log out",onLogout:()=>{(()=>{if(t){if(F&&t.onLogout)return t.onLogout();t.setShowLoginDrawer(!0)}})(),N(!1)}}),(0,ed.jsxs)("div",{ref:D,className:`memori-fullpage-content-row${E&&I?" memori-fullpage-content-row--artifact-overlay":""}${P?" memori-fullpage-content-row--resizing":""}`,style:E?{"--memori-artifact-column-width":`${R}px`}:void 0,children:[(0,ed.jsxs)("div",{className:"memori--grid",children:[(0,ed.jsxs)("div",{className:"memori--grid-column memori--grid-column-left",hidden:E,children:[z&&H&&(0,ed.jsxs)("div",{className:"memori-fullpage-agent-status",role:"status","aria-live":"polite",children:[(0,ed.jsx)("span",{className:`memori-fullpage-agent-status--dot memori-fullpage-agent-status--dot-${H.key}`,"aria-hidden":"true"}),(0,ed.jsx)("span",{className:"memori-fullpage-agent-status--label",children:H.label})]}),n&&r&&(0,ed.jsx)(n,{chatProps:a,isZoomed:!0,...r}),(0,ed.jsx)("div",{id:"extension"})]}),(0,ed.jsx)("div",{className:"memori-chat-layout--main",children:(0,ed.jsx)("div",{className:S.isFullscreen?"memori-chat-layout-controls-hide":"memori-chat-layout--controls",children:c&&d&&i&&a?(0,ed.jsx)(i,{...a,footerBrand:p,showAiGeneratedNote:!0}):s?(0,ed.jsx)("div",{className:"memori-conversation-column",children:(0,ed.jsx)(o,{...s,footerBrand:p})}):null})})]}),(0,ed.jsx)("div",{className:`memori--grid-column-artifact${E?" memori--grid-column-artifact--open":""}`,children:E&&(0,ed.jsxs)(ed.Fragment,{children:[!A&&(0,ed.jsx)("div",{className:"memori-artifact-resize-handle",role:"separator","aria-orientation":"vertical","aria-label":w("artifact.resizeHandle")||"Resize artifact panel","aria-valuemin":360,"aria-valuemax":Math.round((null==(x=D.current)?void 0:x.getBoundingClientRect().width)||0)||void 0,"aria-valuenow":Math.round(R),tabIndex:0,onPointerDown:W,onPointerMove:q,onPointerUp:$,onPointerCancel:$,onKeyDown:J}),(0,ed.jsx)(Gs,{isLayoutColumn:!0})]})})]})]})]})};let JE={IT:{MALE:"it-IT-DiegoNeural",FEMALE:"it-IT-ElsaNeural"},DE:{MALE:"de-DE-ConradNeural",FEMALE:"de-DE-KatjaNeural"},EN:{MALE:"en-GB-RyanNeural",FEMALE:"en-GB-SoniaNeural"},ES:{MALE:"es-ES-AlvaroNeural",FEMALE:"es-ES-ElviraNeural"},FR:{MALE:"fr-FR-HenriNeural",FEMALE:"fr-FR-DeniseNeural"},PT:{MALE:"pt-PT-DuarteNeural",FEMALE:"pt-PT-RaquelNeural"},UK:{MALE:"uk-UA-OstapNeural",FEMALE:"uk-UA-PolinaNeural"},RU:{MALE:"ru-RU-DmitryNeural",FEMALE:"ru-RU-SvetlanaNeural"},PL:{MALE:"pl-PL-MarekNeural",FEMALE:"pl-PL-AgnieszkaNeural"},FI:{MALE:"fi-FI-HarriNeural",FEMALE:"fi-FI-SelmaNeural"},EL:{MALE:"el-GR-NestorasNeural",FEMALE:"el-GR-AthinaNeural"},AR:{MALE:"ar-SA-HamedNeural",FEMALE:"ar-SA-ZariyahNeural"},ZH:{MALE:"zh-CN-YunxiNeural",FEMALE:"zh-CN-XiaoxiaoNeural"},JA:{MALE:"ja-JP-KeitaNeural",FEMALE:"ja-JP-NanamiNeural"}},JA={MALE:"en-US-GuyNeural",FEMALE:"en-US-JennyNeural"},JT={DEFAULT:{MALE:"onyx",FEMALE:"nova",NEUTRAL:"alloy"},IT:{MALE:"echo",FEMALE:"nova"},ES:{MALE:"echo",FEMALE:"shimmer"},FR:{MALE:"echo",FEMALE:"fable"},PT:{MALE:"onyx",FEMALE:"shimmer"},DE:{MALE:"onyx",FEMALE:"fable"},EN:{MALE:"echo",FEMALE:"nova"},ZH:{MALE:"echo",FEMALE:"shimmer"},JA:{MALE:"echo",FEMALE:"nova"},RU:{MALE:"onyx",FEMALE:"fable"}};JA.FEMALE;function JI({text:e,preview:t=!1,...n}){return!!(e&&e.trim()&&!t&&!function({defaultEnableAudio:e,defaultSpeakerActive:t,autoStart:n,speakerMuted:r,storedMute:i}){return!e||!!r||!0===i||!1!==i&&(!e||!t||n)}(n))}let JC=async({operation:e="session_creation",baseUrl:t,userID:n,userName:r,tenant:i,characters:a})=>{if(!n&&!r)throw Error("Either userID or userName must be provided");if("import_document"===e&&null==a)throw Error("characters must be provided for import_document");let o=await fetch(`${t}/api/verify-tokens`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({operation:e,userID:n,userName:r,tenant:i,..."import_document"===e?{characters:a}:{}})});if(!o.ok)throw Error("Failed to fetch credits");return o.json()};var ep=eu("85Hg2");class JM extends Error{constructor(e,t,n){super(e),this.name="SpeechRequestError",this.status=t,this.code=n}}function JN(e){let t=e.sessionIdRef?e.sessionIdRef.current:e.sessionId,n=null==t?void 0:t.trim();if(!n)throw new JM("Missing required parameter: sessionId",401,"missing_session");return n}function JR(e,t,n){let r,i=t?t.trim().toLowerCase().replace(/^https?:\/\//,"").split("/")[0].split(":")[0]:"";if(!i)return;let a=null!=n?n:"u">typeof window?window.location.href:"http://localhost",o="";try{o=new URL(e,a).hostname.toLowerCase()}catch(e){return i}return!(r=o)||"localhost"===r||"127.0.0.1"===r||r.endsWith(".localhost")||i===o?i:void 0}async function JO(e){let t=await e.json().catch(()=>({})),n="string"==typeof t.error&&t.error.length>0?t.error:`API error: ${e.status}`,r="string"==typeof t.code?t.code:void 0;return new JM(n,e.status,r)}let JP={missing_session:"errors.speechMissingSession",invalid_session:"errors.speechInvalidSession",tenant_mismatch:"errors.speechTenantMismatch",rate_limited:"errors.speechRateLimited"};var ep=eu("85Hg2");let Jk=140,JL=e=>k7(Hr(e)).replace(/\s+/g," ").trim(),JD=e=>{let t=new Date(e);return t.setHours(0,0,0,0),t},JB=e=>{let t=null;for(let n of e){let e=Jt(n.timestamp);e&&(!t||e.getTime()>t.getTime())&&(t=e)}return t},JF=(e,t=new Date)=>{let n,r;return e.getTime()>=(r=(n=JD(t)).getDay(),n.setDate(n.getDate()-(r+6)%7),n).getTime()?{type:"thisWeek"}:{type:"month",year:e.getFullYear(),month:e.getMonth()}};var ep=eu("85Hg2");let JU={memoriID:"chat-resume-drawer",name:"AI",culture:"it-IT",coverURL:"",avatarURL:"",enableBoardOfExperts:!1},Jj=()=>{};var Jz=({isOpen:e,onClose:t,embedded:n=!1,session:r,isLoading:i=!1,showFunctionCache:a=!1,showMessageConsumption:o=!1,memori:s=JU})=>{let l=(0,ep.useMemo)(()=>r.messages.map(e=>{let t=e.attachment?`<document_attachment filename="${e.attachment.name.replaceAll('"',"&quot;")}" type="${e.attachment.type.replaceAll('"',"&quot;")}"></document_attachment>`:"",n="assistant"===e.role&&"interrupted"===e.status?"Risposta interrotta - sessione in pausa":e.content;return{fromUser:"user"===e.role,text:`${n}${t}`,timestamp:e.timestamp,media:e.media||[]}}),[r.messages]),u=(0,ed.jsxs)("div",{className:"memori-chat-resume-drawer--thread",children:[i&&(0,ed.jsx)("div",{className:"memori-chat-resume-drawer--skeletons",children:[0,1,2].map(e=>(0,ed.jsx)("div",{className:"memori-chat-resume-drawer--skeleton-bubble"},e))}),!i&&(0,ed.jsx)("div",{className:"memori-chat-resume-drawer--embedded-chat",children:(0,ed.jsx)(Vg,{memori:s,sessionID:"chat-resume-drawer",history:l,pushMessage:Jj,simulateUserPrompt:Jj,setSendOnEnter:Jj,setAttachmentsMenuOpen:Jj,onChangeUserMessage:Jj,sendMessage:Jj,setEnableFocusChatInput:Jj,stopAudio:Jj,startListening:Jj,stopListening:Jj,showInputs:!1,showAIicon:!0,showCopyButton:!0,isHistoryView:!0,isChatlogPanel:!0,showFunctionCache:a,showMessageConsumption:o})})]});return n?e?(0,ed.jsx)("div",{className:"memori-chat-resume-drawer--embedded-shell",children:u}):null:(0,ed.jsx)(xm,{open:e,onClose:t,className:"memori-chat-resume-drawer",anchor:"right",size:"md",showCloseButton:!1,title:k7(r.title),children:u})};let JH=e=>{let t=e.getFullYear(),n=String(e.getMonth()+1).padStart(2,"0"),r=String(e.getDate()).padStart(2,"0"),i=String(e.getHours()).padStart(2,"0"),a=String(e.getMinutes()).padStart(2,"0"),o=String(e.getSeconds()).padStart(2,"0"),s=String(e.getMilliseconds()).padStart(3,"0");return`${t}${n}${r}${i}${a}${o}${s}`},JG=e=>{var t,n,r,i;return!((null==(t=e.properties)?void 0:t.functionSignature)||(null==(n=e.properties)?void 0:n.functionCache))&&!(null!=(i=null==(r=e.mimeType)?void 0:r.startsWith("image/"))&&i)},JV=async(e,t,n,r)=>{try{return await Promise.all(e.map(async e=>({...e,lines:await Promise.all(e.lines.map(async e=>{if(!e.text)return e;try{let i=await GC(e.text,n,t,r);return{...e,originalText:e.text,text:i.text}}catch(t){return console.error("Error translating line:",t),e}}))})))}catch(t){return console.error("Error translating chat logs:",t),e}},JW=e=>(({title:e,lines:t})=>{let n=e?JL(e):"";if(n)return n;let r=t.find(e=>e.inbound&&JL(e.text||""));return(null==r?void 0:r.text)?((e,t=Jk)=>{if(e.length<=t)return e;let n=e.slice(0,t).trimEnd(),r=n.lastIndexOf(" "),i=r>.7*t?n.slice(0,r):n;return`${i}...`})(JL(r.text)):""})({title:e.title,lines:e.lines});var Jq=({open:e,onClose:t,apiClient:n,sessionId:r,memori:i,resumeSession:a,baseUrl:o,language:s,userLang:l,isMultilanguageEnabled:u=!1,showFunctionCache:c=!1,showMessageConsumption:d=!1,loginToken:h})=>{let{t:p,i18n:m}=tE(),{getUserChatLogsByTokenPaged:f}=n.chatLogs,[g,v]=(0,ep.useState)([]),[y,_]=(0,ep.useState)(null),[x,w]=(0,ep.useState)(""),S=k0(x,300),[E,A]=(0,ep.useState)(!1),[T,I]=(0,ep.useState)("all"),[C,M]=(0,ep.useState)(3),[N,R]=(0,ep.useState)(1),[O,P]=(0,ep.useState)(!1),[k,D]=(0,ep.useState)(!1),[B,F]=(0,ep.useState)(null),[U,j]=(0,ep.useState)(0),z=(0,ep.useMemo)(()=>{let e=0;return"all"!==T&&(e+=1),3!==C&&(e+=1),e},[T,C]),H=(0,ep.useCallback)(async({from:e=0,append:t=!1}={})=>{var n,r;if(!h)return void F(p("errorFetchingSession")||"Login token required to fetch chat history");t?D(!0):P(!0),F(null);try{let a="all"===T?void 0:(e=>{let t=new Date;if("today"===e)return{dateFrom:JH(new Date(t.getFullYear(),t.getMonth(),t.getDate()-1)),dateTo:JH(t)};if("yesterday"===e){let e=new Date(t.getFullYear(),t.getMonth(),t.getDate()-1);return{dateFrom:JH(new Date(e.getFullYear(),e.getMonth(),e.getDate()-2)),dateTo:JH(e)}}return"last_7_days"===e?{dateFrom:JH(new Date(t.getFullYear(),t.getMonth(),t.getDate()-7)),dateTo:JH(t)}:{dateFrom:JH(new Date(t.getFullYear(),t.getMonth(),t.getDate()-30)),dateTo:JH(t)}})(T),c=await f({loginToken:h,memoriID:i.engineMemoriID,from:e,howMany:8,filter:S,dateFrom:null==a?void 0:a.dateFrom,dateTo:null==a?void 0:a.dateTo,minimumMessagesPerChat:0===C?N:C}),d=c.chatLogs||[];s.toUpperCase()!==l.toUpperCase()&&u&&(d=await JV(d,s,l,o));let p=null!=(r=null!=(n=c.count)?n:c.totalItems)?r:d.length;j(p),v(e=>t?[...e,...d]:d)}catch(e){F(p("errorFetchingSession")||"Error loading chat history"),console.error("Error fetching chat logs:",e)}finally{P(!1),D(!1)}},[h,i.engineMemoriID,S,T,C,N,s,l,u,o,f]);(0,ep.useEffect)(()=>{e||(_(null),w(""),A(!1),I("all"),M(3),R(1))},[e]),(0,ep.useEffect)(()=>{e&&H({from:0})},[e,H]);let G=e=>{var t,n;let r,a,o;t=`${p("write_and_speak.conversationStartedLabel")} ${new Intl.DateTimeFormat(m.language,{dateStyle:"short",timeStyle:"short"}).format(new Date)}
1068
+ `})(i,r,a),s=window.open("","_blank","width=800,height=600,scrollbars=yes,resizable=yes");if(!s)throw Error("Popup blocked! Please enable popups to export PDF.");s.document.write(o),s.document.close(),s.document.title=r,setTimeout(()=>{s&&!s.closed&&(s.focus(),s.print(),setTimeout(()=>{s&&!s.closed&&s.close()},1e3))},500),P("export-pdf")}catch(e){console.error("PDF export error:",e),g(v7({description:m("exportChatHistory.error")||"Failed to export chat to PDF. Please try again.",severity:"error"}))}finally{x(!1)}},H=(0,ep.useMemo)(()=>{if(t&&n){if(t.ownerUserID)return`${null!=a?a:"https://www.aisuru.com"}/${"it"===f.language?"it":"en"}/shared/${t.ownerUserID}/${t.memoriID}/${n}`;if(t.exposed)return`${null!=a?a:"https://www.aisuru.com"}/${"it"===f.language?"it":"en"}/shared/${t.ownerUserName}/${t.name}/${n}`}},[t,n,a,f.language]),G=(0,ed.jsxs)(ed.Fragment,{children:[(0,ed.jsxs)("div",{className:"memori-share-button--dropdown-section memori-share-button--dropdown-section-primary",children:[t&&n&&H&&(0,ed.jsxs)("button",{type:"button",className:(b(tA))("memori-share-button--inline-item",{"memori-share-button--menu-item--flash":"share-chat"===T}),onClick:()=>{window.open(H,"_blank"),P("share-chat")},children:[(0,ed.jsx)($s,{}),(0,ed.jsx)("span",{children:m("widget.shareChat")||"Share chat"})]}),l&&l.length>0&&(0,ed.jsxs)("button",{type:"button",className:(b(tA))("memori-share-button--inline-item",{"memori-share-button--menu-item--flash":"export-pdf"===T}),onClick:z,disabled:_,children:[(0,ed.jsx)(Hh,{}),(0,ed.jsx)("span",{children:_?m("exportChatHistory.exporting")||"Exporting...":m("exportChatHistory.exportPDF")||"Export chat as PDF"})]}),(0,ed.jsxs)("button",{type:"button",className:(b(tA))("memori-share-button--inline-item",{"memori-share-button--copy-item--success":"success"===E,"memori-share-button--copy-item--error":"error"===E}),onClick:D,children:["success"===E?(0,ed.jsx)(Lo,{strokeWidth:2.5}):(0,ed.jsx)(HZ,{}),(0,ed.jsx)("span",{children:"success"===E?m("copied"):"error"===E?m("copyFailed",{defaultValue:"Could not copy"}):m("copyToClipboard")||void 0})]})]}),(0,ed.jsx)("div",{className:"memori-share-button--dropdown-divider"}),(0,ed.jsx)("div",{className:"memori-share-button--dropdown-section memori-share-button--dropdown-section-social",children:F.map(e=>{let t=e.icon;return(0,ed.jsxs)("button",{type:"button",className:(b(tA))("memori-share-button--inline-item",{"memori-share-button--menu-item--flash":T===e.id}),onClick:()=>{j(e),P(e.id)},children:[(0,ed.jsx)(t,{"aria-hidden":!0}),(0,ed.jsx)("span",{children:e.title})]},e.id)})}),o&&(0,ed.jsxs)(ed.Fragment,{children:[(0,ed.jsx)("div",{className:"memori-share-button--dropdown-divider"}),(0,ed.jsxs)("div",{className:"memori-share-button--qr-content",children:[(0,ed.jsx)($v,{id:"qr-canvas",value:null!=v?v:"",size:96,bgColor:"#ffffff",fgColor:"#000000",level:"H",includeMargin:!1,imageSettings:{src:B,x:void 0,y:void 0,height:24,width:24,excavate:!0}}),(0,ed.jsxs)("button",{type:"button",className:"memori-share-button--qr-download",onClick:U,children:[(0,ed.jsx)(HQ,{"aria-hidden":!0}),(0,ed.jsx)("span",{children:m("widget.downloadQrCode")||m("download",{defaultValue:"Download"})})]})]})]})]});return"inline"===p?(0,ed.jsx)("div",{className:(b(tA))("memori-share-button--inline-list",u),children:G}):(0,ed.jsxs)(xp,{onOpenChange:e=>{S(e),e||(R(),O(),A("idle"))},className:(b(tA))("memori-share-button",{"memori-share-button--align-left":"left"===s},u),children:[(0,ed.jsx)(_z,{content:m("widget.share")||void 0,placement:"bottom",children:(0,ed.jsx)(xp.Trigger,{showChevron:!1,className:"memori-share-button--trigger",render:e=>(0,ed.jsx)(Gi,{...e,variant:h,active:w,title:String(d||m("widget.share")||"Share"),"aria-label":String(d||m("widget.share")||"Share"),icon:(0,ed.jsx)($s,{"aria-hidden":!0}),className:(b(tA))({"memori-share-button--trigger-menu-item":"menu-item"===c}),children:"menu-item"===c||d?(0,ed.jsx)("span",{className:"memori-header--action-label",children:d||m("widget.share")}):void 0})})}),(0,ed.jsx)(xp.Menu,{className:"memori-share-button--dropdown-menu",children:(0,ed.jsxs)("div",{ref:N,className:"memori-share-button--dropdown-content",onMouseLeave:()=>{var e;let t=document.activeElement;t instanceof HTMLElement&&(null==(e=N.current)?void 0:e.contains(t))&&t.blur()},children:[(0,ed.jsxs)("div",{className:"memori-share-button--dropdown-section",children:[t&&n&&H&&(0,ed.jsx)(xp.Item,{closeOnClick:!1,className:(b(tA))("memori-share-button--menu-item",{"memori-share-button--menu-item--flash":"share-chat"===T}),onClick:()=>{window.open(H,"_blank"),P("share-chat")},icon:(0,ed.jsx)($s,{}),children:(0,ed.jsx)("span",{className:"memori-share-button--dropdown-item-content",children:m("widget.shareChat")||"Share chat"})},"shared"),l&&l.length>0&&(0,ed.jsx)(xp.Item,{closeOnClick:!1,className:(b(tA))("memori-share-button--menu-item",{"memori-share-button--menu-item--flash":"export-pdf"===T}),onClick:z,disabled:_,icon:(0,ed.jsx)(Hh,{}),children:(0,ed.jsx)("span",{className:"memori-share-button--dropdown-item-content",children:_?m("exportChatHistory.exporting")||"Exporting...":m("exportChatHistory.exportPDF")||"Export chat as PDF"})},"export-pdf"),(0,ed.jsx)(xp.Item,{closeOnClick:!1,className:(b(tA))("memori-share-button--menu-item","memori-share-button--copy-item",{"memori-share-button--copy-item--success":"success"===E,"memori-share-button--copy-item--error":"error"===E}),onClick:D,icon:"success"===E?(0,ed.jsx)(Lo,{className:"memori-share-button--copy-icon","aria-hidden":!0,strokeWidth:2.5}):(0,ed.jsx)(HZ,{className:"memori-share-button--copy-icon","aria-hidden":!0}),children:(0,ed.jsx)("span",{className:"memori-share-button--dropdown-item-content memori-share-button--copy-label","aria-live":"polite",children:"success"===E?m("copied"):"error"===E?m("copyFailed",{defaultValue:"Could not copy"}):m("copyToClipboard")||void 0})})]}),(0,ed.jsx)("div",{className:"memori-share-button--dropdown-divider"}),(0,ed.jsx)("div",{className:"memori-share-button--dropdown-section",children:F.map(e=>{let t=e.icon;return(0,ed.jsx)(xp.Item,{closeOnClick:!1,className:(b(tA))("memori-share-button--menu-item",{"memori-share-button--menu-item--flash":T===e.id}),onClick:()=>{j(e),P(e.id)},icon:(0,ed.jsx)(t,{}),children:(0,ed.jsx)("span",{className:"memori-share-button--dropdown-item-content",children:e.title})},e.id)})}),o&&(0,ed.jsxs)(ed.Fragment,{children:[(0,ed.jsx)("div",{className:"memori-share-button--dropdown-divider"}),(0,ed.jsx)(xp.Item,{closeOnClick:!1,className:(b(tA))("memori-share-button--menu-item","memori-share-button--qr-item",{"memori-share-button--menu-item--flash":"qr-download"===T}),onClick:U,children:(0,ed.jsxs)("div",{className:"memori-share-button--qr-content",children:[(0,ed.jsx)($v,{id:"qr-canvas",value:null!=v?v:"",size:128,bgColor:"#ffffff",fgColor:"#000000",level:"H",includeMargin:!1,imageSettings:{src:B,x:void 0,y:void 0,height:32,width:32,excavate:!0}}),(0,ed.jsxs)("button",{type:"button",className:"memori-share-button--qr-download",onClick:e=>{e.stopPropagation(),U()},children:[(0,ed.jsx)(HQ,{"aria-hidden":!0}),(0,ed.jsx)("span",{children:String(m("widget.downloadQrCode")||m("download",{defaultValue:"Download"}))})]})]})})]})]})})]})},ep=eu("85Hg2");let $E=Math.PI/180;var ep=(eu("85Hg2"),eu("85Hg2"));let $A=(0,ep.createContext)(null),$T=$A.Provider;function $I(){let e=(0,ep.useContext)($A);if(null==e)throw Error("No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>");return e}var ep=eu("85Hg2"),$C={};!function(e){"use strict";function t(e){var t,n,r,i;for(n=1,r=arguments.length;n<r;n++)for(t in i=arguments[n])e[t]=i[t];return e}var n,r,i,a,o,s,l,u,c,d,h=Object.create||function(){function e(){}return function(t){return e.prototype=t,new e}}();function p(e,t){var n=Array.prototype.slice;if(e.bind)return e.bind.apply(e,n.call(arguments,1));var r=n.call(arguments,2);return function(){return e.apply(t,r.length?r.concat(n.call(arguments)):arguments)}}var m=0;function f(e){return"_leaflet_id"in e||(e._leaflet_id=++m),e._leaflet_id}function g(e,t,n){var r,i,a,o;return o=function(){r=!1,i&&(a.apply(n,i),i=!1)},a=function(){r?i=arguments:(e.apply(n,arguments),setTimeout(o,t),r=!0)}}function v(e,t,n){var r=t[1],i=t[0],a=r-i;return e===r&&n?e:((e-i)%a+a)%a+i}function y(){return!1}function b(e,t){if(!1===t)return e;var n=Math.pow(10,void 0===t?6:t);return Math.round(e*n)/n}function _(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function x(e){return _(e).split(/\s+/)}function w(e,t){for(var n in Object.prototype.hasOwnProperty.call(e,"options")||(e.options=e.options?h(e.options):{}),t)e.options[n]=t[n];return e.options}function S(e,t,n){var r=[];for(var i in e)r.push(encodeURIComponent(n?i.toUpperCase():i)+"="+encodeURIComponent(e[i]));return(t&&-1!==t.indexOf("?")?"&":"?")+r.join("&")}var E=/\{ *([\w_ -]+) *\}/g;function A(e,t){return e.replace(E,function(e,n){var r=t[n];if(void 0===r)throw Error("No value provided for variable "+e);return"function"==typeof r&&(r=r(t)),r})}var T=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function I(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return n;return -1}var C="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function M(e){return window["webkit"+e]||window["moz"+e]||window["ms"+e]}var N=0;function R(e){var t=+new Date,n=Math.max(0,16-(t-N));return N=t+n,window.setTimeout(e,n)}var O=window.requestAnimationFrame||M("RequestAnimationFrame")||R,P=window.cancelAnimationFrame||M("CancelAnimationFrame")||M("CancelRequestAnimationFrame")||function(e){window.clearTimeout(e)};function k(e,t,n){if(!n||O!==R)return O.call(window,p(e,t));e.call(t)}function D(e){e&&P.call(window,e)}function B(){}B.extend=function(e){var n=function(){w(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},r=n.__super__=this.prototype,i=h(r);for(var a in i.constructor=n,n.prototype=i,this)Object.prototype.hasOwnProperty.call(this,a)&&"prototype"!==a&&"__super__"!==a&&(n[a]=this[a]);return e.statics&&t(n,e.statics),e.includes&&(function(e){if("u">typeof L&&L&&L.Mixin){e=T(e)?e:[e];for(var t=0;t<e.length;t++)e[t]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",Error().stack)}}(e.includes),t.apply(null,[i].concat(e.includes))),t(i,e),delete i.statics,delete i.includes,i.options&&(i.options=r.options?h(r.options):{},t(i.options,e.options)),i._initHooks=[],i.callInitHooks=function(){if(!this._initHooksCalled){r.callInitHooks&&r.callInitHooks.call(this),this._initHooksCalled=!0;for(var e=0,t=i._initHooks.length;e<t;e++)i._initHooks[e].call(this)}},n},B.include=function(e){var n=this.prototype.options;return t(this.prototype,e),e.options&&(this.prototype.options=n,this.mergeOptions(e.options)),this},B.mergeOptions=function(e){return t(this.prototype.options,e),this},B.addInitHook=function(e){var t=Array.prototype.slice.call(arguments,1),n="function"==typeof e?e:function(){this[e].apply(this,t)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(n),this};var F={on:function(e,t,n){if("object"==typeof e)for(var r in e)this._on(r,e[r],t);else{e=x(e);for(var i=0,a=e.length;i<a;i++)this._on(e[i],t,n)}return this},off:function(e,t,n){if(arguments.length)if("object"==typeof e)for(var r in e)this._off(r,e[r],t);else{e=x(e);for(var i=1==arguments.length,a=0,o=e.length;a<o;a++)i?this._off(e[a]):this._off(e[a],t,n)}else delete this._events;return this},_on:function(e,t,n,r){if("function"!=typeof t)return void console.warn("wrong listener type: "+typeof t);if(!1===this._listens(e,t,n)){n===this&&(n=void 0);var i={fn:t,ctx:n};r&&(i.once=!0),this._events=this._events||{},this._events[e]=this._events[e]||[],this._events[e].push(i)}},_off:function(e,t,n){if(this._events&&(r=this._events[e])){if(1==arguments.length){if(this._firingCount)for(i=0,a=r.length;i<a;i++)r[i].fn=y;delete this._events[e];return}if("function"!=typeof t)return void console.warn("wrong listener type: "+typeof t);var r,i,a,o=this._listens(e,t,n);if(!1!==o){var s=r[o];this._firingCount&&(s.fn=y,this._events[e]=r=r.slice()),r.splice(o,1)}}},fire:function(e,n,r){if(!this.listens(e,r))return this;var i=t({},n,{type:e,target:this,sourceTarget:n&&n.sourceTarget||this});if(this._events){var a=this._events[e];if(a){this._firingCount=this._firingCount+1||1;for(var o=0,s=a.length;o<s;o++){var l=a[o],u=l.fn;l.once&&this.off(e,u,l.ctx),u.call(l.ctx||this,i)}this._firingCount--}}return r&&this._propagateEvent(i),this},listens:function(e,t,n,r){"string"!=typeof e&&console.warn('"string" type argument expected');var i=t;"function"!=typeof t&&(r=!!t,i=void 0,n=void 0);var a=this._events&&this._events[e];if(a&&a.length&&!1!==this._listens(e,i,n))return!0;if(r){for(var o in this._eventParents)if(this._eventParents[o].listens(e,t,n,r))return!0}return!1},_listens:function(e,t,n){if(!this._events)return!1;var r=this._events[e]||[];if(!t)return!!r.length;n===this&&(n=void 0);for(var i=0,a=r.length;i<a;i++)if(r[i].fn===t&&r[i].ctx===n)return i;return!1},once:function(e,t,n){if("object"==typeof e)for(var r in e)this._on(r,e[r],t,!0);else{e=x(e);for(var i=0,a=e.length;i<a;i++)this._on(e[i],t,n,!0)}return this},addEventParent:function(e){return this._eventParents=this._eventParents||{},this._eventParents[f(e)]=e,this},removeEventParent:function(e){return this._eventParents&&delete this._eventParents[f(e)],this},_propagateEvent:function(e){for(var n in this._eventParents)this._eventParents[n].fire(e.type,t({layer:e.target,propagatedFrom:e.target},e),!0)}};F.addEventListener=F.on,F.removeEventListener=F.clearAllEventListeners=F.off,F.addOneTimeEventListener=F.once,F.fireEvent=F.fire,F.hasEventListeners=F.listens;var U=B.extend(F);function j(e,t,n){this.x=n?Math.round(e):e,this.y=n?Math.round(t):t}var z=Math.trunc||function(e){return e>0?Math.floor(e):Math.ceil(e)};function H(e,t,n){return e instanceof j?e:T(e)?new j(e[0],e[1]):null==e?e:"object"==typeof e&&"x"in e&&"y"in e?new j(e.x,e.y):new j(e,t,n)}function G(e,t){if(e)for(var n=t?[e,t]:e,r=0,i=n.length;r<i;r++)this.extend(n[r])}function V(e,t){return!e||e instanceof G?e:new G(e,t)}function W(e,t){if(e)for(var n=t?[e,t]:e,r=0,i=n.length;r<i;r++)this.extend(n[r])}function q(e,t){return e instanceof W?e:new W(e,t)}function $(e,t,n){if(isNaN(e)||isNaN(t))throw Error("Invalid LatLng object: ("+e+", "+t+")");this.lat=+e,this.lng=+t,void 0!==n&&(this.alt=+n)}function J(e,t,n){return e instanceof $?e:T(e)&&"object"!=typeof e[0]?3===e.length?new $(e[0],e[1],e[2]):2===e.length?new $(e[0],e[1]):null:null==e?e:"object"==typeof e&&"lat"in e?new $(e.lat,"lng"in e?e.lng:e.lon,e.alt):void 0===t?null:new $(e,t,n)}j.prototype={clone:function(){return new j(this.x,this.y)},add:function(e){return this.clone()._add(H(e))},_add:function(e){return this.x+=e.x,this.y+=e.y,this},subtract:function(e){return this.clone()._subtract(H(e))},_subtract:function(e){return this.x-=e.x,this.y-=e.y,this},divideBy:function(e){return this.clone()._divideBy(e)},_divideBy:function(e){return this.x/=e,this.y/=e,this},multiplyBy:function(e){return this.clone()._multiplyBy(e)},_multiplyBy:function(e){return this.x*=e,this.y*=e,this},scaleBy:function(e){return new j(this.x*e.x,this.y*e.y)},unscaleBy:function(e){return new j(this.x/e.x,this.y/e.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=z(this.x),this.y=z(this.y),this},distanceTo:function(e){var t=(e=H(e)).x-this.x,n=e.y-this.y;return Math.sqrt(t*t+n*n)},equals:function(e){return(e=H(e)).x===this.x&&e.y===this.y},contains:function(e){return Math.abs((e=H(e)).x)<=Math.abs(this.x)&&Math.abs(e.y)<=Math.abs(this.y)},toString:function(){return"Point("+b(this.x)+", "+b(this.y)+")"}},G.prototype={extend:function(e){var t,n;if(!e)return this;if(e instanceof j||"number"==typeof e[0]||"x"in e)t=n=H(e);else if(t=(e=V(e)).min,n=e.max,!t||!n)return this;return this.min||this.max?(this.min.x=Math.min(t.x,this.min.x),this.max.x=Math.max(n.x,this.max.x),this.min.y=Math.min(t.y,this.min.y),this.max.y=Math.max(n.y,this.max.y)):(this.min=t.clone(),this.max=n.clone()),this},getCenter:function(e){return H((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,e)},getBottomLeft:function(){return H(this.min.x,this.max.y)},getTopRight:function(){return H(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(e){var t,n;return(e="number"==typeof e[0]||e instanceof j?H(e):V(e))instanceof G?(t=e.min,n=e.max):t=n=e,t.x>=this.min.x&&n.x<=this.max.x&&t.y>=this.min.y&&n.y<=this.max.y},intersects:function(e){e=V(e);var t=this.min,n=this.max,r=e.min,i=e.max,a=i.x>=t.x&&r.x<=n.x,o=i.y>=t.y&&r.y<=n.y;return a&&o},overlaps:function(e){e=V(e);var t=this.min,n=this.max,r=e.min,i=e.max,a=i.x>t.x&&r.x<n.x,o=i.y>t.y&&r.y<n.y;return a&&o},isValid:function(){return!!(this.min&&this.max)},pad:function(e){var t=this.min,n=this.max,r=Math.abs(t.x-n.x)*e,i=Math.abs(t.y-n.y)*e;return V(H(t.x-r,t.y-i),H(n.x+r,n.y+i))},equals:function(e){return!!e&&(e=V(e),this.min.equals(e.getTopLeft())&&this.max.equals(e.getBottomRight()))}},W.prototype={extend:function(e){var t,n,r=this._southWest,i=this._northEast;if(e instanceof $)t=e,n=e;else if(!(e instanceof W))return e?this.extend(J(e)||q(e)):this;else if(t=e._southWest,n=e._northEast,!t||!n)return this;return r||i?(r.lat=Math.min(t.lat,r.lat),r.lng=Math.min(t.lng,r.lng),i.lat=Math.max(n.lat,i.lat),i.lng=Math.max(n.lng,i.lng)):(this._southWest=new $(t.lat,t.lng),this._northEast=new $(n.lat,n.lng)),this},pad:function(e){var t=this._southWest,n=this._northEast,r=Math.abs(t.lat-n.lat)*e,i=Math.abs(t.lng-n.lng)*e;return new W(new $(t.lat-r,t.lng-i),new $(n.lat+r,n.lng+i))},getCenter:function(){return new $((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new $(this.getNorth(),this.getWest())},getSouthEast:function(){return new $(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(e){e="number"==typeof e[0]||e instanceof $||"lat"in e?J(e):q(e);var t,n,r=this._southWest,i=this._northEast;return e instanceof W?(t=e.getSouthWest(),n=e.getNorthEast()):t=n=e,t.lat>=r.lat&&n.lat<=i.lat&&t.lng>=r.lng&&n.lng<=i.lng},intersects:function(e){e=q(e);var t=this._southWest,n=this._northEast,r=e.getSouthWest(),i=e.getNorthEast(),a=i.lat>=t.lat&&r.lat<=n.lat,o=i.lng>=t.lng&&r.lng<=n.lng;return a&&o},overlaps:function(e){e=q(e);var t=this._southWest,n=this._northEast,r=e.getSouthWest(),i=e.getNorthEast(),a=i.lat>t.lat&&r.lat<n.lat,o=i.lng>t.lng&&r.lng<n.lng;return a&&o},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(e,t){return!!e&&(e=q(e),this._southWest.equals(e.getSouthWest(),t)&&this._northEast.equals(e.getNorthEast(),t))},isValid:function(){return!!(this._southWest&&this._northEast)}},$.prototype={equals:function(e,t){return!!e&&(e=J(e),Math.max(Math.abs(this.lat-e.lat),Math.abs(this.lng-e.lng))<=(void 0===t?1e-9:t))},toString:function(e){return"LatLng("+b(this.lat,e)+", "+b(this.lng,e)+")"},distanceTo:function(e){return Y.distance(this,J(e))},wrap:function(){return Y.wrapLatLng(this)},toBounds:function(e){var t=180*e/0x2637f09,n=t/Math.cos(Math.PI/180*this.lat);return q([this.lat-t,this.lng-n],[this.lat+t,this.lng+n])},clone:function(){return new $(this.lat,this.lng,this.alt)}};var K={latLngToPoint:function(e,t){var n=this.projection.project(e),r=this.scale(t);return this.transformation._transform(n,r)},pointToLatLng:function(e,t){var n=this.scale(t),r=this.transformation.untransform(e,n);return this.projection.unproject(r)},project:function(e){return this.projection.project(e)},unproject:function(e){return this.projection.unproject(e)},scale:function(e){return 256*Math.pow(2,e)},zoom:function(e){return Math.log(e/256)/Math.LN2},getProjectedBounds:function(e){if(this.infinite)return null;var t=this.projection.bounds,n=this.scale(e);return new G(this.transformation.transform(t.min,n),this.transformation.transform(t.max,n))},infinite:!1,wrapLatLng:function(e){var t=this.wrapLng?v(e.lng,this.wrapLng,!0):e.lng;return new $(this.wrapLat?v(e.lat,this.wrapLat,!0):e.lat,t,e.alt)},wrapLatLngBounds:function(e){var t=e.getCenter(),n=this.wrapLatLng(t),r=t.lat-n.lat,i=t.lng-n.lng;if(0===r&&0===i)return e;var a=e.getSouthWest(),o=e.getNorthEast();return new W(new $(a.lat-r,a.lng-i),new $(o.lat-r,o.lng-i))}},Y=t({},K,{wrapLng:[-180,180],R:6371e3,distance:function(e,t){var n=Math.PI/180,r=e.lat*n,i=t.lat*n,a=Math.sin((t.lat-e.lat)*n/2),o=Math.sin((t.lng-e.lng)*n/2),s=a*a+Math.cos(r)*Math.cos(i)*o*o,l=2*Math.atan2(Math.sqrt(s),Math.sqrt(1-s));return this.R*l}}),X={R:6378137,MAX_LATITUDE:85.0511287798,project:function(e){var t=Math.PI/180,n=this.MAX_LATITUDE,r=Math.sin(Math.max(Math.min(n,e.lat),-n)*t);return new j(this.R*e.lng*t,this.R*Math.log((1+r)/(1-r))/2)},unproject:function(e){var t=180/Math.PI;return new $((2*Math.atan(Math.exp(e.y/this.R))-Math.PI/2)*t,e.x*t/this.R)},bounds:new G([-(l=6378137*Math.PI),-l],[l,l])};function Z(e,t,n,r){if(T(e)){this._a=e[0],this._b=e[1],this._c=e[2],this._d=e[3];return}this._a=e,this._b=t,this._c=n,this._d=r}function Q(e,t,n,r){return new Z(e,t,n,r)}Z.prototype={transform:function(e,t){return this._transform(e.clone(),t)},_transform:function(e,t){return e.x=(t=t||1)*(this._a*e.x+this._b),e.y=t*(this._c*e.y+this._d),e},untransform:function(e,t){return t=t||1,new j((e.x/t-this._b)/this._a,(e.y/t-this._d)/this._c)}};var ee=t({},Y,{code:"EPSG:3857",projection:X,transformation:Q(u=.5/(Math.PI*X.R),.5,-u,.5)}),et=t({},ee,{code:"EPSG:900913"});function en(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function er(e,t){var n,r,i,a,o,s,l="";for(n=0,i=e.length;n<i;n++){for(r=0,a=(o=e[n]).length;r<a;r++)s=o[r],l+=(r?"L":"M")+s.x+" "+s.y;l+=t?eD.svg?"z":"x":""}return l||"M0 0"}var ei=document.documentElement.style,ea="ActiveXObject"in window,eo=ea&&!document.addEventListener,es="msLaunchUri"in navigator&&!("documentMode"in document),el=eL("webkit"),eu=eL("android"),ec=eL("android 2")||eL("android 3"),ed=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),eh=eu&&eL("Google")&&ed<537&&!("AudioNode"in window),ep=!!window.opera,em=!es&&eL("chrome"),ef=eL("gecko")&&!el&&!ep&&!ea,eg=!em&&eL("safari"),ev=eL("phantom"),ey="OTransition"in ei,eb=0===navigator.platform.indexOf("Win"),e_=ea&&"transition"in ei,ex="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!ec,ew="MozPerspective"in ei,eS=!window.L_DISABLE_3D&&(e_||ex||ew)&&!ey&&!ev,eE="u">typeof orientation||eL("mobile"),eA=!window.PointerEvent&&window.MSPointerEvent,eT=!!(window.PointerEvent||eA),eI="ontouchstart"in window||!!window.TouchEvent,eC=!window.L_NO_TOUCH&&(eI||eT),eM=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,eN=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("testPassiveEventSupport",y,t),window.removeEventListener("testPassiveEventSupport",y,t)}catch(e){}return e}(),eR=!!document.createElement("canvas").getContext,eO=!!(document.createElementNS&&en("svg").createSVGRect),eP=!!eO&&((c=document.createElement("div")).innerHTML="<svg/>","http://www.w3.org/2000/svg"===(c.firstChild&&c.firstChild.namespaceURI)),ek=!eO&&function(){try{var e=document.createElement("div");e.innerHTML='<v:shape adj="1"/>';var t=e.firstChild;return t.style.behavior="url(#default#VML)",t&&"object"==typeof t.adj}catch(e){return!1}}();function eL(e){return navigator.userAgent.toLowerCase().indexOf(e)>=0}var eD={ie:ea,ielt9:eo,edge:es,webkit:el,android:eu,android23:ec,androidStock:eh,opera:ep,chrome:em,gecko:ef,safari:eg,phantom:ev,opera12:ey,win:eb,ie3d:e_,webkit3d:ex,gecko3d:ew,any3d:eS,mobile:eE,mobileWebkit:eE&&el,mobileWebkit3d:eE&&ex,msPointer:eA,pointer:eT,touch:eC,touchNative:eI,mobileOpera:eE&&ep,mobileGecko:eE&&ef,retina:eM,passiveEvents:eN,canvas:eR,svg:eO,vml:ek,inlineSvg:eP,mac:0===navigator.platform.indexOf("Mac"),linux:0===navigator.platform.indexOf("Linux")},eB=eD.msPointer?"MSPointerDown":"pointerdown",eF=eD.msPointer?"MSPointerMove":"pointermove",eU=eD.msPointer?"MSPointerUp":"pointerup",ej=eD.msPointer?"MSPointerCancel":"pointercancel",ez={touchstart:eB,touchmove:eF,touchend:eU,touchcancel:ej},eH={touchstart:function(e,t){t.MSPOINTER_TYPE_TOUCH&&t.pointerType===t.MSPOINTER_TYPE_TOUCH&&tw(t),eJ(e,t)},touchmove:eJ,touchend:eJ,touchcancel:eJ},eG={},eV=!1;function eW(e){eG[e.pointerId]=e}function eq(e){eG[e.pointerId]&&(eG[e.pointerId]=e)}function e$(e){delete eG[e.pointerId]}function eJ(e,t){if(t.pointerType!==(t.MSPOINTER_TYPE_MOUSE||"mouse")){for(var n in t.touches=[],eG)t.touches.push(eG[n]);t.changedTouches=[t],e(t)}}var eK=tt(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),eY=tt(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),eX="webkitTransition"===eY||"OTransition"===eY?eY+"End":"transitionend";function eZ(e){return"string"==typeof e?document.getElementById(e):e}function eQ(e,t){var n=e.style[t]||e.currentStyle&&e.currentStyle[t];if((!n||"auto"===n)&&document.defaultView){var r=document.defaultView.getComputedStyle(e,null);n=r?r[t]:null}return"auto"===n?null:n}function e0(e,t,n){var r=document.createElement(e);return r.className=t||"",n&&n.appendChild(r),r}function e1(e){var t=e.parentNode;t&&t.removeChild(e)}function e2(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function e3(e){var t=e.parentNode;t&&t.lastChild!==e&&t.appendChild(e)}function e4(e){var t=e.parentNode;t&&t.firstChild!==e&&t.insertBefore(e,t.firstChild)}function e5(e,t){if(void 0!==e.classList)return e.classList.contains(t);var n=e9(e);return n.length>0&&RegExp("(^|\\s)"+t+"(\\s|$)").test(n)}function e6(e,t){if(void 0!==e.classList)for(var n=x(t),r=0,i=n.length;r<i;r++)e.classList.add(n[r]);else if(!e5(e,t)){var a=e9(e);e7(e,(a?a+" ":"")+t)}}function e8(e,t){void 0!==e.classList?e.classList.remove(t):e7(e,_((" "+e9(e)+" ").replace(" "+t+" "," ")))}function e7(e,t){void 0===e.className.baseVal?e.className=t:e.className.baseVal=t}function e9(e){return e.correspondingElement&&(e=e.correspondingElement),void 0===e.className.baseVal?e.className:e.className.baseVal}function te(e,t){"opacity"in e.style?e.style.opacity=t:"filter"in e.style&&function(e,t){var n=!1,r="DXImageTransform.Microsoft.Alpha";try{n=e.filters.item(r)}catch(e){if(1===t)return}t=Math.round(100*t),n?(n.Enabled=100!==t,n.Opacity=t):e.style.filter+=" progid:"+r+"(opacity="+t+")"}(e,t)}function tt(e){for(var t=document.documentElement.style,n=0;n<e.length;n++)if(e[n]in t)return e[n];return!1}function tn(e,t,n){var r=t||new j(0,0);e.style[eK]=(eD.ie3d?"translate("+r.x+"px,"+r.y+"px)":"translate3d("+r.x+"px,"+r.y+"px,0)")+(n?" scale("+n+")":"")}function tr(e,t){e._leaflet_pos=t,eD.any3d?tn(e,t):(e.style.left=t.x+"px",e.style.top=t.y+"px")}function ti(e){return e._leaflet_pos||new j(0,0)}if("onselectstart"in document)n=function(){th(window,"selectstart",tw)},r=function(){tm(window,"selectstart",tw)};else{var ta=tt(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);n=function(){if(ta){var e=document.documentElement.style;i=e[ta],e[ta]="none"}},r=function(){ta&&(document.documentElement.style[ta]=i,i=void 0)}}function to(){th(window,"dragstart",tw)}function ts(){tm(window,"dragstart",tw)}function tl(e){for(;-1===e.tabIndex;)e=e.parentNode;e.style&&(tu(),a=e,o=e.style.outlineStyle,e.style.outlineStyle="none",th(window,"keydown",tu))}function tu(){a&&(a.style.outlineStyle=o,a=void 0,o=void 0,tm(window,"keydown",tu))}function tc(e){do e=e.parentNode;while((!e.offsetWidth||!e.offsetHeight)&&e!==document.body)return e}function td(e){var t=e.getBoundingClientRect();return{x:t.width/e.offsetWidth||1,y:t.height/e.offsetHeight||1,boundingClientRect:t}}function th(e,t,n,r){if(t&&"object"==typeof t)for(var i in t)tv(e,i,t[i],n);else{t=x(t);for(var a=0,o=t.length;a<o;a++)tv(e,t[a],n,r)}return this}var tp="_leaflet_events";function tm(e,t,n,r){if(1==arguments.length)tf(e),delete e[tp];else if(t&&"object"==typeof t)for(var i in t)ty(e,i,t[i],n);else if(t=x(t),2==arguments.length)tf(e,function(e){return -1!==I(t,e)});else for(var a=0,o=t.length;a<o;a++)ty(e,t[a],n,r);return this}function tf(e,t){for(var n in e[tp]){var r=n.split(/\d/)[0];(!t||t(r))&&ty(e,r,null,null,n)}}var tg={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function tv(e,t,n,r){var i=t+f(n)+(r?"_"+f(r):"");if(e[tp]&&e[tp][i])return this;var a=function(t){return n.call(r||e,t||window.event)},o=a;!eD.touchNative&&eD.pointer&&0===t.indexOf("touch")?a=function(e,t,n){return("touchstart"===t&&(eV||(document.addEventListener(eB,eW,!0),document.addEventListener(eF,eq,!0),document.addEventListener(eU,e$,!0),document.addEventListener(ej,e$,!0),eV=!0)),eH[t])?(n=eH[t].bind(this,n),e.addEventListener(ez[t],n,!1),n):(console.warn("wrong event specified:",t),y)}(e,t,a):eD.touch&&"dblclick"===t?a=function(e,t){e.addEventListener("dblclick",t);var n,r=0;function i(e){if(1!==e.detail){n=e.detail;return}if("mouse"!==e.pointerType&&(!e.sourceCapabilities||e.sourceCapabilities.firesTouchEvents)){var i=tE(e);if(!i.some(function(e){return e instanceof HTMLLabelElement&&e.attributes.for})||i.some(function(e){return e instanceof HTMLInputElement||e instanceof HTMLSelectElement})){var a=Date.now();a-r<=200?2==++n&&t(function(e){var t,n,r={};for(n in e)t=e[n],r[n]=t&&t.bind?t.bind(e):t;return e=r,r.type="dblclick",r.detail=2,r.isTrusted=!1,r._simulated=!0,r}(e)):n=1,r=a}}}return e.addEventListener("click",i),{dblclick:t,simDblclick:i}}(e,a):"addEventListener"in e?"touchstart"===t||"touchmove"===t||"wheel"===t||"mousewheel"===t?e.addEventListener(tg[t]||t,a,!!eD.passiveEvents&&{passive:!1}):"mouseenter"===t||"mouseleave"===t?(a=function(t){tC(e,t=t||window.event)&&o(t)},e.addEventListener(tg[t],a,!1)):e.addEventListener(t,o,!1):e.attachEvent("on"+t,a),e[tp]=e[tp]||{},e[tp][i]=a}function ty(e,t,n,r,i){i=i||t+f(n)+(r?"_"+f(r):"");var a=e[tp]&&e[tp][i];if(!a)return this;!eD.touchNative&&eD.pointer&&0===t.indexOf("touch")?ez[t]?e.removeEventListener(ez[t],a,!1):console.warn("wrong event specified:",t):eD.touch&&"dblclick"===t?(e.removeEventListener("dblclick",a.dblclick),e.removeEventListener("click",a.simDblclick)):"removeEventListener"in e?e.removeEventListener(tg[t]||t,a,!1):e.detachEvent("on"+t,a),e[tp][i]=null}function tb(e){return e.stopPropagation?e.stopPropagation():e.originalEvent?e.originalEvent._stopped=!0:e.cancelBubble=!0,this}function t_(e){return tv(e,"wheel",tb),this}function tx(e){return th(e,"mousedown touchstart dblclick contextmenu",tb),e._leaflet_disable_click=!0,this}function tw(e){return e.preventDefault?e.preventDefault():e.returnValue=!1,this}function tS(e){return tw(e),tb(e),this}function tE(e){if(e.composedPath)return e.composedPath();for(var t=[],n=e.target;n;)t.push(n),n=n.parentNode;return t}function tA(e,t){if(!t)return new j(e.clientX,e.clientY);var n=td(t),r=n.boundingClientRect;return new j((e.clientX-r.left)/n.x-t.clientLeft,(e.clientY-r.top)/n.y-t.clientTop)}var tT=eD.linux&&eD.chrome?window.devicePixelRatio:eD.mac?3*window.devicePixelRatio:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function tI(e){return eD.edge?e.wheelDeltaY/2:e.deltaY&&0===e.deltaMode?-e.deltaY/tT:e.deltaY&&1===e.deltaMode?-(20*e.deltaY):e.deltaY&&2===e.deltaMode?-(60*e.deltaY):e.deltaX||e.deltaZ?0:e.wheelDelta?(e.wheelDeltaY||e.wheelDelta)/2:e.detail&&32765>Math.abs(e.detail)?-(20*e.detail):e.detail?-(60*(e.detail/32765)):0}function tC(e,t){var n=t.relatedTarget;if(!n)return!0;try{for(;n&&n!==e;)n=n.parentNode}catch(e){return!1}return n!==e}var tM=U.extend({run:function(e,t,n,r){this.stop(),this._el=e,this._inProgress=!0,this._duration=n||.25,this._easeOutPower=1/Math.max(r||.5,.2),this._startPos=ti(e),this._offset=t.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=k(this._animate,this),this._step()},_step:function(e){var t=new Date-this._startTime,n=1e3*this._duration;t<n?this._runFrame(this._easeOut(t/n),e):(this._runFrame(1),this._complete())},_runFrame:function(e,t){var n=this._startPos.add(this._offset.multiplyBy(e));t&&n._round(),tr(this._el,n),this.fire("step")},_complete:function(){D(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(e){return 1-Math.pow(1-e,this._easeOutPower)}}),tN=U.extend({options:{crs:ee,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(e,t){t=w(this,t),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(e),this._initLayout(),this._onResize=p(this._onResize,this),this._initEvents(),t.maxBounds&&this.setMaxBounds(t.maxBounds),void 0!==t.zoom&&(this._zoom=this._limitZoom(t.zoom)),t.center&&void 0!==t.zoom&&this.setView(J(t.center),t.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=eY&&eD.any3d&&!eD.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),th(this._proxy,eX,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(e,n,r){return(n=void 0===n?this._zoom:this._limitZoom(n),e=this._limitCenter(J(e),n,this.options.maxBounds),r=r||{},this._stop(),this._loaded&&!r.reset&&!0!==r&&(void 0!==r.animate&&(r.zoom=t({animate:r.animate},r.zoom),r.pan=t({animate:r.animate,duration:r.duration},r.pan)),this._zoom!==n?this._tryAnimatedZoom&&this._tryAnimatedZoom(e,n,r.zoom):this._tryAnimatedPan(e,r.pan)))?(clearTimeout(this._sizeTimer),this):(this._resetView(e,n,r.pan&&r.pan.noMoveStart),this)},setZoom:function(e,t){return this._loaded?this.setView(this.getCenter(),e,{zoom:t}):(this._zoom=e,this)},zoomIn:function(e,t){return e=e||(eD.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+e,t)},zoomOut:function(e,t){return e=e||(eD.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-e,t)},setZoomAround:function(e,t,n){var r=this.getZoomScale(t),i=this.getSize().divideBy(2),a=(e instanceof j?e:this.latLngToContainerPoint(e)).subtract(i).multiplyBy(1-1/r),o=this.containerPointToLatLng(i.add(a));return this.setView(o,t,{zoom:n})},_getBoundsCenterZoom:function(e,t){t=t||{},e=e.getBounds?e.getBounds():q(e);var n=H(t.paddingTopLeft||t.padding||[0,0]),r=H(t.paddingBottomRight||t.padding||[0,0]),i=this.getBoundsZoom(e,!1,n.add(r));if(1/0===(i="number"==typeof t.maxZoom?Math.min(t.maxZoom,i):i))return{center:e.getCenter(),zoom:i};var a=r.subtract(n).divideBy(2),o=this.project(e.getSouthWest(),i),s=this.project(e.getNorthEast(),i);return{center:this.unproject(o.add(s).divideBy(2).add(a),i),zoom:i}},fitBounds:function(e,t){if(!(e=q(e)).isValid())throw Error("Bounds are not valid.");var n=this._getBoundsCenterZoom(e,t);return this.setView(n.center,n.zoom,t)},fitWorld:function(e){return this.fitBounds([[-90,-180],[90,180]],e)},panTo:function(e,t){return this.setView(e,this._zoom,{pan:t})},panBy:function(e,t){if(e=H(e).round(),t=t||{},!e.x&&!e.y)return this.fire("moveend");if(!0!==t.animate&&!this.getSize().contains(e))return this._resetView(this.unproject(this.project(this.getCenter()).add(e)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new tM,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),t.noMoveStart||this.fire("movestart"),!1!==t.animate){e6(this._mapPane,"leaflet-pan-anim");var n=this._getMapPanePos().subtract(e).round();this._panAnim.run(this._mapPane,n,t.duration||.25,t.easeLinearity)}else this._rawPanBy(e),this.fire("move").fire("moveend");return this},flyTo:function(e,t,n){if(!1===(n=n||{}).animate||!eD.any3d)return this.setView(e,t,n);this._stop();var r=this.project(this.getCenter()),i=this.project(e),a=this.getSize(),o=this._zoom;e=J(e),t=void 0===t?o:t;var s=Math.max(a.x,a.y),l=s*this.getZoomScale(o,t),u=i.distanceTo(r)||1;function c(e){var t=(l*l-s*s+(e?-1:1)*2.0164*2.0164*u*u)/(2*(e?l:s)*2.0164*u),n=Math.sqrt(t*t+1)-t;return n<1e-9?-18:Math.log(n)}function d(e){return(Math.exp(e)-Math.exp(-e))/2}function h(e){return(Math.exp(e)+Math.exp(-e))/2}var p=c(0),m=Date.now(),f=(c(1)-p)/1.42,g=n.duration?1e3*n.duration:1e3*f*.8;function v(){var n,a=(Date.now()-m)/g,l=(1-Math.pow(1-a,1.5))*f;a<=1?(this._flyToFrame=k(v,this),this._move(this.unproject(r.add(i.subtract(r).multiplyBy(s*(h(p)*(d(n=p+1.42*l)/h(n))-d(p))/2.0164/u)),o),this.getScaleZoom(s/(s*(h(p)/h(p+1.42*l))),o),{flyTo:!0})):this._move(e,t)._moveEnd(!0)}return this._moveStart(!0,n.noMoveStart),v.call(this),this},flyToBounds:function(e,t){var n=this._getBoundsCenterZoom(e,t);return this.flyTo(n.center,n.zoom,t)},setMaxBounds:function(e){return(e=q(e),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),e.isValid())?(this.options.maxBounds=e,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(e){var t=this.options.minZoom;return(this.options.minZoom=e,this._loaded&&t!==e&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom))?this.setZoom(e):this},setMaxZoom:function(e){var t=this.options.maxZoom;return(this.options.maxZoom=e,this._loaded&&t!==e&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom))?this.setZoom(e):this},panInsideBounds:function(e,t){this._enforcingBounds=!0;var n=this.getCenter(),r=this._limitCenter(n,this._zoom,q(e));return n.equals(r)||this.panTo(r,t),this._enforcingBounds=!1,this},panInside:function(e,t){var n=H((t=t||{}).paddingTopLeft||t.padding||[0,0]),r=H(t.paddingBottomRight||t.padding||[0,0]),i=this.project(this.getCenter()),a=this.project(e),o=this.getPixelBounds(),s=V([o.min.add(n),o.max.subtract(r)]),l=s.getSize();if(!s.contains(a)){this._enforcingBounds=!0;var u=a.subtract(s.getCenter()),c=s.extend(a).getSize().subtract(l);i.x+=u.x<0?-c.x:c.x,i.y+=u.y<0?-c.y:c.y,this.panTo(this.unproject(i),t),this._enforcingBounds=!1}return this},invalidateSize:function(e){if(!this._loaded)return this;e=t({animate:!1,pan:!0},!0===e?{animate:!0}:e);var n=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var r=this.getSize(),i=n.divideBy(2).round(),a=r.divideBy(2).round(),o=i.subtract(a);return o.x||o.y?(e.animate&&e.pan?this.panBy(o):(e.pan&&this._rawPanBy(o),this.fire("move"),e.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(p(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:n,newSize:r})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(e){if(e=this._locateOptions=t({timeout:1e4,watch:!1},e),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var n=p(this._handleGeolocationResponse,this),r=p(this._handleGeolocationError,this);return e.watch?this._locationWatchId=navigator.geolocation.watchPosition(n,r,e):navigator.geolocation.getCurrentPosition(n,r,e),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(e){if(this._container._leaflet_id){var t=e.code,n=e.message||(1===t?"permission denied":2===t?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:t,message:"Geolocation error: "+n+"."})}},_handleGeolocationResponse:function(e){if(this._container._leaflet_id){var t=new $(e.coords.latitude,e.coords.longitude),n=t.toBounds(2*e.coords.accuracy),r=this._locateOptions;if(r.setView){var i=this.getBoundsZoom(n);this.setView(t,r.maxZoom?Math.min(i,r.maxZoom):i)}var a={latlng:t,bounds:n,timestamp:e.timestamp};for(var o in e.coords)"number"==typeof e.coords[o]&&(a[o]=e.coords[o]);this.fire("locationfound",a)}},addHandler:function(e,t){if(!t)return this;var n=this[e]=new t(this);return this._handlers.push(n),this.options[e]&&n.enable(),this},remove:function(){var e;if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(e){this._container._leaflet_id=void 0,this._containerId=void 0}for(e in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),e1(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(D(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[e].remove();for(e in this._panes)e1(this._panes[e]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(e,t){var n=e0("div","leaflet-pane"+(e?" leaflet-"+e.replace("Pane","")+"-pane":""),t||this._mapPane);return e&&(this._panes[e]=n),n},getCenter:function(){return(this._checkIfLoaded(),this._lastCenter&&!this._moved())?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var e=this.getPixelBounds();return new W(this.unproject(e.getBottomLeft()),this.unproject(e.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(e,t,n){e=q(e),n=H(n||[0,0]);var r=this.getZoom()||0,i=this.getMinZoom(),a=this.getMaxZoom(),o=e.getNorthWest(),s=e.getSouthEast(),l=this.getSize().subtract(n),u=V(this.project(s,r),this.project(o,r)).getSize(),c=eD.any3d?this.options.zoomSnap:1,d=l.x/u.x,h=l.y/u.y,p=t?Math.max(d,h):Math.min(d,h);return r=this.getScaleZoom(p,r),c&&(r=c/100*Math.round(r/(c/100)),r=t?Math.ceil(r/c)*c:Math.floor(r/c)*c),Math.max(i,Math.min(a,r))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new j(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(e,t){var n=this._getTopLeftPoint(e,t);return new G(n,n.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(e){return this.options.crs.getProjectedBounds(void 0===e?this.getZoom():e)},getPane:function(e){return"string"==typeof e?this._panes[e]:e},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(e,t){var n=this.options.crs;return t=void 0===t?this._zoom:t,n.scale(e)/n.scale(t)},getScaleZoom:function(e,t){var n=this.options.crs;t=void 0===t?this._zoom:t;var r=n.zoom(e*n.scale(t));return isNaN(r)?1/0:r},project:function(e,t){return t=void 0===t?this._zoom:t,this.options.crs.latLngToPoint(J(e),t)},unproject:function(e,t){return t=void 0===t?this._zoom:t,this.options.crs.pointToLatLng(H(e),t)},layerPointToLatLng:function(e){var t=H(e).add(this.getPixelOrigin());return this.unproject(t)},latLngToLayerPoint:function(e){return this.project(J(e))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(e){return this.options.crs.wrapLatLng(J(e))},wrapLatLngBounds:function(e){return this.options.crs.wrapLatLngBounds(q(e))},distance:function(e,t){return this.options.crs.distance(J(e),J(t))},containerPointToLayerPoint:function(e){return H(e).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(e){return H(e).add(this._getMapPanePos())},containerPointToLatLng:function(e){var t=this.containerPointToLayerPoint(H(e));return this.layerPointToLatLng(t)},latLngToContainerPoint:function(e){return this.layerPointToContainerPoint(this.latLngToLayerPoint(J(e)))},mouseEventToContainerPoint:function(e){return tA(e,this._container)},mouseEventToLayerPoint:function(e){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(e))},mouseEventToLatLng:function(e){return this.layerPointToLatLng(this.mouseEventToLayerPoint(e))},_initContainer:function(e){var t=this._container=eZ(e);if(t){if(t._leaflet_id)throw Error("Map container is already initialized.")}else throw Error("Map container not found.");th(t,"scroll",this._onScroll,this),this._containerId=f(t)},_initLayout:function(){var e=this._container;this._fadeAnimated=this.options.fadeAnimation&&eD.any3d,e6(e,"leaflet-container"+(eD.touch?" leaflet-touch":"")+(eD.retina?" leaflet-retina":"")+(eD.ielt9?" leaflet-oldie":"")+(eD.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var t=eQ(e,"position");"absolute"!==t&&"relative"!==t&&"fixed"!==t&&"sticky"!==t&&(e.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var e=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),tr(this._mapPane,new j(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(e6(e.markerPane,"leaflet-zoom-hide"),e6(e.shadowPane,"leaflet-zoom-hide"))},_resetView:function(e,t,n){tr(this._mapPane,new j(0,0));var r=!this._loaded;this._loaded=!0,t=this._limitZoom(t),this.fire("viewprereset");var i=this._zoom!==t;this._moveStart(i,n)._move(e,t)._moveEnd(i),this.fire("viewreset"),r&&this.fire("load")},_moveStart:function(e,t){return e&&this.fire("zoomstart"),t||this.fire("movestart"),this},_move:function(e,t,n,r){void 0===t&&(t=this._zoom);var i=this._zoom!==t;return this._zoom=t,this._lastCenter=e,this._pixelOrigin=this._getNewPixelOrigin(e),r?n&&n.pinch&&this.fire("zoom",n):((i||n&&n.pinch)&&this.fire("zoom",n),this.fire("move",n)),this},_moveEnd:function(e){return e&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return D(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(e){tr(this._mapPane,this._getMapPanePos().subtract(e))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw Error("Set map center and zoom first.")},_initEvents:function(e){this._targets={},this._targets[f(this._container)]=this;var t=e?tm:th;t(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&t(window,"resize",this._onResize,this),eD.any3d&&this.options.transform3DLimit&&(e?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){D(this._resizeRequest),this._resizeRequest=k(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var e=this._getMapPanePos();Math.max(Math.abs(e.x),Math.abs(e.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(e,t){for(var n,r=[],i="mouseout"===t||"mouseover"===t,a=e.target||e.srcElement,o=!1;a;){if((n=this._targets[f(a)])&&("click"===t||"preclick"===t)&&this._draggableMoved(n)){o=!0;break}if(n&&n.listens(t,!0)&&(i&&!tC(a,e)||(r.push(n),i)))break;if(a===this._container)break;a=a.parentNode}return!r.length&&!o&&!i&&this.listens(t,!0)&&(r=[this]),r},_isClickDisabled:function(e){for(;e&&e!==this._container;){if(e._leaflet_disable_click)return!0;e=e.parentNode}},_handleDOMEvent:function(e){var t=e.target||e.srcElement;if(!(!this._loaded||t._leaflet_disable_events||"click"===e.type&&this._isClickDisabled(t))){var n=e.type;"mousedown"===n&&tl(t),this._fireDOMEvent(e,n)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(e,n,r){if("click"===e.type){var i=t({},e);i.type="preclick",this._fireDOMEvent(i,i.type,r)}var a=this._findEventTargets(e,n);if(r){for(var o=[],s=0;s<r.length;s++)r[s].listens(n,!0)&&o.push(r[s]);a=o.concat(a)}if(a.length){"contextmenu"===n&&tw(e);var l=a[0],u={originalEvent:e};if("keypress"!==e.type&&"keydown"!==e.type&&"keyup"!==e.type){var c=l.getLatLng&&(!l._radius||l._radius<=10);u.containerPoint=c?this.latLngToContainerPoint(l.getLatLng()):this.mouseEventToContainerPoint(e),u.layerPoint=this.containerPointToLayerPoint(u.containerPoint),u.latlng=c?l.getLatLng():this.layerPointToLatLng(u.layerPoint)}for(s=0;s<a.length;s++)if(a[s].fire(n,u,!0),u.originalEvent._stopped||!1===a[s].options.bubblingMouseEvents&&-1!==I(this._mouseEvents,n))return}},_draggableMoved:function(e){return(e=e.dragging&&e.dragging.enabled()?e:this).dragging&&e.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var e=0,t=this._handlers.length;e<t;e++)this._handlers[e].disable()},whenReady:function(e,t){return this._loaded?e.call(t||this,{target:this}):this.on("load",e,t),this},_getMapPanePos:function(){return ti(this._mapPane)||new j(0,0)},_moved:function(){var e=this._getMapPanePos();return e&&!e.equals([0,0])},_getTopLeftPoint:function(e,t){return(e&&void 0!==t?this._getNewPixelOrigin(e,t):this.getPixelOrigin()).subtract(this._getMapPanePos())},_getNewPixelOrigin:function(e,t){var n=this.getSize()._divideBy(2);return this.project(e,t)._subtract(n)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(e,t,n){var r=this._getNewPixelOrigin(n,t);return this.project(e,t)._subtract(r)},_latLngBoundsToNewLayerBounds:function(e,t,n){var r=this._getNewPixelOrigin(n,t);return V([this.project(e.getSouthWest(),t)._subtract(r),this.project(e.getNorthWest(),t)._subtract(r),this.project(e.getSouthEast(),t)._subtract(r),this.project(e.getNorthEast(),t)._subtract(r)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(e){return this.latLngToLayerPoint(e).subtract(this._getCenterLayerPoint())},_limitCenter:function(e,t,n){if(!n)return e;var r=this.project(e,t),i=this.getSize().divideBy(2),a=new G(r.subtract(i),r.add(i)),o=this._getBoundsOffset(a,n,t);return 1>=Math.abs(o.x)&&1>=Math.abs(o.y)?e:this.unproject(r.add(o),t)},_limitOffset:function(e,t){if(!t)return e;var n=this.getPixelBounds(),r=new G(n.min.add(e),n.max.add(e));return e.add(this._getBoundsOffset(r,t))},_getBoundsOffset:function(e,t,n){var r=V(this.project(t.getNorthEast(),n),this.project(t.getSouthWest(),n)),i=r.min.subtract(e.min),a=r.max.subtract(e.max);return new j(this._rebound(i.x,-a.x),this._rebound(i.y,-a.y))},_rebound:function(e,t){return e+t>0?Math.round(e-t)/2:Math.max(0,Math.ceil(e))-Math.max(0,Math.floor(t))},_limitZoom:function(e){var t=this.getMinZoom(),n=this.getMaxZoom(),r=eD.any3d?this.options.zoomSnap:1;return r&&(e=Math.round(e/r)*r),Math.max(t,Math.min(n,e))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){e8(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(e,t){var n=this._getCenterOffset(e)._trunc();return(!0===(t&&t.animate)||!!this.getSize().contains(n))&&(this.panBy(n,t),!0)},_createAnimProxy:function(){var e=this._proxy=e0("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(e),this.on("zoomanim",function(e){var t=this._proxy.style[eK];tn(this._proxy,this.project(e.center,e.zoom),this.getZoomScale(e.zoom,1)),t===this._proxy.style[eK]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){e1(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var e=this.getCenter(),t=this.getZoom();tn(this._proxy,this.project(e,t),this.getZoomScale(t,1))},_catchTransitionEnd:function(e){this._animatingZoom&&e.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(e,t,n){if(this._animatingZoom)return!0;if(n=n||{},!this._zoomAnimated||!1===n.animate||this._nothingToAnimate()||Math.abs(t-this._zoom)>this.options.zoomAnimationThreshold)return!1;var r=this.getZoomScale(t),i=this._getCenterOffset(e)._divideBy(1-1/r);return(!0===n.animate||!!this.getSize().contains(i))&&(k(function(){this._moveStart(!0,n.noMoveStart||!1)._animateZoom(e,t,!0)},this),!0)},_animateZoom:function(e,t,n,r){this._mapPane&&(n&&(this._animatingZoom=!0,this._animateToCenter=e,this._animateToZoom=t,e6(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:e,zoom:t,noUpdate:r}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(p(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&e8(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}}),tR=B.extend({options:{position:"topright"},initialize:function(e){w(this,e)},getPosition:function(){return this.options.position},setPosition:function(e){var t=this._map;return t&&t.removeControl(this),this.options.position=e,t&&t.addControl(this),this},getContainer:function(){return this._container},addTo:function(e){this.remove(),this._map=e;var t=this._container=this.onAdd(e),n=this.getPosition(),r=e._controlCorners[n];return e6(t,"leaflet-control"),-1!==n.indexOf("bottom")?r.insertBefore(t,r.firstChild):r.appendChild(t),this._map.on("unload",this.remove,this),this},remove:function(){return this._map&&(e1(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null),this},_refocusOnMap:function(e){this._map&&e&&e.screenX>0&&e.screenY>0&&this._map.getContainer().focus()}}),tO=function(e){return new tR(e)};tN.include({addControl:function(e){return e.addTo(this),this},removeControl:function(e){return e.remove(),this},_initControlPos:function(){var e=this._controlCorners={},t="leaflet-",n=this._controlContainer=e0("div",t+"control-container",this._container);function r(r,i){e[r+i]=e0("div",t+r+" "+t+i,n)}r("top","left"),r("top","right"),r("bottom","left"),r("bottom","right")},_clearControlPos:function(){for(var e in this._controlCorners)e1(this._controlCorners[e]);e1(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var tP=tR.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(e,t,n,r){return n<r?-1:+(r<n)}},initialize:function(e,t,n){for(var r in w(this,n),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1,e)this._addLayer(e[r],r);for(r in t)this._addLayer(t[r],r,!0)},onAdd:function(e){this._initLayout(),this._update(),this._map=e,e.on("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++)this._layers[t].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(e){return tR.prototype.addTo.call(this,e),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var e=0;e<this._layers.length;e++)this._layers[e].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(e,t){return this._addLayer(e,t),this._map?this._update():this},addOverlay:function(e,t){return this._addLayer(e,t,!0),this._map?this._update():this},removeLayer:function(e){e.off("add remove",this._onLayerChange,this);var t=this._getLayer(f(e));return t&&this._layers.splice(this._layers.indexOf(t),1),this._map?this._update():this},expand:function(){e6(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var e=this._map.getSize().y-(this._container.offsetTop+50);return e<this._section.clientHeight?(e6(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=e+"px"):e8(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return e8(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var e="leaflet-control-layers",t=this._container=e0("div",e),n=this.options.collapsed;t.setAttribute("aria-haspopup",!0),tx(t),t_(t);var r=this._section=e0("section",e+"-list");n&&(this._map.on("click",this.collapse,this),th(t,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var i=this._layersLink=e0("a",e+"-toggle",t);i.href="#",i.title="Layers",i.setAttribute("role","button"),th(i,{keydown:function(e){13===e.keyCode&&this._expandSafely()},click:function(e){tw(e),this._expandSafely()}},this),n||this.expand(),this._baseLayersList=e0("div",e+"-base",r),this._separator=e0("div",e+"-separator",r),this._overlaysList=e0("div",e+"-overlays",r),t.appendChild(r)},_getLayer:function(e){for(var t=0;t<this._layers.length;t++)if(this._layers[t]&&f(this._layers[t].layer)===e)return this._layers[t]},_addLayer:function(e,t,n){this._map&&e.on("add remove",this._onLayerChange,this),this._layers.push({layer:e,name:t,overlay:n}),this.options.sortLayers&&this._layers.sort(p(function(e,t){return this.options.sortFunction(e.layer,t.layer,e.name,t.name)},this)),this.options.autoZIndex&&e.setZIndex&&(this._lastZIndex++,e.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;e2(this._baseLayersList),e2(this._overlaysList),this._layerControlInputs=[];var e,t,n,r,i=0;for(n=0;n<this._layers.length;n++)r=this._layers[n],this._addItem(r),t=t||r.overlay,e=e||!r.overlay,i+=+!r.overlay;return this.options.hideSingleBase&&(e=e&&i>1,this._baseLayersList.style.display=e?"":"none"),this._separator.style.display=t&&e?"":"none",this},_onLayerChange:function(e){this._handlingClick||this._update();var t=this._getLayer(f(e.target)),n=t.overlay?"add"===e.type?"overlayadd":"overlayremove":"add"===e.type?"baselayerchange":null;n&&this._map.fire(n,t)},_createRadioElement:function(e,t){var n=document.createElement("div");return n.innerHTML='<input type="radio" class="leaflet-control-layers-selector" name="'+e+'"'+(t?' checked="checked"':"")+"/>",n.firstChild},_addItem:function(e){var t,n=document.createElement("label"),r=this._map.hasLayer(e.layer);e.overlay?((t=document.createElement("input")).type="checkbox",t.className="leaflet-control-layers-selector",t.defaultChecked=r):t=this._createRadioElement("leaflet-base-layers_"+f(this),r),this._layerControlInputs.push(t),t.layerId=f(e.layer),th(t,"click",this._onInputClick,this);var i=document.createElement("span");i.innerHTML=" "+e.name;var a=document.createElement("span");return n.appendChild(a),a.appendChild(t),a.appendChild(i),(e.overlay?this._overlaysList:this._baseLayersList).appendChild(n),this._checkDisabledLayers(),n},_onInputClick:function(){if(!this._preventClick){var e,t,n=this._layerControlInputs,r=[],i=[];this._handlingClick=!0;for(var a=n.length-1;a>=0;a--)e=n[a],t=this._getLayer(e.layerId).layer,e.checked?r.push(t):e.checked||i.push(t);for(a=0;a<i.length;a++)this._map.hasLayer(i[a])&&this._map.removeLayer(i[a]);for(a=0;a<r.length;a++)this._map.hasLayer(r[a])||this._map.addLayer(r[a]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var e,t,n=this._layerControlInputs,r=this._map.getZoom(),i=n.length-1;i>=0;i--)e=n[i],t=this._getLayer(e.layerId).layer,e.disabled=void 0!==t.options.minZoom&&r<t.options.minZoom||void 0!==t.options.maxZoom&&r>t.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var e=this._section;this._preventClick=!0,th(e,"click",tw),this.expand();var t=this;setTimeout(function(){tm(e,"click",tw),t._preventClick=!1})}}),tk=tR.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:function(e){var t="leaflet-control-zoom",n=e0("div",t+" leaflet-bar"),r=this.options;return this._zoomInButton=this._createButton(r.zoomInText,r.zoomInTitle,t+"-in",n,this._zoomIn),this._zoomOutButton=this._createButton(r.zoomOutText,r.zoomOutTitle,t+"-out",n,this._zoomOut),this._updateDisabled(),e.on("zoomend zoomlevelschange",this._updateDisabled,this),n},onRemove:function(e){e.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(e){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(e.shiftKey?3:1))},_zoomOut:function(e){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(e.shiftKey?3:1))},_createButton:function(e,t,n,r,i){var a=e0("a",n,r);return a.innerHTML=e,a.href="#",a.title=t,a.setAttribute("role","button"),a.setAttribute("aria-label",t),tx(a),th(a,"click",tS),th(a,"click",i,this),th(a,"click",this._refocusOnMap,this),a},_updateDisabled:function(){var e=this._map,t="leaflet-disabled";e8(this._zoomInButton,t),e8(this._zoomOutButton,t),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||e._zoom===e.getMinZoom())&&(e6(this._zoomOutButton,t),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||e._zoom===e.getMaxZoom())&&(e6(this._zoomInButton,t),this._zoomInButton.setAttribute("aria-disabled","true"))}});tN.mergeOptions({zoomControl:!0}),tN.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new tk,this.addControl(this.zoomControl))});var tL=tR.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(e){var t="leaflet-control-scale",n=e0("div",t),r=this.options;return this._addScales(r,t+"-line",n),e.on(r.updateWhenIdle?"moveend":"move",this._update,this),e.whenReady(this._update,this),n},onRemove:function(e){e.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(e,t,n){e.metric&&(this._mScale=e0("div",t,n)),e.imperial&&(this._iScale=e0("div",t,n))},_update:function(){var e=this._map,t=e.getSize().y/2,n=e.distance(e.containerPointToLatLng([0,t]),e.containerPointToLatLng([this.options.maxWidth,t]));this._updateScales(n)},_updateScales:function(e){this.options.metric&&e&&this._updateMetric(e),this.options.imperial&&e&&this._updateImperial(e)},_updateMetric:function(e){var t=this._getRoundNum(e);this._updateScale(this._mScale,t<1e3?t+" m":t/1e3+" km",t/e)},_updateImperial:function(e){var t,n,r,i=3.2808399*e;i>5280?(t=i/5280,n=this._getRoundNum(t),this._updateScale(this._iScale,n+" mi",n/t)):(r=this._getRoundNum(i),this._updateScale(this._iScale,r+" ft",r/i))},_updateScale:function(e,t,n){e.style.width=Math.round(this.options.maxWidth*n)+"px",e.innerHTML=t},_getRoundNum:function(e){var t=Math.pow(10,(Math.floor(e)+"").length-1),n=e/t;return t*(n=n>=10?10:n>=5?5:n>=3?3:n>=2?2:1)}}),tD=tR.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(eD.inlineSvg?'<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg> ':"")+"Leaflet</a>"},initialize:function(e){w(this,e),this._attributions={}},onAdd:function(e){for(var t in e.attributionControl=this,this._container=e0("div","leaflet-control-attribution"),tx(this._container),e._layers)e._layers[t].getAttribution&&this.addAttribution(e._layers[t].getAttribution());return this._update(),e.on("layeradd",this._addAttribution,this),this._container},onRemove:function(e){e.off("layeradd",this._addAttribution,this)},_addAttribution:function(e){e.layer.getAttribution&&(this.addAttribution(e.layer.getAttribution()),e.layer.once("remove",function(){this.removeAttribution(e.layer.getAttribution())},this))},setPrefix:function(e){return this.options.prefix=e,this._update(),this},addAttribution:function(e){return e&&(this._attributions[e]||(this._attributions[e]=0),this._attributions[e]++,this._update()),this},removeAttribution:function(e){return e&&this._attributions[e]&&(this._attributions[e]--,this._update()),this},_update:function(){if(this._map){var e=[];for(var t in this._attributions)this._attributions[t]&&e.push(t);var n=[];this.options.prefix&&n.push(this.options.prefix),e.length&&n.push(e.join(", ")),this._container.innerHTML=n.join(' <span aria-hidden="true">|</span> ')}}});tN.mergeOptions({attributionControl:!0}),tN.addInitHook(function(){this.options.attributionControl&&new tD().addTo(this)}),tR.Layers=tP,tR.Zoom=tk,tR.Scale=tL,tR.Attribution=tD,tO.layers=function(e,t,n){return new tP(e,t,n)},tO.zoom=function(e){return new tk(e)},tO.scale=function(e){return new tL(e)},tO.attribution=function(e){return new tD(e)};var tB=B.extend({initialize:function(e){this._map=e},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled&&(this._enabled=!1,this.removeHooks()),this},enabled:function(){return!!this._enabled}});tB.addTo=function(e,t){return e.addHandler(t,this),this};var tF=eD.touch?"touchstart mousedown":"mousedown",tU=U.extend({options:{clickTolerance:3},initialize:function(e,t,n,r){w(this,r),this._element=e,this._dragStartTarget=t||e,this._preventOutline=n},enable:function(){this._enabled||(th(this._dragStartTarget,tF,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(tU._dragging===this&&this.finishDrag(!0),tm(this._dragStartTarget,tF,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(e){if(!(!this._enabled||(this._moved=!1,e5(this._element,"leaflet-zoom-anim")))){if(e.touches&&1!==e.touches.length){tU._dragging===this&&this.finishDrag();return}if(!tU._dragging&&!e.shiftKey&&(1===e.which||1===e.button||e.touches)&&(tU._dragging=this,this._preventOutline&&tl(this._element),to(),n(),!this._moving)){this.fire("down");var t=e.touches?e.touches[0]:e,r=tc(this._element);this._startPoint=new j(t.clientX,t.clientY),this._startPos=ti(this._element),this._parentScale=td(r);var i="mousedown"===e.type;th(document,i?"mousemove":"touchmove",this._onMove,this),th(document,i?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(e){if(this._enabled){if(e.touches&&e.touches.length>1){this._moved=!0;return}var t=e.touches&&1===e.touches.length?e.touches[0]:e,n=new j(t.clientX,t.clientY)._subtract(this._startPoint);(n.x||n.y)&&(Math.abs(n.x)+Math.abs(n.y)<this.options.clickTolerance||(n.x/=this._parentScale.x,n.y/=this._parentScale.y,tw(e),this._moved||(this.fire("dragstart"),this._moved=!0,e6(document.body,"leaflet-dragging"),this._lastTarget=e.target||e.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),e6(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(n),this._moving=!0,this._lastEvent=e,this._updatePosition()))}},_updatePosition:function(){var e={originalEvent:this._lastEvent};this.fire("predrag",e),tr(this._element,this._newPos),this.fire("drag",e)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(e){e8(document.body,"leaflet-dragging"),this._lastTarget&&(e8(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),tm(document,"mousemove touchmove",this._onMove,this),tm(document,"mouseup touchend touchcancel",this._onUp,this),ts(),r();var t=this._moved&&this._moving;this._moving=!1,tU._dragging=!1,t&&this.fire("dragend",{noInertia:e,distance:this._newPos.distanceTo(this._startPos)})}});function tj(e,t,n){var r,i,a,o,s,l,u,c,d,h=[1,4,2,8];for(i=0,u=e.length;i<u;i++)e[i]._code=t$(e[i],t);for(o=0;o<4;o++){for(c=h[o],r=[],i=0,a=(u=e.length)-1;i<u;a=i++)s=e[i],l=e[a],s._code&c?l._code&c||((d=tq(l,s,c,t,n))._code=t$(d,t),r.push(d)):(l._code&c&&((d=tq(l,s,c,t,n))._code=t$(d,t),r.push(d)),r.push(s));e=r}return e}function tz(e,t){if(!e||0===e.length)throw Error("latlngs not passed");tK(e)||(console.warn("latlngs are not flat! Only the first ring will be used"),e=e[0]);var n,r,i,a,o,s,l,u,c,d=J([0,0]),h=q(e);h.getNorthWest().distanceTo(h.getSouthWest())*h.getNorthEast().distanceTo(h.getNorthWest())<1700&&(d=tH(e));var p=e.length,m=[];for(n=0;n<p;n++){var f=J(e[n]);m.push(t.project(J([f.lat-d.lat,f.lng-d.lng])))}for(s=l=u=0,n=0,r=p-1;n<p;r=n++)i=m[n],a=m[r],o=i.y*a.x-a.y*i.x,l+=(i.x+a.x)*o,u+=(i.y+a.y)*o,s+=3*o;c=0===s?m[0]:[l/s,u/s];var g=t.unproject(H(c));return J([g.lat+d.lat,g.lng+d.lng])}function tH(e){for(var t=0,n=0,r=0,i=0;i<e.length;i++){var a=J(e[i]);t+=a.lat,n+=a.lng,r++}return J([t/r,n/r])}function tG(e,t){if(!t||!e.length)return e.slice();var n=t*t;return function(e,t){var n=e.length,r=new("u">typeof Uint8Array?Uint8Array:Array)(n);r[0]=r[n-1]=1,function e(t,n,r,i,a){var o,s,l,u=0;for(s=i+1;s<=a-1;s++)(l=tJ(t[s],t[i],t[a],!0))>u&&(o=s,u=l);u>r&&(n[o]=1,e(t,n,r,i,o),e(t,n,r,o,a))}(e,r,t,0,n-1);var i,a=[];for(i=0;i<n;i++)r[i]&&a.push(e[i]);return a}(e=function(e,t){for(var n=[e[0]],r=1,i=0,a=e.length;r<a;r++)(function(e,t){var n=t.x-e.x,r=t.y-e.y;return n*n+r*r})(e[r],e[i])>t&&(n.push(e[r]),i=r);return i<a-1&&n.push(e[a-1]),n}(e,n),n)}function tV(e,t,n){return Math.sqrt(tJ(e,t,n,!0))}function tW(e,t,n,r,i){var a,o,l,u=r?s:t$(e,n),c=t$(t,n);for(s=c;;){if(!(u|c))return[e,t];if(u&c)return!1;l=t$(o=tq(e,t,a=u||c,n,i),n),a===u?(e=o,u=l):(t=o,c=l)}}function tq(e,t,n,r,i){var a,o,s=t.x-e.x,l=t.y-e.y,u=r.min,c=r.max;return 8&n?(a=e.x+s*(c.y-e.y)/l,o=c.y):4&n?(a=e.x+s*(u.y-e.y)/l,o=u.y):2&n?(a=c.x,o=e.y+l*(c.x-e.x)/s):1&n&&(a=u.x,o=e.y+l*(u.x-e.x)/s),new j(a,o,i)}function t$(e,t){var n=0;return e.x<t.min.x?n|=1:e.x>t.max.x&&(n|=2),e.y<t.min.y?n|=4:e.y>t.max.y&&(n|=8),n}function tJ(e,t,n,r){var i,a=t.x,o=t.y,s=n.x-a,l=n.y-o,u=s*s+l*l;return u>0&&((i=((e.x-a)*s+(e.y-o)*l)/u)>1?(a=n.x,o=n.y):i>0&&(a+=s*i,o+=l*i)),s=e.x-a,l=e.y-o,r?s*s+l*l:new j(a,o)}function tK(e){return!T(e[0])||"object"!=typeof e[0][0]&&void 0!==e[0][0]}function tY(e){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),tK(e)}function tX(e,t){if(!e||0===e.length)throw Error("latlngs not passed");tK(e)||(console.warn("latlngs are not flat! Only the first ring will be used"),e=e[0]);var n,r,i,a,o,s,l,u,c=J([0,0]),d=q(e);d.getNorthWest().distanceTo(d.getSouthWest())*d.getNorthEast().distanceTo(d.getNorthWest())<1700&&(c=tH(e));var h=e.length,p=[];for(n=0;n<h;n++){var m=J(e[n]);p.push(t.project(J([m.lat-c.lat,m.lng-c.lng])))}for(n=0,r=0;n<h-1;n++)r+=p[n].distanceTo(p[n+1])/2;if(0===r)u=p[0];else for(n=0,a=0;n<h-1;n++)if(o=p[n],s=p[n+1],(a+=i=o.distanceTo(s))>r){l=(a-r)/i,u=[s.x-l*(s.x-o.x),s.y-l*(s.y-o.y)];break}var f=t.unproject(H(u));return J([f.lat+c.lat,f.lng+c.lng])}var tZ={project:function(e){return new j(e.lng,e.lat)},unproject:function(e){return new $(e.y,e.x)},bounds:new G([-180,-90],[180,90])},tQ={R:6378137,R_MINOR:6356752.314245179,bounds:new G([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(e){var t=Math.PI/180,n=this.R,r=e.lat*t,i=this.R_MINOR/n,a=Math.sqrt(1-i*i),o=a*Math.sin(r);return r=-n*Math.log(Math.max(Math.tan(Math.PI/4-r/2)/Math.pow((1-o)/(1+o),a/2),1e-10)),new j(e.lng*t*n,r)},unproject:function(e){for(var t,n=180/Math.PI,r=this.R,i=this.R_MINOR/r,a=Math.sqrt(1-i*i),o=Math.exp(-e.y/r),s=Math.PI/2-2*Math.atan(o),l=0,u=.1;l<15&&Math.abs(u)>1e-7;l++)u=Math.PI/2-2*Math.atan(o*(t=Math.pow((1-(t=a*Math.sin(s)))/(1+t),a/2)))-s,s+=u;return new $(s*n,e.x*n/r)}},t0=t({},Y,{code:"EPSG:3395",projection:tQ,transformation:Q(d=.5/(Math.PI*tQ.R),.5,-d,.5)}),t1=t({},Y,{code:"EPSG:4326",projection:tZ,transformation:Q(1/180,1,-1/180,.5)}),t2=t({},K,{projection:tZ,transformation:Q(1,0,-1,0),scale:function(e){return Math.pow(2,e)},zoom:function(e){return Math.log(e)/Math.LN2},distance:function(e,t){var n=t.lng-e.lng,r=t.lat-e.lat;return Math.sqrt(n*n+r*r)},infinite:!0});K.Earth=Y,K.EPSG3395=t0,K.EPSG3857=ee,K.EPSG900913=et,K.EPSG4326=t1,K.Simple=t2;var t3=U.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(e){return e.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(e){return e&&e.removeLayer(this),this},getPane:function(e){return this._map.getPane(e?this.options[e]||e:this.options.pane)},addInteractiveTarget:function(e){return this._map._targets[f(e)]=this,this},removeInteractiveTarget:function(e){return delete this._map._targets[f(e)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(e){var t=e.target;if(t.hasLayer(this)){if(this._map=t,this._zoomAnimated=t._zoomAnimated,this.getEvents){var n=this.getEvents();t.on(n,this),this.once("remove",function(){t.off(n,this)},this)}this.onAdd(t),this.fire("add"),t.fire("layeradd",{layer:this})}}});tN.include({addLayer:function(e){if(!e._layerAdd)throw Error("The provided object is not a Layer.");var t=f(e);return this._layers[t]||(this._layers[t]=e,e._mapToAdd=this,e.beforeAdd&&e.beforeAdd(this),this.whenReady(e._layerAdd,e)),this},removeLayer:function(e){var t=f(e);return this._layers[t]&&(this._loaded&&e.onRemove(this),delete this._layers[t],this._loaded&&(this.fire("layerremove",{layer:e}),e.fire("remove")),e._map=e._mapToAdd=null),this},hasLayer:function(e){return f(e)in this._layers},eachLayer:function(e,t){for(var n in this._layers)e.call(t,this._layers[n]);return this},_addLayers:function(e){e=e?T(e)?e:[e]:[];for(var t=0,n=e.length;t<n;t++)this.addLayer(e[t])},_addZoomLimit:function(e){isNaN(e.options.maxZoom)&&isNaN(e.options.minZoom)||(this._zoomBoundLayers[f(e)]=e,this._updateZoomLevels())},_removeZoomLimit:function(e){var t=f(e);this._zoomBoundLayers[t]&&(delete this._zoomBoundLayers[t],this._updateZoomLevels())},_updateZoomLevels:function(){var e=1/0,t=-1/0,n=this._getZoomSpan();for(var r in this._zoomBoundLayers){var i=this._zoomBoundLayers[r].options;e=void 0===i.minZoom?e:Math.min(e,i.minZoom),t=void 0===i.maxZoom?t:Math.max(t,i.maxZoom)}this._layersMaxZoom=-1/0===t?void 0:t,this._layersMinZoom=1/0===e?void 0:e,n!==this._getZoomSpan()&&this.fire("zoomlevelschange"),void 0===this.options.maxZoom&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var t4=t3.extend({initialize:function(e,t){var n,r;if(w(this,t),this._layers={},e)for(n=0,r=e.length;n<r;n++)this.addLayer(e[n])},addLayer:function(e){var t=this.getLayerId(e);return this._layers[t]=e,this._map&&this._map.addLayer(e),this},removeLayer:function(e){var t=e in this._layers?e:this.getLayerId(e);return this._map&&this._layers[t]&&this._map.removeLayer(this._layers[t]),delete this._layers[t],this},hasLayer:function(e){return("number"==typeof e?e:this.getLayerId(e))in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(e){var t,n,r=Array.prototype.slice.call(arguments,1);for(t in this._layers)(n=this._layers[t])[e]&&n[e].apply(n,r);return this},onAdd:function(e){this.eachLayer(e.addLayer,e)},onRemove:function(e){this.eachLayer(e.removeLayer,e)},eachLayer:function(e,t){for(var n in this._layers)e.call(t,this._layers[n]);return this},getLayer:function(e){return this._layers[e]},getLayers:function(){var e=[];return this.eachLayer(e.push,e),e},setZIndex:function(e){return this.invoke("setZIndex",e)},getLayerId:function(e){return f(e)}}),t5=t4.extend({addLayer:function(e){return this.hasLayer(e)?this:(e.addEventParent(this),t4.prototype.addLayer.call(this,e),this.fire("layeradd",{layer:e}))},removeLayer:function(e){return this.hasLayer(e)?(e in this._layers&&(e=this._layers[e]),e.removeEventParent(this),t4.prototype.removeLayer.call(this,e),this.fire("layerremove",{layer:e})):this},setStyle:function(e){return this.invoke("setStyle",e)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var e=new W;for(var t in this._layers){var n=this._layers[t];e.extend(n.getBounds?n.getBounds():n.getLatLng())}return e}}),t6=B.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(e){w(this,e)},createIcon:function(e){return this._createIcon("icon",e)},createShadow:function(e){return this._createIcon("shadow",e)},_createIcon:function(e,t){var n=this._getIconUrl(e);if(!n){if("icon"===e)throw Error("iconUrl not set in Icon options (see the docs).");return null}var r=this._createImg(n,t&&"IMG"===t.tagName?t:null);return this._setIconStyles(r,e),(this.options.crossOrigin||""===this.options.crossOrigin)&&(r.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),r},_setIconStyles:function(e,t){var n=this.options,r=n[t+"Size"];"number"==typeof r&&(r=[r,r]);var i=H(r),a=H("shadow"===t&&n.shadowAnchor||n.iconAnchor||i&&i.divideBy(2,!0));e.className="leaflet-marker-"+t+" "+(n.className||""),a&&(e.style.marginLeft=-a.x+"px",e.style.marginTop=-a.y+"px"),i&&(e.style.width=i.x+"px",e.style.height=i.y+"px")},_createImg:function(e,t){return(t=t||document.createElement("img")).src=e,t},_getIconUrl:function(e){return eD.retina&&this.options[e+"RetinaUrl"]||this.options[e+"Url"]}}),t8=t6.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(e){return"string"!=typeof t8.imagePath&&(t8.imagePath=this._detectIconPath()),(this.options.imagePath||t8.imagePath)+t6.prototype._getIconUrl.call(this,e)},_stripUrl:function(e){var t=function(e,t,n){var r=t.exec(e);return r&&r[n]};return(e=t(e,/^url\((['"])?(.+)\1\)$/,2))&&t(e,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var e=e0("div","leaflet-default-icon-path",document.body),t=eQ(e,"background-image")||eQ(e,"backgroundImage");if(document.body.removeChild(e),t=this._stripUrl(t))return t;var n=document.querySelector('link[href$="leaflet.css"]');return n?n.href.substring(0,n.href.length-11-1):""}}),t7=tB.extend({initialize:function(e){this._marker=e},addHooks:function(){var e=this._marker._icon;this._draggable||(this._draggable=new tU(e,e,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),e6(e,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&e8(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(e){var t=this._marker,n=t._map,r=this._marker.options.autoPanSpeed,i=this._marker.options.autoPanPadding,a=ti(t._icon),o=n.getPixelBounds(),s=n.getPixelOrigin(),l=V(o.min._subtract(s).add(i),o.max._subtract(s).subtract(i));if(!l.contains(a)){var u=H((Math.max(l.max.x,a.x)-l.max.x)/(o.max.x-l.max.x)-(Math.min(l.min.x,a.x)-l.min.x)/(o.min.x-l.min.x),(Math.max(l.max.y,a.y)-l.max.y)/(o.max.y-l.max.y)-(Math.min(l.min.y,a.y)-l.min.y)/(o.min.y-l.min.y)).multiplyBy(r);n.panBy(u,{animate:!1}),this._draggable._newPos._add(u),this._draggable._startPos._add(u),tr(t._icon,this._draggable._newPos),this._onDrag(e),this._panRequest=k(this._adjustPan.bind(this,e))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(e){this._marker.options.autoPan&&(D(this._panRequest),this._panRequest=k(this._adjustPan.bind(this,e)))},_onDrag:function(e){var t=this._marker,n=t._shadow,r=ti(t._icon),i=t._map.layerPointToLatLng(r);n&&tr(n,r),t._latlng=i,e.latlng=i,e.oldLatLng=this._oldLatLng,t.fire("move",e).fire("drag",e)},_onDragEnd:function(e){D(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",e)}}),t9=t3.extend({options:{icon:new t8,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(e,t){w(this,t),this._latlng=J(e)},onAdd:function(e){this._zoomAnimated=this._zoomAnimated&&e.options.markerZoomAnimation,this._zoomAnimated&&e.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(e){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&e.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(e){var t=this._latlng;return this._latlng=J(e),this.update(),this.fire("move",{oldLatLng:t,latlng:this._latlng})},setZIndexOffset:function(e){return this.options.zIndexOffset=e,this.update()},getIcon:function(){return this.options.icon},setIcon:function(e){return this.options.icon=e,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var e=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(e)}return this},_initIcon:function(){var e=this.options,t="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),n=e.icon.createIcon(this._icon),r=!1;n!==this._icon&&(this._icon&&this._removeIcon(),r=!0,e.title&&(n.title=e.title),"IMG"===n.tagName&&(n.alt=e.alt||"")),e6(n,t),e.keyboard&&(n.tabIndex="0",n.setAttribute("role","button")),this._icon=n,e.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&th(n,"focus",this._panOnFocus,this);var i=e.icon.createShadow(this._shadow),a=!1;i!==this._shadow&&(this._removeShadow(),a=!0),i&&(e6(i,t),i.alt=""),this._shadow=i,e.opacity<1&&this._updateOpacity(),r&&this.getPane().appendChild(this._icon),this._initInteraction(),i&&a&&this.getPane(e.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&tm(this._icon,"focus",this._panOnFocus,this),e1(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&e1(this._shadow),this._shadow=null},_setPos:function(e){this._icon&&tr(this._icon,e),this._shadow&&tr(this._shadow,e),this._zIndex=e.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(e){this._icon&&(this._icon.style.zIndex=this._zIndex+e)},_animateZoom:function(e){var t=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center).round();this._setPos(t)},_initInteraction:function(){if(this.options.interactive&&(e6(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),t7)){var e=this.options.draggable;this.dragging&&(e=this.dragging.enabled(),this.dragging.disable()),this.dragging=new t7(this),e&&this.dragging.enable()}},setOpacity:function(e){return this.options.opacity=e,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var e=this.options.opacity;this._icon&&te(this._icon,e),this._shadow&&te(this._shadow,e)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var e=this._map;if(e){var t=this.options.icon.options,n=t.iconSize?H(t.iconSize):H(0,0),r=t.iconAnchor?H(t.iconAnchor):H(0,0);e.panInside(this._latlng,{paddingTopLeft:r,paddingBottomRight:n.subtract(r)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}}),ne=t3.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(e){this._renderer=e.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(e){return w(this,e),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&e&&Object.prototype.hasOwnProperty.call(e,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),nt=ne.extend({options:{fill:!0,radius:10},initialize:function(e,t){w(this,t),this._latlng=J(e),this._radius=this.options.radius},setLatLng:function(e){var t=this._latlng;return this._latlng=J(e),this.redraw(),this.fire("move",{oldLatLng:t,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(e){return this.options.radius=this._radius=e,this.redraw()},getRadius:function(){return this._radius},setStyle:function(e){var t=e&&e.radius||this._radius;return ne.prototype.setStyle.call(this,e),this.setRadius(t),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var e=this._radius,t=this._radiusY||e,n=this._clickTolerance(),r=[e+n,t+n];this._pxBounds=new G(this._point.subtract(r),this._point.add(r))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(e){return e.distanceTo(this._point)<=this._radius+this._clickTolerance()}}),nn=nt.extend({initialize:function(e,n,r){if("number"==typeof n&&(n=t({},r,{radius:n})),w(this,n),this._latlng=J(e),isNaN(this.options.radius))throw Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(e){return this._mRadius=e,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var e=[this._radius,this._radiusY||this._radius];return new W(this._map.layerPointToLatLng(this._point.subtract(e)),this._map.layerPointToLatLng(this._point.add(e)))},setStyle:ne.prototype.setStyle,_project:function(){var e=this._latlng.lng,t=this._latlng.lat,n=this._map,r=n.options.crs;if(r.distance===Y.distance){var i=Math.PI/180,a=this._mRadius/Y.R/i,o=n.project([t+a,e]),s=n.project([t-a,e]),l=o.add(s).divideBy(2),u=n.unproject(l).lat,c=Math.acos((Math.cos(a*i)-Math.sin(t*i)*Math.sin(u*i))/(Math.cos(t*i)*Math.cos(u*i)))/i;(isNaN(c)||0===c)&&(c=a/Math.cos(Math.PI/180*t)),this._point=l.subtract(n.getPixelOrigin()),this._radius=isNaN(c)?0:l.x-n.project([u,e-c]).x,this._radiusY=l.y-o.y}else{var d=r.unproject(r.project(this._latlng).subtract([this._mRadius,0]));this._point=n.latLngToLayerPoint(this._latlng),this._radius=this._point.x-n.latLngToLayerPoint(d).x}this._updateBounds()}}),nr=ne.extend({options:{smoothFactor:1,noClip:!1},initialize:function(e,t){w(this,t),this._setLatLngs(e)},getLatLngs:function(){return this._latlngs},setLatLngs:function(e){return this._setLatLngs(e),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(e){for(var t,n,r=1/0,i=null,a=tJ,o=0,s=this._parts.length;o<s;o++)for(var l=this._parts[o],u=1,c=l.length;u<c;u++){var d=a(e,t=l[u-1],n=l[u],!0);d<r&&(r=d,i=a(e,t,n))}return i&&(i.distance=Math.sqrt(r)),i},getCenter:function(){if(!this._map)throw Error("Must add layer to map before using getCenter()");return tX(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(e,t){return t=t||this._defaultShape(),e=J(e),t.push(e),this._bounds.extend(e),this.redraw()},_setLatLngs:function(e){this._bounds=new W,this._latlngs=this._convertLatLngs(e)},_defaultShape:function(){return tK(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(e){for(var t=[],n=tK(e),r=0,i=e.length;r<i;r++)n?(t[r]=J(e[r]),this._bounds.extend(t[r])):t[r]=this._convertLatLngs(e[r]);return t},_project:function(){var e=new G;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,e),this._bounds.isValid()&&e.isValid()&&(this._rawPxBounds=e,this._updateBounds())},_updateBounds:function(){var e=this._clickTolerance(),t=new j(e,e);this._rawPxBounds&&(this._pxBounds=new G([this._rawPxBounds.min.subtract(t),this._rawPxBounds.max.add(t)]))},_projectLatlngs:function(e,t,n){var r,i,a=e[0]instanceof $,o=e.length;if(a){for(r=0,i=[];r<o;r++)i[r]=this._map.latLngToLayerPoint(e[r]),n.extend(i[r]);t.push(i)}else for(r=0;r<o;r++)this._projectLatlngs(e[r],t,n)},_clipPoints:function(){var e=this._renderer._bounds;if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(e)){if(this.options.noClip){this._parts=this._rings;return}var t,n,r,i,a,o,s,l=this._parts;for(t=0,r=0,i=this._rings.length;t<i;t++)for(n=0,a=(s=this._rings[t]).length;n<a-1;n++)(o=tW(s[n],s[n+1],e,n,!0))&&(l[r]=l[r]||[],l[r].push(o[0]),(o[1]!==s[n+1]||n===a-2)&&(l[r].push(o[1]),r++))}},_simplifyPoints:function(){for(var e=this._parts,t=this.options.smoothFactor,n=0,r=e.length;n<r;n++)e[n]=tG(e[n],t)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(e,t){var n,r,i,a,o,s,l=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(e))return!1;for(n=0,a=this._parts.length;n<a;n++)for(r=0,i=(o=(s=this._parts[n]).length)-1;r<o;i=r++)if((t||0!==r)&&tV(e,s[i],s[r])<=l)return!0;return!1}});nr._flat=tY;var ni=nr.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw Error("Must add layer to map before using getCenter()");return tz(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(e){var t=nr.prototype._convertLatLngs.call(this,e),n=t.length;return n>=2&&t[0]instanceof $&&t[0].equals(t[n-1])&&t.pop(),t},_setLatLngs:function(e){nr.prototype._setLatLngs.call(this,e),tK(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return tK(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var e=this._renderer._bounds,t=this.options.weight,n=new j(t,t);if(e=new G(e.min.subtract(n),e.max.add(n)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(e)){if(this.options.noClip){this._parts=this._rings;return}for(var r,i=0,a=this._rings.length;i<a;i++)(r=tj(this._rings[i],e,!0)).length&&this._parts.push(r)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(e){var t,n,r,i,a,o,s,l,u=!1;if(!this._pxBounds||!this._pxBounds.contains(e))return!1;for(i=0,s=this._parts.length;i<s;i++)for(a=0,o=(l=(t=this._parts[i]).length)-1;a<l;o=a++)n=t[a],r=t[o],n.y>e.y!=r.y>e.y&&e.x<(r.x-n.x)*(e.y-n.y)/(r.y-n.y)+n.x&&(u=!u);return u||nr.prototype._containsPoint.call(this,e,!0)}}),na=t5.extend({initialize:function(e,t){w(this,t),this._layers={},e&&this.addData(e)},addData:function(e){var t,n,r,i=T(e)?e:e.features;if(i){for(t=0,n=i.length;t<n;t++)((r=i[t]).geometries||r.geometry||r.features||r.coordinates)&&this.addData(r);return this}var a=this.options;if(a.filter&&!a.filter(e))return this;var o=no(e,a);return o?(o.feature=np(e),o.defaultOptions=o.options,this.resetStyle(o),a.onEachFeature&&a.onEachFeature(e,o),this.addLayer(o)):this},resetStyle:function(e){return void 0===e?this.eachLayer(this.resetStyle,this):(e.options=t({},e.defaultOptions),this._setLayerStyle(e,this.options.style),this)},setStyle:function(e){return this.eachLayer(function(t){this._setLayerStyle(t,e)},this)},_setLayerStyle:function(e,t){e.setStyle&&("function"==typeof t&&(t=t(e.feature)),e.setStyle(t))}});function no(e,t){var n,r,i,a="Feature"===e.type?e.geometry:e,o=a?a.coordinates:null,s=[],l=t&&t.pointToLayer,u=t&&t.coordsToLatLng||nl;if(!o&&!a)return null;switch(a.type){case"Point":return ns(l,e,n=u(o),t);case"MultiPoint":for(r=0,i=o.length;r<i;r++)n=u(o[r]),s.push(ns(l,e,n,t));return new t5(s);case"LineString":case"MultiLineString":return new nr(nu(o,+("LineString"!==a.type),u),t);case"Polygon":case"MultiPolygon":return new ni(nu(o,"Polygon"===a.type?1:2,u),t);case"GeometryCollection":for(r=0,i=a.geometries.length;r<i;r++){var c=no({geometry:a.geometries[r],type:"Feature",properties:e.properties},t);c&&s.push(c)}return new t5(s);case"FeatureCollection":for(r=0,i=a.features.length;r<i;r++){var d=no(a.features[r],t);d&&s.push(d)}return new t5(s);default:throw Error("Invalid GeoJSON object.")}}function ns(e,t,n,r){return e?e(t,n):new t9(n,r&&r.markersInheritOptions&&r)}function nl(e){return new $(e[1],e[0],e[2])}function nu(e,t,n){for(var r=[],i=0,a=e.length;i<a;i++)r.push(t?nu(e[i],t-1,n):(n||nl)(e[i]));return r}function nc(e,t){return void 0!==(e=J(e)).alt?[b(e.lng,t),b(e.lat,t),b(e.alt,t)]:[b(e.lng,t),b(e.lat,t)]}function nd(e,t,n,r){for(var i=[],a=0,o=e.length;a<o;a++)i.push(t?nd(e[a],tK(e[a])?0:t-1,n,r):nc(e[a],r));return!t&&n&&i.length>0&&i.push(i[0].slice()),i}function nh(e,n){return e.feature?t({},e.feature,{geometry:n}):np(n)}function np(e){return"Feature"===e.type||"FeatureCollection"===e.type?e:{type:"Feature",properties:{},geometry:e}}var nm={toGeoJSON:function(e){return nh(this,{type:"Point",coordinates:nc(this.getLatLng(),e)})}};function nf(e,t){return new na(e,t)}t9.include(nm),nn.include(nm),nt.include(nm),nr.include({toGeoJSON:function(e){var t=!tK(this._latlngs),n=nd(this._latlngs,+!!t,!1,e);return nh(this,{type:(t?"Multi":"")+"LineString",coordinates:n})}}),ni.include({toGeoJSON:function(e){var t=!tK(this._latlngs),n=t&&!tK(this._latlngs[0]),r=nd(this._latlngs,n?2:+!!t,!0,e);return t||(r=[r]),nh(this,{type:(n?"Multi":"")+"Polygon",coordinates:r})}}),t4.include({toMultiPoint:function(e){var t=[];return this.eachLayer(function(n){t.push(n.toGeoJSON(e).geometry.coordinates)}),nh(this,{type:"MultiPoint",coordinates:t})},toGeoJSON:function(e){var t=this.feature&&this.feature.geometry&&this.feature.geometry.type;if("MultiPoint"===t)return this.toMultiPoint(e);var n="GeometryCollection"===t,r=[];return(this.eachLayer(function(t){if(t.toGeoJSON){var i=t.toGeoJSON(e);if(n)r.push(i.geometry);else{var a=np(i);"FeatureCollection"===a.type?r.push.apply(r,a.features):r.push(a)}}}),n)?nh(this,{geometries:r,type:"GeometryCollection"}):{type:"FeatureCollection",features:r}}});var ng=t3.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(e,t,n){this._url=e,this._bounds=q(t),w(this,n)},onAdd:function(){!this._image&&(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(e6(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){e1(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(e){return this.options.opacity=e,this._image&&this._updateOpacity(),this},setStyle:function(e){return e.opacity&&this.setOpacity(e.opacity),this},bringToFront:function(){return this._map&&e3(this._image),this},bringToBack:function(){return this._map&&e4(this._image),this},setUrl:function(e){return this._url=e,this._image&&(this._image.src=e),this},setBounds:function(e){return this._bounds=q(e),this._map&&this._reset(),this},getEvents:function(){var e={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(e.zoomanim=this._animateZoom),e},setZIndex:function(e){return this.options.zIndex=e,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var e="IMG"===this._url.tagName,t=this._image=e?this._url:e0("img");if(e6(t,"leaflet-image-layer"),this._zoomAnimated&&e6(t,"leaflet-zoom-animated"),this.options.className&&e6(t,this.options.className),t.onselectstart=y,t.onmousemove=y,t.onload=p(this.fire,this,"load"),t.onerror=p(this._overlayOnError,this,"error"),(this.options.crossOrigin||""===this.options.crossOrigin)&&(t.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),e){this._url=t.src;return}t.src=this._url,t.alt=this.options.alt},_animateZoom:function(e){var t=this._map.getZoomScale(e.zoom),n=this._map._latLngBoundsToNewLayerBounds(this._bounds,e.zoom,e.center).min;tn(this._image,n,t)},_reset:function(){var e=this._image,t=new G(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),n=t.getSize();tr(e,t.min),e.style.width=n.x+"px",e.style.height=n.y+"px"},_updateOpacity:function(){te(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var e=this.options.errorOverlayUrl;e&&this._url!==e&&(this._url=e,this._image.src=e)},getCenter:function(){return this._bounds.getCenter()}}),nv=ng.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var e="VIDEO"===this._url.tagName,t=this._image=e?this._url:e0("video");if(e6(t,"leaflet-image-layer"),this._zoomAnimated&&e6(t,"leaflet-zoom-animated"),this.options.className&&e6(t,this.options.className),t.onselectstart=y,t.onmousemove=y,t.onloadeddata=p(this.fire,this,"load"),e){for(var n=t.getElementsByTagName("source"),r=[],i=0;i<n.length;i++)r.push(n[i].src);this._url=n.length>0?r:[t.src];return}T(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(t.style,"objectFit")&&(t.style.objectFit="fill"),t.autoplay=!!this.options.autoplay,t.loop=!!this.options.loop,t.muted=!!this.options.muted,t.playsInline=!!this.options.playsInline;for(var a=0;a<this._url.length;a++){var o=e0("source");o.src=this._url[a],t.appendChild(o)}}}),ny=ng.extend({_initImage:function(){var e=this._image=this._url;e6(e,"leaflet-image-layer"),this._zoomAnimated&&e6(e,"leaflet-zoom-animated"),this.options.className&&e6(e,this.options.className),e.onselectstart=y,e.onmousemove=y}}),nb=t3.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(e,t){e&&(e instanceof $||T(e))?(this._latlng=J(e),w(this,t)):(w(this,e),this._source=t),this.options.content&&(this._content=this.options.content)},openOn:function(e){return e=arguments.length?e:this._source._map,e.hasLayer(this)||e.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(e){return this._map?this.close():(arguments.length?this._source=e:e=this._source,this._prepareOpen(),this.openOn(e._map)),this},onAdd:function(e){this._zoomAnimated=e._zoomAnimated,this._container||this._initLayout(),e._fadeAnimated&&te(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),e._fadeAnimated&&te(this._container,1),this.bringToFront(),this.options.interactive&&(e6(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(e){e._fadeAnimated?(te(this._container,0),this._removeTimeout=setTimeout(p(e1,void 0,this._container),200)):e1(this._container),this.options.interactive&&(e8(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(e){return this._latlng=J(e),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(e){return this._content=e,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var e={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(e.zoomanim=this._animateZoom),e},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&e3(this._container),this},bringToBack:function(){return this._map&&e4(this._container),this},_prepareOpen:function(e){var t=this._source;if(!t._map)return!1;if(t instanceof t5){t=null;var n=this._source._layers;for(var r in n)if(n[r]._map){t=n[r];break}if(!t)return!1;this._source=t}if(!e)if(t.getCenter)e=t.getCenter();else if(t.getLatLng)e=t.getLatLng();else if(t.getBounds)e=t.getBounds().getCenter();else throw Error("Unable to get source layer LatLng.");return this.setLatLng(e),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var e=this._contentNode,t="function"==typeof this._content?this._content(this._source||this):this._content;if("string"==typeof t)e.innerHTML=t;else{for(;e.hasChildNodes();)e.removeChild(e.firstChild);e.appendChild(t)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var e=this._map.latLngToLayerPoint(this._latlng),t=H(this.options.offset),n=this._getAnchor();this._zoomAnimated?tr(this._container,e.add(n)):t=t.add(e).add(n);var r=this._containerBottom=-t.y,i=this._containerLeft=-Math.round(this._containerWidth/2)+t.x;this._container.style.bottom=r+"px",this._container.style.left=i+"px"}},_getAnchor:function(){return[0,0]}});tN.include({_initOverlay:function(e,t,n,r){var i=t;return i instanceof e||(i=new e(r).setContent(t)),n&&i.setLatLng(n),i}}),t3.include({_initOverlay:function(e,t,n,r){var i=n;return i instanceof e?(w(i,r),i._source=this):(i=t&&!r?t:new e(r,this)).setContent(n),i}});var n_=nb.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(e){return e=arguments.length?e:this._source._map,!e.hasLayer(this)&&e._popup&&e._popup.options.autoClose&&e.removeLayer(e._popup),e._popup=this,nb.prototype.openOn.call(this,e)},onAdd:function(e){nb.prototype.onAdd.call(this,e),e.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof ne||this._source.on("preclick",tb))},onRemove:function(e){nb.prototype.onRemove.call(this,e),e.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof ne||this._source.off("preclick",tb))},getEvents:function(){var e=nb.prototype.getEvents.call(this);return(void 0!==this.options.closeOnClick?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(e.preclick=this.close),this.options.keepInView&&(e.moveend=this._adjustPan),e},_initLayout:function(){var e="leaflet-popup",t=this._container=e0("div",e+" "+(this.options.className||"")+" leaflet-zoom-animated"),n=this._wrapper=e0("div",e+"-content-wrapper",t);if(this._contentNode=e0("div",e+"-content",n),tx(t),t_(this._contentNode),th(t,"contextmenu",tb),this._tipContainer=e0("div",e+"-tip-container",t),this._tip=e0("div",e+"-tip",this._tipContainer),this.options.closeButton){var r=this._closeButton=e0("a",e+"-close-button",t);r.setAttribute("role","button"),r.setAttribute("aria-label","Close popup"),r.href="#close",r.innerHTML='<span aria-hidden="true">&#215;</span>',th(r,"click",function(e){tw(e),this.close()},this)}},_updateLayout:function(){var e=this._contentNode,t=e.style;t.width="",t.whiteSpace="nowrap";var n=e.offsetWidth;t.width=(n=Math.max(n=Math.min(n,this.options.maxWidth),this.options.minWidth))+1+"px",t.whiteSpace="",t.height="";var r=e.offsetHeight,i=this.options.maxHeight,a="leaflet-popup-scrolled";i&&r>i?(t.height=i+"px",e6(e,a)):e8(e,a),this._containerWidth=this._container.offsetWidth},_animateZoom:function(e){var t=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center),n=this._getAnchor();tr(this._container,t.add(n))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var e=this._map,t=parseInt(eQ(this._container,"marginBottom"),10)||0,n=this._container.offsetHeight+t,r=this._containerWidth,i=new j(this._containerLeft,-n-this._containerBottom);i._add(ti(this._container));var a=e.layerPointToContainerPoint(i),o=H(this.options.autoPanPadding),s=H(this.options.autoPanPaddingTopLeft||o),l=H(this.options.autoPanPaddingBottomRight||o),u=e.getSize(),c=0,d=0;a.x+r+l.x>u.x&&(c=a.x+r-u.x+l.x),a.x-c-s.x<0&&(c=a.x-s.x),a.y+n+l.y>u.y&&(d=a.y+n-u.y+l.y),a.y-d-s.y<0&&(d=a.y-s.y),(c||d)&&(this.options.keepInView&&(this._autopanning=!0),e.fire("autopanstart").panBy([c,d]))}},_getAnchor:function(){return H(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}});tN.mergeOptions({closePopupOnClick:!0}),tN.include({openPopup:function(e,t,n){return this._initOverlay(n_,e,t,n).openOn(this),this},closePopup:function(e){return e=arguments.length?e:this._popup,e&&e.close(),this}}),t3.include({bindPopup:function(e,t){return this._popup=this._initOverlay(n_,this._popup,e,t),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(e){return this._popup&&(this instanceof t5||(this._popup._source=this),this._popup._prepareOpen(e||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(e){return this._popup&&this._popup.setContent(e),this},getPopup:function(){return this._popup},_openPopup:function(e){if(this._popup&&this._map){tS(e);var t=e.layer||e.target;if(this._popup._source===t&&!(t instanceof ne))return void(this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(e.latlng));this._popup._source=t,this.openPopup(e.latlng)}},_movePopup:function(e){this._popup.setLatLng(e.latlng)},_onKeyPress:function(e){13===e.originalEvent.keyCode&&this._openPopup(e)}});var nx=nb.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(e){nb.prototype.onAdd.call(this,e),this.setOpacity(this.options.opacity),e.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(e){nb.prototype.onRemove.call(this,e),e.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var e=nb.prototype.getEvents.call(this);return this.options.permanent||(e.preclick=this.close),e},_initLayout:function(){var e="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=e0("div",e),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+f(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(e){var t,n,r=this._map,i=this._container,a=r.latLngToContainerPoint(r.getCenter()),o=r.layerPointToContainerPoint(e),s=this.options.direction,l=i.offsetWidth,u=i.offsetHeight,c=H(this.options.offset),d=this._getAnchor();"top"===s?(t=l/2,n=u):"bottom"===s?(t=l/2,n=0):("center"===s?t=l/2:"right"===s?t=0:"left"===s?t=l:o.x<a.x?(s="right",t=0):(s="left",t=l+(c.x+d.x)*2),n=u/2),e=e.subtract(H(t,n,!0)).add(c).add(d),e8(i,"leaflet-tooltip-right"),e8(i,"leaflet-tooltip-left"),e8(i,"leaflet-tooltip-top"),e8(i,"leaflet-tooltip-bottom"),e6(i,"leaflet-tooltip-"+s),tr(i,e)},_updatePosition:function(){var e=this._map.latLngToLayerPoint(this._latlng);this._setPosition(e)},setOpacity:function(e){this.options.opacity=e,this._container&&te(this._container,e)},_animateZoom:function(e){var t=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center);this._setPosition(t)},_getAnchor:function(){return H(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}});tN.include({openTooltip:function(e,t,n){return this._initOverlay(nx,e,t,n).openOn(this),this},closeTooltip:function(e){return e.close(),this}}),t3.include({bindTooltip:function(e,t){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(nx,this._tooltip,e,t),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(e){if(e||!this._tooltipHandlersAdded){var t={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?t.add=this._openTooltip:(t.mouseover=this._openTooltip,t.mouseout=this.closeTooltip,t.click=this._openTooltip,this._map?this._addFocusListeners():t.add=this._addFocusListeners),this._tooltip.options.sticky&&(t.mousemove=this._moveTooltip),this[e?"off":"on"](t),this._tooltipHandlersAdded=!e}},openTooltip:function(e){return this._tooltip&&(this instanceof t5||(this._tooltip._source=this),this._tooltip._prepareOpen(e)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(e){return this._tooltip&&this._tooltip.setContent(e),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(e){var t="function"==typeof e.getElement&&e.getElement();t&&(th(t,"focus",function(){this._tooltip._source=e,this.openTooltip()},this),th(t,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(e){var t="function"==typeof e.getElement&&e.getElement();t&&t.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(e){if(this._tooltip&&this._map){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var t=this;this._map.once("moveend",function(){t._openOnceFlag=!1,t._openTooltip(e)});return}this._tooltip._source=e.layer||e.target,this.openTooltip(this._tooltip.options.sticky?e.latlng:void 0)}},_moveTooltip:function(e){var t,n,r=e.latlng;this._tooltip.options.sticky&&e.originalEvent&&(t=this._map.mouseEventToContainerPoint(e.originalEvent),n=this._map.containerPointToLayerPoint(t),r=this._map.layerPointToLatLng(n)),this._tooltip.setLatLng(r)}});var nw=t6.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(e){var t=e&&"DIV"===e.tagName?e:document.createElement("div"),n=this.options;if(n.html instanceof Element?(e2(t),t.appendChild(n.html)):t.innerHTML=!1!==n.html?n.html:"",n.bgPos){var r=H(n.bgPos);t.style.backgroundPosition=-r.x+"px "+-r.y+"px"}return this._setIconStyles(t,"icon"),t},createShadow:function(){return null}});t6.Default=t8;var nS=t3.extend({options:{tileSize:256,opacity:1,updateWhenIdle:eD.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(e){w(this,e)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(e){e._addZoomLimit(this)},onRemove:function(e){this._removeAllTiles(),e1(this._container),e._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(e3(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(e4(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(e){return this.options.opacity=e,this._updateOpacity(),this},setZIndex:function(e){return this.options.zIndex=e,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var e=this._clampZoom(this._map.getZoom());e!==this._tileZoom&&(this._tileZoom=e,this._updateLevels()),this._update()}return this},getEvents:function(){var e={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=g(this._onMoveEnd,this.options.updateInterval,this)),e.move=this._onMove),this._zoomAnimated&&(e.zoomanim=this._animateZoom),e},createTile:function(){return document.createElement("div")},getTileSize:function(){var e=this.options.tileSize;return e instanceof j?e:new j(e,e)},_updateZIndex:function(){this._container&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(e){for(var t,n=this.getPane().children,r=-e(-1/0,1/0),i=0,a=n.length;i<a;i++)t=n[i].style.zIndex,n[i]!==this._container&&t&&(r=e(r,+t));isFinite(r)&&(this.options.zIndex=r+e(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!eD.ielt9){te(this._container,this.options.opacity);var e=+new Date,t=!1,n=!1;for(var r in this._tiles){var i=this._tiles[r];if(i.current&&i.loaded){var a=Math.min(1,(e-i.loaded)/200);te(i.el,a),a<1?t=!0:(i.active?n=!0:this._onOpaqueTile(i),i.active=!0)}}n&&!this._noPrune&&this._pruneTiles(),t&&(D(this._fadeFrame),this._fadeFrame=k(this._updateOpacity,this))}},_onOpaqueTile:y,_initContainer:function(){this._container||(this._container=e0("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var e=this._tileZoom,t=this.options.maxZoom;if(void 0!==e){for(var n in this._levels)n=Number(n),this._levels[n].el.children.length||n===e?(this._levels[n].el.style.zIndex=t-Math.abs(e-n),this._onUpdateLevel(n)):(e1(this._levels[n].el),this._removeTilesAtZoom(n),this._onRemoveLevel(n),delete this._levels[n]);var r=this._levels[e],i=this._map;return r||((r=this._levels[e]={}).el=e0("div","leaflet-tile-container leaflet-zoom-animated",this._container),r.el.style.zIndex=t,r.origin=i.project(i.unproject(i.getPixelOrigin()),e).round(),r.zoom=e,this._setZoomTransform(r,i.getCenter(),i.getZoom()),y(r.el.offsetWidth),this._onCreateLevel(r)),this._level=r,r}},_onUpdateLevel:y,_onRemoveLevel:y,_onCreateLevel:y,_pruneTiles:function(){if(this._map){var e,t,n=this._map.getZoom();if(n>this.options.maxZoom||n<this.options.minZoom)return void this._removeAllTiles();for(e in this._tiles)(t=this._tiles[e]).retain=t.current;for(e in this._tiles)if((t=this._tiles[e]).current&&!t.active){var r=t.coords;this._retainParent(r.x,r.y,r.z,r.z-5)||this._retainChildren(r.x,r.y,r.z,r.z+2)}for(e in this._tiles)this._tiles[e].retain||this._removeTile(e)}},_removeTilesAtZoom:function(e){for(var t in this._tiles)this._tiles[t].coords.z===e&&this._removeTile(t)},_removeAllTiles:function(){for(var e in this._tiles)this._removeTile(e)},_invalidateAll:function(){for(var e in this._levels)e1(this._levels[e].el),this._onRemoveLevel(Number(e)),delete this._levels[e];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(e,t,n,r){var i=Math.floor(e/2),a=Math.floor(t/2),o=n-1,s=new j(+i,+a);s.z=+o;var l=this._tileCoordsToKey(s),u=this._tiles[l];return u&&u.active?(u.retain=!0,!0):(u&&u.loaded&&(u.retain=!0),o>r&&this._retainParent(i,a,o,r))},_retainChildren:function(e,t,n,r){for(var i=2*e;i<2*e+2;i++)for(var a=2*t;a<2*t+2;a++){var o=new j(i,a);o.z=n+1;var s=this._tileCoordsToKey(o),l=this._tiles[s];if(l&&l.active){l.retain=!0;continue}l&&l.loaded&&(l.retain=!0),n+1<r&&this._retainChildren(i,a,n+1,r)}},_resetView:function(e){var t=e&&(e.pinch||e.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),t,t)},_animateZoom:function(e){this._setView(e.center,e.zoom,!0,e.noUpdate)},_clampZoom:function(e){var t=this.options;return void 0!==t.minNativeZoom&&e<t.minNativeZoom?t.minNativeZoom:void 0!==t.maxNativeZoom&&t.maxNativeZoom<e?t.maxNativeZoom:e},_setView:function(e,t,n,r){var i=Math.round(t);i=void 0!==this.options.maxZoom&&i>this.options.maxZoom||void 0!==this.options.minZoom&&i<this.options.minZoom?void 0:this._clampZoom(i);var a=this.options.updateWhenZooming&&i!==this._tileZoom;(!r||a)&&(this._tileZoom=i,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),void 0!==i&&this._update(e),n||this._pruneTiles(),this._noPrune=!!n),this._setZoomTransforms(e,t)},_setZoomTransforms:function(e,t){for(var n in this._levels)this._setZoomTransform(this._levels[n],e,t)},_setZoomTransform:function(e,t,n){var r=this._map.getZoomScale(n,e.zoom),i=e.origin.multiplyBy(r).subtract(this._map._getNewPixelOrigin(t,n)).round();eD.any3d?tn(e.el,i,r):tr(e.el,i)},_resetGrid:function(){var e=this._map,t=e.options.crs,n=this._tileSize=this.getTileSize(),r=this._tileZoom,i=this._map.getPixelWorldBounds(this._tileZoom);i&&(this._globalTileRange=this._pxBoundsToTileRange(i)),this._wrapX=t.wrapLng&&!this.options.noWrap&&[Math.floor(e.project([0,t.wrapLng[0]],r).x/n.x),Math.ceil(e.project([0,t.wrapLng[1]],r).x/n.y)],this._wrapY=t.wrapLat&&!this.options.noWrap&&[Math.floor(e.project([t.wrapLat[0],0],r).y/n.x),Math.ceil(e.project([t.wrapLat[1],0],r).y/n.y)]},_onMoveEnd:function(){this._map&&!this._map._animatingZoom&&this._update()},_getTiledPixelBounds:function(e){var t=this._map,n=t._animatingZoom?Math.max(t._animateToZoom,t.getZoom()):t.getZoom(),r=t.getZoomScale(n,this._tileZoom),i=t.project(e,this._tileZoom).floor(),a=t.getSize().divideBy(2*r);return new G(i.subtract(a),i.add(a))},_update:function(e){var t=this._map;if(t){var n=this._clampZoom(t.getZoom());if(void 0===e&&(e=t.getCenter()),void 0!==this._tileZoom){var r=this._getTiledPixelBounds(e),i=this._pxBoundsToTileRange(r),a=i.getCenter(),o=[],s=this.options.keepBuffer,l=new G(i.getBottomLeft().subtract([s,-s]),i.getTopRight().add([s,-s]));if(!(isFinite(i.min.x)&&isFinite(i.min.y)&&isFinite(i.max.x)&&isFinite(i.max.y)))throw Error("Attempted to load an infinite number of tiles");for(var u in this._tiles){var c=this._tiles[u].coords;c.z===this._tileZoom&&l.contains(new j(c.x,c.y))||(this._tiles[u].current=!1)}if(Math.abs(n-this._tileZoom)>1)return void this._setView(e,n);for(var d=i.min.y;d<=i.max.y;d++)for(var h=i.min.x;h<=i.max.x;h++){var p=new j(h,d);if(p.z=this._tileZoom,this._isValidTile(p)){var m=this._tiles[this._tileCoordsToKey(p)];m?m.current=!0:o.push(p)}}if(o.sort(function(e,t){return e.distanceTo(a)-t.distanceTo(a)}),0!==o.length){this._loading||(this._loading=!0,this.fire("loading"));var f=document.createDocumentFragment();for(h=0;h<o.length;h++)this._addTile(o[h],f);this._level.el.appendChild(f)}}}},_isValidTile:function(e){var t=this._map.options.crs;if(!t.infinite){var n=this._globalTileRange;if(!t.wrapLng&&(e.x<n.min.x||e.x>n.max.x)||!t.wrapLat&&(e.y<n.min.y||e.y>n.max.y))return!1}if(!this.options.bounds)return!0;var r=this._tileCoordsToBounds(e);return q(this.options.bounds).overlaps(r)},_keyToBounds:function(e){return this._tileCoordsToBounds(this._keyToTileCoords(e))},_tileCoordsToNwSe:function(e){var t=this._map,n=this.getTileSize(),r=e.scaleBy(n),i=r.add(n);return[t.unproject(r,e.z),t.unproject(i,e.z)]},_tileCoordsToBounds:function(e){var t=this._tileCoordsToNwSe(e),n=new W(t[0],t[1]);return this.options.noWrap||(n=this._map.wrapLatLngBounds(n)),n},_tileCoordsToKey:function(e){return e.x+":"+e.y+":"+e.z},_keyToTileCoords:function(e){var t=e.split(":"),n=new j(+t[0],+t[1]);return n.z=+t[2],n},_removeTile:function(e){var t=this._tiles[e];t&&(e1(t.el),delete this._tiles[e],this.fire("tileunload",{tile:t.el,coords:this._keyToTileCoords(e)}))},_initTile:function(e){e6(e,"leaflet-tile");var t=this.getTileSize();e.style.width=t.x+"px",e.style.height=t.y+"px",e.onselectstart=y,e.onmousemove=y,eD.ielt9&&this.options.opacity<1&&te(e,this.options.opacity)},_addTile:function(e,t){var n=this._getTilePos(e),r=this._tileCoordsToKey(e),i=this.createTile(this._wrapCoords(e),p(this._tileReady,this,e));this._initTile(i),this.createTile.length<2&&k(p(this._tileReady,this,e,null,i)),tr(i,n),this._tiles[r]={el:i,coords:e,current:!0},t.appendChild(i),this.fire("tileloadstart",{tile:i,coords:e})},_tileReady:function(e,t,n){t&&this.fire("tileerror",{error:t,tile:n,coords:e});var r=this._tileCoordsToKey(e);(n=this._tiles[r])&&(n.loaded=+new Date,this._map._fadeAnimated?(te(n.el,0),D(this._fadeFrame),this._fadeFrame=k(this._updateOpacity,this)):(n.active=!0,this._pruneTiles()),t||(e6(n.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:n.el,coords:e})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),eD.ielt9||!this._map._fadeAnimated?k(this._pruneTiles,this):setTimeout(p(this._pruneTiles,this),250)))},_getTilePos:function(e){return e.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(e){var t=new j(this._wrapX?v(e.x,this._wrapX):e.x,this._wrapY?v(e.y,this._wrapY):e.y);return t.z=e.z,t},_pxBoundsToTileRange:function(e){var t=this.getTileSize();return new G(e.min.unscaleBy(t).floor(),e.max.unscaleBy(t).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var e in this._tiles)if(!this._tiles[e].loaded)return!1;return!0}}),nE=nS.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(e,t){this._url=e,(t=w(this,t)).detectRetina&&eD.retina&&t.maxZoom>0?(t.tileSize=Math.floor(t.tileSize/2),t.zoomReverse?(t.zoomOffset--,t.minZoom=Math.min(t.maxZoom,t.minZoom+1)):(t.zoomOffset++,t.maxZoom=Math.max(t.minZoom,t.maxZoom-1)),t.minZoom=Math.max(0,t.minZoom)):t.zoomReverse?t.minZoom=Math.min(t.maxZoom,t.minZoom):t.maxZoom=Math.max(t.minZoom,t.maxZoom),"string"==typeof t.subdomains&&(t.subdomains=t.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(e,t){return this._url===e&&void 0===t&&(t=!0),this._url=e,t||this.redraw(),this},createTile:function(e,t){var n=document.createElement("img");return th(n,"load",p(this._tileOnLoad,this,t,n)),th(n,"error",p(this._tileOnError,this,t,n)),(this.options.crossOrigin||""===this.options.crossOrigin)&&(n.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),"string"==typeof this.options.referrerPolicy&&(n.referrerPolicy=this.options.referrerPolicy),n.alt="",n.src=this.getTileUrl(e),n},getTileUrl:function(e){var n={r:eD.retina?"@2x":"",s:this._getSubdomain(e),x:e.x,y:e.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var r=this._globalTileRange.max.y-e.y;this.options.tms&&(n.y=r),n["-y"]=r}return A(this._url,t(n,this.options))},_tileOnLoad:function(e,t){eD.ielt9?setTimeout(p(e,this,null,t),0):e(null,t)},_tileOnError:function(e,t,n){var r=this.options.errorTileUrl;r&&t.getAttribute("src")!==r&&(t.src=r),e(n,t)},_onTileRemove:function(e){e.tile.onload=null},_getZoomForUrl:function(){var e=this._tileZoom,t=this.options.maxZoom,n=this.options.zoomReverse,r=this.options.zoomOffset;return n&&(e=t-e),e+r},_getSubdomain:function(e){var t=Math.abs(e.x+e.y)%this.options.subdomains.length;return this.options.subdomains[t]},_abortLoading:function(){var e,t;for(e in this._tiles)if(this._tiles[e].coords.z!==this._tileZoom&&((t=this._tiles[e].el).onload=y,t.onerror=y,!t.complete)){t.src=C;var n=this._tiles[e].coords;e1(t),delete this._tiles[e],this.fire("tileabort",{tile:t,coords:n})}},_removeTile:function(e){var t=this._tiles[e];if(t)return t.el.setAttribute("src",C),nS.prototype._removeTile.call(this,e)},_tileReady:function(e,t,n){if(this._map&&(!n||n.getAttribute("src")!==C))return nS.prototype._tileReady.call(this,e,t,n)}});function nA(e,t){return new nE(e,t)}var nT=nE.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(e,n){this._url=e;var r=t({},this.defaultWmsParams);for(var i in n)i in this.options||(r[i]=n[i]);var a=(n=w(this,n)).detectRetina&&eD.retina?2:1,o=this.getTileSize();r.width=o.x*a,r.height=o.y*a,this.wmsParams=r},onAdd:function(e){this._crs=this.options.crs||e.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var t=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[t]=this._crs.code,nE.prototype.onAdd.call(this,e)},getTileUrl:function(e){var t=this._tileCoordsToNwSe(e),n=this._crs,r=V(n.project(t[0]),n.project(t[1])),i=r.min,a=r.max,o=(this._wmsVersion>=1.3&&this._crs===t1?[i.y,i.x,a.y,a.x]:[i.x,i.y,a.x,a.y]).join(","),s=nE.prototype.getTileUrl.call(this,e);return s+S(this.wmsParams,s,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+o},setParams:function(e,n){return t(this.wmsParams,e),n||this.redraw(),this}});nE.WMS=nT,nA.wms=function(e,t){return new nT(e,t)};var nI=t3.extend({options:{padding:.1},initialize:function(e){w(this,e),f(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),e6(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var e={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(e.zoomanim=this._onAnimZoom),e},_onAnimZoom:function(e){this._updateTransform(e.center,e.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(e,t){var n=this._map.getZoomScale(t,this._zoom),r=this._map.getSize().multiplyBy(.5+this.options.padding),i=this._map.project(this._center,t),a=r.multiplyBy(-n).add(i).subtract(this._map._getNewPixelOrigin(e,t));eD.any3d?tn(this._container,a,n):tr(this._container,a)},_reset:function(){for(var e in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[e]._reset()},_onZoomEnd:function(){for(var e in this._layers)this._layers[e]._project()},_updatePaths:function(){for(var e in this._layers)this._layers[e]._update()},_update:function(){var e=this.options.padding,t=this._map.getSize(),n=this._map.containerPointToLayerPoint(t.multiplyBy(-e)).round();this._bounds=new G(n,n.add(t.multiplyBy(1+2*e)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),nC=nI.extend({options:{tolerance:0},getEvents:function(){var e=nI.prototype.getEvents.call(this);return e.viewprereset=this._onViewPreReset,e},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){nI.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var e=this._container=document.createElement("canvas");th(e,"mousemove",this._onMouseMove,this),th(e,"click dblclick mousedown mouseup contextmenu",this._onClick,this),th(e,"mouseout",this._handleMouseOut,this),e._leaflet_disable_events=!0,this._ctx=e.getContext("2d")},_destroyContainer:function(){D(this._redrawRequest),delete this._ctx,e1(this._container),tm(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var e in this._redrawBounds=null,this._layers)this._layers[e]._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){nI.prototype._update.call(this);var e=this._bounds,t=this._container,n=e.getSize(),r=eD.retina?2:1;tr(t,e.min),t.width=r*n.x,t.height=r*n.y,t.style.width=n.x+"px",t.style.height=n.y+"px",eD.retina&&this._ctx.scale(2,2),this._ctx.translate(-e.min.x,-e.min.y),this.fire("update")}},_reset:function(){nI.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(e){this._updateDashArray(e),this._layers[f(e)]=e;var t=e._order={layer:e,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=t),this._drawLast=t,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(e){this._requestRedraw(e)},_removePath:function(e){var t=e._order,n=t.next,r=t.prev;n?n.prev=r:this._drawLast=r,r?r.next=n:this._drawFirst=n,delete e._order,delete this._layers[f(e)],this._requestRedraw(e)},_updatePath:function(e){this._extendRedrawBounds(e),e._project(),e._update(),this._requestRedraw(e)},_updateStyle:function(e){this._updateDashArray(e),this._requestRedraw(e)},_updateDashArray:function(e){if("string"==typeof e.options.dashArray){var t,n,r=e.options.dashArray.split(/[, ]+/),i=[];for(n=0;n<r.length;n++){if(isNaN(t=Number(r[n])))return;i.push(t)}e.options._dashArray=i}else e.options._dashArray=e.options.dashArray},_requestRedraw:function(e){this._map&&(this._extendRedrawBounds(e),this._redrawRequest=this._redrawRequest||k(this._redraw,this))},_extendRedrawBounds:function(e){if(e._pxBounds){var t=(e.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new G,this._redrawBounds.extend(e._pxBounds.min.subtract([t,t])),this._redrawBounds.extend(e._pxBounds.max.add([t,t]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var e=this._redrawBounds;if(e){var t=e.getSize();this._ctx.clearRect(e.min.x,e.min.y,t.x,t.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var e,t=this._redrawBounds;if(this._ctx.save(),t){var n=t.getSize();this._ctx.beginPath(),this._ctx.rect(t.min.x,t.min.y,n.x,n.y),this._ctx.clip()}this._drawing=!0;for(var r=this._drawFirst;r;r=r.next)e=r.layer,(!t||e._pxBounds&&e._pxBounds.intersects(t))&&e._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(e,t){if(this._drawing){var n,r,i,a,o=e._parts,s=o.length,l=this._ctx;if(s){for(l.beginPath(),n=0;n<s;n++){for(r=0,i=o[n].length;r<i;r++)a=o[n][r],l[r?"lineTo":"moveTo"](a.x,a.y);t&&l.closePath()}this._fillStroke(l,e)}}},_updateCircle:function(e){if(!(!this._drawing||e._empty())){var t=e._point,n=this._ctx,r=Math.max(Math.round(e._radius),1),i=(Math.max(Math.round(e._radiusY),1)||r)/r;1!==i&&(n.save(),n.scale(1,i)),n.beginPath(),n.arc(t.x,t.y/i,r,0,2*Math.PI,!1),1!==i&&n.restore(),this._fillStroke(n,e)}},_fillStroke:function(e,t){var n=t.options;n.fill&&(e.globalAlpha=n.fillOpacity,e.fillStyle=n.fillColor||n.color,e.fill(n.fillRule||"evenodd")),n.stroke&&0!==n.weight&&(e.setLineDash&&e.setLineDash(t.options&&t.options._dashArray||[]),e.globalAlpha=n.opacity,e.lineWidth=n.weight,e.strokeStyle=n.color,e.lineCap=n.lineCap,e.lineJoin=n.lineJoin,e.stroke())},_onClick:function(e){for(var t,n,r=this._map.mouseEventToLayerPoint(e),i=this._drawFirst;i;i=i.next)(t=i.layer).options.interactive&&t._containsPoint(r)&&("click"!==e.type&&"preclick"!==e.type||!this._map._draggableMoved(t))&&(n=t);this._fireEvent(!!n&&[n],e)},_onMouseMove:function(e){if(!(!this._map||this._map.dragging.moving())&&!this._map._animatingZoom){var t=this._map.mouseEventToLayerPoint(e);this._handleMouseHover(e,t)}},_handleMouseOut:function(e){var t=this._hoveredLayer;t&&(e8(this._container,"leaflet-interactive"),this._fireEvent([t],e,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(e,t){if(!this._mouseHoverThrottled){for(var n,r,i=this._drawFirst;i;i=i.next)(n=i.layer).options.interactive&&n._containsPoint(t)&&(r=n);r!==this._hoveredLayer&&(this._handleMouseOut(e),r&&(e6(this._container,"leaflet-interactive"),this._fireEvent([r],e,"mouseover"),this._hoveredLayer=r)),this._fireEvent(!!this._hoveredLayer&&[this._hoveredLayer],e),this._mouseHoverThrottled=!0,setTimeout(p(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(e,t,n){this._map._fireDOMEvent(t,n||t.type,e)},_bringToFront:function(e){var t=e._order;if(t){var n=t.next,r=t.prev;if(!n)return;n.prev=r,r?r.next=n:n&&(this._drawFirst=n),t.prev=this._drawLast,this._drawLast.next=t,t.next=null,this._drawLast=t,this._requestRedraw(e)}},_bringToBack:function(e){var t=e._order;if(t){var n=t.next,r=t.prev;if(!r)return;r.next=n,n?n.prev=r:r&&(this._drawLast=r),t.prev=null,t.next=this._drawFirst,this._drawFirst.prev=t,this._drawFirst=t,this._requestRedraw(e)}}});function nM(e){return eD.canvas?new nC(e):null}var nN=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(e){return document.createElement("<lvml:"+e+' class="lvml">')}}catch(e){}return function(e){return document.createElement("<"+e+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),nR=eD.vml?nN:en,nO=nI.extend({_initContainer:function(){this._container=nR("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=nR("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){e1(this._container),tm(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!this._map._animatingZoom||!this._bounds){nI.prototype._update.call(this);var e=this._bounds,t=e.getSize(),n=this._container;this._svgSize&&this._svgSize.equals(t)||(this._svgSize=t,n.setAttribute("width",t.x),n.setAttribute("height",t.y)),tr(n,e.min),n.setAttribute("viewBox",[e.min.x,e.min.y,t.x,t.y].join(" ")),this.fire("update")}},_initPath:function(e){var t=e._path=nR("path");e.options.className&&e6(t,e.options.className),e.options.interactive&&e6(t,"leaflet-interactive"),this._updateStyle(e),this._layers[f(e)]=e},_addPath:function(e){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(e._path),e.addInteractiveTarget(e._path)},_removePath:function(e){e1(e._path),e.removeInteractiveTarget(e._path),delete this._layers[f(e)]},_updatePath:function(e){e._project(),e._update()},_updateStyle:function(e){var t=e._path,n=e.options;t&&(n.stroke?(t.setAttribute("stroke",n.color),t.setAttribute("stroke-opacity",n.opacity),t.setAttribute("stroke-width",n.weight),t.setAttribute("stroke-linecap",n.lineCap),t.setAttribute("stroke-linejoin",n.lineJoin),n.dashArray?t.setAttribute("stroke-dasharray",n.dashArray):t.removeAttribute("stroke-dasharray"),n.dashOffset?t.setAttribute("stroke-dashoffset",n.dashOffset):t.removeAttribute("stroke-dashoffset")):t.setAttribute("stroke","none"),n.fill?(t.setAttribute("fill",n.fillColor||n.color),t.setAttribute("fill-opacity",n.fillOpacity),t.setAttribute("fill-rule",n.fillRule||"evenodd")):t.setAttribute("fill","none"))},_updatePoly:function(e,t){this._setPath(e,er(e._parts,t))},_updateCircle:function(e){var t=e._point,n=Math.max(Math.round(e._radius),1),r=Math.max(Math.round(e._radiusY),1)||n,i="a"+n+","+r+" 0 1,0 ",a=e._empty()?"M0 0":"M"+(t.x-n)+","+t.y+i+2*n+",0 "+i+-(2*n)+",0 ";this._setPath(e,a)},_setPath:function(e,t){e._path.setAttribute("d",t)},_bringToFront:function(e){e3(e._path)},_bringToBack:function(e){e4(e._path)}});function nP(e){return eD.svg||eD.vml?new nO(e):null}eD.vml&&nO.include({_initContainer:function(){this._container=e0("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(nI.prototype._update.call(this),this.fire("update"))},_initPath:function(e){var t=e._container=nN("shape");e6(t,"leaflet-vml-shape "+(this.options.className||"")),t.coordsize="1 1",e._path=nN("path"),t.appendChild(e._path),this._updateStyle(e),this._layers[f(e)]=e},_addPath:function(e){var t=e._container;this._container.appendChild(t),e.options.interactive&&e.addInteractiveTarget(t)},_removePath:function(e){var t=e._container;e1(t),e.removeInteractiveTarget(t),delete this._layers[f(e)]},_updateStyle:function(e){var t=e._stroke,n=e._fill,r=e.options,i=e._container;i.stroked=!!r.stroke,i.filled=!!r.fill,r.stroke?(t||(t=e._stroke=nN("stroke")),i.appendChild(t),t.weight=r.weight+"px",t.color=r.color,t.opacity=r.opacity,r.dashArray?t.dashStyle=T(r.dashArray)?r.dashArray.join(" "):r.dashArray.replace(/( *, *)/g," "):t.dashStyle="",t.endcap=r.lineCap.replace("butt","flat"),t.joinstyle=r.lineJoin):t&&(i.removeChild(t),e._stroke=null),r.fill?(n||(n=e._fill=nN("fill")),i.appendChild(n),n.color=r.fillColor||r.color,n.opacity=r.fillOpacity):n&&(i.removeChild(n),e._fill=null)},_updateCircle:function(e){var t=e._point.round(),n=Math.round(e._radius),r=Math.round(e._radiusY||n);this._setPath(e,e._empty()?"M0 0":"AL "+t.x+","+t.y+" "+n+","+r+" 0,23592600")},_setPath:function(e,t){e._path.v=t},_bringToFront:function(e){e3(e._container)},_bringToBack:function(e){e4(e._container)}}),tN.include({getRenderer:function(e){var t=e.options.renderer||this._getPaneRenderer(e.options.pane)||this.options.renderer||this._renderer;return t||(t=this._renderer=this._createRenderer()),this.hasLayer(t)||this.addLayer(t),t},_getPaneRenderer:function(e){if("overlayPane"===e||void 0===e)return!1;var t=this._paneRenderers[e];return void 0===t&&(t=this._createRenderer({pane:e}),this._paneRenderers[e]=t),t},_createRenderer:function(e){return this.options.preferCanvas&&nM(e)||nP(e)}});var nk=ni.extend({initialize:function(e,t){ni.prototype.initialize.call(this,this._boundsToLatLngs(e),t)},setBounds:function(e){return this.setLatLngs(this._boundsToLatLngs(e))},_boundsToLatLngs:function(e){return[(e=q(e)).getSouthWest(),e.getNorthWest(),e.getNorthEast(),e.getSouthEast()]}});nO.create=nR,nO.pointsToPath=er,na.geometryToLayer=no,na.coordsToLatLng=nl,na.coordsToLatLngs=nu,na.latLngToCoords=nc,na.latLngsToCoords=nd,na.getFeature=nh,na.asFeature=np,tN.mergeOptions({boxZoom:!0});var nL=tB.extend({initialize:function(e){this._map=e,this._container=e._container,this._pane=e._panes.overlayPane,this._resetStateTimeout=0,e.on("unload",this._destroy,this)},addHooks:function(){th(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){tm(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){e1(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(e){if(!e.shiftKey||1!==e.which&&1!==e.button)return!1;this._clearDeferredResetState(),this._resetState(),n(),to(),this._startPoint=this._map.mouseEventToContainerPoint(e),th(document,{contextmenu:tS,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(e){this._moved||(this._moved=!0,this._box=e0("div","leaflet-zoom-box",this._container),e6(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(e);var t=new G(this._point,this._startPoint),n=t.getSize();tr(this._box,t.min),this._box.style.width=n.x+"px",this._box.style.height=n.y+"px"},_finish:function(){this._moved&&(e1(this._box),e8(this._container,"leaflet-crosshair")),r(),ts(),tm(document,{contextmenu:tS,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(e){if((1===e.which||1===e.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(p(this._resetState,this),0);var t=new W(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(t).fire("boxzoomend",{boxZoomBounds:t})}},_onKeyDown:function(e){27===e.keyCode&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});tN.addInitHook("addHandler","boxZoom",nL),tN.mergeOptions({doubleClickZoom:!0});var nD=tB.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(e){var t=this._map,n=t.getZoom(),r=t.options.zoomDelta,i=e.originalEvent.shiftKey?n-r:n+r;"center"===t.options.doubleClickZoom?t.setZoom(i):t.setZoomAround(e.containerPoint,i)}});tN.addInitHook("addHandler","doubleClickZoom",nD),tN.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var nB=tB.extend({addHooks:function(){if(!this._draggable){var e=this._map;this._draggable=new tU(e._mapPane,e._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),e.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),e.on("zoomend",this._onZoomEnd,this),e.whenReady(this._onZoomEnd,this))}e6(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){e8(this._map._container,"leaflet-grab"),e8(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var e=this._map;if(e._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var t=q(this._map.options.maxBounds);this._offsetLimit=V(this._map.latLngToContainerPoint(t.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(t.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;e.fire("movestart").fire("dragstart"),e.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(e){if(this._map.options.inertia){var t=this._lastTime=+new Date,n=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(n),this._times.push(t),this._prunePositions(t)}this._map.fire("move",e).fire("drag",e)},_prunePositions:function(e){for(;this._positions.length>1&&e-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var e=this._map.getSize().divideBy(2),t=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=t.subtract(e).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(e,t){return e-(e-t)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var e=this._draggable._newPos.subtract(this._draggable._startPos),t=this._offsetLimit;e.x<t.min.x&&(e.x=this._viscousLimit(e.x,t.min.x)),e.y<t.min.y&&(e.y=this._viscousLimit(e.y,t.min.y)),e.x>t.max.x&&(e.x=this._viscousLimit(e.x,t.max.x)),e.y>t.max.y&&(e.y=this._viscousLimit(e.y,t.max.y)),this._draggable._newPos=this._draggable._startPos.add(e)}},_onPreDragWrap:function(){var e=this._worldWidth,t=Math.round(e/2),n=this._initialWorldOffset,r=this._draggable._newPos.x,i=(r-t+n)%e+t-n,a=(r+t+n)%e-t-n,o=Math.abs(i+n)<Math.abs(a+n)?i:a;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=o},_onDragEnd:function(e){var t=this._map,n=t.options,r=!n.inertia||e.noInertia||this._times.length<2;if(t.fire("dragend",e),r)t.fire("moveend");else{this._prunePositions(+new Date);var i=this._lastPos.subtract(this._positions[0]),a=(this._lastTime-this._times[0])/1e3,o=n.easeLinearity,s=i.multiplyBy(o/a),l=s.distanceTo([0,0]),u=Math.min(n.inertiaMaxSpeed,l),c=s.multiplyBy(u/l),d=u/(n.inertiaDeceleration*o),h=c.multiplyBy(-d/2).round();h.x||h.y?(h=t._limitOffset(h,t.options.maxBounds),k(function(){t.panBy(h,{duration:d,easeLinearity:o,noMoveStart:!0,animate:!0})})):t.fire("moveend")}}});tN.addInitHook("addHandler","dragging",nB),tN.mergeOptions({keyboard:!0,keyboardPanDelta:80});var nF=tB.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(e){this._map=e,this._setPanDelta(e.options.keyboardPanDelta),this._setZoomDelta(e.options.zoomDelta)},addHooks:function(){var e=this._map._container;e.tabIndex<=0&&(e.tabIndex="0"),th(e,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),tm(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var e=document.body,t=document.documentElement,n=e.scrollTop||t.scrollTop,r=e.scrollLeft||t.scrollLeft;this._map._container.focus(),window.scrollTo(r,n)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(e){var t,n,r=this._panKeys={},i=this.keyCodes;for(t=0,n=i.left.length;t<n;t++)r[i.left[t]]=[-1*e,0];for(t=0,n=i.right.length;t<n;t++)r[i.right[t]]=[e,0];for(t=0,n=i.down.length;t<n;t++)r[i.down[t]]=[0,e];for(t=0,n=i.up.length;t<n;t++)r[i.up[t]]=[0,-1*e]},_setZoomDelta:function(e){var t,n,r=this._zoomKeys={},i=this.keyCodes;for(t=0,n=i.zoomIn.length;t<n;t++)r[i.zoomIn[t]]=e;for(t=0,n=i.zoomOut.length;t<n;t++)r[i.zoomOut[t]]=-e},_addHooks:function(){th(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){tm(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(e){if(!e.altKey&&!e.ctrlKey&&!e.metaKey){var t,n=e.keyCode,r=this._map;if(n in this._panKeys){if(!r._panAnim||!r._panAnim._inProgress)if(t=this._panKeys[n],e.shiftKey&&(t=H(t).multiplyBy(3)),r.options.maxBounds&&(t=r._limitOffset(H(t),r.options.maxBounds)),r.options.worldCopyJump){var i=r.wrapLatLng(r.unproject(r.project(r.getCenter()).add(t)));r.panTo(i)}else r.panBy(t)}else if(n in this._zoomKeys)r.setZoom(r.getZoom()+(e.shiftKey?3:1)*this._zoomKeys[n]);else{if(27!==n||!r._popup||!r._popup.options.closeOnEscapeKey)return;r.closePopup()}tS(e)}}});tN.addInitHook("addHandler","keyboard",nF),tN.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var nU=tB.extend({addHooks:function(){th(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){tm(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(e){var t=tI(e),n=this._map.options.wheelDebounceTime;this._delta+=t,this._lastMousePos=this._map.mouseEventToContainerPoint(e),this._startTime||(this._startTime=+new Date);var r=Math.max(n-(new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(p(this._performZoom,this),r),tS(e)},_performZoom:function(){var e=this._map,t=e.getZoom(),n=this._map.options.zoomSnap||0;e._stop();var r=4*Math.log(2/(1+Math.exp(-Math.abs(this._delta/(4*this._map.options.wheelPxPerZoomLevel)))))/Math.LN2,i=n?Math.ceil(r/n)*n:r,a=e._limitZoom(t+(this._delta>0?i:-i))-t;this._delta=0,this._startTime=null,a&&("center"===e.options.scrollWheelZoom?e.setZoom(t+a):e.setZoomAround(this._lastMousePos,t+a))}});tN.addInitHook("addHandler","scrollWheelZoom",nU),tN.mergeOptions({tapHold:eD.touchNative&&eD.safari&&eD.mobile,tapTolerance:15});var nj=tB.extend({addHooks:function(){th(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){tm(this._map._container,"touchstart",this._onDown,this)},_onDown:function(e){if(clearTimeout(this._holdTimeout),1===e.touches.length){var t=e.touches[0];this._startPos=this._newPos=new j(t.clientX,t.clientY),this._holdTimeout=setTimeout(p(function(){this._cancel(),this._isTapValid()&&(th(document,"touchend",tw),th(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",t))},this),600),th(document,"touchend touchcancel contextmenu",this._cancel,this),th(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function e(){tm(document,"touchend",tw),tm(document,"touchend touchcancel",e)},_cancel:function(){clearTimeout(this._holdTimeout),tm(document,"touchend touchcancel contextmenu",this._cancel,this),tm(document,"touchmove",this._onMove,this)},_onMove:function(e){var t=e.touches[0];this._newPos=new j(t.clientX,t.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(e,t){var n=new MouseEvent(e,{bubbles:!0,cancelable:!0,view:window,screenX:t.screenX,screenY:t.screenY,clientX:t.clientX,clientY:t.clientY});n._simulated=!0,t.target.dispatchEvent(n)}});tN.addInitHook("addHandler","tapHold",nj),tN.mergeOptions({touchZoom:eD.touch,bounceAtZoomLimits:!0});var nz=tB.extend({addHooks:function(){e6(this._map._container,"leaflet-touch-zoom"),th(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){e8(this._map._container,"leaflet-touch-zoom"),tm(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(e){var t=this._map;if(e.touches&&2===e.touches.length&&!t._animatingZoom&&!this._zooming){var n=t.mouseEventToContainerPoint(e.touches[0]),r=t.mouseEventToContainerPoint(e.touches[1]);this._centerPoint=t.getSize()._divideBy(2),this._startLatLng=t.containerPointToLatLng(this._centerPoint),"center"!==t.options.touchZoom&&(this._pinchStartLatLng=t.containerPointToLatLng(n.add(r)._divideBy(2))),this._startDist=n.distanceTo(r),this._startZoom=t.getZoom(),this._moved=!1,this._zooming=!0,t._stop(),th(document,"touchmove",this._onTouchMove,this),th(document,"touchend touchcancel",this._onTouchEnd,this),tw(e)}},_onTouchMove:function(e){if(e.touches&&2===e.touches.length&&this._zooming){var t=this._map,n=t.mouseEventToContainerPoint(e.touches[0]),r=t.mouseEventToContainerPoint(e.touches[1]),i=n.distanceTo(r)/this._startDist;if(this._zoom=t.getScaleZoom(i,this._startZoom),!t.options.bounceAtZoomLimits&&(this._zoom<t.getMinZoom()&&i<1||this._zoom>t.getMaxZoom()&&i>1)&&(this._zoom=t._limitZoom(this._zoom)),"center"===t.options.touchZoom){if(this._center=this._startLatLng,1===i)return}else{var a=n._add(r)._divideBy(2)._subtract(this._centerPoint);if(1===i&&0===a.x&&0===a.y)return;this._center=t.unproject(t.project(this._pinchStartLatLng,this._zoom).subtract(a),this._zoom)}this._moved||(t._moveStart(!0,!1),this._moved=!0),D(this._animRequest);var o=p(t._move,t,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=k(o,this,!0),tw(e)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,D(this._animRequest),tm(document,"touchmove",this._onTouchMove,this),tm(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});tN.addInitHook("addHandler","touchZoom",nz),tN.BoxZoom=nL,tN.DoubleClickZoom=nD,tN.Drag=nB,tN.Keyboard=nF,tN.ScrollWheelZoom=nU,tN.TapHold=nj,tN.TouchZoom=nz,e.Bounds=G,e.Browser=eD,e.CRS=K,e.Canvas=nC,e.Circle=nn,e.CircleMarker=nt,e.Class=B,e.Control=tR,e.DivIcon=nw,e.DivOverlay=nb,e.DomEvent={__proto__:null,on:th,off:tm,stopPropagation:tb,disableScrollPropagation:t_,disableClickPropagation:tx,preventDefault:tw,stop:tS,getPropagationPath:tE,getMousePosition:tA,getWheelDelta:tI,isExternalTarget:tC,addListener:th,removeListener:tm},e.DomUtil={__proto__:null,TRANSFORM:eK,TRANSITION:eY,TRANSITION_END:eX,get:eZ,getStyle:eQ,create:e0,remove:e1,empty:e2,toFront:e3,toBack:e4,hasClass:e5,addClass:e6,removeClass:e8,setClass:e7,getClass:e9,setOpacity:te,testProp:tt,setTransform:tn,setPosition:tr,getPosition:ti,get disableTextSelection(){return n},get enableTextSelection(){return r},disableImageDrag:to,enableImageDrag:ts,preventOutline:tl,restoreOutline:tu,getSizedParentNode:tc,getScale:td},e.Draggable=tU,e.Evented=U,e.FeatureGroup=t5,e.GeoJSON=na,e.GridLayer=nS,e.Handler=tB,e.Icon=t6,e.ImageOverlay=ng,e.LatLng=$,e.LatLngBounds=W,e.Layer=t3,e.LayerGroup=t4,e.LineUtil={__proto__:null,simplify:tG,pointToSegmentDistance:tV,closestPointOnSegment:function(e,t,n){return tJ(e,t,n)},clipSegment:tW,_getEdgeIntersection:tq,_getBitCode:t$,_sqClosestPointOnSegment:tJ,isFlat:tK,_flat:tY,polylineCenter:tX},e.Map=tN,e.Marker=t9,e.Mixin={Events:F},e.Path=ne,e.Point=j,e.PolyUtil={__proto__:null,clipPolygon:tj,polygonCenter:tz,centroid:tH},e.Polygon=ni,e.Polyline=nr,e.Popup=n_,e.PosAnimation=tM,e.Projection={__proto__:null,LonLat:tZ,Mercator:tQ,SphericalMercator:X},e.Rectangle=nk,e.Renderer=nI,e.SVG=nO,e.SVGOverlay=ny,e.TileLayer=nE,e.Tooltip=nx,e.Transformation=Z,e.Util={__proto__:null,extend:t,create:h,bind:p,get lastId(){return m},stamp:f,throttle:g,wrapNum:v,falseFn:y,formatNum:b,trim:_,splitWords:x,setOptions:w,getParamString:S,template:A,isArray:T,indexOf:I,emptyImageUrl:C,requestFn:O,cancelFn:P,requestAnimFrame:k,cancelAnimFrame:D},e.VideoOverlay=nv,e.bind=p,e.bounds=V,e.canvas=nM,e.circle=function(e,t,n){return new nn(e,t,n)},e.circleMarker=function(e,t){return new nt(e,t)},e.control=tO,e.divIcon=function(e){return new nw(e)},e.extend=t,e.featureGroup=function(e,t){return new t5(e,t)},e.geoJSON=nf,e.geoJson=nf,e.gridLayer=function(e){return new nS(e)},e.icon=function(e){return new t6(e)},e.imageOverlay=function(e,t,n){return new ng(e,t,n)},e.latLng=J,e.latLngBounds=q,e.layerGroup=function(e,t){return new t4(e,t)},e.map=function(e,t){return new tN(e,t)},e.marker=function(e,t){return new t9(e,t)},e.point=H,e.polygon=function(e,t){return new ni(e,t)},e.polyline=function(e,t){return new nr(e,t)},e.popup=function(e,t){return new n_(e,t)},e.rectangle=function(e,t){return new nk(e,t)},e.setOptions=w,e.stamp=f,e.svg=nP,e.svgOverlay=function(e,t,n){return new ny(e,t,n)},e.tileLayer=nA,e.tooltip=function(e,t){return new nx(e,t)},e.transformation=Q,e.version="1.9.4",e.videoOverlay=function(e,t,n){return new nv(e,t,n)};var nH=window.L;e.noConflict=function(){return window.L=nH,this},window.L=e}($C);var ep=eu("85Hg2");function $M(){return($M=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let $N=(0,ep.forwardRef)(function({bounds:e,boundsOptions:t,center:n,children:r,className:i,id:a,placeholder:o,style:s,whenReady:l,zoom:u,...c},d){let[h]=(0,ep.useState)({className:i,id:a,style:s}),[p,m]=(0,ep.useState)(null);(0,ep.useImperativeHandle)(d,()=>p?.map??null,[p]);let f=(0,ep.useCallback)(r=>{if(null!==r&&null===p){let i=new(0,$C.Map)(r,c);null!=n&&null!=u?i.setView(n,u):null!=e&&i.fitBounds(e,t),null!=l&&i.whenReady(l),m(Object.freeze({__version:1,map:i}))}},[]);(0,ep.useEffect)(()=>()=>{p?.map.remove()},[p]);let g=p?(b(ep)).createElement($T,{value:p},r):o??null;return(b(ep)).createElement("div",$M({},h,{ref:f}),g)});function $R(e,t,n){return Object.freeze({instance:e,context:t,container:n})}function $O(e,t){return null==t?function(t,n){let r=(0,ep.useRef)();return r.current||(r.current=e(t,n)),r}:function(n,r){let i=(0,ep.useRef)();i.current||(i.current=e(n,r));let a=(0,ep.useRef)(n),{instance:o}=i.current;return(0,ep.useEffect)(function(){a.current!==n&&(t(o,n,a.current),a.current=n)},[o,n,r]),i}}function $P(e,t){let n=(0,ep.useRef)(t);(0,ep.useEffect)(function(){t!==n.current&&null!=e.attributionControl&&(null!=n.current&&e.attributionControl.removeAttribution(n.current),null!=t&&e.attributionControl.addAttribution(t)),n.current=t},[e,t])}function $k(e,t){let n=(0,ep.useRef)();(0,ep.useEffect)(function(){return null!=t&&e.instance.on(t),n.current=t,function(){null!=n.current&&e.instance.off(n.current),n.current=null}},[e,t])}function $L(e,t){let n=e.pane??t.pane;return n?{...e,pane:n}:e}function $D(e){return function(t){var n;let r=$I(),i=e($L(t,r),r);return $P(r.map,t.attribution),$k(i.current,t.eventHandlers),n=i.current,(0,ep.useEffect)(function(){return(r.layerContainer??r.map).addLayer(n.instance),function(){r.layerContainer?.removeLayer(n.instance),r.map.removeLayer(n.instance)}},[r,n]),i}}var ep=(eu("85Hg2"),eu("85Hg2"),eu("85Hg2"),eu("85Hg2"),eu("85Hg2"),eu("85Hg2"),eu("85Hg2"));let $B=(J=$D($O(function({url:e,...t},n){return $R(new(0,$C.TileLayer)(e,$L(t,n)),n)},function(e,t,n){!function(e,t,n){let{opacity:r,zIndex:i}=t;null!=r&&r!==n.opacity&&e.setOpacity(r),null!=i&&i!==n.zIndex&&e.setZIndex(i)}(e,t,n);let{url:r}=t;null!=r&&r!==n.url&&e.setUrl(r)})),(0,ep.forwardRef)(function(e,t){let{instance:n}=J(e).current;return(0,ep.useImperativeHandle)(t,()=>n),null})),$F=(K=$D($O(function({position:e,...t},n){var r;let i=new(0,$C.Marker)(e,t);return $R(i,(r={overlayContainer:i},Object.freeze({...n,...r})))},function(e,t,n){t.position!==n.position&&e.setLatLng(t.position),null!=t.icon&&t.icon!==n.icon&&e.setIcon(t.icon),null!=t.zIndexOffset&&t.zIndexOffset!==n.zIndexOffset&&e.setZIndexOffset(t.zIndexOffset),null!=t.opacity&&t.opacity!==n.opacity&&e.setOpacity(t.opacity),null!=e.dragging&&t.draggable!==n.draggable&&(!0===t.draggable?e.dragging.enable():e.dragging.disable())})),(0,ep.forwardRef)(function(e,t){let{instance:n,context:r}=K(e).current;return(0,ep.useImperativeHandle)(t,()=>n),null==e.children?null:(b(ep)).createElement($T,{value:r},e.children)}));var ep=eu("85Hg2");let $U=(Y=function(e,t){return $R(new(0,$C.Popup)(e,t.overlayContainer),t)},X=function(e,t,{position:n},r){(0,ep.useEffect)(function(){let{instance:i}=e;function a(e){e.popup===i&&(i.update(),r(!0))}function o(e){e.popup===i&&r(!1)}return t.map.on({popupopen:a,popupclose:o}),null==t.overlayContainer?(null!=n&&i.setLatLng(n),i.openOn(t.map)):t.overlayContainer.bindPopup(i),function(){t.map.off({popupopen:a,popupclose:o}),t.overlayContainer?.unbindPopup(),t.map.removeLayer(i)}},[e,t,r,n])},Z=$O(Y),Q=function(e,t){let n=$I(),r=Z($L(e,n),n);return $P(n.map,e.attribution),$k(r.current,e.eventHandlers),X(r.current,n,e,t),r},(0,ep.forwardRef)(function(e,t){let[n,r]=(0,ep.useState)(!1),{instance:i}=Q(e,r).current;(0,ep.useImperativeHandle)(t,()=>i),(0,ep.useEffect)(function(){n&&i.update()},[i,n,e.children]);let a=i._contentNode;return a?(0,eh.createPortal)(e.children,a):null})),$j=({center:e,size:t})=>{let n=$I();return(0,ep.useEffect)(()=>{let r=new(b($C)).Circle(e,t),i=n.layerContainer||n.map;return i.addLayer(r),()=>{i.removeLayer(r)}}),null},$z=({center:e,uncertainty:t})=>{let[n,r]=(0,ep.useState)(!1),i=$I().map,a=(0,ep.useCallback)(()=>{let n=void 0!==t?Math.round(Math.log2(1e7/t)):i.getZoom();i.setView(e,n)},[e,t,i]);return(0,ep.useEffect)(()=>{n||(a(),r(!0))},[]),(0,ep.useEffect)(()=>{a()},[e,t,a]),null},$H=(b($C)).icon({iconUrl:"https://unpkg.com/leaflet@1.9.4/dist/images/marker-icon.png",shadowUrl:"https://unpkg.com/leaflet@1.9.4/dist/images/marker-shadow.png",iconSize:[25,41],iconAnchor:[12.5,20.5],shadowAnchor:[12.5,20.5]});function $G(e){let t="Position";return(null==e?void 0:e.address)?t=[e.address.village||e.address.suburb,e.address.town||e.address.city||e.address.county||e.address.state,e.address.country].filter(Boolean).filter((e,t,n)=>n.indexOf(e)===t).join(", "):(null==e?void 0:e.display_name)&&(t=e.display_name),t}(b($C)).Marker.prototype.options.icon=$H;let $V=({venue:e,query:t,fetching:n,suggestions:r,onQueryChange:i,onChange:a,getPlaceName:o,t:s,autocompleteRootId:l="venue-widget-search",inputRef:u})=>{var c;let[d,h]=(0,ep.useState)(!1),[p,m]=(0,ep.useState)(!1),[f,g]=(0,ep.useState)(!1),v=(0,ep.useRef)(null),y=null!=u?u:v,b=(null==e?void 0:e.latitude)!=null?{place_id:0,lat:e.latitude,lon:e.longitude,display_name:null!=(c=e.placeName)?c:"",type:"",category:"",importance:0,place_rank:0,boundingbox:[0,0,0,0]}:void 0,_=b?o(b):"";(0,ep.useLayoutEffect)(()=>{let e=y.current;if(!e)return;let n=()=>{m(!0),_&&""===t&&!f&&i(_,{skipSearch:!0})},r=()=>m(!1);return e.addEventListener("focus",n),e.addEventListener("blur",r),()=>{e.removeEventListener("focus",n),e.removeEventListener("blur",r)}},[d,t,_,i,f]);let x=p||d||""!==t||f?t:_,w=r.map(e=>({value:o(e)||e.display_name,label:e.display_name}));return(0,ed.jsxs)(ed.Fragment,{children:[(0,ed.jsx)("label",{htmlFor:l,className:"sr-only",children:s("searchVenue")}),(0,ed.jsx)(bw,{id:l,inputRef:y,className:"memori--venue-widget-search",options:w,mode:"none",filter:null,value:x,onChange:(e,t)=>{if("item-press"===t.reason){let t=r.find(t=>(o(t)||t.display_name)===e);t&&(g(!1),i(e,{skipSearch:!0}),a(t));return}g(""===e.trim()),i(e)},open:d,onOpenChange:e=>h(e),placeholder:s("searchVenue"),loading:n,loadingText:`${s("loading")}...`,emptyText:t.trim()?s("nothingFound"):"​",autoHighlight:!0,clearable:""!==x.trim()})]})},$W=({venue:e})=>{var t,n;let[r,i]=(0,ep.useState)(!1);return(0,ep.useEffect)(()=>{i(!0)},[]),(0,ep.useEffect)(()=>{let e=document.createElement("link");return e.href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css",e.rel="stylesheet",e.integrity="sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY=",e.crossOrigin="",document.head.appendChild(e),()=>{document.head.removeChild(e)}},[]),(0,ed.jsx)("div",{className:"memori--venue-widget__map-container",role:"region","aria-label":"Location map",children:r&&(0,ed.jsxs)($N,{className:"memori--venue-widget__map",center:(null==e?void 0:e.latitude)&&(null==e?void 0:e.longitude)?[e.latitude,e.longitude]:[44.66579,11.48823],zoom:13,scrollWheelZoom:!0,children:[(0,ed.jsx)($B,{attribution:'© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors',url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}),(0,ed.jsx)($z,{center:(null==e?void 0:e.latitude)&&(null==e?void 0:e.longitude)?[e.latitude,e.longitude]:[44.66579,11.48823],uncertainty:(null!=(t=null==e?void 0:e.uncertainty)?t:0)*1e3}),(null==e?void 0:e.latitude)&&(null==e?void 0:e.longitude)&&(0,ed.jsx)($F,{position:[e.latitude,e.longitude],icon:$H,children:(0,ed.jsx)($U,{children:null!=(n=e.placeName)?n:""})}),(null==e?void 0:e.latitude)&&(null==e?void 0:e.longitude)&&(null==e?void 0:e.uncertainty)!==void 0&&(0,ed.jsx)($j,{center:[e.latitude,e.longitude],size:1e3*e.uncertainty})]})})};function $q(e){return!!((null==e?void 0:e.latitude)&&(null==e?void 0:e.longitude))}let $$=({venue:e,setVenue:t,autoStartGeolocation:n=!1})=>{var r,i;let a,o,{t:s}=tE(),[l,u]=(0,ep.useState)(!1),[c,d]=(0,ep.useState)(!1),[h,p]=(0,ep.useState)(null),[m,f]=(0,ep.useState)(null),[g,v]=(0,ep.useState)(!1),[y,_]=(0,ep.useState)(""),[x,w]=(0,ep.useState)([]),S=(0,ep.useRef)(0),E=(0,ep.useRef)(null),A=(0,ep.useRef)(!1),T=l||$q(e),I=(i=async e=>{v(!0);try{let t=await fetch(`https://nominatim.openstreetmap.org/search?q=${encodeURIComponent(e)}&format=jsonv2&limit=5&addressdetails=1`),n=await t.json();w(n)}catch(e){f(String(s("widget.geocodingFailed")))}finally{v(!1)}},a=(0,ep.useRef)(),o=(0,ep.useRef)(null),(0,ep.useEffect)(()=>(o.current=i,()=>{o.current=null}),[i]),(0,ep.useEffect)(()=>()=>{clearTimeout(a.current)},[]),(0,ep.useMemo)(()=>(...e)=>{clearTimeout(a.current),a.current=window.setTimeout(()=>{o.current&&o.current(...e)},1e3)},[1e3])),C=(0,ep.useCallback)((e,t)=>{if(_(e),null==t||!t.skipSearch){if(!e.trim())return void w([]);I(e)}},[I]),M=(0,ep.useCallback)(e=>{let n=$G(e);t({latitude:e.lat,longitude:e.lon,placeName:n,uncertainty:(null==e?void 0:e.boundingbox)?(e=>{let[t,n,r,i]="string"==typeof e[0]?e.map(parseFloat):e,a=t*$E,o=r*$E,s=n*$E,l=i*$E;return 6367.5*(2*Math.asin(Math.sqrt(Math.sin((s-a)/2)*Math.sin((s-a)/2)+Math.cos(a)*Math.cos(s)*Math.sin((l-o)/2)*Math.sin((l-o)/2))))})(e.boundingbox):2}),d(!1),_(""),w([]),f(null),p(null)},[t,s]),N=(0,ep.useCallback)(()=>{let e=++S.current;if(p(null),f(null),!navigator.geolocation){u(!1),p(String(s("widget.positionUnavailableManual"))),d(!0);return}u(!0),navigator.geolocation.getCurrentPosition(n=>{if(e!==S.current)return;let r={latitude:n.coords.latitude,longitude:n.coords.longitude,placeName:"",uncertainty:n.coords.accuracy/1e3};t(r),u(!1);let i=new AbortController,a=window.setTimeout(()=>i.abort(),8e3);(async()=>{try{let a=await fetch(`https://nominatim.openstreetmap.org/reverse?lat=${n.coords.latitude}&lon=${n.coords.longitude}&format=jsonv2&addressdetails=1`,{signal:i.signal});if(e!==S.current)return;let o=await a.json(),s=$G(o);t({...r,placeName:s})}catch(t){if(e!==S.current||"AbortError"===t.name)return;console.error("[PositionPopover] reverse geocode failed",t),f(String(s("widget.geocodingFailed")))}finally{window.clearTimeout(a)}})()},n=>{e!==S.current||(u(!1),t(void 0),1===n.code?(p(String(s("widget.positionUnavailableManual"))),d(!0)):f(String(s("widget.geocodingFailed"))))},{enableHighAccuracy:!0,timeout:15e3,maximumAge:0})},[t,s]),R=(0,ep.useCallback)(()=>{if(p(null),f(null),T&&!l){S.current+=1,t({latitude:0,longitude:0,placeName:"",uncertainty:0}),d(!1),_(""),w([]);return}if(l){S.current+=1,u(!1),t(void 0);return}N()},[l,t,T,N]);(0,ep.useEffect)(()=>{if(!n){A.current=!1;return}A.current||$q(e)||l||(A.current=!0,N())},[n,l,N,e]),(0,ep.useEffect)(()=>{if(!c)return;let e=requestAnimationFrame(()=>{var e;null==(e=E.current)||e.focus()});return()=>cancelAnimationFrame(e)},[c]);let O=h||m,P=s("widget.shareLocationHint")||"Get answers tailored to where you are";return(0,ed.jsxs)(ed.Fragment,{children:[(0,ed.jsx)("div",{className:"memori-position-popover__row memori-position-popover__switch-row",children:(0,ed.jsxs)("button",{type:"button",className:"memori-dropdown--auth-row",onClick:()=>{R()},children:[(0,ed.jsx)("span",{className:"memori-dropdown--auth-icon-wrap",children:(0,ed.jsx)(Vy,{size:16})}),(0,ed.jsxs)("span",{className:"memori-dropdown--auth-copy",children:[(0,ed.jsx)("span",{className:"memori-dropdown--auth-title",children:s("widget.shareLocation")||"Share my location"}),(0,ed.jsx)(_z,{title:P,placement:"top",children:(0,ed.jsx)("span",{className:"memori-dropdown--auth-subtitle",children:P})})]}),(0,ed.jsx)("span",{className:(b(tA))("memori-dropdown--switch",T&&"memori-dropdown--switch--on"),"aria-hidden":!0})]})}),(T||l||c)&&(0,ed.jsx)("div",{className:"memori-position-popover__tag-block",children:l?(0,ed.jsxs)("div",{className:"memori-position-popover__tag memori-position-popover__tag--loading","aria-busy":"true","aria-live":"polite",children:[(0,ed.jsx)("span",{className:"memori-position-popover__spinner","aria-hidden":!0}),(0,ed.jsx)("span",{className:"memori-position-popover__tag-skeleton"})]}):c?(0,ed.jsx)("div",{className:"memori-position-popover__autocomplete-wrap",children:(0,ed.jsx)($V,{venue:e,query:y,fetching:g,suggestions:x,onQueryChange:C,onChange:M,getPlaceName:$G,t:s,autocompleteRootId:"memori-position-popover-venue-search",inputRef:E})}):(0,ed.jsxs)("div",{className:"memori-position-popover__tag",children:[(0,ed.jsx)("span",{className:"memori-position-popover__tag-text",children:(null==(r=null==e?void 0:e.placeName)?void 0:r.trim())?e.placeName:s("widget.positionResolving")}),(0,ed.jsx)(ye,{type:"button",variant:"ghost",icon:(0,ed.jsx)(VP,{size:16,strokeWidth:2,"aria-hidden":!0}),size:"sm",className:"memori-position-popover__tag-edit","aria-label":String(s("widget.editPositionAria")),onClick:()=>{d(!0),p(null)}})]})}),O&&(0,ed.jsx)("p",{className:"memori-position-popover__error",role:"alert",children:O}),$q(e)&&!l&&(0,ed.jsx)("div",{className:"memori-position-popover__map",children:(0,ed.jsx)($W,{venue:e})})]})};var $J=({venue:e,setVenue:t,open:n,onOpenChange:r,triggerClassName:i,triggerButtonVariant:a="toolbar",triggerAriaLabel:o,positionerClassName:s,autoStartGeolocation:l=!1})=>{let u=$q(e);return(0,ed.jsx)(x0,{open:n,onOpenChange:r,modal:!1,closable:!1,placement:"bottom-end",sideOffset:8,contentClassName:"memori-position-popover__popup",slotProps:{trigger:{className:i,render:e=>(0,ed.jsx)(Gi,{...e,type:"button",variant:a,active:n,className:(b(tA))("memori-header--button","memori-header--button--position",u&&"memori-header--button--position--active",i),"aria-label":o,"aria-expanded":n,icon:(0,ed.jsx)(Vy,{"aria-hidden":!0})})},positioner:{className:(b(tA))("memori-position-popover__positioner",s)}},content:(0,ed.jsx)($$,{venue:e,setVenue:t,autoStartGeolocation:n&&l}),children:null})},$K=({className:e,title:t})=>(0,ed.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:800,height:800,fill:"none",viewBox:"0 0 24 24",className:e,"aria-label":t,children:[(0,ed.jsx)("path",{stroke:"currentColor",strokeWidth:1.5,d:"M16 22V8c0-2.828 0-4.243-.879-5.121C14.243 2 12.828 2 10 2H9c-2.828 0-4.243 0-5.121.879C3 3.757 3 5.172 3 8v14"}),(0,ed.jsx)("path",{stroke:"currentColor",strokeWidth:1.5,d:"M11 6H8c-.943 0-1.414 0-1.707.293C6 6.586 6 7.057 6 8c0 .943 0 1.414.293 1.707C6.586 10 7.057 10 8 10h3c.943 0 1.414 0 1.707-.293C13 9.414 13 8.943 13 8c0-.943 0-1.414-.293-1.707C12.414 6 11.943 6 11 6Z"}),(0,ed.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:1.5,d:"M7 17h5M17 22H2M19.5 4l1.233.986c.138.11.207.166.27.222a3 3 0 0 1 .992 2.066c.005.084.005.172.005.348V18.5a1.5 1.5 0 0 1-3 0v-.071c0-.79-.64-1.429-1.429-1.429H16"}),(0,ed.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:1.5,d:"M22 8h-1.5A1.5 1.5 0 0 0 19 9.5v2.419a1.5 1.5 0 0 0 1.026 1.423L22 14"})]}),ep=eu("85Hg2");let $Y=e=>{if("number"==typeof e&&Number.isFinite(e))return e;if(e&&"object"==typeof e){if("number"==typeof e.parsedValue&&Number.isFinite(e.parsedValue))return e.parsedValue;if("string"==typeof e.source){let t=Number(e.source);if(Number.isFinite(t))return t}}},$X=(e,t)=>new Intl.NumberFormat(t,{minimumFractionDigits:0,maximumFractionDigits:Math.abs(e)>=1?3:4}).format(e),$Z=(e,t)=>new Intl.NumberFormat(t,{maximumFractionDigits:0}).format(e),$Q=(e,t,n)=>{let r=Math.abs(e);if("energy"===t){if(r>=1)return`${$X(e,n)} kWh`;let t=1e3*e;return Math.abs(t)>=1?`${$X(t,n)} Wh`:`${$X(1e3*t,n)} mWh`}if("co2"===t){if(r>=1)return`${$X(e,n)} kg`;let t=1e3*e;return Math.abs(t)>=1?`${$X(t,n)} g`:`${$X(1e3*t,n)} mg`}if(r>=1)return`${$X(e,n)} L`;let i=1e3*e;return Math.abs(i)>=1?`${$X(i,n)} mL`:`${$X(1e3*i,n)} \u{3BC}L`},$0=({history:e,showTitle:t=!0,className:n})=>{let{t:r,i18n:i}=tE(),a=i.language||navigator.language||"en",o=(0,ep.useMemo)(()=>({lines:e}),[e]),s=(0,ep.useMemo)(()=>{var e;let t={totalInputTokens:0,totalOutputTokens:0,energy:0,gwp:0,wcf:0,models:new Set};return(null!=(e=null==o?void 0:o.lines)?e:[]).forEach(e=>{var n,r,i,a,o;let s=e.llmUsage;if(!s||(t.totalInputTokens+=null!=(n=s.totalInputTokens)?n:0,t.totalOutputTokens+=null!=(r=s.outputTokens)?r:0,(s.provider||s.model)&&t.models.add([s.provider,s.model].filter(Boolean).join(" · ")),!s.energyImpact))return;let l=s.energyImpact;t.energy+=null!=(i=$Y(l.energy))?i:0,t.gwp+=null!=(a=$Y(l.gwp))?a:0,t.wcf+=null!=(o=$Y(l.wcf))?o:0}),t},[o]),l=(0,ep.useMemo)(()=>Array.from(s.models),[s.models]);return(0,ed.jsxs)("div",{className:(b(tA))("memori-dropdown--sustainability",n),children:[t&&(0,ed.jsx)("h4",{className:"memori-dropdown--sustainability-title",children:r("chatLogs.totalChatConsumptionTitle")||"Consumo Totale Chat"}),(0,ed.jsxs)("div",{className:"memori-dropdown--sustainability-section",children:[(0,ed.jsx)("h5",{className:"memori-dropdown--sustainability-section-title",children:r("chatLogs.modelUsage")||"Model usage"}),(0,ed.jsxs)("div",{className:"memori-dropdown--sustainability-summary",children:[(0,ed.jsxs)("div",{className:"memori-dropdown--sustainability-stat",children:[(0,ed.jsx)("span",{className:"memori-dropdown--sustainability-stat-label",children:r("chatLogs.input")||"Input"}),(0,ed.jsx)("strong",{className:"memori-dropdown--sustainability-stat-value",children:$Z(s.totalInputTokens,a)}),(0,ed.jsx)("span",{className:"memori-dropdown--sustainability-stat-meta",children:r("chatLogs.tokens")||"Tokens"})]}),(0,ed.jsxs)("div",{className:"memori-dropdown--sustainability-stat",children:[(0,ed.jsx)("span",{className:"memori-dropdown--sustainability-stat-label",children:r("chatLogs.output")||"Output"}),(0,ed.jsx)("strong",{className:"memori-dropdown--sustainability-stat-value",children:$Z(s.totalOutputTokens,a)}),(0,ed.jsx)("span",{className:"memori-dropdown--sustainability-stat-meta",children:r("chatLogs.tokens")||"Tokens"})]})]}),l.length>0&&(0,ed.jsxs)("div",{className:"memori-dropdown--sustainability-row memori-dropdown--sustainability-row--stacked",children:[(0,ed.jsxs)("span",{className:"memori-dropdown--sustainability-label",children:[r("chatLogs.provider")||"Provider"," /"," ",r("chatLogs.model")||"Model"]}),(0,ed.jsx)("div",{className:"memori-dropdown--sustainability-tags",children:l.map(e=>(0,ed.jsx)("span",{className:"memori-dropdown--sustainability-tag",children:e},e))})]})]}),(0,ed.jsxs)("div",{className:"memori-dropdown--sustainability-metrics",children:[(0,ed.jsx)("h5",{className:"memori-dropdown--sustainability-section-title",children:r("chatLogs.environmentalImpact")||"Environmental impact"}),(0,ed.jsxs)("div",{className:"memori-dropdown--sustainability-row",children:[(0,ed.jsxs)("span",{className:"memori-dropdown--sustainability-label",children:[(0,ed.jsx)("span",{"aria-hidden":"true",children:Vo.energy})," ",r("chatLogs.energy")||"Energy"]}),(0,ed.jsx)("strong",{className:"memori-dropdown--sustainability-value",children:$Q(s.energy,"energy",a)})]}),(0,ed.jsxs)("div",{className:"memori-dropdown--sustainability-row",children:[(0,ed.jsxs)("span",{className:"memori-dropdown--sustainability-label",children:[(0,ed.jsx)("span",{"aria-hidden":"true",children:Vo.co2})," ",r("chatLogs.co2")||"CO2"]}),(0,ed.jsx)("strong",{className:"memori-dropdown--sustainability-value",children:$Q(s.gwp,"co2",a)})]}),(0,ed.jsxs)("div",{className:"memori-dropdown--sustainability-row",children:[(0,ed.jsxs)("span",{className:"memori-dropdown--sustainability-label",children:[(0,ed.jsx)("span",{"aria-hidden":"true",children:Vo.water})," ",r("chatLogs.water")||"Water"]}),(0,ed.jsx)("strong",{className:"memori-dropdown--sustainability-value",children:$Q(s.wcf,"water",a)})]})]})]})};var $1=({history:e,triggerVariant:t="ghost",trigger:n,open:r,onOpenChange:i,hideTrigger:a=!1})=>{let{t:o}=tE(),[s,l]=(0,ep.useState)(!1),u=void 0!==r,c=u?r:s,d=e=>{u||l(e),null==i||i(e)},h=(0,ep.useMemo)(()=>(null!=e?e:[]).some(e=>!!e.llmUsage),[e]),p=o("write_and_speak.showMessageConsumptionLabel")||"Show chat consumption",m=o("chatLogs.totalChatConsumptionTitle")||"Consumo Totale Chat",f=e=>{var n;return(0,ed.jsx)(Gi,{...e,variant:t,shape:"default",active:c,disabled:null!=(n=e.disabled)?n:!h,className:(b(tA))("memori-header--button memori-header--button--sustainability",e.className),"aria-label":p,title:p,icon:(0,ed.jsx)($K,{className:"memori-header--button--sustainability-icon"})})};return h?(0,ed.jsxs)(ed.Fragment,{children:[!a&&(e=>{var t;if(!n)return f(e);if("function"==typeof n)return n(e,{open:c});if(!(b(ep)).isValidElement(n))return f(e);let r=null!=(t=n.props)?t:{},i=(b(tA))(e.className,r.className);return(b(ep)).cloneElement(n,{...r,...e,className:i||void 0,onClick:t=>{var n,i;null==(n=e.onClick)||n.call(e,t),null==(i=r.onClick)||i.call(r,t)}})})({onClick:e=>{h&&(d(!0),e.currentTarget.blur())}}),(0,ed.jsx)(_b,{open:c,onClose:()=>d(!1),title:m,className:"memori-chat--usage-modal memori-chat--consumption-modal",stacking:"stacked",closable:!0,children:(0,ed.jsx)($0,{history:e,showTitle:!1})})]}):a||n?null:f({disabled:!0})},$2=({className:e,buttonVariant:t="ghost",memori:n,tenant:r,history:i,position:a,setVenue:o,positionPopoverOpen:s,setPositionPopoverOpen:l,autoStartPositionGeolocation:u=!1,setShowSettingsDrawer:c,setShowChatHistoryDrawer:d,setShowKnownFactsDrawer:h,setShowExpertsDrawer:p,enableAudio:m=!0,speakerMuted:f,setSpeakerMuted:g,hasUserActivatedSpeak:v=!1,showShare:y=!0,showSettings:_=!0,showReload:x=!1,showClear:w=!1,showLogin:S=!0,setShowLoginDrawer:E,clearHistory:A,loginToken:T,user:I,sessionID:C,showChatHistory:M=!0,fullScreenHandler:N,baseUrl:R,onLogout:O,apiClient:P,layout:k,additionalSettings:D,showMessageConsumption:B=!1,showFullscreen:F=!0,extraActions:U})=>{var j;let z,H,{t:G,i18n:V}=tE(),{add:W}=vX(),{uploadAsset:q,pwlUpdateUser:$}=P.backend,[J,K]=(0,ep.useState)(!1),[Y,X]=(0,ep.useState)(!1),[Z,Q]=(0,ep.useState)(!1),[ee,et]=(0,ep.useState)(!1),[en,er]=(0,ep.useState)(!1),ei=Lp(),ea=e=>{if("number"==typeof e&&Number.isFinite(e))return e;if(e&&"object"==typeof e){if("number"==typeof e.parsedValue&&Number.isFinite(e.parsedValue))return e.parsedValue;if("string"==typeof e.source){let t=Number(e.source);if(Number.isFinite(t))return t}}},eo=(e,t)=>new Intl.NumberFormat(t,{minimumFractionDigits:0,maximumFractionDigits:Math.abs(e)>=1?3:4}).format(e),es=(e,t,n)=>{let r=Math.abs(e);if("energy"===t){if(r>=1)return`${eo(e,n)} kWh`;let t=1e3*e;return Math.abs(t)>=1?`${eo(t,n)} Wh`:`${eo(1e3*t,n)} mWh`}if("co2"===t){if(r>=1)return`${eo(e,n)} kg`;let t=1e3*e;return Math.abs(t)>=1?`${eo(t,n)} g`:`${eo(1e3*t,n)} mg`}if(r>=1)return`${eo(e,n)} L`;let i=1e3*e;return Math.abs(i)>=1?`${eo(i,n)} mL`:`${eo(1e3*i,n)} \u{3BC}L`},el=V.language||navigator.language||"en",eu=(0,ep.useMemo)(()=>({lines:i}),[i]),ec=(0,ep.useMemo)(()=>{var e;let t={energy:0,gwp:0,wcf:0};return(null!=(e=null==eu?void 0:eu.lines)?e:[]).forEach(e=>{var n,r,i,a;let o=null==(n=e.llmUsage)?void 0:n.energyImpact;o&&(t.energy+=null!=(r=ea(o.energy))?r:0,t.gwp+=null!=(i=ea(o.gwp))?i:0,t.wcf+=null!=(a=ea(o.wcf))?a:0)}),t},[eu]),eh=(0,ep.useMemo)(()=>{var e;return(null!=(e=null==eu?void 0:eu.lines)?e:[]).some(e=>{var t;return!!(null==(t=e.llmUsage)?void 0:t.energyImpact)})},[eu]),em=(0,ep.useMemo)(()=>{var e;return(null!=(e=null==eu?void 0:eu.lines)?e:[]).some(e=>!!e.llmUsage)},[eu]);(0,ep.useEffect)(()=>{document.fullscreenEnabled&&K(!0)},[]),(0,ep.useEffect)(()=>{let e=()=>{var e;let t=!!document.fullscreenElement;if(X(t),!t){let t=document.querySelector(".memori-widget");(null==(e=null==t?void 0:t.dataset)?void 0:e.memoriPrevBgColor)!==void 0&&(t.style.backgroundColor=t.dataset.memoriPrevBgColor,delete t.dataset.memoriPrevBgColor)}};return document.addEventListener("fullscreenchange",e),()=>document.removeEventListener("fullscreenchange",e)},[]);let[ef,eg]=(0,ep.useState)(()=>"u"<typeof window||!window.matchMedia||!window.matchMedia("(max-width: 767px)").matches);(0,ep.useEffect)(()=>{if(!window.matchMedia)return;let e=window.matchMedia("(max-width: 767px)"),t=()=>eg(!e.matches);return t(),e.addEventListener("change",t),()=>e.removeEventListener("change",t)},[]);let ev=(0,ep.useCallback)((e,t)=>"TOTEM"===e||t&&Object.keys(t).length>0||!1,[k,D]),ey=async e=>{if(e&&T){let t=new FileReader;t.onload=async t=>{var n,r,i;try{let{asset:a,...o}=await q(null!=(n=e.name)?n:"avatar",null==(r=t.target)?void 0:r.result,null!=T?T:"");if(0!==o.resultCode)console.error("[updateAvatar] Upload failed:",o),W(v7({description:G(L_(o.resultCode)),severity:"error"}));else if(a){let e={userID:null==I?void 0:I.userID,avatarURL:a.assetURL},{user:t,...n}=await $(null!=T?T:"",null!=(i=null==I?void 0:I.userID)?i:"",e);0!==n.resultCode?W(v7({description:G(L_(n.resultCode)),severity:"error"})):W(v7({description:G("login.avatarUploadSuccess"),severity:"success"}))}}catch(e){console.error("[updateAvatar] Error:",e),(null==e?void 0:e.message)&&W(v7({description:e.message,severity:"error"}))}},t.readAsDataURL(e)}else console.error("[updateAvatar] Missing avatar or login token",{avatar:e,loginToken:T}),W(v7({description:G("login.avatarUploadError"),severity:"error"}))},eb="FULLPAGE"===k||"CHAT"===k;(0,ep.useEffect)(()=>{if(!eb)return;let e=document.querySelector(".memori-widget .memori-chat--history");if(!e)return;let t=()=>{let t=e.scrollTop>2;document.querySelectorAll(".memori-widget .memori-chat-layout--header, .memori-widget .memori-fullpage-top-header, .memori-widget .memori-fullpage-header-row").forEach(e=>{e.classList.toggle("memori-header--scrolled",t)})};return t(),e.addEventListener("scroll",t,{passive:!0}),()=>{e.removeEventListener("scroll",t),document.querySelectorAll(".memori-header--scrolled").forEach(e=>e.classList.remove("memori-header--scrolled"))}},[eb,C,v]);let e_="TOTEM"===k?void 0:G("widget.headerHistory")||"History",ex=G("widget.headerLogin")||G("login.login")||"Login",ew=G("widget.mobileSession.sessionInfo")||"Session info",eS=f?G("widget.soundOff",{defaultValue:"Audio off"}):G("widget.sound",{defaultValue:"Audio"}),eE=Y?G("fullscreenExit")||"Exit fullscreen":G("fullscreenEnter")||"Full screen",eA=!!T&&!!(null==I?void 0:I.userID),eT=(null==I?void 0:I.userName)||(null==I?void 0:I.eMail)||G("login.user"),eI=(H=(z=((null==I?void 0:I.userName)||(null==I?void 0:I.eMail)||"U").trim()).split(/[\s._@-]+/).filter(Boolean)).length>=2?`${H[0][0]}${H[1][0]}`.toUpperCase():z.slice(0,2).toUpperCase(),eC=!!(C&&v),eM=!!n.enableDeepThought&&!!T&&!!(null==I?void 0:I.pAndCUAccepted),eN=eC&&ef&&(eM||B),eR=(null==(j=null==n?void 0:n.name)?void 0:j.trim())||"",eO=(0,ep.useMemo)(()=>{var e;let t=null==(e=null==n?void 0:n.description)?void 0:e.trim();return t?t.replace(/<[^>]+>/g," ").replace(/\s+/g," ").trim():""},[null==n?void 0:n.description]),eP=(0,ep.useMemo)(()=>{if(eb&&n)return n.avatarURL&&n.avatarURL.length>0?Lr({type:"avatar",tenantID:null==r?void 0:r.name,resourceURI:n.avatarURL,baseURL:R,apiURL:""}):Lr({type:"avatar",tenantID:null==r?void 0:r.name,baseURL:R,apiURL:""})},[eb,n,r,R]),ek=M&&!!T,eL=!!(_&&ev(k,D)),eD=!!n.needsPosition||x||w||B||F&&J||eM&&eC||!!n.enableBoardOfExperts||m||eL||y,eB=eN||F&&J||m||!!n.needsPosition||x||w||!!n.enableBoardOfExperts||eL||y,eF=ef&&ek&&(eA?eB||!!S:eD||!!S),eU=ef&&!!S&&(eA?eB:eD),ej=M&&!!T&&(0,ed.jsx)(_z,{title:G("write_and_speak.chatHistory")||"Chat history",placement:"bottom",children:(0,ed.jsx)("span",{style:{display:"inline-flex"},children:(0,ed.jsx)(Gi,{variant:t,className:"memori-header--chat-history-button",disabled:!T,"aria-label":G("write_and_speak.chatHistory")||"Chat history",icon:(0,ed.jsx)(q6,{}),onClick:()=>d(!0),children:e_?(0,ed.jsx)("span",{className:"memori-header--action-label",children:e_}):null})})}),ez=S&&(0,ed.jsx)(ed.Fragment,{children:T&&(null==I?void 0:I.userID)?(0,ed.jsx)(x0,{className:"memori-header--dropdown",open:Z,onOpenChange:e=>{Q(e),e&&(et(!1),l(!1))},placement:"bottom-end",sideOffset:8,closable:!1,contentClassName:"memori-dropdown--menu",slotProps:{trigger:{className:(b(tA))("memori-dropdown--user-trigger","memori-dropdown--user-trigger--identity",eb&&"memori-dropdown--user-trigger--fullpage"),render:e=>(0,ed.jsx)(_z,{title:eT,placement:"bottom",children:(0,ed.jsx)("span",{style:{display:"inline-flex"},children:(0,ed.jsxs)(Gi,{...e,active:Z,variant:t,className:(b(tA))("memori-dropdown--user-trigger-button","memori-dropdown--user-trigger-button--identity"),"aria-label":String(eT),children:[(0,ed.jsx)("span",{className:"memori-dropdown--user-trigger-name",children:(null==I?void 0:I.userName)||G("login.welcomeUser")}),(null==I?void 0:I.avatarURL)?(0,ed.jsx)("img",{src:I.avatarURL,alt:"",className:"memori-dropdown--user-trigger-avatar"}):(0,ed.jsx)("span",{className:"memori-dropdown--user-trigger-initials","aria-hidden":!0,children:eI})]})})})}},content:(0,ed.jsxs)("div",{className:"memori-dropdown--content",children:[(0,ed.jsx)("div",{className:"memori-dropdown--user-item",children:(0,ed.jsxs)("div",{className:"memori-dropdown--user-info",children:[(0,ed.jsx)("div",{className:"memori-dropdown--avatar-wrap",children:I.avatarURL?(0,ed.jsxs)(ed.Fragment,{children:[(0,ed.jsx)("img",{src:I.avatarURL,alt:I.userName||I.eMail,className:"memori-dropdown--avatar"}),(0,ed.jsx)("span",{className:"memori-dropdown--avatar-overlay","aria-hidden":!0,children:(0,ed.jsx)(q8,{size:20,strokeWidth:2})}),(0,ed.jsx)("label",{htmlFor:"avatar",className:"sr-only",children:G("login.avatarChange")}),(0,ed.jsx)("input",{type:"file",name:"avatar",id:"avatar",className:"memori-dropdown--avatar-input",onChange:e=>{var t,n;return ey(null!=(n=null==(t=e.target.files)?void 0:t[0])?n:null)},accept:Ln.join(", ")})]}):(0,ed.jsx)(ed.Fragment,{children:(0,ed.jsxs)("div",{className:"memori-dropdown--avatar-placeholder",children:[(0,ed.jsx)("span",{className:"memori-dropdown--avatar-initial",children:(I.userName||I.eMail||"U").charAt(0).toUpperCase()}),(0,ed.jsx)("span",{className:"memori-dropdown--avatar-overlay","aria-hidden":!0,children:(0,ed.jsx)(q8,{size:20,strokeWidth:2})}),(0,ed.jsx)("label",{htmlFor:"avatar",className:"sr-only",children:G("login.avatarChange")}),(0,ed.jsx)("input",{type:"file",name:"avatar",id:"avatar",className:"memori-dropdown--avatar-input",onChange:e=>{var t,n;return ey(null!=(n=null==(t=e.target.files)?void 0:t[0])?n:null)},accept:Ln.join(", ")})]})})}),(0,ed.jsxs)("div",{className:"memori-dropdown--user-details",children:[(0,ed.jsx)("h3",{className:"memori-dropdown--user-name",children:I.userName||G("login.welcomeUser")}),(0,ed.jsx)("p",{className:"memori-dropdown--user-email",children:I.eMail}),(0,ed.jsx)("div",{className:"memori-dropdown--user-badge",children:I.birthDate?new Date(I.birthDate).toLocaleDateString():G("login.notSet")})]})]})}),(0,ed.jsx)("div",{className:"memori-dropdown--separator"}),(0,ed.jsx)(Gi,{type:"button",variant:t,onClick:O,className:"memori-dropdown--action-button memori-dropdown--action-button--logout",icon:(0,ed.jsx)(q7,{size:18,strokeWidth:2,"aria-hidden":!0}),children:(0,ed.jsx)("span",{className:"memori-header--action-label",children:G("login.logout")||"Logout"})})]}),children:null}):eb?(0,ed.jsx)(_z,{title:G("login.login")||"Login",placement:"bottom",children:(0,ed.jsx)("span",{style:{display:"inline-flex"},children:(0,ed.jsx)(ye,{variant:"primary",className:"memori-header--button memori-header--button-login",icon:(0,ed.jsx)(Lh,{}),title:G("login.login")||"Login","aria-label":G("login.login")||"Login",onClick:()=>E(!0),children:ex})})}):(0,ed.jsx)(_z,{title:G("login.login")||"Login",placement:"bottom",children:(0,ed.jsx)("span",{style:{display:"inline-flex"},children:(0,ed.jsx)(Gi,{variant:t,className:"memori-header--button memori-header--button-login",icon:(0,ed.jsx)(Lh,{}),title:G("login.login")||"Login","aria-label":G("login.login")||"Login",onClick:()=>E(!0)})})})}),eH=(e,n="bottom")=>(0,ed.jsx)(_z,{title:G("reload")||"Reload",placement:n,children:(0,ed.jsx)("span",{style:{display:"inline-flex"},children:(0,ed.jsx)(Gi,{variant:t,className:e,"aria-label":G("reload")||"Reload",icon:(0,ed.jsx)(q9,{}),onClick:()=>{window.location.reload()}})})}),eG=(e,n="bottom")=>(0,ed.jsx)(_z,{title:G("clearHistory")||"Clear chat",placement:n,children:(0,ed.jsx)("span",{style:{display:"inline-flex"},children:(0,ed.jsx)(Gi,{variant:t,className:e,"aria-label":G("clearHistory")||"Clear chat",icon:(0,ed.jsx)($e,{}),onClick:()=>{A(),W(v7({description:G("clearHistoryDone"),severity:"success"}))}})})}),eV=(e,n="bottom")=>(0,ed.jsx)(_z,{title:G("widget.showExpertsInTheBoard")||"Experts in this board",placement:n,children:(0,ed.jsx)("span",{style:{display:"inline-flex"},children:(0,ed.jsx)(Gi,{variant:t,className:e,icon:(0,ed.jsx)(Vv,{}),disabled:!v||!C,"aria-label":G("widget.showExpertsInTheBoard")||"Experts in this board",onClick:()=>p(!0)})})}),eW=(e,n="bottom")=>(0,ed.jsx)(_z,{title:G("widget.settings")||"Settings",placement:n,children:(0,ed.jsx)("span",{style:{display:"inline-flex"},children:(0,ed.jsx)(Gi,{variant:t,className:e,icon:(0,ed.jsx)($t,{}),"aria-label":G("widget.settings")||"Settings",onClick:()=>c(!0)})})}),eq=(0,ed.jsxs)(ed.Fragment,{children:[n.needsPosition&&(0,ed.jsx)("div",{className:"memori-header--position",children:(0,ed.jsx)(_z,{title:G("widget.position")||"Position",placement:"bottom",children:(0,ed.jsx)("span",{style:{display:"inline-flex"},children:(0,ed.jsx)($J,{venue:a,setVenue:o,open:s,autoStartGeolocation:u,onOpenChange:e=>{l(e),e&&(et(!1),Q(!1))},triggerButtonVariant:t,triggerAriaLabel:G("widget.position")||"Position",positionerClassName:"WEBSITE_ASSISTANT"===k?"memori-position-popover__positioner--website-assistant":void 0})})})}),x&&eH(),w&&eG()]}),e$=(0,ed.jsxs)(ed.Fragment,{children:[B&&(0,ed.jsx)($1,{history:i,triggerVariant:t}),F&&J&&(0,ed.jsx)(_z,{title:eE,placement:"bottom",children:(0,ed.jsx)("span",{style:{display:"inline-flex"},children:(0,ed.jsx)(Gi,{variant:t,title:eE,"aria-label":eE,icon:Y?(0,ed.jsx)($n,{}):(0,ed.jsx)($r,{}),onClick:N||(()=>{var e;if(document.fullscreenElement)document.exitFullscreen&&document.exitFullscreen().then(()=>{var e;X(!1);let t=document.querySelector(".memori-widget");(null==(e=null==t?void 0:t.dataset)?void 0:e.memoriPrevBgColor)!==void 0&&(t.style.backgroundColor=t.dataset.memoriPrevBgColor,delete t.dataset.memoriPrevBgColor)}).catch(e=>{console.warn("Error attempting to exit fullscreen:",e)});else{let t="HIDDEN_CHAT"!==k&&"WEBSITE_ASSISTANT"!==k?document.body:document.querySelector(".memori-widget");if(t){let n=document.querySelector(".memori-widget");n&&(void 0===n.dataset.memoriPrevBgColor&&(n.dataset.memoriPrevBgColor=null!=(e=n.style.backgroundColor)?e:""),n.style.backgroundColor=""),t.requestFullscreen().then(()=>X(!0)).catch(e=>{console.warn("Error attempting to enable fullscreen:",e)})}}})})})}),eM&&eC&&(0,ed.jsx)(_z,{title:G("knownFacts.title")||"Known facts",placement:"bottom",children:(0,ed.jsx)("span",{style:{display:"inline-flex"},children:(0,ed.jsx)(Gi,{variant:t,icon:(0,ed.jsx)($i,{}),"aria-label":G("knownFacts.title")||"Known facts",onClick:()=>h(!0)})})}),n.enableBoardOfExperts&&eV(),m&&(0,ed.jsx)(_z,{title:eS,placement:"bottom",children:(0,ed.jsx)("span",{style:{display:"inline-flex"},children:(0,ed.jsx)(Gi,{variant:t,icon:f?(0,ed.jsx)($a,{size:20,strokeWidth:2.35,"aria-hidden":!0}):(0,ed.jsx)(GN,{size:20,strokeWidth:2,"aria-hidden":!0}),title:eS,"aria-label":eS,onClick:()=>g(!f)})})}),eL&&eW(),y&&(0,ed.jsx)($S,{title:n.name,memori:n,sessionID:C,tenant:r,showQrCode:!0,align:"left",baseUrl:R,history:i,triggerVariant:t})]}),eJ=eh?`${es(ec.energy,"energy",el)} \u{2022} ${es(ec.gwp,"co2",el)}`:G("widget.noData",{defaultValue:"Nessun dato disponibile"}),eK=(0,ed.jsxs)(ed.Fragment,{children:[(0,ed.jsxs)("div",{className:"memori-header--auth-icon-controls",children:[eN&&(0,ed.jsx)(x0,{className:"memori-header--dropdown",open:ee,onOpenChange:e=>{et(e),e&&(Q(!1),l(!1))},placement:"bottom-end",sideOffset:8,closable:!1,contentClassName:"memori-dropdown--menu memori-dropdown--auth-menu",slotProps:{trigger:{render:e=>(0,ed.jsx)(_z,{title:ew,placement:"bottom",children:(0,ed.jsx)("span",{style:{display:"inline-flex"},children:(0,ed.jsx)(Gi,{...e,active:ee,variant:t,className:"memori-header--auth-icon-button","aria-label":ew,icon:(0,ed.jsx)(HX,{})})})})}},content:(0,ed.jsxs)("div",{className:"memori-dropdown--auth-content",children:[eM&&(0,ed.jsxs)("button",{type:"button",className:"memori-dropdown--auth-row memori-dropdown--auth-row--navigable",onClick:()=>{h(!0),et(!1)},children:[(0,ed.jsx)("span",{className:"memori-dropdown--auth-icon-wrap",children:(0,ed.jsx)($i,{size:16})}),(0,ed.jsxs)("span",{className:"memori-dropdown--auth-copy",children:[(0,ed.jsx)("span",{className:"memori-dropdown--auth-title",children:G("knownFacts.title")||"Known facts"}),(0,ed.jsx)("span",{className:"memori-dropdown--auth-subtitle",children:G("widget.knownFactsHint")||"What I remember about you"})]})]}),B&&(em?(0,ed.jsxs)("button",{type:"button",className:(b(tA))("memori-dropdown--auth-row","memori-dropdown--auth-row--navigable",en&&"memori-dropdown--auth-row--active"),onClick:()=>{er(!0),et(!1)},children:[(0,ed.jsx)("span",{className:"memori-dropdown--auth-icon-wrap",children:(0,ed.jsx)($K,{})}),(0,ed.jsxs)("span",{className:"memori-dropdown--auth-copy",children:[(0,ed.jsx)("span",{className:"memori-dropdown--auth-title",children:G("widget.aiConsumption")||"AI usage"}),(0,ed.jsx)("span",{className:"memori-dropdown--auth-subtitle",children:eJ})]})]}):(0,ed.jsxs)("button",{type:"button",disabled:!0,className:"memori-dropdown--auth-row memori-dropdown--auth-row--navigable memori-dropdown--auth-row--disabled",children:[(0,ed.jsx)("span",{className:"memori-dropdown--auth-icon-wrap",children:(0,ed.jsx)($K,{})}),(0,ed.jsxs)("span",{className:"memori-dropdown--auth-copy",children:[(0,ed.jsx)("span",{className:"memori-dropdown--auth-title",children:G("widget.aiConsumption")||"AI usage"}),(0,ed.jsx)("span",{className:"memori-dropdown--auth-subtitle",children:eJ})]})]}))]}),children:null}),F&&J&&(0,ed.jsx)(_z,{title:eE,placement:"bottom",children:(0,ed.jsx)("span",{style:{display:"inline-flex"},children:(0,ed.jsx)(Gi,{variant:t,className:"memori-header--auth-icon-button",title:eE,"aria-label":eE,icon:Y?(0,ed.jsx)($n,{}):(0,ed.jsx)($r,{}),onClick:N||(()=>{var e;if(document.fullscreenElement)document.exitFullscreen&&document.exitFullscreen().then(()=>{var e;X(!1);let t=document.querySelector(".memori-widget");(null==(e=null==t?void 0:t.dataset)?void 0:e.memoriPrevBgColor)!==void 0&&(t.style.backgroundColor=t.dataset.memoriPrevBgColor,delete t.dataset.memoriPrevBgColor)}).catch(e=>{console.warn("Error attempting to exit fullscreen:",e)});else{let t="HIDDEN_CHAT"!==k&&"WEBSITE_ASSISTANT"!==k?document.body:document.querySelector(".memori-widget");if(t){let n=document.querySelector(".memori-widget");n&&(void 0===n.dataset.memoriPrevBgColor&&(n.dataset.memoriPrevBgColor=null!=(e=n.style.backgroundColor)?e:""),n.style.backgroundColor=""),t.requestFullscreen().then(()=>X(!0)).catch(e=>{console.warn("Error attempting to enable fullscreen:",e)})}}})})})}),m&&(0,ed.jsx)(_z,{title:eS,placement:"bottom",children:(0,ed.jsx)("span",{style:{display:"inline-flex"},children:(0,ed.jsx)(Gi,{variant:t,className:"memori-header--auth-icon-button",title:eS,"aria-label":eS,icon:f?(0,ed.jsx)($a,{size:20,strokeWidth:2.35,"aria-hidden":!0}):(0,ed.jsx)(GN,{size:20,strokeWidth:2,"aria-hidden":!0}),onClick:()=>g(!f)})})}),n.needsPosition&&(0,ed.jsx)(_z,{title:G("widget.position")||"Position",placement:"bottom",children:(0,ed.jsx)("span",{style:{display:"inline-flex"},children:(0,ed.jsx)($J,{venue:a,setVenue:o,open:s,autoStartGeolocation:u,onOpenChange:e=>{l(e),e&&(et(!1),Q(!1))},triggerButtonVariant:t,triggerClassName:"memori-header--auth-icon-button",triggerAriaLabel:G("widget.position")||"Position",positionerClassName:"WEBSITE_ASSISTANT"===k?"memori-position-popover__positioner--website-assistant":void 0})})}),x&&eH("memori-header--auth-icon-button"),w&&eG("memori-header--auth-icon-button"),n.enableBoardOfExperts&&eV("memori-header--auth-icon-button"),eL&&eW("memori-header--auth-icon-button"),y&&(0,ed.jsx)("span",{className:"memori-header--auth-share-button-wrap",children:(0,ed.jsx)($S,{title:n.name,memori:n,sessionID:C,tenant:r,showQrCode:!0,align:"left",baseUrl:R,history:i,triggerVariant:t,className:"memori-header--auth-share-button"})})]}),B&&em&&(0,ed.jsx)($1,{history:i,triggerVariant:t,hideTrigger:!0,open:en,onOpenChange:er})]}),eY=G("login.user")||"Account",eX=G("reload")||"Restart conversation",eZ=G("widget.settings")||"Settings",eQ=G("knownFacts.title")||"Known facts",e0=G("write_and_speak.chatHistory")||"Chat history",e1=eM&&eC,e2=!!(S||e1),e3=(0,ed.jsxs)("div",{className:(b(tA))("memori-totem-rail",e),role:"toolbar","aria-label":String(G("widget.sessionControls",{defaultValue:"Controlli"})),"aria-orientation":"vertical",children:[(0,ed.jsxs)("div",{className:"memori-totem-rail--group",children:[m&&(0,ed.jsx)(_z,{title:eS,placement:"left",children:(0,ed.jsx)("span",{style:{display:"inline-flex"},children:(0,ed.jsx)(Gi,{variant:t,className:"memori-totem-rail--button",icon:f?(0,ed.jsx)($a,{size:20,strokeWidth:2.35,"aria-hidden":!0}):(0,ed.jsx)(GN,{size:20,strokeWidth:2,"aria-hidden":!0}),title:eS,"aria-label":eS,"aria-pressed":f,onClick:()=>g(!f)})})}),F&&J&&(0,ed.jsx)(_z,{title:eE,placement:"left",children:(0,ed.jsx)("span",{style:{display:"inline-flex"},children:(0,ed.jsx)(Gi,{variant:t,className:"memori-totem-rail--button",icon:Y?(0,ed.jsx)($n,{}):(0,ed.jsx)($r,{}),title:eE,"aria-label":eE,"aria-pressed":Y,onClick:e=>{var t,n,r;N?N(e):document.fullscreenElement?null==(r=document.exitFullscreen)||r.call(document).then(()=>X(!1)).catch(()=>{}):null==(n=(t=document.documentElement).requestFullscreen)||n.call(t).then(()=>X(!0)).catch(()=>{})}})})}),y&&(0,ed.jsx)($S,{title:n.name,memori:n,sessionID:C,tenant:r,showQrCode:!0,align:"left",baseUrl:R,history:i,triggerVariant:t,className:"memori-totem-rail--button"}),x&&(0,ed.jsx)(_z,{title:eX,placement:"left",children:(0,ed.jsx)("span",{style:{display:"inline-flex"},children:(0,ed.jsx)(Gi,{variant:t,className:"memori-totem-rail--button",icon:(0,ed.jsx)(q9,{}),title:eX,"aria-label":eX,onClick:()=>{window.location.reload()}})})}),w&&eG("memori-totem-rail--button","left"),n.enableBoardOfExperts&&eV("memori-totem-rail--button","left"),eL&&(0,ed.jsx)(_z,{title:eZ,placement:"left",children:(0,ed.jsx)("span",{style:{display:"inline-flex"},children:(0,ed.jsx)(Gi,{variant:t,className:"memori-totem-rail--button",icon:(0,ed.jsx)($t,{}),title:eZ,"aria-label":eZ,onClick:()=>c(!0)})})}),M&&!!T&&(0,ed.jsx)(_z,{title:e0,placement:"left",children:(0,ed.jsx)("span",{style:{display:"inline-flex"},children:(0,ed.jsx)(Gi,{variant:t,className:"memori-totem-rail--button",icon:(0,ed.jsx)(q6,{}),title:e0,"aria-label":e0,onClick:()=>d(!0)})})})]}),e2&&(0,ed.jsxs)(ed.Fragment,{children:[(0,ed.jsx)("div",{className:"memori-totem-rail--divider","aria-hidden":"true"}),(0,ed.jsx)("div",{className:"memori-totem-rail--group",children:(0,ed.jsx)(x0,{className:"memori-header--dropdown",open:Z,onOpenChange:e=>{Q(e),e&&(et(!1),l(!1))},placement:"left-start",sideOffset:8,closable:!1,contentClassName:"memori-dropdown--menu memori-totem-rail--menu",slotProps:{trigger:{render:e=>(0,ed.jsx)(_z,{title:eY,placement:"left",children:(0,ed.jsx)("span",{style:{display:"inline-flex"},children:(0,ed.jsx)(Gi,{...e,active:Z,variant:t,className:(b(tA))("memori-totem-rail--button","memori-totem-rail--account-trigger"),title:eY,"aria-label":eY,icon:(0,ed.jsx)(Lh,{})})})})}},content:(0,ed.jsxs)("div",{className:"memori-totem-rail--menu-content",children:[S&&eA&&(0,ed.jsxs)("div",{className:"memori-totem-rail--menu-identity",children:[(0,ed.jsx)("span",{className:"memori-totem-rail--menu-identity-name",children:(null==I?void 0:I.userName)||G("login.welcomeUser")}),(null==I?void 0:I.eMail)&&(0,ed.jsx)("span",{className:"memori-totem-rail--menu-identity-email",children:I.eMail})]}),e1&&(0,ed.jsx)(ye,{type:"button",variant:"ghost",className:"memori-totem-rail--menu-item",icon:(0,ed.jsx)($i,{size:18,"aria-hidden":!0}),title:eQ,"aria-label":eQ,onClick:()=>{Q(!1),h(!0)},children:eQ}),S&&(eA?(0,ed.jsx)(ye,{type:"button",variant:"ghost",className:"memori-totem-rail--menu-item memori-totem-rail--menu-item--logout",icon:(0,ed.jsx)(q7,{size:18,"aria-hidden":!0}),title:G("login.logout")||"Logout","aria-label":G("login.logout")||"Logout",onClick:()=>{Q(!1),null==O||O()},children:G("login.logout")||"Logout"}):(0,ed.jsx)(ye,{type:"button",variant:"ghost",className:"memori-totem-rail--menu-item",icon:(0,ed.jsx)(Lh,{size:18,"aria-hidden":!0}),title:G("login.login")||"Login","aria-label":G("login.login")||"Login",onClick:()=>{Q(!1),E(!0)},children:G("login.login")||"Login"}))]}),children:null})})]})]}),e4=(0,ed.jsxs)("div",{className:(b(tA))("memori-header",e,eb&&"memori-header--fullpage","FULLPAGE"===k&&!T&&"memori-header--fullpage-guest"),children:[eb&&eA?(0,ed.jsxs)(ed.Fragment,{children:[ek&&(0,ed.jsx)("div",{className:"memori-header--fullpage-primary",children:ej}),eF&&(0,ed.jsx)("div",{className:"memori-header--fullpage-divider","aria-hidden":"true"}),eB&&(0,ed.jsx)("div",{className:"memori-header--fullpage-secondary",children:eK}),eU&&(0,ed.jsx)("div",{className:"memori-header--fullpage-divider","aria-hidden":"true"}),ez]}):eb?(0,ed.jsxs)(ed.Fragment,{children:[ek&&(0,ed.jsx)("div",{className:"memori-header--fullpage-primary",children:ej}),eF&&(0,ed.jsx)("div",{className:"memori-header--fullpage-divider","aria-hidden":"true"}),eD&&(0,ed.jsxs)("div",{className:"memori-header--fullpage-secondary",children:[eq,e$]}),eU&&(0,ed.jsx)("div",{className:"memori-header--fullpage-divider","aria-hidden":"true"}),ez]}):(0,ed.jsxs)(ed.Fragment,{children:[eq,ej,e$,ez]}),U]});return"TOTEM"===k?e3:eb?(0,ed.jsxs)(ed.Fragment,{children:[eC&&n&&(0,ed.jsxs)("div",{className:"memori-fullpage-header-brand",children:[eP?(0,ed.jsx)("img",{className:"memori-fullpage-header-brand-icon memori-fullpage-header-brand-icon--avatar",src:eP,alt:"",role:"presentation"}):(0,ed.jsx)("span",{className:"memori-fullpage-header-brand-icon","aria-hidden":!0}),(eR||eO)&&(0,ed.jsxs)("div",{className:"memori-fullpage-header-brand-text",children:[eR?(0,ed.jsx)("span",{className:"memori-fullpage-header-brand-name",title:eR,children:eR}):null,eO?(0,ed.jsx)(_z,{title:eO,placement:"bottom",...ei.tooltipProps,slotProps:{positioner:ei.positionerProps,popup:{className:"memori-fullpage-header-brand-role-tooltip"}},children:(0,ed.jsx)("span",{ref:ei.anchorRef,className:"memori-fullpage-header-brand-role",...ei.pressTriggerProps,children:eO})}):null]})]}),(0,ed.jsx)("div",{className:"memori-fullpage-header-actions",children:e4})]}):e4},$3=e=>(0,ed.jsxs)("svg",{className:"memori-ai-logo",width:800,height:800,fill:"currentColor",viewBox:"0 0 670.70013 639.67999","aria-label":"Memori AI",...e,children:[(0,ed.jsxs)("defs",{children:[(0,ed.jsx)("style",{children:"\n .cls-1 {\n fill: url(#Sfumatura_senza_nome_6);\n }\n\n .cls-1,\n .cls-2 {\n stroke-width: 0px;\n }\n\n .cls-2 {\n fill: var(--memori-text-color, '#744c99');\n }\n "}),(0,ed.jsxs)("linearGradient",{id:"Sfumatura_senza_nome_6","data-name":"Sfumatura senza nome 6",x1:392.82999,y1:-13.83,x2:786.29999,y2:628.33002,gradientUnits:"userSpaceOnUse",gradientTransform:"translate(-304.65445,-80.16)",children:[(0,ed.jsx)("stop",{offset:.18,stopColor:"#9ad2d5",id:"stop1"}),(0,ed.jsx)("stop",{offset:.32,stopColor:"#26b5cb",id:"stop2"}),(0,ed.jsx)("stop",{offset:.38,stopColor:"#379cbe",id:"stop3"}),(0,ed.jsx)("stop",{offset:.46,stopColor:"#4c7eb0",id:"stop4"}),(0,ed.jsx)("stop",{offset:.55,stopColor:"#5d66a4",id:"stop5"}),(0,ed.jsx)("stop",{offset:.65,stopColor:"#69569c",id:"stop6"}),(0,ed.jsx)("stop",{offset:.76,stopColor:"#704c97",id:"stop7"}),(0,ed.jsx)("stop",{offset:.89,stopColor:"#734996",id:"stop8"})]})]}),(0,ed.jsxs)("g",{id:"g13",transform:"translate(-304.65445,-80.16)",children:[(0,ed.jsx)("path",{className:"cls-2",d:"m 451.79,434.96 v -78.79 c 0,-15.73 8.09,-25.54 22.73,-25.54 7.01,0 12.93,3.11 16.82,8.41 3.9,-5.29 9.81,-8.41 16.82,-8.41 14.64,0 22.74,9.81 22.74,25.54 v 78.79 c 0,3.27 -2.65,5.92 -5.92,5.92 -3.27,0 -5.92,-2.65 -5.92,-5.92 v -77.08 c 0,-11.21 -3.74,-16.35 -10.9,-16.35 -7.16,0 -10.9,5.14 -10.9,16.35 v 77.08 c 0,3.27 -2.65,5.92 -5.92,5.92 -3.27,0 -5.92,-2.65 -5.92,-5.92 v -77.08 c 0,-11.21 -3.74,-16.35 -10.9,-16.35 -7.16,0 -10.9,5.14 -10.9,16.35 v 77.08 c 0,3.27 -2.65,5.92 -5.92,5.92 -3.27,0 -5.92,-2.65 -5.92,-5.92 z",id:"path8"}),(0,ed.jsx)("path",{className:"cls-2",d:"m 588.37,435.12 c 0,3.11 -2.65,5.45 -5.76,5.45 h -23.98 c -6.7,0 -9.5,-2.81 -9.5,-9.34 v -90.31 c 0,-6.54 2.8,-9.34 9.5,-9.34 h 23.98 c 3.11,0 5.76,2.33 5.76,5.45 0,3.12 -2.65,5.45 -5.76,5.45 h -21.65 v 32.7 h 19.31 c 3.11,0 5.76,2.33 5.76,5.45 0,3.12 -2.65,5.45 -5.76,5.45 h -19.31 v 43.6 h 21.65 c 3.11,0 5.76,2.33 5.76,5.45 z",id:"path9"}),(0,ed.jsx)("path",{className:"cls-2",d:"m 599.59,434.96 v -78.79 c 0,-15.73 8.09,-25.54 22.73,-25.54 7.01,0 12.93,3.11 16.82,8.41 3.9,-5.29 9.81,-8.41 16.82,-8.41 14.64,0 22.74,9.81 22.74,25.54 v 78.79 c 0,3.27 -2.65,5.92 -5.92,5.92 -3.27,0 -5.92,-2.65 -5.92,-5.92 v -77.08 c 0,-11.21 -3.74,-16.35 -10.9,-16.35 -7.16,0 -10.9,5.14 -10.9,16.35 v 77.08 c 0,3.27 -2.65,5.92 -5.92,5.92 -3.27,0 -5.92,-2.65 -5.92,-5.92 v -77.08 c 0,-11.21 -3.74,-16.35 -10.9,-16.35 -7.16,0 -10.9,5.14 -10.9,16.35 v 77.08 c 0,3.27 -2.65,5.92 -5.92,5.92 -3.27,0 -5.92,-2.65 -5.92,-5.92 z",id:"path10"}),(0,ed.jsx)("path",{className:"cls-2",d:"m 692.72,416.28 v -60.1 c 0,-15.73 8.09,-25.54 23.35,-25.54 15.26,0 23.36,9.81 23.36,25.54 v 60.1 c 0,15.73 -8.1,25.54 -23.36,25.54 -15.26,0 -23.35,-9.81 -23.35,-25.54 z m 34.88,-2.02 v -56.05 c 0,-11.68 -4.05,-16.35 -11.52,-16.35 -7.47,0 -11.52,4.67 -11.52,16.35 v 56.05 c 0,11.68 4.05,16.35 11.52,16.35 7.47,0 11.52,-4.67 11.52,-16.35 z",id:"path11"}),(0,ed.jsx)("path",{className:"cls-2",d:"m 789.27,391.52 c 4.36,2.49 8.88,8.88 8.88,18.07 v 25.38 c 0,3.27 -2.65,5.92 -5.92,5.92 -3.27,0 -5.92,-2.65 -5.92,-5.92 v -22.11 c 0,-8.88 -4.67,-15.73 -12.3,-15.73 h -8.25 v 37.84 c 0,3.27 -2.65,5.92 -5.92,5.92 -3.27,0 -5.92,-2.65 -5.92,-5.92 v -94.05 c 0,-6.54 2.8,-9.34 9.5,-9.34 h 10.43 c 15.57,0 24.6,10.27 24.6,29.11 v 7.32 c 0,10.75 -2.81,18.69 -9.19,23.51 z m -2.33,-26 v -2.34 c 0,-14.02 -4.2,-20.71 -14.17,-20.71 h -7.01 v 43.75 h 7.01 c 9.97,0 14.17,-6.7 14.17,-20.71 z",id:"path12"}),(0,ed.jsx)("path",{className:"cls-2",d:"m 812.95,434.96 v -98.1 c 0,-3.27 2.65,-5.92 5.92,-5.92 3.27,0 5.92,2.65 5.92,5.92 v 98.1 c 0,3.27 -2.65,5.92 -5.92,5.92 -3.27,0 -5.92,-2.65 -5.92,-5.92 z",id:"path13"})]}),(0,ed.jsx)("path",{className:"cls-1",d:"m 667.73555,242.64 c -6.38,-56.35 -42.43,-113.07 -98.9,-155.61 -49.7,-37.44 -109.37,-60.33 -170.6,-65.94 C 364.22555,7.6 328.15555,0 291.96555,0 c -69.91,0 -135.47,27.64 -189.6,79.93 C 82.235546,99.38 55.165546,139 38.215546,191.67 c -9.13,16.42 -16.91,33.67 -23.02,51.57 -33.85,99.22 -10.5500001,199.69 63.94,275.65 9.79,9.98 26.710004,23.27 49.530004,36.03 70.06,71.95 151.03,84.76 199.59,84.76 45.54,0 92.21,-11.24 124.84,-30.07 28.3,-16.34 52.64,-36.17 72.92,-59.28 108.74,-60.36 157.72,-166.32 141.72,-307.69 z m -73.68,9.57 c -8.31,-61.54 -42.48,-119.59 -90.75,-164.46 37.26,23.3 66.15,54.54 87.71,91.36 27.6,47.13 46.44,143.64 0.76,233.55 9.47,-47.57 10.27,-101.25 2.28,-160.44 z m -11.27,1.52 c 10.34,76.59 5.37,140.08 -11.29,192.23 -24.15,33.64 -58.84,65.28 -107.4,91.69 -31.3,17.03 -61.5,28.71 -90.28,36.23 -8.25,-0.19 -16.63,-0.69 -25.09,-1.54 22.94,-3.81 46.17,-10.56 69.46,-20.26 96.74,-40.31 136.66,-112.17 153.12,-165.35 20.63,-66.68 13.55,-131.72 1.21,-167.16 -36.47,-104.77 -118.35,-165.33 -237.85,-176.66 46.26,0.76 86.54,8.18 121.19,21.31 67.54,45.83 117.02,116.16 126.92,189.52 z m -78.06,294.93 c -21.61,10.54 -52.6,19.64 -88.2,23.43 17.75,-6.76 35.44,-14.89 53.01,-24.45 35,-19.04 64.77,-41.9 88.88,-67.95 -10.72,23.16 -24.08,43.65 -39.67,61.68 -4.6,2.51 -9.26,4.97 -14.02,7.29 z m -368.96,-2.75 c -19.71,-20.45 -38.150004,-45.4 -54.570004,-75.6 -59.13,-108.81 -54.64,-204.44 -32.59,-273.88 40.79,-72.66 110.320004,-128.92 184.840004,-145.21 -6.05,2.97 -12.04,6.12 -17.94,9.49 -48.68,23.3 -93.61,65.79 -123.390004,119.76 -51.8,93.85 -49.11,199.1 7.38,288.77 23.170004,36.78 95.600004,106.18 204.320004,106.77 10.31,2.55 20.33,4.47 29.9,5.87 -15.51,2.15 -30.53,3.16 -44.97,3.16 -63.65,0 -116.29,-18.88 -152.97,-39.14 z m 169.2,18.75 c -62.68,-15.85 -125.37,-53.95 -169.73,-129.36 -100.020004,-170.04 3.83,-303.77 44.43,-336.4 14.06,-11.3 28.49,-21 43.15,-29.29 24.09,-11.11 49.2,-17.27 73.97,-17.27 0.69,0 1.41,0 2.1,0.02 148.62,2.08 228.54,72.27 262.89,170.95 25.29,72.64 20.48,248.09 -147.96,318.27 -39.5,16.46 -75.82,23.09 -108.64,23.09 -0.07,0 -0.14,0 -0.21,0 z m -50.13,-5.41 c -78.55,-17.09 -129.59,-70.46 -145.73,-96.07 -63.580004,-100.94 -49.220004,-209.44 0.22,-289.59 -5.85,11.99 -11.140004,24.86 -15.460004,38.56 -23.54,74.64 -12.63,153.8 31.560004,228.92 36.33,61.76 83.37,97.63 129.41,118.18 z m 93.31,-527.42 c 6.92,-0.48 13.83,-0.76 20.7,-0.76 9.21,0 18.36,0.43 27.44,1.24 5.8,2.34 11.5,4.89 17.15,7.57 -20.54,-4.36 -42.3,-7.05 -65.28,-8.06 z m -237.88,56.28 c 56.12,-54.22 119.7,-76.74 181.69,-76.74 22.56,0 44.9,3.01 66.59,8.54 -27.97,0.93 -55.36,5.59 -81.73,13.89 -9.47,0.87 -19.03,1.9 -28.75,3.25 -66.39,9.19 -130.73,49.37 -177.320004,106.6 13.93,-26.25 28.93,-45.3 39.520004,-55.54 z M 87.255546,510.92 C 8.3455459,430.46 -2.7544541,333.8 25.095546,249.55 c -9.9,74.5 5.8,152.05 46.09,226.19 9.7,17.85 20.01,33.8 30.760004,48.04 -5.970004,-4.67 -10.990004,-9.07 -14.700004,-12.85 z m 360.150004,88.83 c -27.18,15.69 -70.3,28.55 -119.16,28.55 -52.11,0 -110.74,-14.68 -163.49,-56.16 34.18,13.85 76.16,24.27 123.97,24.27 28.75,0 57.59,-3.76 86.33,-11.13 2.13,0.04 4.2,0.06 6.22,0.06 40.23,0 81.61,-7.43 114.06,-20.19 -14.66,13.13 -30.69,24.65 -47.93,34.6 z m 98.55,-75.09 c 10.02,-14.65 18.69,-30.34 25.92,-47.11 3.74,-8.67 7.06,-17.66 10.05,-26.89 17.66,-24.96 30.8,-52.23 38.94,-81.46 22.51,-80.87 3.27,-156.05 -20.04,-195.85 -33.54,-57.28 -80.82,-97.29 -141.07,-119.95 -8.19,-5.44 -16.61,-10.57 -25.24,-15.28 116.19,24.92 211.36,112.54 221.92,205.8 15.48,136.7 -31.24,226.21 -110.47,280.75 z",id:"path14",style:{fill:"url(#Sfumatura_senza_nome_6)"}})]}),$4=({tenant:e,userLang:t="en",integrationID:n,memoriHash:r})=>{let i=`https://memori.ai/${(null==t?void 0:t.toLowerCase())==="it"?"it":"en"}${n?`?integrationID=${n}`:""}${r?`${n?"&":"?"}memori=${r}`:""}`;return(0,ed.jsxs)("div",{className:"memori--powered-by",children:[(0,ed.jsx)($3,{className:"memori--powered-by-icon","aria-hidden":!0}),(0,ed.jsxs)("p",{className:"memori--powered-by-label",children:[(0,ed.jsx)("span",{children:"Powered by "}),(0,ed.jsx)("a",{href:i,target:"_blank",rel:"noopener noreferrer",children:"Memori.AI"})]})]})},ep=eu("85Hg2");let $5=wf("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]),$6=(0,ep.memo)(({defaultDate:e,onChange:t,disabled:n=!1,minAge:r=18})=>{let{t:i}=tE(),a=(0,ep.useMemo)(()=>i4.now().minus({years:r}).startOf("day"),[r]),o=(0,ep.useMemo)(()=>i4.fromObject({year:1900,month:1,day:1}),[]),[s,l]=(0,ep.useState)(""),[u,c]=(0,ep.useState)(""),[d,h]=(0,ep.useState)("");(0,ep.useEffect)(()=>{if(e){let t="string"==typeof e?i4.fromISO(e):i4.fromJSDate(e);t.isValid&&(l(t.day.toString()),c(t.month.toString()),h(t.year.toString()))}},[e]);let[p,m]=(0,ep.useState)(!1),f=(0,ep.useRef)(null),g=(0,ep.useRef)(null),v=(0,ep.useRef)(null);(0,ep.useEffect)(()=>{let e=()=>{m(window.innerWidth<768)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);let y=(0,ep.useRef)(t);y.current=t;let b=(0,ep.useRef)(void 0);if((0,ep.useEffect)(()=>{let e=e=>{let t=(null==e?void 0:e.isValid)?e.toISODate():null;t!==b.current&&(b.current=t,y.current(e))};if(!s||!u||!d)return void e(void 0);let t=parseInt(s),n=parseInt(u),r=parseInt(d);if(isNaN(t)||isNaN(n)||isNaN(r))return void e(void 0);let i=i4.fromObject({year:r,month:n,day:t});e(i.isValid&&i>=o&&i<=a?i:void 0)},[s,u,d,o,a]),p){let e=s&&u&&d?i4.fromObject({year:parseInt(d),month:parseInt(u),day:parseInt(s)}):null,t=(null==e?void 0:e.isValid)&&e.toISODate()||"",r=!t,p=i("login.birthDatePlaceholder")||"DD/MM/YYYY";return(0,ed.jsxs)("div",{className:"memori--date-selector memori--date-selector--mobile",children:[(0,ed.jsxs)("label",{htmlFor:"birth-date-mobile",className:"memori--date-selector__mobile-label",children:[i("birthDate")||"Birth Date",":"]}),(0,ed.jsxs)("div",{className:`memori--date-selector__mobile-input-wrap${r?" memori--date-selector__mobile-input-wrap--empty":""}`,children:[(0,ed.jsx)("input",{id:"birth-date-mobile",type:"date",className:"memori--date-selector__mobile-input",value:t,onChange:e=>{let t=e.target.value;if(t){let e=i4.fromISO(t);e.isValid&&(l(e.day.toString()),c(e.month.toString()),h(e.year.toString()))}else l(""),c(""),h("")},disabled:n,min:o.toISODate()||"1900-01-01",max:a.toISODate()||"","aria-label":String(i("birthDate")||i("date"))}),r&&(0,ed.jsx)("span",{className:"memori--date-selector__mobile-placeholder","aria-hidden":!0,children:p}),(0,ed.jsx)($5,{className:"memori--date-selector__mobile-icon","aria-hidden":!0,size:20,strokeWidth:1.75})]})]})}return(0,ed.jsxs)("div",{className:"memori--date-selector memori--date-selector--desktop",children:[(0,ed.jsxs)("div",{className:"memori--date-selector__input-group",children:[(0,ed.jsx)("label",{htmlFor:"birth-day",className:"memori--date-selector__label",children:i("day")||"Day"}),(0,ed.jsx)("input",{id:"birth-day",ref:f,type:"number",inputMode:"numeric",className:"memori--date-selector__input",value:s,onChange:e=>{var t;let n=e.target.value;if(""===n||/^\d+$/.test(n)){if(n.length>2||parseInt(n)>31)return;l(n),n.length>=2&&(null==(t=g.current)||t.focus())}},placeholder:i("dayPlaceholder")||"DD",min:1,max:31,disabled:n})]}),(0,ed.jsxs)("div",{className:"memori--date-selector__input-group",children:[(0,ed.jsx)("label",{htmlFor:"birth-month",className:"memori--date-selector__label",children:i("month")||"Month"}),(0,ed.jsx)("input",{id:"birth-month",ref:g,type:"number",inputMode:"numeric",className:"memori--date-selector__input",value:u,onChange:e=>{var t;let n=e.target.value;if(""===n||/^\d+$/.test(n)){if(n.length>2||parseInt(n)>12)return;c(n),n.length>=2&&(null==(t=v.current)||t.focus())}},placeholder:i("monthPlaceholder")||"MM",min:1,max:12,disabled:n})]}),(0,ed.jsxs)("div",{className:"memori--date-selector__input-group memori--date-selector__input-group--year",children:[(0,ed.jsx)("label",{htmlFor:"birth-year",className:"memori--date-selector__label",children:i("year")||"Year"}),(0,ed.jsx)("input",{id:"birth-year",ref:v,type:"number",inputMode:"numeric",className:"memori--date-selector__input",value:d,onChange:e=>{let t=e.target.value;if(""===t||/^\d+$/.test(t)){if(t.length>4)return;h(t)}},placeholder:i("yearPlaceholder")||"YYYY",min:o.year,max:a.year,disabled:n})]})]})});$6.displayName="DateSelector";var ep=eu("85Hg2"),$8=({visible:e=!1,onClose:t,minAge:n})=>{let{t:r}=tE(),{add:i}=vX(),[a,o]=(0,ep.useState)(),[s,l]=(0,ep.useState)(),[u,c]=(0,ep.useState)(!1),d=(0,ep.useCallback)(()=>{if(c(!0),!a){i(v7({description:r("requiredField"),severity:"error"})),l(r("requiredField")||"Required field"),c(!1);return}if(i4.now().diff(a,"years").years<n){i(v7({description:r("underageTwinSession",{age:n}),severity:"error"})),l(r("underageTwinSession",{age:n})||`You must be at least ${n} years old to interact with this Agent`),c(!1);return}l(void 0),i(v7({description:r("ageVerificationSuccess"),severity:"success"})),t(a.toJSDate().toISOString()),c(!1)},[i,a,n,t,r]),h=(0,ep.useCallback)(e=>{o(e)},[]);return(0,ed.jsxs)(_b,{open:e,width:"600px",widthMd:"600px",stacking:"stacked",title:r("ageVerification"),className:"age-verification-modal",backdropClassName:"age-verification-modal-backdrop",closable:!1,children:[(0,ed.jsx)("p",{className:"age-verification-text",children:r("ageVerificationText",{minAge:n})}),(0,ed.jsxs)(xk,{name:"ageVerification",className:"age-verification-form",onSubmit:e=>{e.preventDefault(),d()},children:[(0,ed.jsx)(xO,{className:"age-verification-birth-field",helperText:r("birthDateHelper"),error:s,invalid:!!s,required:!0,children:(0,ed.jsx)($6,{minAge:n,onChange:e=>{h(e),l(void 0)}})}),(0,ed.jsx)(ye,{variant:"primary",type:"submit",size:"lg",loading:u,disabled:!a,style:{marginBottom:"0.25rem"},children:r("confirm")})]})]})},$7=({open:e,layout:t="FULLPAGE",onClose:n,controlsPosition:r,setControlsPosition:i,hideEmissions:a,setHideEmissions:o,additionalSettings:s,avatarType:l,setAvatarType:u,enablePositionControls:c,setEnablePositionControls:d,isAvatar3d:h})=>{let{t:p}=tE();return(0,ed.jsxs)(xm,{className:"memori-settings-drawer",open:e,onClose:n,title:p("widget.settings")||"Settings",children:["TOTEM"===t&&(0,ed.jsxs)(ed.Fragment,{children:[(0,ed.jsxs)("div",{className:"memori-settings-drawer--field controls",children:[(0,ed.jsxs)("label",{htmlFor:"#controlsPosition",children:[p("write_and_speak.controlsPosition")||"Controls",":"]}),(0,ed.jsxs)("div",{id:"controlsPosition",className:"memori-settings-drawer--controlsposition-radio",role:"radiogroup",children:[(0,ed.jsx)(ye,{role:"radio","aria-checked":"center"===r,variant:"center"===r?"primary":"outline",className:"memori-settings-drawer--controlsposition-radio-button",onClick:()=>{i("center"),qM("controlsPosition","center")},children:p("center")||"Center"}),(0,ed.jsx)(ye,{role:"radio","aria-checked":"bottom"===r,variant:"bottom"===r?"primary":"outline",className:"memori-settings-drawer--controlsposition-radio-button",onClick:()=>{i("bottom"),qM("controlsPosition","bottom")},children:p("bottom")||"Bottom"})]})]}),h&&(0,ed.jsxs)(ed.Fragment,{children:[(0,ed.jsxs)("div",{className:"memori-settings-drawer--field controls",children:[(0,ed.jsxs)("label",{htmlFor:"avatarType",className:"memori-settings-drawer-label",children:[p("write_and_speak.avatarType")||"Avatar type",":"]}),(0,ed.jsxs)("div",{id:"avatarType",className:"memori-settings-drawer--avatarType-radio",role:"radiogroup",children:[(0,ed.jsx)(ye,{role:"radio","aria-checked":"blob"===l,variant:"blob"===l?"primary":"outline",className:"memori-settings-drawer--avatarType-radio-button",onClick:()=>{null==u||u("blob"),qM("avatarType","blob")},children:p("write_and_speak.blob")||"Blob"}),(0,ed.jsx)(ye,{role:"radio","aria-checked":"avatar3d"===l,variant:"avatar3d"===l?"primary":"outline",className:"memori-settings-drawer--avatarType-radio-button",onClick:()=>{null==u||u("avatar3d"),qM("avatarType","avatar3d")},children:p("write_and_speak.avatar3d")||"Avatar 3D"})]})]}),(0,ed.jsx)("div",{className:"memori-settings-drawer--field",children:(0,ed.jsx)(bW,{label:p("write_and_speak.enablePositionControls")||"Enable position controls",name:"enablePositionControls",checked:c,onChange:e=>{d(e)}})})]}),(0,ed.jsx)("div",{className:"memori-settings-drawer--field",children:(0,ed.jsx)(bW,{label:p("write_and_speak.hideEmissionsLabel")||"Hide emissions",name:"hideControls",checked:a,onChange:e=>{o(e),qM("hideEmissions",e)}})})]}),s&&(0,ed.jsx)("div",{className:"memori-settings-drawer--field controls",children:s})]})},ep=eu("85Hg2");let $9=wf("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]),Je=wf("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]),Jt=e=>{if(!e)return null;let t=e instanceof Date?e:new Date(e);return Number.isNaN(t.getTime())?null:t},Jn=(e,t)=>{let n=t.trim().toLowerCase();return n?e.filter(e=>e.text.toLowerCase().includes(n)):e};var Jr=({apiClient:e,sessionID:t,memori:n,disableFetch:r=!1,visible:i=!0,initialKnownFacts:a=[],closeDrawer:o})=>{let{t:s,i18n:l}=tE(),{add:u}=vX(),{getKnownFacts:c,getKnownFactsPaginated:d,deleteKnownFact:h}=e.knownFacts,p=(0,ep.useRef)(a);p.current=a;let[m,f]=(0,ep.useState)(a.slice(0,8)),[g,v]=(0,ep.useState)(a.length),[y,_]=(0,ep.useState)(Math.min(8,a.length)),[x,w]=(0,ep.useState)(!1),[S,E]=(0,ep.useState)(!1),[A,T]=(0,ep.useState)(""),I=k0(A,300),[C,M]=(0,ep.useState)(!1),[N,R]=(0,ep.useState)([]),[O,P]=(0,ep.useState)(!1),[k,D]=(0,ep.useState)(!1),[B,F]=(0,ep.useState)(),[U,j]=(0,ep.useState)(!1),z=(0,ep.useCallback)((e,t)=>{let n=Jn(p.current,I),r=n.slice(0,e+8);f(r),v(n.length),_(r.length),t||R(e=>e.filter(e=>r.some(t=>t.knownFactID===e)))},[I]),H=(0,ep.useCallback)(async({from:e=0,append:n=!1}={})=>{if(r)return void z(e,n);if(t){n?E(!0):w(!0);try{if(I.trim()){let{knownFacts:n,count:r,...i}=await c(t);0!==i.resultCode&&u(v7({description:s(L_(i.resultCode)),severity:"error"}));let a=Jn(Array.isArray(n)?n:[],I),o=a.slice(0,e+8);f(o),v(a.length||r||0),_(o.length)}else{let{knownFacts:r,count:i,...a}=await d(t,e,8);0!==a.resultCode&&u(v7({description:s(L_(a.resultCode)),severity:"error"}));let o=Array.isArray(r)?r:[];f(e=>n?[...e,...o]:o),v(null!=i?i:0),_(e+o.length)}}catch(e){console.error("KNOWN_FACTS/FETCH",e),n||(f([]),v(0),_(0))}finally{w(!1),E(!1)}}},[u,z,r,c,d,I,t,s]);(0,ep.useEffect)(()=>{H({from:0,append:!1})},[t,I,r]),(0,ep.useEffect)(()=>{M(!1),R([])},[I]);let G=(0,ep.useMemo)(()=>s("knownFacts.selected",{count:N.length,defaultValue:s("knownFacts.selectedRows",{count:N.length})}),[N.length,s]),V=g>0||m.length>0,W=y<g,q=!x&&!I.trim()&&0===m.length,$=!x&&!!I.trim()&&0===m.length,J=async e=>{if(0===e.length)return;if(r){let t=p.current.filter(t=>!e.includes(t.knownFactID));return p.current=t,z(0,!1),!0}let n=await Promise.all(e.map(e=>h(t,e)));if(n.every(e=>0===e.resultCode))return u(v7({description:s("knownFacts.deleteSuccess"),severity:"success"})),await H({from:0,append:!1}),!0;let i=n.find(e=>0!==e.resultCode);return(null==i?void 0:i.resultCode)!==void 0&&u(v7({description:s(L_(i.resultCode)),severity:"error"})),!1},K=V&&!q?(0,ed.jsx)(Hc,{start:(0,ed.jsx)("span",{className:"memori-known-facts-count",children:s("knownFacts.shownOfTotal",{shown:m.length,total:g})}),end:W?(0,ed.jsx)(ye,{variant:"outline",loading:S,disabled:S,icon:(0,ed.jsx)(Ls,{"aria-hidden":!0}),iconPosition:"right",onClick:()=>void H({from:y,append:!0}),children:s("knownFacts.loadMore")}):void 0}):void 0;return(0,ed.jsxs)(Hu,{open:i,size:"md",className:"memori-known-facts-drawer",title:s("knownFacts.title"),description:s("knownFacts.description",{memoriName:n.name}),closeLabel:s("close")||"Close",footer:K,onClose:o,children:[!q&&(0,ed.jsxs)("div",{className:"memori-known-facts-toolbar",children:[(0,ed.jsxs)("div",{className:"memori-known-facts-search",children:[(0,ed.jsx)($9,{"aria-hidden":!0,className:"memori-known-facts-search__icon"}),(0,ed.jsx)("label",{className:"memori-sr-only",htmlFor:"memori-known-facts-search",children:s("knownFacts.searchPlaceholder")}),(0,ed.jsx)(xI,{id:"memori-known-facts-search",fullWidth:!0,value:A,placeholder:s("knownFacts.searchPlaceholder")||"",onValueChange:T})]}),(0,ed.jsx)(ye,{variant:"outline",active:C,icon:(0,ed.jsx)(Lo,{"aria-hidden":!0}),onClick:()=>{M(e=>!e),R([])},children:s("knownFacts.select")})]}),C&&N.length>0&&(0,ed.jsxs)("div",{className:"memori-known-facts-selection-bar",role:"region","aria-label":G,children:[(0,ed.jsx)("span",{className:"memori-known-facts-selection-bar__count",children:G}),(0,ed.jsxs)("div",{className:"memori-known-facts-selection-bar__actions",children:[(0,ed.jsx)(ye,{variant:"danger",className:"memori-known-facts-selection-bar__delete",icon:(0,ed.jsx)($e,{"aria-hidden":!0}),onClick:()=>P(!0),children:s("delete")}),(0,ed.jsx)(ye,{variant:"ghost",onClick:()=>{R([]),M(!1)},children:s("cancel")})]})]}),q&&(0,ed.jsx)(Hl,{icon:(0,ed.jsx)(Je,{}),title:s("knownFacts.emptyTitle"),description:s("knownFacts.emptyDescription")}),$&&(0,ed.jsx)(Hl,{icon:(0,ed.jsx)($9,{}),title:s("write_and_speak.noResultsFound",{searchText:I})}),!q&&!$&&(0,ed.jsx)("ul",{className:"memori-known-facts-list","aria-busy":x||void 0,children:m.map(e=>{var t,n;let r,i=N.includes(e.knownFactID),a=e.creationTimestamp?((e,t,n=new Date)=>{let r=Jt(e);if(!r)return"";let i=r.getTime()-n.getTime(),a=Math.abs(i),o=new Intl.RelativeTimeFormat(t,{numeric:"auto"});return a<6e4?o.format(Math.round(i/1e3),"second"):a<36e5?o.format(Math.round(i/6e4),"minute"):a<864e5?o.format(Math.round(i/36e5),"hour"):a<6048e5?o.format(Math.round(i/864e5),"day"):a<2592e6?o.format(Math.round(i/6048e5),"week"):a<31536e6?o.format(Math.round(i/2592e6),"month"):o.format(Math.round(i/31536e6),"year")})(e.creationTimestamp,l.language):"",o=e.creationTimestamp?(t=e.creationTimestamp,n=l.language,(r=Jt(t))?new Intl.DateTimeFormat(n,{dateStyle:"short",timeStyle:"short"}).format(r):""):"";return(0,ed.jsx)("li",{children:C?(0,ed.jsxs)("label",{className:(b(tA))("memori-known-facts-card",{"memori-known-facts-card--selected":i}),children:[(0,ed.jsx)(bW,{checked:i,onChange:()=>{var t;return t=e.knownFactID,void R(e=>e.includes(t)?e.filter(e=>e!==t):[...e,t])},"aria-label":s("selected")||void 0}),(0,ed.jsx)("span",{className:"memori-known-facts-card__text",children:e.text})]}):(0,ed.jsxs)("article",{className:"memori-known-facts-card",children:[(0,ed.jsxs)("div",{className:"memori-known-facts-card__content",children:[(0,ed.jsx)("p",{className:"memori-known-facts-card__text",children:e.text}),a&&(0,ed.jsx)(_z,{title:o,placement:"bottom",children:(0,ed.jsx)("time",{className:"memori-known-facts-card__date",dateTime:e.creationTimestamp,children:a})})]}),(0,ed.jsx)("div",{className:"memori-known-facts-card__actions",children:(0,ed.jsx)(ye,{variant:"ghost",shape:"circle",size:"sm",className:"memori-known-facts-card__delete","aria-label":s("knownFacts.deleteLabel")||void 0,title:s("delete")||"",icon:(0,ed.jsx)($e,{"aria-hidden":!0}),onClick:()=>F(e.knownFactID)})})]})},e.knownFactID)})}),(0,ed.jsx)(_b,{className:"memori-known-facts-modal",stacking:"stacked",open:O,closable:!0,title:N.length>1?s("knownFacts.deleteSelectedConfirmTitle"):s("knownFacts.deleteConfirmTitle"),description:`${G}. ${s("knownFacts.deleteSelectedConfirmMessage",{number:N.length})}`,onOpenChange:e=>{e||P(!1)},footer:(0,ed.jsxs)(ed.Fragment,{children:[(0,ed.jsx)(ye,{variant:"ghost",onClick:()=>P(!1),children:s("cancel")}),(0,ed.jsx)(ye,{variant:"danger",loading:k,disabled:k,onClick:async()=>{D(!0);try{await J(N)&&(R([]),M(!1),P(!1))}finally{D(!1)}},children:s("confirm")})]})}),(0,ed.jsx)(_b,{className:"memori-known-facts-modal",stacking:"stacked",open:void 0!==B,closable:!0,title:s("knownFacts.deleteConfirmTitle"),description:s("knownFacts.deleteConfirmMessage"),onOpenChange:e=>{e||F(void 0)},footer:(0,ed.jsxs)(ed.Fragment,{children:[(0,ed.jsx)(ye,{variant:"ghost",onClick:()=>F(void 0),children:s("cancel")}),(0,ed.jsx)(ye,{variant:"danger",loading:U,disabled:U,onClick:async()=>{if(B){j(!0);try{await J([B])&&F(void 0)}finally{j(!1)}}},children:s("confirm")})]})})]})},Ji=({open:e=!1,baseUrl:t,apiUrl:n,tenant:r,experts:i,onClose:a})=>{let{t:o}=tE();return(0,ed.jsx)(xm,{open:e,onClose:a,className:"memori--experts-drawer",title:(0,ed.jsx)("h2",{className:"memori--experts-drawer--title",children:o("widget.expertsInTheBoard")}),children:(0,ed.jsx)("ul",{className:"memori--experts-drawer--list",children:i.map(e=>(0,ed.jsxs)("li",{className:"memori--experts-drawer--item",children:[(0,ed.jsx)("figure",{className:"memori--experts-drawer--avatar",children:(0,ed.jsx)("img",{src:`${new URL(n).origin}/api/v1/memoriai/memori/avatar/${e.expertMemoriID}`,alt:e.name,onError:e=>{e.currentTarget.src=Lr({tenantID:null==r?void 0:r.name,type:"avatar",baseURL:t}),e.currentTarget.onerror=null}})}),(0,ed.jsx)("div",{className:"memori--experts-drawer--content",children:(0,ed.jsx)("h3",{className:"memori--experts-drawer--name",children:e.name})})]},e.expertID))})})},ep=eu("85Hg2"),Ja=({open:e=!1,onClose:t,onLogin:n,user:r,loginToken:i,setUser:a,tenant:o,apiClient:s,__TEST__signup:l=!1,__TEST__needMissingData:u=!1,modalClassName:c,memoriName:d,onLogout:h})=>{var p;let{t:m,i18n:f}=tE(),{add:g}=vX(),v="it"===f.language?"it":"en",{pwlUpdateUser:y,loginWithOTP:_,validateOTPCode:x,pwlGetCurrentUser:w}=s.backend,[S,E]=(0,ep.useState)(!1),[A,T]=(0,ep.useState)(null),[I,C]=(0,ep.useState)(""),[M,N]=(0,ep.useState)(""),[R,O]=(0,ep.useState)(null),[P,k]=(0,ep.useState)(!1),[D,B]=(0,ep.useState)(null),[F,U]=(0,ep.useState)(!1),[j,z]=(0,ep.useState)(!1),[H,G]=(0,ep.useState)(0),[V,W]=(0,ep.useState)(""),[q,$]=(0,ep.useState)(!1),[J,K]=(0,ep.useState)(!1),[Y,X]=(0,ep.useState)(!1),[Z,Q]=(0,ep.useState)(!1),ee=(0,ep.useRef)([]),et=(0,ep.useRef)(!1),[en,er]=(0,ep.useState)(u?{token:"token",birthDate:!0,tnCAndPPAccepted:!0}:{});(0,ep.useEffect)(()=>{let e;return null!=D&&D>0&&(e=setInterval(()=>{B(e=>null!=e&&e>0?e-1:0)},1e3)),()=>{e&&clearInterval(e)}},[D]),(0,ep.useEffect)(()=>{0===D&&B(null)},[D]),(0,ep.useEffect)(()=>{e||z(!1)},[e]),(0,ep.useEffect)(()=>{let e=window.matchMedia("(max-width: 768px)"),t=()=>K(e.matches);return t(),e.addEventListener("change",t),()=>e.removeEventListener("change",t)},[]);let ei=async(e,t=!1)=>{let n=e.trim();if(!n)return void O(m("login.emailRequired"));if(!kQ.test(n))return void O(m("login.emailInvalid"));t?U(!0):E(!0),O(null);try{let e=await _({tenant:o.name,eMail:n});0===e.resultCode?(N(n),k(!0),B(60),C(""),G(0)):O(e.resultMessage||m("login.otpSendError"))}catch(e){console.error("[OTP SEND]",e),O(m("login.otpSendError"))}finally{E(!1),U(!1)}},ea=async e=>{var t,r,i;if(!et.current){if(!e||4!==e.length)return void O(m("login.otpInvalidFormat"));if(!M||0===M.trim().length)return void O(m("login.emailRequired"));et.current=!0,E(!0),O(null);try{let s=await x(e,o.name,void 0,M.trim());if(0===s.resultCode)try{let{user:e}=await w(s.newSessionToken);e.age&&e.tnCAndPPAccepted?(z(!0),k(!1),C(""),N(""),n(e,s.newSessionToken)):(a(e),W(null!=(t=null==e?void 0:e.birthDate)?t:""),X(null!=(r=null==e?void 0:e.tnCAndPPAccepted)&&r),Q(null!=(i=null==e?void 0:e.pAndCUAccepted)&&i),er({token:s.newSessionToken,birthDate:!e.age,tnCAndPPAccepted:!e.tnCAndPPAccepted}),k(!1),C(""))}catch(e){console.error("[GET USER]",e),O(m("login.userFetchError"))}else -107===s.resultCode?O(m("login.otpNotFound")):-108===s.resultCode?(O(m("login.otpExpired")),B(null)):-109===s.resultCode?(O(m("login.otpInvalid")),C(""),G(0),window.setTimeout(()=>{var e;null==(e=ee.current[0])||e.focus()},50)):-110===s.resultCode?(O(m("login.otpAttemptsExceeded")),C(""),B(null),k(!1)):O(s.resultMessage||m("login.otpInvalid"))}catch(e){console.error("[OTP VALIDATION]",e),O(m("login.otpError"))}finally{E(!1),et.current=!1}}};(0,ep.useEffect)(()=>{P&&!S&&window.setTimeout(()=>{var e;null==(e=ee.current[0])||e.focus()},50)},[P,S]);let eo=async e=>{if(e.preventDefault(),!(null==r?void 0:r.userID)||!(null==en?void 0:en.token))return void T(m("login.userNotFound"));if(!V||!Y)return void T(m("missingData"));let t={userID:r.userID,birthDate:(null==r?void 0:r.birthDate)||!en.birthDate?void 0:V,tnCAndPPAccepted:Y||(null==r?void 0:r.tnCAndPPAccepted),tnCAndPPAcceptanceDate:Y?new Date().toISOString():void 0,pAndCUAccepted:Z||(null==r?void 0:r.pAndCUAccepted),pAndCUAcceptanceDate:Z?new Date().toISOString():void 0},{user:i,...a}=await y(en.token,r.userID,t);0!==a.resultCode?(console.error(a),g(v7({description:m(L_(a.resultCode)),severity:"error"})),T(a.resultMessage)):n(i||t,en.token)},es=(null==d?void 0:d.trim())||m("login.defaultAgentName")||"AI",el=m("login.login")||"Login",eu=4===I.length,ec=!!(null==(p=null==en?void 0:en.token)?void 0:p.length),eh=(0,ed.jsxs)("div",{className:"memori--login-modal--step",children:[(0,ed.jsx)("p",{className:"memori--login-modal--benefit",children:m("login.loginBenefitLine1",{memoriName:es})}),(0,ed.jsxs)(xC,{className:"memori--login-modal--field",children:[(0,ed.jsx)(xM,{htmlFor:"otp-email",children:m("login.email")}),(0,ed.jsx)(xI,{id:"otp-email",name:"email",type:"email",size:"lg",className:(b(tA))("memori--login-modal--email-input",{error:!!R}),value:M,onChange:e=>{N(e.target.value),O(null)},placeholder:m("login.emailPlaceholder")||"Enter your email…",autoComplete:"email",spellCheck:!1,required:!0,disabled:S,"aria-invalid":!!R,"aria-describedby":R?"otp-email-error":"email-help"}),R?(0,ed.jsx)(xR,{id:"otp-email-error",children:R}):(0,ed.jsx)("p",{id:"email-help",className:"sr-only",children:m("login.otpEmailDescription")})]}),(0,ed.jsx)(ye,{variant:"primary",className:"memori--login-modal--primary",onClick:()=>ei(M),disabled:S,loading:S,size:"lg",children:m("login.sendOtp")}),(0,ed.jsx)("p",{className:"memori--login-modal--footnote",children:m("login.passwordlessHint")})]}),em=(0,ed.jsxs)("div",{className:"memori--login-modal--step",children:[(0,ed.jsx)("p",{className:"memori--login-modal--sent-copy",children:m("login.otpSentToPrefix")}),(0,ed.jsxs)("p",{className:"memori--login-modal--email-row",children:[(0,ed.jsx)("strong",{className:"memori--login-modal--email-value",children:M})," ",(0,ed.jsx)("button",{type:"button",className:"memori--login-modal--edit-link",onClick:()=>{k(!1),C(""),O(null),B(null)},disabled:S,children:m("login.editEmail")})]}),(0,ed.jsxs)("fieldset",{className:"memori--login-modal--otp-fieldset","aria-describedby":"otp-help",children:[(0,ed.jsx)("legend",{className:"memori--login-modal--otp-label",children:m("login.otpCodeShort")}),(0,ed.jsx)("div",{className:"memori--login-modal--otp-digits",children:[0,1,2,3].map(e=>(0,ed.jsx)(xI,{id:0===e?"otp-code":`otp-code-${e}`,name:`otp-code-${e}`,"aria-label":`${m("login.otpCode")} ${e+1} / 4`,type:"text",inputMode:"numeric",pattern:"[0-9]*",enterKeyHint:3===e?"done":"next",autoComplete:0===e?"one-time-code":"off",spellCheck:!1,className:(b(tA))("memori--login-modal--otp-digit",{active:H===e,error:!!R}),value:I[e]||"",onChange:t=>((e,t)=>{var n,r;let i=t.replace(/\D/g,""),a=I.padEnd(4," ").split("");if(!i.length){a[e]=" ",C(a.join("").replace(/\s/g,"")),O(null);return}if(i.length>1){let t=[...a];i.slice(0,4).split("").forEach((n,r)=>{e+r<4&&(t[e+r]=n)});let r=t.join("").replace(/\s/g,"").slice(0,4);C(r),O(null);let o=Math.min(e+i.length,3);null==(n=ee.current[o])||n.focus(),G(o),4===r.length&&M.trim().length>0&&ea(r);return}a[e]=i[0];let o=a.join("").replace(/\s/g,"").slice(0,4);C(o),O(null),4===o.length&&M.trim().length>0&&ea(o),e<3&&(null==(r=ee.current[e+1])||r.focus(),G(e+1))})(e,t.target.value),onFocus:()=>G(e),onKeyDown:t=>{var n,r,i;"Backspace"===t.key&&!I[e]&&e>0&&(null==(n=ee.current[e-1])||n.focus(),G(e-1)),"ArrowLeft"===t.key&&e>0&&(t.preventDefault(),null==(r=ee.current[e-1])||r.focus(),G(e-1)),"ArrowRight"===t.key&&e<3&&(t.preventDefault(),null==(i=ee.current[e+1])||i.focus(),G(e+1))},onPaste:t=>((e,t)=>{var n;let r=t.clipboardData.getData("text").replace(/\D/g,"").slice(0,4);if(!r.length)return;t.preventDefault();let i=I.padEnd(4," ").split("");r.split("").forEach((t,n)=>{e+n<4&&(i[e+n]=t)});let a=i.join("").replace(/\s/g,"").slice(0,4);C(a),O(null);let o=Math.min(e+r.length,3);null==(n=ee.current[o])||n.focus(),G(o),4===a.length&&M.trim().length>0&&ea(a)})(e,t),maxLength:1,required:!0,disabled:S,ref:t=>{ee.current[e]=t}},e))}),(0,ed.jsx)("p",{id:"otp-help",className:"sr-only",children:m("login.otpCodeDescription",{email:M})})]}),R&&(0,ed.jsx)("p",{role:"alert",className:"memori--login-modal--inline-error",children:R}),(0,ed.jsx)(ye,{variant:"primary",className:"memori--login-modal--primary",onClick:()=>ea(I),disabled:S||!eu,loading:S,size:"lg",children:el}),(0,ed.jsx)("p",{className:"memori--login-modal--resend",children:null!=D&&D>0?m("login.resendOtpPrompt",{seconds:D}):(0,ed.jsxs)(ed.Fragment,{children:[m("login.resendOtpQuestion")," ",(0,ed.jsx)("button",{type:"button",className:"memori--login-modal--edit-link",onClick:()=>{M&&kQ.test(M)&&ei(M,!0)},disabled:S||F||!M,children:F?m("login.resending"):m("login.resendOtp")})]})})]}),ef=(0,ed.jsxs)("div",{className:"memori--login-modal--step memori--login-modal--logging-in",role:"status","aria-live":"polite",children:[(0,ed.jsx)("span",{className:"memori--login-modal--spinner","aria-hidden":"true"}),(0,ed.jsx)("p",{className:"memori--login-modal--logging-in-text",children:m("login.loggingIn")})]}),eg=(0,ed.jsxs)("div",{className:"memori--login-modal--missing-data",children:[(0,ed.jsx)("p",{className:"memori--login-modal--missing-helper",children:m("login.missingDataHelper")}),(0,ed.jsxs)(xk,{name:"updateMissingData",className:"memori--login-modal--form memori--login-modal--form--missing",onSubmit:eo,children:[(0,ed.jsxs)("div",{className:"memori--login-modal--form-body",children:[en.birthDate&&(0,ed.jsxs)(xC,{className:"memori--login-modal--field",children:[(0,ed.jsx)(xM,{htmlFor:"birthDate",children:m("login.birthDate")}),(0,ed.jsx)(xI,{id:"birthDate",name:"birthDate",type:!J||V||q?"date":"text",required:!0,onChange:e=>W(e.target.value),value:V,placeholder:J?m("login.birthDatePlaceholder")||"DD/MM/YYYY":void 0,onFocus:()=>$(!0),onBlur:()=>$(!1),autoComplete:"bday"}),(0,ed.jsx)(xN,{children:m("login.birthDateHelper")})]}),(null==en?void 0:en.tnCAndPPAccepted)&&(0,ed.jsxs)("div",{className:"memori--login-modal--consent-block",children:[(0,ed.jsx)(bW,{name:"tnCAndPPAccepted",className:"memori-login-modal--consent",checked:Y,onChange:e=>X(e),label:(0,ed.jsxs)(ed.Fragment,{children:[m("login.privacyLabel")," ",(0,ed.jsx)("a",{href:`https://memori.ai/${v}/privacy_and_cookie`,target:"_blank",rel:"noopener noreferrer",children:m("login.privacyAndCookiePolicy")})," ",m("login.and")," ",(0,ed.jsx)("a",{href:`https://memori.ai/${v}/tos`,target:"_blank",rel:"noopener noreferrer",children:m("login.termsOfService")})]})}),(0,ed.jsx)(bW,{name:"pAndCUAccepted",className:"memori-login-modal--consent",checked:Z,onChange:e=>Q(e),label:(0,ed.jsxs)(ed.Fragment,{children:[m("login.pAndCUAccepted")," ",(0,ed.jsx)("small",{children:(0,ed.jsxs)("em",{children:["(",m("login.optional"),")"]})})]})}),(0,ed.jsx)("p",{className:"memori--login-modal--consent-note",children:m("login.goToAccountToChangeYourPreferences")}),(0,ed.jsx)("p",{className:"memori--login-modal--consent-note memori--login-modal--deep-thought",children:m("login.deepThoughtExplaination")})]}),A&&(0,ed.jsx)("p",{className:"memori--login-modal--inline-error",children:A})]}),(0,ed.jsx)("div",{className:"memori--login-modal--form-footer",children:(0,ed.jsx)(ye,{type:"submit",variant:"primary",className:"memori--login-modal--primary",loading:S,children:m("login.save")})})]})]});return(0,ed.jsx)(_b,{open:e,onClose:t,onOpenChange:e=>{e||t()},className:(b(tA))("memori--login-modal",{"memori--login-modal--missing":ec},c),contentClassName:"memori--login-modal--content",titleClassName:"memori--login-modal--title",title:ec?m("login.missingData"):el,size:"sm",width:ec?"480px":"420px",widthMd:ec?"480px":"420px",centered:!0,closable:!0,children:j?ef:ec?eg:P?em:eh})},ep=eu("85Hg2");let Jo=wf("Expand",[["path",{d:"m21 21-6-6m6 6v-4.8m0 4.8h-4.8",key:"1c15vz"}],["path",{d:"M3 16.2V21m0 0h4.8M3 21l6-6",key:"1fsnz2"}],["path",{d:"M21 7.8V3m0 0h-4.8M21 3l-6 6",key:"hawz9i"}],["path",{d:"M3 7.8V3m0 0h4.8M3 3l6 6",key:"u9ee12"}]]);var ep=eu("85Hg2");let Js=wf("LogIn",[["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}],["polyline",{points:"10 17 15 12 10 7",key:"1ail0h"}],["line",{x1:"15",x2:"3",y1:"12",y2:"12",key:"v6grx8"}]]),Jl=wf("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),Ju=e=>{if("number"==typeof e&&Number.isFinite(e))return e;if(e&&"object"==typeof e){if("number"==typeof e.parsedValue&&Number.isFinite(e.parsedValue))return e.parsedValue;if("string"==typeof e.source){let t=Number(e.source);if(Number.isFinite(t))return t}}},Jc=(e,t)=>new Intl.NumberFormat(t,{minimumFractionDigits:0,maximumFractionDigits:Math.abs(e)>=1?3:4}).format(e),Jd=(e,t,n)=>{let r=Math.abs(e);if("energy"===t){if(r>=1)return`${Jc(e,n)} kWh`;let t=1e3*e;return Math.abs(t)>=1?`${Jc(t,n)} Wh`:`${Jc(1e3*t,n)} mWh`}if("co2"===t){if(r>=1)return`${Jc(e,n)} kg`;let t=1e3*e;return Math.abs(t)>=1?`${Jc(t,n)} g`:`${Jc(1e3*t,n)} mg`}if(r>=1)return`${Jc(e,n)} L`;let i=1e3*e;return Math.abs(i)>=1?`${Jc(i,n)} mL`:`${Jc(1e3*i,n)} \u{3BC}L`};var Jh=({open:e,onClose:t,presentation:n="sheet",title:r,loginToken:i,userName:a,user:o,apiClient:s,userEmail:l,birthDate:u,avatarURL:c,actions:d,logoutLabel:h="Log out",onLogout:p,onKnownFactsOpen:m,onLocationEnable:f,onLocationDisable:g,knownFactsPageTitle:v="Known facts",sharePageTitle:y="Share",locationPageTitle:b="Location tracking",backLabel:_="Back",locationStatusLabel:x="Status",locationPlace:w,locationUnknownLabel:S="Unknown position",locationEnableLabel:E="Use current position",locationDisableLabel:A="Disable location sharing",knownFactsDescription:T,knownFactsCtaLabel:I="Open full known facts",knownFactsCountLabel:C,shareContent:M,knownFactsDisabled:N=!1,knownFactsHint:R,showSessionInfo:O=!1,showKnownFacts:P=!1,history:k=[],aiUsageTitle:D,showMessageConsumption:B=!1,isLoggedIn:F=!1,showLogin:U=!1,loginLabel:j="Log in",onLogin:z,venue:H,setVenue:G,initialView:V="session",autoStartGeolocation:W=!1})=>{let q=U&&F,$=(0,ep.useRef)(null),J="mobile-session-panel-title",K=(0,ep.useRef)(0),[Y,X]=(0,ep.useState)(0),[Z,Q]=(0,ep.useState)("session"),{uploadAsset:ee,pwlUpdateUser:et}=(null==s?void 0:s.backend)||{},{add:en}=vX(),{t:er,i18n:ei}=tE(),ea=ei.language||navigator.language||"en",eo=(0,ep.useMemo)(()=>{let e={energy:0,gwp:0,wcf:0};return k.forEach(t=>{var n,r,i,a;let o=null==(n=t.llmUsage)?void 0:n.energyImpact;o&&(e.energy+=null!=(r=Ju(o.energy))?r:0,e.gwp+=null!=(i=Ju(o.gwp))?i:0,e.wcf+=null!=(a=Ju(o.wcf))?a:0)}),e},[k]),es=(0,ep.useMemo)(()=>k.some(e=>{var t;return!!(null==(t=e.llmUsage)?void 0:t.energyImpact)}),[k]),el=(0,ep.useMemo)(()=>k.some(e=>!!e.llmUsage),[k]),eu=es?`${Jd(eo.energy,"energy",ea)} \u{2022} ${Jd(eo.gwp,"co2",ea)}`:er("widget.noData",{defaultValue:"Nessun dato disponibile"}),ec=R||er("widget.knownFactsHint")||"What I remember about you",eh=D||er("widget.aiConsumption")||"AI usage";(0,ep.useEffect)(()=>{e&&Q(V)},[e,V]);let em=async e=>{if(!ee||!et)return void en(v7({description:er("login.avatarUploadError"),severity:"error"}));if(e&&i){let t=new FileReader;t.onload=async t=>{var n,r,a,s;try{let{asset:l,...u}=await ee(null!=(n=e.name)?n:"avatar",null==(r=t.target)?void 0:r.result,null!=i?i:"");if(0!==u.resultCode)console.error("[updateAvatar] Upload failed:",u),en(v7({description:er(L_(u.resultCode)),severity:"error"}));else if(l){let e={userID:null!=(a=null==o?void 0:o.userID)?a:"",avatarURL:l.assetURL},{...t}=await et(null!=i?i:"",null!=(s=null==o?void 0:o.userID)?s:"",e);0!==t.resultCode?en(v7({description:er(L_(t.resultCode)),severity:"error"})):en(v7({description:er("login.avatarUploadSuccess"),severity:"success"}))}}catch(e){console.error("[updateAvatar] Error:",e),(null==e?void 0:e.message)&&en(v7({description:e.message,severity:"error"}))}},t.readAsDataURL(e)}else console.error("[updateAvatar] Missing avatar or login token",{avatar:e,loginToken:i}),en(v7({description:er("login.avatarUploadError"),severity:"error"}))},ef="popover"===n,eg=!!(w&&w.trim().length>0&&w!==S),ev=d.filter(e=>{let t=e.key.toLowerCase(),n=e.title.toLowerCase(),r="knownFacts"===e.view,i=t.includes("audio")||n.includes("audio")||n.includes("sound");return!r&&!i}),ey=(0,ed.jsxs)("section",{ref:$,tabIndex:-1,className:`memori-mobile-session-panel ${ef?"memori-mobile-session-panel--popover":""}`,role:ef?"dialog":void 0,"aria-modal":!!ef||void 0,"aria-labelledby":J,onClick:e=>e.stopPropagation(),onTouchStart:ef?void 0:e=>{K.current=e.touches[0].clientY,X(0)},onTouchMove:ef?void 0:e=>{var t;let n=null==(t=$.current)?void 0:t.closest(".memori-drawer__body");if(n instanceof HTMLElement&&n.scrollTop>0)return;let r=e.touches[0].clientY-K.current;r>0&&X(r)},onTouchEnd:ef?void 0:()=>{Y>90&&t(),X(0)},style:{transform:Y?`translateY(${Y}px)`:void 0},children:[!ef&&(0,ed.jsx)("div",{className:"memori-mobile-session-panel--handle"}),"session"===Z?(0,ed.jsxs)(ed.Fragment,{children:[q&&(0,ed.jsxs)("div",{className:"memori-mobile-session-panel--user",children:[(0,ed.jsx)("div",{className:"memori-dropdown--avatar-wrap",children:c?(0,ed.jsxs)(ed.Fragment,{children:[(0,ed.jsx)("img",{src:c,alt:a||l,className:"memori-dropdown--avatar"}),(0,ed.jsx)("span",{className:"memori-dropdown--avatar-overlay","aria-hidden":!0,children:(0,ed.jsx)(q8,{size:20,strokeWidth:2})}),(0,ed.jsx)("label",{htmlFor:"mobile-session-avatar-upload",className:"sr-only",children:er("login.changeAvatar",{defaultValue:"Change profile picture"})}),(0,ed.jsx)("input",{type:"file",name:"avatar",id:"mobile-session-avatar-upload",className:"memori-dropdown--avatar-input",onChange:e=>{var t,n;return em(null!=(n=null==(t=e.target.files)?void 0:t[0])?n:null)},accept:Ln.join(", ")})]}):(0,ed.jsx)(ed.Fragment,{children:(0,ed.jsxs)("div",{className:"memori-dropdown--avatar-placeholder",children:[(0,ed.jsx)("span",{className:"memori-dropdown--avatar-initial",children:(a||l||"U").charAt(0).toUpperCase()}),(0,ed.jsx)("span",{className:"memori-dropdown--avatar-overlay","aria-hidden":!0,children:(0,ed.jsx)(q8,{size:20,strokeWidth:2})}),(0,ed.jsx)("label",{htmlFor:"mobile-session-avatar-upload-placeholder",className:"sr-only",children:er("login.changeAvatar",{defaultValue:"Change profile picture"})}),(0,ed.jsx)("input",{type:"file",name:"avatar",id:"mobile-session-avatar-upload-placeholder",className:"memori-dropdown--avatar-input",onChange:e=>{var t,n;return em(null!=(n=null==(t=e.target.files)?void 0:t[0])?n:null)},accept:Ln.join(", ")})]})})}),(0,ed.jsxs)("div",{className:"memori-dropdown--user-details",children:[(0,ed.jsx)("h3",{className:"memori-dropdown--user-name",children:a}),(0,ed.jsx)("p",{className:"memori-dropdown--user-email",children:l}),(0,ed.jsx)("div",{className:"memori-dropdown--user-badge",children:u?new Date(u).toLocaleDateString():"Not set"})]})]}),(0,ed.jsx)("h2",{id:J,className:"memori-mobile-session-panel--section-title",children:r}),O&&(P||B)&&(0,ed.jsxs)("ul",{className:"memori-mobile-session-panel--actions memori-mobile-session-panel--session-info",children:[F&&P&&(0,ed.jsx)("li",{children:(0,ed.jsxs)(ye,{variant:"toolbar",size:"sm",className:"memori-mobile-session-panel--action",disabled:N,onClick:()=>{N||null==m||m()},children:[(0,ed.jsx)("span",{className:"memori-mobile-session-panel--action-icon",children:(0,ed.jsx)($i,{size:18})}),(0,ed.jsxs)("span",{className:"memori-mobile-session-panel--action-copy",children:[(0,ed.jsx)("span",{className:"memori-mobile-session-panel--action-title",children:v}),(0,ed.jsx)("span",{className:"memori-mobile-session-panel--action-subtitle",children:ec})]})]})}),B&&(0,ed.jsx)("li",{children:(0,ed.jsxs)(ye,{variant:"toolbar",size:"sm",className:"memori-mobile-session-panel--action",disabled:!el,onClick:()=>{el&&Q("aiUsage")},children:[(0,ed.jsx)("span",{className:"memori-mobile-session-panel--action-icon",children:(0,ed.jsx)($K,{})}),(0,ed.jsxs)("span",{className:"memori-mobile-session-panel--action-copy",children:[(0,ed.jsx)("span",{className:"memori-mobile-session-panel--action-title",children:eh}),(0,ed.jsx)("span",{className:"memori-mobile-session-panel--action-subtitle",children:eu})]}),(0,ed.jsx)("span",{className:"memori-mobile-session-panel--action-trailing",children:(0,ed.jsx)(HS,{size:16})})]})})]}),(0,ed.jsx)("ul",{className:"memori-mobile-session-panel--actions",children:ev.map(e=>{let t,n,r;return(0,ed.jsx)("li",{children:(t="knownFacts"===e.view,n="share"===e.view,r=e.disabled||t&&!F,(0,ed.jsxs)(ye,{variant:"toolbar",size:"sm",className:"memori-mobile-session-panel--action",disabled:r,onClick:()=>{var t;if(!r){if("knownFacts"===e.view&&m)return void m();if(e.view)return void Q(e.view);null==(t=e.onClick)||t.call(e)}},children:[(0,ed.jsx)("span",{className:"memori-mobile-session-panel--action-icon",children:e.icon}),(0,ed.jsxs)("span",{className:"memori-mobile-session-panel--action-copy",children:[(0,ed.jsx)("span",{className:"memori-mobile-session-panel--action-title",children:e.title}),e.subtitle&&(0,ed.jsx)("span",{className:"memori-mobile-session-panel--action-subtitle",children:e.subtitle})]}),(n||"location"===e.view)&&(0,ed.jsx)("span",{className:"memori-mobile-session-panel--action-trailing",children:(0,ed.jsx)(HS,{size:16})})]}))},e.key)})}),q&&(0,ed.jsxs)(ye,{variant:"toolbar",size:"sm",shape:"default",className:"memori-mobile-session-panel--logout",onClick:p,children:[(0,ed.jsx)("span",{className:"memori-mobile-session-panel--action-icon",children:(0,ed.jsx)(q7,{size:18})}),(0,ed.jsx)("span",{className:"memori-mobile-session-panel--logout-label",children:h})]}),U&&!F&&(0,ed.jsx)("div",{className:"memori-mobile-session-panel--login-cta-wrap",children:(0,ed.jsxs)(ye,{variant:"toolbar",size:"sm",className:"memori-mobile-session-panel--login-cta",onClick:z,children:[(0,ed.jsx)("span",{className:"memori-mobile-session-panel--action-icon",children:(0,ed.jsx)(Js,{size:18})}),j]})})]}):(0,ed.jsxs)("div",{className:"memori-mobile-session-panel--page",children:[(0,ed.jsxs)("div",{className:"memori-mobile-session-panel--page-header",children:[(0,ed.jsxs)(ye,{variant:"toolbar",size:"sm",className:"memori-mobile-session-panel--back",onClick:()=>Q("session"),children:[(0,ed.jsx)(Jl,{size:16}),_]}),(0,ed.jsx)("h3",{className:"memori-mobile-session-panel--page-title",children:"location"===Z?b:"share"===Z?y:"aiUsage"===Z?eh:v})]}),"location"===Z?(0,ed.jsx)("div",{className:"memori-mobile-session-panel--page-content memori-mobile-session-panel--location-content",children:G?(0,ed.jsx)($$,{venue:H,setVenue:G,autoStartGeolocation:W}):(0,ed.jsxs)(ed.Fragment,{children:[(0,ed.jsx)("p",{className:"memori-mobile-session-panel--meta-label",children:x}),(0,ed.jsx)("p",{className:"memori-mobile-session-panel--meta-value",children:w||S}),(0,ed.jsxs)("div",{className:"memori-mobile-session-panel--page-actions",children:[(0,ed.jsx)(ye,{variant:"toolbar",size:"sm",className:`memori-mobile-session-panel--page-btn ${eg?"memori-mobile-session-panel--page-btn-active":""}`,onClick:f,children:(0,ed.jsx)("span",{children:E})}),(0,ed.jsx)(ye,{variant:"toolbar",size:"sm",className:"memori-mobile-session-panel--page-btn memori-mobile-session-panel--page-btn-secondary",onClick:g,children:A})]})]})}):"share"===Z?(0,ed.jsx)("div",{className:"memori-mobile-session-panel--page-content memori-mobile-session-panel--share-content",children:M}):"aiUsage"===Z?(0,ed.jsx)("div",{className:"memori-mobile-session-panel--page-content memori-mobile-session-panel--ai-usage-content",children:(0,ed.jsx)($0,{history:k,showTitle:!1,className:"memori-mobile-session-panel--ai-usage"})}):(0,ed.jsxs)("div",{className:"memori-mobile-session-panel--page-content",children:[T&&(0,ed.jsx)("p",{className:"memori-mobile-session-panel--known-facts-description",children:T}),C&&(0,ed.jsx)("p",{className:"memori-mobile-session-panel--known-facts-count",children:C}),(0,ed.jsx)(ye,{variant:"toolbar",size:"sm",className:"memori-mobile-session-panel--page-btn",disabled:N,onClick:m,children:I})]})]})]});return ef?e?(0,ed.jsx)("div",{className:"memori-mobile-session-panel--overlay memori-mobile-session-panel--overlay-popover",role:"presentation",children:ey}):null:(0,ed.jsx)(xm,{open:e,onClose:t,anchor:"bottom",size:"lg",className:"memori-mobile-session-panel-drawer",closable:!1,children:ey})},Jp=({Header:e,headerProps:t,Avatar:n,avatarProps:r,Chat:i,chatProps:a,StartPanel:o,startPanelProps:s,integrationStyle:l,integrationBackground:u,sessionId:c,hasUserActivatedSpeak:d,loading:h=!1,poweredBy:p})=>{var m,f,g,v,y,b,_,x;let{t:w}=tE(),{state:S}=e7();S.currentArtifact;let E=S.isDrawerOpen&&!S.isChatLogPanelPresentation,[A,T]=(0,ep.useState)(!1),[I,C]=(0,ep.useState)(!1),[M,N]=(0,ep.useState)(!1),[R,O]=(0,ep.useState)(720),[P,k]=(0,ep.useState)(!1),D=(0,ep.useRef)(null);(0,ep.useEffect)(()=>{let e=window.matchMedia("(max-width: 768px)"),t=window.matchMedia("(max-width: 1199px)"),n=()=>{T(e.matches),C(t.matches)};return n(),e.addEventListener("change",n),t.addEventListener("change",n),()=>{e.removeEventListener("change",n),t.removeEventListener("change",n)}},[]);let B=null==t?void 0:t.memori;null==t||t.tenant,null==t||t.baseUrl;let F=(null==t?void 0:t.loginToken)&&(null==(m=null==t?void 0:t.user)?void 0:m.userID)?t.user:void 0,U=[null==F?void 0:F.name,null==F?void 0:F.surname].filter(Boolean).join(" ").trim()||(null==F?void 0:F.userName)||(null==F?void 0:F.eMail)||(null==B?void 0:B.name)||"User",j=U.charAt(0).toUpperCase(),z=!!(c&&d),H=(0,ep.useMemo)(()=>(null==a?void 0:a.isPlayingAudio)?{key:"speaking",label:w("widget.agentStatusSpeaking",{defaultValue:"sta parlando"})}:(null==a?void 0:a.memoriTyping)?{key:"processing",label:w("widget.agentStatusProcessing",{defaultValue:"in elaborazione"})}:(null==a?void 0:a.listening)?{key:"listening",label:w("widget.agentStatusListening",{defaultValue:"in ascolto"})}:null,[null==a?void 0:a.isPlayingAudio,null==a?void 0:a.memoriTyping,null==a?void 0:a.listening,w]),G=(0,ep.useCallback)(()=>{if(function(){if("u"<typeof document)return!1;if(!0===document.fullscreenEnabled)return!0;let e=document.querySelector('meta[name="memori-fullscreen-enabled"], meta[name="fullscreen-enabled"]');return(null==e?void 0:e.getAttribute("content"))==="true"}()){if(!document.fullscreenElement)return void document.documentElement.requestFullscreen().catch(()=>{});document.exitFullscreen().catch(()=>{})}},[]),V=(0,ep.useCallback)(e=>{var t;return Go(e,(null==(t=D.current)?void 0:t.getBoundingClientRect().width)||window.innerWidth,I)},[I]);(0,ep.useEffect)(()=>{E&&O(e=>V(e))},[E,I,V]);let W=(0,ep.useCallback)(e=>{e.preventDefault(),e.currentTarget.setPointerCapture(e.pointerId),k(!0)},[]),q=(0,ep.useCallback)(e=>{if(!P)return;let t=D.current;t&&O(V(t.getBoundingClientRect().right-e.clientX))},[V,P]),$=(0,ep.useCallback)(()=>{k(!1)},[]),J=(0,ep.useCallback)(e=>{let t=e.shiftKey?40:16;"ArrowLeft"===e.key?(e.preventDefault(),O(e=>V(e+t))):"ArrowRight"===e.key?(e.preventDefault(),O(e=>V(e-t))):"Home"===e.key?(e.preventDefault(),O(e=>V(e+200))):"End"===e.key&&(e.preventDefault(),O(e=>V(e-200)))},[V]),K=(0,ep.useMemo)(()=>{if(t)return A?{...t,showReload:!1,showClear:!1,showSettings:!1,showShare:!1,showLogin:!1,showFullscreen:!1,showMessageConsumption:!1,memori:{...t.memori,needsPosition:!1,enableDeepThought:!1},showChatHistory:!1}:t},[t,A]),Y=(0,ep.useMemo)(()=>{var e,n;if(!t)return[];let r=A&&!!t.loginToken&&!1!==t.showChatHistory,i=!A&&!1!==t.showFullscreen,a=!1!==t.showShare,o=!!(null==(e=t.memori)?void 0:e.needsPosition);return[...r?[{key:"chatHistory",icon:(0,ed.jsx)(q6,{size:18}),title:w("widget.headerHistory")||w("write_and_speak.chatHistory")||"Chat history",onClick:()=>{t.setShowChatHistoryDrawer(!0),N(!1)}}]:[],...i?[{key:"fullscreen",icon:(0,ed.jsx)(Jo,{size:18}),title:w("fullscreenEnter")||"Full screen",subtitle:w("widget.expandToImmersive")||"Expand to immersive view",onClick:()=>{G(),N(!1)}}]:[],...a?[{key:"share",icon:(0,ed.jsx)($s,{size:18}),title:w("widget.share")||"Share chat",subtitle:w("widget.mobileSession.copyLinkOrDownload")||"Copy link or download",view:"share"}]:[],...o?[{key:"location",icon:(0,ed.jsx)(Vy,{size:18}),title:w("widget.mobileSession.locationTracking")||"Location tracking",subtitle:(null==(n=t.position)?void 0:n.placeName)||w("widget.mobileSession.currentlyOff")||"Currently off",view:"location",trailing:(0,ed.jsx)("span",{className:"memori-mobile-session-panel--chevron",children:">"})}]:[]]},[t,A,z,w,G]);return(0,ed.jsxs)(ed.Fragment,{children:[l,u,(0,ed.jsxs)(bG,{spinning:h,children:[e&&t&&K&&(0,ed.jsx)("div",{className:"memori-fullpage-top-header",children:(0,ed.jsx)("div",{className:"memori-chat-layout--header",children:(0,ed.jsx)("div",{className:"memori-fullpage-header-row",children:(0,ed.jsx)(e,{...K,layout:"FULLPAGE",buttonVariant:"outline",extraActions:A?(0,ed.jsx)(Gi,{className:"memori-chat-layout--overflow-trigger",active:M,"aria-label":w("widget.moreActions")||"More actions",icon:(0,ed.jsx)(HX,{}),onClick:()=>N(e=>!e)}):void 0})})})}),t&&(0,ed.jsx)(Jh,{open:M,presentation:"popover",onClose:()=>N(!1),title:w("widget.mobileSession.session")||"Session",loginToken:t.loginToken,user:t.user,apiClient:t.apiClient,userName:U,userEmail:null==F?void 0:F.eMail,userInitial:j,avatarURL:null==F?void 0:F.avatarURL,birthDate:null==F?void 0:F.birthDate,actions:Y,knownFactsPageTitle:w("knownFacts.title")||"Known facts",sharePageTitle:w("widget.share")||"Share",locationPageTitle:w("widget.mobileSession.locationTracking")||"Location tracking",backLabel:w("back")||"Back",locationStatusLabel:w("widget.mobileSession.locationStatus")||"Status",locationPlace:null==(f=t.position)?void 0:f.placeName,locationUnknownLabel:w("write_and_speak.unknownPosition")||"Unknown position",locationEnableLabel:w("widget.shareLocation")||"Share location",locationDisableLabel:w("widget.mobileSession.disableLocationSharing")||"Disable location sharing",knownFactsDescription:w("knownFacts.description",{memoriName:(null==B?void 0:B.name)||""})||"",knownFactsCtaLabel:w("widget.mobileSession.openKnownFacts")||"Open full known facts",knownFactsCountLabel:w("widget.mobileSession.knownFactsMessages",{count:(null==(g=t.history)?void 0:g.length)||0})||"",shareContent:(0,ed.jsx)($S,{tenant:null==t?void 0:t.tenant,memori:null==t?void 0:t.memori,sessionID:null==t?void 0:t.sessionID,title:null==(v=null==t?void 0:t.memori)?void 0:v.name,baseUrl:null==t?void 0:t.baseUrl,align:"left",history:null==t?void 0:t.history,renderMode:"inline"}),knownFactsDisabled:!z,showSessionInfo:z,showKnownFacts:!!(null==(y=t.memori)?void 0:y.enableDeepThought)&&!!t.loginToken&&!!(null==(b=t.user)?void 0:b.pAndCUAccepted),showMessageConsumption:!!t.showMessageConsumption,history:null!=(_=t.history)?_:[],isLoggedIn:!!F,showLogin:!!t.showLogin,loginLabel:w("login.login")||"Log in",onLogin:()=>{t.setShowLoginDrawer(!0),N(!1)},onKnownFactsOpen:()=>{z&&(t.setShowKnownFactsDrawer(!0),N(!1))},onLocationEnable:()=>{if(t){if(!navigator.geolocation)return void t.setPositionPopoverOpen(!0);navigator.geolocation.getCurrentPosition(e=>{let n=e.coords.latitude,r=e.coords.longitude;t.setVenue({latitude:n,longitude:r,placeName:`${n.toFixed(5)}, ${r.toFixed(5)}`,uncertainty:e.coords.accuracy/1e3})},()=>{t.setPositionPopoverOpen(!0)},{enableHighAccuracy:!0,timeout:15e3,maximumAge:0})}},onLocationDisable:()=>{null==t||t.setVenue({latitude:0,longitude:0,placeName:"",uncertainty:0})},venue:t.position,setVenue:t.setVenue,logoutLabel:w("login.logout")||"Log out",onLogout:()=>{(()=>{if(t){if(F&&t.onLogout)return t.onLogout();t.setShowLoginDrawer(!0)}})(),N(!1)}}),(0,ed.jsxs)("div",{ref:D,className:`memori-fullpage-content-row${E&&I?" memori-fullpage-content-row--artifact-overlay":""}${P?" memori-fullpage-content-row--resizing":""}`,style:E?{"--memori-artifact-column-width":`${R}px`}:void 0,children:[(0,ed.jsxs)("div",{className:"memori--grid",children:[(0,ed.jsxs)("div",{className:"memori--grid-column memori--grid-column-left",hidden:E,children:[z&&H&&(0,ed.jsxs)("div",{className:"memori-fullpage-agent-status",role:"status","aria-live":"polite",children:[(0,ed.jsx)("span",{className:`memori-fullpage-agent-status--dot memori-fullpage-agent-status--dot-${H.key}`,"aria-hidden":"true"}),(0,ed.jsx)("span",{className:"memori-fullpage-agent-status--label",children:H.label})]}),n&&r&&(0,ed.jsx)(n,{chatProps:a,...r}),(0,ed.jsx)("div",{id:"extension"})]}),(0,ed.jsx)("div",{className:"memori-chat-layout--main",children:(0,ed.jsx)("div",{className:S.isFullscreen?"memori-chat-layout-controls-hide":"memori-chat-layout--controls",children:c&&d&&i&&a?(0,ed.jsx)(i,{...a,footerBrand:p,showAiGeneratedNote:!0}):s?(0,ed.jsx)("div",{className:"memori-conversation-column",children:(0,ed.jsx)(o,{...s,footerBrand:p})}):null})})]}),(0,ed.jsx)("div",{className:`memori--grid-column-artifact${E?" memori--grid-column-artifact--open":""}`,children:E&&(0,ed.jsxs)(ed.Fragment,{children:[!A&&(0,ed.jsx)("div",{className:"memori-artifact-resize-handle",role:"separator","aria-orientation":"vertical","aria-label":w("artifact.resizeHandle")||"Resize artifact panel","aria-valuemin":360,"aria-valuemax":Math.round((null==(x=D.current)?void 0:x.getBoundingClientRect().width)||0)||void 0,"aria-valuenow":Math.round(R),tabIndex:0,onPointerDown:W,onPointerMove:q,onPointerUp:$,onPointerCancel:$,onKeyDown:J}),(0,ed.jsx)(Gs,{isLayoutColumn:!0})]})})]})]})]})},Jm=({Header:e,headerProps:t,Avatar:n,avatarProps:r,Chat:i,chatProps:a,StartPanel:o,startPanelProps:s,integrationStyle:l,integrationBackground:u,sessionId:c,hasUserActivatedSpeak:d,loading:h=!1,poweredBy:p,totemContentMaxWidth:m})=>{let f=null!=m?{"--memori-totem-max-width":"number"==typeof m?`${m}px`:m}:void 0;return(0,ed.jsxs)(ed.Fragment,{children:[l,u,(0,ed.jsxs)(bG,{spinning:h,className:"memori-totem-layout",style:f,children:[p,(0,ed.jsx)("div",{className:"memori-totem-layout--header",children:e&&t&&(0,ed.jsx)(e,{buttonVariant:"outline",...t})}),(0,ed.jsx)("div",{className:"memori-totem-layout--avatar",children:n&&r&&(0,ed.jsx)(n,{chatProps:a,...r,isTotem:!0})}),(0,ed.jsx)("div",{id:"extension"}),(0,ed.jsx)("div",{className:"memori-totem-layout--controls",children:c&&d&&i&&a?(0,ed.jsx)(i,{...a}):s?(0,ed.jsx)(o,{...s}):null})]})]})},ep=eu("85Hg2"),Jf=({Header:e,headerProps:t,Chat:n,chatProps:r,StartPanel:i,startPanelProps:a,integrationStyle:o,integrationBackground:s,sessionId:l,hasUserActivatedSpeak:u,loading:c=!1,poweredBy:d})=>{var h,p,m,f,g,v,y,b;let{t:_}=tE(),{state:x}=e7(),w=x.isDrawerOpen&&!x.isChatLogPanelPresentation,[S,E]=(0,ep.useState)(!1),[A,T]=(0,ep.useState)(!1);(0,ep.useEffect)(()=>{let e=window.matchMedia("(max-width: 768px)"),t=()=>E(e.matches);return t(),e.addEventListener("change",t),()=>e.removeEventListener("change",t)},[]);let I=null==r?void 0:r.globalBackground,C=null==t?void 0:t.memori;null==t||t.tenant,null==t||t.baseUrl;let M=(null==t?void 0:t.loginToken)&&(null==(h=null==t?void 0:t.user)?void 0:h.userID)?t.user:void 0,N=[null==M?void 0:M.name,null==M?void 0:M.surname].filter(Boolean).join(" ").trim()||(null==M?void 0:M.userName)||(null==M?void 0:M.eMail)||(null==C?void 0:C.name)||"User",R=N.charAt(0).toUpperCase(),O=!!(l&&u),P=(0,ep.useMemo)(()=>{if(t)return S?{...t,showReload:!1,showClear:!1,showSettings:!1,showShare:!1,showLogin:!1,showFullscreen:!1,showMessageConsumption:!1,memori:{...t.memori,needsPosition:!1,enableDeepThought:!1},showChatHistory:!1}:t},[t,S]),k=(0,ep.useMemo)(()=>{var e,n;if(!t)return[];let r=S&&!!t.loginToken&&!1!==t.showChatHistory,i=!1!==t.showShare,a=!!(null==(e=t.memori)?void 0:e.needsPosition);return[...r?[{key:"chatHistory",icon:(0,ed.jsx)(q6,{size:18}),title:_("widget.headerHistory")||_("write_and_speak.chatHistory")||"Chat history",onClick:()=>{t.setShowChatHistoryDrawer(!0),T(!1)}}]:[],...i?[{key:"share",icon:(0,ed.jsx)($s,{size:18}),title:_("widget.share")||"Share chat",subtitle:_("widget.mobileSession.copyLinkOrDownload")||"Copy link or download",view:"share"}]:[],...a?[{key:"location",icon:(0,ed.jsx)(Vy,{size:18}),title:_("widget.mobileSession.locationTracking")||"Location tracking",subtitle:(null==(n=t.position)?void 0:n.placeName)||_("widget.mobileSession.currentlyOff")||"Currently off",view:"location",trailing:(0,ed.jsx)("span",{className:"memori-mobile-session-panel--chevron",children:">"})}]:[]]},[t,S,_]);return(0,ed.jsxs)(ed.Fragment,{children:[o,s,(0,ed.jsxs)(bG,{spinning:c,className:"memori-chat-layout",children:[(0,ed.jsx)("div",{id:"extension"}),(0,ed.jsx)("div",{className:"memori-chat-layout--header",children:e&&t&&P&&(0,ed.jsx)("div",{className:"memori-fullpage-header-row",children:(0,ed.jsx)(e,{...P,buttonVariant:"outline",extraActions:S?(0,ed.jsx)(Gi,{className:"memori-chat-layout--overflow-trigger",active:A,"aria-label":_("widget.moreActions")||"More actions",icon:(0,ed.jsx)(HX,{}),onClick:()=>T(e=>!e)}):void 0})})}),t&&(0,ed.jsx)(Jh,{open:A,presentation:"popover",onClose:()=>T(!1),title:_("widget.mobileSession.session")||"Session",loginToken:t.loginToken,user:t.user,apiClient:t.apiClient,userName:N,userEmail:null==M?void 0:M.eMail,userInitial:R,avatarURL:null==M?void 0:M.avatarURL,birthDate:null==M?void 0:M.birthDate,actions:k,knownFactsPageTitle:_("knownFacts.title")||"Known facts",sharePageTitle:_("widget.share")||"Share",locationPageTitle:_("widget.mobileSession.locationTracking")||"Location tracking",backLabel:_("back")||"Back",locationStatusLabel:_("widget.mobileSession.locationStatus")||"Status",locationPlace:null==(p=t.position)?void 0:p.placeName,locationUnknownLabel:_("write_and_speak.unknownPosition")||"Unknown position",locationEnableLabel:_("widget.shareLocation")||"Share location",locationDisableLabel:_("widget.mobileSession.disableLocationSharing")||"Disable location sharing",knownFactsDescription:_("knownFacts.description",{memoriName:(null==C?void 0:C.name)||""})||"",knownFactsCtaLabel:_("widget.mobileSession.openKnownFacts")||"Open full known facts",knownFactsCountLabel:_("widget.mobileSession.knownFactsMessages",{count:(null==(m=t.history)?void 0:m.length)||0})||"",shareContent:(0,ed.jsx)($S,{tenant:null==t?void 0:t.tenant,memori:null==t?void 0:t.memori,sessionID:null==t?void 0:t.sessionID,title:null==(f=null==t?void 0:t.memori)?void 0:f.name,baseUrl:null==t?void 0:t.baseUrl,align:"left",history:null==t?void 0:t.history,renderMode:"inline"}),knownFactsDisabled:!O,showSessionInfo:O,showKnownFacts:!!(null==(g=t.memori)?void 0:g.enableDeepThought)&&!!t.loginToken&&!!(null==(v=t.user)?void 0:v.pAndCUAccepted),showMessageConsumption:!!t.showMessageConsumption,history:null!=(y=t.history)?y:[],isLoggedIn:!!M,showLogin:!!t.showLogin,loginLabel:_("login.login")||"Log in",onLogin:()=>{t.setShowLoginDrawer(!0),T(!1)},onKnownFactsOpen:()=>{O&&(t.setShowKnownFactsDrawer(!0),T(!1))},onLocationEnable:()=>{if(t){if(!navigator.geolocation)return void t.setPositionPopoverOpen(!0);navigator.geolocation.getCurrentPosition(e=>{let n=e.coords.latitude,r=e.coords.longitude;t.setVenue({latitude:n,longitude:r,placeName:`${n.toFixed(5)}, ${r.toFixed(5)}`,uncertainty:e.coords.accuracy/1e3})},()=>{t.setPositionPopoverOpen(!0)},{enableHighAccuracy:!0,timeout:15e3,maximumAge:0})}},onLocationDisable:()=>{null==t||t.setVenue({latitude:0,longitude:0,placeName:"",uncertainty:0})},venue:t.position,setVenue:t.setVenue,logoutLabel:_("login.logout")||"Log out",onLogout:()=>{(()=>{if(t){if(M&&t.onLogout)return t.onLogout();t.setShowLoginDrawer(!0)}})(),T(!1)}}),(0,ed.jsxs)("div",{className:`memori-chat-layout--main${I?" memori-chat-layout--main--has-background":""}`,style:I?{"--memori-chat-global-background":`url(${I})`}:void 0,children:[(0,ed.jsx)("div",{className:x.isFullscreen?"memori-chat-layout-controls-hide":"memori-chat-layout--controls",children:(0,ed.jsxs)("div",{className:"memori-conversation-column",children:[(0,ed.jsx)("div",{className:"memori-chat-layout--body",children:l&&u&&n&&r?(0,ed.jsx)(n,{...r,showInputs:!1}):a?(0,ed.jsx)("div",{className:"memori-chat-layout--start-shell",id:"chat-wrapper",children:(0,ed.jsx)("div",{className:"memori-chat-layout--start-panel-wrap",children:(0,ed.jsx)(i,{...a})})}):null}),n&&r&&!1!==r.showInputs&&(0,ed.jsx)(Vt,{userMessage:r.userMessage,onChangeUserMessage:r.onChangeUserMessage,dialogState:r.dialogState,instruct:r.instruct,authToken:r.authToken,sendMessage:r.sendMessage,isTyping:r.memoriTyping,microphoneMode:r.microphoneMode,sendOnEnter:r.sendOnEnter,setSendOnEnter:r.setSendOnEnter,client:r.client,sessionID:r.sessionID,showUpload:r.showUpload,attachmentsMenuOpen:r.attachmentsMenuOpen,setAttachmentsMenuOpen:r.setAttachmentsMenuOpen,onTextareaFocus:()=>{var e;null==(e=r.stopListening)||e.call(r)},onTextareaBlur:()=>{},onTextareaExpanded:()=>{},startListening:r.startListening,stopListening:r.stopListening,audioStream:r.audioStream,transcribing:r.transcribing,stopAudio:r.stopAudio,listening:r.listening,isPlayingAudio:r.isPlayingAudio,showMicrophone:r.showMicrophone,memoriID:null==(b=r.memori)?void 0:b.memoriID,maxTextareaCharacters:r.maxTextareaCharacters,maxTotalMessagePayload:r.maxTotalMessagePayload,maxDocumentsPerMessage:kY,maxDocumentContentLength:3e5,pasteAsCardLineThreshold:100,pasteAsCardCharThreshold:4200,showAiGeneratedNote:O,footerBrand:d})]})}),(0,ed.jsx)("div",{className:`memori--grid-column-artifact${w?" memori--grid-column-artifact--open":""}`,children:w&&(0,ed.jsx)(Gs,{isLayoutColumn:!0})})]})]})]})},ep=eu("85Hg2");let Jg="memori-widget--fullscreen";function Jv(e){var t;return null!=(t=e.closest(".memori-widget"))?t:e}function Jy(e,t){let n=Jv(e);return n.classList.add(Jg),"function"==typeof n.requestFullscreen&&n.requestFullscreen().catch(e=>{n.classList.remove(Jg),null==t||t(e)}),n}function Jb(e){Jv(e).classList.remove(Jg)}let J_="memori-website_assistant--fullscreen";var Jx=({Header:e,headerProps:t,Avatar:n,avatarProps:r,Chat:i,chatProps:a,StartPanel:o,startPanelProps:s,integrationStyle:l,sessionId:u,hasUserActivatedSpeak:c,loading:d=!1,show3dAvatar:h=!1,sideDrawerOpen:p=!1,onSidebarToggle:m})=>{var f,g,v,y,b,_;let{t:x}=tE(),{state:w}=e7(),S=w.isDrawerOpen&&!w.isChatLogPanelPresentation,E=S||p,[A,T]=(0,ep.useState)(!0),[I,C]=(0,ep.useState)(),[M,N]=(0,ep.useState)(!1),R=(0,ep.useRef)(null),O=(0,ep.useRef)({left:"",right:"",width:"",maxWidth:"",height:"",backgroundColor:""}),P=(0,ep.useMemo)(()=>null==a?void 0:a.stopAudio,[null==a?void 0:a.stopAudio]),k=null==t?void 0:t.memori,D=null==t?void 0:t.tenant,B=null==t?void 0:t.baseUrl,F=!!(u&&c),U=k?k.avatarURL&&k.avatarURL.length>0?Lr({type:"avatar",tenantID:null==D?void 0:D.name,resourceURI:k.avatarURL,baseURL:B,apiURL:""}):Lr({type:"avatar",tenantID:null==D?void 0:D.name,baseURL:B,apiURL:""}):void 0,{add:j}=vX(),[z,H]=(0,ep.useState)(!1),G=(null==t?void 0:t.loginToken)&&(null==(f=null==t?void 0:t.user)?void 0:f.userID)?t.user:void 0,V=(null==G?void 0:G.userName)||(null==G?void 0:G.eMail)||(null==k?void 0:k.name)||"User",W=!!(null==k?void 0:k.enableDeepThought)&&!!(null==t?void 0:t.loginToken)&&!!(null==(g=null==t?void 0:t.user)?void 0:g.pAndCUAccepted),q=!!(null==k?void 0:k.needsPosition)&&!!(null==t?void 0:t.positionPopoverOpen),$=()=>{H(!1),(null==t?void 0:t.positionPopoverOpen)&&t.setPositionPopoverOpen(!1)};(0,ep.useEffect)(()=>{q&&H(!0)},[q]);let J=(0,ep.useMemo)(()=>{var e,n,r;return t?[...t.showShare?[{key:"share",icon:(0,ed.jsx)($s,{size:18}),title:x("widget.share")||"Share chat",subtitle:x("widget.mobileSession.copyLinkOrDownload")||"Copy link or download",view:"share"}]:[],...(null==(e=t.memori)?void 0:e.needsPosition)?[{key:"location",icon:(0,ed.jsx)(Vy,{size:18}),title:x("widget.mobileSession.locationTracking")||"Location tracking",subtitle:(null==(n=t.position)?void 0:n.placeName)||x("widget.mobileSession.currentlyOff")||"Currently off",view:"location"}]:[],...(null==(r=t.memori)?void 0:r.enableBoardOfExperts)?[{key:"experts",icon:(0,ed.jsx)(Vv,{size:18}),title:x("widget.showExpertsInTheBoard")||"Experts in this board",disabled:!F,onClick:()=>{t.setShowExpertsDrawer(!0),H(!1)}}]:[],...t.showClear?[{key:"clear",icon:(0,ed.jsx)($e,{size:18}),title:x("clearHistory")||"Clear chat",onClick:()=>{t.clearHistory(),j(v7({description:x("clearHistoryDone"),severity:"success"})),H(!1)}}]:[]]:[]},[t,F,x,j]),K=J.length>0||!!(null==t?void 0:t.showLogin)||F&&(W||!!(null==t?void 0:t.showMessageConsumption)),Y=()=>{let e=R.current;e&&(e.style.left=O.current.left,e.style.right=O.current.right,e.style.width=O.current.width,e.style.maxWidth=O.current.maxWidth,e.style.height=O.current.height,e.style.backgroundColor=O.current.backgroundColor,e.classList.remove(J_),Jb(e)),N(!1)};(0,ep.useEffect)(()=>{let e=()=>{!document.fullscreenElement&&M&&Y()};return document.addEventListener("fullscreenchange",e),()=>{document.removeEventListener("fullscreenchange",e)}},[M]);let X=e=>{e&&M&&(document.fullscreenElement&&document.exitFullscreen().catch(e=>{console.warn("[WebsiteAssistantLayout] Error exiting fullscreen:",e)}),Y()),e&&$(),T(e),null==m||m(!e),C(e?void 0:new Date().toISOString());try{null==P||P()}catch(e){console.log(e)}};return(0,ed.jsxs)(ed.Fragment,{children:[A&&(0,ed.jsx)("div",{className:"memori-website_assistant--trigger",children:(0,ed.jsx)(ye,{className:"memori-website_assistant--trigger-button",variant:"ghost",shape:"circle",onClick:()=>X(!1),"aria-label":x("expand")||"Expand","aria-expanded":!1,title:x("expand")||"Expand",children:(0,ed.jsx)(VR,{avatar:null==r?void 0:r.memori.avatarURL})})}),(0,ed.jsx)("div",{ref:R,className:`memori-website_assistant--${A?"collapsed":"expanded"}${E?" memori-website_assistant--drawer-open memori-website_assistant--artifact-open":""}${M?` ${J_}`:""}`,children:!A&&(0,ed.jsxs)(ed.Fragment,{children:[l,(0,ed.jsxs)(bG,{spinning:d,className:"memori-website_assistant-layout",children:[(0,ed.jsxs)("div",{className:"memori-website_assistant-layout--header-row",children:[k&&U&&(0,ed.jsxs)("div",{className:"memori-chat-layout--brand",children:[(0,ed.jsx)("img",{className:"memori-chat-layout--brand-avatar",src:U,alt:"",role:"presentation"}),(0,ed.jsx)("div",{className:"memori-chat-layout--brand-text",children:F&&(0,ed.jsx)("span",{className:"memori-chat-layout--brand-name",title:k.name,children:k.name})})]}),(0,ed.jsxs)("div",{className:"memori-website_assistant-layout--header-actions",children:[e&&t&&(0,ed.jsx)(e,{...t,buttonVariant:"outline",memori:{...t.memori,needsPosition:!1,enableDeepThought:!1,enableBoardOfExperts:!1},showSettings:!1,showReload:!1,showChatHistory:!1,showShare:!1,showClear:!1,showLogin:!1,showMessageConsumption:!1,fullScreenHandler:()=>{if(document.fullscreenElement)document.exitFullscreen&&document.exitFullscreen().catch(e=>{console.warn("[WebsiteAssistantLayout] Error exiting fullscreen:",e)}),Y();else{let e=R.current;e&&(O.current={left:e.style.left,right:e.style.right,width:e.style.width,maxWidth:e.style.maxWidth,height:e.style.height,backgroundColor:e.style.backgroundColor},e.style.left="0",e.style.right="0",e.style.width="100%",e.style.maxWidth="none",e.style.height="100%",e.style.backgroundColor="",e.classList.add(J_),Jy(e,e=>{console.warn("[WebsiteAssistantLayout] Error enabling fullscreen:",e)})),N(!0)}},extraActions:K?(0,ed.jsx)(Gi,{className:"memori-chat-layout--overflow-trigger",active:z,"aria-label":x("widget.moreActions")||"More actions",icon:(0,ed.jsx)(HX,{}),onClick:()=>z?$():H(!0)}):void 0}),(0,ed.jsx)("button",{type:"button",className:"memori-website_assistant--close-button",onClick:()=>X(!0),"aria-label":x("collapse")||"Close",title:x("collapse")||"Close",children:(0,ed.jsx)(HY,{className:"memori-icon-close","aria-hidden":!0})})]})]}),h&&(0,ed.jsx)("div",{className:"memori-website_assistant-layout--avatar",children:n&&r&&(0,ep.createElement)(n,{...r,integrationConfig:r.integrationConfig?{...r.integrationConfig,avatarURL:(null==(v=r.integrationConfig)?void 0:v.avatarURL)?`${null==(y=r.integrationConfig)?void 0:y.avatarURL.split("#")[0]}#${I}`:void 0}:{},key:I})}),(0,ed.jsx)("div",{id:"extension"}),(0,ed.jsx)("div",{className:"memori-website_assistant-layout--controls",children:u&&c&&i&&a?(0,ed.jsx)(i,{...a}):s?(0,ed.jsx)(o,{...s,showFullDescriptionOnMobile:!0,showChatHistory:!1}):null})]}),t&&K&&(0,ed.jsx)(Jh,{open:z,presentation:"popover",onClose:$,initialView:q?"location":"session",autoStartGeolocation:q&&!!t.autoStartPositionGeolocation,title:x("widget.mobileSession.session")||"Session",loginToken:t.loginToken,user:t.user,apiClient:t.apiClient,userName:V,userEmail:null==G?void 0:G.eMail,userInitial:V.charAt(0).toUpperCase(),avatarURL:null==G?void 0:G.avatarURL,birthDate:null==G?void 0:G.birthDate,actions:J,knownFactsPageTitle:x("knownFacts.title")||"Known facts",sharePageTitle:x("widget.share")||"Share",locationPageTitle:x("widget.mobileSession.locationTracking")||"Location tracking",backLabel:x("back")||"Back",shareContent:(0,ed.jsx)($S,{tenant:t.tenant,memori:t.memori,sessionID:t.sessionID,title:null==(b=t.memori)?void 0:b.name,baseUrl:t.baseUrl,align:"left",history:t.history,renderMode:"inline"}),knownFactsDisabled:!F,showSessionInfo:F,showKnownFacts:W,showMessageConsumption:!!t.showMessageConsumption,history:null!=(_=t.history)?_:[],isLoggedIn:!!G,showLogin:!!t.showLogin,loginLabel:x("login.login")||"Log in",onLogin:()=>{t.setShowLoginDrawer(!0),$()},onKnownFactsOpen:()=>{F&&(t.setShowKnownFactsDrawer(!0),$())},venue:t.position,setVenue:t.setVenue,logoutLabel:x("login.logout")||"Log out",onLogout:()=>{var e;null==(e=t.onLogout)||e.call(t),$()}})]})}),S&&(0,ed.jsx)(Gs,{})]})},ep=eu("85Hg2"),Jw=({Header:e,headerProps:t,Chat:n,chatProps:r,startPanelProps:i,sessionId:a,hasUserActivatedSpeak:o,autoStart:s,StartPanel:l,onSidebarToggle:u})=>{var c,d,h,p,m,f;let{t:g}=tE(),[v,y]=(0,ep.useState)(!1),[b,_]=(0,ep.useState)(!1),x=(0,ep.useRef)(null),{state:w,closeArtifact:S}=e7(),E=w.isDrawerOpen&&!w.isChatLogPanelPresentation,A=null==t?void 0:t.memori,T=null==t?void 0:t.tenant,I=null==t?void 0:t.baseUrl,C=(0,ep.useMemo)(()=>{if(t)return{...t,showReload:!1,showClear:!1,showSettings:!1,showShare:!1,showLogin:!1,showMessageConsumption:!1,showFullscreen:!0,memori:{...t.memori,needsPosition:!1,enableDeepThought:!1},layout:"HIDDEN_CHAT",showChatHistory:!1}},[t]),M=!!i&&(h=!!i.memori.needsPosition,p=!!i.position,!!h&&!p||(m=!!i.memori.requireLoginToken,f=!!i.isUserLoggedIn,!!m&&!f)),N=A?A.avatarURL&&A.avatarURL.length>0?Lr({type:"avatar",tenantID:null==T?void 0:T.name,resourceURI:A.avatarURL,baseURL:I,apiURL:""}):Lr({type:"avatar",tenantID:null==T?void 0:T.name,baseURL:I,apiURL:""}):void 0,R=(0,ep.useRef)({left:"",right:"",width:"",maxWidth:"",backgroundColor:""});(0,ep.useEffect)(()=>{let e=()=>{!document.fullscreenElement&&b&&P()};return document.addEventListener("fullscreenchange",e),()=>{document.removeEventListener("fullscreenchange",e)}},[b]),(0,ep.useEffect)(()=>{var e;let t=document.body,n=document.querySelector(".memori-widget"),r=n&&(null==(e=getComputedStyle(n).getPropertyValue("--memori-hidden-chat-width"))?void 0:e.trim())||"min(450px, 100vw)";v?b?(t.style.width="100%",t.style.marginLeft="0"):"u">typeof window&&window.matchMedia("(max-width: 768px)").matches?(t.style.width="100%",t.style.marginRight="0",t.style.marginLeft="0"):(t.style.width=`calc(100% - ${r})`,t.style.marginRight=r,t.style.transition="all 0.5s"):(t.style.width="100%",t.style.marginRight="0",t.style.marginLeft="0",S())},[v,b]);let O=()=>{b&&v&&(document.fullscreenElement&&document.exitFullscreen().catch(e=>{console.warn("[HiddenChatLayout] Error exiting fullscreen:",e)}),P());let e=!v;y(e),u&&u(e)},P=()=>{let e=x.current;e&&(e.style.left=R.current.left,e.style.right=R.current.right,e.style.width=R.current.width,e.style.maxWidth=R.current.maxWidth,e.style.backgroundColor=R.current.backgroundColor,e.classList.remove("memori-sidebar-fullscreen"),Jb(e)),_(!1)};return(0,ed.jsxs)(ed.Fragment,{children:[(0,ed.jsx)("input",{type:"checkbox",id:"memori-sidebar-toggle",className:`memori-sidebar-toggle ${E?"memori-sidebar-toggle-artifact":""}`,checked:v,onChange:O}),(0,ed.jsxs)("div",{className:"memori-sidebar-container",children:[(0,ed.jsx)("label",{htmlFor:"memori-sidebar-toggle",className:"memori-sidebar-toggle-label memori-open-label",children:(0,ed.jsx)(Lc,{className:"memori-icon","aria-label":null!=(c=g("expand"))?c:void 0})}),(0,ed.jsx)("aside",{ref:x,className:`memori-sidebar memori-chat-layout ${b?"memori-sidebar-fullscreen":""}`,children:(0,ed.jsxs)("div",{className:"memori-hidden-chat-layout--controls memori-chat-layout--controls",children:[(0,ed.jsx)("div",{className:"memori-chat-layout--header",children:e&&t&&(0,ed.jsxs)("div",{className:"memori-chat-layout--header-row",children:[A&&N&&(0,ed.jsxs)("div",{className:"memori-chat-layout--brand",children:[(0,ed.jsx)("img",{className:"memori-chat-layout--brand-avatar",src:N,alt:"",role:"presentation"}),(0,ed.jsx)("div",{className:"memori-chat-layout--brand-text",children:!!(a&&o)&&(0,ed.jsx)("span",{className:"memori-chat-layout--brand-name",title:A.name,children:A.name})})]}),(0,ed.jsxs)("div",{className:"memori-hidden-chat-layout--header-actions",children:[C&&(0,ed.jsx)(e,{position:{latitude:0,longitude:0,placeName:""},...C,buttonVariant:"outline",fullScreenHandler:()=>{if(document.fullscreenElement)document.exitFullscreen&&document.exitFullscreen().catch(e=>{console.warn("[HiddenChatLayout] Error exiting fullscreen:",e)}),P();else{let e=x.current;e&&(R.current={left:e.style.left,right:e.style.right,width:e.style.width,maxWidth:e.style.maxWidth,backgroundColor:e.style.backgroundColor},e.style.left="0",e.style.right="0",e.style.width="100%",e.style.maxWidth="none",e.style.backgroundColor="",e.classList.add("memori-sidebar-fullscreen"),Jy(e,e=>{console.warn("[HiddenChatLayout] Error enabling fullscreen:",e)})),_(!0)}}}),(0,ed.jsx)("button",{type:"button",className:"memori-website_assistant--close-button memori-hidden-chat-layout--header-close",onClick:O,"aria-label":g("collapse")||"Close",title:g("collapse")||"Close",children:(0,ed.jsx)(HY,{className:"memori-icon-close","aria-hidden":!0})})]})]})}),(0,ed.jsxs)("div",{className:"memori-chat-layout--body",children:[a&&o&&n&&r?(0,ed.jsx)(n,{...r}):(!s||M)&&i?(0,ed.jsxs)("div",{className:"memori-chat-layout--start-shell",children:[(0,ed.jsx)("div",{className:"memori-chat-layout--start-panel-wrap",children:(0,ed.jsx)(l,{...i})}),n&&r&&!1!==r.showInputs&&(0,ed.jsx)("div",{className:"memori-chat-layout--prechat-inputs",children:(0,ed.jsx)(Vt,{userMessage:r.userMessage,onChangeUserMessage:r.onChangeUserMessage,dialogState:r.dialogState,instruct:r.instruct,authToken:r.authToken,sendMessage:r.sendMessage,isTyping:r.memoriTyping,microphoneMode:r.microphoneMode,sendOnEnter:r.sendOnEnter,setSendOnEnter:r.setSendOnEnter,client:r.client,sessionID:r.sessionID,showUpload:r.showUpload,attachmentsMenuOpen:r.attachmentsMenuOpen,setAttachmentsMenuOpen:r.setAttachmentsMenuOpen,onTextareaFocus:()=>{var e;null==(e=r.stopListening)||e.call(r)},onTextareaBlur:()=>{},onTextareaExpanded:()=>{},startListening:r.startListening,stopListening:r.stopListening,audioStream:r.audioStream,transcribing:r.transcribing,stopAudio:r.stopAudio,listening:r.listening,isPlayingAudio:r.isPlayingAudio,showMicrophone:r.showMicrophone,memoriID:null==(d=r.memori)?void 0:d.memoriID,maxTextareaCharacters:r.maxTextareaCharacters,maxDocumentsPerMessage:kY,maxDocumentContentLength:3e5,pasteAsCardLineThreshold:100,pasteAsCardCharThreshold:4200,showAiGeneratedNote:!1})})]}):(0,ed.jsx)("div",{className:"memori-loading",children:(0,ed.jsx)(bG,{spinning:!0})}),(0,ed.jsx)("div",{id:"extension"})]})]})})]}),E&&(0,ed.jsx)(Gs,{})]})},ep=eu("85Hg2"),JS=({Header:e,headerProps:t,Avatar:n,avatarProps:r,Chat:i,chatProps:a,StartPanel:o,startPanelProps:s,integrationStyle:l,integrationBackground:u,sessionId:c,hasUserActivatedSpeak:d,loading:h=!1,poweredBy:p})=>{var m,f,g,v,y,b,_,x;let{t:w}=tE(),{state:S}=e7();S.currentArtifact;let E=S.isDrawerOpen&&!S.isChatLogPanelPresentation,[A,T]=(0,ep.useState)(!1),[I,C]=(0,ep.useState)(!1),[M,N]=(0,ep.useState)(!1),[R,O]=(0,ep.useState)(720),[P,k]=(0,ep.useState)(!1),D=(0,ep.useRef)(null);(0,ep.useEffect)(()=>{let e=window.matchMedia("(max-width: 768px)"),t=window.matchMedia("(max-width: 1199px)"),n=()=>{T(e.matches),C(t.matches)};return n(),e.addEventListener("change",n),t.addEventListener("change",n),()=>{e.removeEventListener("change",n),t.removeEventListener("change",n)}},[]);let B=null==t?void 0:t.memori;null==t||t.tenant,null==t||t.baseUrl;let F=(null==t?void 0:t.loginToken)&&(null==(m=null==t?void 0:t.user)?void 0:m.userID)?t.user:void 0,U=[null==F?void 0:F.name,null==F?void 0:F.surname].filter(Boolean).join(" ").trim()||(null==F?void 0:F.userName)||(null==F?void 0:F.eMail)||(null==B?void 0:B.name)||"User",j=U.charAt(0).toUpperCase(),z=!!(c&&d),H=(0,ep.useMemo)(()=>(null==a?void 0:a.isPlayingAudio)?{key:"speaking",label:w("widget.agentStatusSpeaking",{defaultValue:"sta parlando"})}:(null==a?void 0:a.memoriTyping)?{key:"processing",label:w("widget.agentStatusProcessing",{defaultValue:"in elaborazione"})}:(null==a?void 0:a.listening)?{key:"listening",label:w("widget.agentStatusListening",{defaultValue:"in ascolto"})}:null,[null==a?void 0:a.isPlayingAudio,null==a?void 0:a.memoriTyping,null==a?void 0:a.listening,w]),G=(0,ep.useCallback)(()=>{if(function(){if("u"<typeof document)return!1;if(!0===document.fullscreenEnabled)return!0;let e=document.querySelector('meta[name="memori-fullscreen-enabled"], meta[name="fullscreen-enabled"]');return(null==e?void 0:e.getAttribute("content"))==="true"}()){if(!document.fullscreenElement)return void document.documentElement.requestFullscreen().catch(()=>{});document.exitFullscreen().catch(()=>{})}},[]),V=(0,ep.useCallback)(e=>{var t;return Go(e,(null==(t=D.current)?void 0:t.getBoundingClientRect().width)||window.innerWidth,I)},[I]);(0,ep.useEffect)(()=>{E&&O(e=>V(e))},[E,I,V]);let W=(0,ep.useCallback)(e=>{e.preventDefault(),e.currentTarget.setPointerCapture(e.pointerId),k(!0)},[]),q=(0,ep.useCallback)(e=>{if(!P)return;let t=D.current;t&&O(V(t.getBoundingClientRect().right-e.clientX))},[V,P]),$=(0,ep.useCallback)(()=>{k(!1)},[]),J=(0,ep.useCallback)(e=>{let t=e.shiftKey?40:16;"ArrowLeft"===e.key?(e.preventDefault(),O(e=>V(e+t))):"ArrowRight"===e.key?(e.preventDefault(),O(e=>V(e-t))):"Home"===e.key?(e.preventDefault(),O(e=>V(e+200))):"End"===e.key&&(e.preventDefault(),O(e=>V(e-200)))},[V]),K=(0,ep.useMemo)(()=>{if(t)return A?{...t,showReload:!1,showClear:!1,showSettings:!1,showShare:!1,showLogin:!1,showFullscreen:!1,showMessageConsumption:!1,memori:{...t.memori,needsPosition:!1,enableDeepThought:!1},showChatHistory:!1}:t},[t,A]),Y=(0,ep.useMemo)(()=>{var e,n;if(!t)return[];let r=A&&!!t.loginToken&&!1!==t.showChatHistory,i=!A&&!1!==t.showFullscreen,a=!1!==t.showShare,o=!!(null==(e=t.memori)?void 0:e.needsPosition);return[...r?[{key:"chatHistory",icon:(0,ed.jsx)(q6,{size:18}),title:w("widget.headerHistory")||w("write_and_speak.chatHistory")||"Chat history",onClick:()=>{t.setShowChatHistoryDrawer(!0),N(!1)}}]:[],...i?[{key:"fullscreen",icon:(0,ed.jsx)(Jo,{size:18}),title:w("fullscreenEnter")||"Full screen",subtitle:w("widget.expandToImmersive")||"Expand to immersive view",onClick:()=>{G(),N(!1)}}]:[],...a?[{key:"share",icon:(0,ed.jsx)($s,{size:18}),title:w("widget.share")||"Share chat",subtitle:w("widget.mobileSession.copyLinkOrDownload")||"Copy link or download",view:"share"}]:[],...o?[{key:"location",icon:(0,ed.jsx)(Vy,{size:18}),title:w("widget.mobileSession.locationTracking")||"Location tracking",subtitle:(null==(n=t.position)?void 0:n.placeName)||w("widget.mobileSession.currentlyOff")||"Currently off",view:"location",trailing:(0,ed.jsx)("span",{className:"memori-mobile-session-panel--chevron",children:">"})}]:[]]},[t,A,z,w,G]);return(0,ed.jsxs)(ed.Fragment,{children:[l,u,(0,ed.jsxs)(bG,{spinning:h,children:[e&&t&&K&&(0,ed.jsx)("div",{className:"memori-fullpage-top-header",children:(0,ed.jsx)("div",{className:"memori-chat-layout--header",children:(0,ed.jsx)("div",{className:"memori-fullpage-header-row",children:(0,ed.jsx)(e,{...K,layout:"FULLPAGE",buttonVariant:"outline",extraActions:A?(0,ed.jsx)(Gi,{className:"memori-chat-layout--overflow-trigger",active:M,"aria-label":w("widget.moreActions")||"More actions",icon:(0,ed.jsx)(HX,{}),onClick:()=>N(e=>!e)}):void 0})})})}),t&&(0,ed.jsx)(Jh,{open:M,presentation:"popover",onClose:()=>N(!1),title:w("widget.mobileSession.session")||"Session",loginToken:t.loginToken,user:t.user,apiClient:t.apiClient,userName:U,userEmail:null==F?void 0:F.eMail,userInitial:j,avatarURL:null==F?void 0:F.avatarURL,birthDate:null==F?void 0:F.birthDate,actions:Y,knownFactsPageTitle:w("knownFacts.title")||"Known facts",sharePageTitle:w("widget.share")||"Share",locationPageTitle:w("widget.mobileSession.locationTracking")||"Location tracking",backLabel:w("back")||"Back",locationStatusLabel:w("widget.mobileSession.locationStatus")||"Status",locationPlace:null==(f=t.position)?void 0:f.placeName,locationUnknownLabel:w("write_and_speak.unknownPosition")||"Unknown position",locationEnableLabel:w("widget.shareLocation")||"Share location",locationDisableLabel:w("widget.mobileSession.disableLocationSharing")||"Disable location sharing",knownFactsDescription:w("knownFacts.description",{memoriName:(null==B?void 0:B.name)||""})||"",knownFactsCtaLabel:w("widget.mobileSession.openKnownFacts")||"Open full known facts",knownFactsCountLabel:w("widget.mobileSession.knownFactsMessages",{count:(null==(g=t.history)?void 0:g.length)||0})||"",shareContent:(0,ed.jsx)($S,{tenant:null==t?void 0:t.tenant,memori:null==t?void 0:t.memori,sessionID:null==t?void 0:t.sessionID,title:null==(v=null==t?void 0:t.memori)?void 0:v.name,baseUrl:null==t?void 0:t.baseUrl,align:"left",history:null==t?void 0:t.history,renderMode:"inline"}),knownFactsDisabled:!z,showSessionInfo:z,showKnownFacts:!!(null==(y=t.memori)?void 0:y.enableDeepThought)&&!!t.loginToken&&!!(null==(b=t.user)?void 0:b.pAndCUAccepted),showMessageConsumption:!!t.showMessageConsumption,history:null!=(_=t.history)?_:[],isLoggedIn:!!F,showLogin:!!t.showLogin,loginLabel:w("login.login")||"Log in",onLogin:()=>{t.setShowLoginDrawer(!0),N(!1)},onKnownFactsOpen:()=>{z&&(t.setShowKnownFactsDrawer(!0),N(!1))},onLocationEnable:()=>{if(t){if(!navigator.geolocation)return void t.setPositionPopoverOpen(!0);navigator.geolocation.getCurrentPosition(e=>{let n=e.coords.latitude,r=e.coords.longitude;t.setVenue({latitude:n,longitude:r,placeName:`${n.toFixed(5)}, ${r.toFixed(5)}`,uncertainty:e.coords.accuracy/1e3})},()=>{t.setPositionPopoverOpen(!0)},{enableHighAccuracy:!0,timeout:15e3,maximumAge:0})}},onLocationDisable:()=>{null==t||t.setVenue({latitude:0,longitude:0,placeName:"",uncertainty:0})},venue:t.position,setVenue:t.setVenue,logoutLabel:w("login.logout")||"Log out",onLogout:()=>{(()=>{if(t){if(F&&t.onLogout)return t.onLogout();t.setShowLoginDrawer(!0)}})(),N(!1)}}),(0,ed.jsxs)("div",{ref:D,className:`memori-fullpage-content-row${E&&I?" memori-fullpage-content-row--artifact-overlay":""}${P?" memori-fullpage-content-row--resizing":""}`,style:E?{"--memori-artifact-column-width":`${R}px`}:void 0,children:[(0,ed.jsxs)("div",{className:"memori--grid",children:[(0,ed.jsxs)("div",{className:"memori--grid-column memori--grid-column-left",hidden:E,children:[z&&H&&(0,ed.jsxs)("div",{className:"memori-fullpage-agent-status",role:"status","aria-live":"polite",children:[(0,ed.jsx)("span",{className:`memori-fullpage-agent-status--dot memori-fullpage-agent-status--dot-${H.key}`,"aria-hidden":"true"}),(0,ed.jsx)("span",{className:"memori-fullpage-agent-status--label",children:H.label})]}),n&&r&&(0,ed.jsx)(n,{chatProps:a,isZoomed:!0,...r}),(0,ed.jsx)("div",{id:"extension"})]}),(0,ed.jsx)("div",{className:"memori-chat-layout--main",children:(0,ed.jsx)("div",{className:S.isFullscreen?"memori-chat-layout-controls-hide":"memori-chat-layout--controls",children:c&&d&&i&&a?(0,ed.jsx)(i,{...a,footerBrand:p,showAiGeneratedNote:!0}):s?(0,ed.jsx)("div",{className:"memori-conversation-column",children:(0,ed.jsx)(o,{...s,footerBrand:p})}):null})})]}),(0,ed.jsx)("div",{className:`memori--grid-column-artifact${E?" memori--grid-column-artifact--open":""}`,children:E&&(0,ed.jsxs)(ed.Fragment,{children:[!A&&(0,ed.jsx)("div",{className:"memori-artifact-resize-handle",role:"separator","aria-orientation":"vertical","aria-label":w("artifact.resizeHandle")||"Resize artifact panel","aria-valuemin":360,"aria-valuemax":Math.round((null==(x=D.current)?void 0:x.getBoundingClientRect().width)||0)||void 0,"aria-valuenow":Math.round(R),tabIndex:0,onPointerDown:W,onPointerMove:q,onPointerUp:$,onPointerCancel:$,onKeyDown:J}),(0,ed.jsx)(Gs,{isLayoutColumn:!0})]})})]})]})]})};let JE={IT:{MALE:"it-IT-DiegoNeural",FEMALE:"it-IT-ElsaNeural"},DE:{MALE:"de-DE-ConradNeural",FEMALE:"de-DE-KatjaNeural"},EN:{MALE:"en-GB-RyanNeural",FEMALE:"en-GB-SoniaNeural"},ES:{MALE:"es-ES-AlvaroNeural",FEMALE:"es-ES-ElviraNeural"},FR:{MALE:"fr-FR-HenriNeural",FEMALE:"fr-FR-DeniseNeural"},PT:{MALE:"pt-PT-DuarteNeural",FEMALE:"pt-PT-RaquelNeural"},UK:{MALE:"uk-UA-OstapNeural",FEMALE:"uk-UA-PolinaNeural"},RU:{MALE:"ru-RU-DmitryNeural",FEMALE:"ru-RU-SvetlanaNeural"},PL:{MALE:"pl-PL-MarekNeural",FEMALE:"pl-PL-AgnieszkaNeural"},FI:{MALE:"fi-FI-HarriNeural",FEMALE:"fi-FI-SelmaNeural"},EL:{MALE:"el-GR-NestorasNeural",FEMALE:"el-GR-AthinaNeural"},AR:{MALE:"ar-SA-HamedNeural",FEMALE:"ar-SA-ZariyahNeural"},ZH:{MALE:"zh-CN-YunxiNeural",FEMALE:"zh-CN-XiaoxiaoNeural"},JA:{MALE:"ja-JP-KeitaNeural",FEMALE:"ja-JP-NanamiNeural"}},JA={MALE:"en-US-GuyNeural",FEMALE:"en-US-JennyNeural"},JT={DEFAULT:{MALE:"onyx",FEMALE:"nova",NEUTRAL:"alloy"},IT:{MALE:"echo",FEMALE:"nova"},ES:{MALE:"echo",FEMALE:"shimmer"},FR:{MALE:"echo",FEMALE:"fable"},PT:{MALE:"onyx",FEMALE:"shimmer"},DE:{MALE:"onyx",FEMALE:"fable"},EN:{MALE:"echo",FEMALE:"nova"},ZH:{MALE:"echo",FEMALE:"shimmer"},JA:{MALE:"echo",FEMALE:"nova"},RU:{MALE:"onyx",FEMALE:"fable"}};JA.FEMALE;function JI({text:e,preview:t=!1,...n}){return!!(e&&e.trim()&&!t&&!function({defaultEnableAudio:e,defaultSpeakerActive:t,autoStart:n,speakerMuted:r,storedMute:i}){return!e||!!r||!0===i||!1!==i&&(!e||!t||n)}(n))}let JC=async({operation:e="session_creation",baseUrl:t,userID:n,userName:r,tenant:i,characters:a})=>{if(!n&&!r)throw Error("Either userID or userName must be provided");if("import_document"===e&&null==a)throw Error("characters must be provided for import_document");let o=await fetch(`${t}/api/verify-tokens`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({operation:e,userID:n,userName:r,tenant:i,..."import_document"===e?{characters:a}:{}})});if(!o.ok)throw Error("Failed to fetch credits");return o.json()};var ep=eu("85Hg2");class JM extends Error{constructor(e,t,n){super(e),this.name="SpeechRequestError",this.status=t,this.code=n}}function JN(e){let t=e.sessionIdRef?e.sessionIdRef.current:e.sessionId,n=null==t?void 0:t.trim();if(!n)throw new JM("Missing required parameter: sessionId",401,"missing_session");return n}function JR(e,t,n){let r,i=t?t.trim().toLowerCase().replace(/^https?:\/\//,"").split("/")[0].split(":")[0]:"";if(!i)return;let a=null!=n?n:"u">typeof window?window.location.href:"http://localhost",o="";try{o=new URL(e,a).hostname.toLowerCase()}catch(e){return i}return!(r=o)||"localhost"===r||"127.0.0.1"===r||r.endsWith(".localhost")||i===o?i:void 0}async function JO(e){let t=await e.json().catch(()=>({})),n="string"==typeof t.error&&t.error.length>0?t.error:`API error: ${e.status}`,r="string"==typeof t.code?t.code:void 0;return new JM(n,e.status,r)}let JP={missing_session:"errors.speechMissingSession",invalid_session:"errors.speechInvalidSession",tenant_mismatch:"errors.speechTenantMismatch",rate_limited:"errors.speechRateLimited"};var ep=eu("85Hg2");let Jk=140,JL=e=>k7(Hr(e)).replace(/\s+/g," ").trim(),JD=e=>{let t=new Date(e);return t.setHours(0,0,0,0),t},JB=e=>{let t=null;for(let n of e){let e=Jt(n.timestamp);e&&(!t||e.getTime()>t.getTime())&&(t=e)}return t},JF=(e,t=new Date)=>{let n,r;return e.getTime()>=(r=(n=JD(t)).getDay(),n.setDate(n.getDate()-(r+6)%7),n).getTime()?{type:"thisWeek"}:{type:"month",year:e.getFullYear(),month:e.getMonth()}};var ep=eu("85Hg2");let JU={memoriID:"chat-resume-drawer",name:"AI",culture:"it-IT",coverURL:"",avatarURL:"",enableBoardOfExperts:!1},Jj=()=>{};var Jz=({isOpen:e,onClose:t,embedded:n=!1,session:r,isLoading:i=!1,showFunctionCache:a=!1,showMessageConsumption:o=!1,memori:s=JU})=>{let l=(0,ep.useMemo)(()=>r.messages.map(e=>{let t=e.attachment?`<document_attachment filename="${e.attachment.name.replaceAll('"',"&quot;")}" type="${e.attachment.type.replaceAll('"',"&quot;")}"></document_attachment>`:"",n="assistant"===e.role&&"interrupted"===e.status?"Risposta interrotta - sessione in pausa":e.content;return{fromUser:"user"===e.role,text:`${n}${t}`,timestamp:e.timestamp,media:e.media||[]}}),[r.messages]),u=(0,ed.jsxs)("div",{className:"memori-chat-resume-drawer--thread",children:[i&&(0,ed.jsx)("div",{className:"memori-chat-resume-drawer--skeletons",children:[0,1,2].map(e=>(0,ed.jsx)("div",{className:"memori-chat-resume-drawer--skeleton-bubble"},e))}),!i&&(0,ed.jsx)("div",{className:"memori-chat-resume-drawer--embedded-chat",children:(0,ed.jsx)(Vg,{memori:s,sessionID:"chat-resume-drawer",history:l,pushMessage:Jj,simulateUserPrompt:Jj,setSendOnEnter:Jj,setAttachmentsMenuOpen:Jj,onChangeUserMessage:Jj,sendMessage:Jj,setEnableFocusChatInput:Jj,stopAudio:Jj,startListening:Jj,stopListening:Jj,showInputs:!1,showAIicon:!0,showCopyButton:!0,isHistoryView:!0,isChatlogPanel:!0,showFunctionCache:a,showMessageConsumption:o})})]});return n?e?(0,ed.jsx)("div",{className:"memori-chat-resume-drawer--embedded-shell",children:u}):null:(0,ed.jsx)(xm,{open:e,onClose:t,className:"memori-chat-resume-drawer",anchor:"right",size:"md",showCloseButton:!1,title:k7(r.title),children:u})};let JH=e=>{let t=e.getFullYear(),n=String(e.getMonth()+1).padStart(2,"0"),r=String(e.getDate()).padStart(2,"0"),i=String(e.getHours()).padStart(2,"0"),a=String(e.getMinutes()).padStart(2,"0"),o=String(e.getSeconds()).padStart(2,"0"),s=String(e.getMilliseconds()).padStart(3,"0");return`${t}${n}${r}${i}${a}${o}${s}`},JG=e=>{var t,n,r,i;return!((null==(t=e.properties)?void 0:t.functionSignature)||(null==(n=e.properties)?void 0:n.functionCache))&&!(null!=(i=null==(r=e.mimeType)?void 0:r.startsWith("image/"))&&i)},JV=async(e,t,n,r)=>{try{return await Promise.all(e.map(async e=>({...e,lines:await Promise.all(e.lines.map(async e=>{if(!e.text)return e;try{let i=await GC(e.text,n,t,r);return{...e,originalText:e.text,text:i.text}}catch(t){return console.error("Error translating line:",t),e}}))})))}catch(t){return console.error("Error translating chat logs:",t),e}},JW=e=>(({title:e,lines:t})=>{let n=e?JL(e):"";if(n)return n;let r=t.find(e=>e.inbound&&JL(e.text||""));return(null==r?void 0:r.text)?((e,t=Jk)=>{if(e.length<=t)return e;let n=e.slice(0,t).trimEnd(),r=n.lastIndexOf(" "),i=r>.7*t?n.slice(0,r):n;return`${i}...`})(JL(r.text)):""})({title:e.title,lines:e.lines});var Jq=({open:e,onClose:t,apiClient:n,sessionId:r,memori:i,resumeSession:a,baseUrl:o,language:s,userLang:l,isMultilanguageEnabled:u=!1,showFunctionCache:c=!1,showMessageConsumption:d=!1,loginToken:h})=>{let{t:p,i18n:m}=tE(),{getUserChatLogsByTokenPaged:f}=n.chatLogs,[g,v]=(0,ep.useState)([]),[y,_]=(0,ep.useState)(null),[x,w]=(0,ep.useState)(""),S=k0(x,300),[E,A]=(0,ep.useState)(!1),[T,I]=(0,ep.useState)("all"),[C,M]=(0,ep.useState)(3),[N,R]=(0,ep.useState)(1),[O,P]=(0,ep.useState)(!1),[k,D]=(0,ep.useState)(!1),[B,F]=(0,ep.useState)(null),[U,j]=(0,ep.useState)(0),z=(0,ep.useMemo)(()=>{let e=0;return"all"!==T&&(e+=1),3!==C&&(e+=1),e},[T,C]),H=(0,ep.useCallback)(async({from:e=0,append:t=!1}={})=>{var n,r;if(!h)return void F(p("errorFetchingSession")||"Login token required to fetch chat history");t?D(!0):P(!0),F(null);try{let a="all"===T?void 0:(e=>{let t=new Date;if("today"===e)return{dateFrom:JH(new Date(t.getFullYear(),t.getMonth(),t.getDate()-1)),dateTo:JH(t)};if("yesterday"===e){let e=new Date(t.getFullYear(),t.getMonth(),t.getDate()-1);return{dateFrom:JH(new Date(e.getFullYear(),e.getMonth(),e.getDate()-2)),dateTo:JH(e)}}return"last_7_days"===e?{dateFrom:JH(new Date(t.getFullYear(),t.getMonth(),t.getDate()-7)),dateTo:JH(t)}:{dateFrom:JH(new Date(t.getFullYear(),t.getMonth(),t.getDate()-30)),dateTo:JH(t)}})(T),c=await f({loginToken:h,memoriID:i.engineMemoriID,from:e,howMany:8,filter:S,dateFrom:null==a?void 0:a.dateFrom,dateTo:null==a?void 0:a.dateTo,minimumMessagesPerChat:0===C?N:C}),d=c.chatLogs||[];s.toUpperCase()!==l.toUpperCase()&&u&&(d=await JV(d,s,l,o));let p=null!=(r=null!=(n=c.count)?n:c.totalItems)?r:d.length;j(p),v(e=>t?[...e,...d]:d)}catch(e){F(p("errorFetchingSession")||"Error loading chat history"),console.error("Error fetching chat logs:",e)}finally{P(!1),D(!1)}},[h,i.engineMemoriID,S,T,C,N,s,l,u,o,f]);(0,ep.useEffect)(()=>{e||(_(null),w(""),A(!1),I("all"),M(3),R(1))},[e]),(0,ep.useEffect)(()=>{e&&H({from:0})},[e,H]);let G=e=>{var t,n;let r,a,o;t=`${p("write_and_speak.conversationStartedLabel")} ${new Intl.DateTimeFormat(m.language,{dateStyle:"short",timeStyle:"short"}).format(new Date)}
1069
1069
 
1070
1070
  `.concat(e.lines.map(e=>`${e.inbound?"YOU":i.name}: ${Hr(k7(e.text||""))}`).join("\n")),n=`${i.name.replace(/\W+/g,"-")}-chat-${e.chatLogID.substring(0,4)}.txt`,r=new Blob([t],{type:"text/plain"}),a=URL.createObjectURL(r),(o=document.createElement("a")).setAttribute("href",a),o.setAttribute("download",n),o.style.display="none",document.body.appendChild(o),o.click(),document.body.removeChild(o),URL.revokeObjectURL(a)},V=()=>{y&&(a(y),t())},W=e=>{let t,n=JB(e.lines);return[n?((e,t,n=new Date)=>{let r=Jt(e);if(!r)return"";let i=new Intl.DateTimeFormat(t,{hour:"2-digit",minute:"2-digit"}).format(r),a=Math.round((JD(r).getTime()-JD(n).getTime())/864e5);if(0===a||-1===a){let e=new Intl.RelativeTimeFormat(t,{numeric:"auto"}).format(a,"day");return`${e?`${e.charAt(0).toUpperCase()}${e.slice(1)}`:e}, ${i}`}let o=new Intl.DateTimeFormat(t,{day:"numeric",month:"short",...r.getFullYear()===n.getFullYear()?{}:{year:"numeric"}}).format(r);return`${o}, ${i}`})(n,m.language):"",(t=e.lines.length,`${t} ${1===t?p("write_and_speak.message")||"message":p("write_and_speak.messages")||"messages"}`)].filter(Boolean).join(" · ")},q=y?JW(y)||`Chat-${y.chatLogID.substring(0,4)}`:"",$=(0,ep.useMemo)(()=>{if(!y)return null;let e=y.lines.some(e=>{var t;return!e.inbound&&!(null==(t=e.text)?void 0:t.trim())});return{title:q,subtitle:W(y),summary:"",messages:y.lines.map((t,n)=>{var r,i;let a,o,s=t.inbound?(t.media||[]).find(JG):void 0;return{id:`${y.chatLogID}-${n}`,role:t.inbound?"user":"assistant",content:t.text||"",timestamp:t.timestamp,media:(t.media||[]).map((e,t)=>({...e,mediumID:e.mediumID||`${y.chatLogID}-${n}-${t}`})),status:t.inbound||(null==(r=t.text)?void 0:r.trim())||!e?"completed":"interrupted",attachment:s?(o=HO(a=s.title||(null==(i=s.url)?void 0:i.split("/").pop())||"Attachment file",s.mimeType),{name:a,type:o,size:"2.4 KB",ext:HB(o,a,s.url)}):void 0}}),quickActions:[]}},[y,q,m.language,p]),J=(0,ep.useMemo)(()=>((e,t,n=new Date)=>{let r=[];for(let i of e){let e=t(i);if(!e)continue;let a=JF(e,n),o=r[r.length-1];o&&("thisWeek"===a.type&&"thisWeek"===o.key.type||"month"===a.type&&"month"===o.key.type&&a.year===o.key.year&&a.month===o.key.month)?o.items.push(i):r.push({key:a,items:[i]})}return r})(g,e=>JB(e.lines)),[g]),K=!O&&!B&&0===U&&!S,Y=!O&&!B&&!K&&0===g.length,X=g.length<U,Z=!!(y&&$),Q=Z||K||O?void 0:(0,ed.jsx)(Hc,{start:(0,ed.jsx)("span",{className:"memori-chat-history-drawer--count",children:p("write_and_speak.shownOfTotal",{shown:g.length,total:U})}),end:X?(0,ed.jsx)(ye,{variant:"outline",loading:k,disabled:k,icon:(0,ed.jsx)(Ls,{"aria-hidden":!0}),iconPosition:"right",onClick:()=>void H({from:g.length,append:!0}),children:p("write_and_speak.loadMore")||p("knownFacts.loadMore")}):void 0}),ee=Z?(0,ed.jsx)(Hc,{children:(0,ed.jsx)(ye,{className:"memori-chat-history-drawer--resume-cta",variant:"primary",onClick:V,children:p("chatResume.resume",{defaultValue:"Resume conversation"})})}):void 0,et=Z?(0,ed.jsxs)("span",{className:"memori-chat-history-drawer--heading",children:[(0,ed.jsx)(ye,{variant:"ghost",shape:"circle",size:"sm",type:"button",className:"memori-chat-history-drawer--heading-button","aria-label":p("write_and_speak.backToConversationList")||"Back to the list",title:p("write_and_speak.backToConversationList")||"Back to the list",icon:(0,ed.jsx)(Jl,{"aria-hidden":!0}),onClick:()=>_(null)}),(0,ed.jsxs)("span",{className:"memori-chat-history-drawer--heading-text",children:[(0,ed.jsx)("span",{className:"memori-chat-history-drawer--heading-title",title:q,children:q}),(0,ed.jsx)("span",{className:"memori-chat-history-drawer--heading-meta",children:null==$?void 0:$.subtitle})]}),(0,ed.jsx)(Gi,{type:"button",className:"memori-chat-history-drawer--heading-button","aria-label":p("write_and_speak.downloadThisConversation")||"Download this conversation",title:p("write_and_speak.downloadThisConversation")||"Download this conversation",icon:(0,ed.jsx)(HQ,{"aria-hidden":!0}),onClick:()=>y&&G(y)})]}):p("write_and_speak.chatHistory")||"Chat history";return(0,ed.jsx)(Hu,{open:e,size:"md",className:(b(tA))("memori-chat-history-drawer",{"memori-chat-history-drawer--detail":Z}),title:et,closeLabel:p("close")||"Close",footer:Z?ee:Q,onClose:t,children:Z&&$?(0,ed.jsx)(Jz,{embedded:!0,isOpen:!0,session:$,memori:i,onResume:V,onClose:()=>_(null),onExportChat:()=>y&&G(y),showFunctionCache:c,showMessageConsumption:d}):(0,ed.jsxs)(ed.Fragment,{children:[(0,ed.jsxs)("div",{className:"memori-chat-history-drawer--toolbar",children:[(0,ed.jsx)("div",{className:"memori-chat-history-drawer--toolbar-row",children:(0,ed.jsxs)("div",{className:"memori-chat-history-drawer--search",children:[(0,ed.jsx)($9,{"aria-hidden":!0,className:"memori-chat-history-drawer--search-icon"}),(0,ed.jsx)("label",{className:"sr-only",htmlFor:"memori-chat-history-search",children:p("write_and_speak.searchInChatHistory")}),(0,ed.jsx)(xI,{id:"memori-chat-history-search",fullWidth:!0,value:x,placeholder:p("write_and_speak.searchInChatHistory")||"",onValueChange:w})]})}),(0,ed.jsx)(ye,{variant:"ghost",type:"button",className:"memori-chat-history-drawer--filters-toggle","aria-expanded":E,icon:(0,ed.jsx)(Ls,{"aria-hidden":!0,className:(b(tA))("memori-chat-history-drawer--filters-chevron",E&&"memori-chat-history-drawer--filters-chevron--open")}),iconPosition:"right",onClick:()=>A(e=>!e),children:(0,ed.jsxs)("span",{className:"memori-chat-history-drawer--filters-toggle-label",children:[p("write_and_speak.filters"),z>0&&(0,ed.jsx)("span",{className:"memori-chat-history-drawer--filters-count","aria-label":String(z),children:z})]})}),E&&(0,ed.jsxs)("div",{className:"memori-chat-history-drawer--filters",children:[(0,ed.jsx)(x1,{className:"memori-chat-history-drawer--filters-select",value:T,displayValue:"all"===T?p("all")||"All":p(T),onChange:e=>{e&&I(e)},options:[{label:p("all")||"All",value:"all"},{label:p("today")||"Today",value:"today"},{label:p("yesterday")||"Yesterday",value:"yesterday"},{label:p("last_7_days")||"Last 7 days",value:"last_7_days"},{label:p("last_30_days")||"Last 30 days",value:"last_30_days"}]}),(0,ed.jsxs)("div",{className:"memori-chat-history-drawer--filters-messages",children:[(0,ed.jsx)(x1,{className:"memori-chat-history-drawer--filters-select",value:String(C),displayValue:0===C?p("chatLogs.customMinimumMessages")||"Customize the number of messages":p("chatLogs.atLeast"+C)||`At least ${C} messages`,onChange:e=>{M(e?Number(e):0)},options:[{value:"1",label:p("chatLogs.anyMessage")||"Any message"},{value:"2",label:p("chatLogs.atLeast2")||"At least 2 messages"},{value:"3",label:p("chatLogs.atLeast3")||"At least 3 messages"},{value:"5",label:p("chatLogs.atLeast5")||"At least 5 messages"},{value:"10",label:p("chatLogs.atLeast10")||"At least 10 messages"},{value:"15",label:p("chatLogs.atLeast15")||"At least 15 messages"},{value:"20",label:p("chatLogs.atLeast20")||"At least 20 messages"},{value:"0",label:p("chatLogs.customMinimumMessages")||"Customize the number of messages"}]}),0===C&&(0,ed.jsx)("input",{type:"number",min:1,value:N,onChange:e=>{R(parseInt(e.target.value,10)||1)},className:"memori-chat-history-drawer--filters-custom","aria-label":p("chatLogs.customMinimumMessages")||"Customize the number of messages"})]})]})]}),O&&(0,ed.jsxs)("div",{className:"memori-chat-history-drawer--loading",children:[(0,ed.jsx)(bG,{spinning:!0,primary:!0}),(0,ed.jsx)("p",{children:p("write_and_speak.loadingChatHistory")||"Loading chat history..."})]}),B&&(0,ed.jsx)("div",{className:"memori-chat-history-drawer--error",role:"alert",children:(0,ed.jsx)("p",{children:B})}),K&&(0,ed.jsx)(Hl,{icon:(0,ed.jsx)(q6,{}),title:p("write_and_speak.noChatHistoryAvailable")||"No chat history available"}),Y&&(0,ed.jsx)(Hl,{icon:(0,ed.jsx)($9,{}),title:p("write_and_speak.noResultsFound",{searchText:S})}),!O&&!B&&J.length>0&&(0,ed.jsx)("div",{className:"memori-chat-history-drawer--groups",children:J.map(e=>(0,ed.jsxs)("section",{className:"memori-chat-history-drawer--group",children:[(0,ed.jsx)("h3",{className:"memori-chat-history-drawer--group-label",children:(e=>{if("thisWeek"===e.type)return p("write_and_speak.thisWeek")||"This week";let t=new Intl.DateTimeFormat(m.language,{month:"long",...e.year===new Date().getFullYear()?{}:{year:"numeric"}}).format(new Date(e.year,e.month,1));return t.charAt(0).toUpperCase()+t.slice(1)})(e.key)}),(0,ed.jsx)("ul",{className:"memori-chat-history-drawer--list","aria-label":p("write_and_speak.chatHistory")||"Chat history",children:e.items.map(e=>{let t=JW(e)||`Chat-${e.chatLogID.substring(0,4)}`,n=e.sessionID===r,i=W(e),a=JB(e.lines);return(0,ed.jsx)("li",{children:(0,ed.jsxs)("div",{className:(b(tA))("memori-chat-history-drawer--list-item",{"memori-chat-history-drawer--list-item--disabled":n}),children:[(0,ed.jsx)("button",{type:"button",className:"memori-chat-history-drawer--list-item-main","aria-disabled":n||void 0,"aria-label":t,disabled:n,onClick:()=>{n||_(e)},children:(0,ed.jsxs)("span",{className:"memori-chat-history-drawer--list-item--content",children:[(0,ed.jsx)("span",{className:"memori-chat-history-drawer--list-item--title",title:t,children:t}),(0,ed.jsxs)("span",{className:"memori-chat-history-drawer--list-item--meta",children:[a&&(0,ed.jsx)("time",{dateTime:a.toISOString(),children:i}),!a&&i]})]})}),(0,ed.jsx)(HS,{"aria-hidden":!0,className:"memori-chat-history-drawer--list-item-chevron"})]})},e.chatLogID)})})]},"thisWeek"===e.key.type?"thisWeek":`${e.key.year}-${e.key.month}`))})]})})};async function J$(e){return new Promise((t,n)=>{let r=window.AudioContext||window.webkitAudioContext;if(!r)return void n(Error("AudioContext not supported in this browser"));let i=new r,a=new FileReader;a.onload=async()=>{try{let e=a.result;"suspended"===i.state&&await i.resume();let n=await i.decodeAudioData(e),r=function(e){let t=e.length,n=e.sampleRate,r=e.numberOfChannels,i=new ArrayBuffer(44+t*r*2),a=new DataView(i),o=(e,t)=>{for(let n=0;n<t.length;n++)a.setUint8(e+n,t.charCodeAt(n))};o(0,"RIFF"),a.setUint32(4,36+t*r*2,!0),o(8,"WAVE"),o(12,"fmt "),a.setUint32(16,16,!0),a.setUint16(20,1,!0),a.setUint16(22,r,!0),a.setUint32(24,n,!0),a.setUint32(28,n*r*2,!0),a.setUint16(32,2*r,!0),a.setUint16(34,16,!0),o(36,"data"),a.setUint32(40,t*r*2,!0);let s=44;for(let n=0;n<t;n++)for(let t=0;t<r;t++){let r=Math.max(-1,Math.min(1,e.getChannelData(t)[n]));a.setInt16(s,r<0?32768*r:32767*r,!0),s+=2}return new Blob([i],{type:"audio/wav"})}(n);await i.close(),t(r)}catch(e){n(e)}},a.onerror=()=>{n(Error("Failed to read audio file"))},a.readAsArrayBuffer(e)})}var ep=(eu("85Hg2"),eu("85Hg2"));function JJ(e,...t){for(let n of t){let t=e[n];if("string"==typeof t&&t.length>0)return t}}async function JK(e,t,n){if(!t)throw Error("Missing sessionId for NATS config request");let r=await fetch(`${e}/api/nats?sessionId=${encodeURIComponent(t)}`,{signal:n});if(!r.ok){let e=await r.json().catch(()=>({}));switch(r.status){case 400:throw Error(e.error||"NATS config error: missing sessionId");case 404:throw Error(e.error||"NATS config error: invalid session");case 500:throw Error(e.error||"NATS config error: NATS configuration missing");default:throw Error(e.error||`NATS config error: ${r.status}`)}}return function(e){let t=JJ(e,"url"),n=JJ(e,"token");if(!t||!n)throw Error("Invalid response from NATS config service");let r=function(e,...t){for(let n of t){let t=e[n];if("boolean"==typeof t)return t}}(e,"useJetStream","use_jetstream"),i=JJ(e,"stream","streamName","stream_name"),a=JJ(e,"consumer","consumerName","consumer_name","durableName","durable_name"),o=JJ(e,"subject","filterSubject","filter_subject");if(r&&!i)throw Error("Invalid response from NATS config service: JetStream enabled but stream missing");return{url:t,token:n,...i?{stream:i}:{},...a?{consumer:a}:{},...o?{subject:o}:{}}}(await r.json())}"use strict";"use strict";var ep=eu("85Hg2"),JY={};Object.defineProperty(JY,"__esModule",{value:!0}),JY.wsconnect=JY.usernamePasswordAuthenticator=JY.UserAuthenticationExpiredError=JY.tokenAuthenticator=JY.TimeoutError=JY.syncIterator=JY.RequestError=JY.ProtocolError=JY.PermissionViolationError=JY.nuid=JY.Nuid=JY.NoRespondersError=JY.nkeys=JY.nkeyAuthenticator=JY.nanos=JY.MsgHdrsImpl=JY.millis=JY.Metric=JY.Match=JY.jwtAuthenticator=JY.InvalidSubjectError=JY.InvalidOperationError=JY.InvalidArgumentError=JY.headers=JY.hasWsProtocol=JY.errors=JY.Empty=JY.DrainingConnectionError=JY.delay=JY.deferred=JY.deadline=JY.credsAuthenticator=JY.createInbox=JY.ConnectionError=JY.ClosedConnectionError=JY.canonicalMIMEHeaderKey=JY.buildAuthenticator=JY.Bench=JY.backoff=JY.AuthorizationError=void 0;"use strict";var JX={},JZ=JX&&JX.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),JQ=JX&&JX.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||JZ(t,e,n)};Object.defineProperty(JX,"__esModule",{value:!0}),JX.Metric=JX.Bench=JX.writeAll=JX.readAll=JX.MAX_SIZE=JX.DenoBuffer=JX.State=JX.Parser=JX.Kind=JX.describe=JX.QueuedIteratorImpl=JX.usernamePasswordAuthenticator=JX.tokenAuthenticator=JX.nkeyAuthenticator=JX.jwtAuthenticator=JX.credsAuthenticator=JX.RequestOne=JX.parseOptions=JX.hasWsProtocol=JX.defaultOptions=JX.DEFAULT_MAX_RECONNECT_ATTEMPTS=JX.checkUnsupportedOption=JX.checkOptions=JX.buildAuthenticator=JX.DataBuffer=JX.MuxSubscription=JX.Heartbeat=JX.MsgHdrsImpl=JX.headers=JX.canonicalMIMEHeaderKey=JX.timeout=JX.SimpleMutex=JX.render=JX.nanos=JX.millis=JX.extend=JX.delay=JX.deferred=JX.deadline=JX.collect=JX.backoff=JX.ProtocolHandler=JX.INFO=JX.Connect=JX.setTransportFactory=JX.getResolveFn=JX.MsgImpl=JX.nuid=JX.Nuid=JX.NatsConnectionImpl=void 0,JX.UserAuthenticationExpiredError=JX.TimeoutError=JX.RequestError=JX.ProtocolError=JX.PermissionViolationError=JX.NoRespondersError=JX.InvalidSubjectError=JX.InvalidOperationError=JX.InvalidArgumentError=JX.errors=JX.DrainingConnectionError=JX.ConnectionError=JX.ClosedConnectionError=JX.AuthorizationError=JX.wsUrlParseFn=JX.wsconnect=JX.Servers=JX.isIPV4OrHostname=JX.IdleHeartbeatMonitor=JX.Subscriptions=JX.SubscriptionImpl=JX.syncIterator=JX.Match=JX.createInbox=JX.protoLen=JX.extractProtocolMessage=JX.Empty=JX.parseSemVer=JX.Features=JX.Feature=JX.compare=JX.parseIP=JX.isIP=JX.ipV4=JX.TE=JX.TD=void 0;"use strict";var J0={};Object.defineProperty(J0,"__esModule",{value:!0}),J0.NatsConnectionImpl=void 0;"use strict";var J1={};Object.defineProperty(J1,"__esModule",{value:!0}),J1.SimpleMutex=J1.Perf=void 0,J1.extend=function(e,...t){for(let n=0;n<t.length;n++){let r=t[n];Object.keys(r).forEach(function(t){e[t]=r[t]})}return e},J1.render=function(e){return J2.TD.decode(e).replace(/\n/g,"␊").replace(/\r/g,"␍")},J1.timeout=function(e,t=!0){let n,r,i=t?new J3.TimeoutError:null;return Object.assign(new Promise((t,a)=>{n={cancel:()=>{r&&clearTimeout(r)}},r=setTimeout(()=>{null===i?a(new J3.TimeoutError):a(i)},e)}),n)},J1.delay=function(e=0){let t;return Object.assign(new Promise(n=>{let r=setTimeout(()=>{n()},e);t={cancel:()=>{r&&(clearTimeout(r),n())}}}),t)},J1.deadline=Ks,J1.deferred=Kl,J1.debugDeferred=function(){let e={};return Object.assign(new Promise((t,n)=>{e={resolve:e=>{console.trace("resolve",e),t(e)},reject:e=>{console.trace("reject"),n(e)}}}),e)},J1.shuffle=function(e){for(let t=e.length-1;t>0;t--){let n=Math.floor(Math.random()*(t+1));[e[t],e[n]]=[e[n],e[t]]}return e},J1.collect=Ku,J1.jitter=Kc,J1.backoff=function(e=[0,250,250,500,500,3e3,5e3]){Array.isArray(e)||(e=[0,250,250,500,500,3e3,5e3]);let t=e.length-1;return{backoff:n=>Kc(n>t?e[t]:e[n])}},J1.nanos=function(e){return 1e6*e},J1.millis=function(e){return Math.floor(e/1e6)},J1.randomToken=function(){let e=Math.floor(0xc694446f0100*Math.random()),t=e%62;return String.fromCharCode(Kd[t],Kd[t=(e=(e-t)/62)%62],Kd[t=(e=(e-t)/62)%62],Kd[t=(e=(e-t)/62)%62],Kd[t=(e=(e-t)/62)%62],Kd[t=(e=(e-t)/62)%62],Kd[t=(e=(e-t)/62)%62],Kd[e=(e-t)/62])};"use strict";var J2={};Object.defineProperty(J2,"__esModule",{value:!0}),J2.TD=J2.TE=J2.Empty=void 0,J2.encode=function(...e){let t=[];for(let n=0;n<e.length;n++)t.push(J2.TE.encode(e[n]));return 0===t.length?J2.Empty:1===t.length?t[0]:function(...e){let t=0;for(let n=0;n<e.length;n++)t+=e[n].length;let n=new Uint8Array(t),r=0;for(let t=0;t<e.length;t++)n.set(e[t],r),r+=e[t].length;return n}(...t)},J2.decode=function(e){return e&&0!==e.length?J2.TD.decode(e):""},J2.Empty=new Uint8Array(0),J2.TE=new TextEncoder,J2.TD=new TextDecoder;var J3={};Object.defineProperty(J3,"__esModule",{value:!0}),J3.errors=J3.PermissionViolationError=J3.NoRespondersError=J3.TimeoutError=J3.RequestError=J3.ProtocolError=J3.ConnectionError=J3.DrainingConnectionError=J3.ClosedConnectionError=J3.AuthorizationError=J3.UserAuthenticationExpiredError=J3.InvalidOperationError=J3.InvalidArgumentError=J3.InvalidSubjectError=void 0;class J4 extends Error{constructor(e,t){super(`illegal subject: '${e}'`,t),this.name="InvalidSubjectError"}}J3.InvalidSubjectError=J4;class J5 extends Error{constructor(e,t){super(e,t),this.name="InvalidArgumentError"}static format(e,t,n){return Array.isArray(t)&&t.length>1&&(t=t[0]),e=Array.isArray(e)?(e=e.map(e=>`'${e}'`)).join(","):`'${e}'`,new J5(`${e} ${t}`,n)}}J3.InvalidArgumentError=J5;class J6 extends Error{constructor(e,t){super(e,t),this.name="InvalidOperationError"}}J3.InvalidOperationError=J6;class J8 extends Error{constructor(e,t){super(e,t),this.name="UserAuthenticationExpiredError"}static parse(e){return -1!==e.toLowerCase().indexOf("user authentication expired")?new J8(e):null}}J3.UserAuthenticationExpiredError=J8;class J7 extends Error{constructor(e,t){super(e,t),this.name="AuthorizationError"}static parse(e){let t=["authorization violation","account authentication expired","authentication timeout"],n=e.toLowerCase();for(let r=0;r<t.length;r++)if(-1!==n.indexOf(t[r]))return new J7(e);return null}}J3.AuthorizationError=J7;class J9 extends Error{constructor(){super("closed connection"),this.name="ClosedConnectionError"}}J3.ClosedConnectionError=J9;class Ke extends Error{constructor(){super("connection draining"),this.name="DrainingConnectionError"}}J3.DrainingConnectionError=Ke;class Kt extends Error{constructor(e,t){super(e,t),this.name="ConnectionError"}}J3.ConnectionError=Kt;class Kn extends Error{constructor(e,t){super(e,t),this.name="ProtocolError"}}J3.ProtocolError=Kn;class Kr extends Error{constructor(e="",t){super(e,t),this.name="RequestError"}isNoResponders(){return this.cause instanceof Ka}}J3.RequestError=Kr;class Ki extends Error{constructor(e){super("timeout",e),this.name="TimeoutError"}}J3.TimeoutError=Ki;class Ka extends Error{subject;constructor(e,t){super(`no responders: '${e}'`,t),this.subject=e,this.name="NoResponders"}}J3.NoRespondersError=Ka;class Ko extends Error{operation;subject;queue;constructor(e,t,n,r,i){super(e,i),this.name="PermissionViolationError",this.operation=t,this.subject=n,this.queue=r}static parse(e){let t;if(-1===(e?e.toLowerCase():"").indexOf("permissions violation"))return null;let n="publish",r="",i=e.match(/(Publish|Subscription) to "(\S+)"/);if(i&&(n=i[1].toLowerCase(),r=i[2],"subscription"===n)){let n=e.match(/using queue "(\S+)"/);n&&(t=n[1])}return new Ko(e,n,r,t)}}async function Ks(e,t=1e3){let n=Kl(),r=setTimeout(()=>{n.reject(new J3.TimeoutError)},t);try{return await Promise.race([e,n])}finally{clearTimeout(r)}}function Kl(){let e={};return Object.assign(new Promise((t,n)=>{e={resolve:t,reject:n}}),e)}async function Ku(e){let t=[];for await(let n of e)t.push(n);return t}function Kc(e){return 0===e?0:Math.floor(e/2+Math.random()*e)}J3.PermissionViolationError=Ko,J3.errors={AuthorizationError:J7,ClosedConnectionError:J9,ConnectionError:Kt,DrainingConnectionError:Ke,InvalidArgumentError:J5,InvalidOperationError:J6,InvalidSubjectError:J4,NoRespondersError:Ka,PermissionViolationError:Ko,ProtocolError:Kn,RequestError:Kr,TimeoutError:Ki,UserAuthenticationExpiredError:J8},J1.Perf=class{timers;measures;constructor(){this.timers=new Map,this.measures=new Map}mark(e){this.timers.set(e,performance.now())}measure(e,t,n){let r=this.timers.get(t);if(void 0===r)throw Error(`${t} is not defined`);let i=this.timers.get(n);if(void 0===i)throw Error(`${n} is not defined`);this.measures.set(e,i-r)}getEntries(){let e=[];return this.measures.forEach((t,n)=>{e.push({name:n,duration:t})}),e}},J1.SimpleMutex=class{max;current;waiting;constructor(e=1){this.max=e,this.current=0,this.waiting=[]}lock(){if(this.current++,this.current<=this.max)return Promise.resolve();let e=Kl();return this.waiting.push(e),e}unlock(){this.current--;let e=this.waiting.pop();e?.resolve()}};let Kd=new Uint8Array(62);for(let e=0;e<62;e++)Kd[e]="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".charCodeAt(e);"use strict";"use strict";var Kh={};Object.defineProperty(Kh,"__esModule",{value:!0}),Kh.ProtocolHandler=Kh.Subscriptions=Kh.SubscriptionImpl=Kh.Connect=Kh.INFO=void 0;"use strict";var Kp={};Object.defineProperty(Kp,"__esModule",{value:!0}),Kp.LF=Kp.CR=Kp.CRLF=Kp.CR_LF_LEN=Kp.CR_LF=void 0,Kp.setTransportFactory=function(e){c=e},Kp.defaultPort=function(){return void 0!==c&&void 0!==c.defaultPort?c.defaultPort:Km.DEFAULT_PORT},Kp.getUrlParseFn=function(){return void 0!==c&&c.urlParseFn?c.urlParseFn:void 0},Kp.newTransport=function(){if(!c||"function"!=typeof c.factory)throw Error("transport fn is not set");return c.factory()},Kp.getResolveFn=function(){return void 0!==c&&c.dnsResolveFn?c.dnsResolveFn:void 0},Kp.protoLen=KE,Kp.extractProtocolMessage=function(e){let t=KE(e);if(t>0){let n=new Uint8Array(e).slice(0,t);return J2.TD.decode(n)}return""};"use strict";var Km={};Object.defineProperty(Km,"__esModule",{value:!0}),Km.DEFAULT_HOST=Km.DEFAULT_PORT=Km.Match=void 0,Km.syncIterator=function(e){let t=e[Symbol.asyncIterator]();return{async next(){let e=await t.next();return e.done?Promise.resolve(null):Promise.resolve(e.value)}}},Km.createInbox=function(e=""){if("string"!=typeof(e=e||"_INBOX"))throw TypeError("prefix must be a string");return e.split(".").forEach(t=>{if("*"===t||">"===t)throw J3.InvalidArgumentError.format("prefix",`cannot have wildcards ('${e}')`)}),`${e}.${Kf.nuid.next()}`};"use strict";var Kf={};Object.defineProperty(Kf,"__esModule",{value:!0}),Kf.nuid=Kf.Nuid=void 0;"use strict";var Kg={};Object.defineProperty(Kg,"__esModule",{value:!0}),Kg.nuid=Kg.Nuid=void 0;var Kv={};Object.defineProperty(Kv,"__esModule",{value:!0}),Kv.nuid=Kv.NuidImpl=void 0;let Ky=new Uint8Array(62);for(let e=0;e<62;e++)Ky[e]="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".charCodeAt(e);let Kb=BigInt(62)**BigInt(10),K_=Number(Kb/(1n<<32n)),Kx=Number(Kb%(1n<<32n));class Kw{buf;cbuf;seqHi;seqLo;inc;inited;constructor(){this.buf=new Uint8Array(22),this.cbuf=new Uint8Array(12),this.inited=!1}init(){this.inited=!0,this.setPre(),this.initSeqAndInc(),this.fillSeq()}initSeqAndInc(){let e=0;do this.seqHi=Math.floor(Math.random()*(K_+1)),this.seqLo=Math.floor(0x100000000*Math.random());while(e++<8&&this.seqHi===K_&&this.seqLo>=Kx)this.seqHi===K_&&this.seqLo>=Kx&&(this.seqLo=0),this.inc=300*Math.random()+33|0}setPre(){var e=this.cbuf;if(globalThis?.crypto?.getRandomValues)globalThis.crypto.getRandomValues(e);else for(let t=0;t<e.length;t++)e[t]=Math.floor(256*Math.random());for(let e=0;e<12;e++)this.buf[e]=Ky[this.cbuf[e]%62]}fillSeq(){let e=this.seqHi,t=this.seqLo;for(let n=21;n>=12;n--){let r=Math.floor(e/62),i=(e-62*r)*0x100000000+t,a=Math.floor(i/62),o=i-62*a;this.buf[n]=Ky[o],e=r,t=a}}next(){this.inited||this.init(),this.seqLo+=this.inc,this.seqLo>=0x100000000&&(this.seqLo-=0x100000000,this.seqHi+=1),(this.seqHi>K_||this.seqHi===K_&&this.seqLo>=Kx)&&(this.setPre(),this.initSeqAndInc()),this.fillSeq();let e=this.buf;return String.fromCharCode(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15],e[16],e[17],e[18],e[19],e[20],e[21])}reset(){this.init()}}"use strict";Kv.NuidImpl=Kw,Kv.nuid=new Kw,Kg.Nuid=Kv.NuidImpl,Kg.nuid=Kv.nuid,Object.defineProperty(Kf,"Nuid",{enumerable:!0,get:function(){return Kg.Nuid}}),Object.defineProperty(Kf,"nuid",{enumerable:!0,get:function(){return Kg.nuid}}),Km.Match={Exact:"exact",CanonicalMIME:"canonical",IgnoreCase:"insensitive"},Km.DEFAULT_PORT=4222,Km.DEFAULT_HOST="127.0.0.1";var KS={};function KE(e){for(let t=0;t<e.length;t++){let n=t+1;if(e.byteLength>n&&e[t]===Kp.CR&&e[n]===Kp.LF)return n+1}return 0}"use strict";Object.defineProperty(KS,"__esModule",{value:!0}),KS.DataBuffer=void 0,KS.DataBuffer=class{buffers;byteLength;constructor(){this.buffers=[],this.byteLength=0}static concat(...e){let t=0;for(let n=0;n<e.length;n++)t+=e[n].length;let n=new Uint8Array(t),r=0;for(let t=0;t<e.length;t++)n.set(e[t],r),r+=e[t].length;return n}static fromAscii(e){return e||(e=""),J2.TE.encode(e)}static toAscii(e){return J2.TD.decode(e)}reset(){this.buffers.length=0,this.byteLength=0}pack(){if(this.buffers.length>1){let e=new Uint8Array(this.byteLength),t=0;for(let n=0;n<this.buffers.length;n++)e.set(this.buffers[n],t),t+=this.buffers[n].length;this.buffers.length=0,this.buffers.push(e)}}shift(){if(this.buffers.length){let e=this.buffers.shift();if(e)return this.byteLength-=e.length,e}return new Uint8Array(0)}drain(e){if(this.buffers.length){this.pack();let t=this.buffers.pop();if(t){let n=this.byteLength;(void 0===e||e>n)&&(e=n);let r=t.subarray(0,e);return n>e&&this.buffers.push(t.subarray(e)),this.byteLength=n-e,r}}return new Uint8Array(0)}fill(e,...t){e&&(this.buffers.push(e),this.byteLength+=e.length);for(let e=0;e<t.length;e++)t[e]&&t[e].length&&(this.buffers.push(t[e]),this.byteLength+=t[e].length)}peek(){return this.buffers.length?(this.pack(),this.buffers[0]):new Uint8Array(0)}size(){return this.byteLength}length(){return this.buffers.length}},Kp.CR_LF="\r\n",Kp.CR_LF_LEN=Kp.CR_LF.length,Kp.CRLF=KS.DataBuffer.fromAscii(Kp.CR_LF),Kp.CR=new Uint8Array(Kp.CRLF)[0],Kp.LF=new Uint8Array(Kp.CRLF)[1];"use strict";var KA={};Object.defineProperty(KA,"__esModule",{value:!0}),KA.Servers=KA.ServerImpl=void 0,KA.isIPV4OrHostname=KN,KA.hostPort=KR;var KT={};function KI(e,t,n,r){let i=new Uint8Array(16);return[0,0,0,0,0,0,0,0,0,0,255,255].forEach((e,t)=>{i[t]=e}),i[12]=e,i[13]=t,i[14]=n,i[15]=r,i}function KC(e){for(let t=0;t<e.length;t++)switch(e[t]){case".":return KM(e);case":":return function(e){let t=new Uint8Array(16),n=-1;if(e.length>=2&&":"===e[0]&&":"===e[1]&&(n=0,0===(e=e.substring(2)).length))return t;let r=0;for(;r<16;){let{n:i,c:a,ok:o}=function(e){let t=0,n=0;for(n=0;n<e.length;n++){if(48<=e.charCodeAt(n)&&57>=e.charCodeAt(n))t*=16,t+=e.charCodeAt(n)-48;else if(97<=e.charCodeAt(n)&&102>=e.charCodeAt(n))t*=16,t+=e.charCodeAt(n)-97+10;else if(65<=e.charCodeAt(n)&&70>=e.charCodeAt(n))t*=16,t+=e.charCodeAt(n)-65+10;else break;if(t>=0xffffff)return{n:0,c:n,ok:!1}}return 0===n?{n:0,c:n,ok:!1}:{n:t,c:n,ok:!0}}(e);if(!o||i>65535)return;if(a<e.length&&"."===e[a]){if(n<0&&12!=r||r+4>16)return;let i=KM(e);if(void 0===i)return;t[r]=i[12],t[r+1]=i[13],t[r+2]=i[14],t[r+3]=i[15],e="",r+=4;break}if(t[r]=i>>8,t[r+1]=i,r+=2,0===(e=e.substring(a)).length)break;if(":"!==e[0]||1==e.length)return;if(":"===(e=e.substring(1))[0]){if(n>=0)return;if(n=r,0===(e=e.substring(1)).length)break}}if(0===e.length){if(r<16){if(n<0)return;let e=16-r;for(let i=r-1;i>=n;i--)t[i+e]=t[i];for(let r=n+e-1;r>=n;r--)t[r]=0}else if(n>=0)return;return t}}(e)}}function KM(e){let t=new Uint8Array(4);for(let n=0;n<4;n++){if(0===e.length)return;if(n>0){if("."!==e[0])return;e=e.substring(1)}let{n:r,c:i,ok:a}=function(e){let t=0,n=0;for(t=0;t<e.length&&48<=e.charCodeAt(t)&&57>=e.charCodeAt(t);t++)if((n=10*n+(e.charCodeAt(t)-48))>=0xffffff)return{n:0xffffff,c:t,ok:!1};return 0===t?{n:0,c:0,ok:!1}:{n:n,c:t,ok:!0}}(e);if(!a||r>255)return;e=e.substring(i),t[n]=r}return KI(t[0],t[1],t[2],t[3])}function KN(e){return -1===e.indexOf("[")&&-1===e.indexOf("::")&&(-1!==e.indexOf(".")||!!(e.split(":").length<=2))}Object.defineProperty(KT,"__esModule",{value:!0}),KT.ipV4=KI,KT.isIP=function(e){return void 0!==KC(e)},KT.parseIP=KC;function KR(e){(e=e.trim()).match(/^(.*:\/\/)(.*)/m)&&(e=e.replace(/^(.*:\/\/)(.*)/gm,"$2")),KN(e=function(e){let t="::FFFF:",n=e.toUpperCase().indexOf(t);if(-1!==n&&-1!==e.indexOf(".")){let r=e.substring(n+t.length);return(r=r.replace("[","")).replace("]","")}return e}(e))||-1!==e.indexOf("[")||(e=`[${e}]`);let t=KN(e)?e.match(/(:)(\d+)/):e.match(/(]:)(\d+)/),n=t&&3===t.length&&t[1]&&t[2]?parseInt(t[2]):Km.DEFAULT_PORT,r=new URL(`${80===n?"https":"http"}://${e}`);r.port=`${n}`;let i=r.hostname;return"["===i.charAt(0)&&(i=i.substring(1,i.length-1)),{listen:r.host,hostname:i,port:n}}class KO{src;listen;hostname;port;didConnect;reconnects;lastConnect;gossiped;tlsName;resolves;constructor(e,t=!1){this.src=e,this.tlsName="";let n=KR(e);this.listen=n.listen,this.hostname=n.hostname,this.port=n.port,this.didConnect=!1,this.reconnects=0,this.lastConnect=0,this.gossiped=t}toString(){return this.listen}async resolve(e){if(!e.fn||!1===e.resolve)return[this];let t=[];if((0,KT.isIP)(this.hostname))return[this];{let n=await e.fn(this.hostname);for(let r of(e.debug&&console.log(`resolve ${this.hostname} = ${n.join(",")}`),n)){let e=80===this.port?"https":"http",n=new URL(`${e}://${!KN(r)?"["+r+"]":r}`);n.port=`${this.port}`;let i=new KO(n.host,!1);i.tlsName=this.hostname,t.push(i)}}return e.randomize&&(0,J1.shuffle)(t),this.resolves=t,t}}"use strict";KA.ServerImpl=KO,KA.Servers=class e{firstSelect;servers;currentServer;tlsName;randomize;constructor(e={}){this.firstSelect=!0,this.servers=[],this.tlsName="",this.randomize=e.randomize||!1}setServers(e){if(!Array.isArray(e)||0===e.length)throw J3.InvalidArgumentError.format("servers","cannot be empty");let t=(0,Kp.getUrlParseFn)(),n=new Map;for(let e of this.servers)n.set(e.listen,e);let r=[];for(let i of e){let{listen:e}=KR(i=t?t(i):i),a=n.get(e);a?(a.gossiped=!1,r.push(a)):r.push(new KO(i))}this.randomize&&(0,J1.shuffle)(r),this.servers=r,void 0!==this.currentServer&&r.includes(this.currentServer)||(this.currentServer=r[0],this.firstSelect=!0)}clear(){this.servers.length=0}updateTLSName(){let e=this.getCurrentServer();(0,KT.isIP)(e.hostname)||(this.tlsName=e.hostname,this.servers.forEach(e=>{e.gossiped&&(e.tlsName=this.tlsName)}))}getCurrentServer(){return this.currentServer}addServer(e,t=!1){let n=(0,Kp.getUrlParseFn)(),r=new KO(e=n?n(e):e,t);(0,KT.isIP)(r.hostname)&&(r.tlsName=this.tlsName),this.servers.push(r)}selectServer(){if(this.firstSelect)return this.firstSelect=!1,this.currentServer;let e=this.servers.shift();return e&&(this.servers.push(e),this.currentServer=e),e}removeCurrentServer(){this.removeServer(this.currentServer)}removeServer(e){if(e){let t=this.servers.indexOf(e);this.servers.splice(t,1)}}snapshot(){return e.freezeAll(this.servers)}snapshotForHandler(){let t=this.currentServer;if(!t)return this.snapshot();let n=this.servers.indexOf(t);return n<=0?this.snapshot():e.freezeAll([t,...this.servers.slice(0,n),...this.servers.slice(n+1)])}static freezeAll(e){return e.map(e=>Object.freeze({hostname:e.hostname,port:e.port,listen:e.listen,src:e.src,tlsName:e.tlsName,reconnects:e.reconnects,lastConnect:e.lastConnect,gossiped:e.gossiped,didConnect:e.didConnect}))}find(e){return this.servers.find(t=>t.listen===e.listen)}setCurrent(e){this.currentServer=e}length(){return this.servers.length}next(){return this.servers.length?this.servers[0]:void 0}getServers(){return this.servers}update(e,t){let n=[],r=[],i=(0,Kp.getUrlParseFn)(),a=new Map;e.connect_urls&&e.connect_urls.length>0&&e.connect_urls.forEach(e=>{let n=new KO(e=i?i(e,t):e,!0);a.set(e,n)});let o=[];if(this.servers.forEach((e,t)=>{let n=e.listen;e.gossiped&&this.currentServer.listen!==n&&void 0===a.get(n)&&o.push(t),a.delete(n)}),o.reverse(),o.forEach(e=>{let t=this.servers.splice(e,1);r=r.concat(t[0].listen)}),a.forEach((e,t)=>{this.servers.push(e),n.push(t)}),this.randomize&&n.length>0){let e=this.currentServer,t=this.servers.filter(t=>t!==e);(0,J1.shuffle)(t),this.servers=e?[e,...t]:t}return{added:n,deleted:r}}};var KP={};Object.defineProperty(KP,"__esModule",{value:!0}),KP.QueuedIteratorImpl=void 0;class Kk{inflight;processed;received;noIterator;iterClosed;done;signal;yields;filtered;pendingFiltered;ctx;_data;err;time;profile;yielding;didBreak;constructor(){this.inflight=0,this.filtered=0,this.pendingFiltered=0,this.processed=0,this.received=0,this.noIterator=!1,this.done=!1,this.signal=(0,J1.deferred)(),this.yields=[],this.iterClosed=(0,J1.deferred)(),this.time=0,this.yielding=!1,this.didBreak=!1,this.profile=!1}[Symbol.asyncIterator](){return this.iterate()}push(e){if(!this.done){if(this.didBreak){if("function"==typeof e)try{e()}catch(e){}return}"function"==typeof e&&this.pendingFiltered++,this.yields.push(e),this.signal.resolve()}}async *iterate(){if(this.noIterator)throw new J3.InvalidOperationError("iterator cannot be used when a callback is registered");if(this.yielding)throw new J3.InvalidOperationError("iterator is already yielding");this.yielding=!0;try{for(;;){if(0===this.yields.length&&await this.signal,this.err)throw this.err;let e=this.yields;this.inflight=e.length,this.yields=[];for(let t=0;t<e.length;t++){if("function"==typeof e[t]){this.pendingFiltered--;let n=e[t];try{n()}catch(e){throw e}if(this.err)throw this.err;continue}this.processed++,this.inflight--;let n=this.profile?Date.now():0;yield e[t],this.time=this.profile?Date.now()-n:0}if(this.done)break;0===this.yields.length&&(e.length=0,this.yields=e,this.signal=(0,J1.deferred)())}}finally{this.didBreak=!0,this.stop()}}stop(e){this.done||(this.err=e,this.done=!0,this.signal.resolve(),this.iterClosed.resolve(e))}getProcessed(){return this.noIterator?this.received:this.processed}getPending(){return this.yields.length+this.inflight-this.pendingFiltered}getReceived(){return this.received-this.filtered}}"use strict";KP.QueuedIteratorImpl=Kk;"use strict";var KL={};Object.defineProperty(KL,"__esModule",{value:!0}),KL.MuxSubscription=void 0,KL.MuxSubscription=class{baseInbox;reqs;constructor(){this.reqs=new Map}size(){return this.reqs.size}init(e){return this.baseInbox=`${(0,Km.createInbox)(e)}.`,this.baseInbox}add(e){isNaN(e.received)||(e.received=0),this.reqs.set(e.token,e)}get(e){return this.reqs.get(e)}cancel(e){this.reqs.delete(e.token)}getToken(e){let t=e.subject||"";return 0===t.indexOf(this.baseInbox)?t.substring(this.baseInbox.length):null}all(){return Array.from(this.reqs.values())}handleError(e,t){if(e)return this.all().forEach(e=>{e.resolver(t,{})}),!0;if("publish"===t.operation){let e=this.all().find(e=>e.requestSubject===t.subject);if(e)return e.resolver(t,{}),!0}return!1}dispatcher(){return(e,t)=>{let n=this.getToken(t);if(n){let r=this.get(n);r&&(null===e&&(e=t?.data?.length===0&&t.headers?.code===503?new J3.NoRespondersError(r.requestSubject):null),r.resolver(e,t))}}}close(){let e=new J3.RequestError("connection closed");this.reqs.forEach(t=>{t.resolver(e,{})})}};"use strict";var KD={};Object.defineProperty(KD,"__esModule",{value:!0}),KD.Heartbeat=void 0,KD.Heartbeat=class{ph;interval;maxOut;timer;pendings;constructor(e,t,n){this.ph=e,this.interval=t,this.maxOut=n,this.pendings=[]}start(){this.cancel(),this._schedule()}cancel(e){this.timer&&(clearTimeout(this.timer),this.timer=void 0),this._reset(),e&&this.ph.disconnect()}_schedule(){this.timer=setTimeout(()=>{if(this.ph.dispatchStatus({type:"ping",pendingPings:this.pendings.length+1}),this.pendings.length===this.maxOut)return void this.cancel(!0);let e=(0,J1.deferred)();this.ph.flush(e).then(()=>{this._reset()}).catch(()=>{this.cancel()}),this.pendings.push(e),this._schedule()},this.interval)}_reset(){this.pendings=this.pendings.filter(e=>(e.resolve(),!1))}};"use strict";var KB={};Object.defineProperty(KB,"__esModule",{value:!0}),KB.cc=KB.State=KB.Parser=KB.Kind=void 0,KB.describe=function(e){let t,n="";switch(e.kind){case KB.Kind.MSG:t="MSG";break;case KB.Kind.OK:t="OK";break;case KB.Kind.ERR:t="ERR",n=J2.TD.decode(e.data);break;case KB.Kind.PING:t="PING";break;case KB.Kind.PONG:t="PONG";break;case KB.Kind.INFO:t="INFO",n=J2.TD.decode(e.data)}return`${t}: ${n}`};var KF={};Object.defineProperty(KF,"__esModule",{value:!0}),KF.DenoBuffer=KF.MAX_SIZE=KF.AssertionError=void 0,KF.assert=Kj,KF.concat=KH,KF.append=function(e,t){return KH(e,Uint8Array.of(t))},KF.readAll=function(e){let t=new KG;return t.readFrom(e),t.bytes()},KF.writeAll=function(e,t){let n=0;for(;n<t.length;)n+=e.write(t.subarray(n))};class KU extends Error{constructor(e){super(e),this.name="AssertionError"}}function Kj(e,t="Assertion failed."){if(!e)throw new KU(t)}function Kz(e,t,n=0){let r=t.byteLength-n;return e.byteLength>r&&(e=e.subarray(0,r)),t.set(e,n),e.byteLength}function KH(e,t){if(void 0===e&&void 0===t)return new Uint8Array(0);if(void 0===e)return t;if(void 0===t)return e;let n=new Uint8Array(e.length+t.length);return n.set(e,0),n.set(t,e.length),n}KF.AssertionError=KU,KF.MAX_SIZE=0xfffffffe;class KG{_buf;_off;constructor(e){if(this._off=0,null==e){this._buf=new Uint8Array(0);return}this._buf=new Uint8Array(e)}bytes(e={copy:!0}){return!1===e.copy?this._buf.subarray(this._off):this._buf.slice(this._off)}empty(){return this._buf.byteLength<=this._off}get length(){return this._buf.byteLength-this._off}get capacity(){return this._buf.buffer.byteLength}truncate(e){if(0===e)return void this.reset();if(e<0||e>this.length)throw Error("bytes.Buffer: truncation out of range");this._reslice(this._off+e)}reset(){this._reslice(0),this._off=0}_tryGrowByReslice(e){let t=this._buf.byteLength;return e<=this.capacity-t?(this._reslice(t+e),t):-1}_reslice(e){Kj(e<=this._buf.buffer.byteLength),this._buf=new Uint8Array(this._buf.buffer,0,e)}readByte(){let e=new Uint8Array(1);return this.read(e)?e[0]:null}read(e){if(this.empty())return(this.reset(),0===e.byteLength)?0:null;let t=Kz(this._buf.subarray(this._off),e);return this._off+=t,t}writeByte(e){return this.write(Uint8Array.of(e))}writeString(e){return this.write(J2.TE.encode(e))}write(e){let t=this._grow(e.byteLength);return Kz(e,this._buf,t)}_grow(e){let t=this.length;0===t&&0!==this._off&&this.reset();let n=this._tryGrowByReslice(e);if(n>=0)return n;let r=this.capacity;if(e<=Math.floor(r/2)-t)Kz(this._buf.subarray(this._off),this._buf);else if(r+e>KF.MAX_SIZE)throw Error("The buffer cannot be grown beyond the maximum size.");else{let t=new Uint8Array(Math.min(2*r+e,KF.MAX_SIZE));Kz(this._buf.subarray(this._off),t),this._buf=t}return this._off=0,this._reslice(Math.min(t+e,KF.MAX_SIZE)),t}grow(e){if(e<0)throw Error("Buffer._grow: negative count");let t=this._grow(e);this._reslice(t)}readFrom(e){let t=0,n=new Uint8Array(32768);for(;;){let r=this.capacity-this.length<32768,i=r?n:new Uint8Array(this._buf.buffer,this.length),a=e.read(i);if(null===a)return t;r?this.write(i.subarray(0,a)):this._reslice(this.length+a),t+=a}}}function KV(){let e={};return e.sid=-1,e.hdr=-1,e.size=-1,e}"use strict";KF.DenoBuffer=KG,KB.Kind={OK:0,ERR:1,MSG:2,INFO:3,PING:4,PONG:5},KB.Parser=class{dispatcher;state;as;drop;hdr;ma;argBuf;msgBuf;constructor(e){this.dispatcher=e,this.state=KB.State.OP_START,this.as=0,this.drop=0,this.hdr=0}parse(e){let t;for(t=0;t<e.length;t++){let n=e[t];switch(this.state){case KB.State.OP_START:switch(n){case KB.cc.M:case KB.cc.m:this.state=KB.State.OP_M,this.hdr=-1,this.ma=KV();break;case KB.cc.H:case KB.cc.h:this.state=KB.State.OP_H,this.hdr=0,this.ma=KV();break;case KB.cc.P:case KB.cc.p:this.state=KB.State.OP_P;break;case KB.cc.PLUS:this.state=KB.State.OP_PLUS;break;case KB.cc.MINUS:this.state=KB.State.OP_MINUS;break;case KB.cc.I:case KB.cc.i:this.state=KB.State.OP_I;break;default:throw this.fail(e.subarray(t))}break;case KB.State.OP_H:switch(n){case KB.cc.M:case KB.cc.m:this.state=KB.State.OP_M;break;default:throw this.fail(e.subarray(t))}break;case KB.State.OP_M:switch(n){case KB.cc.S:case KB.cc.s:this.state=KB.State.OP_MS;break;default:throw this.fail(e.subarray(t))}break;case KB.State.OP_MS:switch(n){case KB.cc.G:case KB.cc.g:this.state=KB.State.OP_MSG;break;default:throw this.fail(e.subarray(t))}break;case KB.State.OP_MSG:switch(n){case KB.cc.SPACE:case KB.cc.TAB:this.state=KB.State.OP_MSG_SPC;break;default:throw this.fail(e.subarray(t))}break;case KB.State.OP_MSG_SPC:switch(n){case KB.cc.SPACE:case KB.cc.TAB:continue;default:this.state=KB.State.MSG_ARG,this.as=t}break;case KB.State.MSG_ARG:switch(n){case KB.cc.CR:this.drop=1;break;case KB.cc.NL:{let n=this.argBuf?this.argBuf.bytes():e.subarray(this.as,t-this.drop);this.processMsgArgs(n),this.drop=0,this.as=t+1,this.state=KB.State.MSG_PAYLOAD,t=this.as+this.ma.size-1;break}default:this.argBuf&&this.argBuf.writeByte(n)}break;case KB.State.MSG_PAYLOAD:if(this.msgBuf)if(this.msgBuf.length>=this.ma.size){let e=this.msgBuf.bytes({copy:!1});this.dispatcher.push({kind:KB.Kind.MSG,msg:this.ma,data:e}),this.argBuf=void 0,this.msgBuf=void 0,this.state=KB.State.MSG_END}else{let r=this.ma.size-this.msgBuf.length,i=e.length-t;i<r&&(r=i),r>0?(this.msgBuf.write(e.subarray(t,t+r)),t=t+r-1):this.msgBuf.writeByte(n)}else t-this.as>=this.ma.size&&(this.dispatcher.push({kind:KB.Kind.MSG,msg:this.ma,data:e.subarray(this.as,t)}),this.argBuf=void 0,this.msgBuf=void 0,this.state=KB.State.MSG_END);break;case KB.State.MSG_END:if(n!==KB.cc.NL)continue;this.drop=0,this.as=t+1,this.state=KB.State.OP_START;break;case KB.State.OP_PLUS:switch(n){case KB.cc.O:case KB.cc.o:this.state=KB.State.OP_PLUS_O;break;default:throw this.fail(e.subarray(t))}break;case KB.State.OP_PLUS_O:switch(n){case KB.cc.K:case KB.cc.k:this.state=KB.State.OP_PLUS_OK;break;default:throw this.fail(e.subarray(t))}break;case KB.State.OP_PLUS_OK:n===KB.cc.NL&&(this.dispatcher.push({kind:KB.Kind.OK}),this.drop=0,this.state=KB.State.OP_START);break;case KB.State.OP_MINUS:switch(n){case KB.cc.E:case KB.cc.e:this.state=KB.State.OP_MINUS_E;break;default:throw this.fail(e.subarray(t))}break;case KB.State.OP_MINUS_E:switch(n){case KB.cc.R:case KB.cc.r:this.state=KB.State.OP_MINUS_ER;break;default:throw this.fail(e.subarray(t))}break;case KB.State.OP_MINUS_ER:switch(n){case KB.cc.R:case KB.cc.r:this.state=KB.State.OP_MINUS_ERR;break;default:throw this.fail(e.subarray(t))}break;case KB.State.OP_MINUS_ERR:switch(n){case KB.cc.SPACE:case KB.cc.TAB:this.state=KB.State.OP_MINUS_ERR_SPC;break;default:throw this.fail(e.subarray(t))}break;case KB.State.OP_MINUS_ERR_SPC:switch(n){case KB.cc.SPACE:case KB.cc.TAB:continue;default:this.state=KB.State.MINUS_ERR_ARG,this.as=t}break;case KB.State.MINUS_ERR_ARG:switch(n){case KB.cc.CR:this.drop=1;break;case KB.cc.NL:{let n;this.argBuf?(n=this.argBuf.bytes(),this.argBuf=void 0):n=e.subarray(this.as,t-this.drop),this.dispatcher.push({kind:KB.Kind.ERR,data:n}),this.drop=0,this.as=t+1,this.state=KB.State.OP_START;break}default:this.argBuf&&this.argBuf.write(Uint8Array.of(n))}break;case KB.State.OP_P:switch(n){case KB.cc.I:case KB.cc.i:this.state=KB.State.OP_PI;break;case KB.cc.O:case KB.cc.o:this.state=KB.State.OP_PO;break;default:throw this.fail(e.subarray(t))}break;case KB.State.OP_PO:switch(n){case KB.cc.N:case KB.cc.n:this.state=KB.State.OP_PON;break;default:throw this.fail(e.subarray(t))}break;case KB.State.OP_PON:switch(n){case KB.cc.G:case KB.cc.g:this.state=KB.State.OP_PONG;break;default:throw this.fail(e.subarray(t))}break;case KB.State.OP_PONG:n===KB.cc.NL&&(this.dispatcher.push({kind:KB.Kind.PONG}),this.drop=0,this.state=KB.State.OP_START);break;case KB.State.OP_PI:switch(n){case KB.cc.N:case KB.cc.n:this.state=KB.State.OP_PIN;break;default:throw this.fail(e.subarray(t))}break;case KB.State.OP_PIN:switch(n){case KB.cc.G:case KB.cc.g:this.state=KB.State.OP_PING;break;default:throw this.fail(e.subarray(t))}break;case KB.State.OP_PING:n===KB.cc.NL&&(this.dispatcher.push({kind:KB.Kind.PING}),this.drop=0,this.state=KB.State.OP_START);break;case KB.State.OP_I:switch(n){case KB.cc.N:case KB.cc.n:this.state=KB.State.OP_IN;break;default:throw this.fail(e.subarray(t))}break;case KB.State.OP_IN:switch(n){case KB.cc.F:case KB.cc.f:this.state=KB.State.OP_INF;break;default:throw this.fail(e.subarray(t))}break;case KB.State.OP_INF:switch(n){case KB.cc.O:case KB.cc.o:this.state=KB.State.OP_INFO;break;default:throw this.fail(e.subarray(t))}break;case KB.State.OP_INFO:switch(n){case KB.cc.SPACE:case KB.cc.TAB:this.state=KB.State.OP_INFO_SPC;break;default:throw this.fail(e.subarray(t))}break;case KB.State.OP_INFO_SPC:switch(n){case KB.cc.SPACE:case KB.cc.TAB:continue;default:this.state=KB.State.INFO_ARG,this.as=t}break;case KB.State.INFO_ARG:switch(n){case KB.cc.CR:this.drop=1;break;case KB.cc.NL:{let n;this.argBuf?(n=this.argBuf.bytes(),this.argBuf=void 0):n=e.subarray(this.as,t-this.drop),this.dispatcher.push({kind:KB.Kind.INFO,data:n}),this.drop=0,this.as=t+1,this.state=KB.State.OP_START;break}default:this.argBuf&&this.argBuf.writeByte(n)}break;default:throw this.fail(e.subarray(t))}}this.state!==KB.State.MSG_ARG&&this.state!==KB.State.MINUS_ERR_ARG&&this.state!==KB.State.INFO_ARG||this.argBuf||(this.argBuf=new KF.DenoBuffer(e.subarray(this.as,t-this.drop))),this.state!==KB.State.MSG_PAYLOAD||this.msgBuf||(this.argBuf||this.cloneMsgArg(),this.msgBuf=new KF.DenoBuffer(e.subarray(this.as)))}cloneMsgArg(){let e=this.ma.subject.length,t=new Uint8Array(e+(this.ma.reply?this.ma.reply.length:0));t.set(this.ma.subject),this.ma.reply&&t.set(this.ma.reply,e),this.argBuf=new KF.DenoBuffer(t),this.ma.subject=t.subarray(0,e),this.ma.reply&&(this.ma.reply=t.subarray(e))}processMsgArgs(e){if(this.hdr>=0)return this.processHeaderMsgArgs(e);let t=[],n=-1;for(let r=0;r<e.length;r++)switch(e[r]){case KB.cc.SPACE:case KB.cc.TAB:case KB.cc.CR:case KB.cc.NL:n>=0&&(t.push(e.subarray(n,r)),n=-1);break;default:n<0&&(n=r)}switch(n>=0&&t.push(e.subarray(n)),t.length){case 3:this.ma.subject=t[0],this.ma.sid=this.protoParseInt(t[1]),this.ma.reply=void 0,this.ma.size=this.protoParseInt(t[2],0x4000000);break;case 4:this.ma.subject=t[0],this.ma.sid=this.protoParseInt(t[1]),this.ma.reply=t[2],this.ma.size=this.protoParseInt(t[3],0x4000000);break;default:throw this.fail(e,"processMsgArgs Parse Error")}if(this.ma.sid<0)throw this.fail(e,"processMsgArgs Bad or Missing Sid Error");if(this.ma.size<0)throw this.fail(e,"processMsgArgs Bad or Missing Size Error")}fail(e,t=""){return t=t?`${t} [${this.state}]`:`parse error [${this.state}]`,Error(`${t}: ${J2.TD.decode(e)}`)}processHeaderMsgArgs(e){let t=[],n=-1;for(let r=0;r<e.length;r++)switch(e[r]){case KB.cc.SPACE:case KB.cc.TAB:case KB.cc.CR:case KB.cc.NL:n>=0&&(t.push(e.subarray(n,r)),n=-1);break;default:n<0&&(n=r)}switch(n>=0&&t.push(e.subarray(n)),t.length){case 4:this.ma.subject=t[0],this.ma.sid=this.protoParseInt(t[1]),this.ma.reply=void 0,this.ma.hdr=this.protoParseInt(t[2],0x4000000),this.ma.size=this.protoParseInt(t[3],0x4000000);break;case 5:this.ma.subject=t[0],this.ma.sid=this.protoParseInt(t[1]),this.ma.reply=t[2],this.ma.hdr=this.protoParseInt(t[3],0x4000000),this.ma.size=this.protoParseInt(t[4],0x4000000);break;default:throw this.fail(e,"processHeaderMsgArgs Parse Error")}if(this.ma.sid<0)throw this.fail(e,"processHeaderMsgArgs Bad or Missing Sid Error");if(this.ma.hdr<0||this.ma.hdr>this.ma.size)throw this.fail(e,"processHeaderMsgArgs Bad or Missing Header Size Error");if(this.ma.size<0)throw this.fail(e,"processHeaderMsgArgs Bad or Missing Size Error")}protoParseInt(e,t){if(0===e.length||e.length>15)return -1;let n=0;for(let t=0;t<e.length;t++){if(e[t]<48||e[t]>57)return -1;n=10*n+(e[t]-48)}return void 0!==t&&n>t?-1:n}},KB.State={OP_START:0,OP_PLUS:1,OP_PLUS_O:2,OP_PLUS_OK:3,OP_MINUS:4,OP_MINUS_E:5,OP_MINUS_ER:6,OP_MINUS_ERR:7,OP_MINUS_ERR_SPC:8,MINUS_ERR_ARG:9,OP_M:10,OP_MS:11,OP_MSG:12,OP_MSG_SPC:13,MSG_ARG:14,MSG_PAYLOAD:15,MSG_END:16,OP_H:17,OP_P:18,OP_PI:19,OP_PIN:20,OP_PING:21,OP_PO:22,OP_PON:23,OP_PONG:24,OP_I:25,OP_IN:26,OP_INF:27,OP_INFO:28,OP_INFO_SPC:29,INFO_ARG:30},KB.cc={CR:13,E:69,e:101,F:70,f:102,G:71,g:103,H:72,h:104,I:73,i:105,K:75,k:107,M:77,m:109,MINUS:45,N:78,n:110,NL:10,O:79,o:111,P:80,p:112,PLUS:43,R:82,r:114,S:83,s:115,SPACE:32,TAB:9};"use strict";var KW={};Object.defineProperty(KW,"__esModule",{value:!0}),KW.MsgImpl=void 0;var Kq={};function K$(e){let t=!0,n=Array(e.length);for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);if(58===i||i<33||i>126)throw J3.InvalidArgumentError.format("header",`'${e[r]}' is not a valid character in a header name`);t&&97<=i&&i<=122?i-=32:!t&&65<=i&&i<=90&&(i+=32),n[r]=i,t=45==i}return String.fromCharCode(...n)}Object.defineProperty(Kq,"__esModule",{value:!0}),Kq.MsgHdrsImpl=void 0,Kq.canonicalMIMEHeaderKey=K$,Kq.headers=function(e=0,t=""){if(0===e&&""!==t)throw J3.InvalidArgumentError.format("code","is required");if(e>0&&""===t)throw J3.InvalidArgumentError.format("description","is required");return new KK(e,t)};let KJ="NATS/1.0";class KK{_code;headers;_description;constructor(e=0,t=""){this._code=e,this._description=t,this.headers=new Map}[Symbol.iterator](){return this.headers.entries()}size(){return this.headers.size}equals(e){if(e&&this.headers.size===e.headers.size&&this._code===e._code){for(let[t,n]of this.headers){let r=e.values(t);if(n.length!==r.length)return!1;let i=[...n].sort(),a=[...r].sort();for(let e=0;e<i.length;e++)if(i[e]!==a[e])return!1}return!0}return!1}static decode(e){let t=new KK,n=J2.TD.decode(e).split("\r\n"),r=n[0];if(r!==KJ){let e=r.replace(KJ,"").trim();if(e.length>0){t._code=parseInt(e,10),isNaN(t._code)&&(t._code=0);let n=t._code.toString();t._description=(e=e.replace(n,"")).trim()}}return n.length>=1&&n.slice(1).map(e=>{if(e){let n=e.indexOf(":");if(n>-1){let r=e.slice(0,n),i=e.slice(n+1).trim();t.append(r,i)}}}),t}toString(){if(0===this.headers.size&&0===this._code)return"";let e=KJ;for(let[t,n]of(this._code>0&&""!==this._description&&(e+=` ${this._code} ${this._description}`),this.headers))for(let r=0;r<n.length;r++)e=`${e}\r
1071
1071
  ${t}: ${n[r]}`;return`${e}\r
@@ -1098,4 +1098,4 @@ ${s}`),c(t);return}o(null,r),"count"===n.strategy&&0==--l&&c(),"stall"===n.strat
1098
1098
  }`);let r$=`@layer memori.overrides {
1099
1099
  ${rq.join("\n ")}
1100
1100
  }
1101
- `,rJ=(null==tI?void 0:tI.showAIicon)===void 0||(null==tI?void 0:tI.showAIicon),rK=!!(null!=I?I:null==tI?void 0:tI.showUpload),rY=!!(null!=N?N:null==tI?void 0:tI.showReasoning),rX=(eQ=null==tI?void 0:tI.showMessageConsumption,!!(null!=w?w:eQ)),rZ=(null==tI?void 0:tI.showWhyThisAnswer)===void 0||(null==tI?void 0:tI.showWhyThisAnswer),[rQ,r0]=(0,ep.useState)(!1);(0,ep.useEffect)(()=>{(window.innerWidth>=768&&"FULLPAGE"===t2||"FULLPAGE"!==t2)&&r0(!0)},[]),(0,ep.useEffect)(()=>{if(null==tI?void 0:tI.seoTitle){let e=document.createElement("meta");e.setAttribute("property","og:title"),e.setAttribute("content",tI.seoTitle),document.head.append(e)}if(null==tI?void 0:tI.seoDescription){let e=document.createElement("meta");e.setAttribute("property","og:description"),e.setAttribute("content",tI.seoDescription),document.head.append(e)}if(null==tI?void 0:tI.seoUrl){let e=document.createElement("meta");e.setAttribute("property","og:url"),e.setAttribute("content",tI.seoUrl),document.head.append(e)}let t=H||e.avatarURL;if((null==tI?void 0:tI.seoImageShowAvatar)&&t){let e=document.createElement("meta");e.setAttribute("property","og:image"),e.setAttribute("content",t),document.head.append(e)}},[tI,e.avatarURL,H]);let r1=(e,t=0)=>{if(K)return;let{text:n,waitForPrevious:r,hidden:i,typingText:a,useLoaderTextAsMsg:o,hasBatchQueued:s}=e.detail;n&&(r&&!rf&&(nE||tQ.current.size>0)&&t<30?setTimeout(()=>{r2.current(e,t+1)},1e3):(rp(),n$(n,void 0,void 0,void 0,void 0,i,a,o,s)))},r2=(0,ep.useRef)(r1);r2.current=r1,(0,ep.useEffect)(()=>{if(K)return;let e=e=>r2.current(e);return document.addEventListener("MemoriTextEntered",e),()=>{document.removeEventListener("MemoriTextEntered",e)}},[K]);let r3=(0,ep.useCallback)(async(t,n=!1,r,i)=>{var a,o,s,l,u,c,d,h,p,m,f,g,v,y,b,_,x,w,S,E;let A=r?void 0:(null==t?void 0:t.sessionID)||n0,T=r?void 0:(null==t?void 0:t.dialogState)||n4;tL(!0),t7(!1);let I=[],C=qC("birthDate",void 0),M=nY||C||(null==tw?void 0:tw.birthDate);!M&&er&&(G||i)&&(M="1970-01-01T10:24:03.845Z");let N=qC("position",void 0);if(er&&(w=!!e.needsPosition,S=!!(nO||N),w&&!S||(E=!!e.requireLoginToken,E&&!tR)))return void tL(!1);if(!await ia({notify:!0})){tL(!1),tJ(!1);return}if(A||!nK||M)if((A||"PUBLIC"===e.privacyType||e.secretToken||nT||nC)&&(A||!tD))if(!A||n){if(tB(!1),tF.current)return;tF.current=!0;try{let t=await n7({memoriID:e.engineMemoriID,password:k||nT||e.secretToken,tag:null==W?void 0:W.tag,pin:null==W?void 0:W.pin,continueFromChatLogID:null==r?void 0:r.chatLogID,initialContextVars:{LANG:tV,PATHNAME:null==(a=window.location.pathname)?void 0:a.toUpperCase(),ROUTE:(null==(l=null==(s=null==(o=window.location.pathname)?void 0:o.split("/"))?void 0:s.pop())?void 0:l.toUpperCase())||"",...(!r?U:r.lines[r.lines.length-1].contextVars)||{}},initialQuestion:r?void 0:j,birthDate:M,additionalInfo:{...X||{},loginToken:tT(),language:(null!=(d=null!=tV?tV:null==(c=null==(u=e.culture)?void 0:u.split("-"))?void 0:c[0])?d:"IT").toLowerCase(),timeZoneOffset:new Date().getTimezoneOffset().toString()}});if(null==t?void 0:t.dialogState)if(r){let e=r.lines.map((e,t)=>{var n,r;return{text:e.text,media:null==(r=null==(n=e.media)?void 0:n.filter(e=>kV.includes(e.mimeType)))?void 0:r.map(e=>({mediumID:`${t}-${e.mimeType}`,...e})),fromUser:e.inbound,llmUsage:e.llmUsage,timestamp:e.timestamp,emitter:e.emitter}});if(I=null!=e?e:[],tH.toUpperCase()!==tV.toUpperCase()&&tG)try{I=await Promise.all(e.map(async e=>"originalText"in e&&e.originalText?e:{...e,originalText:e.text,text:(await GC(e.text,tV,tH,D)).text}))}catch(e){}nG(I),nJ(t.dialogState,tV,void 0,!0).finally(()=>{ry(!0),tL(!1)})}else nG([]),await rM(t.dialogState,tV),ry(!0),tL(!1);else(null==t?void 0:t.resultCode)===0?(tF.current=!1,await r3(t||void 0)):(tJ(!1),tL(!1))}finally{tF.current=!1}return}else if(G||i){let t=null!=i?i:G,{currentState:n,...r}=await ts(t);if(0!==r.resultCode||!n){let{chatLogs:e}=await tu(t,t);n3(void 0),await r3(void 0,!0,null==e?void 0:e[0]);return}if(nG([]),W&&n.currentTag!==W.tag)try{await rt(e.engineMemoriID,t,"-");let n=await rt(e.engineMemoriID,t,W.tag,W.pin);if(n&&0===n.resultCode)await rM(n.currentState,tV),tL(!1);else throw Error("No session")}catch(t){n9(!0,null==e?void 0:e.secretToken,void 0,W.tag,W.pin,{LANG:tV,PATHNAME:null==(h=window.location.pathname)?void 0:h.toUpperCase(),ROUTE:(null==(f=null==(m=null==(p=window.location.pathname)?void 0:p.split("/"))?void 0:m.pop())?void 0:f.toUpperCase())||"",...U||{}},j,M).then(()=>{ry(!0),tL(!1)})}else if(!W&&(null==n?void 0:n.currentTag)&&(null==n?void 0:n.currentTag)!==k$&&(null==n?void 0:n.currentTag)!=="-")try{await rt(e.engineMemoriID,t,"-");let n=await rt(e.engineMemoriID,t,k$);if(n&&0===n.resultCode)await rM(n.currentState,tV),tL(!1);else throw Error("No session")}catch(t){n9(!0,null==e?void 0:e.secretToken,void 0,void 0,void 0,{LANG:tV,PATHNAME:null==(g=window.location.pathname)?void 0:g.toUpperCase(),ROUTE:(null==(b=null==(y=null==(v=window.location.pathname)?void 0:v.split("/"))?void 0:y.pop())?void 0:b.toUpperCase())||"",...U||{}},j,M).then(()=>{ry(!0),tL(!1)})}else{try{let{chatLogs:e}=await tu(t,t),n=null==(_=null==e?void 0:e[0])?void 0:_.lines.map((e,t)=>{var n,r;return{text:e.text,media:null==(r=null==(n=e.media)?void 0:n.filter(e=>kV.includes(e.mimeType)))?void 0:r.map(e=>({mediumID:`${t}-${e.mimeType}`,...e})),fromUser:e.inbound,llmUsage:e.llmUsage,timestamp:e.timestamp,emitter:e.emitter}});if(I=null!=n?n:[],tH.toUpperCase()!==tV.toUpperCase()&&tG)try{I=await Promise.all(n.map(async e=>({...e,originalText:e.text,text:(await GC(e.text,tV,tH,D)).text})))}catch(e){}nG(I)}catch(e){}if((null==I?void 0:I.length)&&I.length>1||!j)ry(!0),tL(!1),await rM(n,tV,void 0,!!(null==I?void 0:I.length));else{I=[],nG([]);let n=nD(nO),r=await te({sessionId:t,text:j,...e.needsDateTime&&{dateUTC:null!=(x=i4.utc().toISO())?x:void 0},...void 0!==n&&{place:n}});if(500===r.resultCode&&r.resultMessage)return void nG(e=>[...e,{text:"Error: "+r.resultMessage,emitter:"system",fromUser:!1,initial:!1,contextVars:{},date:new Date().toISOString()}]);let i=XE(r);if(0===r.resultCode&&i){tY(!0);try{let e=await rL(i);0===e.resultCode&&e.currentState&&(await rM(e.currentState,tV,void 0,!1),tL(!1))}catch(e){XS("onClickStart NATS wait failed",e),tY(!1),tZ(void 0)}}else 0===r.resultCode&&XS("onClickStart enter-text missing correlationID",r)}}}else nG([]),await rM(T,tV),tL(!1);else{nR("password"),tL(!1);return}else{nQ(!0),tL(!1);return}},[nT,e,nC,nY,n0,tV,nO,tR]),r4=(0,ep.useCallback)(e=>{let t=!!(n0&&rv),n=!!(nO||qC("position",void 0));ne(r=>((function(e,t,n,r=!1,i=!0){return e&&!t&&!!n&&!r&&i})(r,e,er,t,n)&&queueMicrotask(()=>{r3()}),e||queueMicrotask(()=>{nn(!1)}),e))},[er,r3,n0,rv,nO]),[r5,r6]=(0,ep.useState)(!1),r8="WEBSITE_ASSISTANT"===t2||"HIDDEN_CHAT"===t2,r7=(0,ep.useRef)(!1);(0,ep.useEffect)(()=>{var t,n;let r=qC("position",void 0),i=!!(nO||r);r7.current||tk||tF.current||n0||!er||r8&&!r5||tU&&!tj||(t=!!e.needsPosition,t&&!i)||(n=!!e.requireLoginToken,n&&!tR)||(r7.current=!0,r3())},[tk,er,r8,r5,n0,tU,tj,nO,e.needsPosition,e.requireLoginToken,tR]),(0,ep.useEffect)(()=>{var t;let n=document.querySelector(`memori-client[memoriname="${e.name}"]`)||document.querySelector(`memori-client[memoriid="${e.memoriID}"]`)||document.querySelector("memori-client");if(!n)return;let r=null!=(t=null==X?void 0:X.loginToken)?t:q,i=n.getAttribute("authtoken")||void 0;i&&!r&&(tb(i),t_.current=i);let a=e=>{var t;let n="MEMORI-CLIENT"===e.nodeName?e:null!=(t=e.closest("memori-client"))?t:e.parentElement,r=(null==n?void 0:n.getAttribute("authtoken"))||void 0;tb(r),t_.current=r},o=new MutationObserver(e=>{var t;for(let n of e)"attributes"===n.type&&(null==(t=n.attributeName)?void 0:t.toLowerCase())==="authtoken"&&a(n.target)});return o.observe(n,{attributes:!0,childList:!1,subtree:!1}),()=>{o.disconnect()}},[e.name,e.memoriID,null==X?void 0:X.loginToken,q]);let[r9,ie]=(0,ep.useState)(),it=(0,ep.useCallback)(async()=>{if(n0&&(null==e?void 0:e.enableBoardOfExperts))try{let{experts:e,count:t,...n}=await tl(n0);0===n.resultCode&&ie(e)}catch(e){}},[n0,null==e?void 0:e.enableBoardOfExperts]);(0,ep.useEffect)(()=>{it()},[n0,it]);let ir=e.enableDeepThought&&!!ty&&!!(null==tw?void 0:tw.userID)&&(null==tw?void 0:tw.pAndCUAccepted),ii=(0,ep.useCallback)(()=>{tz(!1),nR(null),e3(v7({description:e0("notEnoughCredits"),severity:"error"}))},[e3,e0]),ia=(0,ep.useCallback)(async e=>{if(!(null==V?void 0:V.billingDelegation))return!0;if(!n&&!r)return(null==e?void 0:e.notify)?ii():tz(!1),!1;try{if((await JC({operation:ir?"dt_session_creation":"session_creation",baseUrl:D,userID:n,userName:r,tenant:i})).enough)return tz(!0),!0;return(null==e?void 0:e.notify)?ii():tz(!1),!1}catch(e){return XS("checkCredits failed",e),!0}},[D,ir,ii,n,r,null==V?void 0:V.billingDelegation,i]);(0,ep.useEffect)(()=>{(null==V?void 0:V.billingDelegation)&&ia()},[null==V?void 0:V.billingDelegation,ir,ia]),(0,ep.useEffect)(()=>{if(et)return;let e=()=>{n0&&e9(n0)};return window.addEventListener("beforeunload",e),()=>{window.removeEventListener("beforeunload",e),e()}},[n0]);let io=void 0===C?!("WEBSITE_ASSISTANT"===t2&&tM):!C,is=!(null==V?void 0:V.ssoLogin)&&tN,il={memori:{...e,ownerUserID:null!=(eP=null!=(eO=e.ownerUserID)?eO:n)?eP:void 0},apiClient:e8,tenant:V,history:nH,showShare:null!=(ek=null!=p?p:null==tI?void 0:tI.showShare)?ek:"WEBSITE_ASSISTANT"!==t2,position:nO,layout:t2,additionalSettings:Z,setVenue:nB,positionPopoverOpen:t9,setPositionPopoverOpen:r4,autoStartPositionGeolocation:nt,setShowSettingsDrawer:ni,setShowKnownFactsDrawer:nl,setShowExpertsDrawer:nc,enableAudio:!!z&&(null==(eL=null!=$?$:null==tI?void 0:tI.enableAudio)||eL),speakerMuted:null!=rf&&rf,setSpeakerMuted:e=>{rg(e)},setShowChatHistoryDrawer:no,showSettings:null==(eD=null!=S?S:null==tI?void 0:tI.showSettings)||eD,showChatHistory:"WEBSITE_ASSISTANT"!==t2&&(null==(eB=null!=M?M:null==tI?void 0:tI.showChatHistory)||eB),showMessageConsumption:rX,hasUserActivatedSpeak:rv,showReload:"TOTEM"===t2,showClear:null!=(eF=null!=A?A:null==tI?void 0:tI.showClear)&&eF,clearHistory:()=>nG(e=>e.slice(-1)),showLogin:is,setShowLoginDrawer:tP,loginToken:ty,user:tw,sessionID:n0,baseUrl:D,onLogout:()=>{ty&&e8.backend.pwlUserLogout(ty).then(()=>{tP(!1),tS(void 0),tb(void 0),t_.current=void 0,qN("loginToken")})}},iu={memori:e,integration:u,integrationConfig:tI,tenant:V,instruct:tc,avatar3dVisible:rQ,setAvatar3dVisible:r0,hasUserActivatedSpeak:rv,isPlayingAudio:rm&&!rf&&(null==(eU=null!=$?$:null==tI?void 0:tI.enableAudio)||eU),loading:!!tK,baseUrl:D,apiUrl:e8.constants.BACKEND_URL,enablePositionControls:nv,setEnablePositionControls:ny,avatarType:nb},ic={memori:e,tenant:V,language:tH,userLang:tV,setUserLang:tW,baseUrl:D,apiUrl:e8.constants.BACKEND_URL,position:nO,setVenue:nB,openPositionPopover:()=>{r4(!0)},integrationConfig:tI,instruct:tc,sessionId:n0,clickedStart:tk,isMultilanguageEnabled:tG,onClickStart:r3,isUserLoggedIn:tR,hasInitialSession:!!G,notEnoughCredits:tU&&!tj,showLogin:is,setShowLoginDrawer:tP,showChatHistory:"WEBSITE_ASSISTANT"!==t2&&(null==(ej=null!=M?M:null==tI?void 0:tI.showChatHistory)||ej),setShowChatHistoryDrawer:no,user:tw},id={memori:e,sessionID:n0||"",tenant:V,translateTo:tG&&tV.toUpperCase()!==(null==(eW=null!=(eV=null!=(eG=null==(eH=null==(ez=e.culture)?void 0:ez.split("-"))?void 0:eH[0])?eG:e1.language)?eV:"IT")?void 0:eW.toUpperCase())?tV:void 0,baseUrl:D,apiUrl:e8.constants.BACKEND_URL,layout:c,memoriTyping:tK,typingText:tX,showTypingText:null!=(eq=null!=E?E:null==tI?void 0:tI.showTypingText)&&eq,history:io?nH:nH.slice(-2),authToken:tT(),dialogState:n4,pushMessage:nV,simulateUserPrompt:(e,t)=>{rp(),n$(e,void 0,void 0,!1,t)},showDates:_,showContextPerLine:x,showMessageConsumption:rX,showAIicon:rJ,showUpload:rK,showReasoning:rY,showWhyThisAnswer:rZ,showCopyButton:null==(e$=null!=g?g:null==tI?void 0:tI.showCopyButton)||e$,showTranslationOriginal:null!=(eJ=null!=v?v:null==tI?void 0:tI.showTranslationOriginal)&&eJ,client:e8,instruct:tc,preview:m,sendOnEnter:rF,setSendOnEnter:rU,microphoneMode:nd?"CONTINUOUS":"HOLD_TO_TALK",attachmentsMenuOpen:rj,setAttachmentsMenuOpen:rz,showInputs:y,showMicrophone:!!z&&(null==(eK=null!=$?$:null==tI?void 0:tI.enableAudio)||eK),showFunctionCache:ea,userMessage:nF,onChangeUserMessage:e=>{e&&"\n"!==e&&""!==e.trim()?(nU(e),ra()):nU("")},sendMessage:(e,t)=>{rp(),rI(),t7(!0),n$(e,t),nU("")},onMediumSelectedState:e=>{nJ(e,tV,void 0,!0)},stopListening:e=>{e&&rS&&(rx.current=e),rI()},audioStream:rE,startListening:()=>(t7(!1),rT()),stopAudio:rp,listening:rS,transcribing:"processing"===rA,setEnableFocusChatInput:tp,isPlayingAudio:rm,customMediaRenderer:Q,user:tw,userAvatar:ee,experts:r9,useMathFormatting:tq,maxTotalMessagePayload:eo,maxTextareaCharacters:es,isChatlogPanel:(null==tI?void 0:tI.artifactChatLogPanel)===!0,globalBackground:rH||void 0},ih=(0,ed.jsx)("div",{className:"memori--global-background no-background-image"}),ip=u&&(Object.keys(rG).length>0||(null==tI?void 0:tI.blurBackground)===!1)?(0,ed.jsx)("style",{dangerouslySetInnerHTML:{__html:r$}}):null,im=(0,ed.jsx)($4,{tenant:V,userLang:tV,integrationID:null==u?void 0:u.integrationID,memoriHash:`${e.ownerTenantName}-${e.ownerUserName}-${e.name}`}),ig=h||("TOTEM"===t2?Jm:"CHAT"===t2?Jf:"FULLPAGE"===t2?Jp:"WEBSITE_ASSISTANT"===t2?Jx:"HIDDEN_CHAT"===t2?Jw:"ZOOMED_FULL_BODY"===t2?JS:Jp),iv=(null==tI?void 0:tI.theme)==="light"||(null==tI?void 0:tI.theme)==="dark"?tI.theme:"light";return(0,ed.jsx)("div",{ref:tf,className:(b(tA))("memori","memori-widget",`memori-layout-${String(t2).toLowerCase()}`,`memori-controls-${String(nf).toLowerCase()}`,`memori--avatar-${(null==tI?void 0:tI.avatar)||"default"}`,{"memori--auto-start":er,"memori--preview":m,"memori--embed":f,"memori--with-integration":u,"memori--with-speechkey":!!z,"memori--active":rv,"memori--hide-emissions":nx,"memori--has-active-session":!!n0}),"data-theme":iv,"data-memori-name":null==e?void 0:e.name,"data-memori-id":null==e?void 0:e.engineMemoriID,"data-memori-secondary-id":null==e?void 0:e.memoriID,"data-memori-session-id":n0,"data-memori-integration":null==u?void 0:u.integrationID,"data-memori-engine-state":JSON.stringify({...n4,sessionID:n0}),style:{height:null!=P?P:"100%"},children:(0,ed.jsxs)(v4,{container:tm,clipContainer:tg,theme:iv,zIndexBase:1e4*("WEBSITE_ASSISTANT"===t2),children:[(0,ed.jsx)(v6,{placement:"top-end"}),(0,ed.jsxs)("div",{ref:tv,className:"memori-widget__surface",children:[(0,ed.jsx)(ig,{Header:$2,headerProps:il,Avatar:q5,avatarProps:iu,Chat:Vg,chatProps:id,StartPanel:VA,startPanelProps:ic,integrationStyle:ip,integrationBackground:ih,poweredBy:im,autoStart:er,onSidebarToggle:r6,sessionId:n0,hasUserActivatedSpeak:rv,loading:t$,show3dAvatar:tM,avatar3dHidden:!tM,totemContentMaxWidth:null==tI?void 0:tI.totemContentMaxWidth,sideDrawerOpen:!!na||!!ns||!!nu}),(0,ed.jsx)(tt,{pushMessage:e=>{nG(t=>{if(!t.length)return t;let n=t[t.length-1];if(!n||n.fromUser)return t;let r={...n,text:n.text+e.text};return[...t.slice(0,-1),r]})}}),(0,ed.jsx)("audio",{id:"memori-audio",style:{display:"none"},src:"https://aisuru.com/intro.mp3"}),e5&&(0,ed.jsx)(wv,{withModal:!0,pwdOrTokens:nN,openModal:!!nN,setPwdOrTokens:nR,showTokens:"SECRET"===e.privacyType,onFinish:e=>{var t,n,r,i;return e.password&&nI(e.password),e.password&&(d=e.password),e.tokens&&nM(e.tokens),n9(!n0,e.password,e.tokens,null==W?void 0:W.tag,null==W?void 0:W.pin,{LANG:tV,PATHNAME:null==(t=window.location.pathname)?void 0:t.toUpperCase(),ROUTE:(null==(i=null==(r=null==(n=window.location.pathname)?void 0:n.split("/"))?void 0:r.pop())?void 0:i.toUpperCase())||"",...U||{}},j,nY).then(e=>{if(!(null==e?void 0:e.sessionID))throw Error("AUTH_FAILED");nR(null),(null==e?void 0:e.dialogState)?ry(!0):r3(e)}).catch(e=>{throw e instanceof Error&&"AUTH_FAILED"===e.message||tB(!0),e})},minimumNumberOfRecoveryTokens:null!=(eY=null==e?void 0:e.minimumNumberOfRecoveryTokens)?eY:1}),e5&&(0,ed.jsx)($8,{visible:nZ,minAge:nK,onClose:t=>{var n,r,i,a;t?(nX(t),qM("birthDate",t),n9(!n0,d||nT||(null==e?void 0:e.secretToken),nC,null==W?void 0:W.tag,null==W?void 0:W.pin,{LANG:tV,PATHNAME:null==(n=window.location.pathname)?void 0:n.toUpperCase(),ROUTE:(null==(a=null==(i=null==(r=window.location.pathname)?void 0:r.split("/"))?void 0:i.pop())?void 0:a.toUpperCase())||"",...U||{}},j,t).then(e=>{nQ(!1),nR(null),r3(e||void 0)}).catch(()=>{nQ(!1),tB(!0)})):(nQ(!1),tL(!1))}}),nr&&(0,ed.jsx)($7,{layout:t2,open:!!nr,onClose:()=>ni(!1),microphoneMode:nd?"CONTINUOUS":"HOLD_TO_TALK",continuousSpeechTimeout:np,setMicrophoneMode:e=>nh("CONTINUOUS"===e),setContinuousSpeechTimeout:nm,controlsPosition:nf,setControlsPosition:ng,hideEmissions:nx,setHideEmissions:nw,avatarType:nb,setAvatarType:n_,enablePositionControls:nv,setEnablePositionControls:ny,isAvatar3d:!!(null==tI?void 0:tI.avatarURL),additionalSettings:Z,speakerMuted:rf}),na&&(0,ed.jsx)(Jq,{open:!!na,onClose:()=>no(!1),resumeSession:e=>{nq(e.chatLogID),r3(void 0,!1,e),no(!1)},apiClient:e8,sessionId:n0||"",memori:e,baseUrl:D,history:nH,apiUrl:e8.constants.BACKEND_URL,loginToken:ty,language:tH,userLang:tV,isMultilanguageEnabled:tG,showFunctionCache:ea,showMessageConsumption:rX}),ns&&n0&&(0,ed.jsx)(Jr,{apiClient:e8,memori:e,sessionID:n0,visible:ns,closeDrawer:()=>nl(!1)}),nu&&!!r9&&(0,ed.jsx)(Ji,{apiUrl:e8.constants.BACKEND_URL,baseUrl:D,tenant:V,experts:r9,open:nu,onClose:()=>nc(!1)}),tO&&(null==V?void 0:V.name)&&(0,ed.jsx)(Ja,{tenant:V,apiClient:e8,open:!!tO,user:tw,loginToken:ty,memoriName:null==e?void 0:e.name,onClose:()=>tP(!1),modalClassName:"WEBSITE_ASSISTANT"===t2?"memori-modal--above-website-assistant":void 0,onLogin:(t,n)=>{var r,i,a,o;n9(!1,d||nT||(null==e?void 0:e.secretToken),[],null==W?void 0:W.tag,null==W?void 0:W.pin,{LANG:tV,PATHNAME:null==(r=window.location.pathname)?void 0:r.toUpperCase(),ROUTE:(null==(o=null==(a=null==(i=window.location.pathname)?void 0:i.split("/"))?void 0:a.pop())?void 0:o.toUpperCase())||"",...U||{}},void 0,nY,{loginToken:n},void 0,n0).then(e=>{var r,i;if(tP(!1),tS(t),tb(n),t_.current=n,qM("loginToken",n),(null==e?void 0:e.sessionID)&&e.sessionID!==n0&&(null==e?void 0:e.dialogState)){let n=(null==t?void 0:t.userName)||e0("login.user");nV({text:"",emitter:e.dialogState.emitter,media:null!=(i=null!=(r=e.dialogState.emittedMedia)?r:e.dialogState.media)?i:[],fromUser:!1,initial:e0("login.successfullyLoggedIn",{username:n}),contextVars:{...e.dialogState.contextVars||{},LOGIN_STATUS:"success"},date:e.dialogState.currentDate,placeName:e.dialogState.currentPlaceName,placeLatitude:e.dialogState.currentLatitude,placeLongitude:e.dialogState.currentLongitude,placeUncertaintyKm:e.dialogState.currentUncertaintyKm,tag:e.dialogState.currentTag,memoryTags:e.dialogState.memoryTags}),n8(e.dialogState)}})},setUser:tS,onLogout:()=>{ty&&e8.backend.pwlUserLogout(ty).then(()=>{tP(!1),tS(void 0),tb(void 0),t_.current=void 0,qN("loginToken")})}})]})]})})},ah=eu("HPg7A"),XI={};XI=JSON.parse('{"yes":"Si","no":"No","confirm":"Conferma","apply":"Applica","cancel":"Annulla","show":"Mostra","hide":"Nascondi","send":"Invia","scrollToLatest":"Vai all\'ultimo messaggio","scrollToContinueReading":"Scorri per continuare a leggere","close":"Chiudi","clearHistory":"Cancella chat","clearHistoryDone":"Chat cancellata.","moreInfo":"Ulteriori informazioni","back":"Indietro","edit":"Modifica","delete":"Elimina","loading":"Caricamento","expand":"Espandi","collapse":"Riduci","expandable":{"expand":"Espandi"},"fullscreenEnter":"Passa a schermo intero","fullscreenExit":"Esci da schermo intero","center":"Centro","bottom":"In basso","hidden":"Nascosto","day":"Giorno","month":"Mese","year":"Anno","dayPlaceholder":"GG","monthPlaceholder":"MM","yearPlaceholder":"AAAA","createdAt":"Data creazione","selected":"Selezionati","page":"pagina","actions":"Azioni","next":"Successivo","all":"Tutti","copied":"Copiato!","today":"Oggi","yesterday":"Ieri","date":"Data di nascita","last_7_days":"Ultimi 7 giorni","last_30_days":"Ultimi 30 giorni","previous":"Precedente","placeholder":"Fai una domanda","copy":"Copia","copyRawCode":"Copia codice sorgente","feedback":"Feedback","feedbackThankYou":"Grazie per il feedback.","copyFailed":"Impossibile copiare","functionCache":"Cache delle funzioni","copyToClipboard":"Copia negli appunti","showOriginalText":"Mostra originale","showTranslatedText":"Mostra traduzione","exactPosition":"Posizione esatta","uncertain":"Incertezza","question":"Domanda","nothingFound":"Nessun risultato","venue":"Luogo","searchVenue":"Cerca un luogo…","privacyPolicy":"Informativa sulla privacy","popularLanguages":"Popolari","allLanguages":"Tutte le lingue","memoriBlockedTitle":"Bloccato","memoriBlockedUntil":"Agente bloccato fino al {{date}}","memoriBlockedAnon":"Attualmente \\"{{name}}\\" non può rispondere, torna qui il {{date}}","memoriBlockedReasonExceedChats":"perchè ha superato la soglia mensile di chat ammesse.","memoriBlockedGiverHelper":"Puoi sempre gestirlo in qualità di amministratore, ma altri utenti non potranno interrogarlo.","generatedByAI":"Risposta generata da IA, può talvolta generare informazioni non corrette","aiGeneratedNote":"L\'agente può commettere errori. Assicurati di verificare le informazioni importanti.","reasoning":"Ragionamento...","thinking":"Sto ragionando","thought":"Ragionamento","thoughtFor":"Ragionato per {{count}}s","whyThisAnswer":"Da dove viene questa risposta","whyThisAnswerHelper":"Questa risposta è stata generata automaticamente da un\'intelligenza artificiale sulla base di questi contenuti verificati.","whyThisAnswerDescription":"I contenuti della base di conoscenza che l\'agente ha consultato per rispondere.","whyThisAnswerYouAsked":"Hai chiesto","whyThisAnswerUserAsked":"Domanda dell\'utente","whyThisAnswerAgentReplied":"L\'agente ha risposto","whyThisAnswerShowFull":"Mostra la risposta completa","whyThisAnswerContentsUsed":"Contenuti usati","whyThisAnswerOpen":"Apri","whyThisAnswerDisclaimer":"La risposta è stata scritta dall\'agente a partire da questi contenuti: può contenere errori o riformulazioni. Verifica le informazioni importanti alla fonte.","whyThisAnswerEmptyTitle":"Nessun contenuto consultato","whyThisAnswerEmptyDescription":"Per questa domanda l\'agente non ha trovato corrispondenze nella base di conoscenza: ha risposto solo in base alle proprie istruzioni.","whyThisAnswerEmptyAuthorDescription":"La domanda non ha prodotto corrispondenze. Se dovrebbe averne, aggiungi un contenuto che la copra.","whyThisAnswerAddContent":"Aggiungi alla base di conoscenza","whyThisAnswerConfidenceHigh":"Corrispondenza alta","whyThisAnswerConfidenceMedium":"Corrispondenza parziale","whyThisAnswerConfidenceLow":"Corrispondenza debole","whyThisAnswerTypeQuestion":"Domanda e risposta","whyThisAnswerTypeDocument":"Documento","whyThisAnswerTypeWebsite":"Sito web","whyThisAnswerTypeStory":"Racconto","whyThisAnswerSourcesCount_one":"{{count}} fonte","whyThisAnswerSourcesCount_other":"{{count}} fonti","whyThisAnswerNoSources":"Nessuna fonte","receiverLabel":"Assegnato a","missingData":"Informazioni mancanti","completionsEnabled":"IA evoluta, può rispondere con risposte generate automaticamente che talvolta potrebbero contenere informazioni non corrette","completionProviderDown":"Questo agente è integrato con una IA generativa di {{provider}}, ma al momento non è disponibile. Riprova più tardi.","completionProviderMajorOutage":"Questo agente è integrato con una IA generativa di {{provider}}, ma al momento non è disponibile. Non sarà possibile utilizzare questa funzionalità finché il servizio non viene ripristinato.","completionProviderPartialOutage":"Questo agente è integrato con una IA generativa di {{provider}}, ma sta riscontrando interruzioni parziali. Alcune funzionalità potrebbero non essere disponibili o funzionare in modo non ottimale.","completionProviderDegraded":"Questo agente è integrato con una IA generativa di {{provider}}, ma sta funzionando più lentamente del normale. Le risposte potrebbero richiedere più tempo o essere meno precise.","completionProviderFallbackName":"un provider esterno","completionProviderCheckStatusPage":"Vedi pagina di stato","boardOfExperts":"Gruppo di esperti","birthDate":"Data di nascita","birthDateHelper":"Ti chiediamo la data di nascita esclusivamente per abilitare o disabilitare le funzionalità che hanno restrizioni in base all\'età","underage":"Devi avere almeno {{age}} anni per registrarti.","underageTwinSession":"Devi avere almeno {{age}} anni per interagire con questo agente.","errorFetchingSession":"Errore durante il caricamento della sessione","errorGettingReferralURL":"Errore durante il caricamento del riferimento","errorReopeningSession":"Errore durante il riapertura della sessione","sessionExpiredReopening":"Sessione scaduta, riapertura in corso","ageVerification":"Verifica dell\'età","ageVerificationText":"Per interagire con questo agente, devi aver almeno {{minAge}} anni.","ageVerificationSuccess":"Età verificata con successo.","nsfw":"NSFW: Questo agente contiene contenuti per adulti","deepThought":"Pensiero profondo","deepThoughtWhatIs":"Cos\'è Pensiero Profondo?","deepThoughtHelper":"Pensiero Profondo è una funzionalità avanzata delle AI che ti consentirà di poter sfruttare a pieno le tue conversazioni mantenendo memoria delle stesse. Le AI con Pensiero Profondo possono darti informazioni adattandosi a te e alle cose che condividerete insieme.","deepThoughtDisclaimerTitle":"Pensiero profondo abilitato","deepThoughtDisclaimer":"Pensiero Profondo è una funzionalità avanzata delle AI che ti consentirà di poter sfruttare a pieno le tue conversazioni mantenendo memoria delle stesse. Le AI con Pensiero Profondo possono darti informazioni adattandosi a te e alle cose che condividerete insieme.","deepThoughtPreDisclaimerUnlogged":"Accedi per abilitare Pensiero Profondo.","deepThoughtPreDisclaimerNotAllowed":"Pensiero Profondo è disabilitato poiché non hai acconsentito al suo utilizzo, puoi cambiare la tua scelta in qualsiasi momento nelle impostazioni del tuo account.","notEnoughCredits":"L\'autore di questo agente non ha abbastanza crediti per rispondere alla tua domanda.","confirmDialog":{"title":"Confermi di voler lasciare questa pagina?","message":"Le modifiche non salvate andranno perse."},"knownFacts":{"title":"Fatti noti","description":"Quello che {{memoriName}} ricorda di te. Puoi eliminare ogni voce.","type":"Tipo","typeShortTerm":"Breve termine","typeLongTerm":"Lungo termine","typeHelper":"Tipi:\\n- Breve termine: questo fatto noto è sempre utilizzato durante le conversazioni\\n- Lungo termine: questo fatto noto è utilizzato durante le conversazioni solo se rilevante per la domanda corrente","text":"Testo","searchPlaceholder":"Cerca fra i fatti","select":"Seleziona","loadMore":"Carica altri","factsCount_one":"{{count}} fatto","factsCount_other":"{{count}} fatti","shownOfTotal":"Mostrati {{shown}} di {{total}}","emptyTitle":"Nessun fatto ancora","emptyDescription":"Man mano che parlate, l\'agente annota qui quello che impara su di te. Potrai cancellarlo in qualsiasi momento.","deleteLabel":"Elimina questo fatto","deleteSuccess":"Fatto noto eliminato","deleteConfirmTitle":"Elimina il fatto noto","deleteConfirmMessage":"Confermi di voler eliminare questo fatto noto?","deleteSelectedConfirmTitle":"Elimina i fatti noti selezionati","deleteSelectedConfirmMessage":"Confermi di voler eliminare i fatti noti selezionati?","selected_one":"{{count}} fatto selezionato","selected_other":"{{count}} fatti selezionati","selectedRows_one":"{{count}} riga selezionata","selectedRows_other":"{{count}} righe selezionate"},"auth":{"title":"Autenticazione","description":"Questo agente è protetto. Inserisci la password per continuare.","useRecoveryTokens":"Utilizza i token di recupero","tokens":"Token","addToken":"Aggiungi token","usePassword":"Utilizza la password","invalidCredentials":"Credenziali non valide","atLeast":"Almeno"},"widget":{"instruct":"Istruisci","test":"Prova","sound":"Audio","soundOff":"Audio disattivato","position":"Preferenze posizione","settings":"Impostazioni","share":"Condividi","shareChat":"Condividi chat","sendOnKeypress":"Premi Invio per inviare","sendOnClick":"Clicca su Invia","boardOfExperts":"Board di esperti","showExpertsInTheBoard":"Mostra esperti in questa board","expertsInTheBoard":"Esperti in questa board","goToIntegrationsToCustomizeAvatar":"Per personalizzare l\'avatar, vai a Condividimi e configura la pagina pubblica","chatAssistantStatus":"Attiva • Risponde in pochi secondi","agentStatusListening":"in ascolto","agentStatusSpeaking":"sta parlando","agentStatusProcessing":"in elaborazione","shareLocation":"Condividi posizione","shareLocationHint":"Ricevi risposte in base a dove ti trovi","shareLocationAria":"Condividi la posizione con l\'assistente","knownFactsHint":"Le informazioni che ricordo su di te","aiConsumption":"Consumi AI","editPositionAria":"Modifica posizione","positionResolving":"Ricerca indirizzo…","geocodingFailed":"Impossibile ottenere l\'indirizzo. Riprova o cerca manualmente.","positionUnavailableManual":"Posizione non disponibile. Inseriscila manualmente.","positionSharingEnabled":"Posizione condivisa.","headerHistory":"Cronologia","headerProfile":"Profilo","headerLogin":"Accedi","downloadQrCode":"Scarica QR Code","expandToImmersive":"Espandi per vista immersiva","moreActions":"Altre azioni","mobileSession":{"session":"Sessione","sessionInfo":"Info sessione","copyLinkOrDownload":"Copia link o scarica","currentlyOff":"Attualmente disattivato","whatIKnowAboutYou":"Dettagli delle informazioni condivise tra te e {{memoriName}}","locationTracking":"Tracciamento posizione","locationStatus":"Stato","useCurrentPosition":"Usa posizione attuale","disableLocationSharing":"Disattiva condivisione posizione","openKnownFacts":"Apri tutti i fatti noti","knownFactsMessages":"{{count}} messaggi nella sessione corrente"}},"exportChatHistory":{"exportPDF":"Esporta chat come PDF","exporting":"Esportazione in corso...","empty":"Nessuna cronologia chat da esportare","pdfNotSupported":"L\'esportazione PDF non è supportata in questo browser","success":"Chat esportata in PDF con successo","error":"Impossibile esportare la chat in PDF. Riprova."},"write_and_speak":{"micButtonPopover":"Premi il pulsante per parlare","micButtonPopoverListening":"Premi il pulsante per smettere di parlare","stopRecording":"Interrompi registrazione","sendRecording":"Invia messaggio vocale","recordingInProgress":"Registrazione in corso","pageInstructExplanation":"Per insegnarmi nuove cose clicca sul pulsante ISTRUISCIMI per cominciare","pageTryMeExplanation":"Per iniziare a conversare clicca sul pulsante INIZIAMO","pagePrivacyExplanation":"Le conversazioni sono visibili all\'autore dell\'agente","aiDisclaimer":"L\'agente può commettere errori. Assicurati di verificare le risposte.","downloadChat":"Scarica chat","pagePrivacyExplanationList":{"allConversations":"Tutte le conversazioni con questo agente sono visibili all\'autore dell\'agente","anonymousUser":"Per utenti anonimi: l\'autore vedrà il contenuto e l\'indirizzo IP","registeredUser":"Per utenti registrati: l\'autore vedrà il contenuto e il nome utente","contentAndUsername":"L\'autore può vedere il contenuto, il tuo nome utente e il tuo indirizzo IP","contentAndIpAddress":"L\'autore può vedere il contenuto e il tuo indirizzo IP","authorUsesInfo":"L\'autore utilizza queste informazioni per migliorare le funzionalità dell\'agente."},"instructButton":"ISTRUISCIMI","tryMeButton":"INIZIAMO","resumeButton":"RIPRENDI","chatHistory":"Cronologia chat","chatHistoryDescription":"Mostra la cronologia chat con questo agente","loadingChatHistory":"Caricamento cronologia chat...","noChatHistoryAvailable":"Nessuna cronologia chat disponibile","noResultsFound":"Nessun risultato trovato per \\"{{searchText}}\\"","searchInChatHistory":"Cerca nelle conversazioni","filters":"Filtri","latestFirst":"Più recenti prima","oldestFirst":"Più vecchi prima","exportChat":"Esporta Chat","exportChatHistory":"Esporta la cronologia chat","exportChatHistoryMessage":"Vuoi esportare la cronologia chat?","chatBotButtonText":"CLICCA QUI PER APRIRE LA CHAT","conversationStartedLabel":"Conversazione avvenuta il","settingsHeaderLabel":"Configura qui se vuoi impostare una conversazione continua. Setta i secondi di silenzio prima dell\'invio.","continuousSpeechLabel":"Conversazione continua","continuousSpeechDisabled":"Conversazione continua disabilitata poichè l\'agente è in modalità muta","holdToSpeak":"Tieni premuto per parlare","releaseToEndListening":"Rilascia per smettere di parlare","pressAndHoldToSpeak":"Premi e tieni premuto per parlare","microphoneMode":"Modalità microfono","hideEmissionsLabel":"Nascondi testo emesso dall\'agente","showMessageConsumptionLabel":"Mostra consumo per messaggio","secondsLabel":"Secondi","controlsPosition":"Posizione dei controlli","avatarControls":"Controlli Avatar","height":"Altezza","depth":"Profondità","avatarType":"Tipo Avatar","blob":"Blob","avatar3d":"Avatar 3D","zoomed":"Vicino","normal":"Normale","far":"Lontano","suggestions":"Usa le frecce per regolare l\'altezza dell\'avatar\\nUsa +/- per regolare la profondità dell\'avatar","enablePositionControls":"Abilita controlli posizione","tryMeHeaderLabel":"PROVA","unknownPosition":"Posizione sconosciuta","fieldPlace":"Indica la posizione (es \'Milano\')","showMapLinkFor":"Visualizza sulla mappa la posizione","useMyPosition":"Usa la mia posizione","myPosition":"Posizione corrente","updatingPosition":"Aggiorno la posizione...","placeNotFound":"Luogo sconosciuto!","requirePositionHelp":"Per parlare con {{name}} devi decidere se fornire o meno la tua posizione. Questo perchè diverse risposte che potrà fornirti potrebbero dipendere da dove ti trovi.","dontWantToProvidePosition":"Continua senza posizione","requireLoginHelp":"Per parlare con {{name}} devi prima accedere con il tuo account.","skipLocationTitle":"Non verrà salvata alcuna posizione sulla mappa.","locationSaved":"La tua posizione è stata salvata.","locationSavedWithPlace":"La tua posizione è stata salvata: {{place}}","locationSkippedConfirm":"Continuerai senza condividere la posizione.","placeSelected":"Luogo selezionato: {{place}}","locationPermissionDenied":"Accesso alla posizione negato. Abilitalo nelle impostazioni del browser oppure scegli un luogo sulla mappa.","locationUnavailable":"Non è stato possibile rilevare la tua posizione. Riprova o cerca un luogo.","locationRequestTimedOut":"Richiesta di posizione scaduta. Riprova o cerca un luogo.","locationErrorGeneric":"Si è verificato un problema durante il recupero della posizione.","attachmentsLabel":"Arricchisci il tuo messaggio","image":"immagine","images":"immagini","file":"file","files":"file","function":"funzione","functions":"funzioni","iWantToTalkToIn":"Voglio parlare con {{name}} in","chatLanguageLabel":"Scegli la lingua della conversazione","chatResumed":"Chat ripresa con successo.","message":"messaggio","messages":"messaggi","page":"Pagina {{current}} di {{total}}","downloadThisConversation":"Scarica questa conversazione","downloadAllConversations":"Scarica tutte le conversazioni","conversationsCount_one":"{{count}} conversazione","conversationsCount_other":"{{count}} conversazioni","shownOfTotal":"Mostrate {{shown}} di {{total}}","loadMore":"Carica altre","backToConversationList":"Torna all\'elenco delle conversazioni","thisWeek":"Questa settimana"},"chatResume":{"resume":"Riprendi la conversazione"},"artifact":{"close":"Chiudi","size":"Dimensione","updated":"aggiornato","updateFailed":"Aggiornamento non applicato","updateFailedHint":"Il patch non corrisponde al contenuto attuale. Chiedi di riscrivere l\'artifact.","generated":"Generato","download":"Scarica","print":"Stampa","external":"Apri in una nuova finestra","type":"Tipo","fullscreen":"Schermo intero","exitFullscreen":"Esci da schermo intero","copy":"Copia","generatedAt":"Generato il","open":"Apri","code":"Codice","source":"Sorgente","preview":"Anteprima","resizeHandle":"Ridimensiona il pannello artifact","copied":"Copiato!","error":"Errore","generatingPdf":"Generazione PDF...","copying":"Copia in corso...","moreCopyOptions":"Altre opzioni di copia","copyAs":"Copia come","downloadAsMarkdown":"Scarica come Markdown","downloadRawMarkdownText":"Scarica testo markdown grezzo","downloadAsPdf":"Scarica come PDF","exportAsPdfDocument":"Esporta come documento PDF","downloadAsHtml":"Scarica come HTML","downloadFormattedHtml":"Scarica HTML formattato","viewMode":"Modalità Visualizzazione","codeMode":"Modalità Codice","refresh":"Aggiorna","share":"Condividi","downloadAsJson":"Scarica come JSON","downloadJsonData":"Scarica dati JSON","downloadAsPng":"Scarica come PNG","downloadPngImage":"Scarica immagine PNG","downloadAsJpeg":"Scarica come JPEG","downloadJpegImage":"Scarica immagine JPEG","downloadAsGif":"Scarica come GIF","downloadGifImage":"Scarica immagine GIF","downloadAsWebp":"Scarica come WebP","downloadWebpImage":"Scarica immagine WebP","copyAsSvg":"Copia come SVG","copySvgSourceCode":"Copia codice sorgente SVG","copyAsPlainText":"Copia come testo normale","copyAsText":"Copia come testo","copyAsLanguage":"Copia come {{language}}","copyLanguageCode":"Copia codice {{language}}","copyWithoutSyntaxHighlighting":"Copia senza evidenziazione sintassi","copyTextContent":"Copia contenuto testo","pdfExportNotSupported":"L\'esportazione PDF non è supportata in questo browser","popupBlocked":"Popup bloccato! Abilita i popup per stampare.","safariPdfInstructions":"Esportazione PDF aperta in una nuova finestra. Usa Cmd+P (Mac) o Ctrl+P (Windows) per stampare e salvare come PDF."},"media":{"title":"Titolo","editAttributes":"Modifica attributi media","uploadMimeTypeNotAllowed":"Il tipo di file non è permesso","uploadSizeLimitMessage":"Il file caricato è troppo grande (max {{size}}MB)","uploadWrongResolutionMessage":"La risoluzione deve essere {{width}}x{{height}} pixel","memoriNameAlreadyUsed":"Hai già un Agente con questo nome","uploadHelperImages":"Caricare un file con estensione png, jpg, jpeg o gif e con dimensione massima di {{size}}MB","uploadHelper":"Caricare un file di dimensione massima di {{size}}MB","uploadError":"Errore nel caricamento","square":"quadrato","scaleRatio":"Proporzioni","addMediaLabel":"Aggiungi media","insertThisMediaMsg":"Inserisci questi media","mediaUploadMessage":"Clicca per caricare un nuovo media","addLinkLabel":"Aggiungi un link","linkKey":"URL","linkValue":"Titolo link","insertThisLink":"Inserisci un link a {{url}} con titolo {{title}}"},"upload":{"loginRequired":"Login richiesto","pastedText":"testo-copiato","uploadNotification":"Upload Fallito","loginRequiredDescription":"Per caricare immagini, devi prima accedere","uploadFiles":"Carica file (drag and drop)","uploadFilesOrImages":"Carica file o immagini","uploadFilesWithShortcut":"{{shortcut}}+O per aprire il selettore file","uploadImages":"Carica immagini","lastDocumentSlot":"Carica ultimo documento","uploadDocuments":"Carica documenti","maxDocumentsReached":"Puoi caricare fino a {{max}} documenti","replace":"Sostituisci documento","maxImagesReached":"Puoi caricare fino a {{max}} immagini","apiClientNotConfigured":"Client API non configurato correttamente per il caricamento di media","fileReadingFailed":"Lettura del file fallita","uploadFailed":"Caricamento fallito","uploadSuccess":"Caricamento riuscito","remaining":"rimanenti","maxReached":"Limite raggiunto","titleImage":"Aggiungi un titolo all\'immagine","titleImageUpload":"Carica immagini","titleHelp":"Aggiungi un titolo descrittivo per aiutare l\'AI a fornire risposte più appropriate.","titlePlaceholder":"Inserisci il titolo dell\'immagine","uploadSuccessDescription":"Il file è stato caricato con successo","partialUpload":"Solo {{uploaded}} immagini su {{total}} immagini saranno caricate. Massimo {{max}} immagini consentite.","cancel":"Annulla","dragAndDropFiles":"Trascina qui i file per aggiungerli alla chat","pasteMaxAttachmentsReached":"Massimo {{max}} allegati. Rimuovine uno per aggiungere questo come file.","pasteContentTooLong":"Il testo incollato è troppo lungo (max {{size}}KB). Accorcialo o dividilo.","pasteContentExceedsLimit":"Il contenuto incollato supera il limite di dimensione. Prova ad accorciare il testo o a dividerlo in parti più piccole.","pasteAddedAsAttachment":"Testo incollato aggiunto come allegato","filesNotAddedMaxAllowed":"{{count}} file non aggiunto/i (massimo {{max}} file consentiti).","documentsNotAddedMaxAllowed":"{{count}} documento/i non aggiunto/i (massimo {{max}} file consentiti).","imagesNotAddedMaxAllowed":"{{count}} immagine/i non aggiunta/e (massimo {{max}} file consentiti).","documentsNotAddedContextSize":"{{count}} documento/i non aggiunto/i (limite dimensione contesto).","partialAssetUploadWarning":"Alcuni link del file non sono stati caricati, ma il documento è stato aggiunto comunque.","anonymousRetentionNotice":"Nota: i file caricati vengono conservati per massimo 24 ore."},"gamification":{"level":"Livello","points":"punti","memoriReachedLevel":"è diventato più evoluto ed ha raggiunto il livello","levelGoToStatistics":"{{memori}} è al livello {{level}} con {{points}} punti. Clicca per andare alle statistiche.","congratulationsNewLevel":"Congratulazioni, hai raggiunto un nuovo livello!","congratulationsNewLevelDescription":"Il tuo agente è diventato più evoluto con {{points}} punti, guarda le","statistics":"statistiche"},"login":{"login":"Accedi","title":"Accedi al tuo account","logout":"Esci","userNameRequired":"Il nome utente è obbligatorio","userName":"Nome utente","userNamePlaceholder":"Inserisci il nome utente","user":"Utente","loggedDrawerTitle":"Ciao, {{name}}!","loginDrawerTitle":"Accedi","signupDrawerTitle":"Registrati","newUserSignUp":"Sei un nuovo utente?","signUp":"Registrati!","alreadyHaveAnAccount":"Hai già un account?","backToLogin":"Torna al login","registrationDisabled":"La registrazione è disabilitata.","contactAdmin":"Contatta l\'amministratore per richiedere l\'accesso","userNameOrEmail":"Nome utente o email","email":"Email","emailFormatError":"Per favore, inserisci una mail valida","username":"Nome utente","usernameContainsReservedWord":"Il nome utente contiene una parola riservata, per favore cambia il nome utente","usernameFormatError":"Il nome utente deve essere lungo almeno 3 caratteri e può contenere solo lettere, numeri e _","otpCode":"Codice di verifica","resendVerificationCode":"Invia di nuovo","resentVerificationCode":"Codice di verifica inviato! Controlla la tua mail.","welcomeTitle":"Bentornato","welcomeDescription":"Inserisci il tuo codice di verifica a 4 cifre per continuare al tuo account","otpTitle":"Inserisci il codice di verifica","otpDescription":"Inserisci il codice a 4 cifre che hai generato nel tuo account","otpStep1":"Clicca il pulsante qui sotto per aprire il tuo account","otpStep2":"Genera un codice di verifica a 4 cifre (valido per 5 minuti)","otpStep3":"Torna qui e inserisci il codice","startOtpLogin":"Inizia verifica","generateOtp":"Genera codice","otpTimer":"Il codice scade tra {{time}}","otpInvalidFormat":"Inserisci un codice valido a 4 cifre","otpInvalid":"Codice di verifica non valido","otpError":"Errore nella validazione del codice. Riprova.","otpSuccess":"Login effettuato con successo!","otpEmailTitle":"Inserisci la tua email","otpEmailDescription":"Inserisci il tuo indirizzo email per ricevere un codice di verifica","otpCodeDescription":"Inserisci il codice a 4 cifre inviato a {{email}}","emailPlaceholder":"Inserisci la tua email","sendOtp":"Invia il codice","resendOtp":"Reinvia","resendOtpIn":"Reinvia tra {{seconds}}s","resendOtpPrompt":"Non è arrivato? Reinvia tra {{seconds}} s","resendOtpQuestion":"Non è arrivato?","resending":"Invio in corso...","backToEmail":"Torna all\'email","editEmail":"Modifica","otpSentToPrefix":"Abbiamo mandato un codice di 4 cifre a","otpCodeShort":"Codice","loginBenefitLine1":"{{memoriName}} può mostrarti la cronologia chat, che può essere riprendibile in qualsiasi momento.","loginBenefit":"{{memoriName}} può mostrarti la cronologia chat, che può essere riprendibile in qualsiasi momento.","passwordlessHint":"Ti mandiamo un codice di 4 cifre. Nessuna password da ricordare.","defaultAgentName":"l\'agente","otpSent":"Codice di verifica inviato!","otpResent":"Codice reinviato con successo!","otpSendError":"Errore nell\'invio del codice. Riprova.","emailRequired":"Email richiesta","emailInvalid":"Inserisci un indirizzo email valido","userNotFound":"Utente non trovato","otpNotFound":"Codice di verifica non trovato","otpExpired":"Il codice di verifica è scaduto","otpMissing":"Il codice di verifica è richiesto","otpAttemptsExceeded":"Troppi tentativi. Richiedi un nuovo codice di verifica.","otpSuccessMessage":"Verifica completata! Reindirizzamento...","otpSuccessDescription":"Il tuo account è stato verificato con successo. Sarai reindirizzato a breve.","otpHelp":"Inserisci il codice a 4 cifre dalla tua email","emailHelp":"Ti invieremo un codice di verifica","userFetchError":"Errore nel caricamento dei dati utente. Riprova.","otpStep1Title":"Inserisci Email","otpStep2Title":"Controlla Email","otpStep3Title":"Inserisci Codice","featureFast":"Veloce","featureSecure":"Sicuro","featureMobile":"Mobile","quickActions":"Azioni rapide","verified":"Verificato","termsStatus":"Stato dei termini","enabled":"Abilitato","disabled":"Disabilitato","advancedFeatures":"Funzionalità avanzate","help":"Aiuto","editProfile":"Modifica profilo","notifications":"Notifiche","logoutConfirm":"Sei sicuro di voler uscire?","comingSoon":"Presto disponibile!","accountOverview":"Panoramica account","notSet":"Non impostato","accepted":"Accettato","password":"Password","newPassword":"Nuova password","confirmPassword":"Conferma la password","currentPassword":"Password attuale","passwordMatchingError":"Le password non coincidono.","passwordFormatError":"La password deve essere lunga almeno 8 caratteri e contenere almeno un numero, una lettera maiuscola, una minuscola e un simbolo","pwdWeak":"Debole","pwdAcceptable":"Accettabile","pwdStrong":"Forte","mustChangePassword":"Devi cambiare la password","passwordChange":"Cambio password","emailChange":"Cambio email","avatarChange":"Cambio avatar","avatarUploadSuccess":"Immagine del profilo aggiornata.","underage":"Devi avere almeno {{age}} anni per registrarti.","optional":"opzionale","birthDate":"Data di nascita","birthDatePlaceholder":"GG/MM/AAAA","birthDateHelper":"Ti chiediamo la data di nascita esclusivamente per abilitare o disabilitare le funzionalità che hanno restrizioni in base all\'età","missingData":"Informazioni mancanti","missingDataHelper":"Sappiamo che questo è un po\' fastidioso, ma abbiamo bisogno di alcune informazioni in più per completare la tua registrazione.","goToAccountToChangeYourPreferences":"Puoi cambiare la tua scelta in qualsiasi momento dalla tua pagina Account.","deepThoughtExplaination":"Pensiero Profondo è una funzionalità avanzata delle AI che ti consentirà di poter sfruttare a pieno le tue conversazioni mantenendo memoria delle stesse. Le AI con Pensiero Profondo possono darti informazioni adattandosi a te e alle cose che condividerete insieme. Consenti all\'autore dell\'agente di contattarti per offerte commerciali riguardanti prodotti su cui hai espresso interesse.","tnCAndPPAcceptedHelper":"Dall\'ultimo accesso, i T&C e l\'Informativa sulla privacy sono stati modificati. Si prega di accettarle, altrimenti non sarà possibile apportare modifiche ai propri gemelli. Puoi sempre cancellare il tuo account nella pagina del tuo profilo utente.","privacyLabel":"Ho letto e accettato l\'","privacyAndCookiePolicy":"informativa sui cookie e sulla privacy","and":"e","termsOfService":"i termini del servizio","pAndCUAccepted":"Accetto le condizioni di utilizzo relative a Pensiero Profondo","editAccount":"Modifica account","save":"Salva","successfullyLoggedIn":"{{username}} ha effettuato l\'accesso con successo"},"chatLogs":{"llm":"LLM","model":"Modello","provider":"Provider","tokens":"Token","input":"Input","output":"Output","cacheRead":"Cache read","cacheWrite":"Cache write","duration":"Durata","energy":"Energia","co2":"CO2","water":"Acqua","usageBadgesHint":"Clicca uno di questi pulsanti per mostrare maggiori informazioni","totalChatConsumptionTitle":"Consumo Totale Chat","modelUsage":"Utilizzo del modello","environmentalImpact":"Impatto ambientale","impactComparisonUnavailable":"Confronto indicativo non disponibile.","impactComparisonEnergy":"Confronto indicativo: circa quanto tenere accesa una lampadina LED da 10 W per {{duration}}.","impactComparisonCo2":"Confronto indicativo: circa {{distance}} percorsi in auto a benzina media.","impactComparisonWater":"Confronto indicativo: circa {{count}} gocce d\'acqua.","energyImpactDescription":"Questo valore stima l\'energia elettrica necessaria per generare la risposta del modello. Serve a confrontare prompt, modelli e strategie diverse anche quando il singolo messaggio ha un impatto molto piccolo.","co2ImpactDescription":"La CO2 equivalente rappresenta l\'impatto climatico stimato del messaggio. Tradurre il consumo in emissioni aiuta a capire quanto una risposta AI pesa sull\'ambiente in termini comparabili.","waterImpactDescription":"Questo indicatore mostra l\'impronta idrica stimata associata all\'elaborazione del messaggio. Include l\'acqua impiegata indirettamente nell\'energia e nell\'infrastruttura che supportano il calcolo.","approximateValuesTooltip":"Questi valori sono approssimativi.","atLeast":"Almeno {{count}} messaggi","anyMessage":"Qualunque messaggio","atLeast1":"Almeno 1 messaggio","atLeast2":"Almeno 2 messaggi","atLeast3":"Almeno 3 messaggi","atLeast5":"Almeno 5 messaggi","atLeast10":"Almeno 10 messaggi","atLeast15":"Almeno 15 messaggi","atLeast20":"Almeno 20 messaggi","customMinimumMessages":"Personalizza il numero di messaggi"},"success":"Operazione andata a buon fine","Error":"Errore","internal server error":"Ops, scusa... qualcosa è andato storto nel server","error":"Errore","error.loading":"Errore durante il caricamento dei contenuti.","error.notFound":"Ops, non abbiamo trovato ciò che cercavi.","error.generic":"Ops, qualcosa è andato storto.","error.serverNotResponding":"Stiamo facendo manutenzione o rilasciando aggiornamenti. Riprova più tardi.","error.unprocessableEntity":"Errore durante il salvataggio dei dati. Ricontrolla i dati inseriti.","error.goBackTo":"Prova a tornare alla","error.reloadPage":"Ricarica la pagina","error.tryAgain":"Riprova","error.unauthorized":"Non sei autorizzato a visualizzare questo contenuto.","errors":{"TENANT_NOT_FOUND":"Tenant non trovato","TENANT_REGISTRATION_DISABLED":"La registrazione su questa piattaforma è disabilitata","TENANT_MISSING_NAME":"Tenant: nome mancante","TENANT_MAX_USERS_REACHED":"Numero massimo di utenti raggiunto","TENANT_MAX_ADMINS_REACHED":"Numero massimo di utenti amministratori raggiunto","TENANT_ALREADY_EXISTS":"Tenant già esistente","TENANT_MISSING_DESCRIPTION":"Tenant: descrizione mancante","TENANT_CANT_SET_COMPLETION_PROVIDER":"Tenant: non abilitato a gestire il provider di completamento","TENANT_INVALID_TYPE":"Tenant: tipo non valido","USER_NOT_CONFIRMED":"Utente ancora non confermato","USER_NOT_FOUND":"Utente non trovato","USER_OR_PASSWORD_INVALID":"Utente o password non validi","USER_MUST_CHANGE_PASSWORD":"Devi cambiare la password","USER_MUST_ENTER_VERIFICATION_CODE":"Devi inserire il codice di verifica","USER_MISSING_TENANT":"Utente: tenant mancante","USER_MISSING_NAME":"Utente: nome mancante","USER_MISSING_PASSWORD":"Utente: password mancante","USER_MISSING_EMAIL":"Utente: email mancante","USER_MISSING_VERIFICATION_CODE":"Utente: codice di verifica mancante","USER_NAME_ALREADY_USED":"Nome utente già in uso","USER_PASSWORD_NOT_CONFORMING_TO_POLICY":"La password non rispetta le regole di sicurezza","USER_EMAIL_ALREADY_USED":"Email già in uso","USER_EMAIL_INVALID":"Email non valida","USER_VERIFICATION_CODE_INVALID":"Codice di verifica non valido","USER_MISSING_NAME_OR_EMAIL":"Nome utente o email mancante","USER_NAME_INVALID":"Nome utente non valido","USER_HAS_ONE_OR_MORE_MEMORI":"L\'utente ha uno o più Agenti","USER_MISSING_NEW_PASSWORD":"Utente: nuova password mancante","USER_NOTHING_TO_DO":"Niente da fare","USER_CANT_CREATE_MEMORI":"Utente non abilitato a creare Agenti","USER_MAX_MEMORI_REACHED":"Massimo numero di Agenti raggiunto","USER_TOO_MANY_ATTEMPTS":"Troppi tentativi","USER_MUST_ACCEPT_TNC_AND_PP":"Devi accettare i termini e le condizioni","USER_BIRTH_DATE_CANT_BE_CHANGED":"Data di nascita non può essere cambiata","USER_CANT_SET_COMPLETION_PROVIDER":"Utente: non abilitato a gestire il provider di completamento","USER_CANT_ENABLE_DEEP_THOUGHT":"Utente: non abilitato a gestire Pensiero Profondo","USER_CANT_ENABLE_DCM_INTEGRATION":"Utente: non abilitato a gestire l\'integrazione con DCM","USER_CANT_ENABLE_CHAINING_OR_BOARD_OF_EXPERTS":"Utente: non abilitato a gestire la concatenazione o il gruppo di esperti","USER_CREATION_BILLING_DENIED_PERMISSION":"Non hai crediti sufficienti per creare un agente","USER_HAS_ONE_OR_MORE_COMPLETION_CONFIGS":"L\'utente ha una o più configurazioni completions","USER_CANT_BE_DELETED":"Utente non può essere cancellato","USER_ORDER_BY_INVALID":"Ordine non valido","MEMORI_NOT_FOUND":"Agente non trovato","MEMORI_NOT_ACCESSIBLE":"Agente non accessibile","MEMORI_ONLY_OWNER_CAN_CHANGE_GIVER_TAG_AND_PIN":"Solo il proprietario può cambiare il tag e il pin","SESSION_NOT_FOUND":"Sessione non trovata","SESSION_IS_NOT_ADMINISTRATIVE":"Sessione non amministrativa","SESSION_EXPIRED":"Sessione scaduta","speechMissingSession":"La voce richiede una sessione attiva","speechInvalidSession":"Sessione non valida","speechTenantMismatch":"La voce non è disponibile su questo sito","speechRateLimited":"Troppe richieste vocali. Attendi un momento e riprova.","SESSION_OTP_NOT_FOUND":"Codice di verifica non trovato","SESSION_OTP_EXPIRED":"Il codice di verifica è scaduto","SESSION_OTP_INVALID":"Codice di verifica non valido","SESSION_OTP_ATTEMPTS_EXCEEDED":"Troppi tentativi. Richiedi un nuovo codice di verifica.","MEMORI_MISSING_CONFIGURATION":"Agente: configurazione mancante","MEMORI_CONFIGURATION_NOT_FOUND":"Agente: configurazione non trovata","MEMORI_INVALID_PRIVACY_TYPE":"Agente: tipo di privacy non valido","MEMORI_MISSING_PASSWORD":"Agente: password mancante","MEMORI_INVALID_TOTAL_NUMBER_OF_RECOVERY_TOKENS":"Agente: numero totale di token di recupero non valido","MEMORI_INVALID_MINIMUM_NUMBER_OF_RECOVERY_TOKENS":"Agente: numero minimo di token di recupero non valido","MEMORI_INVALID_VOICE_TYPE":"Agente: tipo di voce non valido","MEMORI_MISSING_NAME":"Agente: nome mancante","MEMORI_MISSING_PASSWORD_OR_RECOVERY_TOKENS":"Agente: password o token di recupero mancanti","MEMORI_INVALID_ID":"Agente: ID non valido","MEMORI_NAME_ALREADY_USED":"Nome Agente già in uso","MEMORI_INVALID_PIN":"Agente: PIN non valido","MEMORI_GIVER_TAG_PIN_CHANGE_REQUIRES_SEPARATE_OPERATION":"Agente: cambio TAG e PIN richiedono operazioni separate","MEMORI_NO_PASSWORD_WHEN_PUBLIC":"Agente: password non richiesta su agente pubblico","MEMORI_DEEP_THOUGHT_REQUIRES_COMPLETIONS":"Pensiero Profondo richiede l\'abilitazione delle completions","MEMORI_BOARD_OF_EXPERTS_REQUIRES_COMPLETIONS":"Il gruppo di esperti richiede l\'abilitazione delle completions","MEMORI_INVALID_COMPLETION_CONFIG":"Agente: configurazione completions non valida","MEMORI_MACRO_FUNCTIONS_REQUIRES_COMPLETIONS":"Macro funzioni richiede l\'abilitazione delle completions","MEMORI_BLOCKING_DATE_MISSING_OR_WRONG":"Agente: data di blocco mancante o non valida","MEMORI_LIST_FILTER_NOT_SPECIFIED":"Agente: filtro non specificato","MEMORI_TRANSFER_MISSING_DESTINATION_USER":"Trasferimento: utente di destinazione mancante","MEMORI_TRANSFER_INVALID_DESTINATION_USER_ID":"Trasferimento: ID utente di destinazione non valido","MEMORI_TRANSFER_DESTINATION_USER_DATA_INCONSISTENT":"Trasferimento: dati utente di destinazione non validi","MEMORI_TRANSFER_NOTHING_TO_DO":"Trasferimento: alcuna operazione da fare","MEMORI_CONFIGURATION_CANT_BE_CHANGED":"Agente: la configurazione non può essere modificata","MEMORI_MISSING_NEW_PASSWORD":"Agente: nuova password mancante","MEMORI_SESSIONS_INVALID_DATE_FROM_FORMAT":"Formato non valido data a partire da","MEMORI_SESSIONS_INVALID_DATE_TO_FORMAT":"Formato non valido data fino a","MEMORI_SESSION_NOT_FOUND":"Sessione non trovata","MEMORI_SESSION_DOESNT_ACCEPT_MEDIA":"Sessione non accetta media","MEMORI_FEATURE_REQUIRES_SUBSCRIPTION":"Agente: funzionalità richiede un abbonamento","INTEGRATION_NOT_FOUND":"Integrazione non trovata","INTEGRATION_INVALID_TYPE":"Tipo integrazione non valido","INTEGRATION_ALREADY_EXISTS":"Integrazione già esistente","INTEGRATION_MEMORI_IS_NOT_PUBLIC":"Agenti non pubblici non possono essere integrati","INTEGRATION_MISSING_INVOCATION_TEXT":"Integrazione: testo di invocazione mancante","INTEGRATION_MISSING_DEVICE_EMAILS":"Integrazione: email del dispositivo mancante","INTEGRATION_MEMORI_IS_EMPTY":"Agenti vuoti non possono essere integrati","INTEGRATION_MISSING_PRIVACY_POLICY":"Integrazione: privacy policy mancante","INTEGRATION_MISSING_CATEGORY":"Categoria integrazione mancante","INTEGRATION_MISSING_DESCRIPTION":"Descrizione integrazione mancante","INTEGRATION_INVALID_INVOCATION_TEXT":"Testo di invocazione non valido","INTEGRATION_GOOGLE_NO_MORE_AVAILABLE":"Google Home non più disponibile","UPLOAD_REQUIRES_MULTIPART_ENCODING":"L\'upload richiede l\'encoding multipart","UPLOAD_MISSING_CONTENT_TYPE_BOUNDARY":"Upload: manca il content type boundary","UPLOAD_MAX_LENGTH_EXCEEDED":"Upload: dimensione massima superata","UPLOAD_FILE_IS_EMPTY":"Upload: file vuoto","UPLOAD_INVALID_FILE_TYPE_OR_SIGNATURE":"Upload: tipo di file o firma non validi","UPLOAD_MISSING_FILE_NAME":"Upload: nome file mancante","UPLOAD_INVALID_MEMORY_ID":"Upload: ID contenuto non valido","UPLOAD_MISSING_FILE_CONTENT":"Upload: contenuto file mancante","ASSET_NOT_FOUND":"Asset non trovato","ASSET_NOT_ACCESSIBLE":"Asset non accessibile","ASSET_MISSING_SESSION_ID":"Asset: ID sessione mancante","ASSET_INVALID_FILE_NAME":"Asset: nome file non valido","ASSET_MALWARE_SCAN_THREATS_FOUND":"Asset: la scansione ha trovato minaccia malware","INVITATION_NOT_FOUND":"Invito non trovato","INVITATION_NOT_ACCESSIBLE":"Invito non accessibile","INVITATION_ALREADY_ACCEPTED":"Invito già accettato","INVITATION_ALREADY_REJECTED":"Invito già rifiutato","INVITATION_MISSING_DESTINATION_EMAIL":"Invito: email di destinazione mancante","INVITATION_DESTINATION_EMAIL_INVALID":"Invito: email di destinazione non valida","INVITATION_MISSING_TAG":"Invito: tag mancante","INVITATION_MISSING_PIN":"Invito: PIN mancante","INVITATION_INVALID_PIN":"Invito: PIN non valido","INVITATION_INVALID_TYPE":"Invito: tipo non valido","INVITATION_MISSING_DESTINATION_NAME":"Invito: nome destinatario mancante","INVITATION_TAG_PIN_CANT_BE_CHANGED":"Invito: tag e pin non possono essere cambiati","INVITATION_CANT_BE_CHANGED":"Invito: non può essere modificato","ACTIONLOG_INVALID_USER_ID":"ID utente non valido","ACTIONLOG_INVALID_DATE_FROM_FORMAT":"Data a partire da: formato non valido","ACTIONLOG_INVALID_DATE_TO_FORMAT":"Data fino a: formato non valido","ACTIONLOG_INVALID_MEMORI_ID":"ID agente non valido","CONSUMPTIONLOG_INVALID_TYPE":"Tipo di log non valido","CONSUMPTIONLOG_INVALID_DATE_FROM_FORMAT":"Data a partire da: formato non valido","CONSUMPTIONLOG_INVALID_DATE_TO_FORMAT":"Data fino a: formato non valido","CONSUMPTIONLOG_INVALID_USER_ID":"ID utente non valido","CONSUMPTIONLOG_INVALID_MEMORI_ID":"Memori ID non valido","NOTIFICATIONPREFS_INVALID_CHATLOG_EXTRACTION_PERIOD":"Notifiche: Periodo di estrazione chatlog non valido","BROADCAST_NOT_ALLOWED":"Broadcast non consentito","INVALID_NOTIFICATION_TYPE":"Tipo notifica non valido","NOTIFICATION_NOT_FOUND":"Notifica non trovata","INVALID_NOTIFICATION_FILTER":"Filtro notifica non valido","INVALID_NOTIFICATION_PERIOD":"Periodo notifica non valido","PROCESS_INVALID_TYPE":"Tipo di processo non valido","PROCESS_ALREADY_RUNNING":"Processo già in esecuzione","PROCESS_NOT_FOUND":"Processo non trovato","IMPORTCSV_MISSING_ROWS":"Importazione CSV: righe mancanti","IMPORTCSV_MISSING_CSV":"Importazione CSV: CSV mancante","IMPORTCSV_MISSING_SEPARATOR":"Importazione CSV: separatore mancante","IMPORTCSV_INVALID_SEPARATOR":"Importazione CSV: separatore non valido","IMPORTCSV_MISSING_HEADERS":"Importazione CSV: intestazioni mancanti","IMPORTCSV_MISSING_TITLE_VARIANT_SEPARATOR":"Importazione CSV: separatore varianti titolo mancante","IMPORTCSV_INVALID_RECEIVER_ID":"Importazione CSV: ID receiver non valido","IMPORTCSV_INVALID_MEDIA_LINK":"Importazione CSV: link media non valido","IMPORTCSV_INVALID_LINK_TITLE_HANDLING":"Importazione CSV: titolo link non valido","IMPORTCSV_UNDETECTABLE_CHAR_ENCODING":"Importazione CSV: encoding caratteri non rilevabile","IMPORTCSV_CANT_IMPORT_TO_SECRET_MEMORI":"Importazione CSV: impossibile importare in agenti segreti","IMPORTTXT_MISSING_ROWS":"Importazione TXT: righe mancanti","IMPORTTXT_INVALID_GRANULARITY":"Importazione TXT: granularità non valida","IMPORTTXT_INVALID_RECEIVER_ID":"Importazione TXT: ID receiver non valido","IMPORTTXT_INVALID_MEDIA_LINK":"Importazione TXT: link media non valido","IMPORTTXT_INVALID_LINK_TITLE_HANDLING":"Importazione TXT: titolo link non valido","IMPORTTXT_UNDETECTABLE_CHAR_ENCODING":"Importazione TXT: encoding caratteri non rilevabile","IMPORTTXT_CANT_IMPORT_TO_SECRET_MEMORI":"Importazione TXT: impossibile importare in agenti segreti","IMPORTTXT_IMPORT_LIMIT_EXCEEDED":"Importazione TXT: limite importazione superato","IMPORTTXT_IMPORT_ON_GPT4_REQUIRES_API_KEY":"Importazione TXT: importazione su GPT-4 richiede API key","IMPORTTXT_IMPORT_REQUIRES_PAYING":"Importazione TXT: importazione richiede un piano a pagamento","IMPORTTXT_BILLING_DENIED_PERMISSION":"Importazione TXT: non hai crediti sufficienti per l\'operazione","IMPORT_MISSING_ROWS":"Importazione: righe mancanti","IMPORT_CANT_IMPORT_TO_SECRET_MEMORI":"Importazione: impossibile importare in agenti segreti","IMPORTMEMORI_INVALID_MEMORI_SPECS":"Importazione MEMORI: specifiche agente non valide","IMPORT_MISSING_JSONL":"Importazione MEMORI: JSONL mancante","IMPORTMEMORI_INVALID_SPECS":"Importazione MEMORI: specifiche non valide","EXPORT_MISSING_PASSWORD":"Esportazione: password mancante","EXPORTCSV_MISSING_CSV_SPECS":"Esportazione CSV: specifiche CSV mancanti","EXPORTCSV_MISSING_SEPARATOR":"Esportazione CSV: separatore mancante","EXPORTCSV_INVALID_SEPARATOR":"Esportazione CSV: separatore non valido","EXPORTCSV_MISSING_TITLE_VARIANT_SEPARATOR":"Esportazione CSV: separatore varianti titolo mancante","EXPORTCSV_MISSING_NEW_LINE_CHAR":"Esportazione CSV: carattere di nuova riga mancante","EXPORTCSV_INVALID_NEW_LINE_CHAR":"Esportazione CSV: carattere di nuova riga non valido","EXPORTCSV_MISSING_PASSWORD":"Esportazione CSV: password mancante","EXPORTJSONL_MISSING_JSONL_SPECS":"Esportazione JSONL: specifiche JSONL mancanti","EXPORTJSONL_MISSING_PLATFORM":"Esportazione JSONL: piattaforma mancante","EXPORTJSONL_INVALID_PLATFORM":"Esportazione JSONL: piattaforma non valida","EXPORTJSONL_MISSING_PASSWORD":"Esportazione JSONL: password mancante","EXPORTJSONL_EXPORT_REQUIRES_PAYING":"Esportazione JSONL: esportazione richiede un piano a pagamento","ANALYSIS_MISSING_QUERY":"Analisi: query mancante","ANALYSIS_CANT_ANALYZE_SECRET_MEMORI":"Analisi: impossibile analizzare agenti segreti","ANALYSIS_USER_QUERY_MATCH_REQUIRES_DEEP_THOUGHT":"Analisi: corrispondenza query utente richiede Pensiero Profondo","BADGE_ASSIGNMENT_WRONG_OR_MISSING_CREDENTIALS":"Assegnazione badge: credenziali errate o mancanti","BADGE_ASSIGNMENT_MISSING_REF_ID":"Assegnazione badge: ID ref mancante","BADGE_ASSIGNMENT_OUTCOME_NOT_FOUND":"Assegnazione badge: esito non trovato","BADGE_ASSIGNMENT_MISSING_ASSERTION_URL":"Assegnazione badge: URL di asserzione mancante","BADGE_ASSIGNMENT_MISSING_BADGE_URL":"Assegnazione badge: URL badge mancante","BADGE_ASSIGNMENT_MISSING_ISSUER_URL":"Assegnazione badge: URL issuer mancante","BADGE_ASSIGNMENT_INVALID_URL":"Assegnazione badge: URL non valido","BADGE_ASSIGNMENT_MISSING_RECIPIENT":"Assegnazione badge: destinatario mancante","BADGE_ASSIGNMENT_UNKNOWN_RECIPIENT_TYPE":"Assegnazione badge: tipo destinatario sconosciuto","BADGE_ASSIGNMENT_MISSING_RECIPIENT_IDENTITY":"Assegnazione badge: identità destinatario mancante","BADGE_ASSIGNMENT_MISSING_RECIPIENT_HASH_TYPE":"Assegnazione badge: tipo hash destinatario mancante","BADGE_ASSIGNMENT_UNKNOWN_RECIPIENT_HASH_TYPE":"Assegnazione badge: tipo hash destinatario sconosciuto","BADGE_ASSIGNMENT_WRONG_RECIPIENT_IDENTITY":"Assegnazione badge: identità destinatario errata","BADGE_NOT_FOUND":"Badge non trovato","OUTCOME_NO_DCM_CONFIGURED":"Outcome: nessun DCM configurato","OUTCOME_USER_BADGES_DISABLED":"Outcome: badge utente disabilitati","COMPLETION_CONFIG_MISSING_NAME":"Configurazione completions: nome mancante","COMPLETION_CONFIG_MISSING_PROVIDER":"Configurazione completions: provider mancante","COMPLETION_CONFIG_MISSING_ENDPOINT":"Configurazione completions: endpoint mancante","COMPLETION_CONFIG_MISSING_API_KEY":"Configurazione completions: API key mancante","COMPLETION_CONFIG_MISSING_MODEL":"Configurazione completions: modello mancante","COMPLETION_CONFIG_NO_PURPOSE_SPECIFIED":"Configurazione completions: almeno un tipo di completions deve essere specificato","COMPLETION_CONFIG_INVALID_NAME":"Configurazione completions: nome non valido","COMPLETION_CONFIG_INVALID_PURPOSE":"Configurazione completions: tipo di completions non valido","COMPLETION_CONFIG_INVALID_ENDPOINT":"Configurazione completions: endpoint non valido","COMPLETION_CONFIG_INCONSISTENT_ENDPOINT":"Configurazione completions: endpoint incoerente","COMPLETION_CONFIG_INVALID_PROVIDER":"Configurazione completions: provider non valido","COMPLETION_CONFIG_NOT_FOUND":"Configurazione completions: non trovata","COMPLETION_CONFIG_NOT_ACCESSIBLE":"Configurazione completions: non accessibile","COMPLETION_CONFIG_NAME_RESERVED":"Configurazione completions: nome riservato","COMPLETION_CONFIG_NAME_ALREADY_EXISTS":"Configurazione completions: nome già esistente","COMPLETION_CONFIG_VISIBILITY_CHANGE_NOT_ALLOWED":"Configurazione completions: cambiamento visibilità non consentito","COMPLETION_CONFIG_MISSING_MANDATORY_PREFIX":"Configurazione completions: prefisso obbligatorio mancante","COMPLETION_CONFIG_VISIBILITY_NOT_PERMITTED":"Configurazione completions: visibilità non consentita","COMPLETION_CONFIG_USE_AS_DEFAULT_NOT_PERMITTED":"Configurazione completions: uso come default non consentito","COMPLETION_CONFIG_USE_AS_DEFAULT_REQUIRES_TENANT_VISIBILITY":"Configurazione completions: uso come default richiede visibilità tenant","COMPLETION_CONFIG_CHARGEABLE_NOT_PERMITTED":"Configurazione completions: chargeable non consentito","COMPLETION_CONFIG_INVALID_APPLY_TO":"Configurazione completions: apply to non valido","COMPLETION_CONFIG_APPLY_TO_TENANT_NOT_ALLOWED":"Configurazione completions: apply to tenant non consentito","TRUSTED_APPLICATION_NOT_FOUND":"Applicazione trusted non trovata","TRUSTED_APPLICATION_NOT_ACCESSIBLE":"Applicazione trusted non accessibile","TRUSTED_APPLICATION_NAME_REQUIRED":"Applicazione trusted: nome richiesto","TRUSTED_APPLICATION_TOKEN_REQUIRED":"Applicazione trusted: token richiesto","TRUSTED_APPLICATION_NAME_ALREADY_EXISTS":"Applicazione trusted: nome già esistente","TRUSTED_APPLICATION_INVALID_TOKEN":"Applicazione trusted: token non valido"}}');var XC={};XC=JSON.parse('{"yes":"Yes","no":"No","confirm":"Confirm","apply":"Apply","cancel":"Cancel","show":"Show","hide":"Hide","send":"Send","scrollToLatest":"Scroll to latest","scrollToContinueReading":"Scroll to continue reading","close":"Close","clearHistory":"Clear chat","clearHistoryDone":"Chat cleared.","moreInfo":"More info","back":"Back","edit":"Edit","delete":"Delete","loading":"Loading","expand":"Expand","collapse":"Collapse","expandable":{"expand":"Expand"},"fullscreenEnter":"Enter fullscreen","fullscreenExit":"Exit fullscreen","center":"Center","bottom":"Bottom","hidden":"Hidden","day":"Day","all":"All","today":"Today","yesterday":"Yesterday","placeholder":"Ask a question","last_7_days":"Last 7 days","last_30_days":"Last 30 days","month":"Month","copied":"Copied!","year":"Year","dayPlaceholder":"DD","monthPlaceholder":"MM","yearPlaceholder":"YYYY","createdAt":"Creation date","date":"Birth date","selected":"Selected","page":"page","actions":"Actions","next":"Next","previous":"Previous","copy":"Copy","copyRawCode":"Copy raw code","feedback":"Feedback","feedbackThankYou":"Thank you for your feedback.","copyFailed":"Could not copy","functionCache":"Function cache","copyToClipboard":"Copy to clipboard","showOriginalText":"Show original","showTranslatedText":"Show translation","exactPosition":"Exact position","uncertain":"Uncertain","question":"Question","nothingFound":"Nothing found","venue":"Venue","searchVenue":"Search for a place…","privacyPolicy":"Privacy policy","popularLanguages":"Popular","allLanguages":"All Languages","memoriBlockedTitle":"Blocked","memoriBlockedUntil":"Agent blocked until {{date}}","memoriBlockedAnon":"Currently \\"{{name}}\\" can\'t answer, come back here on {{date}}","memoriBlockedReasonExceedChats":"because it has exceeded the monthly threshold of allowed chats.","memoriBlockedGiverHelper":"You can still manage it as administrator, but other users will not be able to interact with it.","generatedByAI":"Answer generated by AI, may occasionally generate incorrect informations","aiGeneratedNote":"The agent may make mistakes. Make sure to verify important information.","reasoning":"Reasoning...","thinking":"Thinking","thought":"Thought","thoughtFor":"Thought for {{count}}s","whyThisAnswer":"Where this answer comes from","whyThisAnswerHelper":"This answer was generated automatically by an artificial intelligence based on these verified contents.","whyThisAnswerDescription":"Knowledge-base contents the agent consulted to reply.","whyThisAnswerYouAsked":"You asked","whyThisAnswerUserAsked":"The user asked","whyThisAnswerAgentReplied":"The agent replied","whyThisAnswerShowFull":"Show the full answer","whyThisAnswerContentsUsed":"Contents used","whyThisAnswerOpen":"Open","whyThisAnswerDisclaimer":"The agent wrote this answer from these contents: it may contain errors or rephrasings. Check important information at the source.","whyThisAnswerEmptyTitle":"No contents consulted","whyThisAnswerEmptyDescription":"For this question the agent found no matches in the knowledge base: it replied from its instructions only.","whyThisAnswerEmptyAuthorDescription":"The question produced no matches. If it should have, add a content that covers it.","whyThisAnswerAddContent":"Add to the knowledge base","whyThisAnswerConfidenceHigh":"Strong match","whyThisAnswerConfidenceMedium":"Partial match","whyThisAnswerConfidenceLow":"Weak match","whyThisAnswerTypeQuestion":"Question and answer","whyThisAnswerTypeDocument":"Document","whyThisAnswerTypeWebsite":"Website","whyThisAnswerTypeStory":"Story","whyThisAnswerSourcesCount_one":"{{count}} source","whyThisAnswerSourcesCount_other":"{{count}} sources","whyThisAnswerNoSources":"No sources","receiverLabel":"Assigned to","completionsEnabled":"Advanced AI, can respond with automatically generated answers that may sometimes contain incorrect information","completionProviderDown":"This agent is integrated with a generative AI from {{provider}}, but it is currently unavailable. Try again later.","completionProviderMajorOutage":"This agent is integrated with a generative AI from {{provider}}, but it is completely down. This feature will not be available until the service is restored.","completionProviderPartialOutage":"This agent is integrated with a generative AI from {{provider}}, but it is experiencing partial outages. Some features may be unavailable or perform poorly.","completionProviderDegraded":"This agent is integrated with a generative AI from {{provider}}, but it is performing slower than usual. Responses may take longer or be less accurate.","completionProviderFallbackName":"an external provider","completionProviderCheckStatusPage":"Check status page","boardOfExperts":"Board of experts","birthDate":"Birth date","birthDateHelper":"We ask for your birth date only to enable or disable functionalities that have age restrictions","underage":"You must be at least {{age}} years old to sign up.","underageTwinSession":"You must be at least {{age}} years old to interact with this agent.","errorFetchingSession":"Error during session loading","errorGettingReferralURL":"Error during referral loading","errorReopeningSession":"Error during session reopening","sessionExpiredReopening":"Session expired, reopening session","ageVerification":"Age verification","ageVerificationText":"To interact with this agent, you must be at least {{minAge}} years old.","ageVerificationSuccess":"Age verified with success.","nsfw":"NSFW: This agent contains adult contents","deepThought":"Deep Thought","deepThoughtWhatIs":"What is Deep Thought?","deepThoughtHelper":"Deep Thought is an advanced feature of the AI that will allow you to fully exploit your conversations by keeping track of them. The AI with Deep Thought can give you information tailored to you and the things you will share together. Allow the agent\'s author to contact you for commercial offers regarding products you have shown interest in.","deepThoughtDisclaimerTitle":"Deep Thought enabled","deepThoughtDisclaimer":"Deep Thought is an advanced feature of the AI that will allow you to fully exploit your conversations by keeping track of them. The AI with Deep Thought can give you information tailored to you and the things you will share together.","deepThoughtPreDisclaimerUnlogged":"Log in to enable Deep Thought.","deepThoughtPreDisclaimerNotAllowed":"Deep Thought is disabled since you didn\'t consent its usage, you can change this any time in your account settings.","notEnoughCredits":"The author of this agent does not have enough credits to answer your question.","confirmDialog":{"title":"Do you want to leave this page?","message":"The changes you made will be lost."},"knownFacts":{"title":"Known facts","description":"What {{memoriName}} remembers about you. You can delete each entry.","type":"Type","typeShortTerm":"Short term","typeLongTerm":"Long term","typeHelper":"Types:\\n- Short Term: this Known Fact is always used during conversations\\n- Long Term: this Known Fact is used during conversations only if relevant to the current question","text":"Text","searchPlaceholder":"Search known facts","select":"Select","loadMore":"Load more","factsCount_one":"{{count}} fact","factsCount_other":"{{count}} facts","shownOfTotal":"Showing {{shown}} of {{total}}","emptyTitle":"No facts yet","emptyDescription":"As you talk, the agent notes here what it learns about you. You can delete it at any time.","deleteLabel":"Delete this fact","deleteSuccess":"Known fact deleted","deleteConfirmTitle":"Delete known fact","deleteConfirmMessage":"Are you sure you want to delete this known fact?","deleteSelectedConfirmTitle":"Delete selected known facts","deleteSelectedConfirmMessage":"Are you sure you want to delete the selected known facts?","selected_one":"{{count}} fact selected","selected_other":"{{count}} facts selected","selectedRows_one":"{{count}} row selected","selectedRows_other":"{{count}} rows selected"},"auth":{"title":"Authentication","description":"This agent is protected. Enter the password to continue.","useRecoveryTokens":"Use recovery tokens","tokens":"Tokens","addToken":"Add token","usePassword":"Use password","passwordRequired":"Password required","invalidCredentials":"Invalid credentials","atLeast":"At least"},"widget":{"instruct":"Instruct","test":"Test","sound":"Audio","soundOff":"Audio off","position":"Position preferences","settings":"Settings","share":"Share","shareChat":"Share chat","sendOnKeypress":"Hit Enter to send","sendOnClick":"Click on Submit","boardOfExperts":"Board of experts","showExpertsInTheBoard":"Show experts in this board","expertsInTheBoard":"Experts in this board","goToIntegrationsToCustomizeAvatar":"To customize the avatar, go to Share and customize the public page","chatAssistantStatus":"Active • Replies in a few seconds","agentStatusListening":"listening","agentStatusSpeaking":"speaking","agentStatusProcessing":"processing","shareLocation":"Share location","shareLocationHint":"Get answers tailored to where you are","shareLocationAria":"Share location with the assistant","knownFactsHint":"What I remember about you","aiConsumption":"AI usage","editPositionAria":"Edit location","positionResolving":"Resolving address…","geocodingFailed":"Could not resolve the address. Try again or search manually.","positionUnavailableManual":"Location unavailable. Please enter it manually.","positionSharingEnabled":"Location shared.","headerHistory":"History","headerProfile":"Profile","headerLogin":"Log in","downloadQrCode":"Download QR Code","expandToImmersive":"Expand to immersive view","moreActions":"More actions","mobileSession":{"session":"Session","sessionInfo":"Session info","copyLinkOrDownload":"Copy link or download","currentlyOff":"Currently off","whatIKnowAboutYou":"Details of the information shared between you and {{memoriName}}","locationTracking":"Location tracking","locationStatus":"Status","useCurrentPosition":"Use current position","disableLocationSharing":"Disable location sharing","openKnownFacts":"Open full known facts","knownFactsMessages":"{{count}} messages in current session"}},"exportChatHistory":{"exportPDF":"Export chat as PDF","exporting":"Exporting...","empty":"No chat history to export","pdfNotSupported":"PDF export is not supported in this browser","success":"Chat exported to PDF successfully","error":"Failed to export chat to PDF. Please try again."},"write_and_speak":{"micButtonPopover":"Click the button to speak","micButtonPopoverListening":"Click the button to stop speak","stopRecording":"Stop recording","sendRecording":"Send voice message","recordingInProgress":"Recording in progress","pageInstructExplanation":"To teach me new things click on the INSTRUCT ME button to get started","pageTryMeExplanation":"To start talking to me click on the START button","pagePrivacyExplanation":"The conversations are visible by the author of the agent","aiDisclaimer":"The agent may make mistakes. Please verify the answers.","downloadChat":"Download chat","pagePrivacyExplanationList":{"allConversations":"All conversations with this agent are visible to the author of the agent","anonymousUser":"For anonymous users: the author will see the content of the conversation and your IP address","registeredUser":"For registered users: the author will see the content of the conversation and your username","contentAndUsername":"The author can see the content, your username and your IP address","contentAndIpAddress":"The author can see the content and your IP address","authorUsesInfo":"The author uses this information to improve the features of the agent and to provide you with a better service."},"instructButton":"INSTRUCT ME","tryMeButton":"START","resumeButton":"RESUME","chatHistory":"Chat history","chatHistoryDescription":"Show the chat history with this agent","loadingChatHistory":"Loading chat history...","noChatHistoryAvailable":"No chat history available","noResultsFound":"No results found for \\"{{searchText}}\\"","searchInChatHistory":"Search conversations","filters":"Filters","latestFirst":"Latest first","oldestFirst":"Oldest first","exportChat":"Export Chat","conversationStartedLabel":"Conversation started","settingsHeaderLabel":"Setup here if you want to set the continuous speech, and change the silence seconds if you want to customize them.","continuousSpeechLabel":"Continuous speech","continuousSpeechDisabled":"Continuous speech disabled because the agent is in mute mode","holdToSpeak":"Hold to speak","releaseToEndListening":"Release to end listening","pressAndHoldToSpeak":"Press and hold to speak","microphoneMode":"Microphone mode","hideEmissionsLabel":"Hide text emitted by the agent","showMessageConsumptionLabel":"Show message consumption","secondsLabel":"Set seconds","controlsPosition":"Controls position","avatarControls":"Avatar controls","height":"Height","depth":"Depth","avatarType":"Avatar type","suggestions":"Use the arrow keys to adjust the avatar height\\nUse +/- to adjust the avatar depth","blob":"Blob","avatar3d":"3D Avatar","zoomed":"Zoomed","normal":"Normal","far":"Far","enablePositionControls":"Enable position controls","tryMeHeaderLabel":"TRY","unknownPosition":"Unknown position","fieldPlace":"Write the place (eg \'Milano\')","showMapLinkFor":"Show the position on the map","useMyPosition":"Use my position","myPosition":"Your position","updatingPosition":"Updating position...","placeNotFound":"Place not found!","requirePosition":"Insert your position before start","requirePositionHelp":"To talk to {{name}} you have to decide whether to provide your position or not. This is because different answers that it can provide you may depend on where you are.","dontWantToProvidePosition":"Skip location","requireLoginHelp":"To talk to {{name}} you need to log in with your account first.","skipLocationTitle":"No map location will be saved.","locationSaved":"Your location was saved.","locationSavedWithPlace":"Your location was saved: {{place}}","locationSkippedConfirm":"You\'ll continue without sharing your location.","placeSelected":"Place selected: {{place}}","locationPermissionDenied":"Location access was denied. Allow location in your browser settings, or pick a place on the map.","locationUnavailable":"Your position could not be determined. Try again or search for a place.","locationRequestTimedOut":"Location request timed out. Try again or search for a place.","locationErrorGeneric":"Something went wrong while getting your location.","attachmentsLabel":"Enrich your message","image":"image","images":"images","file":"file","files":"files","function":"function","functions":"functions","iWantToTalkToIn":"I want to talk to {{name}} in","chatLanguageLabel":"Choose the conversation language","chatResumed":"Conversation resumed successfully.","message":"message","messages":"messages","page":"Page {{current}} of {{total}}","downloadThisConversation":"Download this conversation","downloadAllConversations":"Download all conversations","conversationsCount_one":"{{count}} conversation","conversationsCount_other":"{{count}} conversations","shownOfTotal":"Showing {{shown}} of {{total}}","loadMore":"Load more","backToConversationList":"Back to the conversation list","thisWeek":"This week"},"chatResume":{"resume":"Resume conversation"},"artifact":{"close":"Close","size":"Size","updated":"updated","updateFailed":"Update could not be applied","updateFailedHint":"The patch did not match the current content. Ask to rewrite the artifact.","generated":"Generated","download":"Download","print":"Print","external":"Open in a new window","type":"Type","fullscreen":"Fullscreen","exitFullscreen":"Exit fullscreen","generatedAt":"Generated at","copy":"Copy","open":"Open","code":"Code","source":"Source","preview":"Preview","resizeHandle":"Resize artifact panel","copied":"Copied!","error":"Error","generatingPdf":"Generating PDF...","copying":"Copying...","moreCopyOptions":"More copy options","copyAs":"Copy as","downloadAsMarkdown":"Download as Markdown","downloadRawMarkdownText":"Download raw markdown text","downloadAsPdf":"Download as PDF","exportAsPdfDocument":"Export as PDF document","downloadAsHtml":"Download as HTML","downloadFormattedHtml":"Download formatted HTML","viewMode":"View Mode","codeMode":"Code Mode","refresh":"Refresh","share":"Share","downloadAsJson":"Download as JSON","downloadJsonData":"Download JSON data","downloadAsPng":"Download as PNG","downloadPngImage":"Download PNG image","downloadAsJpeg":"Download as JPEG","downloadJpegImage":"Download JPEG image","downloadAsGif":"Download as GIF","downloadGifImage":"Download GIF image","downloadAsWebp":"Download as WebP","downloadWebpImage":"Download WebP image","copyAsSvg":"Copy as SVG","copySvgSourceCode":"Copy SVG source code","copyAsPlainText":"Copy as Plain Text","copyAsText":"Copy as text","copyAsLanguage":"Copy as {{language}}","copyLanguageCode":"Copy {{language}} code","copyWithoutSyntaxHighlighting":"Copy without syntax highlighting","copyTextContent":"Copy text content","pdfExportNotSupported":"PDF export is not supported in this browser","popupBlocked":"Popup blocked! Please enable popups to print.","safariPdfInstructions":"PDF export opened in new window. Please use Cmd+P (Mac) or Ctrl+P (Windows) to print and save as PDF."},"upload":{"loginRequired":"Login required","pastedText":"pasted-text","uploadNotification":"Upload Failed","loginRequiredDescription":"Please login to upload images","uploadFiles":"Upload files (drag and drop)","uploadFilesOrImages":"Upload files or images","uploadFilesWithShortcut":"{{shortcut}}+O to open file chooser","uploadImages":"Upload images","replace":"Replace","maxImagesReached":"You can upload up to {{max}} images","maxDocumentsReached":"You can upload up to {{max}} documents","remaining":"remaining","lastDocumentSlot":"Upload last document","uploadDocuments":"Upload documents","maxReached":"Max limit reached","imageTitle":"Image title: {{title}}","titleHelp":"Adding a descriptive title helps the AI provide more context and appropriate responses.","titlePlaceholder":"Enter image title","apiClientNotConfigured":"API client not configured properly for media upload","fileReadingFailed":"File reading failed","uploadFailed":"Upload failed","uploadSuccess":"Upload success","titleImage":"Add an image title","uploadSuccessDescription":"The file has been uploaded successfully","titleImageUpload":"Upload images","partialUpload":"Only {{uploaded}} images on {{total}} will be uploaded. Maximum {{max}} images allowed.","maxImages":"Maximum {{max}} images allowed.","upload":"Upload","dragAndDropFiles":"Drag and drop files here to add them to the chat","pasteMaxAttachmentsReached":"Maximum {{max}} attachments. Remove one to add this as a file.","pasteContentTooLong":"Pasted content is too long (max {{size}}KB). Shorten or split it.","pasteContentExceedsLimit":"Pasted content exceeds the size limit. Try shortening the text or splitting it into smaller parts.","pasteAddedAsAttachment":"Pasted content added as attachment","contextSizeExceedsLimit":"Context size exceeds the limit. Try reducing the number of files or content in the conversation.","filesNotAddedMaxAllowed":"{{count}} file(s) not added (maximum {{max}} files allowed).","documentsNotAddedMaxAllowed":"{{count}} document(s) not added (maximum {{max}} files allowed).","imagesNotAddedMaxAllowed":"{{count}} image(s) not added (maximum {{max}} files allowed).","documentsNotAddedContextSize":"{{count}} document(s) not added (context size limit).","partialAssetUploadWarning":"Some file links could not be uploaded, but the document was added anyway.","anonymousRetentionNotice":"Note: uploaded files are retained for a maximum of 24 hours."},"media":{"title":"Title","editAttributes":"Edit media attributes","uploadMimeTypeNotAllowed":"The file type is not allowed","uploadSizeLimitMessage":"The uploaded size is too big (max {{size}}MB)","uploadWrongResolutionMessage":"The resolution must be {{width}}x{{height}} pixel","memoriNameAlreadyUsed":"You already have an agent with this name","uploadHelperImages":"Upload a file with extension png, jpg, jpeg or gif, and having at maximum a size of {{size}}MB","uploadHelper":"Upload a file having at maximum a size of {{size}}MB","uploadError":"Upload failed","square":"square","scaleRatio":"Scale ratio","addMediaLabel":"Add a media","insertThisMediaMsg":"Insert these media","mediaUploadMessage":"Click to load a new media","addLinkLabel":"Add a link","linkKey":"URL","linkValue":"Link title","insertThisLink":"Insert a link to {{url}} with title {{title}}"},"gamification":{"level":"Level","points":"points","memoriReachedLevel":"became more evolved and reached level","levelGoToStatistics":"{{memori}} is at level {{level}} with {{points}} points. Click to go to statistics.","congratulationsNewLevel":"Congratulations, you have reached a new level!","congratulationsNewLevelDescription":"Your agent became more evolved with {{points}} points, look at the","statistics":"statistics"},"login":{"login":"Login","title":"Login to your account","logout":"Logout","user":"User","loggedDrawerTitle":"Hi, {{name}}!","userNameRequired":"Username required","userName":"Username","userNamePlaceholder":"Enter username","loginDrawerTitle":"Login","signupDrawerTitle":"Sign up","newUserSignUp":"New user?","signUp":"Sign up!","alreadyHaveAnAccount":"Already have an account?","backToLogin":"Back to login","registrationDisabled":"Registration is disabled","contactAdmin":"Contact the administrator to request access","userNameOrEmail":"Username or email","email":"Email","emailFormatError":"Please, insert a valid email","username":"Username","usernameContainsReservedWord":"Username contains a reserved word, please choose another one","usernameFormatError":"Username must be at least 3 characters long and contain only letters, numbers and _","otpCode":"Verification code","resendVerificationCode":"Resend code","resentVerificationCode":"Confirmation code sent! Please check your email.","welcomeTitle":"Welcome back","welcomeDescription":"Enter your 4-digit verification code to continue to your account","otpTitle":"Enter verification code","otpDescription":"Enter the 4-digit code you generated in your account","otpStep1":"Click the button below to open your account","otpStep2":"Generate a 4-digit verification code (valid for 5 minutes)","otpStep3":"Return here and enter the code","startOtpLogin":"Start verification","generateOtp":"Generate code","otpTimer":"Code expires in {{time}}","otpInvalidFormat":"Please enter a valid 4-digit code","otpInvalid":"Invalid verification code","otpError":"Error validating code. Please try again.","otpSuccess":"Login successful!","otpEmailTitle":"Enter your email","otpEmailDescription":"Enter your email address to receive a verification code","otpCodeDescription":"Enter the 4-digit code sent to {{email}}","emailPlaceholder":"Enter your email","sendOtp":"Send the code","resendOtp":"Resend","resendOtpIn":"Resend in {{seconds}}s","resendOtpPrompt":"Didn\'t arrive? Resend in {{seconds}} s","resendOtpQuestion":"Didn\'t arrive?","resending":"Resending...","backToEmail":"Back to email","editEmail":"Edit","otpSentToPrefix":"We sent a 4-digit code to","otpCodeShort":"Code","loginBenefitLine1":"{{memoriName}} can show you the chat history, which can be resumed at any time.","loginBenefit":"{{memoriName}} can show you the chat history, which can be resumed at any time.","passwordlessHint":"We\'ll send you a 4-digit code. No password to remember.","defaultAgentName":"the agent","otpSent":"Verification code sent!","otpResent":"Code resent successfully!","otpSendError":"Error sending code. Please try again.","emailRequired":"Email required","emailInvalid":"Please enter a valid email address","userNotFound":"User not found","otpNotFound":"Verification code not found","otpExpired":"Verification code has expired","otpMissing":"Verification code is required","otpAttemptsExceeded":"Too many attempts. Request a new verification code.","otpSuccessMessage":"Verification successful! Redirecting...","otpSuccessDescription":"Your account has been verified successfully. You will be redirected shortly.","otpHelp":"Enter the 4-digit code from your email","emailHelp":"We\'ll send you a verification code","userFetchError":"Error loading user data. Please try again.","otpStep1Title":"Enter Email","otpStep2Title":"Check Email","otpStep3Title":"Enter Code","featureFast":"Fast","featureSecure":"Secure","featureMobile":"Mobile","password":"Password","newPassword":"New password","confirmPassword":"Confirm Password","currentPassword":"Current password","passwordMatchingError":"Passwords do not match.","passwordFormatError":"Password must be at least 8 characters long and contain at least a number, an upper case letter, a lower case letter and a symbol","pwdWeak":"Weak","pwdAcceptable":"Acceptable","pwdStrong":"Strong","mustChangePassword":"You must change your password","passwordChange":"Change password","emailChange":"Change email","avatarChange":"Change avatar","avatarUploadSuccess":"Profile picture updated.","underage":"You must be at least {{age}} years old to sign up.","optional":"Optional","birthDate":"Birth date","birthDatePlaceholder":"DD/MM/YYYY","birthDateHelper":"We ask for your birth date only to enable or disable functionalities that have age restrictions","missingData":"Missing information","missingDataHelper":"We know that this is a bit annoying, but we need some more information to complete your registration.","goToAccountToChangeYourPreferences":"You can change your choice at any time from your Account page.","deepThoughtExplaination":"Deep Thought is an advanced feature of the AI that will allow you to fully exploit your conversations by keeping track of them. The AI with Deep Thought can give you information tailored to you and the things you will share together. Allow the agent\'s author to contact you for commercial offers regarding products you have shown interest in.","tnCAndPPAcceptedHelper":"Since your last login, T&C and Privacy Policy have changed. Please accept them, otherwise you won\'t be able to make changes to your Twins. You can always delete your account in your user profile page.","privacyLabel":"I have read and accepted the","privacyAndCookiePolicy":"Privacy e Cookie Policy","and":"and","termsOfService":"Terms of Service","pAndCUAccepted":"I accept the terms of service about Deep Thought","editAccount":"Edit account","save":"Save","welcomeUser":"Welcome User","verified":"Verified","premiumUser":"Premium","quickActions":"Quick Actions","editProfile":"Edit Profile","notifications":"Notifications","help":"Help","logoutConfirm":"Are you sure you want to logout?","comingSoon":"Coming soon!","accountOverview":"Account Overview","notSet":"Not set","accepted":"Accepted","pending":"Pending","termsStatus":"Terms Status","enabled":"Enabled","disabled":"Disabled","advancedFeatures":"Advanced Features","successfullyLoggedIn":"{{username}} has successfully logged in"},"chatLogs":{"llm":"LLM","model":"Model","provider":"Provider","tokens":"Tokens","input":"Input","output":"Output","cacheRead":"Cache read","cacheWrite":"Cache write","duration":"Duration","energy":"Energy","co2":"CO2","water":"Water","usageBadgesHint":"Click one of these buttons to show more information","totalChatConsumptionTitle":"Total Chat Consumption","modelUsage":"Model usage","environmentalImpact":"Environmental impact","impactComparisonUnavailable":"Indicative comparison unavailable.","impactComparisonEnergy":"Indicative comparison: roughly like keeping a 10 W LED bulb on for {{duration}}.","impactComparisonCo2":"Indicative comparison: about {{distance}} traveled by an average gasoline car.","impactComparisonWater":"Indicative comparison: about {{count}} drops of water.","energyImpactDescription":"This value estimates the electrical energy needed to generate the model response. It helps compare prompts, models, and strategies even when a single message has a very small impact.","co2ImpactDescription":"CO2 equivalent represents the estimated climate impact of the message. Converting consumption into emissions helps understand AI impact with comparable metrics.","waterImpactDescription":"This indicator shows the estimated water footprint associated with processing the message. It includes water indirectly used by the energy and infrastructure supporting computation.","approximateValuesTooltip":"These values are approximate.","anyMessage":"Any message","atLeast":"At least {{count}} messages","atLeast1":"At least 1 message","atLeast2":"At least 2 messages","atLeast3":"At least 3 messages","atLeast5":"At least 5 messages","atLeast10":"At least 10 messages","atLeast15":"At least 15 messages","atLeast20":"At least 20 messages","customMinimumMessages":"Customize the number of messages"},"success":"Success","Error":"Error","internal server error":"Oupsie, sorry... Something went wrong on the server","error":"Error","error.loading":"Error while loading content.","error.generic":"Oupsie, sorry... something went wrong.","error.serverNotResponding":"We are doing maintenance or releasing updates. Please try again later.","error.notFound":"Oupsie, we didn\'t find the page you were looking for.","error.goBackTo":"You can try to go back to the","error.reloadPage":"Reload the page","error.tryAgain":"Try again","error.unauthorized":"You are unauthorized to view this content.","error.unprocessableEntity":"Error while processing the request. Check the data you entered.","errors":{"TENANT_NOT_FOUND":"Tenant not found","TENANT_REGISTRATION_DISABLED":"Registration on this platform is disabled","TENANT_MISSING_NAME":"Tenant: name missing","TENANT_MAX_USERS_REACHED":"Maximum number of users reached","TENANT_MAX_ADMINS_REACHED":"Maximum number of admin users reached","TENANT_ALREADY_EXISTS":"Tenant already exists","TENANT_MISSING_DESCRIPTION":"Tenant: description missing","TENANT_CANT_SET_COMPLETION_PROVIDER":"Tenant: can\'t set completion provider","TENANT_INVALID_TYPE":"Tenant: invalid type","USER_NOT_CONFIRMED":"User still not confirmed","USER_NOT_FOUND":"User not found","USER_OR_PASSWORD_INVALID":"Invalid user or password","USER_MUST_CHANGE_PASSWORD":"You must change your password","USER_MUST_ENTER_VERIFICATION_CODE":"You must enter the verification code","USER_MISSING_TENANT":"User: missing tenant","USER_MISSING_NAME":"User: name is missing","USER_MISSING_PASSWORD":"User: password missing","USER_MISSING_EMAIL":"User: Missing email","USER_MISSING_VERIFICATION_CODE":"User: Missing verification code","USER_NAME_ALREADY_USED":"User name already in use","USER_PASSWORD_NOT_CONFORMING_TO_POLICY":"The password does not meet the security rules","USER_EMAIL_ALREADY_USED":"Email already in use","USER_EMAIL_INVALID":"Invalid email","USER_VERIFICATION_CODE_INVALID":"Invalid verification code","USER_MISSING_NAME_OR_EMAIL":"Missing username or email","USER_NAME_INVALID":"Invalid user name","USER_HAS_ONE_OR_MORE_MEMORI":"The user has one or more memories","USER_MISSING_NEW_PASSWORD":"User: new password missing","USER_NOTHING_TO_DO":"Nothing to do","USER_CANT_CREATE_MEMORI":"User not allowed to create agents","USER_MAX_MEMORI_REACHED":"Maximum number of agents reached","USER_TOO_MANY_ATTEMPTS":"Too many attempts","USER_MUST_ACCEPT_TNC_AND_PP":"You must accept the terms and conditions","USER_BIRTH_DATE_CANT_BE_CHANGED":"Date of birth cannot be changed","USER_CANT_SET_COMPLETION_PROVIDER":"User: not allowed to manage completion provider","USER_CANT_ENABLE_DEEP_THOUGHT":"User: not enabled to manage Deep Thought","USER_CANT_ENABLE_DCM_INTEGRATION":"User: not enabled to manage DCM integration","USER_CANT_ENABLE_CHAINING_OR_BOARD_OF_EXPERTS":"User: not allowed to manage chaining or expert group","USER_CREATION_BILLING_DENIED_PERMISSION":"You don\'t have enough credits to create an agent","USER_HAS_ONE_OR_MORE_COMPLETION_CONFIGS":"The user has one or more completion configurations","USER_CANT_BE_DELETED":"User can\'t be deleted","USER_ORDER_BY_INVALID":"Order by invalid","MEMORI_NOT_FOUND":"Agent not found","MEMORI_NOT_ACCESSIBLE":"Agent not accessible","MEMORI_ONLY_OWNER_CAN_CHANGE_GIVER_TAG_AND_PIN":"Only owner can change tag or pin","SESSION_NOT_FOUND":"Session not found","SESSION_IS_NOT_ADMINISTRATIVE":"Non-administrative session","SESSION_EXPIRED":"Session expired","speechMissingSession":"Speech needs an active session","speechInvalidSession":"This session is not valid","speechTenantMismatch":"Speech is not available on this site","speechRateLimited":"Too many speech requests. Wait a moment and try again.","SESSION_OTP_NOT_FOUND":"Verification code not found","SESSION_OTP_EXPIRED":"Verification code has expired","SESSION_OTP_INVALID":"Invalid verification code","SESSION_OTP_ATTEMPTS_EXCEEDED":"Too many attempts. Request a new verification code.","MEMORI_MISSING_CONFIGURATION":"Agent: missing configuration","MEMORI_CONFIGURATION_NOT_FOUND":"Agent: configuration not found","MEMORI_INVALID_PRIVACY_TYPE":"Agent: invalid privacy type","MEMORI_MISSING_PASSWORD":"Agent: missing password","MEMORI_INVALID_TOTAL_NUMBER_OF_RECOVERY_TOKENS":"Agent: total number of invalid recovery tokens","MEMORI_INVALID_MINIMUM_NUMBER_OF_RECOVERY_TOKENS":"Agent: minimum number of invalid recovery tokens","MEMORI_INVALID_VOICE_TYPE":"Agent: invalid voice type","MEMORI_MISSING_NAME":"Agent: missing name","MEMORI_MISSING_PASSWORD_OR_RECOVERY_TOKENS":"Agent: missing password or recovery token","MEMORI_INVALID_ID":"Agent: invalid ID","MEMORI_NAME_ALREADY_USED":"Agent name already in use","MEMORI_INVALID_PIN":"Agent: Invalid PIN","MEMORI_GIVER_TAG_PIN_CHANGE_REQUIRES_SEPARATE_OPERATION":"Agent: TAG and PIN change require separate operations","MEMORI_NO_PASSWORD_WHEN_PUBLIC":"Agent: no password required when public","MEMORI_DEEP_THOUGHT_REQUIRES_COMPLETIONS":"Deep Thought requires completions to be enabled","MEMORI_BOARD_OF_EXPERTS_REQUIRES_COMPLETIONS":"The expert group requires completions to be enabled","MEMORI_INVALID_COMPLETION_CONFIG":"Agent: invalid completions configuration","MEMORI_MACRO_FUNCTIONS_REQUIRES_COMPLETIONS":"Macro functions requires completions to be enabled","MEMORI_BLOCKING_DATE_MISSING_OR_WRONG":"Agent: blocking date missing or wrong","MEMORI_LIST_FILTER_NOT_SPECIFIED":"Agent: list filter not specified","MEMORI_TRANSFER_MISSING_DESTINATION_USER":"Transfer: missing destination user","MEMORI_TRANSFER_INVALID_DESTINATION_USER_ID":"Transfer: invalid destination user ID","MEMORI_TRANSFER_DESTINATION_USER_DATA_INCONSISTENT":"Transfer: invalid destination user data","MEMORI_TRANSFER_NOTHING_TO_DO":"Transfer: nothing to do","MEMORI_CONFIGURATION_CANT_BE_CHANGED":"Agent: configuration cannot be changed","MEMORI_MISSING_NEW_PASSWORD":"Agent: new password missing","MEMORI_FEATURE_REQUIRES_SUBSCRIPTION":"Feature requires subscription","INTEGRATION_NOT_FOUND":"Integration not found","MEMORI_SESSIONS_INVALID_DATE_FROM_FORMAT":"Invalid date from format","MEMORI_SESSIONS_INVALID_DATE_TO_FORMAT":"Invalid date to format","MEMORI_SESSION_NOT_FOUND":"Session not found","MEMORI_SESSION_DOESNT_ACCEPT_MEDIA":"Session doesn\'t accept media","INTEGRATION_INVALID_TYPE":"Invalid integration type","INTEGRATION_ALREADY_EXISTS":"Integration already exists","INTEGRATION_MEMORI_IS_NOT_PUBLIC":"Non-public memories cannot be integrated","INTEGRATION_MISSING_INVOCATION_TEXT":"Integration: missing invocation text","INTEGRATION_MISSING_DEVICE_EMAILS":"Integration: missing device email","INTEGRATION_MEMORI_IS_EMPTY":"Empty memories cannot be integrated","INTEGRATION_MISSING_PRIVACY_POLICY":"Integration: privacy policy missing","INTEGRATION_MISSING_CATEGORY":"Integration category missing","INTEGRATION_MISSING_DESCRIPTION":"Missing integration description","INTEGRATION_INVALID_INVOCATION_TEXT":"Invalid invocation text","INTEGRATION_GOOGLE_NO_MORE_AVAILABLE":"Google Home no more available","UPLOAD_REQUIRES_MULTIPART_ENCODING":"Upload requires multipart encoding","UPLOAD_MISSING_CONTENT_TYPE_BOUNDARY":"Upload: missing content type boundary","UPLOAD_MAX_LENGTH_EXCEEDED":"Upload: maximum size exceeded","UPLOAD_FILE_IS_EMPTY":"Upload: empty file","UPLOAD_INVALID_FILE_TYPE_OR_SIGNATURE":"Upload: invalid file type or signature","UPLOAD_MISSING_FILE_NAME":"Upload: missing file name","UPLOAD_INVALID_MEMORY_ID":"Upload: Invalid content ID","UPLOAD_MISSING_FILE_CONTENT":"Upload: Missing file content","ASSET_NOT_FOUND":"Asset not found","ASSET_NOT_ACCESSIBLE":"Asset not accessible","ASSET_MISSING_SESSION_ID":"Asset: missing session ID","ASSET_INVALID_FILE_NAME":"Asset: invalid file name","ASSET_MALWARE_SCAN_THREATS_FOUND":"Asset: found malware threats","INVITATION_NOT_FOUND":"Invitation not found","INVITATION_NOT_ACCESSIBLE":"Invitation not accessible","INVITATION_ALREADY_ACCEPTED":"Invitation already accepted","INVITATION_ALREADY_REJECTED":"Invitation already rejected","INVITATION_MISSING_DESTINATION_EMAIL":"Invitation: missing destination email","INVITATION_DESTINATION_EMAIL_INVALID":"Invitation: destination email invalid","INVITATION_MISSING_TAG":"Invitation: missing tag","INVITATION_MISSING_PIN":"Invitation: PIN missing","INVITATION_INVALID_PIN":"Invitation: invalid PIN","INVITATION_INVALID_TYPE":"Invitation: invalid type","INVITATION_MISSING_DESTINATION_NAME":"Invitation: destination name missing","INVITATION_TAG_PIN_CANT_BE_CHANGED":"Invitation: tag and pin can\'t be changed","INVITATION_CANT_BE_CHANGED":"Intation: can\'t be changed","ACTIONLOG_INVALID_USER_ID":"Invalid user ID","ACTIONLOG_INVALID_DATE_FROM_FORMAT":"Date from: invalid format","ACTIONLOG_INVALID_DATE_TO_FORMAT":"Date to: invalid format","ACTIONLOG_INVALID_MEMORI_ID":"Invalid Memori ID","CONSUMPTIONLOG_INVALID_TYPE":"Invalid log type","CONSUMPTIONLOG_INVALID_DATE_FROM_FORMAT":"Date from: invalid format","CONSUMPTIONLOG_INVALID_DATE_TO_FORMAT":"Date to: invalid format","CONSUMPTIONLOG_INVALID_USER_ID":"Invalid user ID","CONSUMPTIONLOG_INVALID_MEMORI_ID":"Invalid Memori ID","NOTIFICATIONPREFS_INVALID_CHATLOG_EXTRACTION_PERIOD":"Notifications: Invalid chat log extraction period","BROADCAST_NOT_ALLOWED":"Broadcast not allowed","INVALID_NOTIFICATION_TYPE":"Invalid notification type","NOTIFICATION_NOT_FOUND":"Notification not found","INVALID_NOTIFICATION_FILTER":"Invalid notification filter","INVALID_NOTIFICATION_PERIOD":"Invalid notification period","PROCESS_INVALID_TYPE":"Invalid process type","PROCESS_ALREADY_RUNNING":"Process already running","PROCESS_NOT_FOUND":"Process not found","IMPORTCSV_MISSING_ROWS":"CSV import: missing rows","IMPORTCSV_MISSING_CSV":"CSV Import: Missing CSV","IMPORTCSV_MISSING_SEPARATOR":"CSV import: missing separator","IMPORTCSV_INVALID_SEPARATOR":"CSV import: invalid separator","IMPORTCSV_MISSING_HEADERS":"CSV import: missing headers","IMPORTCSV_MISSING_TITLE_VARIANT_SEPARATOR":"CSV import: missing title variant separator","IMPORTCSV_INVALID_RECEIVER_ID":"CSV import: invalid receiver ID","IMPORTCSV_INVALID_MEDIA_LINK":"CSV import: invalid media link","IMPORTCSV_INVALID_LINK_TITLE_HANDLING":"CSV import: invalid link title","IMPORTCSV_UNDETECTABLE_CHAR_ENCODING":"CSV import: undetectable character encoding","IMPORTCSV_CANT_IMPORT_TO_SECRET_MEMORI":"CSV Import: Cannot import to Secret Memories","IMPORTTXT_MISSING_ROWS":"Importing TXT: missing rows","IMPORTTXT_INVALID_GRANULARITY":"Import TXT: invalid granularity","IMPORTTXT_INVALID_RECEIVER_ID":"Import TXT: invalid receiver ID","IMPORTTXT_INVALID_MEDIA_LINK":"Import TXT: invalid media link","IMPORTTXT_INVALID_LINK_TITLE_HANDLING":"Import TXT: invalid link title","IMPORTTXT_UNDETECTABLE_CHAR_ENCODING":"TXT import: undetectable character encoding","IMPORTTXT_CANT_IMPORT_TO_SECRET_MEMORI":"TXT Import: Cannot import to Secret Memories","IMPORTTXT_IMPORT_LIMIT_EXCEEDED":"Import TXT: import limit exceeded","IMPORTTXT_IMPORT_ON_GPT4_REQUIRES_API_KEY":"Import TXT: import on GPT-4 requires API key","IMPORTTXT_IMPORT_REQUIRES_PAYING":"Import TXT: Import requires a paying plan","IMPORTTXT_BILLING_DENIED_PERMISSION":"Import TXT: you don\'t have enough credits for the operation","IMPORT_MISSING_ROWS":"Import: missing rows","IMPORT_CANT_IMPORT_TO_SECRET_MEMORI":"Import: can\'t import to Secret Memories","IMPORTMEMORI_INVALID_MEMORI_SPECS":"Import MEMORI: invalid memory specs","IMPORT_MISSING_JSONL":"Import: missing JSONL","IMPORTMEMORI_INVALID_SPECS":"Import MEMORI: invalid specs","EXPORT_MISSING_PASSWORD":"Export: missing password","EXPORTCSV_MISSING_CSV_SPECS":"CSV export: missing CSV specifications","EXPORTCSV_MISSING_SEPARATOR":"CSV export: missing separator","EXPORTCSV_INVALID_SEPARATOR":"CSV export: invalid separator","EXPORTCSV_MISSING_TITLE_VARIANT_SEPARATOR":"CSV export: missing title variant separator","EXPORTCSV_MISSING_NEW_LINE_CHAR":"CSV export: missing newline character","EXPORTCSV_INVALID_NEW_LINE_CHAR":"CSV export: invalid newline character","EXPORTCSV_MISSING_PASSWORD":"CSV export: missing password","EXPORTJSONL_MISSING_JSONL_SPECS":"JSONL export: missing JSONL specifications","EXPORTJSONL_MISSING_PLATFORM":"JSONL export: missing platform","EXPORTJSONL_INVALID_PLATFORM":"JSONL export: invalid platform","EXPORTJSONL_MISSING_PASSWORD":"JSONL export: missing password","EXPORTJSONL_EXPORT_REQUIRES_PAYING":"JSONL Export: Export requires a paid plan","ANALYSIS_MISSING_QUERY":"Analysis: missing query","ANALYSIS_CANT_ANALYZE_SECRET_MEMORI":"Analysis: Unable to analyze Secret Memories","ANALYSIS_USER_QUERY_MATCH_REQUIRES_DEEP_THOUGHT":"Analysis: matching user query requires Deep Thinking","BADGE_ASSIGNMENT_WRONG_OR_MISSING_CREDENTIALS":"Badge assignment: incorrect or missing credentials","BADGE_ASSIGNMENT_MISSING_REF_ID":"Badge assignment: ref ID missing","BADGE_ASSIGNMENT_OUTCOME_NOT_FOUND":"Badge assignment: result not found","BADGE_ASSIGNMENT_MISSING_ASSERTION_URL":"Badge assignment: Missing assertion URL","BADGE_ASSIGNMENT_MISSING_BADGE_URL":"Badge Assignment: Missing Badge URL","BADGE_ASSIGNMENT_MISSING_ISSUER_URL":"Badge assignment: missing issuer URL","BADGE_ASSIGNMENT_INVALID_URL":"Badge assignment: Invalid URL","BADGE_ASSIGNMENT_MISSING_RECIPIENT":"Badge assignment: missing recipient","BADGE_ASSIGNMENT_UNKNOWN_RECIPIENT_TYPE":"Badge assignment: unknown recipient type","BADGE_ASSIGNMENT_MISSING_RECIPIENT_IDENTITY":"Badge assignment: missing recipient identity","BADGE_ASSIGNMENT_MISSING_RECIPIENT_HASH_TYPE":"Badge assignment: missing recipient hash type","BADGE_ASSIGNMENT_UNKNOWN_RECIPIENT_HASH_TYPE":"Badge assignment: recipient hash type unknown","BADGE_ASSIGNMENT_WRONG_RECIPIENT_IDENTITY":"Badge assignment: incorrect recipient identity","BADGE_NOT_FOUND":"Badge not found","OUTCOME_NO_DCM_CONFIGURED":"Outcome: no DCM configured","OUTCOME_USER_BADGES_DISABLED":"Outcome: user badges disabled","COMPLETION_CONFIG_MISSING_NAME":"Completions configuration: missing name","COMPLETION_CONFIG_MISSING_PROVIDER":"Completions configuration: missing provider","COMPLETION_CONFIG_MISSING_ENDPOINT":"Completions configuration: missing endpoint","COMPLETION_CONFIG_MISSING_API_KEY":"Completions configuration: missing API key","COMPLETION_CONFIG_MISSING_MODEL":"Completions configuration: missing model","COMPLETION_CONFIG_NO_PURPOSE_SPECIFIED":"Completions configuration: at least one completions type must be specified","COMPLETION_CONFIG_INVALID_NAME":"Completions configuration: invalid name","COMPLETION_CONFIG_INVALID_PURPOSE":"Completions configuration: invalid completions type","COMPLETION_CONFIG_INVALID_ENDPOINT":"Completions configuration: invalid endpoint","COMPLETION_CONFIG_INCONSISTENT_ENDPOINT":"Completions configuration: inconsistent endpoint","COMPLETION_CONFIG_INVALID_PROVIDER":"Completions configuration: invalid provider","COMPLETION_CONFIG_NOT_FOUND":"Completions configuration: not found","COMPLETION_CONFIG_NOT_ACCESSIBLE":"Completions configuration: not accessible","COMPLETION_CONFIG_NAME_RESERVED":"Completions configuration: name reserved","COMPLETION_CONFIG_NAME_ALREADY_EXISTS":"Completions configuration: name already exists","COMPLETION_CONFIG_VISIBILITY_CHANGE_NOT_ALLOWED":"Completions configuration: visibility change not allowed","COMPLETION_CONFIG_MISSING_MANDATORY_PREFIX":"Completions configuration: missing mandatory prefix","COMPLETION_CONFIG_VISIBILITY_NOT_PERMITTED":"Completions configuration: visibility not permitted","COMPLETION_CONFIG_USE_AS_DEFAULT_NOT_PERMITTED":"Completions configuration: use as default not permitted","COMPLETION_CONFIG_USE_AS_DEFAULT_REQUIRES_TENANT_VISIBILITY":"Completions configuration: use as default requires tenant visibility","COMPLETION_CONFIG_CHARGEABLE_NOT_PERMITTED":"Completions configuration: chargeable not permitted","COMPLETION_CONFIG_INVALID_APPLY_TO":"Completions configuration: apply to invalid","COMPLETION_CONFIG_APPLY_TO_TENANT_NOT_ALLOWED":"Completions configuration: apply to tenant not allowed","TRUSTED_APPLICATION_NOT_FOUND":"Trusted application not found","TRUSTED_APPLICATION_NOT_ACCESSIBLE":"Trusted application not accessible","TRUSTED_APPLICATION_NAME_REQUIRED":"Trusted application: name required","TRUSTED_APPLICATION_TOKEN_REQUIRED":"Trusted application: token required","TRUSTED_APPLICATION_NAME_ALREADY_EXISTS":"Trusted application: name already exists","TRUSTED_APPLICATION_INVALID_TOKEN":"Trusted application: invalid token"}}');var XM={};XM=JSON.parse('{"yes":"Oui","no":"Non","confirm":"Confirmer","apply":"Appliquer","cancel":"Annuler","show":"Montrer","hide":"Cacher","send":"Envoyer","scrollToLatest":"Aller au dernier message","scrollToContinueReading":"Faites défiler pour continuer à lire","close":"Fermer","clearHistory":"Effacer la conversation","clearHistoryDone":"Conversation effacée.","moreInfo":"Plus d\'informations","back":"Retour","edit":"Modifier","delete":"Supprimer","loading":"Chargement","expand":"Développer","collapse":"Réduire","expandable":{"expand":"Développer"},"fullscreenEnter":"Entrez en plein écran","fullscreenExit":"Quitter le plein écran","center":"Centre","bottom":"Bas","hidden":"Caché","day":"Jour","month":"Mois","year":"Année","placeholder":"Faites une question","createdAt":"Date de création","all":"Tous","today":"Aujourd\'hui","date":"Date de naissance","yesterday":"Hier","last_7_days":"7 derniers jours","copied":"Copié !","missingData":"Informations manquantes","last_30_days":"30 derniers jours","selected":"Choisi","page":"page","actions":"Actes","next":"Suivant","previous":"Précédent","copy":"Copie","copyRawCode":"Copier le code brut","feedback":"Commentaires","feedbackThankYou":"Merci pour votre retour.","copyFailed":"Impossible de copier","functionCache":"Cache des fonctions","copyToClipboard":"Copier dans le presse-papier","showOriginalText":"Afficher l\'original","showTranslatedText":"Afficher la traduction","exactPosition":"Position exacte","uncertain":"Incertain","question":"Question","nothingFound":"Rien trouvé","venue":"Lieu","searchVenue":"Rechercher un lieu…","popularLanguages":"Populaires","allLanguages":"Toutes les langues","memoriBlockedTitle":"Bloqué","memoriBlockedUntil":"Agent bloqué jusqu\'à {{date}}","memoriBlockedAnon":"Actuellement \\"{{name}}\\"Je ne peux pas répondre, reviens ici {{date}}","memoriBlockedReasonExceedChats":"car il a dépassé le seuil mensuel de chats autorisés.","memoriBlockedGiverHelper":"Vous pouvez toujours le gérer en tant qu\'administrateur, mais les autres utilisateurs ne pourront pas interagir avec lui.","generatedByAI":"Réponse générée par l\'IA, peut occasionnellement générer des informations incorrectes","aiGeneratedNote":"L\'agent peut faire des erreurs. Assurez-vous de vérifier les informations importantes.","reasoning":"Réflexion...","thinking":"Réflexion","thought":"Réflexion","thoughtFor":"Réfléchi pendant {{count}} s","whyThisAnswer":"D\'où vient cette réponse","whyThisAnswerHelper":"Cette réponse a été générée automatiquement par une intelligence artificielle basée sur ces contenus vérifiés.","whyThisAnswerDescription":"Les contenus de la base de connaissances consultés par l\'agent pour répondre.","whyThisAnswerYouAsked":"Vous avez demandé","whyThisAnswerUserAsked":"Question de l\'utilisateur","whyThisAnswerAgentReplied":"L\'agent a répondu","whyThisAnswerShowFull":"Afficher la réponse complète","whyThisAnswerContentsUsed":"Contenus utilisés","whyThisAnswerOpen":"Ouvrir","whyThisAnswerDisclaimer":"La réponse a été rédigée par l\'agent à partir de ces contenus : elle peut contenir des erreurs ou des reformulations. Vérifiez les informations importantes à la source.","whyThisAnswerEmptyTitle":"Aucun contenu consulté","whyThisAnswerEmptyDescription":"Pour cette question, l\'agent n\'a trouvé aucune correspondance dans la base de connaissances : il a répondu uniquement d\'après ses instructions.","whyThisAnswerEmptyAuthorDescription":"La question n\'a produit aucune correspondance. Si elle devrait en avoir, ajoutez un contenu qui la couvre.","whyThisAnswerAddContent":"Ajouter à la base de connaissances","whyThisAnswerConfidenceHigh":"Correspondance élevée","whyThisAnswerConfidenceMedium":"Correspondance partielle","whyThisAnswerConfidenceLow":"Correspondance faible","whyThisAnswerTypeQuestion":"Question et réponse","whyThisAnswerTypeDocument":"Document","whyThisAnswerTypeWebsite":"Site web","whyThisAnswerTypeStory":"Récit","whyThisAnswerSourcesCount_one":"{{count}} source","whyThisAnswerSourcesCount_other":"{{count}} sources","whyThisAnswerNoSources":"Aucune source","receiverLabel":"Assigné à","completionsEnabled":"L\'IA avancée peut répondre avec des réponses générées automatiquement qui peuvent parfois contenir des informations incorrectes","completionProviderDown":"Ce Agent est intégré à une IA générative de {{provider}}, mais il est actuellement indisponible. ","completionProviderMajorOutage":"Ce Agent est intégré à une IA générative de {{provider}}, mais il est actuellement indisponible. Cette fonctionnalité ne sera pas disponible tant que le service ne sera pas restauré.","completionProviderPartialOutage":"Ce Agent est intégré à une IA générative de {{provider}}, mais il est actuellement indisponible. Cette fonctionnalité ne sera pas disponible tant que le service ne sera pas restauré.","completionProviderDegraded":"Ce Agent est intégré à une IA générative de {{provider}}, mais il est actuellement indisponible. Cette fonctionnalité ne sera pas disponible tant que le service ne sera pas restauré.","completionProviderFallbackName":"un prestataire externe","completionProviderCheckStatusPage":"Vérifier la page d\'état","boardOfExperts":"Conseil d\'experts","birthDate":"Date de naissance","birthDateHelper":"Nous demandons votre date de naissance uniquement pour activer ou désactiver les fonctionnalités qui ont des restrictions d\'âge","underage":"Vous devez être au moins {{age}} ans pour s\'inscrire.","underageTwinSession":"Vous devez être au moins {{age}} ans pour interagir avec ce Agent.","errorFetchingSession":"Erreur lors du chargement de la session","errorGettingReferralURL":"Erreur lors du chargement du référent","errorReopeningSession":"Erreur lors de la re-ouverture de la session","sessionExpiredReopening":"Session expirée, réouverture en cours","ageVerification":"Vérification de l\'âge","ageVerificationText":"Pour interagir avec ce Agent, vous devez être au minimum {{minAge}} ans.","ageVerificationSuccess":"Âge vérifié avec succès.","nsfw":"NSFW : Ce jumeau contient du contenu pour adultes","deepThought":"Pensée profonde","deepThoughtWhatIs":"Qu\'est-ce que Deep Thought ?","deepThoughtHelper":"Deep Thought est une fonctionnalité avancée de l\'IA qui vous permettra d\'exploiter pleinement vos conversations en les gardant une trace. ","deepThoughtDisclaimerTitle":"Pensée profonde activée","deepThoughtDisclaimer":"Deep Thought est une fonctionnalité avancée de l\'IA qui vous permettra d\'exploiter pleinement vos conversations en les gardant une trace. ","deepThoughtPreDisclaimerUnlogged":"Connectez-vous pour activer Deep Thought.","deepThoughtPreDisclaimerNotAllowed":"Deep Thought est désactivé car vous n\'avez pas consenti à son utilisation, vous pouvez le modifier à tout moment dans les paramètres de votre compte.","notEnoughCredits":"L\'auteur de ce Agent n\'a pas suffisamment de crédits pour répondre à votre question.","confirmDialog":{"title":"Voulez-vous quitter cette page ?","message":"Les modifications que vous avez apportées seront perdues."},"knownFacts":{"title":"Faits connus","description":"Ce que {{memoriName}} retient de vous. Vous pouvez supprimer chaque entrée.","type":"Taper","typeShortTerm":"Court terme","typeLongTerm":"Long terme","typeHelper":"Types :\\n","text":"Texte","searchPlaceholder":"Rechercher parmi les faits","select":"Sélectionner","loadMore":"Charger plus","factsCount_one":"{{count}} fait","factsCount_other":"{{count}} faits","shownOfTotal":"{{shown}} sur {{total}} affichés","emptyTitle":"Aucun fait pour le moment","emptyDescription":"Au fil de la conversation, l\'agent note ici ce qu\'il apprend sur vous. Vous pourrez le supprimer à tout moment.","deleteLabel":"Supprimer ce fait","deleteSuccess":"Fait connu supprimé","deleteConfirmTitle":"Supprimer un fait connu","deleteConfirmMessage":"Êtes-vous sûr de vouloir supprimer ce fait connu ?","deleteSelectedConfirmTitle":"Supprimer les faits connus sélectionnés","deleteSelectedConfirmMessage":"Etes-vous sûr de vouloir supprimer les faits connus sélectionnés ?","selected_one":"{{count}} fait sélectionné","selected_other":"{{count}} faits sélectionnés","selectedRows_one":"{{count}} ligne sélectionnée","selectedRows_other":"{{count}} lignes sélectionnées"},"auth":{"title":"Authentification","description":"Cet agent est protégé. Saisissez le mot de passe pour continuer.","useRecoveryTokens":"Utiliser des jetons de récupération","tokens":"Jetons","addToken":"Ajouter un jeton","invalidCredentials":"Identifiants invalides","usePassword":"Utiliser le mot de passe","atLeast":"Au moins"},"widget":{"instruct":"Instruire","test":"Tester","sound":"Son","soundOff":"Son désactivé","position":"Préférences de position","settings":"Paramètres","share":"Partager","shareChat":"Partager le chat","sendOnKeypress":"Appuyez sur Entrée pour envoyer","sendOnClick":"Cliquez sur Envoyer","boardOfExperts":"Conseil d\'experts","showExpertsInTheBoard":"Afficher les experts dans ce conseil","expertsInTheBoard":"Experts dans ce conseil","goToIntegrationsToCustomizeAvatar":"Pour personnaliser l\'avatar, allez dans Partager et personnalisez la page publique","chatAssistantStatus":"Actif • Répond en quelques secondes","agentStatusListening":"à l\'écoute","agentStatusSpeaking":"parle","agentStatusProcessing":"en traitement","shareLocation":"Partager la position","shareLocationHint":"Obtenez des réponses adaptées à votre position","shareLocationAria":"Partager la position avec l\'assistant","knownFactsHint":"Ce que je retiens à votre sujet","aiConsumption":"Utilisation de l\'IA","editPositionAria":"Modifier la position","positionResolving":"Résolution de l\'adresse…","geocodingFailed":"Impossible de déterminer l\'adresse. Réessayez ou recherchez manuellement.","positionUnavailableManual":"Position indisponible. Saisissez-la manuellement.","positionSharingEnabled":"Position partagée.","headerHistory":"Historique","headerProfile":"Profil","headerLogin":"Connexion","downloadQrCode":"Télécharger le QR Code","expandToImmersive":"Agrandir pour une vue immersive","moreActions":"Plus d\'actions","mobileSession":{"session":"Session","sessionInfo":"Infos de session","copyLinkOrDownload":"Copier le lien ou télécharger","currentlyOff":"Actuellement désactivé","whatIKnowAboutYou":"Détails des informations partagées entre vous et {{memoriName}}","locationTracking":"Suivi de position","locationStatus":"Statut","useCurrentPosition":"Utiliser la position actuelle","disableLocationSharing":"Désactiver le partage de position","openKnownFacts":"Ouvrir tous les faits connus","knownFactsMessages":"{{count}} messages dans la session en cours"}},"exportChatHistory":{"exportPDF":"Exporter le chat en PDF","exporting":"Exportation en cours...","empty":"Aucun historique de chat à exporter","pdfNotSupported":"L\'exportation PDF n\'est pas prise en charge dans ce navigateur","success":"Chat exporté en PDF avec succès","error":"Échec de l\'exportation du chat en PDF. Veuillez réessayer."},"write_and_speak":{"conversationStartedLabel":"Conversation démarrée","micButtonPopover":"Cliquez sur le bouton pour parler","micButtonPopoverListening":"Cliquez sur le bouton pour arrêter de parler","stopRecording":"Arrêter l\'enregistrement","sendRecording":"Envoyer le message vocal","recordingInProgress":"Enregistrement en cours","pageInstructExplanation":"Pour m\'apprendre de nouvelles choses, cliquez sur le bouton INSTRUCTEZ-MOI pour commencer","pageTryMeExplanation":"Pour commencer à parler avec moi, cliquez sur le bouton START","pagePrivacyExplanation":"Les conversations sont visibles par l\'auteur de l\'agent","pagePrivacyExplanationTooltip":"En commençant la conversation, nous vous informons que :\\n\\n- Toutes les conversations avec cet agent sont visibles par l\'auteur de l\'agent\\n- Si vous utilisez la chat comme utilisateur anonyme, l\'auteur pourra voir le contenu de la conversation et votre adresse IP\\n- Si vous utilisez la chat comme utilisateur enregistré (connecté), l\'auteur pourra voir le contenu de la conversation et votre nom d\'utilisateur\\n- L\'auteur utilise ces informations pour améliorer les fonctionnalités de l\'agent et pour vous fournir un meilleur service\\n- En continuant la conversation, vous acceptez ces conditions.","pagePrivacyExplanationList":{"allConversations":"Toutes les conversations avec cet agent sont visibles par l\'auteur de l\'agent","anonymousUser":"Pour les utilisateurs anonymes : l\'auteur verra le contenu de la conversation et votre adresse IP","registeredUser":"Pour les utilisateurs enregistrés : l\'auteur verra le contenu de la conversation et votre nom d\'utilisateur","contentAndUsername":"L\'auteur peut voir le contenu, votre nom d\'utilisateur et votre adresse IP","contentAndIpAddress":"L\'auteur peut voir le contenu et votre adresse IP","authorUsesInfo":"L\'auteur utilise ces informations pour améliorer les fonctionnalités de l\'agent et pour vous fournir un meilleur service."},"aiDisclaimer":"L\'agent peut commettre des erreurs. Veuillez vérifier les réponses.","downloadChat":"Télécharger le chat","instructButton":"INSTRUCTEZ-MOI","tryMeButton":"COMMENCER","resumeButton":"RÉSUMER","chatHistory":"Historique des discussions","chatHistoryDescription":"Afficher l\'historique des discussions avec cet agent","loadingChatHistory":"Chargement de l\'historique des discussions...","noChatHistoryAvailable":"Aucun historique des discussions disponible","noResultsFound":"Aucun résultat trouvé pour \\"{{searchText}}\\"","searchInChatHistory":"Rechercher dans les conversations","filters":"Filtres","latestFirst":"Plus récents d\'abord","oldestFirst":"Plus anciens d\'abord","exportChat":"Exporter le Chat","settingsHeaderLabel":"Configurez ici si vous souhaitez définir la mémoire comme parole continue et modifiez les secondes de silence si vous souhaitez les personnaliser.","continuousSpeechLabel":"Discours continu","continuousSpeechDisabled":"Discours continu désactivé car l\'agente est en mode muté","holdToSpeak":"Attends pour parler","releaseToEndListening":"Relâcher pour terminer l\'écoute","pressAndHoldToSpeak":"Appuyez et maintenez pour parler","microphoneMode":"Mode micro","hideEmissionsLabel":"Masquer le texte émis par le Agent","showMessageConsumptionLabel":"Afficher la consommation par message","secondsLabel":"Régler les secondes","controlsPosition":"Position des commandes","tryMeHeaderLabel":"ESSAYER","unknownPosition":"Position inconnue","fieldPlace":"Écrivez le lieu (par exemple « Milano »)","showMapLinkFor":"Afficher la position sur la carte","useMyPosition":"Utiliser ma position","myPosition":"Votre poste","updatingPosition":"Mise à jour du poste...","placeNotFound":"Lieu introuvable !","requirePosition":"Insérez votre position avant de commencer","requirePositionHelp":"Pour parler à {{name}} vous devez décider si vous souhaitez ou non fournir votre poste. ","dontWantToProvidePosition":"Continuer sans lieu","requireLoginHelp":"Pour parler à {{name}}, vous devez d\'abord vous connecter à votre compte.","skipLocationTitle":"Aucune position ne sera enregistrée sur la carte.","locationSaved":"Votre position a été enregistrée.","locationSavedWithPlace":"Votre position a été enregistrée : {{place}}","locationSkippedConfirm":"Vous continuerez sans partager votre position.","placeSelected":"Lieu sélectionné : {{place}}","locationPermissionDenied":"L\'accès à la position a été refusé. Autorisez-la dans les paramètres du navigateur ou choisissez un lieu sur la carte.","locationUnavailable":"Impossible de déterminer votre position. Réessayez ou recherchez un lieu.","locationRequestTimedOut":"La demande de position a expiré. Réessayez ou recherchez un lieu.","locationErrorGeneric":"Un problème est survenu lors de l\'obtention de votre position.","attachmentsLabel":"Enrichissez votre message","image":"image","images":"images","file":"fichier","files":"fichiers","function":"fonction","functions":"fonctions","iWantToTalkToIn":"je veux parler à {{name}} dans","chatLanguageLabel":"Choisissez la langue de la conversation","chatResumed":"Conversation reprise avec succès.","message":"message","messages":"messages","page":"Page {{current}} de {{total}}","downloadThisConversation":"Télécharger cette conversation","downloadAllConversations":"Télécharger toutes les conversations","conversationsCount_one":"{{count}} conversation","conversationsCount_other":"{{count}} conversations","shownOfTotal":"{{shown}} sur {{total}} affichées","loadMore":"Charger plus","backToConversationList":"Retour à la liste des conversations","thisWeek":"Cette semaine"},"chatResume":{"resume":"Reprendre la conversation"},"artifact":{"close":"Fermer","size":"Taille","updated":"mis à jour","updateFailed":"Mise à jour non appliquée","updateFailedHint":"Le correctif ne correspond pas au contenu actuel. Demandez de réécrire l\'artifact.","generated":"Généré","download":"Télécharger","print":"Imprimer","external":"Ouvrir dans une nouvelle fenêtre","type":"Type","fullscreen":"Plein écran","exitFullscreen":"Quitter le plein écran","copy":"Copier","generatedAt":"Généré le","open":"Ouvrir","code":"Code","source":"Source","preview":"Aperçu","resizeHandle":"Redimensionner le panneau artifact","copied":"Copié !","error":"Erreur","generatingPdf":"Génération du PDF...","copying":"Copie en cours...","moreCopyOptions":"Plus d\'options de copie","copyAs":"Copier en tant que","downloadAsMarkdown":"Télécharger en Markdown","downloadRawMarkdownText":"Télécharger le texte markdown brut","downloadAsPdf":"Télécharger en PDF","exportAsPdfDocument":"Exporter en document PDF","downloadAsHtml":"Télécharger en HTML","downloadFormattedHtml":"Télécharger le HTML formaté","viewMode":"Mode Affichage","codeMode":"Mode Code","refresh":"Actualiser","share":"Partager","downloadAsJson":"Télécharger en JSON","downloadJsonData":"Télécharger les données JSON","downloadAsPng":"Télécharger en PNG","downloadPngImage":"Télécharger l\'image PNG","downloadAsJpeg":"Télécharger en JPEG","downloadJpegImage":"Télécharger l\'image JPEG","downloadAsGif":"Télécharger en GIF","downloadGifImage":"Télécharger l\'image GIF","downloadAsWebp":"Télécharger en WebP","downloadWebpImage":"Télécharger l\'image WebP","copyAsSvg":"Copier en SVG","copySvgSourceCode":"Copier le code source SVG","copyAsPlainText":"Copier en texte brut","copyAsText":"Copier en texte","copyAsLanguage":"Copier en {{language}}","copyLanguageCode":"Copier le code {{language}}","copyWithoutSyntaxHighlighting":"Copier sans coloration syntaxique","copyTextContent":"Copier le contenu texte","pdfExportNotSupported":"L\'exportation PDF n\'est pas prise en charge dans ce navigateur","popupBlocked":"Popup bloqué ! Veuillez activer les popups pour imprimer.","safariPdfInstructions":"Export PDF ouvert dans une nouvelle fenêtre. Veuillez utiliser Cmd+P (Mac) ou Ctrl+P (Windows) pour imprimer et sauvegarder en PDF."},"upload":{"loginRequired":"Connexion requise","pastedText":"texte-collé","uploadNotification":"Échec du téléchargement","loginRequiredDescription":"Veuillez vous connecter pour télécharger des images","uploadFiles":"Télécharger des fichiers (drag and drop)","uploadFilesOrImages":"Télécharger des fichiers ou des images","uploadFilesWithShortcut":"{{shortcut}}+O pour ouvrir le sélecteur de fichiers","uploadImages":"Télécharger des images","titleImage":"Ajouter un titre à l\'image","uploadDocuments":"Télécharger des documents","replace":"Remplacer","remaining":"restant","maxReached":"Limite atteinte","maxImagesReached":"Vous pouvez télécharger jusqu\'à {{max}} images","apiClientNotConfigured":"API client non configuré correctement pour le téléchargement de médias","fileReadingFailed":"Échec de la lecture du fichier","uploadFailed":"Échec du téléchargement","uploadSuccess":"Téléchargement réussi","uploadSuccessDescription":"Le fichier a été téléchargé avec succès","dragAndDropFiles":"Glissez et déposez les fichiers ici pour les ajouter à la chat","contextSizeExceedsLimit":"La taille du contexte dépasse la limite. Essayez de réduire le nombre de fichiers ou le contenu de la conversation.","filesNotAddedMaxAllowed":"{{count}} fichier(s) non ajouté(s) (maximum {{max}} fichiers autorisés).","documentsNotAddedMaxAllowed":"{{count}} document(s) non ajouté(s) (maximum {{max}} fichiers autorisés).","imagesNotAddedMaxAllowed":"{{count}} image(s) non ajoutée(s) (maximum {{max}} fichiers autorisés).","documentsNotAddedContextSize":"{{count}} document(s) non ajouté(s) (limite de taille du contexte).","partialAssetUploadWarning":"Certains liens de fichier n\'ont pas pu être téléversés, mais le document a été ajouté quand même.","anonymousRetentionNotice":"Remarque : les fichiers téléversés sont conservés pendant un maximum de 24 heures."},"media":{"title":"Titre","editAttributes":"Modifier les attributs du média","uploadMimeTypeNotAllowed":"Le type de fichier n\'est pas autorisé","uploadSizeLimitMessage":"La taille téléchargée est trop grande (max {{size}}Mo)","uploadWrongResolutionMessage":"La résolution doit être {{width}}x{{height}} pixels","memoriNameAlreadyUsed":"Vous avez déjà un jumeau portant ce nom","uploadHelperImages":"Téléchargez un fichier avec l\'extension png, jpg, jpeg ou gif, et ayant au maximum une taille de {{size}}Mo","uploadHelper":"Téléchargez un fichier ayant au maximum une taille de {{size}}Mo","uploadError":"Échec du téléchargement","square":"carré","scaleRatio":"Rapport d\'échelle","addMediaLabel":"Ajouter un média","insertThisMediaMsg":"Insérez ces médias","mediaUploadMessage":"Cliquez pour charger un nouveau média","addLinkLabel":"Ajouter un lien","linkKey":"URL","linkValue":"Titre du lien","insertThisLink":"Insérer un lien vers {{url}} avec titre {{title}}"},"gamification":{"level":"Niveau","points":"points","memoriReachedLevel":"est devenu plus évolué et a atteint le niveau","levelGoToStatistics":"{{Agent}} est au niveau {{level}} avec {{points}} points. ","congratulationsNewLevel":"Félicitations, vous avez atteint un nouveau niveau !","congratulationsNewLevelDescription":"Votre Agent est devenu plus évolué avec {{points}} points, regardez le","statistics":"statistiques"},"login":{"login":"Se connecter","title":"Se connecter à votre compte","logout":"Déconnexion","user":"Utilisateur","loggedDrawerTitle":"Salut, {{name}}!","userNameRequired":"Nom d\'utilisateur requis","userName":"Nom d\'utilisateur","userNamePlaceholder":"Inserisci le nom d\'utilisateur","loginDrawerTitle":"Se connecter","signupDrawerTitle":"S\'inscrire","newUserSignUp":"Nouvel utilisateur ?","signUp":"S\'inscrire!","alreadyHaveAnAccount":"Vous avez déjà un compte ?","backToLogin":"Retour à la connexion","registrationDisabled":"L\'inscription est désactivée","contactAdmin":"Contacter l\'administrateur pour demander l\'accès","userNameOrEmail":"Nom d\'utilisateur ou email","email":"E-mail","emailFormatError":"Veuillez insérer un email valide","username":"Nom d\'utilisateur","usernameContainsReservedWord":"Le nom d\'utilisateur contient un mot réservé, veuillez en choisir un autre","usernameFormatError":"Le nom d\'utilisateur doit comporter au moins 3 caractères et contenir uniquement des lettres, des chiffres et _","otpCode":"Le code de vérification","resendVerificationCode":"Renvoyer le code","resentVerificationCode":"Code de confirmation envoyé ! ","welcomeTitle":"Bon retour","welcomeDescription":"Entrez votre code de vérification à 4 chiffres pour continuer vers votre compte","otpTitle":"Entrez le code de vérification","otpDescription":"Entrez le code à 4 chiffres que vous avez généré dans votre compte","otpStep1":"Cliquez sur le bouton ci-dessous pour ouvrir votre compte","otpStep2":"Générez un code de vérification à 4 chiffres (valide pendant 5 minutes)","otpStep3":"Revenez ici et entrez le code","startOtpLogin":"Commencer la vérification","generateOtp":"Générer le code","otpTimer":"Le code expire dans {{time}}","otpInvalidFormat":"Veuillez entrer un code valide à 4 chiffres","otpInvalid":"Code de vérification invalide","otpError":"Erreur lors de la validation du code. Veuillez réessayer.","otpSuccess":"Connexion réussie !","otpEmailTitle":"Entrez votre email","otpEmailDescription":"Entrez votre adresse email pour recevoir un code de vérification","otpCodeDescription":"Entrez le code à 4 chiffres envoyé à {{email}}","emailPlaceholder":"Entrez votre email","sendOtp":"Envoyer le code","resendOtp":"Renvoyer","resendOtpIn":"Renvoyer dans {{seconds}}s","resendOtpPrompt":"Pas reçu ? Renvoyer dans {{seconds}} s","resendOtpQuestion":"Pas reçu ?","resending":"Envoi en cours...","backToEmail":"Retour à l\'email","editEmail":"Modifier","otpSentToPrefix":"Nous avons envoyé un code à 4 chiffres à","otpCodeShort":"Code","loginBenefitLine1":"{{memoriName}} peut vous montrer l\'historique de chat, qui peut être repris à tout moment.","loginBenefit":"{{memoriName}} peut vous montrer l\'historique de chat, qui peut être repris à tout moment.","passwordlessHint":"Nous vous envoyons un code à 4 chiffres. Aucun mot de passe à retenir.","defaultAgentName":"l\'agent","otpSent":"Code de vérification envoyé !","otpResent":"Code renvoyé avec succès !","otpSendError":"Erreur lors de l\'envoi du code. Veuillez réessayer.","emailRequired":"Email requis","emailInvalid":"Veuillez entrer une adresse email valide","otpNotFound":"Code de vérification introuvable","otpExpired":"Le code de vérification a expiré","otpMissing":"Le code de vérification est requis","otpAttemptsExceeded":"Trop de tentatives. Demandez un nouveau code de vérification.","otpSuccessMessage":"Vérification réussie ! Redirection...","otpSuccessDescription":"Votre compte a été vérifié avec succès. Vous allez être redirigé sous peu.","otpHelp":"Entrez le code à 4 chiffres de votre email","emailHelp":"Nous vous enverrons un code de vérification","userFetchError":"Erreur lors du chargement des données utilisateur. Veuillez réessayer.","otpStep1Title":"Entrez l\'Email","otpStep2Title":"Vérifiez l\'Email","otpStep3Title":"Entrez le Code","featureFast":"Rapide","featureSecure":"Sécurisé","featureMobile":"Mobile","password":"Mot de passe","newPassword":"Nouveau mot de passe","confirmPassword":"Confirmez le mot de passe","currentPassword":"Mot de passe actuel","passwordMatchingError":"Les mots de passe ne correspondent pas.","passwordFormatError":"Le mot de passe doit comporter au moins 8 caractères et contenir au moins un chiffre, une lettre majuscule, une lettre minuscule et un symbole.","pwdWeak":"Faible","pwdAcceptable":"Acceptable","pwdStrong":"Fort","mustChangePassword":"Vous devez changer votre mot de passe","passwordChange":"Changer le mot de passe","emailChange":"Changer d\'e-mail","avatarChange":"Changer d\'avatar","avatarUploadSuccess":"Photo de profil mise à jour.","underage":"Vous devez être au moins {{age}} ans pour s\'inscrire.","optional":"Facultatif","birthDate":"Date de naissance","birthDatePlaceholder":"JJ/MM/AAAA","birthDateHelper":"Nous demandons votre date de naissance uniquement pour activer ou désactiver les fonctionnalités qui ont des restrictions d\'âge","missingData":"Informations manquantes","missingDataHelper":"Nous savons que c\'est un peu ennuyeux, mais nous avons besoin de plus d\'informations pour finaliser votre inscription.","goToAccountToChangeYourPreferences":"Vous pouvez modifier votre choix à tout moment depuis la page de votre compte.","deepThoughtExplaination":"Deep Thought est une fonctionnalité avancée de l\'IA qui vous permettra d\'exploiter pleinement vos conversations en les gardant une trace. ","tnCAndPPAcceptedHelper":"Depuis votre dernière connexion, les conditions générales et la politique de confidentialité ont changé. ","privacyLabel":"J\'ai lu et accepté le","privacyAndCookiePolicy":"Politique de confidentialité et de cookies","and":"et","termsOfService":"Conditions d\'utilisation","pAndCUAccepted":"J\'accepte les conditions d\'utilisation de Deep Thought","editAccount":"Modifier le compte","save":"Sauvegarder","successfullyLoggedIn":"{{username}} s\'est connecté avec succès"},"chatLogs":{"llm":"LLM","model":"Modèle","provider":"Fournisseur","tokens":"Tokens","input":"Entrée","output":"Sortie","cacheRead":"Lecture cache","cacheWrite":"Écriture cache","duration":"Durée","energy":"Énergie","co2":"CO2","water":"Eau","usageBadgesHint":"Cliquez sur un de ces boutons pour afficher plus d\'informations","totalChatConsumptionTitle":"Consommation Totale du Chat","modelUsage":"Utilisation du modèle","environmentalImpact":"Impact environnemental","impactComparisonUnavailable":"Comparaison indicative non disponible.","impactComparisonEnergy":"Comparaison indicative : environ comme laisser allumee une ampoule LED de 10 W pendant {{duration}}.","impactComparisonCo2":"Comparaison indicative : environ {{distance}} parcourus en voiture essence moyenne.","impactComparisonWater":"Comparaison indicative : environ {{count}} gouttes d\'eau.","energyImpactDescription":"Cette valeur estime l\'energie electrique necessaire pour generer la reponse du modele. Elle permet de comparer prompts, modeles et strategies meme quand l\'impact d\'un seul message est tres faible.","co2ImpactDescription":"Le CO2 equivalent represente l\'impact climatique estime du message. Traduire la consommation en emissions aide a comprendre le poids environnemental d\'une reponse IA avec des mesures comparables.","waterImpactDescription":"Cet indicateur montre l\'empreinte hydrique estimee associee au traitement du message. Il inclut l\'eau utilisee indirectement par l\'energie et l\'infrastructure qui soutiennent le calcul.","approximateValuesTooltip":"Ces valeurs sont approximatives.","anyMessage":"Tout message","atLeast":"Au moins {{count}} messages","atLeast1":"Au moins 1 message","atLeast2":"Au moins 2 messages","atLeast3":"Au moins 3 messages","atLeast5":"Au moins 5 messages","atLeast10":"Au moins 10 messages","atLeast15":"Au moins 15 messages","atLeast20":"Au moins 20 messages","customMinimumMessages":"Personnaliser le nombre de messages"},"success":"Succès","Error":"Erreur","internal server error":"Oupsie, désolé... Quelque chose s\'est mal passé sur le serveur","error":"Erreur","error.loading":"Erreur lors du chargement du contenu.","error.generic":"Oupsie, désolé... quelque chose s\'est mal passé.","error.serverNotResponding":"Nous effectuons une maintenance ou publions des mises à jour. ","error.notFound":"Oupsie, nous n\'avons pas trouvé la page que vous cherchiez.","error.goBackTo":"Vous pouvez essayer de revenir au","error.reloadPage":"Recharger la page","error.tryAgain":"Essayer à nouveau","error.unauthorized":"Vous n\'êtes pas autorisé à consulter ce contenu.","error.unprocessableEntity":"Erreur lors du traitement de la demande. ","errors":{"TENANT_NOT_FOUND":"Locataire introuvable","TENANT_REGISTRATION_DISABLED":"L\'inscription sur cette plateforme est désactivée","TENANT_MISSING_NAME":"Locataire : nom manquant","TENANT_MAX_USERS_REACHED":"Nombre maximum d\'utilisateurs atteint","TENANT_MAX_ADMINS_REACHED":"Nombre maximum d\'utilisateurs administrateurs atteint","TENANT_ALREADY_EXISTS":"Le locataire existe déjà","TENANT_MISSING_DESCRIPTION":"Locataire : description manquante","TENANT_CANT_SET_COMPLETION_PROVIDER":"Locataire : impossible de définir le fournisseur de complétion","TENANT_INVALID_TYPE":"Locataire : type non valide","USER_NOT_CONFIRMED":"L\'utilisateur n\'est toujours pas confirmé","USER_NOT_FOUND":"Utilisateur introuvable","USER_OR_PASSWORD_INVALID":"Utilisateur ou mot de passe invalide","USER_MUST_CHANGE_PASSWORD":"Vous devez changer votre mot de passe","USER_MUST_ENTER_VERIFICATION_CODE":"Vous devez entrer le code de vérification","USER_MISSING_TENANT":"Utilisateur : locataire manquant","USER_MISSING_NAME":"Utilisateur : le nom est manquant","USER_MISSING_PASSWORD":"Utilisateur : mot de passe manquant","USER_MISSING_EMAIL":"Utilisateur : E-mail manquant","USER_MISSING_VERIFICATION_CODE":"Utilisateur : Code de vérification manquant","USER_NAME_ALREADY_USED":"Nom d\'utilisateur déjà utilisé","USER_PASSWORD_NOT_CONFORMING_TO_POLICY":"Le mot de passe ne répond pas aux règles de sécurité","USER_EMAIL_ALREADY_USED":"E-mail déjà utilisé","USER_EMAIL_INVALID":"E-mail invalide","USER_VERIFICATION_CODE_INVALID":"Code de vérification invalide","USER_MISSING_NAME_OR_EMAIL":"Nom d\'utilisateur ou e-mail manquant","USER_NAME_INVALID":"Nom d\'utilisateur invalide","USER_HAS_ONE_OR_MORE_MEMORI":"L\'utilisateur possède une ou plusieurs mémoires","USER_MISSING_NEW_PASSWORD":"Utilisateur : nouveau mot de passe manquant","USER_NOTHING_TO_DO":"Rien à faire","USER_CANT_CREATE_MEMORI":"L\'utilisateur n\'est pas autorisé à créer des Agent","USER_MAX_MEMORI_REACHED":"Nombre maximum de Agent atteint","USER_ORDER_BY_INVALID":"Ordre par non valide","USER_TOO_MANY_ATTEMPTS":"Trop de tentatives","USER_MUST_ACCEPT_TNC_AND_PP":"Vous devez accepter les termes et conditions","USER_BIRTH_DATE_CANT_BE_CHANGED":"La date de naissance ne peut pas être modifiée","USER_CANT_SET_COMPLETION_PROVIDER":"Utilisateur : non autorisé à gérer le fournisseur de complétion","USER_CANT_ENABLE_DEEP_THOUGHT":"Utilisateur : non autorisé à gérer Deep Thought","USER_CANT_ENABLE_DCM_INTEGRATION":"Utilisateur : non autorisé à gérer l\'intégration DCM","USER_CANT_ENABLE_CHAINING_OR_BOARD_OF_EXPERTS":"Utilisateur : non autorisé à gérer des chaînages ou des groupes d\'experts","USER_CREATION_BILLING_DENIED_PERMISSION":"Vous n\'avez pas assez de crédits pour créer un Agent","USER_HAS_ONE_OR_MORE_COMPLETION_CONFIGS":"L\'utilisateur dispose d\'une ou plusieurs configurations de complétion","USER_CANT_BE_DELETED":"L\'utilisateur ne peut pas être supprimé","MEMORI_NOT_FOUND":"Mémoire introuvable","MEMORI_NOT_ACCESSIBLE":"Mémoires non accessibles","MEMORI_ONLY_OWNER_CAN_CHANGE_GIVER_TAG_AND_PIN":"Seul le propriétaire peut modifier le tag ou le code PIN","SESSION_NOT_FOUND":"Séance introuvable","SESSION_IS_NOT_ADMINISTRATIVE":"Séance non administrative","SESSION_EXPIRED":"Session expirée","speechMissingSession":"La voix nécessite une session active","speechInvalidSession":"Session non valide","speechTenantMismatch":"La voix n\'est pas disponible sur ce site","speechRateLimited":"Trop de requêtes vocales. Patientez un instant et réessayez.","SESSION_OTP_NOT_FOUND":"Code de vérification introuvable","SESSION_OTP_EXPIRED":"Le code de vérification a expiré","SESSION_OTP_INVALID":"Code de vérification invalide","SESSION_OTP_ATTEMPTS_EXCEEDED":"Trop de tentatives. Demandez un nouveau code de vérification.","MEMORI_MISSING_CONFIGURATION":"Agent : configuration manquante","MEMORI_CONFIGURATION_NOT_FOUND":"Agent : configuration introuvable","MEMORI_INVALID_PRIVACY_TYPE":"Agent : type de confidentialité non valide","MEMORI_MISSING_PASSWORD":"Agent : mot de passe manquant","MEMORI_INVALID_TOTAL_NUMBER_OF_RECOVERY_TOKENS":"Agent : nombre total de jetons de récupération invalides","MEMORI_INVALID_MINIMUM_NUMBER_OF_RECOVERY_TOKENS":"Agent : nombre minimum de jetons de récupération invalides","MEMORI_INVALID_VOICE_TYPE":"Agent : type de voix invalide","MEMORI_MISSING_NAME":"Jumeau : nom manquant","MEMORI_MISSING_PASSWORD_OR_RECOVERY_TOKENS":"Agent : mot de passe ou jeton de récupération manquant","MEMORI_INVALID_ID":"Jumeau : pièce d\'identité invalide","MEMORI_NAME_ALREADY_USED":"Nom jumeau déjà utilisé","MEMORI_INVALID_PIN":"Agent : code PIN invalide","MEMORI_GIVER_TAG_PIN_CHANGE_REQUIRES_SEPARATE_OPERATION":"Agent : le changement de TAG et de PIN nécessite des opérations distinctes","MEMORI_NO_PASSWORD_WHEN_PUBLIC":"Agent : aucun mot de passe requis lorsqu\'il est public","MEMORI_DEEP_THOUGHT_REQUIRES_COMPLETIONS":"Deep Thought nécessite que les complétions soient activées","MEMORI_BOARD_OF_EXPERTS_REQUIRES_COMPLETIONS":"Le groupe d\'experts exige que les complétions soient activées","MEMORI_INVALID_COMPLETION_CONFIG":"Agent : configuration des complétions non valide","MEMORI_MACRO_FUNCTIONS_REQUIRES_COMPLETIONS":"Macro fonctions requiert que les complétions soient activées","MEMORI_BLOCKING_DATE_MISSING_OR_WRONG":"Gemmeau : date de blocage manquante ou incorrecte","MEMORI_LIST_FILTER_NOT_SPECIFIED":"Gemmeau : filtre non spécifié","MEMORI_TRANSFER_MISSING_DESTINATION_USER":"Transfert : utilisateur de destination manquant","MEMORI_TRANSFER_INVALID_DESTINATION_USER_ID":"Transfert : ID utilisateur de destination non valide","MEMORI_TRANSFER_DESTINATION_USER_DATA_INCONSISTENT":"Transfert : données utilisateur de destination non valides","MEMORI_TRANSFER_NOTHING_TO_DO":"Transfert : rien à faire","MEMORI_CONFIGURATION_CANT_BE_CHANGED":"Mémoires : la configuration ne peut pas être modifiée","MEMORI_MISSING_NEW_PASSWORD":"Souvenirs : nouveau mot de passe manquant","MEMORI_FEATURE_REQUIRES_SUBSCRIPTION":"La fonctionnalité nécessite un abonnement","MEMORI_SESSION_NOT_FOUND":"Séance introuvable","MEMORI_SESSION_DOESNT_ACCEPT_MEDIA":"Séance ne pas accepter les médias","INTEGRATION_NOT_FOUND":"Intégration introuvable","MEMORI_SESSIONS_INVALID_DATE_FROM_FORMAT":"Date invalide du format","MEMORI_SESSIONS_INVALID_DATE_TO_FORMAT":"Date à formater invalide","INTEGRATION_INVALID_TYPE":"Type d\'intégration invalide","INTEGRATION_ALREADY_EXISTS":"L\'intégration existe déjà","INTEGRATION_MEMORI_IS_NOT_PUBLIC":"Les mémoires non publiques ne peuvent pas être intégrées","INTEGRATION_MISSING_INVOCATION_TEXT":"Intégration : texte d\'invocation manquant","INTEGRATION_MISSING_DEVICE_EMAILS":"Intégration : e-mail de l\'appareil manquant","INTEGRATION_MEMORI_IS_EMPTY":"Les mémoires vides ne peuvent pas être intégrées","INTEGRATION_MISSING_PRIVACY_POLICY":"Intégration : politique de confidentialité manquante","INTEGRATION_MISSING_CATEGORY":"Catégorie d\'intégration manquante","INTEGRATION_MISSING_DESCRIPTION":"Description de l\'intégration manquante","INTEGRATION_INVALID_INVOCATION_TEXT":"Texte d\'appel invalide","INTEGRATION_GOOGLE_NO_MORE_AVAILABLE":"Google Home n\'est plus disponible","UPLOAD_REQUIRES_MULTIPART_ENCODING":"Le téléchargement nécessite un codage en plusieurs parties","UPLOAD_MISSING_CONTENT_TYPE_BOUNDARY":"Téléchargement : limite de type de contenu manquante","UPLOAD_MAX_LENGTH_EXCEEDED":"Téléchargement : taille maximale dépassée","UPLOAD_FILE_IS_EMPTY":"Télécharger : fichier vide","UPLOAD_INVALID_FILE_TYPE_OR_SIGNATURE":"Téléchargement : type de fichier ou signature non valide","UPLOAD_MISSING_FILE_NAME":"Télécharger : nom de fichier manquant","UPLOAD_INVALID_MEMORY_ID":"Télécharger : ID de contenu invalide","UPLOAD_MISSING_FILE_CONTENT":"Télécharger : contenu du fichier manquant","ASSET_NOT_FOUND":"Actif introuvable","ASSET_NOT_ACCESSIBLE":"Actif non accessible","ASSET_MISSING_SESSION_ID":"Élément : ID de session manquant","ASSET_INVALID_FILE_NAME":"Élément : nom de fichier non valide","ASSET_MALWARE_SCAN_THREATS_FOUND":"Élément : menaces de scan de malware trouvées","INVITATION_NOT_FOUND":"Invitation introuvable","INVITATION_NOT_ACCESSIBLE":"Invitation non accessible","INVITATION_ALREADY_ACCEPTED":"Invitation déjà acceptée","INVITATION_ALREADY_REJECTED":"Invitation déjà rejetée","INVITATION_MISSING_DESTINATION_EMAIL":"Invitation : e-mail de destination manquant","INVITATION_DESTINATION_EMAIL_INVALID":"Invitation : e-mail de destination invalide","INVITATION_MISSING_TAG":"Invitation : étiquette manquante","INVITATION_MISSING_PIN":"Invitation : code PIN manquant","INVITATION_INVALID_PIN":"Invitation : code PIN invalide","INVITATION_INVALID_TYPE":"Invitation : type non valide","INVITATION_MISSING_DESTINATION_NAME":"Invitation : le nom de la destination est manquant","INVITATION_TAG_PIN_CANT_BE_CHANGED":"Invitation : le tag et le code PIN ne peuvent pas être modifiés","INVITATION_CANT_BE_CHANGED":"Intation : ne peut pas être modifié","ACTIONLOG_INVALID_USER_ID":"ID utilisateur invalide","ACTIONLOG_INVALID_DATE_FROM_FORMAT":"Date de : format non valide","ACTIONLOG_INVALID_DATE_TO_FORMAT":"Date de : format non valide","ACTIONLOG_INVALID_MEMORI_ID":"Identifiant Agent invalide","CONSUMPTIONLOG_INVALID_TYPE":"Type de journal invalide","CONSUMPTIONLOG_INVALID_DATE_FROM_FORMAT":"Date de : format non valide","CONSUMPTIONLOG_INVALID_DATE_TO_FORMAT":"Date de : format non valide","CONSUMPTIONLOG_INVALID_USER_ID":"ID utilisateur invalide","CONSUMPTIONLOG_INVALID_MEMORI_ID":"Identifiant Agent invalide","NOTIFICATIONPREFS_INVALID_CHATLOG_EXTRACTION_PERIOD":"Notifications : période d\'extraction du journal de discussion non valide","BROADCAST_NOT_ALLOWED":"Broadcast non autorisé","INVALID_NOTIFICATION_TYPE":"Type de notification non valide","NOTIFICATION_NOT_FOUND":"Notification introuvable","INVALID_NOTIFICATION_FILTER":"Filtre de notification non valide","INVALID_NOTIFICATION_PERIOD":"Période de notification non valide","PROCESS_INVALID_TYPE":"Type de processus invalide","PROCESS_ALREADY_RUNNING":"Processus déjà en cours","PROCESS_NOT_FOUND":"Processus introuvable","IMPORTCSV_MISSING_ROWS":"Import CSV : lignes manquantes","IMPORTCSV_MISSING_CSV":"Importation CSV : CSV manquant","IMPORTCSV_MISSING_SEPARATOR":"Import CSV : séparateur manquant","IMPORTCSV_INVALID_SEPARATOR":"Importation CSV : séparateur non valide","IMPORTCSV_MISSING_HEADERS":"Import CSV : en-têtes manquants","IMPORTCSV_MISSING_TITLE_VARIANT_SEPARATOR":"Import CSV : séparateur de variante de titre manquant","IMPORTCSV_INVALID_RECEIVER_ID":"Importation CSV : ID de destinataire non valide","IMPORTCSV_INVALID_MEDIA_LINK":"Importation CSV : lien média non valide","IMPORTCSV_INVALID_LINK_TITLE_HANDLING":"Importation CSV : titre du lien invalide","IMPORTCSV_UNDETECTABLE_CHAR_ENCODING":"Import CSV : encodage de caractères indétectable","IMPORTCSV_CANT_IMPORT_TO_SECRET_MEMORI":"Importation CSV : impossible d\'importer dans les mémoires secrètes","IMPORTTXT_MISSING_ROWS":"Importation de TXT : lignes manquantes","IMPORTTXT_INVALID_GRANULARITY":"Importer TXT : granularité invalide","IMPORTTXT_INVALID_RECEIVER_ID":"Importer TXT : ID de destinataire invalide","IMPORTTXT_INVALID_MEDIA_LINK":"Importer TXT : lien média non valide","IMPORTTXT_INVALID_LINK_TITLE_HANDLING":"Importer TXT : titre du lien invalide","IMPORTTXT_UNDETECTABLE_CHAR_ENCODING":"Import TXT : encodage de caractères indétectable","IMPORTTXT_CANT_IMPORT_TO_SECRET_MEMORI":"Importation TXT : impossible d\'importer vers les mémoires secrètes","IMPORTTXT_IMPORT_LIMIT_EXCEEDED":"Importer TXT : limite d\'importation dépassée","IMPORTTXT_IMPORT_ON_GPT4_REQUIRES_API_KEY":"Importer TXT : l\'importation sur GPT-4 nécessite une clé API","IMPORTTXT_IMPORT_REQUIRES_PAYING":"Importer TXT : l\'importation nécessite un forfait payant","IMPORTTXT_BILLING_DENIED_PERMISSION":"Importer TXT : vous n\'avez pas assez de crédits pour l\'opération","IMPORT_MISSING_ROWS":"Importation : lignes manquantes","IMPORT_CANT_IMPORT_TO_SECRET_MEMORI":"Importation : impossible d\'importer vers les mémoires secrètes","IMPORTMEMORI_INVALID_MEMORI_SPECS":"Importation MEMORI : spécifications de mémoire non valides","IMPORT_MISSING_JSONL":"Importation : JSONL manquant","IMPORTMEMORI_INVALID_SPECS":"Importation MEMORI : spécifications non valides","EXPORT_MISSING_PASSWORD":"Exportation : mot de passe manquant","EXPORTCSV_MISSING_CSV_SPECS":"Exportation CSV : spécifications CSV manquantes","EXPORTCSV_MISSING_SEPARATOR":"Export CSV : séparateur manquant","EXPORTCSV_INVALID_SEPARATOR":"Exportation CSV : séparateur non valide","EXPORTCSV_MISSING_TITLE_VARIANT_SEPARATOR":"Exportation CSV : séparateur de variante de titre manquant","EXPORTCSV_MISSING_NEW_LINE_CHAR":"Exportation CSV : caractère de nouvelle ligne manquant","EXPORTCSV_INVALID_NEW_LINE_CHAR":"Exportation CSV : caractère de nouvelle ligne non valide","EXPORTCSV_MISSING_PASSWORD":"Export CSV : mot de passe manquant","EXPORTJSONL_MISSING_JSONL_SPECS":"Export JSONL : spécifications JSONL manquantes","EXPORTJSONL_MISSING_PLATFORM":"Export JSONL : plateforme manquante","EXPORTJSONL_INVALID_PLATFORM":"Export JSONL : plateforme non valide","EXPORTJSONL_MISSING_PASSWORD":"Export JSONL : mot de passe manquant","EXPORTJSONL_EXPORT_REQUIRES_PAYING":"Exportation JSONL : l\'exportation nécessite un forfait payant","ANALYSIS_MISSING_QUERY":"Analyse : requête manquante","ANALYSIS_CANT_ANALYZE_SECRET_MEMORI":"Analyse : impossible d\'analyser les souvenirs secrets","ANALYSIS_USER_QUERY_MATCH_REQUIRES_DEEP_THOUGHT":"Analyse : la correspondance avec la requête de l\'utilisateur nécessite une réflexion approfondie","BADGE_ASSIGNMENT_WRONG_OR_MISSING_CREDENTIALS":"Attribution des badges : identifiants incorrects ou manquants","BADGE_ASSIGNMENT_MISSING_REF_ID":"Affectation du badge : ID de référence manquant","BADGE_ASSIGNMENT_OUTCOME_NOT_FOUND":"Attribution des badges : résultat introuvable","BADGE_ASSIGNMENT_MISSING_ASSERTION_URL":"Attribution du badge : URL d\'assertion manquante","BADGE_ASSIGNMENT_MISSING_BADGE_URL":"Attribution du badge : URL du badge manquante","BADGE_ASSIGNMENT_MISSING_ISSUER_URL":"Attribution du badge : URL de l\'émetteur manquante","BADGE_ASSIGNMENT_INVALID_URL":"Attribution du badge : URL invalide","BADGE_ASSIGNMENT_MISSING_RECIPIENT":"Affectation du badge : destinataire manquant","BADGE_ASSIGNMENT_UNKNOWN_RECIPIENT_TYPE":"Attribution du badge : type de destinataire inconnu","BADGE_ASSIGNMENT_MISSING_RECIPIENT_IDENTITY":"Attribution du badge : identité du destinataire manquante","BADGE_ASSIGNMENT_MISSING_RECIPIENT_HASH_TYPE":"Attribution du badge : type de hachage du destinataire manquant","BADGE_ASSIGNMENT_UNKNOWN_RECIPIENT_HASH_TYPE":"Attribution du badge : type de hachage du destinataire inconnu","BADGE_ASSIGNMENT_WRONG_RECIPIENT_IDENTITY":"Attribution du badge : identité du destinataire incorrecte","BADGE_NOT_FOUND":"Badge introuvable","OUTCOME_NO_DCM_CONFIGURED":"Résultat : aucun DCM configuré","OUTCOME_USER_BADGES_DISABLED":"Résultat : badges utilisateur désactivés","COMPLETION_CONFIG_MISSING_NAME":"Configuration des complétions : nom manquant","COMPLETION_CONFIG_MISSING_PROVIDER":"Configuration des complétions : fournisseur manquant","COMPLETION_CONFIG_MISSING_ENDPOINT":"Configuration des complétions : point de terminaison manquant","COMPLETION_CONFIG_MISSING_API_KEY":"Configuration des complétions : clé API manquante","COMPLETION_CONFIG_MISSING_MODEL":"Configuration des complétions : modèle manquant","COMPLETION_CONFIG_NO_PURPOSE_SPECIFIED":"Configuration des complétions : au moins un type de complétions doit être spécifié","COMPLETION_CONFIG_INVALID_NAME":"Configuration des complétions: nom non valide","COMPLETION_CONFIG_INVALID_PURPOSE":"Configuration des complétions : type de complétions non valide","COMPLETION_CONFIG_INVALID_ENDPOINT":"Configuration des achèvements : point de terminaison non valide","COMPLETION_CONFIG_INCONSISTENT_ENDPOINT":"Configuration des complétions : point de terminaison incohérent","COMPLETION_CONFIG_INVALID_PROVIDER":"Configuration des complétions : fournisseur non valide","COMPLETION_CONFIG_NOT_FOUND":"Configuration des complétions : introuvable","COMPLETION_CONFIG_NOT_ACCESSIBLE":"Configuration des complétions : non accessible","COMPLETION_CONFIG_NAME_RESERVED":"Configuration des complétions : nom réservé","COMPLETION_CONFIG_NAME_ALREADY_EXISTS":"Configuration des complétions : le nom existe déjà","COMPLETION_CONFIG_VISIBILITY_CHANGE_NOT_ALLOWED":"Configuration des complétions : changement de visibilité non autorisé","COMPLETION_CONFIG_MISSING_MANDATORY_PREFIX":"Configuration des complétions : préfixe obligatoire manquant","COMPLETION_CONFIG_VISIBILITY_NOT_PERMITTED":"Configuration des complétions : visibilité non autorisée","COMPLETION_CONFIG_USE_AS_DEFAULT_NOT_PERMITTED":"Configuration des complétions : utilisation comme défaut non autorisée","COMPLETION_CONFIG_USE_AS_DEFAULT_REQUIRES_TENANT_VISIBILITY":"Configuration des complétions : utilisation comme défaut nécessite la visibilité du locataire","COMPLETION_CONFIG_CHARGEABLE_NOT_PERMITTED":"Configuration des complétions : chargeable non autorisé","COMPLETION_CONFIG_INVALID_APPLY_TO":"Configuration des complétions : apply to non valide","COMPLETION_CONFIG_APPLY_TO_TENANT_NOT_ALLOWED":"Configuration des complétions : apply to tenant non autorisé","TRUSTED_APPLICATION_NOT_FOUND":"Application de confiance introuvable","TRUSTED_APPLICATION_NOT_ACCESSIBLE":"Application de confiance non accessible","TRUSTED_APPLICATION_ALREADY_EXISTS":"Application de confiance existe déjà","TRUSTED_APPLICATION_MISSING_NAME":"Application de confiance : nom manquant","TRUSTED_APPLICATION_MISSING_DESCRIPTION":"Application de confiance : description manquante","TRUSTED_APPLICATION_MISSING_ICON":"Application de confiance : icône manquante","TRUSTED_APPLICATION_MISSING_URL":"Application de confiance : URL manquante"}}');var XN={};XN=JSON.parse('{"yes":"Ja","no":"NEIN","confirm":"Bestätigen","apply":"Anwenden","cancel":"Stornieren","show":"Zeigen","hide":"Verstecken","send":"Schicken","scrollToLatest":"Zum neuesten Beitrag","scrollToContinueReading":"Scrollen, um weiterzulesen","close":"Schließen","clearHistory":"Chat leeren","clearHistoryDone":"Chat geleert.","moreInfo":"Mehr Informationen","back":"Zurück","edit":"Bearbeiten","delete":"Löschen","loading":"Laden","expand":"Expandieren","collapse":"Einklappen","expandable":{"expand":"Expandieren"},"fullscreenEnter":"Geben Sie den Vollbildmodus ein","fullscreenExit":"Beenden Sie den Vollbildmodus","center":"Center","bottom":"Unten","hidden":"Versteckt","all":"Alle","today":"Heute","yesterday":"Gestern","last_7_days":"Letzte 7 Tage","last_30_days":"Letzte 30 Tage","missingData":"Fehlende Informationen","date":"Geburtsdatum","day":"Tag","copied":"Kopiert!","placeholder":"Stellen Sie eine Frage","month":"Monat","year":"Jahr","createdAt":"Erstellungsdatum","selected":"Ausgewählt","page":"Seite","actions":"Aktionen","next":"Nächste","previous":"Vorherige","copy":"Kopie","copyRawCode":"Rohcode kopieren","feedback":"Feedback","feedbackThankYou":"Vielen Dank für Ihr Feedback.","copyFailed":"Kopieren nicht möglich","functionCache":"Funktionscache","copyToClipboard":"In die Zwischenablage kopieren","showOriginalText":"Original anzeigen","showTranslatedText":"Übersetzung anzeigen","exactPosition":"Genaue Position","uncertain":"Unsicher","question":"Frage","nothingFound":"Nichts gefunden","venue":"Veranstaltungsort","searchVenue":"Nach einem Ort suchen…","privacyPolicy":"Datenschutzbestimmungen","popularLanguages":"Beliebt","allLanguages":"Alle Sprachen","memoriBlockedTitle":"Blockiert","memoriBlockedUntil":"Agent blockiert bis {{date}}","memoriBlockedAnon":"Momentan \\"{{name}}„Kann nicht antworten, komm hierher zurück {{date}}","memoriBlockedReasonExceedChats":"weil der monatliche Schwellenwert für erlaubte Chats überschritten wurde.","memoriBlockedGiverHelper":"Sie können es weiterhin als Administrator verwalten, andere Benutzer können jedoch nicht damit interagieren.","generatedByAI":"Von KI generierte Antworten können gelegentlich falsche Informationen generieren","aiGeneratedNote":"Der Agent kann Fehler machen. Stellen Sie sicher, dass Sie wichtige Informationen überprüfen.","reasoning":"Überlegung...","thinking":"Denke nach","thought":"Überlegung","thoughtFor":"Nachgedacht für {{count}} s","whyThisAnswer":"Woher kommt diese Antwort","whyThisAnswerHelper":"Diese Antwort wurde automatisch von einer künstlichen Intelligenz auf Basis dieser verifizierten Inhalte generiert.","whyThisAnswerDescription":"Inhalte der Wissensbasis, die der Agent für die Antwort konsultiert hat.","whyThisAnswerYouAsked":"Sie haben gefragt","whyThisAnswerUserAsked":"Frage des Nutzers","whyThisAnswerAgentReplied":"Der Agent hat geantwortet","whyThisAnswerShowFull":"Vollständige Antwort anzeigen","whyThisAnswerContentsUsed":"Verwendete Inhalte","whyThisAnswerOpen":"Öffnen","whyThisAnswerDisclaimer":"Die Antwort wurde vom Agenten aus diesen Inhalten geschrieben: sie kann Fehler oder Umformulierungen enthalten. Prüfen Sie wichtige Informationen an der Quelle.","whyThisAnswerEmptyTitle":"Keine Inhalte konsultiert","whyThisAnswerEmptyDescription":"Für diese Frage hat der Agent keine Treffer in der Wissensbasis gefunden: er hat nur nach seinen Anweisungen geantwortet.","whyThisAnswerEmptyAuthorDescription":"Die Frage hat keine Treffer ergeben. Falls sie welche haben sollte, fügen Sie einen passenden Inhalt hinzu.","whyThisAnswerAddContent":"Zur Wissensbasis hinzufügen","whyThisAnswerConfidenceHigh":"Starke Übereinstimmung","whyThisAnswerConfidenceMedium":"Teilweise Übereinstimmung","whyThisAnswerConfidenceLow":"Schwache Übereinstimmung","whyThisAnswerTypeQuestion":"Frage und Antwort","whyThisAnswerTypeDocument":"Dokument","whyThisAnswerTypeWebsite":"Website","whyThisAnswerTypeStory":"Geschichte","whyThisAnswerSourcesCount_one":"{{count}} Quelle","whyThisAnswerSourcesCount_other":"{{count}} Quellen","whyThisAnswerNoSources":"Keine Quellen","receiverLabel":"Zugewiesen an","completionsEnabled":"Fortschrittliche KI kann mit automatisch generierten Antworten reagieren, die manchmal falsche Informationen enthalten können","completionProviderDown":"Dieser Zwilling ist mit einer generativen KI von integriert {{provider}}, aber es ist derzeit nicht verfügbar. ","completionProviderMajorOutage":"Dieser Zwilling ist mit einer generativen KI von integriert {{provider}}, aber es ist derzeit nicht verfügbar. Diese Funktion wird nicht verfügbar sein, bis der Service wiederhergestellt ist.","completionProviderPartialOutage":"Dieser Zwilling ist mit einer generativen KI von integriert {{provider}}, aber es ist derzeit nicht verfügbar. Diese Funktion wird nicht verfügbar sein, bis der Service wiederhergestellt ist.","completionProviderDegraded":"Dieser Zwilling ist mit einer generativen KI von integriert {{provider}}, aber es ist derzeit nicht verfügbar. Diese Funktion wird nicht verfügbar sein, bis der Service wiederhergestellt ist.","completionProviderFallbackName":"ein externer Anbieter","completionProviderCheckStatusPage":"Überprüfen Sie die Statusseite","boardOfExperts":"Expertengremium","birthDate":"Geburtsdatum","birthDateHelper":"Wir fragen nur nach Ihrem Geburtsdatum, um Funktionen zu aktivieren oder zu deaktivieren, für die Altersbeschränkungen gelten","underage":"Das müssen Sie mindestens sein {{age}} Jahre alt, um sich anzumelden.","underageTwinSession":"Das müssen Sie mindestens sein {{age}} Jahre alt, um mit diesem Zwilling zu interagieren.","errorFetchingSession":"Fehler beim Laden der Sitzung","errorGettingReferralURL":"Fehler beim Laden des Referrals","errorReopeningSession":"Fehler beim erneuten Öffnen der Sitzung","sessionExpiredReopening":"Sitzung abgelaufen, Sitzung wird neu geöffnet","ageVerification":"Altersüberprüfung","ageVerificationText":"Um mit diesem Zwilling interagieren zu können, müssen Sie mindestens sein {{minAge}} Jahre alt.","ageVerificationSuccess":"Altersprüfung bestanden mit Erfolg.","nsfw":"NSFW: Dieser Agent enthält Inhalte für Erwachsene","deepThought":"Tiefer Gedanke","deepThoughtWhatIs":"Was ist Deep Thought?","deepThoughtHelper":"Deep Thought ist eine erweiterte Funktion der KI, die es Ihnen ermöglicht, Ihre Gespräche voll auszuschöpfen, indem Sie sie verfolgen. ","deepThoughtDisclaimerTitle":"Deep Thought aktiviert","deepThoughtDisclaimer":"Deep Thought ist eine erweiterte Funktion der KI, die es Ihnen ermöglicht, Ihre Gespräche voll auszuschöpfen, indem Sie sie verfolgen. ","deepThoughtPreDisclaimerUnlogged":"Melden Sie sich an, um Deep Thought zu aktivieren.","deepThoughtPreDisclaimerNotAllowed":"Deep Thought ist deaktiviert, da Sie der Nutzung nicht zugestimmt haben. Sie können dies jederzeit in Ihren Kontoeinstellungen ändern.","notEnoughCredits":"Der Autor dieses Zwillings verfügt nicht über genügend Credits, um Ihre Frage zu beantworten.","confirmDialog":{"title":"Möchten Sie diese Seite verlassen?","message":"Die Änderungen, die Sie vorgenommen haben, werden verloren."},"knownFacts":{"title":"Bekannte Fakten","description":"Was {{memoriName}} über Sie merkt. Sie können jeden Eintrag löschen.","type":"Typ","typeShortTerm":"Kurzfristig","typeLongTerm":"Langfristig","typeHelper":"Typen:\\n","text":"Text","searchPlaceholder":"Fakten durchsuchen","select":"Auswählen","loadMore":"Weitere laden","factsCount_one":"{{count}} Fakt","factsCount_other":"{{count}} Fakten","shownOfTotal":"{{shown}} von {{total}} angezeigt","emptyTitle":"Noch keine Fakten","emptyDescription":"Während Sie sprechen, notiert der Agent hier, was er über Sie lernt. Sie können es jederzeit löschen.","deleteLabel":"Diesen Fakt löschen","deleteSuccess":"Bekannte Tatsache gelöscht","deleteConfirmTitle":"Bekannte Tatsache löschen","deleteConfirmMessage":"Sind Sie sicher, dass Sie diese bekannte Tatsache löschen möchten?","deleteSelectedConfirmTitle":"Ausgewählte bekannte Fakten löschen","deleteSelectedConfirmMessage":"Sind Sie sicher, dass Sie die ausgewählten bekannten Fakten löschen möchten?","selected_one":"{{count}} Fakt ausgewählt","selected_other":"{{count}} Fakten ausgewählt","selectedRows_one":"{{count}} Zeile ausgewählt","selectedRows_other":"{{count}} Zeilen ausgewählt"},"auth":{"title":"Authentifizierung","description":"Dieser Agent ist geschützt. Gib das Passwort ein, um fortzufahren.","useRecoveryTokens":"Verwenden Sie Wiederherstellungstoken","tokens":"Token","addToken":"Token hinzufügen","usePassword":"Passwort verwenden","passwordRequired":"Passwort erforderlich","invalidCredentials":"Ungültige Zugangsdaten","atLeast":"Mindestens"},"widget":{"instruct":"Anleiten","test":"Testen","sound":"Ton","soundOff":"Ton aus","position":"Positionspräferenzen","settings":"Einstellungen","share":"Teilen","shareChat":"Chat teilen","sendOnKeypress":"Drücken Sie Enter zum Senden","sendOnClick":"Klicken Sie auf Senden","boardOfExperts":"Expertenrat","showExpertsInTheBoard":"Experten in diesem Rat anzeigen","expertsInTheBoard":"Experten in diesem Rat","goToIntegrationsToCustomizeAvatar":"Um den Avatar anzupassen, gehen Sie zu \\"Teilen\\" und passen Sie die öffentliche Seite an","chatAssistantStatus":"Aktiv • Antwortet in wenigen Sekunden","agentStatusListening":"hört zu","agentStatusSpeaking":"spricht","agentStatusProcessing":"verarbeitet","shareLocation":"Standort teilen","shareLocationHint":"Erhalte Antworten passend zu deinem Standort","shareLocationAria":"Standort mit dem Assistenten teilen","knownFactsHint":"Was ich mir über dich merke","aiConsumption":"KI-Verbrauch","editPositionAria":"Standort bearbeiten","positionResolving":"Adresse wird ermittelt…","geocodingFailed":"Adresse konnte nicht ermittelt werden. Bitte erneut versuchen oder manuell suchen.","positionUnavailableManual":"Standort nicht verfügbar. Bitte manuell eingeben.","positionSharingEnabled":"Standort geteilt.","headerHistory":"Verlauf","headerProfile":"Profil","headerLogin":"Anmelden","downloadQrCode":"QR-Code herunterladen","expandToImmersive":"Zum immersivem Ansichtsmodus erweitern","moreActions":"Weitere Aktionen","mobileSession":{"session":"Session","sessionInfo":"Sitzungsinfo","copyLinkOrDownload":"Link kopieren oder herunterladen","currentlyOff":"Derzeit deaktiviert","whatIKnowAboutYou":"Details der Informationen, die zwischen Ihnen und {{memoriName}} geteilt werden","locationTracking":"Standortverfolgung","locationStatus":"Status","useCurrentPosition":"Aktuelle Position verwenden","disableLocationSharing":"Standortfreigabe deaktivieren","openKnownFacts":"Alle bekannten Fakten öffnen","knownFactsMessages":"{{count}} Nachrichten in der aktuellen Session"}},"exportChatHistory":{"exportPDF":"Chat als PDF exportieren","exporting":"Exportiere...","empty":"Kein Chatverlauf zum Exportieren","pdfNotSupported":"PDF-Export wird in diesem Browser nicht unterstützt","success":"Chat erfolgreich als PDF exportiert","error":"Fehler beim Exportieren des Chats als PDF. Bitte versuchen Sie es erneut."},"write_and_speak":{"micButtonPopover":"Klicken Sie auf die Schaltfläche, um zu sprechen","micButtonPopoverListening":"Klicken Sie auf die Schaltfläche, um das Sprechen zu stoppen","stopRecording":"Aufnahme beenden","sendRecording":"Sprachnachricht senden","recordingInProgress":"Aufnahme läuft","pageInstructExplanation":"Um mir neue Dinge beizubringen, klicken Sie auf die Schaltfläche \\"ANLEITEN\\", um zu beginnen","pageTryMeExplanation":"Um mit mir zu beginnen, klicken Sie auf die Schaltfläche START","pagePrivacyExplanation":"Die Konversationen sind sichtbar von dem Autor des Agenten","aiDisclaimer":"Der Agent kann Fehler machen. Bitte überprüfen Sie die Antworten.","downloadChat":"Chat herunterladen","pagePrivacyExplanationList":{"allConversations":"Alle Konversationen mit diesem Agenten sind sichtbar von dem Autor des Agenten","anonymousUser":"Für anonyme Benutzer: der Autor wird den Inhalt der Konversation und Ihre IP-Adresse sehen","registeredUser":"Für registrierte Benutzer: der Autor wird den Inhalt der Konversation und Ihren Benutzernamen sehen","contentAndUsername":"Der Autor kann den Inhalt, Ihren Benutzernamen und Ihre IP-Adresse sehen","contentAndIpAddress":"Der Autor kann den Inhalt und Ihre IP-Adresse sehen","authorUsesInfo":"Der Autor verwendet diese Informationen, um die Funktionen des Agenten zu verbessern und Ihnen einen besseren Service anzubieten."},"instructButton":"WEISE MICH AN","tryMeButton":"START","resumeButton":"FORTSETZEN","chatHistory":"Chatverlauf","chatHistoryDescription":"Chatverlauf mit diesem Agenten anzeigen","loadingChatHistory":"Chatverlauf wird geladen...","noChatHistoryAvailable":"Kein Chatverlauf verfügbar","noResultsFound":"Keine Ergebnisse gefunden für \\"{{searchText}}\\"","searchInChatHistory":"Unterhaltungen durchsuchen","filters":"Filter","latestFirst":"Neueste zuerst","oldestFirst":"Älteste zuerst","exportChat":"Chat exportieren","conversationStartedLabel":"Unterhaltung gestartet","settingsHeaderLabel":"Richten Sie hier ein, wenn Sie die Agent als Dauerrede einstellen möchten, und ändern Sie die Stillesekunden, wenn Sie sie anpassen möchten.","continuousSpeechLabel":"Kontinuierliche Rede","continuousSpeechDisabled":"Kontinuierliche Rede deaktiviert, da der Agent im Stummschaltmodus ist","holdToSpeak":"Halten Sie gedrückt, um zu sprechen","releaseToEndListening":"Lassen Sie los, um das Hören zu beenden","pressAndHoldToSpeak":"Zum Sprechen gedrückt halten","microphoneMode":"Mikrofonmodus","hideEmissionsLabel":"Vom Zwilling ausgegebenen Text ausblenden","showMessageConsumptionLabel":"Verbrauch pro Nachricht anzeigen","secondsLabel":"Sekunden einstellen","controlsPosition":"Steuert die Position","tryMeHeaderLabel":"VERSUCHEN","unknownPosition":"Unbekannte Position","fieldPlace":"Geben Sie den Ort ein (z. B. \\"Mailand\\")","showMapLinkFor":"Zeigen Sie die Position auf der Karte an","useMyPosition":"Nutzen Sie meine Position","myPosition":"Ihre Position","updatingPosition":"Position wird aktualisiert...","placeNotFound":"Ort nicht gefunden!","requirePosition":"Geben Sie vor dem Start Ihre Position ein","requirePositionHelp":"Zum Reden {{name}} Sie müssen entscheiden, ob Sie Ihre Position angeben oder nicht. ","dontWantToProvidePosition":"Ohne Standort fortfahren","requireLoginHelp":"Um mit {{name}} zu sprechen, musst du dich zuerst mit deinem Konto anmelden.","skipLocationTitle":"Es wird kein Standort auf der Karte gespeichert.","locationSaved":"Ihr Standort wurde gespeichert.","locationSavedWithPlace":"Ihr Standort wurde gespeichert: {{place}}","locationSkippedConfirm":"Sie machen ohne Standortfreigabe weiter.","placeSelected":"Ort ausgewählt: {{place}}","locationPermissionDenied":"Standortzugriff wurde verweigert. Erlauben Sie den Standort in den Browsereinstellungen oder wählen Sie einen Ort auf der Karte.","locationUnavailable":"Ihre Position konnte nicht ermittelt werden. Versuchen Sie es erneut oder suchen Sie einen Ort.","locationRequestTimedOut":"Standortanfrage hat das Zeitlimit überschritten. Versuchen Sie es erneut oder suchen Sie einen Ort.","locationErrorGeneric":"Beim Abrufen Ihres Standorts ist etwas schiefgelaufen.","attachmentsLabel":"Bereichern Sie Ihre Botschaft","image":"Bild","images":"Bilder","file":"Datei","files":"Dateien","function":"Funktion","functions":"Funktionen","iWantToTalkToIn":"Ich möchte mit reden {{name}} In","chatLanguageLabel":"Wählen Sie die Sprache der Unterhaltung","chatResumed":"Unterhaltung erfolgreich fortgesetzt.","message":"nachricht","messages":"nachrichten","page":"Seite {{current}} von {{total}}","downloadThisConversation":"Diese Unterhaltung herunterladen","downloadAllConversations":"Alle Unterhaltungen herunterladen","conversationsCount_one":"{{count}} Unterhaltung","conversationsCount_other":"{{count}} Unterhaltungen","shownOfTotal":"{{shown}} von {{total}} angezeigt","loadMore":"Weitere laden","backToConversationList":"Zurück zur Unterhaltungsliste","thisWeek":"Diese Woche"},"chatResume":{"resume":"Unterhaltung fortsetzen"},"artifact":{"close":"Schließen","size":"Größe","updated":"aktualisiert","updateFailed":"Update konnte nicht angewendet werden","updateFailedHint":"Der Patch stimmt nicht mit dem aktuellen Inhalt überein. Bitten Sie um ein Neuschreiben des Artifacts.","generated":"Generiert","download":"Herunterladen","print":"Drucken","external":"In neuem Fenster öffnen","type":"Typ","fullscreen":"Vollbild","exitFullscreen":"Vollbild beenden","copy":"Kopieren","generatedAt":"Generiert am","open":"Öffnen","code":"Code","source":"Quelle","preview":"Vorschau","resizeHandle":"Artifact-Panel skalieren","copied":"Kopiert!","error":"Fehler","generatingPdf":"PDF wird generiert...","copying":"Kopiere...","moreCopyOptions":"Weitere Kopieroptionen","copyAs":"Kopieren als","downloadAsMarkdown":"Als Markdown herunterladen","downloadRawMarkdownText":"Rohmarkdown-Text herunterladen","downloadAsPdf":"Als PDF herunterladen","exportAsPdfDocument":"Als PDF-Dokument exportieren","downloadAsHtml":"Als HTML herunterladen","downloadFormattedHtml":"Formatiertes HTML herunterladen","viewMode":"Ansichtsmodus","codeMode":"Code-Modus","refresh":"Aktualisieren","share":"Teilen","downloadAsJson":"Als JSON herunterladen","downloadJsonData":"JSON-Daten herunterladen","downloadAsPng":"Als PNG herunterladen","downloadPngImage":"PNG-Bild herunterladen","downloadAsJpeg":"Als JPEG herunterladen","downloadJpegImage":"JPEG-Bild herunterladen","downloadAsGif":"Als GIF herunterladen","downloadGifImage":"GIF-Bild herunterladen","downloadAsWebp":"Als WebP herunterladen","downloadWebpImage":"WebP-Bild herunterladen","copyAsSvg":"Als SVG kopieren","copySvgSourceCode":"SVG-Quellcode kopieren","copyAsPlainText":"Als Klartext kopieren","copyAsText":"Als Text kopieren","copyAsLanguage":"Als {{language}} kopieren","copyLanguageCode":"{{language}}-Code kopieren","copyWithoutSyntaxHighlighting":"Ohne Syntaxhervorhebung kopieren","copyTextContent":"Textinhalt kopieren","pdfExportNotSupported":"PDF-Export wird in diesem Browser nicht unterstützt","popupBlocked":"Popup blockiert! Bitte aktivieren Sie Popups zum Drucken.","safariPdfInstructions":"PDF-Export in neuem Fenster geöffnet. Bitte verwenden Sie Cmd+P (Mac) oder Strg+P (Windows) zum Drucken und als PDF speichern."},"upload":{"loginRequired":"Login erforderlich","pastedText":"text-eingefügt","uploadNotification":"Hochladen fehlgeschlagen","loginRequiredDescription":"Bitte melden Sie sich an, um Bilder hochzuladen","uploadFiles":"Dateien hochladen (drag and drop)","uploadFilesOrImages":"Dateien oder Bilder hochladen","uploadFilesWithShortcut":"{{shortcut}}+O zum Öffnen des Datei-Selektors","uploadImages":"Bilder hochladen","titleImage":"Bildtitel hinzufügen","uploadDocuments":"Dokumente hochladen","replace":"Ersetzen","remaining":"verbleibend","maxReached":"Maximal erreicht","apiClientNotConfigured":"Client API nicht korrekt konfiguriert für das Hochladen von Medien","fileReadingFailed":"Datei lesen fehlgeschlagen","uploadFailed":"Hochladen fehlgeschlagen","uploadSuccess":"Hochladen erfolgreich","uploadSuccessDescription":"Die Datei wurde erfolgreich hochgeladen","maxImagesReached":"Sie können bis zu {{max}} Bilder hochladen","dragAndDropFiles":"Ziehen Sie Dateien hierher, um sie zur Chat hinzuzufügen","contextSizeExceedsLimit":"Die Kontextgröße überschreitet das Limit. Reduzieren Sie die Anzahl der Dateien oder den Inhalt der Konversation.","filesNotAddedMaxAllowed":"{{count}} Datei(en) nicht hinzugefügt (maximal {{max}} Dateien erlaubt).","documentsNotAddedMaxAllowed":"{{count}} Dokument(e) nicht hinzugefügt (maximal {{max}} Dateien erlaubt).","imagesNotAddedMaxAllowed":"{{count}} Bild(er) nicht hinzugefügt (maximal {{max}} Dateien erlaubt).","documentsNotAddedContextSize":"{{count}} Dokument(e) nicht hinzugefügt (Kontextgrößen-Limit).","partialAssetUploadWarning":"Einige Dateilinks konnten nicht hochgeladen werden, aber das Dokument wurde trotzdem hinzugefügt.","anonymousRetentionNotice":"Hinweis: Hochgeladene Dateien werden maximal 24 Stunden gespeichert."},"media":{"title":"Titel","editAttributes":"Medienattribute bearbeiten","uploadMimeTypeNotAllowed":"Der Dateityp ist nicht zulässig","uploadSizeLimitMessage":"Die hochgeladene Größe ist zu groß (max {{size}}MB)","uploadWrongResolutionMessage":"Die Auflösung muss sein {{width}}X{{height}} Pixel","memoriNameAlreadyUsed":"Du hast bereits einen Zwilling mit diesem Namen","uploadHelperImages":"Laden Sie eine Datei mit der Erweiterung PNG, JPG, JPEG oder GIF hoch und darf maximal eine Größe von haben {{size}}MB","uploadHelper":"Laden Sie eine Datei mit einer maximalen Größe von hoch {{size}}MB","uploadError":"Der Upload ist fehlgeschlagen","square":"Quadrat","scaleRatio":"Maßstabsverhältnis","addMediaLabel":"Fügen Sie ein Medium hinzu","insertThisMediaMsg":"Legen Sie diese Medien ein","mediaUploadMessage":"Klicken Sie hier, um ein neues Medium zu laden","addLinkLabel":"Fügen Sie einen Link hinzu","linkKey":"URL","linkValue":"Linktitel","insertThisLink":"Fügen Sie einen Link ein {{url}} mit Titel {{title}}"},"gamification":{"level":"Ebene","points":"Punkte","memoriReachedLevel":"entwickelte sich weiter und erreichte ein höheres Niveau","levelGoToStatistics":"{{memori}} ist auf gleicher Höhe {{level}} mit {{points}} Punkte. ","congratulationsNewLevel":"Herzlichen Glückwunsch, Sie haben ein neues Level erreicht!","congratulationsNewLevelDescription":"Ihre Agent wurden mit weiterentwickelt {{points}} Punkte, schauen Sie sich die an","statistics":"Statistiken"},"login":{"login":"Login","title":"Login zu Ihrem Konto","logout":"Abmelden","user":"Benutzer","loggedDrawerTitle":"Hallo, {{name}}!","userNameRequired":"Benutzername erforderlich","userName":"Benutzername","userNamePlaceholder":"Geben Sie den Benutzernamen ein","loginDrawerTitle":"Login","signupDrawerTitle":"Melden Sie sich an","newUserSignUp":"Neuer Benutzer?","signUp":"Melden Sie sich an!","alreadyHaveAnAccount":"Sie haben bereits ein Konto?","backToLogin":"Zurück zum Login","registrationDisabled":"Die Registrierung ist deaktiviert","contactAdmin":"Wenden Sie sich an den Administrator, um Zugriff anzufordern","userNameOrEmail":"Benutzername oder E-Mail","email":"E-Mail","emailFormatError":"Bitte geben Sie eine gültige E-Mail-Adresse ein","username":"Benutzername","usernameContainsReservedWord":"Der Benutzername enthält ein reserviertes Wort. Bitte wählen Sie ein anderes","usernameFormatError":"Der Benutzername muss mindestens 3 Zeichen lang sein und darf nur Buchstaben, Zahlen und _ enthalten.","otpCode":"Bestätigungscode","resendVerificationCode":"Code erneut senden","resentVerificationCode":"Bestätigungscode gesendet! ","welcomeTitle":"Willkommen zurück","welcomeDescription":"Geben Sie Ihren 4-stelligen Bestätigungscode ein, um zu Ihrem Konto fortzufahren","otpTitle":"Bestätigungscode eingeben","otpDescription":"Geben Sie den 4-stelligen Code ein, den Sie in Ihrem Konto generiert haben","otpStep1":"Klicken Sie auf die Schaltfläche unten, um Ihr Konto zu öffnen","otpStep2":"Generieren Sie einen 4-stelligen Bestätigungscode (5 Minuten gültig)","otpStep3":"Kehren Sie hierher zurück und geben Sie den Code ein","startOtpLogin":"Verifizierung starten","generateOtp":"Code generieren","otpTimer":"Code läuft in {{time}} ab","otpInvalidFormat":"Bitte geben Sie einen gültigen 4-stelligen Code ein","otpInvalid":"Ungültiger Bestätigungscode","otpExpired":"Der Bestätigungscode ist abgelaufen","otpError":"Fehler bei der Code-Validierung. Bitte versuchen Sie es erneut.","otpSuccess":"Anmeldung erfolgreich!","otpAttemptsExceeded":"Zu viele Versuche. Fordern Sie einen neuen Bestätigungscode an.","resendOtpIn":"Erneut senden in {{seconds}}s","resendOtpPrompt":"Nicht angekommen? Erneut senden in {{seconds}} s","resendOtpQuestion":"Nicht angekommen?","resendOtp":"Erneut senden","editEmail":"Bearbeiten","otpSentToPrefix":"Wir haben einen 4-stelligen Code gesendet an","otpCodeShort":"Code","loginBenefitLine1":"{{memoriName}} kann Ihnen den Chatverlauf zeigen, der jederzeit fortgesetzt werden kann.","loginBenefit":"{{memoriName}} kann Ihnen den Chatverlauf zeigen, der jederzeit fortgesetzt werden kann.","passwordlessHint":"Wir senden Ihnen einen 4-stelligen Code. Kein Passwort nötig.","defaultAgentName":"der Agent","sendOtp":"Code senden","password":"Passwort","newPassword":"Neues Passwort","confirmPassword":"Passwort bestätigen","currentPassword":"Aktuelles Passwort","passwordMatchingError":"Passwörter stimmen nicht überein.","passwordFormatError":"Das Passwort muss mindestens 8 Zeichen lang sein und mindestens eine Zahl, einen Großbuchstaben, einen Kleinbuchstaben und ein Symbol enthalten","pwdWeak":"Schwach","pwdAcceptable":"Akzeptabel","pwdStrong":"Stark","mustChangePassword":"Sie müssen Ihr Passwort ändern","passwordChange":"Kennwort ändern","emailChange":"E-Mail ändern","avatarChange":"Avatar ändern","avatarUploadSuccess":"Profilbild aktualisiert.","underage":"Das müssen Sie mindestens sein {{age}} Jahre alt, um sich anzumelden.","optional":"Optional","birthDate":"Geburtsdatum","birthDatePlaceholder":"TT.MM.JJJJ","birthDateHelper":"Wir fragen nur nach Ihrem Geburtsdatum, um Funktionen zu aktivieren oder zu deaktivieren, für die Altersbeschränkungen gelten","missingData":"Fehlende Informationen","missingDataHelper":"Wir wissen, dass dies etwas nervig ist, benötigen jedoch noch einige weitere Informationen, um Ihre Registrierung abzuschließen.","goToAccountToChangeYourPreferences":"Sie können Ihre Auswahl jederzeit auf Ihrer Kontoseite ändern.","deepThoughtExplaination":"Deep Thought ist eine erweiterte Funktion der KI, die es Ihnen ermöglicht, Ihre Gespräche voll auszuschöpfen, indem Sie sie verfolgen. ","tnCAndPPAcceptedHelper":"Seit Ihrer letzten Anmeldung haben sich die AGB und Datenschutzbestimmungen geändert. ","privacyLabel":"Ich habe die gelesen und akzeptiert","privacyAndCookiePolicy":"Datenschutz und Cookie-Richtlinie","and":"Und","termsOfService":"Nutzungsbedingungen","pAndCUAccepted":"Ich akzeptiere die Nutzungsbedingungen von Deep Thought","editAccount":"Konto bearbeiten","save":"Speichern","successfullyLoggedIn":"{{username}} hat sich erfolgreich angemeldet"},"chatLogs":{"llm":"LLM","model":"Modell","provider":"Anbieter","tokens":"Tokens","input":"Eingabe","output":"Ausgabe","cacheRead":"Cache lesen","cacheWrite":"Cache schreiben","duration":"Dauer","energy":"Energie","co2":"CO2","water":"Wasser","usageBadgesHint":"Klicke auf einen dieser Buttons, um mehr Informationen zu sehen","totalChatConsumptionTitle":"Gesamter Chat-Verbrauch","modelUsage":"Modellnutzung","environmentalImpact":"Umweltbelastung","impactComparisonUnavailable":"Indikativer Vergleich nicht verfuegbar.","impactComparisonEnergy":"Indikativer Vergleich: in etwa wie eine 10-W-LED-Lampe fuer {{duration}} eingeschaltet lassen.","impactComparisonCo2":"Indikativer Vergleich: etwa {{distance}} mit einem durchschnittlichen Benzinauto gefahren.","impactComparisonWater":"Indikativer Vergleich: etwa {{count}} Wassertropfen.","energyImpactDescription":"Dieser Wert schaetzt die elektrische Energie, die zur Erzeugung der Modellantwort benoetigt wird. Er hilft, Prompts, Modelle und Strategien zu vergleichen, auch wenn eine einzelne Nachricht nur sehr geringe Auswirkungen hat.","co2ImpactDescription":"CO2-Aequivalent steht fuer die geschaetzten Klimaauswirkungen der Nachricht. Die Umrechnung des Verbrauchs in Emissionen hilft, die Umweltauswirkungen einer KI-Antwort mit vergleichbaren Kennzahlen zu verstehen.","waterImpactDescription":"Dieser Indikator zeigt den geschaetzten Wasserfussabdruck der Nachrichtenverarbeitung. Er umfasst Wasser, das indirekt in Energie und Infrastruktur eingesetzt wird, die die Berechnung ermoeglichen.","approximateValuesTooltip":"Diese Werte sind ungefaehr.","anyMessage":"Jede Nachricht","atLeast":"Mindestens {{count}} Nachrichten","atLeast1":"Mindestens 1 Nachricht","atLeast2":"Mindestens 2 Nachrichten","atLeast3":"Mindestens 3 Nachrichten","atLeast5":"Mindestens 5 Nachrichten","atLeast10":"Mindestens 10 Nachrichten","atLeast15":"Mindestens 15 Nachrichten","atLeast20":"Mindestens 20 Nachrichten","customMinimumMessages":"Anpassen Sie die Anzahl der Nachrichten"},"success":"Erfolg","Error":"Fehler","internal server error":"Oupsie, tut mir leid... Auf dem Server ist ein Fehler aufgetreten","error":"Fehler","error.loading":"Fehler beim Laden des Inhalts.","error.generic":"Oupsie, tut mir leid ... etwas ist schief gelaufen.","error.serverNotResponding":"Wir führen Wartungsarbeiten durch oder veröffentlichen Updates. ","error.notFound":"Oupsie, wir haben die von Ihnen gesuchte Seite nicht gefunden.","error.goBackTo":"Sie können versuchen, dorthin zurückzukehren","error.reloadPage":"Laden Sie die Seite neu","error.tryAgain":"Versuchen Sie es erneut","error.unauthorized":"Es ist Ihnen nicht gestattet, diesen Inhalt anzuzeigen.","error.unprocessableEntity":"Fehler beim Verarbeiten der Anfrage. ","errors":{"TENANT_NOT_FOUND":"Mieter nicht gefunden","TENANT_REGISTRATION_DISABLED":"Die Registrierung auf dieser Plattform ist deaktiviert","TENANT_MISSING_NAME":"Mieter: Name fehlt","TENANT_MAX_USERS_REACHED":"Maximale Anzahl Benutzer erreicht","TENANT_MAX_ADMINS_REACHED":"Maximale Anzahl an Admin-Benutzern erreicht","TENANT_ALREADY_EXISTS":"Mieter existiert bereits","TENANT_MISSING_DESCRIPTION":"Mieter: Beschreibung fehlt","TENANT_CANT_SET_COMPLETION_PROVIDER":"Mandant: Abschlussanbieter kann nicht festgelegt werden","TENANT_INVALID_TYPE":"Mandant: ungültiger Typ","USER_NOT_CONFIRMED":"Benutzer noch nicht bestätigt","USER_NOT_FOUND":"Benutzer nicht gefunden","USER_OR_PASSWORD_INVALID":"Ungültiger Benutzer oder Passwort","USER_MUST_CHANGE_PASSWORD":"Sie müssen Ihr Passwort ändern","USER_MUST_ENTER_VERIFICATION_CODE":"Sie müssen den Bestätigungscode eingeben","USER_MISSING_TENANT":"Benutzer: Mieter fehlt","USER_MISSING_NAME":"Benutzer: Name fehlt","USER_MISSING_PASSWORD":"Benutzer: Passwort fehlt","USER_MISSING_EMAIL":"Benutzer: Fehlende E-Mail","USER_MISSING_VERIFICATION_CODE":"Benutzer: Fehlender Bestätigungscode","USER_NAME_ALREADY_USED":"Benutzername wird bereits verwendet","USER_PASSWORD_NOT_CONFORMING_TO_POLICY":"Das Passwort entspricht nicht den Sicherheitsregeln","USER_EMAIL_ALREADY_USED":"E-Mail wird bereits verwendet","USER_EMAIL_INVALID":"Ungültige E-Mail","USER_VERIFICATION_CODE_INVALID":"Ungültiger Bestätigungscode","USER_MISSING_NAME_OR_EMAIL":"Benutzername oder E-Mail fehlen","USER_NAME_INVALID":"Ungültiger Benutzername","USER_HAS_ONE_OR_MORE_MEMORI":"Der Benutzer verfügt über eine oder mehrere Erinnerungen","USER_MISSING_NEW_PASSWORD":"Benutzer: Neues Passwort fehlt","USER_NOTHING_TO_DO":"Nichts zu tun","USER_CANT_CREATE_MEMORI":"Benutzer darf Agent nicht erstellen","USER_MAX_MEMORI_REACHED":"Maximale Anzahl an Agent erreicht","USER_TOO_MANY_ATTEMPTS":"Zu viele Versuche","USER_MUST_ACCEPT_TNC_AND_PP":"Sie müssen die Allgemeinen Geschäftsbedingungen akzeptieren","USER_BIRTH_DATE_CANT_BE_CHANGED":"Das Geburtsdatum kann nicht geändert werden","USER_CANT_SET_COMPLETION_PROVIDER":"Benutzer: darf den Vervollständigungsanbieter nicht verwalten","USER_CANT_ENABLE_DEEP_THOUGHT":"Benutzer: nicht für die Verwaltung von Deep Thought aktiviert","USER_CANT_ENABLE_DCM_INTEGRATION":"Benutzer: nicht für die Verwaltung der DCM-Integration aktiviert","USER_CANT_ENABLE_CHAINING_OR_BOARD_OF_EXPERTS":"Benutzer: darf die Verkettung oder Expertengruppe nicht verwalten","USER_CREATION_BILLING_DENIED_PERMISSION":"Sie haben nicht genügend Credits, um einen Zwilling zu erstellen","USER_HAS_ONE_OR_MORE_COMPLETION_CONFIGS":"Der Benutzer verfügt über eine oder mehrere Abschlusskonfigurationen","USER_CANT_BE_DELETED":"Benutzer kann nicht gelöscht werden","USER_ORDER_BY_INVALID":"Ungültige Sortierreihenfolge","MEMORI_NOT_FOUND":"Erinnerungen nicht gefunden","MEMORI_NOT_ACCESSIBLE":"Agent nicht zugänglich","MEMORI_ONLY_OWNER_CAN_CHANGE_GIVER_TAG_AND_PIN":"Nur der Eigentümer kann das Tag oder die PIN ändern","SESSION_NOT_FOUND":"Sitzung nicht gefunden","SESSION_IS_NOT_ADMINISTRATIVE":"Nicht-administrative Sitzung","SESSION_EXPIRED":"Sitzung abgelaufen","speechMissingSession":"Sprache benötigt eine aktive Sitzung","speechInvalidSession":"Sitzung ungültig","speechTenantMismatch":"Sprache ist auf dieser Website nicht verfügbar","speechRateLimited":"Zu viele Sprachanfragen. Bitte kurz warten und erneut versuchen.","SESSION_OTP_NOT_FOUND":"Bestätigungscode nicht gefunden","SESSION_OTP_EXPIRED":"Der Bestätigungscode ist abgelaufen","SESSION_OTP_INVALID":"Ungültiger Bestätigungscode","SESSION_OTP_ATTEMPTS_EXCEEDED":"Zu viele Versuche. Fordern Sie einen neuen Bestätigungscode an.","MEMORI_MISSING_CONFIGURATION":"Zwilling: fehlende Konfiguration","MEMORI_CONFIGURATION_NOT_FOUND":"Zwilling: Konfiguration nicht gefunden","MEMORI_INVALID_PRIVACY_TYPE":"Agent: ungültiger Datenschutztyp","MEMORI_MISSING_PASSWORD":"Zwilling: Passwort fehlt","MEMORI_INVALID_TOTAL_NUMBER_OF_RECOVERY_TOKENS":"Agent: Gesamtzahl ungültiger Wiederherstellungstokens","MEMORI_INVALID_MINIMUM_NUMBER_OF_RECOVERY_TOKENS":"Agent: Mindestanzahl ungültiger Wiederherstellungstokens","MEMORI_INVALID_VOICE_TYPE":"Zwilling: ungültiger Stimmtyp","MEMORI_MISSING_NAME":"Zwilling: fehlender Name","MEMORI_MISSING_PASSWORD_OR_RECOVERY_TOKENS":"Zwilling: Fehlendes Passwort oder Wiederherstellungstoken","MEMORI_INVALID_ID":"Zwilling: ungültige ID","MEMORI_NAME_ALREADY_USED":"Zwillingsname wird bereits verwendet","MEMORI_INVALID_PIN":"Zwilling: Ungültige PIN","MEMORI_GIVER_TAG_PIN_CHANGE_REQUIRES_SEPARATE_OPERATION":"Zwilling: TAG- und PIN-Änderung erfordern separate Vorgänge","MEMORI_NO_PASSWORD_WHEN_PUBLIC":"Zwilling: Im öffentlichen Zustand ist kein Passwort erforderlich","MEMORI_DEEP_THOUGHT_REQUIRES_COMPLETIONS":"Für \\"Deep Thought\\" müssen Vervollständigungen aktiviert sein","MEMORI_BOARD_OF_EXPERTS_REQUIRES_COMPLETIONS":"Für die Expertengruppe müssen Vervollständigungen aktiviert sein","MEMORI_INVALID_COMPLETION_CONFIG":"Zwilling: Ungültige Abschlusskonfiguration","MEMORI_MACRO_FUNCTIONS_REQUIRES_COMPLETIONS":"Für die Makrofunktionen müssen Vervollständigungen aktiviert sein","MEMORI_BLOCKING_DATE_MISSING_OR_WRONG":"Zwilling: fehlende oder falsche Blockierungsdatum","MEMORI_LIST_FILTER_NOT_SPECIFIED":"Zwilling: fehlender Filter","MEMORI_TRANSFER_MISSING_DESTINATION_USER":"Übertragung: Zielbenutzer fehlt","MEMORI_TRANSFER_INVALID_DESTINATION_USER_ID":"Übertragung: Ungültige Zielbenutzer-ID","MEMORI_TRANSFER_DESTINATION_USER_DATA_INCONSISTENT":"Übertragung: Ungültige Zielbenutzerdaten","MEMORI_TRANSFER_NOTHING_TO_DO":"Transfer: nichts zu tun","MEMORI_CONFIGURATION_CANT_BE_CHANGED":"Speicher: Konfiguration kann nicht geändert werden","MEMORI_MISSING_NEW_PASSWORD":"Erinnerungen: Neues Passwort fehlt","MEMORI_FEATURE_REQUIRES_SUBSCRIPTION":"Für die Funktion ist ein Abonnement erforderlich","INTEGRATION_NOT_FOUND":"Integration nicht gefunden","MEMORI_SESSIONS_INVALID_DATE_FROM_FORMAT":"Ungültiges Datum aus Format","MEMORI_SESSIONS_INVALID_DATE_TO_FORMAT":"Ungültiges Datum zum Formatieren","MEMORI_SESSION_NOT_FOUND":"Sitzung nicht gefunden","MEMORI_SESSION_DOESNT_ACCEPT_MEDIA":"Sitzung akzeptiert keine Medien","INTEGRATION_INVALID_TYPE":"Ungültiger Integrationstyp","INTEGRATION_ALREADY_EXISTS":"Die Integration ist bereits vorhanden","INTEGRATION_MEMORI_IS_NOT_PUBLIC":"Nicht-öffentliche Erinnerungen können nicht integriert werden","INTEGRATION_MISSING_INVOCATION_TEXT":"Integration: fehlender Aufruftext","INTEGRATION_MISSING_DEVICE_EMAILS":"Integration: Fehlende Geräte-E-Mail","INTEGRATION_MEMORI_IS_EMPTY":"Leere Erinnerungen können nicht integriert werden","INTEGRATION_MISSING_PRIVACY_POLICY":"Integration: Datenschutzrichtlinie fehlt","INTEGRATION_MISSING_CATEGORY":"Integrationskategorie fehlt","INTEGRATION_MISSING_DESCRIPTION":"Fehlende Integrationsbeschreibung","INTEGRATION_INVALID_INVOCATION_TEXT":"Ungültiger Aufruftext","INTEGRATION_GOOGLE_NO_MORE_AVAILABLE":"Google Home nicht mehr verfügbar","UPLOAD_REQUIRES_MULTIPART_ENCODING":"Für den Upload ist eine mehrteilige Kodierung erforderlich","UPLOAD_MISSING_CONTENT_TYPE_BOUNDARY":"Hochladen: Inhaltstypgrenze fehlt","UPLOAD_MAX_LENGTH_EXCEEDED":"Upload: Maximale Größe überschritten","UPLOAD_FILE_IS_EMPTY":"Hochladen: leere Datei","UPLOAD_INVALID_FILE_TYPE_OR_SIGNATURE":"Hochladen: Ungültiger Dateityp oder ungültige Signatur","UPLOAD_MISSING_FILE_NAME":"Hochladen: Dateiname fehlt","UPLOAD_INVALID_MEMORY_ID":"Hochladen: Ungültige Inhalts-ID","UPLOAD_MISSING_FILE_CONTENT":"Hochladen: Dateiinhalt fehlt","ASSET_NOT_FOUND":"Asset nicht gefunden","ASSET_NOT_ACCESSIBLE":"Asset nicht zugänglich","ASSET_MISSING_SESSION_ID":"Asset: Sitzungs-ID fehlt","ASSET_INVALID_FILE_NAME":"Asset: ungültiger Dateiname","ASSET_MALWARE_SCAN_THREATS_FOUND":"Asset: malware scan threats found","INVITATION_NOT_FOUND":"Einladung nicht gefunden","INVITATION_NOT_ACCESSIBLE":"Einladung nicht zugänglich","INVITATION_ALREADY_ACCEPTED":"Einladung bereits angenommen","INVITATION_ALREADY_REJECTED":"Einladung bereits abgelehnt","INVITATION_MISSING_DESTINATION_EMAIL":"Einladung: Ziel-E-Mail fehlt","INVITATION_DESTINATION_EMAIL_INVALID":"Einladung: Ziel-E-Mail-Adresse ungültig","INVITATION_MISSING_TAG":"Einladung: Tag fehlt","INVITATION_MISSING_PIN":"Einladung: PIN fehlt","INVITATION_INVALID_PIN":"Einladung: ungültige PIN","INVITATION_INVALID_TYPE":"Einladung: ungültiger Typ","INVITATION_MISSING_DESTINATION_NAME":"Einladung: Zielname fehlt","INVITATION_TAG_PIN_CANT_BE_CHANGED":"Einladung: Tag und Pin können nicht geändert werden","INVITATION_CANT_BE_CHANGED":"Absicht: kann nicht geändert werden","ACTIONLOG_INVALID_USER_ID":"Ungültige Benutzer-ID","ACTIONLOG_INVALID_DATE_FROM_FORMAT":"Datum von: ungültiges Format","ACTIONLOG_INVALID_DATE_TO_FORMAT":"Datum bis: ungültiges Format","ACTIONLOG_INVALID_MEMORI_ID":"Ungültige Memori-ID","CONSUMPTIONLOG_INVALID_TYPE":"Ungültiger Protokolltyp","CONSUMPTIONLOG_INVALID_DATE_FROM_FORMAT":"Datum von: ungültiges Format","CONSUMPTIONLOG_INVALID_DATE_TO_FORMAT":"Datum bis: ungültiges Format","CONSUMPTIONLOG_INVALID_USER_ID":"Ungültige Benutzer-ID","CONSUMPTIONLOG_INVALID_MEMORI_ID":"Ungültige Memori-ID","NOTIFICATIONPREFS_INVALID_CHATLOG_EXTRACTION_PERIOD":"Benachrichtigungen: Ungültiger Chat-Protokoll-Extraktionszeitraum","BROADCAST_NOT_ALLOWED":"Broadcast nicht erlaubt","INVALID_NOTIFICATION_TYPE":"Ungültiger Benachrichtigungstyp","NOTIFICATION_NOT_FOUND":"Benachrichtigung nicht gefunden","INVALID_NOTIFICATION_FILTER":"Ungültiger Benachrichtigungsfilter","INVALID_NOTIFICATION_PERIOD":"Ungültiger Benachrichtigungszeitraum","PROCESS_INVALID_TYPE":"Ungültiger Prozesstyp","PROCESS_ALREADY_RUNNING":"Prozess läuft bereits","PROCESS_NOT_FOUND":"Prozess nicht gefunden","IMPORTCSV_MISSING_ROWS":"CSV-Import: fehlende Zeilen","IMPORTCSV_MISSING_CSV":"CSV-Import: CSV fehlt","IMPORTCSV_MISSING_SEPARATOR":"CSV-Import: fehlendes Trennzeichen","IMPORTCSV_INVALID_SEPARATOR":"CSV-Import: Ungültiges Trennzeichen","IMPORTCSV_MISSING_HEADERS":"CSV-Import: fehlende Header","IMPORTCSV_MISSING_TITLE_VARIANT_SEPARATOR":"CSV-Import: Titelvariantentrennzeichen fehlt","IMPORTCSV_INVALID_RECEIVER_ID":"CSV-Import: ungültige Empfänger-ID","IMPORTCSV_INVALID_MEDIA_LINK":"CSV-Import: Ungültiger Medienlink","IMPORTCSV_INVALID_LINK_TITLE_HANDLING":"CSV-Import: Ungültiger Linktitel","IMPORTCSV_UNDETECTABLE_CHAR_ENCODING":"CSV-Import: Nicht erkennbare Zeichenkodierung","IMPORTCSV_CANT_IMPORT_TO_SECRET_MEMORI":"CSV-Import: Der Import in Secret Memories ist nicht möglich","IMPORTTXT_MISSING_ROWS":"TXT wird importiert: Zeilen fehlen","IMPORTTXT_INVALID_GRANULARITY":"TXT importieren: ungültige Granularität","IMPORTTXT_INVALID_RECEIVER_ID":"TXT importieren: ungültige Empfänger-ID","IMPORTTXT_INVALID_MEDIA_LINK":"TXT importieren: Ungültiger Medienlink","IMPORTTXT_INVALID_LINK_TITLE_HANDLING":"TXT importieren: ungültiger Linktitel","IMPORTTXT_UNDETECTABLE_CHAR_ENCODING":"TXT-Import: Nicht erkennbare Zeichenkodierung","IMPORTTXT_CANT_IMPORT_TO_SECRET_MEMORI":"TXT-Import: Der Import in Secret Memories ist nicht möglich","IMPORTTXT_IMPORT_LIMIT_EXCEEDED":"TXT importieren: Importlimit überschritten","IMPORTTXT_IMPORT_ON_GPT4_REQUIRES_API_KEY":"TXT importieren: Für den Import auf GPT-4 ist ein API-Schlüssel erforderlich","IMPORTTXT_IMPORT_REQUIRES_PAYING":"TXT importieren: Für den Import ist ein kostenpflichtiger Plan erforderlich","IMPORTTXT_BILLING_DENIED_PERMISSION":"TXT importieren: Sie haben nicht genügend Credits für den Vorgang","IMPORT_MISSING_ROWS":"Import: fehlende Zeilen","IMPORT_CANT_IMPORT_TO_SECRET_MEMORI":"Import: Der Import in Secret Memories ist nicht möglich","IMPORTMEMORI_INVALID_MEMORI_SPECS":"Import MEMORI: ungültige Agentenspezifikationen","IMPORT_MISSING_JSONL":"Import: JSONL fehlt","IMPORTMEMORI_INVALID_SPECS":"Import MEMORI: ungültige Spezifikationen","EXPORT_MISSING_PASSWORD":"Export: Passwort fehlt","EXPORTCSV_MISSING_CSV_SPECS":"CSV-Export: CSV-Spezifikationen fehlen","EXPORTCSV_MISSING_SEPARATOR":"CSV-Export: fehlendes Trennzeichen","EXPORTCSV_INVALID_SEPARATOR":"CSV-Export: Ungültiges Trennzeichen","EXPORTCSV_MISSING_TITLE_VARIANT_SEPARATOR":"CSV-Export: fehlendes Titelvarianten-Trennzeichen","EXPORTCSV_MISSING_NEW_LINE_CHAR":"CSV-Export: Fehlendes Zeilenumbruchzeichen","EXPORTCSV_INVALID_NEW_LINE_CHAR":"CSV-Export: Ungültiges Zeilenumbruchzeichen","EXPORTCSV_MISSING_PASSWORD":"CSV-Export: Passwort fehlt","EXPORTJSONL_MISSING_JSONL_SPECS":"JSONL-Export: JSONL-Spezifikationen fehlen","EXPORTJSONL_MISSING_PLATFORM":"JSONL-Export: fehlende Plattform","EXPORTJSONL_INVALID_PLATFORM":"JSONL-Export: ungültige Plattform","EXPORTJSONL_MISSING_PASSWORD":"JSONL-Export: Passwort fehlt","EXPORTJSONL_EXPORT_REQUIRES_PAYING":"JSONL-Export: Für den Export ist ein kostenpflichtiger Plan erforderlich","ANALYSIS_MISSING_QUERY":"Analyse: fehlende Abfrage","ANALYSIS_CANT_ANALYZE_SECRET_MEMORI":"Analyse: Geheime Erinnerungen können nicht analysiert werden","ANALYSIS_USER_QUERY_MATCH_REQUIRES_DEEP_THOUGHT":"Analyse: Passende Benutzeranfragen erfordern tiefes Denken","BADGE_ASSIGNMENT_WRONG_OR_MISSING_CREDENTIALS":"Ausweiszuweisung: falsche oder fehlende Zugangsdaten","BADGE_ASSIGNMENT_MISSING_REF_ID":"Badge-Zuordnung: Referenz-ID fehlt","BADGE_ASSIGNMENT_OUTCOME_NOT_FOUND":"Badge-Zuweisung: Ergebnis nicht gefunden","BADGE_ASSIGNMENT_MISSING_ASSERTION_URL":"Badge-Zuweisung: Fehlende Behauptungs-URL","BADGE_ASSIGNMENT_MISSING_BADGE_URL":"Badge-Zuweisung: Badge-URL fehlt","BADGE_ASSIGNMENT_MISSING_ISSUER_URL":"Badge-Zuweisung: Aussteller-URL fehlt","BADGE_ASSIGNMENT_INVALID_URL":"Badge-Zuweisung: Ungültige URL","BADGE_ASSIGNMENT_MISSING_RECIPIENT":"Ausweiszuordnung: fehlender Empfänger","BADGE_ASSIGNMENT_UNKNOWN_RECIPIENT_TYPE":"Badge-Zuordnung: unbekannter Empfängertyp","BADGE_ASSIGNMENT_MISSING_RECIPIENT_IDENTITY":"Ausweiszuordnung: Empfängeridentität fehlt","BADGE_ASSIGNMENT_MISSING_RECIPIENT_HASH_TYPE":"Badge-Zuweisung: Empfänger-Hash-Typ fehlt","BADGE_ASSIGNMENT_UNKNOWN_RECIPIENT_HASH_TYPE":"Badge-Zuweisung: Empfänger-Hash-Typ unbekannt","BADGE_ASSIGNMENT_WRONG_RECIPIENT_IDENTITY":"Badge-Zuordnung: Falsche Empfängeridentität","BADGE_NOT_FOUND":"Abzeichen nicht gefunden","OUTCOME_NO_DCM_CONFIGURED":"Ergebnis: kein DCM konfiguriert","OUTCOME_USER_BADGES_DISABLED":"Ergebnis: Benutzerausweise deaktiviert","COMPLETION_CONFIG_MISSING_NAME":"Vervollständigungskonfiguration: Name fehlt","COMPLETION_CONFIG_MISSING_PROVIDER":"Vervollständigungskonfiguration: fehlender Anbieter","COMPLETION_CONFIG_MISSING_ENDPOINT":"Abschlusskonfiguration: fehlender Endpunkt","COMPLETION_CONFIG_MISSING_API_KEY":"Vervollständigungskonfiguration: fehlender API-Schlüssel","COMPLETION_CONFIG_MISSING_MODEL":"Vervollständigungskonfiguration: fehlendes Modell","COMPLETION_CONFIG_NO_PURPOSE_SPECIFIED":"Vervollständigungskonfiguration: Es muss mindestens ein Vervollständigungstyp angegeben werden","COMPLETION_CONFIG_INVALID_NAME":"Vervollständigungskonfiguration: ungültiger Name","COMPLETION_CONFIG_INVALID_PURPOSE":"Vervollständigungskonfiguration: Ungültiger Vervollständigungstyp","COMPLETION_CONFIG_INVALID_ENDPOINT":"Abschlusskonfiguration: Ungültiger Endpunkt","COMPLETION_CONFIG_INCONSISTENT_ENDPOINT":"Abschlusskonfiguration: inkonsistenter Endpunkt","COMPLETION_CONFIG_INVALID_PROVIDER":"Vervollständigungskonfiguration: ungültiger Anbieter","COMPLETION_CONFIG_NOT_FOUND":"Vervollständigungskonfiguration: nicht gefunden","COMPLETION_CONFIG_NOT_ACCESSIBLE":"Vervollständigungskonfiguration: nicht zugänglich","COMPLETION_CONFIG_NAME_RESERVED":"Vervollständigungskonfiguration: Name reserviert","COMPLETION_CONFIG_NAME_ALREADY_EXISTS":"Vervollständigungskonfiguration: Name existiert bereits","COMPLETION_CONFIG_VISIBILITY_CHANGE_NOT_ALLOWED":"Vervollständigungskonfiguration: Änderung der Sichtbarkeit nicht zulässig","COMPLETION_CONFIG_MISSING_MANDATORY_PREFIX":"Vervollständigungskonfiguration: Pflichtpräfix fehlt","COMPLETION_CONFIG_VISIBILITY_NOT_PERMITTED":"Vervollständigungskonfiguration: Sichtbarkeit nicht erlaubt","COMPLETION_CONFIG_USE_AS_DEFAULT_NOT_PERMITTED":"Vervollständigungskonfiguration: Verwendung als Standard nicht erlaubt","COMPLETION_CONFIG_USE_AS_DEFAULT_REQUIRES_TENANT_VISIBILITY":"Vervollständigungskonfiguration: Verwendung als Standard erfordert Mandantensichtbarkeit","COMPLETION_CONFIG_CHARGEABLE_NOT_PERMITTED":"Vervollständigungskonfiguration: Chargeable nicht erlaubt","COMPLETION_CONFIG_INVALID_APPLY_TO":"Vervollständigungskonfiguration: Ungültige Anwendung","COMPLETION_CONFIG_APPLY_TO_TENANT_NOT_ALLOWED":"Vervollständigungskonfiguration: Anwendung auf Mandant nicht erlaubt","TRUSTED_APPLICATION_NOT_FOUND":"Vertrauenswürdige Anwendung nicht gefunden","TRUSTED_APPLICATION_NOT_ACCESSIBLE":"Vertrauenswürdige Anwendung nicht zugänglich","TRUSTED_APPLICATION_NAME_REQUIRED":"Vertrauenswürdige Anwendung: Name erforderlich","TRUSTED_APPLICATION_TOKEN_REQUIRED":"Vertrauenswürdige Anwendung: Token erforderlich","TRUSTED_APPLICATION_NAME_ALREADY_EXISTS":"Vertrauenswürdige Anwendung: Name existiert bereits","TRUSTED_APPLICATION_INVALID_TOKEN":"Vertrauenswürdige Anwendung: Ungültiger Token"}}');var XR={};XR=JSON.parse('{"yes":"Sí","no":"No","confirm":"Confirmar","apply":"Aplicar","cancel":"Cancelar","show":"Espectáculo","hide":"Esconder","send":"Enviar","scrollToLatest":"Ir al último mensaje","scrollToContinueReading":"Desplázate para seguir leyendo","close":"Cerrar","clearHistory":"Borrar chat","clearHistoryDone":"Chat borrado.","moreInfo":"Más información","back":"Volver","edit":"Editar","delete":"Borrar","loading":"Cargando","expand":"Expandir","collapse":"Contraer","expandable":{"expand":"Expandir"},"fullscreenEnter":"Entrar en pantalla completa","fullscreenExit":"Salir de pantalla completa","center":"Centro","bottom":"Abajo","hidden":"Oculto","day":"Día","all":"Todos","today":"Hoy","yesterday":"Ayer","last_7_days":"Últimos 7 días","last_30_days":"Últimos 30 días","placeholder":"Haz una pregunta","date":"Fecha de nacimiento","month":"Mes","copied":"¡Copiado!","missingData":"Información faltante","year":"Año","createdAt":"Fecha de creación","selected":"Seleccionado","page":"página","actions":"Comportamiento","next":"Próximo","previous":"Anterior","copy":"Copiar","copyRawCode":"Copiar código sin formato","feedback":"Comentarios","feedbackThankYou":"Gracias por tus comentarios.","copyFailed":"No se pudo copiar","functionCache":"Caché de funciones","copyToClipboard":"Copiar al portapapeles","showOriginalText":"Mostrar original","showTranslatedText":"Mostrar traducción","exactPosition":"Posición exacta","uncertain":"Incierto","question":"Pregunta","nothingFound":"No se encontró nada","venue":"Evento","searchVenue":"Buscar un lugar…","privacyPolicy":"Política de privacidad","popularLanguages":"Populares","allLanguages":"Todos los idiomas","memoriBlockedTitle":"Obstruido","memoriBlockedUntil":"Agent bloqueado hasta {{date}}","memoriBlockedAnon":"Actualmente \\"{{name}}\\"No puedo responder, vuelve aquí. {{date}}","memoriBlockedReasonExceedChats":"porque ha superado el umbral mensual de chats permitidos.","memoriBlockedGiverHelper":"Aún podrás administrarlo como administrador, pero otros usuarios no podrán interactuar con él.","generatedByAI":"La respuesta generada por IA, ocasionalmente puede generar información incorrecta","aiGeneratedNote":"El agente puede hacer errores. Asegúrate de verificar información importante.","reasoning":"Pensamiento...","thinking":"Pensando","thought":"Pensamiento","thoughtFor":"Pensado durante {{count}} s","whyThisAnswer":"De dónde viene esta respuesta","whyThisAnswerHelper":"Esta respuesta fue generada automáticamente por una inteligencia artificial basada en estos contenidos verificados.","whyThisAnswerDescription":"Los contenidos de la base de conocimiento que el agente consultó para responder.","whyThisAnswerYouAsked":"Has preguntado","whyThisAnswerUserAsked":"Pregunta del usuario","whyThisAnswerAgentReplied":"El agente ha respondido","whyThisAnswerShowFull":"Mostrar la respuesta completa","whyThisAnswerContentsUsed":"Contenidos usados","whyThisAnswerOpen":"Abrir","whyThisAnswerDisclaimer":"La respuesta la ha escrito el agente a partir de estos contenidos: puede contener errores o reformulaciones. Verifica la información importante en la fuente.","whyThisAnswerEmptyTitle":"Ningún contenido consultado","whyThisAnswerEmptyDescription":"Para esta pregunta el agente no encontró coincidencias en la base de conocimiento: ha respondido solo según sus instrucciones.","whyThisAnswerEmptyAuthorDescription":"La pregunta no produjo coincidencias. Si debería tenerlas, añade un contenido que la cubra.","whyThisAnswerAddContent":"Añadir a la base de conocimiento","whyThisAnswerConfidenceHigh":"Coincidencia alta","whyThisAnswerConfidenceMedium":"Coincidencia parcial","whyThisAnswerConfidenceLow":"Coincidencia débil","whyThisAnswerTypeQuestion":"Pregunta y respuesta","whyThisAnswerTypeDocument":"Documento","whyThisAnswerTypeWebsite":"Sitio web","whyThisAnswerTypeStory":"Relato","whyThisAnswerSourcesCount_one":"{{count}} fuente","whyThisAnswerSourcesCount_other":"{{count}} fuentes","whyThisAnswerNoSources":"Ninguna fuente","receiverLabel":"Asignado a","completionsEnabled":"La IA avanzada puede responder con respuestas generadas automáticamente que a veces pueden contener información incorrecta.","completionProviderDown":"Este Agent está integrado con una IA generativa de {{provider}}, pero actualmente no está disponible. ","completionProviderMajorOutage":"Este Agent está integrado con una IA generativa de {{provider}}, pero al momento no está disponible. No será posible utilizar esta funcionalidad hasta que el servicio se restaure.","completionProviderPartialOutage":"Este Agent está integrado con una IA generativa de {{provider}}, pero está experimentando interrupciones parciales. Algunas funcionalidades pueden no estar disponibles o funcionar de manera no óptima.","completionProviderDegraded":"Este Agent está integrado con una IA generativa de {{provider}}, pero está funcionando más lentamente de lo normal. Las respuestas pueden tomar más tiempo o ser menos precisas.","completionProviderFallbackName":"un proveedor externo","completionProviderCheckStatusPage":"Comprobar página de estado","boardOfExperts":"junta de expertos","birthDate":"Fecha de nacimiento","birthDateHelper":"Solicitamos tu fecha de nacimiento únicamente para habilitar o deshabilitar funcionalidades que tienen restricciones de edad.","underage":"Debes ser al menos {{age}} años para inscribirse.","underageTwinSession":"Debes ser al menos {{age}} años para interactuar con este gemelo.","errorFetchingSession":"Error durante el cargamento de la sesión","errorGettingReferralURL":"Error durante el cargamento del référent","errorReopeningSession":"Error durante el re-abrir la sesión","sessionExpiredReopening":"Sesión expirada, reabriendo sesión","ageVerification":"Verificación de edad","ageVerificationText":"Para interactuar con este Gemelo, debes tener al menos {{minAge}} años.","ageVerificationSuccess":"Edad verificada con éxito.","nsfw":"NSFW: Este gemelo contiene contenido para adultos","deepThought":"pensamiento profundo","deepThoughtWhatIs":"¿Qué es Deep Thought?","deepThoughtHelper":"Deep Thought es una característica avanzada de la IA que te permitirá explotar al máximo tus conversaciones al realizar un seguimiento de ellas. ","deepThoughtDisclaimerTitle":"Pensamiento profundo habilitado","deepThoughtDisclaimer":"Deep Thought es una característica avanzada de la IA que te permitirá explotar al máximo tus conversaciones al realizar un seguimiento de ellas. ","deepThoughtPreDisclaimerUnlogged":"Inicie sesión para habilitar Pensamiento profundo.","deepThoughtPreDisclaimerNotAllowed":"Deep Thought está deshabilitado porque usted no dio su consentimiento para su uso; puede cambiar esto en cualquier momento en la configuración de su cuenta.","notEnoughCredits":"El autor de este Gemelo no tiene suficientes créditos para responder a tu pregunta.","confirmDialog":{"title":"¿Quieres salir de esta página?","message":"Los cambios que has realizado se perderán."},"knownFacts":{"title":"Hechos conocidos","description":"Lo que {{memoriName}} recuerda de ti. Puedes eliminar cada entrada.","type":"Tipo","typeShortTerm":"Corto plazo","typeLongTerm":"Largo plazo","typeHelper":"Tipos:\\n","text":"Texto","searchPlaceholder":"Buscar entre los hechos","select":"Seleccionar","loadMore":"Cargar más","factsCount_one":"{{count}} hecho","factsCount_other":"{{count}} hechos","shownOfTotal":"Mostrados {{shown}} de {{total}}","emptyTitle":"Todavía no hay hechos","emptyDescription":"A medida que habláis, el agente anota aquí lo que aprende sobre ti. Podrás eliminarlo en cualquier momento.","deleteLabel":"Eliminar este hecho","deleteSuccess":"Hecho conocido eliminado","deleteConfirmTitle":"Eliminar hecho conocido","deleteConfirmMessage":"¿Está seguro de que desea eliminar este hecho conocido?","deleteSelectedConfirmTitle":"Eliminar hechos conocidos seleccionados","deleteSelectedConfirmMessage":"¿Está seguro de que desea eliminar los hechos conocidos seleccionados?","selected_one":"{{count}} hecho seleccionado","selected_other":"{{count}} hechos seleccionados","selectedRows_one":"{{count}} fila seleccionada","selectedRows_other":"{{count}} filas seleccionadas"},"auth":{"title":"Autenticación","description":"Este agente está protegido. Introduce la contraseña para continuar.","useRecoveryTokens":"Utilice tokens de recuperación","tokens":"Fichas","addToken":"Agregar token","usePassword":"Usar contraseña","passwordRequired":"Contraseña obligatoria","invalidCredentials":"Credenciales no válidas","atLeast":"Al menos"},"widget":{"instruct":"Instruir","test":"Probar","sound":"Sonido","soundOff":"Sonido desactivado","position":"Preferencias de posición","settings":"Ajustes","share":"Compartir","shareChat":"Compartir chat","sendOnKeypress":"Presiona Enter para enviar","sendOnClick":"Haz clic en Enviar","boardOfExperts":"Panel de expertos","showExpertsInTheBoard":"Mostrar expertos en este panel","expertsInTheBoard":"Expertos en este panel","goToIntegrationsToCustomizeAvatar":"Para personalizar el avatar, ve a Compartir y personaliza la página pública","chatAssistantStatus":"Activa • Responde en pocos segundos","agentStatusListening":"escuchando","agentStatusSpeaking":"hablando","agentStatusProcessing":"procesando","shareLocation":"Compartir ubicación","shareLocationHint":"Recibe respuestas adaptadas a dónde estás","shareLocationAria":"Compartir ubicación con el asistente","knownFactsHint":"Lo que recuerdo sobre ti","aiConsumption":"Consumo de IA","editPositionAria":"Editar ubicación","positionResolving":"Obteniendo dirección…","geocodingFailed":"No se pudo obtener la dirección. Inténtalo de nuevo o busca manualmente.","positionUnavailableManual":"Ubicación no disponible. Introdúcela manualmente.","positionSharingEnabled":"Ubicación compartida.","headerHistory":"Historial","headerProfile":"Perfil","headerLogin":"Iniciar sesión","expandToImmersive":"Expandir para vista inmersiva","moreActions":"Más acciones","mobileSession":{"session":"Sesión","sessionInfo":"Información de la sesión","copyLinkOrDownload":"Copiar enlace o descargar","currentlyOff":"Actualmente desactivado","whatIKnowAboutYou":"Detalles de la información compartida entre usted y {{memoriName}}","locationTracking":"Seguimiento de ubicación","locationStatus":"Estado","useCurrentPosition":"Usar ubicación actual","disableLocationSharing":"Desactivar uso compartido de ubicación","openKnownFacts":"Abrir todos los hechos conocidos","knownFactsMessages":"{{count}} mensajes en la sesión actual"}},"exportChatHistory":{"exportPDF":"Exportar chat como PDF","exporting":"Exportando...","empty":"No hay historial de chat para exportar","pdfNotSupported":"La exportación PDF no es compatible con este navegador","success":"Chat exportado a PDF exitosamente","error":"Error al exportar el chat a PDF. Por favor, inténtalo de nuevo."},"write_and_speak":{"micButtonPopover":"Haga clic en el botón para hablar","micButtonPopoverListening":"Haga clic en el botón para dejar de hablar.","stopRecording":"Detener grabación","sendRecording":"Enviar mensaje de voz","recordingInProgress":"Grabación en curso","pageInstructExplanation":"Para enseñarme cosas nuevas, haga clic en el botón INSTRUIRME para comenzar.","pageTryMeExplanation":"Para empezar a conversar conmigo haga clic en el botón INICIO","pagePrivacyExplanation":"Las conversaciones son visibles por el autor del agente","pagePrivacyExplanationList":{"allConversations":"Todas las conversaciones con este agente son visibles por el autor del agente","anonymousUser":"Para usuarios anónimos: el autor verá el contenido de la conversación y su dirección IP","registeredUser":"Para usuarios registrados: el autor verá el contenido de la conversación y su nombre de usuario","contentAndUsername":"El autor puede ver el contenido, tu nombre de usuario y tu dirección IP","contentAndIpAddress":"El autor puede ver el contenido y tu dirección IP","authorUsesInfo":"El autor utiliza estas informaciones para mejorar las funciones del agente y para ofrecerte un mejor servicio."},"instructButton":"INSTRUÍME","aiDisclaimer":"El agente puede cometer errores. Por favor, verifica las respuestas.","downloadChat":"Descargar chat","tryMeButton":"COMENZAR","resumeButton":"CONTINUAR","chatHistory":"Historial de chat","chatHistoryDescription":"Mostrar el historial de chat con este agente","loadingChatHistory":"Cargando historial de chat...","noChatHistoryAvailable":"No hay historial de chat disponible","noResultsFound":"No se encontraron resultados para \\"{{searchText}}\\"","searchInChatHistory":"Buscar en las conversaciones","filters":"Filtros","latestFirst":"Más recientes primero","oldestFirst":"Más antiguos primero","exportChat":"Exportar Chat","conversationStartedLabel":"Conversación iniciada","settingsHeaderLabel":"Configure aquí si desea configurar la memoria como voz continua y cambie los segundos de silencio si desea personalizarlos.","continuousSpeechLabel":"discurso continuo","continuousSpeechDisabled":"Discurso continuo deshabilitado porque el agente está en modo silencioso","holdToSpeak":"Mantenga para hablar","releaseToEndListening":"Suelte para finalizar la escucha","pressAndHoldToSpeak":"Mantenga presionado para hablar","microphoneMode":"Modo micrófono","hideEmissionsLabel":"Ocultar texto emitido por el Agent","showMessageConsumptionLabel":"Mostrar consumo por mensaje","secondsLabel":"Establecer segundos","controlsPosition":"Posición de los controles","tryMeHeaderLabel":"INTENTAR","unknownPosition":"Posición desconocida","fieldPlace":"Escribe el lugar (por ejemplo, \'Milano\')","showMapLinkFor":"Mostrar la posición en el mapa.","useMyPosition":"Usa mi posición","myPosition":"Tu posición","updatingPosition":"Actualizando posición...","placeNotFound":"¡Lugar no encontrado!","requirePosition":"Inserte su posición antes de comenzar","requirePositionHelp":"para hablar con {{name}} usted tiene que decidir si proporciona su puesto o no. ","dontWantToProvidePosition":"Continuar sin ubicación","requireLoginHelp":"Para hablar con {{name}} primero debes iniciar sesión con tu cuenta.","skipLocationTitle":"No se guardará ninguna ubicación en el mapa.","locationSaved":"Tu ubicación se guardó.","locationSavedWithPlace":"Tu ubicación se guardó: {{place}}","locationSkippedConfirm":"Continuarás sin compartir tu ubicación.","placeSelected":"Lugar seleccionado: {{place}}","locationPermissionDenied":"Se denegó el acceso a la ubicación. Permítela en la configuración del navegador o elige un lugar en el mapa.","locationUnavailable":"No se pudo determinar tu posición. Inténtalo de nuevo o busca un lugar.","locationRequestTimedOut":"La solicitud de ubicación expiró. Inténtalo de nuevo o busca un lugar.","locationErrorGeneric":"Algo salió mal al obtener tu ubicación.","attachmentsLabel":"Enriquece tu mensaje","image":"imagen","images":"imagenes","file":"archivo","files":"archivos","function":"función","functions":"funciones","iWantToTalkToIn":"quiero hablar con {{name}} en","chatLanguageLabel":"Elige el idioma de la conversación","chatResumed":"Conversación reanudada correctamente.","message":"mensaje","messages":"mensajes","downloadThisConversation":"Descargar esta conversación","downloadAllConversations":"Descargar todas las conversaciones","conversationsCount_one":"{{count}} conversación","conversationsCount_other":"{{count}} conversaciones","shownOfTotal":"Mostradas {{shown}} de {{total}}","loadMore":"Cargar más","backToConversationList":"Volver a la lista de conversaciones","thisWeek":"Esta semana","page":"Página {{current}} de {{total}}"},"chatResume":{"resume":"Reanudar la conversación"},"artifact":{"close":"Cerrar","size":"Tamaño","updated":"actualizado","updateFailed":"No se pudo aplicar la actualización","updateFailedHint":"El parche no coincide con el contenido actual. Pide reescribir el artifact.","generated":"Generado","download":"Descargar","print":"Imprimir","external":"Abrir en una nueva ventana","type":"Tipo","fullscreen":"Pantalla completa","exitFullscreen":"Salir de pantalla completa","copy":"Copiar","generatedAt":"Generado el","open":"Abrir","code":"Código","source":"Fuente","preview":"Vista previa","resizeHandle":"Redimensionar el panel de artifact","copied":"¡Copiado!","error":"Error","generatingPdf":"Generando PDF...","copying":"Copiando...","moreCopyOptions":"Más opciones de copia","copyAs":"Copiar como","downloadAsMarkdown":"Descargar como Markdown","downloadRawMarkdownText":"Descargar texto markdown sin formato","downloadAsPdf":"Descargar como PDF","exportAsPdfDocument":"Exportar como documento PDF","downloadAsHtml":"Descargar como HTML","downloadFormattedHtml":"Descargar HTML formateado","viewMode":"Modo Vista","codeMode":"Modo Código","refresh":"Actualizar","share":"Compartir","downloadAsJson":"Descargar como JSON","downloadJsonData":"Descargar datos JSON","downloadAsPng":"Descargar como PNG","downloadPngImage":"Descargar imagen PNG","downloadAsJpeg":"Descargar como JPEG","downloadJpegImage":"Descargar imagen JPEG","downloadAsGif":"Descargar como GIF","downloadGifImage":"Descargar imagen GIF","downloadAsWebp":"Descargar como WebP","downloadWebpImage":"Descargar imagen WebP","copyAsSvg":"Copiar como SVG","copySvgSourceCode":"Copiar código fuente SVG","copyAsPlainText":"Copiar como texto plano","copyAsText":"Copiar como texto","copyAsLanguage":"Copiar como {{language}}","copyLanguageCode":"Copiar código {{language}}","copyWithoutSyntaxHighlighting":"Copiar sin resaltado de sintaxis","copyTextContent":"Copiar contenido de texto","pdfExportNotSupported":"La exportación PDF no es compatible con este navegador","popupBlocked":"¡Popup bloqueado! Por favor, habilita los popups para imprimir.","safariPdfInstructions":"Exportación PDF abierta en nueva ventana. Por favor, usa Cmd+P (Mac) o Ctrl+P (Windows) para imprimir y guardar como PDF."},"upload":{"loginRequired":"Connexion requise","pastedText":"texto-pegado","uploadNotification":"Échec del téléchargement","loginRequiredDescription":"Veuillez vous connecter pour télécharger des images","uploadFiles":"Télécharger des fichiers (drag and drop)","uploadFilesOrImages":"Subir archivos o imágenes","uploadFilesWithShortcut":"{{shortcut}}+O para abrir el selector de archivos","uploadImages":"Télécharger des images","titleImage":"Añadir un título a la imagen","uploadDocuments":"Télécharger des documents","apiClientNotConfigured":"API client non configuré correctement pour le téléchargement de médias","fileReadingFailed":"Échec de la lecture du fichier","uploadFailed":"Échec du téléchargement","uploadSuccess":"Téléchargement réussi","uploadSuccessDescription":"Le fichier a été téléchargé avec succès","replace":"Remplacer","maxImagesReached":"Vous pouvez télécharger jusqu\'à {{max}} images","remaining":"restant","maxReached":"Limite atteinte","dragAndDropFiles":"Arrastre y suelte los archivos aquí para agregarlos a la chat","contextSizeExceedsLimit":"El tamaño del contexto supera el límite. Intenta reducir el número de archivos o el contenido de la conversación.","filesNotAddedMaxAllowed":"{{count}} archivo(s) no añadido(s) (máximo {{max}} archivos permitidos).","documentsNotAddedMaxAllowed":"{{count}} documento(s) no añadido(s) (máximo {{max}} archivos permitidos).","imagesNotAddedMaxAllowed":"{{count}} imagen(es) no añadida(s) (máximo {{max}} archivos permitidos).","documentsNotAddedContextSize":"{{count}} documento(s) no añadido(s) (límite de tamaño de contexto).","partialAssetUploadWarning":"No se pudieron cargar algunos enlaces del archivo, pero el documento se agregó igualmente.","anonymousRetentionNotice":"Nota: los archivos cargados se conservan durante un máximo de 24 horas."},"media":{"title":"Título","editAttributes":"Editar atributos de medios","uploadMimeTypeNotAllowed":"El tipo de archivo no está permitido.","uploadSizeLimitMessage":"El tamaño subido es demasiado grande (máx. {{size}}MEGABYTE)","uploadWrongResolutionMessage":"La resolución debe ser {{width}}incógnita{{height}} píxel","memoriNameAlreadyUsed":"Ya tienes un gemelo con este nombre.","uploadHelperImages":"Sube un archivo con extensión png, jpg, jpeg o gif, y que tenga como máximo un tamaño de {{size}}MEGABYTE","uploadHelper":"Cargue un archivo que tenga como máximo un tamaño de {{size}}MEGABYTE","uploadError":"Error al subir","square":"cuadrado","scaleRatio":"Relación de escala","addMediaLabel":"Agregar un medio","insertThisMediaMsg":"Inserte estos medios","mediaUploadMessage":"Haga clic para cargar un nuevo medio","addLinkLabel":"Agregar un enlace","linkKey":"URL","linkValue":"Título del enlace","insertThisLink":"Insertar un enlace a {{url}} con titulo {{title}}"},"gamification":{"level":"Nivel","points":"agujas","memoriReachedLevel":"se volvió más evolucionado y alcanzó el nivel","levelGoToStatistics":"{{Agent}} esta al nivel {{level}} con {{points}} agujas. ","congratulationsNewLevel":"¡Felicitaciones, has alcanzado un nuevo nivel!","congratulationsNewLevelDescription":"Tu Agent se volvió más evolucionado con {{points}} puntos, mira el","statistics":"estadística"},"login":{"login":"Acceso","title":"Iniciar sesión en tu cuenta","logout":"Cerrar sesión","user":"Usuario","loggedDrawerTitle":"Hola, {{name}}!","loginDrawerTitle":"Acceso","userNameRequired":"Nombre de usuario requerido","userName":"Nombre de usuario","userNamePlaceholder":"Ingrese el nombre de usuario","signupDrawerTitle":"Inscribirse","newUserSignUp":"¿Nuevo usuario?","signUp":"¡Inscribirse!","alreadyHaveAnAccount":"¿Ya tienes una cuenta?","backToLogin":"Volver a iniciar sesión","registrationDisabled":"El registro está deshabilitado","contactAdmin":"Póngase en contacto con el administrador para solicitar acceso","userNameOrEmail":"Nombre de usuario o correo electrónico","email":"Correo electrónico","emailFormatError":"Por favor, inserte un correo electrónico válido","username":"Nombre de usuario","usernameContainsReservedWord":"El nombre de usuario contiene una palabra reservada, elija otra","usernameFormatError":"El nombre de usuario debe tener al menos 3 caracteres y contener solo letras, números y _","otpCode":"Código de verificación","resendVerificationCode":"Reenviar código","resentVerificationCode":"¡Código de confirmación enviado! ","welcomeTitle":"Bienvenido de nuevo","welcomeDescription":"Ingresa tu código de verificación de 4 dígitos para continuar a tu cuenta","otpTitle":"Ingresa el código de verificación","otpDescription":"Ingresa el código de 4 dígitos que generaste en tu cuenta","otpStep1":"Haz clic en el botón de abajo para abrir tu cuenta","otpStep2":"Genera un código de verificación de 4 dígitos (válido por 5 minutos)","otpStep3":"Regresa aquí e ingresa el código","startOtpLogin":"Iniciar verificación","generateOtp":"Generar código","otpTimer":"El código expira en {{time}}","otpInvalidFormat":"Por favor ingresa un código válido de 4 dígitos","otpInvalid":"Código de verificación inválido","otpError":"Error al validar el código. Por favor intenta de nuevo.","otpSuccess":"¡Inicio de sesión exitoso!","otpEmailTitle":"Ingresa tu email","otpEmailDescription":"Ingresa tu dirección de email para recibir un código de verificación","otpCodeDescription":"Ingresa el código de 4 dígitos enviado a {{email}}","emailPlaceholder":"Ingresa tu email","sendOtp":"Enviar el código","resendOtp":"Reenviar","resendOtpIn":"Reenviar en {{seconds}}s","resendOtpPrompt":"¿No llegó? Reenviar en {{seconds}} s","resendOtpQuestion":"¿No llegó?","resending":"Reenviando...","backToEmail":"Volver al email","editEmail":"Editar","otpSentToPrefix":"Hemos enviado un código de 4 dígitos a","otpCodeShort":"Código","loginBenefitLine1":"{{memoriName}} puede mostrarte el historial de chat, que se puede reanudar en cualquier momento.","loginBenefit":"{{memoriName}} puede mostrarte el historial de chat, que se puede reanudar en cualquier momento.","passwordlessHint":"Te enviamos un código de 4 dígitos. Sin contraseña que recordar.","defaultAgentName":"el agente","otpSent":"¡Código de verificación enviado!","otpResent":"¡Código reenviado exitosamente!","otpSendError":"Error al enviar el código. Por favor intenta de nuevo.","emailRequired":"Email requerido","emailInvalid":"Por favor ingresa una dirección de email válida","otpNotFound":"Código de verificación no encontrado","otpExpired":"El código de verificación ha expirado","otpMissing":"El código de verificación es requerido","otpAttemptsExceeded":"Demasiados intentos. Solicita un nuevo código de verificación.","otpSuccessMessage":"¡Verificación exitosa! Redirigiendo...","otpSuccessDescription":"Tu cuenta ha sido verificada exitosamente. Serás redirigido en breve.","otpHelp":"Ingresa el código de 4 dígitos de tu email","emailHelp":"Te enviaremos un código de verificación","userFetchError":"Error al cargar los datos del usuario. Por favor intenta de nuevo.","otpStep1Title":"Ingresa Email","otpStep2Title":"Revisa Email","otpStep3Title":"Ingresa Código","featureFast":"Rápido","featureSecure":"Seguro","featureMobile":"Móvil","password":"Contraseña","newPassword":"Nueva contraseña","confirmPassword":"confirmar Contraseña","currentPassword":"Contraseña actual","passwordMatchingError":"Las contraseñas no coinciden.","passwordFormatError":"La contraseña debe tener al menos 8 caracteres y contener al menos un número, una letra mayúscula, una letra minúscula y un símbolo.","pwdWeak":"Débil","pwdAcceptable":"Aceptable","pwdStrong":"Fuerte","mustChangePassword":"Debes cambiar tu contraseña","passwordChange":"Cambiar la contraseña","emailChange":"Cambiar correo electrónico","avatarChange":"Cambiar avatar","avatarUploadSuccess":"Foto de perfil actualizada.","underage":"Debes ser al menos {{age}} años para inscribirse.","optional":"Opcional","birthDate":"Fecha de nacimiento","birthDatePlaceholder":"DD/MM/AAAA","birthDateHelper":"Solicitamos tu fecha de nacimiento únicamente para habilitar o deshabilitar funcionalidades que tienen restricciones de edad.","missingData":"Información faltante","missingDataHelper":"Sabemos que esto es un poco molesto, pero necesitamos más información para completar tu registro.","goToAccountToChangeYourPreferences":"Puede cambiar su elección en cualquier momento desde la página de su Cuenta.","deepThoughtExplaination":"Deep Thought es una característica avanzada de la IA que te permitirá explotar al máximo tus conversaciones al realizar un seguimiento de ellas. ","tnCAndPPAcceptedHelper":"Desde su último inicio de sesión, los Términos y condiciones y la Política de privacidad han cambiado. ","privacyLabel":"He leído y acepto el","privacyAndCookiePolicy":"Política de privacidad y cookies","and":"y","termsOfService":"Términos de servicio","pAndCUAccepted":"Acepto los términos de servicio sobre Deep Thought","editAccount":"Editar cuenta","save":"Ahorrar","successfullyLoggedIn":"{{username}} ha iniciado sesión correctamente"},"chatLogs":{"llm":"LLM","model":"Modelo","provider":"Proveedor","tokens":"Tokens","input":"Entrada","output":"Salida","cacheRead":"Lectura de caché","cacheWrite":"Escritura de caché","duration":"Duración","energy":"Energía","co2":"CO2","water":"Agua","usageBadgesHint":"Haz clic en uno de estos botones para ver más información","totalChatConsumptionTitle":"Consumo Total del Chat","modelUsage":"Uso del modelo","environmentalImpact":"Impacto ambiental","impactComparisonUnavailable":"Comparacion indicativa no disponible.","impactComparisonEnergy":"Comparacion indicativa: aproximadamente como mantener encendida una bombilla LED de 10 W durante {{duration}}.","impactComparisonCo2":"Comparacion indicativa: aproximadamente {{distance}} recorridos en un coche de gasolina promedio.","impactComparisonWater":"Comparacion indicativa: aproximadamente {{count}} gotas de agua.","energyImpactDescription":"Este valor estima la energia electrica necesaria para generar la respuesta del modelo. Sirve para comparar prompts, modelos y estrategias incluso cuando un solo mensaje tiene un impacto muy pequeno.","co2ImpactDescription":"El CO2 equivalente representa el impacto climatico estimado del mensaje. Traducir el consumo a emisiones ayuda a entender cuanto pesa una respuesta de IA en el medioambiente con metricas comparables.","waterImpactDescription":"Este indicador muestra la huella hidrica estimada asociada al procesamiento del mensaje. Incluye el agua utilizada indirectamente en la energia y en la infraestructura que soporta el calculo.","approximateValuesTooltip":"Estos valores son aproximados.","anyMessage":"Cualquier mensaje","atLeast":"Al menos {{count}} mensajes","atLeast1":"Al menos 1 mensaje","atLeast2":"Al menos 2 mensajes","atLeast3":"Al menos 3 mensajes","atLeast5":"Al menos 5 mensajes","atLeast10":"Al menos 10 mensajes","atLeast15":"Al menos 15 mensajes","atLeast20":"Al menos 20 mensajes","customMinimumMessages":"Personalizar el número de mensajes"},"success":"Éxito","Error":"Error","internal server error":"Oupsie, lo siento... Algo salió mal en el servidor.","error":"Error","error.loading":"Error al cargar contenido.","error.generic":"Oupsie, lo siento... algo salió mal.","error.serverNotResponding":"Estamos realizando mantenimiento o lanzando actualizaciones. ","error.notFound":"Oupsie, no encontramos la página que buscabas.","error.goBackTo":"Puedes intentar volver al","error.reloadPage":"recargar la pagina","error.tryAgain":"Intentar otra vez","error.unauthorized":"No estás autorizado a ver este contenido.","error.unprocessableEntity":"Error al procesar la solicitud. ","errors":{"TENANT_NOT_FOUND":"Inquilino no encontrado","TENANT_REGISTRATION_DISABLED":"El registro en esta plataforma está deshabilitado","TENANT_MISSING_NAME":"Inquilino: falta el nombre","TENANT_MAX_USERS_REACHED":"Número máximo de usuarios alcanzado","TENANT_MAX_ADMINS_REACHED":"Número máximo de usuarios administradores alcanzado","TENANT_ALREADY_EXISTS":"El inquilino ya existe","TENANT_MISSING_DESCRIPTION":"Inquilino: falta descripción","TENANT_CANT_SET_COMPLETION_PROVIDER":"Inquilino: no se puede configurar el proveedor de finalización","TENANT_INVALID_TYPE":"Inquilino: tipo no válido","USER_NOT_CONFIRMED":"Usuario aún no confirmado","USER_NOT_FOUND":"Usuario no encontrado","USER_OR_PASSWORD_INVALID":"Usuario o contraseña no válidos","USER_MUST_CHANGE_PASSWORD":"Debes cambiar tu contraseña","USER_MUST_ENTER_VERIFICATION_CODE":"Debes ingresar el código de verificación","USER_MISSING_TENANT":"Usuario: inquilino desaparecido","USER_MISSING_NAME":"Usuario: falta el nombre","USER_MISSING_PASSWORD":"Usuario: falta contraseña","USER_MISSING_EMAIL":"Usuario: Falta correo electrónico","USER_MISSING_VERIFICATION_CODE":"Usuario: Falta el código de verificación","USER_NAME_ALREADY_USED":"Nombre de usuario ya en uso","USER_PASSWORD_NOT_CONFORMING_TO_POLICY":"La contraseña no cumple con las reglas de seguridad.","USER_EMAIL_ALREADY_USED":"Correo electrónico ya en uso","USER_EMAIL_INVALID":"Correo electrónico no válido","USER_VERIFICATION_CODE_INVALID":"Código de verificación no válido","USER_MISSING_NAME_OR_EMAIL":"Falta nombre de usuario o correo electrónico","USER_NAME_INVALID":"Nombre de usuario no válido","USER_HAS_ONE_OR_MORE_MEMORI":"El usuario tiene uno o más recuerdos.","USER_MISSING_NEW_PASSWORD":"Usuario: falta nueva contraseña","USER_NOTHING_TO_DO":"Nada que hacer","USER_CANT_CREATE_MEMORI":"Usuario no autorizado a crear Agent","USER_MAX_MEMORI_REACHED":"Número máximo de Agent alcanzado","USER_TOO_MANY_ATTEMPTS":"demasiados intentos","USER_MUST_ACCEPT_TNC_AND_PP":"Debes aceptar los términos y condiciones.","USER_BIRTH_DATE_CANT_BE_CHANGED":"La fecha de nacimiento no se puede cambiar.","USER_CANT_SET_COMPLETION_PROVIDER":"Usuario: no tiene permiso para gestionar el proveedor de finalización","USER_CANT_ENABLE_DEEP_THOUGHT":"Usuario: no habilitado para gestionar Deep Thought","USER_CANT_ENABLE_DCM_INTEGRATION":"Usuario: no habilitado para gestionar la integración de DCM","USER_CANT_ENABLE_CHAINING_OR_BOARD_OF_EXPERTS":"Usuario: no se le permite gestionar encadenamiento o grupo de expertos","USER_CREATION_BILLING_DENIED_PERMISSION":"No tienes suficientes créditos para crear un gemelo","USER_HAS_ONE_OR_MORE_COMPLETION_CONFIGS":"El usuario tiene una o más configuraciones de finalización.","USER_CANT_BE_DELETED":"Usuario: no se puede eliminar","USER_ORDER_BY_INVALID":"Orden por no válido","MEMORI_NOT_FOUND":"Memoria no encontrada","MEMORI_NOT_ACCESSIBLE":"Memorias no accesibles","MEMORI_ONLY_OWNER_CAN_CHANGE_GIVER_TAG_AND_PIN":"Sólo el propietario puede cambiar la etiqueta o el pin","SESSION_NOT_FOUND":"Sesión no encontrada","SESSION_IS_NOT_ADMINISTRATIVE":"Sesión no administrativa","SESSION_EXPIRED":"La sesión expiró","speechMissingSession":"La voz requiere una sesión activa","speechInvalidSession":"La sesión no es válida","speechTenantMismatch":"La voz no está disponible en este sitio","speechRateLimited":"Demasiadas solicitudes de voz. Espera un momento e inténtalo de nuevo.","SESSION_OTP_NOT_FOUND":"Código de verificación no encontrado","SESSION_OTP_EXPIRED":"El código de verificación ha expirado","SESSION_OTP_INVALID":"Código de verificación inválido","SESSION_OTP_ATTEMPTS_EXCEEDED":"Demasiados intentos. Solicita un nuevo código de verificación.","MEMORI_MISSING_CONFIGURATION":"Gemelo: falta configuración","MEMORI_CONFIGURATION_NOT_FOUND":"Gemelo: configuración no encontrada","MEMORI_INVALID_PRIVACY_TYPE":"Gemelo: tipo de privacidad no válido","MEMORI_MISSING_PASSWORD":"Gemelo: falta contraseña","MEMORI_INVALID_TOTAL_NUMBER_OF_RECOVERY_TOKENS":"Gemelo: número total de tokens de recuperación no válidos","MEMORI_INVALID_MINIMUM_NUMBER_OF_RECOVERY_TOKENS":"Gemelo: número mínimo de tokens de recuperación no válidos","MEMORI_INVALID_VOICE_TYPE":"Gemelo: tipo de voz no válido","MEMORI_MISSING_NAME":"Gemelo: falta nombre","MEMORI_MISSING_PASSWORD_OR_RECOVERY_TOKENS":"Gemelo: falta contraseña o token de recuperación","MEMORI_INVALID_ID":"Gemelo: identificación no válida","MEMORI_NAME_ALREADY_USED":"Nombre gemelo ya en uso","MEMORI_INVALID_PIN":"Gemelo: PIN no válido","MEMORI_GIVER_TAG_PIN_CHANGE_REQUIRES_SEPARATE_OPERATION":"Gemelo: el cambio de TAG y PIN requiere operaciones separadas","MEMORI_NO_PASSWORD_WHEN_PUBLIC":"Agent: no se requiere contraseña cuando es público","MEMORI_DEEP_THOUGHT_REQUIRES_COMPLETIONS":"Deep Thought requiere que las completaciones estén habilitadas","MEMORI_BOARD_OF_EXPERTS_REQUIRES_COMPLETIONS":"El grupo de expertos requiere que se habiliten las completaciones.","MEMORI_INVALID_COMPLETION_CONFIG":"Gemelo: configuración de finalizaciones no válidas","MEMORI_MACRO_FUNCTIONS_REQUIRES_COMPLETIONS":"Macro funciones requiere que se habiliten las finalizaciones","MEMORI_BLOCKING_DATE_MISSING_OR_WRONG":"Gemelo: fecha de bloqueo faltante o incorrecta","MEMORI_LIST_FILTER_NOT_SPECIFIED":"Gemelo: filtro no especificado","MEMORI_TRANSFER_MISSING_DESTINATION_USER":"Transferencia: falta usuario de destino","MEMORI_TRANSFER_INVALID_DESTINATION_USER_ID":"Transferencia: ID de usuario de destino no válido","MEMORI_TRANSFER_DESTINATION_USER_DATA_INCONSISTENT":"Transferencia: datos de usuario de destino no válidos","MEMORI_TRANSFER_NOTHING_TO_DO":"Transferencia: nada que hacer","MEMORI_CONFIGURATION_CANT_BE_CHANGED":"Memorias: la configuración no se puede cambiar","MEMORI_MISSING_NEW_PASSWORD":"Recuerdos: falta nueva contraseña","MEMORI_FEATURE_REQUIRES_SUBSCRIPTION":"La función requiere suscripción","INTEGRATION_NOT_FOUND":"Integración no encontrada","MEMORI_SESSIONS_INVALID_DATE_FROM_FORMAT":"Fecha no válida del formato","MEMORI_SESSIONS_INVALID_DATE_TO_FORMAT":"Fecha no válida para formatear","MEMORI_SESSION_NOT_FOUND":"Sesión no encontrada","MEMORI_SESSION_DOESNT_ACCEPT_MEDIA":"Sesión no acepta medios","INTEGRATION_INVALID_TYPE":"Tipo de integración no válido","INTEGRATION_ALREADY_EXISTS":"La integración ya existe","INTEGRATION_MEMORI_IS_NOT_PUBLIC":"Las memorias no públicas no se pueden integrar","INTEGRATION_MISSING_INVOCATION_TEXT":"Integración: falta texto de invocación","INTEGRATION_MISSING_DEVICE_EMAILS":"Integración: correo electrónico del dispositivo perdido","INTEGRATION_MEMORI_IS_EMPTY":"Los recuerdos vacíos no se pueden integrar","INTEGRATION_MISSING_PRIVACY_POLICY":"Integración: falta la política de privacidad","INTEGRATION_MISSING_CATEGORY":"Falta categoría de integración","INTEGRATION_MISSING_DESCRIPTION":"Falta descripción de integración","INTEGRATION_INVALID_INVOCATION_TEXT":"Texto de invocación no válido","INTEGRATION_GOOGLE_NO_MORE_AVAILABLE":"Google Home ya no está disponible","UPLOAD_REQUIRES_MULTIPART_ENCODING":"La carga requiere codificación multiparte","UPLOAD_MISSING_CONTENT_TYPE_BOUNDARY":"Upload: falta límite de tipo de contenido","UPLOAD_MAX_LENGTH_EXCEEDED":"Upload: se superó el tamaño máximo","UPLOAD_FILE_IS_EMPTY":"Upload: archivo vacío","UPLOAD_INVALID_FILE_TYPE_OR_SIGNATURE":"Upload: tipo de archivo o firma no válidos","UPLOAD_MISSING_FILE_NAME":"Upload: falta el nombre del archivo","UPLOAD_INVALID_MEMORY_ID":"Upload: ID de contenido no válido","UPLOAD_MISSING_FILE_CONTENT":"Upload: Falta contenido del archivo","ASSET_NOT_FOUND":"Asset no encontrado","ASSET_NOT_ACCESSIBLE":"Asset no accesible","ASSET_MISSING_SESSION_ID":"Asset: ID de sesión faltante","ASSET_INVALID_FILE_NAME":"Asset: nombre de archivo no válido","ASSET_MALWARE_SCAN_THREATS_FOUND":"Asset: encontró amenazas de malware","INVITATION_NOT_FOUND":"Invitación no encontrada","INVITATION_NOT_ACCESSIBLE":"Invitación no accesible","INVITATION_ALREADY_ACCEPTED":"Invitación ya aceptada","INVITATION_ALREADY_REJECTED":"Invitación ya rechazada","INVITATION_MISSING_DESTINATION_EMAIL":"Invitación: falta el correo electrónico de destino","INVITATION_DESTINATION_EMAIL_INVALID":"Invitación: correo electrónico de destino no válido","INVITATION_MISSING_TAG":"Invitación: falta etiqueta","INVITATION_MISSING_PIN":"Invitación: falta el PIN","INVITATION_INVALID_PIN":"Invitación: PIN no válido","INVITATION_INVALID_TYPE":"Invitación: tipo no válido","INVITATION_MISSING_DESTINATION_NAME":"Invitación: falta el nombre del destino","INVITATION_TAG_PIN_CANT_BE_CHANGED":"Invitación: la etiqueta y el pin no se pueden cambiar","INVITATION_CANT_BE_CHANGED":"Intación: no se puede cambiar","ACTIONLOG_INVALID_USER_ID":"ID de usuario no válido","ACTIONLOG_INVALID_DATE_FROM_FORMAT":"Fecha de: formato no válido","ACTIONLOG_INVALID_DATE_TO_FORMAT":"Fecha hasta: formato no válido","ACTIONLOG_INVALID_MEMORI_ID":"ID de memoria no válida","CONSUMPTIONLOG_INVALID_TYPE":"Tipo de registro no válido","CONSUMPTIONLOG_INVALID_DATE_FROM_FORMAT":"Fecha de: formato no válido","CONSUMPTIONLOG_INVALID_DATE_TO_FORMAT":"Fecha hasta: formato no válido","CONSUMPTIONLOG_INVALID_USER_ID":"ID de usuario no válido","CONSUMPTIONLOG_INVALID_MEMORI_ID":"ID de memoria no válida","NOTIFICATIONPREFS_INVALID_CHATLOG_EXTRACTION_PERIOD":"Notificaciones: Período de extracción del registro de chat no válido","BROADCAST_NOT_ALLOWED":"Broadcast no permitido","INVALID_NOTIFICATION_TYPE":"Tipo de notificación no válido","NOTIFICATION_NOT_FOUND":"Notificación no encontrada","INVALID_NOTIFICATION_FILTER":"Filtro de notificación no válido","INVALID_NOTIFICATION_PERIOD":"Período de notificación no válido","PROCESS_INVALID_TYPE":"Tipo de proceso no válido","PROCESS_ALREADY_RUNNING":"Proceso ya en ejecución","PROCESS_NOT_FOUND":"Proceso no encontrado","IMPORTCSV_MISSING_ROWS":"Importación CSV: filas faltantes","IMPORTCSV_MISSING_CSV":"Importación CSV: Falta CSV","IMPORTCSV_MISSING_SEPARATOR":"Importación CSV: falta separador","IMPORTCSV_INVALID_SEPARATOR":"Importación CSV: separador no válido","IMPORTCSV_MISSING_HEADERS":"Importación CSV: faltan encabezados","IMPORTCSV_MISSING_TITLE_VARIANT_SEPARATOR":"Importación CSV: falta el separador de variante de título","IMPORTCSV_INVALID_RECEIVER_ID":"Importación CSV: ID de receptor no válido","IMPORTCSV_INVALID_MEDIA_LINK":"Importación CSV: enlace multimedia no válido","IMPORTCSV_INVALID_LINK_TITLE_HANDLING":"Importación CSV: título del enlace no válido","IMPORTCSV_UNDETECTABLE_CHAR_ENCODING":"Importación CSV: codificación de caracteres indetectable","IMPORTCSV_CANT_IMPORT_TO_SECRET_MEMORI":"Importación CSV: no se puede importar a Secret Memories","IMPORTTXT_MISSING_ROWS":"Importando TXT: filas faltantes","IMPORTTXT_INVALID_GRANULARITY":"Importar TXT: granularidad no válida","IMPORTTXT_INVALID_RECEIVER_ID":"Importar TXT: ID de receptor no válido","IMPORTTXT_INVALID_MEDIA_LINK":"Importar TXT: enlace multimedia no válido","IMPORTTXT_INVALID_LINK_TITLE_HANDLING":"Importar TXT: título del enlace no válido","IMPORTTXT_UNDETECTABLE_CHAR_ENCODING":"Importación TXT: codificación de caracteres indetectable","IMPORTTXT_CANT_IMPORT_TO_SECRET_MEMORI":"Importación TXT: No se puede importar a Secret Memories","IMPORTTXT_IMPORT_LIMIT_EXCEEDED":"Importar TXT: límite de importación excedido","IMPORTTXT_IMPORT_ON_GPT4_REQUIRES_API_KEY":"Importar TXT: la importación en GPT-4 requiere una clave API","IMPORTTXT_IMPORT_REQUIRES_PAYING":"Importar TXT: la importación requiere un plan de pago","IMPORTTXT_BILLING_DENIED_PERMISSION":"Importar TXT: no tienes suficientes créditos para la operación","IMPORT_MISSING_ROWS":"Importar: filas faltantes","IMPORT_CANT_IMPORT_TO_SECRET_MEMORI":"Importar: no se puede importar a Secret Memories","IMPORTMEMORI_INVALID_MEMORI_SPECS":"Importar MEMORI: especificaciones de memoria no válidas","IMPORT_MISSING_JSONL":"Importar: faltan JSONL","IMPORTMEMORI_INVALID_SPECS":"Importar MEMORI: especificaciones no válidas","EXPORT_MISSING_PASSWORD":"Exportar: falta contraseña","EXPORTCSV_MISSING_CSV_SPECS":"Exportación CSV: faltan especificaciones CSV","EXPORTCSV_MISSING_SEPARATOR":"Exportación CSV: falta separador","EXPORTCSV_INVALID_SEPARATOR":"Exportación CSV: separador no válido","EXPORTCSV_MISSING_TITLE_VARIANT_SEPARATOR":"Exportación CSV: falta el separador de variante de título","EXPORTCSV_MISSING_NEW_LINE_CHAR":"Exportación CSV: falta un carácter de nueva línea","EXPORTCSV_INVALID_NEW_LINE_CHAR":"Exportación CSV: carácter de nueva línea no válido","EXPORTCSV_MISSING_PASSWORD":"Exportación CSV: falta contraseña","EXPORTJSONL_MISSING_JSONL_SPECS":"Exportación JSONL: faltan especificaciones JSONL","EXPORTJSONL_MISSING_PLATFORM":"Exportación JSONL: plataforma faltante","EXPORTJSONL_INVALID_PLATFORM":"Exportación JSONL: plataforma no válida","EXPORTJSONL_MISSING_PASSWORD":"Exportación JSONL: falta contraseña","EXPORTJSONL_EXPORT_REQUIRES_PAYING":"Exportación JSONL: la exportación requiere un plan pago","ANALYSIS_MISSING_QUERY":"Análisis: consulta faltante","ANALYSIS_CANT_ANALYZE_SECRET_MEMORI":"Análisis: No se pueden analizar recuerdos secretos","ANALYSIS_USER_QUERY_MATCH_REQUIRES_DEEP_THOUGHT":"Análisis: hacer coincidir la consulta del usuario requiere un pensamiento profundo","BADGE_ASSIGNMENT_WRONG_OR_MISSING_CREDENTIALS":"Asignación de insignia: credenciales incorrectas o faltantes","BADGE_ASSIGNMENT_MISSING_REF_ID":"Asignación de insignia: falta el ID de referencia","BADGE_ASSIGNMENT_OUTCOME_NOT_FOUND":"Asignación de insignia: resultado no encontrado","BADGE_ASSIGNMENT_MISSING_ASSERTION_URL":"Asignación de insignia: falta la URL de aserción","BADGE_ASSIGNMENT_MISSING_BADGE_URL":"Asignación de insignia: URL de insignia faltante","BADGE_ASSIGNMENT_MISSING_ISSUER_URL":"Asignación de insignia: falta la URL del emisor","BADGE_ASSIGNMENT_INVALID_URL":"Asignación de insignia: URL no válida","BADGE_ASSIGNMENT_MISSING_RECIPIENT":"Asignación de insignia: destinatario faltante","BADGE_ASSIGNMENT_UNKNOWN_RECIPIENT_TYPE":"Asignación de insignia: tipo de destinatario desconocido","BADGE_ASSIGNMENT_MISSING_RECIPIENT_IDENTITY":"Asignación de insignia: falta la identidad del destinatario","BADGE_ASSIGNMENT_MISSING_RECIPIENT_HASH_TYPE":"Asignación de insignia: falta el tipo de hash del destinatario","BADGE_ASSIGNMENT_UNKNOWN_RECIPIENT_HASH_TYPE":"Asignación de insignia: tipo de hash del destinatario desconocido","BADGE_ASSIGNMENT_WRONG_RECIPIENT_IDENTITY":"Asignación de insignia: identidad del destinatario incorrecta","BADGE_NOT_FOUND":"Insignia no encontrada","OUTCOME_NO_DCM_CONFIGURED":"Resultado: no hay ningún DCM configurado","OUTCOME_USER_BADGES_DISABLED":"Resultado: insignias de usuario deshabilitadas","COMPLETION_CONFIG_MISSING_NAME":"Configuración de terminaciones: falta nombre","COMPLETION_CONFIG_MISSING_PROVIDER":"Configuración de terminaciones: falta proveedor","COMPLETION_CONFIG_MISSING_ENDPOINT":"Configuración de terminaciones: falta punto final","COMPLETION_CONFIG_MISSING_API_KEY":"Configuración de terminaciones: falta clave API","COMPLETION_CONFIG_MISSING_MODEL":"Configuración de terminaciones: modelo faltante","COMPLETION_CONFIG_NO_PURPOSE_SPECIFIED":"Configuración de terminaciones: se debe especificar al menos un tipo de terminaciones","COMPLETION_CONFIG_INVALID_NAME":"Configuración de terminaciones: nombre no válido","COMPLETION_CONFIG_INVALID_PURPOSE":"Configuración de terminaciones: tipo de terminaciones no válidas","COMPLETION_CONFIG_INVALID_ENDPOINT":"Configuración de terminaciones: punto final no válido","COMPLETION_CONFIG_INCONSISTENT_ENDPOINT":"Configuración de terminaciones: punto final inconsistente","COMPLETION_CONFIG_INVALID_PROVIDER":"Configuración de terminaciones: proveedor no válido","COMPLETION_CONFIG_NOT_FOUND":"Configuración de terminaciones: no encontrada","COMPLETION_CONFIG_NOT_ACCESSIBLE":"Configuración de terminaciones: no accesible","COMPLETION_CONFIG_NAME_RESERVED":"Configuración de terminaciones: nombre reservado","COMPLETION_CONFIG_NAME_ALREADY_EXISTS":"Configuración de terminaciones: el nombre ya existe","COMPLETION_CONFIG_VISIBILITY_CHANGE_NOT_ALLOWED":"Configuración de terminaciones: cambio de visibilidad no permitido","COMPLETION_CONFIG_MISSING_MANDATORY_PREFIX":"Configuración de terminaciones: prefijo obligatorio faltante","COMPLETION_CONFIG_VISIBILITY_NOT_PERMITTED":"Configuración de terminaciones: visibilidad no permitida","COMPLETION_CONFIG_USE_AS_DEFAULT_NOT_PERMITTED":"Configuración de terminaciones: uso como predeterminado no permitido","COMPLETION_CONFIG_USE_AS_DEFAULT_REQUIRES_TENANT_VISIBILITY":"Configuración de terminaciones: uso como predeterminado requiere visibilidad del inquilino","COMPLETION_CONFIG_CHARGEABLE_NOT_PERMITTED":"Configuración de terminaciones: chargeable no permitido","COMPLETION_CONFIG_INVALID_APPLY_TO":"Configuración de terminaciones: apply to no válido","COMPLETION_CONFIG_APPLY_TO_TENANT_NOT_ALLOWED":"Configuración de terminaciones: apply to tenant no permitido","TRUSTED_APPLICATION_NOT_FOUND":"Aplicación de confianza no encontrada","TRUSTED_APPLICATION_NOT_ACCESSIBLE":"Aplicación de confianza no accesible","TRUSTED_APPLICATION_NAME_REQUIRED":"Aplicación de confianza: nombre requerido","TRUSTED_APPLICATION_TOKEN_REQUIRED":"Aplicación de confianza: token requerido","TRUSTED_APPLICATION_NAME_ALREADY_EXISTS":"Aplicación de confianza: nombre ya existe","TRUSTED_APPLICATION_INVALID_TOKEN":"Aplicación de confianza: token no válido"}}');let XO={en:{translation:b(XC)},it:{translation:b(XI)},es:{translation:b(XR)},fr:{translation:b(XM)},de:{translation:b(XN)}},XP=(0,ah.createInstance)({resources:XO,lng:"en",fallbackLng:"it",supportedLngs:["en","it","fr","es","de"],nonExplicitSupportedLngs:!0,interpolation:{escapeValue:!1}});XP.init(),function(e){let t=(void 0)??"translation";for(let n of Object.keys(hp)){let r=hp[n],i=hm[n],a=hf[n],o=hg[n];e.addResourceBundle(n,t,{table:r,expandable:i,alert:a,overlay:o},!0,!0)}}(XP);var Xk=({children:e})=>(0,ed.jsx)(i6,{i18n:XP,children:e});let XL=e=>{var t;return e?null==(t=null==e?void 0:e.split(","))?void 0:t.reduce((e,t)=>{let[n,r]=t.split(":").map(e=>e.trim());return{...e,[n]:r}},{}):{}},XD=({ownerUserName:e,ownerUserID:t,memoriName:n,memoriID:r,integration:i,integrationID:a,tenantID:o,secretToken:s,sessionID:l,layout:u,customLayout:c,showShare:d,showCopyButton:h,showTranslationOriginal:p,showSettings:m,showTypingText:f,showClear:g,showOnlyLastMessages:v,showInputs:y=!0,showDates:b=!1,showContextPerLine:_=!1,showMessageConsumption:x,showUpload:w,showLogin:S,showReasoning:E,show3dAvatar:A,avatar3dHidden:T,height:I="100%",baseURL:C,apiURL:M="https://backend.memori.ai",engineURL:N="https://engine.memori.ai",tag:R,pin:O,context:P,initialQuestion:k,showChatHistory:D,uiLang:B,spokenLang:F,multilingual:U,authToken:j,enableAudio:z,defaultSpeakerActive:H=!0,disableTextEnteredEvents:G=!1,onStateChange:V,additionalInfo:W,customMediaRenderer:q,additionalSettings:$,userAvatar:J,useMathFormatting:K=!1,autoStart:Y,applyVarsToRoot:X=!1,__WEBCOMPONENT__:Z=!1,maxTotalMessagePayload:Q,maxTextareaCharacters:ee})=>{var et,en,er,ei,ea,eo,es,el;let[eu,ec]=(0,ep.useState)(),[eh,em]=(0,ep.useState)(),[ef,eg]=(0,ep.useState)(),[ev,ey]=(0,ep.useState)(),{t:eb}=tE();if(!(r&&t||n&&e))throw Error("Identifier pair required: please provide either memoriID and ownerUserID or memoriName and ownerUserName");let e_=e2(M,N),ex=(0,ep.useCallback)(async()=>{let e=C||(o.startsWith("https://")?o:`https://${o}`);try{let t=await fetch(`${e}/api/speechkey?tenant=${o}`,{method:"GET",headers:{"Content-Type":"application/json"}}),n=await t.json();n.provider?eg(n.provider):console.warn("Provider not found in speech key response")}catch(e){console.error("Error fetching speech key:",e)}},[C,o]);(0,ep.useEffect)(()=>{ex()},[]);let ew=(0,ep.useCallback)(async()=>{if(r&&t){let{memori:e,...n}=await e_.backend.getMemoriByUserAndId(o,t,r);0===n.resultCode&&e?ec(e):console.error("[MEMORI]",n,e)}else if(n&&e){let{memori:r,...i}=await e_.backend.getMemori(o,e,n);0===i.resultCode&&r?(!r.ownerUserID&&t&&(r.ownerUserID=t),ec(r)):console.error("[MEMORI]",i,r)}},[r,t,n,e,o]);(0,ep.useEffect)(()=>{ew()},[ew,o]);let eS=(0,ep.useCallback)(async()=>{let{tenant:e,...t}=await e_.backend.tenant.getTenant(o);e&&0===t.resultCode?em(e):console.debug("[TENANT]",t,e)},[o,M]);(0,ep.useEffect)(()=>{eS()},[eS]),(0,ep.useEffect)(()=>{let e=document.querySelector(`memori-client[memoriname="${null==eu?void 0:eu.name}"]`)||document.querySelector(`memori-client[memoriid="${null==eu?void 0:eu.memoriID}"]`)||document.querySelector("memori-client");if(!e)return;let t=new MutationObserver((e,t)=>{for(let t of e)if("attributes"===t.type){let e="MEMORI-CLIENT"===t.target.nodeName?t.target:t.target.parentElement,n=e.getAttribute("sessionid")||void 0;e&&n&&ey(n)}});return t.observe(e,{attributes:!0,childList:!1,subtree:!1}),()=>{t.disconnect()}},[]),(0,ep.useEffect)(()=>{if(B)XP.changeLanguage(B.toLowerCase());else{let{lng:e,fallbackLng:t}=(()=>{let e=navigator.language;if(e){let t=e.split("-")[0];if(["en","it"].includes(t))return{lng:t,fallbackLng:"en"===t?"it":"en"}}return{lng:"en",fallbackLng:"it"}})();XP.changeLanguage(e).catch(()=>{XP.changeLanguage(t)})}},[B]);let eE=null!=i?i:null==(et=null==eu?void 0:eu.integrations)?void 0:et.find(e=>a?e.integrationID===a:!!e.publish&&"LANDING_EXPERIENCE"===e.type),eA=((e,t=!1)=>{try{return JSON.parse(e)}catch(n){return t?e:null}})(null!=(en=null==eE?void 0:eE.customData)?en:"{}"),eT=[null==eh?void 0:eh.name,...(null==eh?void 0:eh.aliases)||[],...eA.whiteListedDomains||[]];if((null==(er=null==eA?void 0:eA.whiteListedDomains)?void 0:er.length)&&"u">typeof window&&!eT.some(e=>new RegExp(e).test(window.location.hostname)))return null;let eI=null!=(ei=eA.ignoreClientAttributes)&&ei?{initialContextVars:XL(eA.contextVars),initialQuestion:eA.initialQuestion,showLogin:(null==eu?void 0:eu.enableDeepThought)||void 0,memoriLang:null==(eo=null==(ea=null==eu?void 0:eu.culture)?void 0:ea.split("-"))?void 0:eo[0],uiLang:B,spokenLang:F,autoStart:"HIDDEN_CHAT"===u||"WEBSITE_ASSISTANT"!==u&&Y}:{...R&&O?{personification:{tag:R,pin:O}}:{},multilingual:U,showCopyButton:h,showTranslationOriginal:p,showSettings:m,showChatHistory:D,showShare:d,showTypingText:f,showClear:g,showLogin:null!=S?S:(null==eu?void 0:eu.enableDeepThought)||void 0,showUpload:w,showReasoning:E,showContextPerLine:_,showMessageConsumption:x,initialContextVars:null!=P?P:XL(eA.contextVars),initialQuestion:null!=k?k:eA.initialQuestion,autoStart:"WEBSITE_ASSISTANT"!==u&&(void 0!==Y?Y:"HIDDEN_CHAT"===u||Y),enableAudio:z,defaultSpeakerActive:H,useMathFormatting:K,memoriLang:null==(el=null==(es=null==eu?void 0:eu.culture)?void 0:es.split("-"))?void 0:el[0],uiLang:B,spokenLang:F},[eC,eM]=(0,ep.useState)(!1),eN=(0,ep.useCallback)(()=>{var e;if(((null==eu?void 0:eu.memoriID)||r)&&!eC){let t=null==window?void 0:window.location.origin;if(!t||t.includes("localhost")||t.includes("memori-ai.github.io"))return void eM(!0);eM(!0),fetch("https://pulse.aisuru.com/post",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({pulse:{clientType:Z?"memori-webcomponent":"memori-react",clientVersion:"v9.0.0-rc.6",userAgent:navigator.userAgent,language:navigator.language,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,memoriID:null!=(e=null==eu?void 0:eu.memoriID)?e:r,tenant:o,referrer:t}})})}},[null==eu?void 0:eu.memoriID,r,o,Z,eC]);return(0,ep.useEffect)(()=>{eN()},[eN]),(0,ed.jsx)(Xk,{children:(0,ed.jsx)(v8,{defaultDuration:5e3,children:(0,ed.jsx)(q3,{children:(0,ed.jsx)(e8,{children:eu?(0,ed.jsx)(XT,{layout:u,customLayout:c,height:I,baseUrl:C||(o.startsWith("https://")||o.startsWith("http://")?o:`https://${o}`),apiURL:M,engineURL:N,memori:{...eu,secretToken:s},__WEBCOMPONENT__:Z,ownerUserName:null!=e?e:eu.ownerUserName,ownerUserID:null!=t?t:eu.ownerUserID,tenant:eh,tenantID:o,sessionID:null!=l?l:ev,secret:s,ttsProvider:ef||"azure",integration:eE,authToken:j,onStateChange:V,additionalInfo:W,customMediaRenderer:q,additionalSettings:$,userAvatar:J,applyVarsToRoot:X,maxTotalMessagePayload:Q,maxTextareaCharacters:ee,disableTextEnteredEvents:G,show3dAvatar:A,avatar3dHidden:T,...eI,showOnlyLastMessages:v,showInputs:y,showDates:b}):(0,ed.jsx)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center"},children:(0,ed.jsxs)("p",{style:{textAlign:"center",margin:"2rem auto",textTransform:"capitalize"},children:[eb("loading")||"Loading","..."]})})})})})})};XD.propTypes={memoriName:(b(em)).string,memoriID:(b(em)).string,ownerUserName:(b(em)).string,ownerUserID:(b(em)).string,integrationID:(b(em)).string,integration:(b(em)).any,tenantID:(b(em)).string.isRequired,secretToken:(b(em)).string,sessionID:(b(em)).string,layout:(b(em)).oneOf(["DEFAULT","FULLPAGE","TOTEM","WEBSITE_ASSISTANT","CHAT","HIDDEN_CHAT","ZOOMED_FULL_BODY"]),customLayout:(b(em)).any,showShare:(b(em)).bool,showCopyButton:(b(em)).bool,showTranslationOriginal:(b(em)).bool,showInputs:(b(em)).bool,showDates:(b(em)).bool,showContextPerLine:(b(em)).bool,showMessageConsumption:(b(em)).bool,showSettings:(b(em)).bool,showClear:(b(em)).bool,showOnlyLastMessages:(b(em)).bool,showTypingText:(b(em)).bool,showLogin:(b(em)).bool,showUpload:(b(em)).bool,showReasoning:(b(em)).bool,show3dAvatar:(b(em)).bool,avatar3dHidden:(b(em)).bool,height:(b(em)).oneOfType([(b(em)).string,(b(em)).number]),baseURL:(b(em)).string,apiURL:(b(em)).string,engineURL:(b(em)).string,tag:(b(em)).string,pin:(b(em)).string,context:(b(em)).objectOf((b(em)).any),initialQuestion:(b(em)).string,uiLang:(b(em)).oneOf(["en","it","fr","es","de","EN","IT","FR","ES","DE"]),spokenLang:(b(em)).string,multilingual:(b(em)).bool,authToken:(b(em)).string,enableAudio:(b(em)).bool,defaultSpeakerActive:(b(em)).bool,disableTextEnteredEvents:(b(em)).bool,onStateChange:(b(em)).func,additionalInfo:(b(em)).objectOf((b(em)).any),customMediaRenderer:(b(em)).func,additionalSettings:(b(em)).any,userAvatar:(b(em)).oneOfType([(b(em)).string,(b(em)).any]),useMathFormatting:(b(em)).bool,autoStart:(b(em)).bool,applyVarsToRoot:(b(em)).bool,maxTotalMessagePayload:(b(em)).number,maxTextareaCharacters:(b(em)).number};let XB=e=>{try{return JSON.parse(e)}catch(e){return null}};class XF extends HTMLElement{connectedCallback(){let e=document.createElement("div"),t=document.createElement("div");t.setAttribute("id","memori-root"),e.appendChild(t),this.appendChild(e);let n=Object.keys(XD.propTypes).reduce((e,t)=>(this.hasAttribute(t)&&(e[t]=this.getAttribute(t),("true"===e[t]||"false"===e[t])&&(e[t]="true"===e[t])),e),{}),r=this.getAttribute("tenantId"),i=this.getAttribute("context"),a=i?.split(",")?.reduce((e,t)=>{let[n,r]=t.split(":").map(e=>e.trim());return{...e,[n]:r}},{}),o=XB(this.getAttribute("additionalInfo")||"{}")||{},s=this.getAttribute("integration"),l=s&&XB(s)||void 0,u=this.getAttribute("apiURL")||void 0;u&&"backend.memori.ai"===new URL(u).hostname&&(u="https://backend-proxy.aisuru.com"),r?(b(eh)).render((0,ed.jsx)(XD,{...n,apiURL:u,context:a,tenantID:r,additionalInfo:o,integration:l,__WEBCOMPONENT__:!0}),t):console.error("No tenantId attribute found")}}customElements.define("memori-client",XF)})();
1101
+ `,rJ=(null==tI?void 0:tI.showAIicon)===void 0||(null==tI?void 0:tI.showAIicon),rK=!!(null!=I?I:null==tI?void 0:tI.showUpload),rY=!!(null!=N?N:null==tI?void 0:tI.showReasoning),rX=(eQ=null==tI?void 0:tI.showMessageConsumption,!!(null!=w?w:eQ)),rZ=(null==tI?void 0:tI.showWhyThisAnswer)===void 0||(null==tI?void 0:tI.showWhyThisAnswer),[rQ,r0]=(0,ep.useState)(!1);(0,ep.useEffect)(()=>{(window.innerWidth>=768&&"FULLPAGE"===t2||"FULLPAGE"!==t2)&&r0(!0)},[]),(0,ep.useEffect)(()=>{if(null==tI?void 0:tI.seoTitle){let e=document.createElement("meta");e.setAttribute("property","og:title"),e.setAttribute("content",tI.seoTitle),document.head.append(e)}if(null==tI?void 0:tI.seoDescription){let e=document.createElement("meta");e.setAttribute("property","og:description"),e.setAttribute("content",tI.seoDescription),document.head.append(e)}if(null==tI?void 0:tI.seoUrl){let e=document.createElement("meta");e.setAttribute("property","og:url"),e.setAttribute("content",tI.seoUrl),document.head.append(e)}let t=H||e.avatarURL;if((null==tI?void 0:tI.seoImageShowAvatar)&&t){let e=document.createElement("meta");e.setAttribute("property","og:image"),e.setAttribute("content",t),document.head.append(e)}},[tI,e.avatarURL,H]);let r1=(e,t=0)=>{if(K)return;let{text:n,waitForPrevious:r,hidden:i,typingText:a,useLoaderTextAsMsg:o,hasBatchQueued:s}=e.detail;n&&(r&&!rf&&(nE||tQ.current.size>0)&&t<30?setTimeout(()=>{r2.current(e,t+1)},1e3):(rp(),n$(n,void 0,void 0,void 0,void 0,i,a,o,s)))},r2=(0,ep.useRef)(r1);r2.current=r1,(0,ep.useEffect)(()=>{if(K)return;let e=e=>r2.current(e);return document.addEventListener("MemoriTextEntered",e),()=>{document.removeEventListener("MemoriTextEntered",e)}},[K]);let r3=(0,ep.useCallback)(async(t,n=!1,r,i)=>{var a,o,s,l,u,c,d,h,p,m,f,g,v,y,b,_,x,w,S,E;let A=r?void 0:(null==t?void 0:t.sessionID)||n0,T=r?void 0:(null==t?void 0:t.dialogState)||n4;tL(!0),t7(!1);let I=[],C=qC("birthDate",void 0),M=nY||C||(null==tw?void 0:tw.birthDate);!M&&er&&(G||i)&&(M="1970-01-01T10:24:03.845Z");let N=qC("position",void 0);if(er&&(w=!!e.needsPosition,S=!!(nO||N),w&&!S||(E=!!e.requireLoginToken,E&&!tR)))return void tL(!1);if(!await ia({notify:!0})){tL(!1),tJ(!1);return}if(A||!nK||M)if((A||"PUBLIC"===e.privacyType||e.secretToken||nT||nC)&&(A||!tD))if(!A||n){if(tB(!1),tF.current)return;tF.current=!0;try{let t=await n7({memoriID:e.engineMemoriID,password:k||nT||e.secretToken,tag:null==W?void 0:W.tag,pin:null==W?void 0:W.pin,continueFromChatLogID:null==r?void 0:r.chatLogID,initialContextVars:{LANG:tV,PATHNAME:null==(a=window.location.pathname)?void 0:a.toUpperCase(),ROUTE:(null==(l=null==(s=null==(o=window.location.pathname)?void 0:o.split("/"))?void 0:s.pop())?void 0:l.toUpperCase())||"",...(!r?U:r.lines[r.lines.length-1].contextVars)||{}},initialQuestion:r?void 0:j,birthDate:M,additionalInfo:{...X||{},loginToken:tT(),language:(null!=(d=null!=tV?tV:null==(c=null==(u=e.culture)?void 0:u.split("-"))?void 0:c[0])?d:"IT").toLowerCase(),timeZoneOffset:new Date().getTimezoneOffset().toString()}});if(null==t?void 0:t.dialogState)if(r){let e=r.lines.map((e,t)=>{var n,r;return{text:e.text,media:null==(r=null==(n=e.media)?void 0:n.filter(e=>kV.includes(e.mimeType)))?void 0:r.map(e=>({mediumID:`${t}-${e.mimeType}`,...e})),fromUser:e.inbound,llmUsage:e.llmUsage,timestamp:e.timestamp,emitter:e.emitter}});if(I=null!=e?e:[],tH.toUpperCase()!==tV.toUpperCase()&&tG)try{I=await Promise.all(e.map(async e=>"originalText"in e&&e.originalText?e:{...e,originalText:e.text,text:(await GC(e.text,tV,tH,D)).text}))}catch(e){}nG(I),nJ(t.dialogState,tV,void 0,!0).finally(()=>{ry(!0),tL(!1)})}else nG([]),await rM(t.dialogState,tV),ry(!0),tL(!1);else(null==t?void 0:t.resultCode)===0?(tF.current=!1,await r3(t||void 0)):(tJ(!1),tL(!1))}finally{tF.current=!1}return}else if(G||i){let t=null!=i?i:G,{currentState:n,...r}=await ts(t);if(0!==r.resultCode||!n){let{chatLogs:e}=await tu(t,t);n3(void 0),await r3(void 0,!0,null==e?void 0:e[0]);return}if(nG([]),W&&n.currentTag!==W.tag)try{await rt(e.engineMemoriID,t,"-");let n=await rt(e.engineMemoriID,t,W.tag,W.pin);if(n&&0===n.resultCode)await rM(n.currentState,tV),tL(!1);else throw Error("No session")}catch(t){n9(!0,null==e?void 0:e.secretToken,void 0,W.tag,W.pin,{LANG:tV,PATHNAME:null==(h=window.location.pathname)?void 0:h.toUpperCase(),ROUTE:(null==(f=null==(m=null==(p=window.location.pathname)?void 0:p.split("/"))?void 0:m.pop())?void 0:f.toUpperCase())||"",...U||{}},j,M).then(()=>{ry(!0),tL(!1)})}else if(!W&&(null==n?void 0:n.currentTag)&&(null==n?void 0:n.currentTag)!==k$&&(null==n?void 0:n.currentTag)!=="-")try{await rt(e.engineMemoriID,t,"-");let n=await rt(e.engineMemoriID,t,k$);if(n&&0===n.resultCode)await rM(n.currentState,tV),tL(!1);else throw Error("No session")}catch(t){n9(!0,null==e?void 0:e.secretToken,void 0,void 0,void 0,{LANG:tV,PATHNAME:null==(g=window.location.pathname)?void 0:g.toUpperCase(),ROUTE:(null==(b=null==(y=null==(v=window.location.pathname)?void 0:v.split("/"))?void 0:y.pop())?void 0:b.toUpperCase())||"",...U||{}},j,M).then(()=>{ry(!0),tL(!1)})}else{try{let{chatLogs:e}=await tu(t,t),n=null==(_=null==e?void 0:e[0])?void 0:_.lines.map((e,t)=>{var n,r;return{text:e.text,media:null==(r=null==(n=e.media)?void 0:n.filter(e=>kV.includes(e.mimeType)))?void 0:r.map(e=>({mediumID:`${t}-${e.mimeType}`,...e})),fromUser:e.inbound,llmUsage:e.llmUsage,timestamp:e.timestamp,emitter:e.emitter}});if(I=null!=n?n:[],tH.toUpperCase()!==tV.toUpperCase()&&tG)try{I=await Promise.all(n.map(async e=>({...e,originalText:e.text,text:(await GC(e.text,tV,tH,D)).text})))}catch(e){}nG(I)}catch(e){}if((null==I?void 0:I.length)&&I.length>1||!j)ry(!0),tL(!1),await rM(n,tV,void 0,!!(null==I?void 0:I.length));else{I=[],nG([]);let n=nD(nO),r=await te({sessionId:t,text:j,...e.needsDateTime&&{dateUTC:null!=(x=i4.utc().toISO())?x:void 0},...void 0!==n&&{place:n}});if(500===r.resultCode&&r.resultMessage)return void nG(e=>[...e,{text:"Error: "+r.resultMessage,emitter:"system",fromUser:!1,initial:!1,contextVars:{},date:new Date().toISOString()}]);let i=XE(r);if(0===r.resultCode&&i){tY(!0);try{let e=await rL(i);0===e.resultCode&&e.currentState&&(await rM(e.currentState,tV,void 0,!1),tL(!1))}catch(e){XS("onClickStart NATS wait failed",e),tY(!1),tZ(void 0)}}else 0===r.resultCode&&XS("onClickStart enter-text missing correlationID",r)}}}else nG([]),await rM(T,tV),tL(!1);else{nR("password"),tL(!1);return}else{nQ(!0),tL(!1);return}},[nT,e,nC,nY,n0,tV,nO,tR]),r4=(0,ep.useCallback)(e=>{let t=!!(n0&&rv),n=!!(nO||qC("position",void 0));ne(r=>((function(e,t,n,r=!1,i=!0){return e&&!t&&!!n&&!r&&i})(r,e,er,t,n)&&queueMicrotask(()=>{r3()}),e||queueMicrotask(()=>{nn(!1)}),e))},[er,r3,n0,rv,nO]),[r5,r6]=(0,ep.useState)(!1),r8="WEBSITE_ASSISTANT"===t2||"HIDDEN_CHAT"===t2,r7=(0,ep.useRef)(!1);(0,ep.useEffect)(()=>{var t,n;let r=qC("position",void 0),i=!!(nO||r);r7.current||tk||tF.current||n0||!er||r8&&!r5||tU&&!tj||(t=!!e.needsPosition,t&&!i)||(n=!!e.requireLoginToken,n&&!tR)||(r7.current=!0,r3())},[tk,er,r8,r5,n0,tU,tj,nO,e.needsPosition,e.requireLoginToken,tR]),(0,ep.useEffect)(()=>{var t;let n=document.querySelector(`memori-client[memoriname="${e.name}"]`)||document.querySelector(`memori-client[memoriid="${e.memoriID}"]`)||document.querySelector("memori-client");if(!n)return;let r=null!=(t=null==X?void 0:X.loginToken)?t:q,i=n.getAttribute("authtoken")||void 0;i&&!r&&(tb(i),t_.current=i);let a=e=>{var t;let n="MEMORI-CLIENT"===e.nodeName?e:null!=(t=e.closest("memori-client"))?t:e.parentElement,r=(null==n?void 0:n.getAttribute("authtoken"))||void 0;tb(r),t_.current=r},o=new MutationObserver(e=>{var t;for(let n of e)"attributes"===n.type&&(null==(t=n.attributeName)?void 0:t.toLowerCase())==="authtoken"&&a(n.target)});return o.observe(n,{attributes:!0,childList:!1,subtree:!1}),()=>{o.disconnect()}},[e.name,e.memoriID,null==X?void 0:X.loginToken,q]);let[r9,ie]=(0,ep.useState)(),it=(0,ep.useCallback)(async()=>{if(n0&&(null==e?void 0:e.enableBoardOfExperts))try{let{experts:e,count:t,...n}=await tl(n0);0===n.resultCode&&ie(e)}catch(e){}},[n0,null==e?void 0:e.enableBoardOfExperts]);(0,ep.useEffect)(()=>{it()},[n0,it]);let ir=e.enableDeepThought&&!!ty&&!!(null==tw?void 0:tw.userID)&&(null==tw?void 0:tw.pAndCUAccepted),ii=(0,ep.useCallback)(()=>{tz(!1),nR(null),e3(v7({description:e0("notEnoughCredits"),severity:"error"}))},[e3,e0]),ia=(0,ep.useCallback)(async e=>{if(!(null==V?void 0:V.billingDelegation))return!0;if(!n&&!r)return(null==e?void 0:e.notify)?ii():tz(!1),!1;try{if((await JC({operation:ir?"dt_session_creation":"session_creation",baseUrl:D,userID:n,userName:r,tenant:i})).enough)return tz(!0),!0;return(null==e?void 0:e.notify)?ii():tz(!1),!1}catch(e){return XS("checkCredits failed",e),!0}},[D,ir,ii,n,r,null==V?void 0:V.billingDelegation,i]);(0,ep.useEffect)(()=>{(null==V?void 0:V.billingDelegation)&&ia()},[null==V?void 0:V.billingDelegation,ir,ia]),(0,ep.useEffect)(()=>{if(et)return;let e=()=>{n0&&e9(n0)};return window.addEventListener("beforeunload",e),()=>{window.removeEventListener("beforeunload",e),e()}},[n0]);let io=void 0===C?!("WEBSITE_ASSISTANT"===t2&&tM):!C,is=!(null==V?void 0:V.ssoLogin)&&tN,il={memori:{...e,ownerUserID:null!=(eP=null!=(eO=e.ownerUserID)?eO:n)?eP:void 0},apiClient:e8,tenant:V,history:nH,showShare:null!=(ek=null!=p?p:null==tI?void 0:tI.showShare)?ek:"WEBSITE_ASSISTANT"!==t2,position:nO,layout:t2,additionalSettings:Z,setVenue:nB,positionPopoverOpen:t9,setPositionPopoverOpen:r4,autoStartPositionGeolocation:nt,setShowSettingsDrawer:ni,setShowKnownFactsDrawer:nl,setShowExpertsDrawer:nc,enableAudio:!!z&&(null==(eL=null!=$?$:null==tI?void 0:tI.enableAudio)||eL),speakerMuted:null!=rf&&rf,setSpeakerMuted:e=>{rg(e)},setShowChatHistoryDrawer:no,showSettings:null==(eD=null!=S?S:null==tI?void 0:tI.showSettings)||eD,showChatHistory:"WEBSITE_ASSISTANT"!==t2&&(null==(eB=null!=M?M:null==tI?void 0:tI.showChatHistory)||eB),showMessageConsumption:rX,hasUserActivatedSpeak:rv,showReload:"TOTEM"===t2,showClear:null!=(eF=null!=A?A:null==tI?void 0:tI.showClear)&&eF,clearHistory:()=>nG(e=>e.slice(-1)),showLogin:is,setShowLoginDrawer:tP,loginToken:ty,user:tw,sessionID:n0,baseUrl:D,onLogout:()=>{ty&&e8.backend.pwlUserLogout(ty).then(()=>{tP(!1),tS(void 0),tb(void 0),t_.current=void 0,qN("loginToken")})}},iu={memori:e,integration:u,integrationConfig:tI,tenant:V,instruct:tc,avatar3dVisible:rQ,setAvatar3dVisible:r0,hasUserActivatedSpeak:rv,isPlayingAudio:rm&&!rf&&(null==(eU=null!=$?$:null==tI?void 0:tI.enableAudio)||eU),loading:!!tK,baseUrl:D,apiUrl:e8.constants.BACKEND_URL,enablePositionControls:nv,setEnablePositionControls:ny,avatarType:nb},ic={memori:e,tenant:V,language:tH,userLang:tV,setUserLang:tW,baseUrl:D,apiUrl:e8.constants.BACKEND_URL,position:nO,setVenue:nB,openPositionPopover:()=>{r4(!0)},integrationConfig:tI,instruct:tc,sessionId:n0,clickedStart:tk,isMultilanguageEnabled:tG,onClickStart:r3,isUserLoggedIn:tR,hasInitialSession:!!G,notEnoughCredits:tU&&!tj,showLogin:is,setShowLoginDrawer:tP,showChatHistory:"WEBSITE_ASSISTANT"!==t2&&(null==(ej=null!=M?M:null==tI?void 0:tI.showChatHistory)||ej),setShowChatHistoryDrawer:no,user:tw},id={memori:e,sessionID:n0||"",tenant:V,translateTo:tG&&tV.toUpperCase()!==(null==(eW=null!=(eV=null!=(eG=null==(eH=null==(ez=e.culture)?void 0:ez.split("-"))?void 0:eH[0])?eG:e1.language)?eV:"IT")?void 0:eW.toUpperCase())?tV:void 0,baseUrl:D,apiUrl:e8.constants.BACKEND_URL,layout:c,memoriTyping:tK,typingText:tX,showTypingText:null!=(eq=null!=E?E:null==tI?void 0:tI.showTypingText)&&eq,history:io?nH:nH.slice(-2),authToken:tT(),dialogState:n4,pushMessage:nV,simulateUserPrompt:(e,t)=>{rp(),n$(e,void 0,void 0,!1,t)},showDates:_,showContextPerLine:x,showMessageConsumption:rX,showAIicon:rJ,showUpload:rK,showReasoning:rY,showWhyThisAnswer:rZ,showCopyButton:null==(e$=null!=g?g:null==tI?void 0:tI.showCopyButton)||e$,showTranslationOriginal:null!=(eJ=null!=v?v:null==tI?void 0:tI.showTranslationOriginal)&&eJ,client:e8,instruct:tc,preview:m,sendOnEnter:rF,setSendOnEnter:rU,microphoneMode:nd?"CONTINUOUS":"HOLD_TO_TALK",attachmentsMenuOpen:rj,setAttachmentsMenuOpen:rz,showInputs:y,showMicrophone:!!z&&(null==(eK=null!=$?$:null==tI?void 0:tI.enableAudio)||eK),showFunctionCache:ea,userMessage:nF,onChangeUserMessage:e=>{e&&"\n"!==e&&""!==e.trim()?(nU(e),ra()):nU("")},sendMessage:(e,t)=>{rp(),rI(),t7(!0),n$(e,t),nU("")},onMediumSelectedState:e=>{nJ(e,tV,void 0,!0)},stopListening:e=>{e&&rS&&(rx.current=e),rI()},audioStream:rE,startListening:()=>(t7(!1),rT()),stopAudio:rp,listening:rS,transcribing:"processing"===rA,setEnableFocusChatInput:tp,isPlayingAudio:rm,customMediaRenderer:Q,user:tw,userAvatar:ee,experts:r9,useMathFormatting:tq,maxTotalMessagePayload:eo,maxTextareaCharacters:es,isChatlogPanel:(null==tI?void 0:tI.artifactChatLogPanel)===!0,globalBackground:rH||void 0},ih=(0,ed.jsx)("div",{className:"memori--global-background no-background-image"}),ip=u&&(Object.keys(rG).length>0||(null==tI?void 0:tI.blurBackground)===!1)?(0,ed.jsx)("style",{dangerouslySetInnerHTML:{__html:r$}}):null,im=(0,ed.jsx)($4,{tenant:V,userLang:tV,integrationID:null==u?void 0:u.integrationID,memoriHash:`${e.ownerTenantName}-${e.ownerUserName}-${e.name}`}),ig=h||("TOTEM"===t2?Jm:"CHAT"===t2?Jf:"FULLPAGE"===t2?Jp:"WEBSITE_ASSISTANT"===t2?Jx:"HIDDEN_CHAT"===t2?Jw:"ZOOMED_FULL_BODY"===t2?JS:Jp),iv=(null==tI?void 0:tI.theme)==="light"||(null==tI?void 0:tI.theme)==="dark"?tI.theme:"light";return(0,ed.jsx)("div",{ref:tf,className:(b(tA))("memori","memori-widget",`memori-layout-${String(t2).toLowerCase()}`,`memori-controls-${String(nf).toLowerCase()}`,`memori--avatar-${(null==tI?void 0:tI.avatar)||"default"}`,{"memori--auto-start":er,"memori--preview":m,"memori--embed":f,"memori--with-integration":u,"memori--with-speechkey":!!z,"memori--active":rv,"memori--hide-emissions":nx,"memori--has-active-session":!!n0}),"data-theme":iv,"data-memori-name":null==e?void 0:e.name,"data-memori-id":null==e?void 0:e.engineMemoriID,"data-memori-secondary-id":null==e?void 0:e.memoriID,"data-memori-session-id":n0,"data-memori-integration":null==u?void 0:u.integrationID,"data-memori-engine-state":JSON.stringify({...n4,sessionID:n0}),style:{height:null!=P?P:"100%"},children:(0,ed.jsxs)(v4,{container:tm,clipContainer:tg,theme:iv,zIndexBase:1e4*("WEBSITE_ASSISTANT"===t2),children:[(0,ed.jsx)(v6,{placement:"top-end"}),(0,ed.jsxs)("div",{ref:tv,className:"memori-widget__surface",children:[(0,ed.jsx)(ig,{Header:$2,headerProps:il,Avatar:q5,avatarProps:iu,Chat:Vg,chatProps:id,StartPanel:VA,startPanelProps:ic,integrationStyle:ip,integrationBackground:ih,poweredBy:im,autoStart:er,onSidebarToggle:r6,sessionId:n0,hasUserActivatedSpeak:rv,loading:t$,show3dAvatar:tM,avatar3dHidden:!tM,totemContentMaxWidth:null==tI?void 0:tI.totemContentMaxWidth,sideDrawerOpen:!!na||!!ns||!!nu}),(0,ed.jsx)(tt,{pushMessage:e=>{nG(t=>{if(!t.length)return t;let n=t[t.length-1];if(!n||n.fromUser)return t;let r={...n,text:n.text+e.text};return[...t.slice(0,-1),r]})}}),(0,ed.jsx)("audio",{id:"memori-audio",style:{display:"none"},src:"https://aisuru.com/intro.mp3"}),e5&&(0,ed.jsx)(wv,{withModal:!0,pwdOrTokens:nN,openModal:!!nN,setPwdOrTokens:nR,showTokens:"SECRET"===e.privacyType,onFinish:e=>{var t,n,r,i;return e.password&&nI(e.password),e.password&&(d=e.password),e.tokens&&nM(e.tokens),n9(!n0,e.password,e.tokens,null==W?void 0:W.tag,null==W?void 0:W.pin,{LANG:tV,PATHNAME:null==(t=window.location.pathname)?void 0:t.toUpperCase(),ROUTE:(null==(i=null==(r=null==(n=window.location.pathname)?void 0:n.split("/"))?void 0:r.pop())?void 0:i.toUpperCase())||"",...U||{}},j,nY).then(e=>{if(!(null==e?void 0:e.sessionID))throw Error("AUTH_FAILED");nR(null),(null==e?void 0:e.dialogState)?ry(!0):r3(e)}).catch(e=>{throw e instanceof Error&&"AUTH_FAILED"===e.message||tB(!0),e})},minimumNumberOfRecoveryTokens:null!=(eY=null==e?void 0:e.minimumNumberOfRecoveryTokens)?eY:1}),e5&&(0,ed.jsx)($8,{visible:nZ,minAge:nK,onClose:t=>{var n,r,i,a;t?(nX(t),qM("birthDate",t),n9(!n0,d||nT||(null==e?void 0:e.secretToken),nC,null==W?void 0:W.tag,null==W?void 0:W.pin,{LANG:tV,PATHNAME:null==(n=window.location.pathname)?void 0:n.toUpperCase(),ROUTE:(null==(a=null==(i=null==(r=window.location.pathname)?void 0:r.split("/"))?void 0:i.pop())?void 0:a.toUpperCase())||"",...U||{}},j,t).then(e=>{nQ(!1),nR(null),r3(e||void 0)}).catch(()=>{nQ(!1),tB(!0)})):(nQ(!1),tL(!1))}}),nr&&(0,ed.jsx)($7,{layout:t2,open:!!nr,onClose:()=>ni(!1),microphoneMode:nd?"CONTINUOUS":"HOLD_TO_TALK",continuousSpeechTimeout:np,setMicrophoneMode:e=>nh("CONTINUOUS"===e),setContinuousSpeechTimeout:nm,controlsPosition:nf,setControlsPosition:ng,hideEmissions:nx,setHideEmissions:nw,avatarType:nb,setAvatarType:n_,enablePositionControls:nv,setEnablePositionControls:ny,isAvatar3d:!!(null==tI?void 0:tI.avatarURL),additionalSettings:Z,speakerMuted:rf}),na&&(0,ed.jsx)(Jq,{open:!!na,onClose:()=>no(!1),resumeSession:e=>{nq(e.chatLogID),r3(void 0,!1,e),no(!1)},apiClient:e8,sessionId:n0||"",memori:e,baseUrl:D,history:nH,apiUrl:e8.constants.BACKEND_URL,loginToken:ty,language:tH,userLang:tV,isMultilanguageEnabled:tG,showFunctionCache:ea,showMessageConsumption:rX}),ns&&n0&&(0,ed.jsx)(Jr,{apiClient:e8,memori:e,sessionID:n0,visible:ns,closeDrawer:()=>nl(!1)}),nu&&!!r9&&(0,ed.jsx)(Ji,{apiUrl:e8.constants.BACKEND_URL,baseUrl:D,tenant:V,experts:r9,open:nu,onClose:()=>nc(!1)}),tO&&(null==V?void 0:V.name)&&(0,ed.jsx)(Ja,{tenant:V,apiClient:e8,open:!!tO,user:tw,loginToken:ty,memoriName:null==e?void 0:e.name,onClose:()=>tP(!1),modalClassName:"WEBSITE_ASSISTANT"===t2?"memori-modal--above-website-assistant":void 0,onLogin:(t,n)=>{var r,i,a,o;n9(!1,d||nT||(null==e?void 0:e.secretToken),[],null==W?void 0:W.tag,null==W?void 0:W.pin,{LANG:tV,PATHNAME:null==(r=window.location.pathname)?void 0:r.toUpperCase(),ROUTE:(null==(o=null==(a=null==(i=window.location.pathname)?void 0:i.split("/"))?void 0:a.pop())?void 0:o.toUpperCase())||"",...U||{}},void 0,nY,{loginToken:n},void 0,n0).then(e=>{var r,i;if(tP(!1),tS(t),tb(n),t_.current=n,qM("loginToken",n),(null==e?void 0:e.sessionID)&&e.sessionID!==n0&&(null==e?void 0:e.dialogState)){let n=(null==t?void 0:t.userName)||e0("login.user");nV({text:"",emitter:e.dialogState.emitter,media:null!=(i=null!=(r=e.dialogState.emittedMedia)?r:e.dialogState.media)?i:[],fromUser:!1,initial:e0("login.successfullyLoggedIn",{username:n}),contextVars:{...e.dialogState.contextVars||{},LOGIN_STATUS:"success"},date:e.dialogState.currentDate,placeName:e.dialogState.currentPlaceName,placeLatitude:e.dialogState.currentLatitude,placeLongitude:e.dialogState.currentLongitude,placeUncertaintyKm:e.dialogState.currentUncertaintyKm,tag:e.dialogState.currentTag,memoryTags:e.dialogState.memoryTags}),n8(e.dialogState)}})},setUser:tS,onLogout:()=>{ty&&e8.backend.pwlUserLogout(ty).then(()=>{tP(!1),tS(void 0),tb(void 0),t_.current=void 0,qN("loginToken")})}})]})]})})},ah=eu("HPg7A"),XI={};XI=JSON.parse('{"yes":"Si","no":"No","confirm":"Conferma","apply":"Applica","cancel":"Annulla","show":"Mostra","hide":"Nascondi","send":"Invia","scrollToLatest":"Vai all\'ultimo messaggio","scrollToContinueReading":"Scorri per continuare a leggere","close":"Chiudi","clearHistory":"Cancella chat","clearHistoryDone":"Chat cancellata.","moreInfo":"Ulteriori informazioni","back":"Indietro","edit":"Modifica","delete":"Elimina","loading":"Caricamento","expand":"Espandi","collapse":"Riduci","expandable":{"expand":"Espandi"},"fullscreenEnter":"Passa a schermo intero","fullscreenExit":"Esci da schermo intero","center":"Centro","bottom":"In basso","hidden":"Nascosto","day":"Giorno","month":"Mese","year":"Anno","dayPlaceholder":"GG","monthPlaceholder":"MM","yearPlaceholder":"AAAA","createdAt":"Data creazione","selected":"Selezionati","page":"pagina","actions":"Azioni","next":"Successivo","all":"Tutti","copied":"Copiato!","today":"Oggi","yesterday":"Ieri","date":"Data di nascita","last_7_days":"Ultimi 7 giorni","last_30_days":"Ultimi 30 giorni","previous":"Precedente","placeholder":"Fai una domanda","copy":"Copia","copyRawCode":"Copia codice sorgente","feedback":"Feedback","feedbackThankYou":"Grazie per il feedback.","copyFailed":"Impossibile copiare","functionCache":"Cache delle funzioni","copyToClipboard":"Copia negli appunti","showOriginalText":"Mostra originale","showTranslatedText":"Mostra traduzione","exactPosition":"Posizione esatta","uncertain":"Incertezza","question":"Domanda","nothingFound":"Nessun risultato","venue":"Luogo","searchVenue":"Cerca un luogo…","privacyPolicy":"Informativa sulla privacy","popularLanguages":"Popolari","allLanguages":"Tutte le lingue","memoriBlockedTitle":"Bloccato","memoriBlockedUntil":"Agente bloccato fino al {{date}}","memoriBlockedAnon":"Attualmente \\"{{name}}\\" non può rispondere, torna qui il {{date}}","memoriBlockedReasonExceedChats":"perchè ha superato la soglia mensile di chat ammesse.","memoriBlockedGiverHelper":"Puoi sempre gestirlo in qualità di amministratore, ma altri utenti non potranno interrogarlo.","generatedByAI":"Risposta generata da IA, può talvolta generare informazioni non corrette","aiGeneratedNote":"L\'agente può commettere errori. Assicurati di verificare le informazioni importanti.","reasoning":"Ragionamento...","thinking":"Sto ragionando","thought":"Ragionamento","thoughtFor":"Ragionato per {{count}}s","whyThisAnswer":"Da dove viene questa risposta","whyThisAnswerHelper":"Questa risposta è stata generata automaticamente da un\'intelligenza artificiale sulla base di questi contenuti verificati.","whyThisAnswerDescription":"I contenuti della base di conoscenza che l\'agente ha consultato per rispondere.","whyThisAnswerYouAsked":"Hai chiesto","whyThisAnswerUserAsked":"Domanda dell\'utente","whyThisAnswerAgentReplied":"L\'agente ha risposto","whyThisAnswerShowFull":"Mostra la risposta completa","whyThisAnswerContentsUsed":"Contenuti usati","whyThisAnswerOpen":"Apri","whyThisAnswerDisclaimer":"La risposta è stata scritta dall\'agente a partire da questi contenuti: può contenere errori o riformulazioni. Verifica le informazioni importanti alla fonte.","whyThisAnswerEmptyTitle":"Nessun contenuto consultato","whyThisAnswerEmptyDescription":"Per questa domanda l\'agente non ha trovato corrispondenze nella base di conoscenza: ha risposto solo in base alle proprie istruzioni.","whyThisAnswerEmptyAuthorDescription":"La domanda non ha prodotto corrispondenze. Se dovrebbe averne, aggiungi un contenuto che la copra.","whyThisAnswerAddContent":"Aggiungi alla base di conoscenza","whyThisAnswerConfidenceHigh":"Corrispondenza alta","whyThisAnswerConfidenceMedium":"Corrispondenza parziale","whyThisAnswerConfidenceLow":"Corrispondenza debole","whyThisAnswerTypeQuestion":"Domanda e risposta","whyThisAnswerTypeDocument":"Documento","whyThisAnswerTypeWebsite":"Sito web","whyThisAnswerTypeStory":"Racconto","whyThisAnswerSourcesCount_one":"{{count}} fonte","whyThisAnswerSourcesCount_other":"{{count}} fonti","whyThisAnswerNoSources":"Nessuna fonte","receiverLabel":"Assegnato a","missingData":"Informazioni mancanti","completionsEnabled":"IA evoluta, può rispondere con risposte generate automaticamente che talvolta potrebbero contenere informazioni non corrette","completionProviderDown":"Questo agente è integrato con una IA generativa di {{provider}}, ma al momento non è disponibile. Riprova più tardi.","completionProviderMajorOutage":"Questo agente è integrato con una IA generativa di {{provider}}, ma al momento non è disponibile. Non sarà possibile utilizzare questa funzionalità finché il servizio non viene ripristinato.","completionProviderPartialOutage":"Questo agente è integrato con una IA generativa di {{provider}}, ma sta riscontrando interruzioni parziali. Alcune funzionalità potrebbero non essere disponibili o funzionare in modo non ottimale.","completionProviderDegraded":"Questo agente è integrato con una IA generativa di {{provider}}, ma sta funzionando più lentamente del normale. Le risposte potrebbero richiedere più tempo o essere meno precise.","completionProviderFallbackName":"un provider esterno","completionProviderCheckStatusPage":"Vedi pagina di stato","boardOfExperts":"Gruppo di esperti","birthDate":"Data di nascita","birthDateHelper":"Ti chiediamo la data di nascita esclusivamente per abilitare o disabilitare le funzionalità che hanno restrizioni in base all\'età","underage":"Devi avere almeno {{age}} anni per registrarti.","underageTwinSession":"Devi avere almeno {{age}} anni per interagire con questo agente.","errorFetchingSession":"Errore durante il caricamento della sessione","errorGettingReferralURL":"Errore durante il caricamento del riferimento","errorReopeningSession":"Errore durante il riapertura della sessione","sessionExpiredReopening":"Sessione scaduta, riapertura in corso","ageVerification":"Verifica dell\'età","ageVerificationText":"Per interagire con questo agente, devi aver almeno {{minAge}} anni.","ageVerificationSuccess":"Età verificata con successo.","nsfw":"NSFW: Questo agente contiene contenuti per adulti","deepThought":"Pensiero profondo","deepThoughtWhatIs":"Cos\'è Pensiero Profondo?","deepThoughtHelper":"Pensiero Profondo è una funzionalità avanzata delle AI che ti consentirà di poter sfruttare a pieno le tue conversazioni mantenendo memoria delle stesse. Le AI con Pensiero Profondo possono darti informazioni adattandosi a te e alle cose che condividerete insieme.","deepThoughtDisclaimerTitle":"Pensiero profondo abilitato","deepThoughtDisclaimer":"Pensiero Profondo è una funzionalità avanzata delle AI che ti consentirà di poter sfruttare a pieno le tue conversazioni mantenendo memoria delle stesse. Le AI con Pensiero Profondo possono darti informazioni adattandosi a te e alle cose che condividerete insieme.","deepThoughtPreDisclaimerUnlogged":"Accedi per abilitare Pensiero Profondo.","deepThoughtPreDisclaimerNotAllowed":"Pensiero Profondo è disabilitato poiché non hai acconsentito al suo utilizzo, puoi cambiare la tua scelta in qualsiasi momento nelle impostazioni del tuo account.","notEnoughCredits":"L\'autore di questo agente non ha abbastanza crediti per rispondere alla tua domanda.","confirmDialog":{"title":"Confermi di voler lasciare questa pagina?","message":"Le modifiche non salvate andranno perse."},"knownFacts":{"title":"Fatti noti","description":"Quello che {{memoriName}} ricorda di te. Puoi eliminare ogni voce.","type":"Tipo","typeShortTerm":"Breve termine","typeLongTerm":"Lungo termine","typeHelper":"Tipi:\\n- Breve termine: questo fatto noto è sempre utilizzato durante le conversazioni\\n- Lungo termine: questo fatto noto è utilizzato durante le conversazioni solo se rilevante per la domanda corrente","text":"Testo","searchPlaceholder":"Cerca fra i fatti","select":"Seleziona","loadMore":"Carica altri","factsCount_one":"{{count}} fatto","factsCount_other":"{{count}} fatti","shownOfTotal":"Mostrati {{shown}} di {{total}}","emptyTitle":"Nessun fatto ancora","emptyDescription":"Man mano che parlate, l\'agente annota qui quello che impara su di te. Potrai cancellarlo in qualsiasi momento.","deleteLabel":"Elimina questo fatto","deleteSuccess":"Fatto noto eliminato","deleteConfirmTitle":"Elimina il fatto noto","deleteConfirmMessage":"Confermi di voler eliminare questo fatto noto?","deleteSelectedConfirmTitle":"Elimina i fatti noti selezionati","deleteSelectedConfirmMessage":"Confermi di voler eliminare i fatti noti selezionati?","selected_one":"{{count}} fatto selezionato","selected_other":"{{count}} fatti selezionati","selectedRows_one":"{{count}} riga selezionata","selectedRows_other":"{{count}} righe selezionate"},"auth":{"title":"Autenticazione","description":"Questo agente è protetto. Inserisci la password per continuare.","useRecoveryTokens":"Utilizza i token di recupero","tokens":"Token","addToken":"Aggiungi token","usePassword":"Utilizza la password","invalidCredentials":"Credenziali non valide","atLeast":"Almeno"},"widget":{"instruct":"Istruisci","test":"Prova","sound":"Audio","soundOff":"Audio disattivato","position":"Preferenze posizione","settings":"Impostazioni","share":"Condividi","shareChat":"Condividi chat","sendOnKeypress":"Premi Invio per inviare","sendOnClick":"Clicca su Invia","boardOfExperts":"Board di esperti","showExpertsInTheBoard":"Mostra esperti in questa board","expertsInTheBoard":"Esperti in questa board","goToIntegrationsToCustomizeAvatar":"Per personalizzare l\'avatar, vai a Condividimi e configura la pagina pubblica","chatAssistantStatus":"Attiva • Risponde in pochi secondi","agentStatusListening":"in ascolto","agentStatusSpeaking":"sta parlando","agentStatusProcessing":"in elaborazione","shareLocation":"Condividi posizione","shareLocationHint":"Ricevi risposte in base a dove ti trovi","shareLocationAria":"Condividi la posizione con l\'assistente","knownFactsHint":"Le informazioni che ricordo su di te","aiConsumption":"Consumi AI","editPositionAria":"Modifica posizione","positionResolving":"Ricerca indirizzo…","geocodingFailed":"Impossibile ottenere l\'indirizzo. Riprova o cerca manualmente.","positionUnavailableManual":"Posizione non disponibile. Inseriscila manualmente.","positionSharingEnabled":"Posizione condivisa.","headerHistory":"Cronologia","headerProfile":"Profilo","headerLogin":"Accedi","downloadQrCode":"Scarica QR Code","expandToImmersive":"Espandi per vista immersiva","moreActions":"Altre azioni","mobileSession":{"session":"Sessione","sessionInfo":"Info sessione","copyLinkOrDownload":"Copia link o scarica","currentlyOff":"Attualmente disattivato","whatIKnowAboutYou":"Dettagli delle informazioni condivise tra te e {{memoriName}}","locationTracking":"Tracciamento posizione","locationStatus":"Stato","useCurrentPosition":"Usa posizione attuale","disableLocationSharing":"Disattiva condivisione posizione","openKnownFacts":"Apri tutti i fatti noti","knownFactsMessages":"{{count}} messaggi nella sessione corrente"}},"exportChatHistory":{"exportPDF":"Esporta chat come PDF","exporting":"Esportazione in corso...","empty":"Nessuna cronologia chat da esportare","pdfNotSupported":"L\'esportazione PDF non è supportata in questo browser","success":"Chat esportata in PDF con successo","error":"Impossibile esportare la chat in PDF. Riprova."},"write_and_speak":{"micButtonPopover":"Premi il pulsante per parlare","micButtonPopoverListening":"Premi il pulsante per smettere di parlare","stopRecording":"Interrompi registrazione","sendRecording":"Invia messaggio vocale","recordingInProgress":"Registrazione in corso","pageInstructExplanation":"Per insegnarmi nuove cose clicca sul pulsante ISTRUISCIMI per cominciare","pageTryMeExplanation":"Per iniziare a conversare clicca sul pulsante INIZIAMO","pagePrivacyExplanation":"Le conversazioni sono visibili all\'autore dell\'agente","aiDisclaimer":"L\'agente può commettere errori. Assicurati di verificare le risposte.","downloadChat":"Scarica chat","pagePrivacyExplanationList":{"allConversations":"Tutte le conversazioni con questo agente sono visibili all\'autore dell\'agente","anonymousUser":"Per utenti anonimi: l\'autore vedrà il contenuto e l\'indirizzo IP","registeredUser":"Per utenti registrati: l\'autore vedrà il contenuto e il nome utente","contentAndUsername":"L\'autore può vedere il contenuto, il tuo nome utente e il tuo indirizzo IP","contentAndIpAddress":"L\'autore può vedere il contenuto e il tuo indirizzo IP","authorUsesInfo":"L\'autore utilizza queste informazioni per migliorare le funzionalità dell\'agente."},"instructButton":"ISTRUISCIMI","tryMeButton":"INIZIAMO","resumeButton":"RIPRENDI","chatHistory":"Cronologia chat","chatHistoryDescription":"Mostra la cronologia chat con questo agente","loadingChatHistory":"Caricamento cronologia chat...","noChatHistoryAvailable":"Nessuna cronologia chat disponibile","noResultsFound":"Nessun risultato trovato per \\"{{searchText}}\\"","searchInChatHistory":"Cerca nelle conversazioni","filters":"Filtri","latestFirst":"Più recenti prima","oldestFirst":"Più vecchi prima","exportChat":"Esporta Chat","exportChatHistory":"Esporta la cronologia chat","exportChatHistoryMessage":"Vuoi esportare la cronologia chat?","chatBotButtonText":"CLICCA QUI PER APRIRE LA CHAT","conversationStartedLabel":"Conversazione avvenuta il","settingsHeaderLabel":"Configura qui se vuoi impostare una conversazione continua. Setta i secondi di silenzio prima dell\'invio.","continuousSpeechLabel":"Conversazione continua","continuousSpeechDisabled":"Conversazione continua disabilitata poichè l\'agente è in modalità muta","holdToSpeak":"Tieni premuto per parlare","releaseToEndListening":"Rilascia per smettere di parlare","pressAndHoldToSpeak":"Premi e tieni premuto per parlare","microphoneMode":"Modalità microfono","hideEmissionsLabel":"Nascondi testo emesso dall\'agente","showMessageConsumptionLabel":"Mostra consumo per messaggio","secondsLabel":"Secondi","controlsPosition":"Posizione dei controlli","avatarControls":"Controlli Avatar","height":"Altezza","depth":"Profondità","avatarType":"Tipo Avatar","blob":"Blob","avatar3d":"Avatar 3D","zoomed":"Vicino","normal":"Normale","far":"Lontano","suggestions":"Usa le frecce per regolare l\'altezza dell\'avatar\\nUsa +/- per regolare la profondità dell\'avatar","enablePositionControls":"Abilita controlli posizione","tryMeHeaderLabel":"PROVA","unknownPosition":"Posizione sconosciuta","fieldPlace":"Indica la posizione (es \'Milano\')","showMapLinkFor":"Visualizza sulla mappa la posizione","useMyPosition":"Usa la mia posizione","myPosition":"Posizione corrente","updatingPosition":"Aggiorno la posizione...","placeNotFound":"Luogo sconosciuto!","requirePositionHelp":"Per parlare con {{name}} devi decidere se fornire o meno la tua posizione. Questo perchè diverse risposte che potrà fornirti potrebbero dipendere da dove ti trovi.","dontWantToProvidePosition":"Continua senza posizione","requireLoginHelp":"Per parlare con {{name}} devi prima accedere con il tuo account.","skipLocationTitle":"Non verrà salvata alcuna posizione sulla mappa.","locationSaved":"La tua posizione è stata salvata.","locationSavedWithPlace":"La tua posizione è stata salvata: {{place}}","locationSkippedConfirm":"Continuerai senza condividere la posizione.","placeSelected":"Luogo selezionato: {{place}}","locationPermissionDenied":"Accesso alla posizione negato. Abilitalo nelle impostazioni del browser oppure scegli un luogo sulla mappa.","locationUnavailable":"Non è stato possibile rilevare la tua posizione. Riprova o cerca un luogo.","locationRequestTimedOut":"Richiesta di posizione scaduta. Riprova o cerca un luogo.","locationErrorGeneric":"Si è verificato un problema durante il recupero della posizione.","attachmentsLabel":"Arricchisci il tuo messaggio","image":"immagine","images":"immagini","file":"file","files":"file","function":"funzione","functions":"funzioni","iWantToTalkToIn":"Voglio parlare con {{name}} in","chatLanguageLabel":"Scegli la lingua della conversazione","chatResumed":"Chat ripresa con successo.","message":"messaggio","messages":"messaggi","page":"Pagina {{current}} di {{total}}","downloadThisConversation":"Scarica questa conversazione","downloadAllConversations":"Scarica tutte le conversazioni","conversationsCount_one":"{{count}} conversazione","conversationsCount_other":"{{count}} conversazioni","shownOfTotal":"Mostrate {{shown}} di {{total}}","loadMore":"Carica altre","backToConversationList":"Torna all\'elenco delle conversazioni","thisWeek":"Questa settimana"},"chatResume":{"resume":"Riprendi la conversazione"},"artifact":{"close":"Chiudi","size":"Dimensione","updated":"aggiornato","updateFailed":"Aggiornamento non applicato","updateFailedHint":"Il patch non corrisponde al contenuto attuale. Chiedi di riscrivere l\'artifact.","generated":"Generato","download":"Scarica","print":"Stampa","external":"Apri in una nuova finestra","type":"Tipo","fullscreen":"Schermo intero","exitFullscreen":"Esci da schermo intero","copy":"Copia","generatedAt":"Generato il","open":"Apri","code":"Codice","source":"Sorgente","preview":"Anteprima","resizeHandle":"Ridimensiona il pannello artifact","copied":"Copiato!","error":"Errore","generatingPdf":"Generazione PDF...","copying":"Copia in corso...","moreCopyOptions":"Altre opzioni di copia","copyAs":"Copia come","downloadAsMarkdown":"Scarica come Markdown","downloadRawMarkdownText":"Scarica testo markdown grezzo","downloadAsPdf":"Scarica come PDF","exportAsPdfDocument":"Esporta come documento PDF","downloadAsHtml":"Scarica come HTML","downloadFormattedHtml":"Scarica HTML formattato","viewMode":"Modalità Visualizzazione","codeMode":"Modalità Codice","refresh":"Aggiorna","share":"Condividi","downloadAsJson":"Scarica come JSON","downloadJsonData":"Scarica dati JSON","downloadAsPng":"Scarica come PNG","downloadPngImage":"Scarica immagine PNG","downloadAsJpeg":"Scarica come JPEG","downloadJpegImage":"Scarica immagine JPEG","downloadAsGif":"Scarica come GIF","downloadGifImage":"Scarica immagine GIF","downloadAsWebp":"Scarica come WebP","downloadWebpImage":"Scarica immagine WebP","copyAsSvg":"Copia come SVG","copySvgSourceCode":"Copia codice sorgente SVG","copyAsPlainText":"Copia come testo normale","copyAsText":"Copia come testo","copyAsLanguage":"Copia come {{language}}","copyLanguageCode":"Copia codice {{language}}","copyWithoutSyntaxHighlighting":"Copia senza evidenziazione sintassi","copyTextContent":"Copia contenuto testo","pdfExportNotSupported":"L\'esportazione PDF non è supportata in questo browser","popupBlocked":"Popup bloccato! Abilita i popup per stampare.","safariPdfInstructions":"Esportazione PDF aperta in una nuova finestra. Usa Cmd+P (Mac) o Ctrl+P (Windows) per stampare e salvare come PDF."},"media":{"title":"Titolo","editAttributes":"Modifica attributi media","uploadMimeTypeNotAllowed":"Il tipo di file non è permesso","uploadSizeLimitMessage":"Il file caricato è troppo grande (max {{size}}MB)","uploadWrongResolutionMessage":"La risoluzione deve essere {{width}}x{{height}} pixel","memoriNameAlreadyUsed":"Hai già un Agente con questo nome","uploadHelperImages":"Caricare un file con estensione png, jpg, jpeg o gif e con dimensione massima di {{size}}MB","uploadHelper":"Caricare un file di dimensione massima di {{size}}MB","uploadError":"Errore nel caricamento","square":"quadrato","scaleRatio":"Proporzioni","addMediaLabel":"Aggiungi media","insertThisMediaMsg":"Inserisci questi media","mediaUploadMessage":"Clicca per caricare un nuovo media","addLinkLabel":"Aggiungi un link","linkKey":"URL","linkValue":"Titolo link","insertThisLink":"Inserisci un link a {{url}} con titolo {{title}}"},"upload":{"loginRequired":"Login richiesto","pastedText":"testo-copiato","uploadNotification":"Upload Fallito","loginRequiredDescription":"Per caricare immagini, devi prima accedere","uploadFiles":"Carica file (drag and drop)","uploadFilesOrImages":"Carica file o immagini","uploadFilesWithShortcut":"{{shortcut}}+O per aprire il selettore file","uploadImages":"Carica immagini","lastDocumentSlot":"Carica ultimo documento","uploadDocuments":"Carica documenti","maxDocumentsReached":"Puoi caricare fino a {{max}} documenti","replace":"Sostituisci documento","maxImagesReached":"Puoi caricare fino a {{max}} immagini","apiClientNotConfigured":"Client API non configurato correttamente per il caricamento di media","fileReadingFailed":"Lettura del file fallita","uploadFailed":"Caricamento fallito","uploadSuccess":"Caricamento riuscito","remaining":"rimanenti","maxReached":"Limite raggiunto","titleImage":"Aggiungi un titolo all\'immagine","titleImageUpload":"Carica immagini","titleHelp":"Aggiungi un titolo descrittivo per aiutare l\'AI a fornire risposte più appropriate.","titlePlaceholder":"Inserisci il titolo dell\'immagine","uploadSuccessDescription":"Il file è stato caricato con successo","partialUpload":"Solo {{uploaded}} immagini su {{total}} immagini saranno caricate. Massimo {{max}} immagini consentite.","cancel":"Annulla","dragAndDropFiles":"Trascina qui i file per aggiungerli alla chat","pasteMaxAttachmentsReached":"Massimo {{max}} allegati. Rimuovine uno per aggiungere questo come file.","pasteContentTooLong":"Il testo incollato è troppo lungo (max {{size}}KB). Accorcialo o dividilo.","pasteContentExceedsLimit":"Il contenuto incollato supera il limite di dimensione. Prova ad accorciare il testo o a dividerlo in parti più piccole.","pasteAddedAsAttachment":"Testo incollato aggiunto come allegato","filesNotAddedMaxAllowed":"{{count}} file non aggiunto/i (massimo {{max}} file consentiti).","documentsNotAddedMaxAllowed":"{{count}} documento/i non aggiunto/i (massimo {{max}} file consentiti).","imagesNotAddedMaxAllowed":"{{count}} immagine/i non aggiunta/e (massimo {{max}} file consentiti).","documentsNotAddedContextSize":"{{count}} documento/i non aggiunto/i (limite dimensione contesto).","partialAssetUploadWarning":"Alcuni link del file non sono stati caricati, ma il documento è stato aggiunto comunque.","anonymousRetentionNotice":"Nota: i file caricati vengono conservati per massimo 24 ore."},"gamification":{"level":"Livello","points":"punti","memoriReachedLevel":"è diventato più evoluto ed ha raggiunto il livello","levelGoToStatistics":"{{memori}} è al livello {{level}} con {{points}} punti. Clicca per andare alle statistiche.","congratulationsNewLevel":"Congratulazioni, hai raggiunto un nuovo livello!","congratulationsNewLevelDescription":"Il tuo agente è diventato più evoluto con {{points}} punti, guarda le","statistics":"statistiche"},"login":{"login":"Accedi","title":"Accedi al tuo account","loggingIn":"Accesso in corso…","logout":"Esci","userNameRequired":"Il nome utente è obbligatorio","userName":"Nome utente","userNamePlaceholder":"Inserisci il nome utente","user":"Utente","loggedDrawerTitle":"Ciao, {{name}}!","loginDrawerTitle":"Accedi","signupDrawerTitle":"Registrati","newUserSignUp":"Sei un nuovo utente?","signUp":"Registrati!","alreadyHaveAnAccount":"Hai già un account?","backToLogin":"Torna al login","registrationDisabled":"La registrazione è disabilitata.","contactAdmin":"Contatta l\'amministratore per richiedere l\'accesso","userNameOrEmail":"Nome utente o email","email":"Email","emailFormatError":"Per favore, inserisci una mail valida","username":"Nome utente","usernameContainsReservedWord":"Il nome utente contiene una parola riservata, per favore cambia il nome utente","usernameFormatError":"Il nome utente deve essere lungo almeno 3 caratteri e può contenere solo lettere, numeri e _","otpCode":"Codice di verifica","resendVerificationCode":"Invia di nuovo","resentVerificationCode":"Codice di verifica inviato! Controlla la tua mail.","welcomeTitle":"Bentornato","welcomeDescription":"Inserisci il tuo codice di verifica a 4 cifre per continuare al tuo account","otpTitle":"Inserisci il codice di verifica","otpDescription":"Inserisci il codice a 4 cifre che hai generato nel tuo account","otpStep1":"Clicca il pulsante qui sotto per aprire il tuo account","otpStep2":"Genera un codice di verifica a 4 cifre (valido per 5 minuti)","otpStep3":"Torna qui e inserisci il codice","startOtpLogin":"Inizia verifica","generateOtp":"Genera codice","otpTimer":"Il codice scade tra {{time}}","otpInvalidFormat":"Inserisci un codice valido a 4 cifre","otpInvalid":"Codice di verifica non valido","otpError":"Errore nella validazione del codice. Riprova.","otpSuccess":"Login effettuato con successo!","otpEmailTitle":"Inserisci la tua email","otpEmailDescription":"Inserisci il tuo indirizzo email per ricevere un codice di verifica","otpCodeDescription":"Inserisci il codice a 4 cifre inviato a {{email}}","emailPlaceholder":"Inserisci la tua email","sendOtp":"Invia il codice","resendOtp":"Reinvia","resendOtpIn":"Reinvia tra {{seconds}}s","resendOtpPrompt":"Non è arrivato? Reinvia tra {{seconds}} s","resendOtpQuestion":"Non è arrivato?","resending":"Invio in corso...","backToEmail":"Torna all\'email","editEmail":"Modifica","otpSentToPrefix":"Abbiamo mandato un codice di 4 cifre a","otpCodeShort":"Codice","loginBenefitLine1":"{{memoriName}} può mostrarti la cronologia chat, che può essere riprendibile in qualsiasi momento.","loginBenefit":"{{memoriName}} può mostrarti la cronologia chat, che può essere riprendibile in qualsiasi momento.","passwordlessHint":"Ti mandiamo un codice di 4 cifre. Nessuna password da ricordare.","defaultAgentName":"l\'agente","otpSent":"Codice di verifica inviato!","otpResent":"Codice reinviato con successo!","otpSendError":"Errore nell\'invio del codice. Riprova.","emailRequired":"Email richiesta","emailInvalid":"Inserisci un indirizzo email valido","userNotFound":"Utente non trovato","otpNotFound":"Codice di verifica non trovato","otpExpired":"Il codice di verifica è scaduto","otpMissing":"Il codice di verifica è richiesto","otpAttemptsExceeded":"Troppi tentativi. Richiedi un nuovo codice di verifica.","otpSuccessMessage":"Verifica completata! Reindirizzamento...","otpSuccessDescription":"Il tuo account è stato verificato con successo. Sarai reindirizzato a breve.","otpHelp":"Inserisci il codice a 4 cifre dalla tua email","emailHelp":"Ti invieremo un codice di verifica","userFetchError":"Errore nel caricamento dei dati utente. Riprova.","otpStep1Title":"Inserisci Email","otpStep2Title":"Controlla Email","otpStep3Title":"Inserisci Codice","featureFast":"Veloce","featureSecure":"Sicuro","featureMobile":"Mobile","quickActions":"Azioni rapide","verified":"Verificato","termsStatus":"Stato dei termini","enabled":"Abilitato","disabled":"Disabilitato","advancedFeatures":"Funzionalità avanzate","help":"Aiuto","editProfile":"Modifica profilo","notifications":"Notifiche","logoutConfirm":"Sei sicuro di voler uscire?","comingSoon":"Presto disponibile!","accountOverview":"Panoramica account","notSet":"Non impostato","accepted":"Accettato","password":"Password","newPassword":"Nuova password","confirmPassword":"Conferma la password","currentPassword":"Password attuale","passwordMatchingError":"Le password non coincidono.","passwordFormatError":"La password deve essere lunga almeno 8 caratteri e contenere almeno un numero, una lettera maiuscola, una minuscola e un simbolo","pwdWeak":"Debole","pwdAcceptable":"Accettabile","pwdStrong":"Forte","mustChangePassword":"Devi cambiare la password","passwordChange":"Cambio password","emailChange":"Cambio email","avatarChange":"Cambio avatar","avatarUploadSuccess":"Immagine del profilo aggiornata.","underage":"Devi avere almeno {{age}} anni per registrarti.","optional":"opzionale","birthDate":"Data di nascita","birthDatePlaceholder":"GG/MM/AAAA","birthDateHelper":"Ti chiediamo la data di nascita esclusivamente per abilitare o disabilitare le funzionalità che hanno restrizioni in base all\'età","missingData":"Informazioni mancanti","missingDataHelper":"Sappiamo che questo è un po\' fastidioso, ma abbiamo bisogno di alcune informazioni in più per completare la tua registrazione.","goToAccountToChangeYourPreferences":"Puoi cambiare la tua scelta in qualsiasi momento dalla tua pagina Account.","deepThoughtExplaination":"Pensiero Profondo è una funzionalità avanzata delle AI che ti consentirà di poter sfruttare a pieno le tue conversazioni mantenendo memoria delle stesse. Le AI con Pensiero Profondo possono darti informazioni adattandosi a te e alle cose che condividerete insieme. Consenti all\'autore dell\'agente di contattarti per offerte commerciali riguardanti prodotti su cui hai espresso interesse.","tnCAndPPAcceptedHelper":"Dall\'ultimo accesso, i T&C e l\'Informativa sulla privacy sono stati modificati. Si prega di accettarle, altrimenti non sarà possibile apportare modifiche ai propri gemelli. Puoi sempre cancellare il tuo account nella pagina del tuo profilo utente.","privacyLabel":"Ho letto e accettato l\'","privacyAndCookiePolicy":"informativa sui cookie e sulla privacy","and":"e","termsOfService":"i termini del servizio","pAndCUAccepted":"Accetto le condizioni di utilizzo relative a Pensiero Profondo","editAccount":"Modifica account","save":"Salva","successfullyLoggedIn":"{{username}} ha effettuato l\'accesso con successo"},"chatLogs":{"llm":"LLM","model":"Modello","provider":"Provider","tokens":"Token","input":"Input","output":"Output","cacheRead":"Cache read","cacheWrite":"Cache write","duration":"Durata","energy":"Energia","co2":"CO2","water":"Acqua","usageBadgesHint":"Clicca uno di questi pulsanti per mostrare maggiori informazioni","totalChatConsumptionTitle":"Consumo Totale Chat","modelUsage":"Utilizzo del modello","environmentalImpact":"Impatto ambientale","impactComparisonUnavailable":"Confronto indicativo non disponibile.","impactComparisonEnergy":"Confronto indicativo: circa quanto tenere accesa una lampadina LED da 10 W per {{duration}}.","impactComparisonCo2":"Confronto indicativo: circa {{distance}} percorsi in auto a benzina media.","impactComparisonWater":"Confronto indicativo: circa {{count}} gocce d\'acqua.","energyImpactDescription":"Questo valore stima l\'energia elettrica necessaria per generare la risposta del modello. Serve a confrontare prompt, modelli e strategie diverse anche quando il singolo messaggio ha un impatto molto piccolo.","co2ImpactDescription":"La CO2 equivalente rappresenta l\'impatto climatico stimato del messaggio. Tradurre il consumo in emissioni aiuta a capire quanto una risposta AI pesa sull\'ambiente in termini comparabili.","waterImpactDescription":"Questo indicatore mostra l\'impronta idrica stimata associata all\'elaborazione del messaggio. Include l\'acqua impiegata indirettamente nell\'energia e nell\'infrastruttura che supportano il calcolo.","approximateValuesTooltip":"Questi valori sono approssimativi.","atLeast":"Almeno {{count}} messaggi","anyMessage":"Qualunque messaggio","atLeast1":"Almeno 1 messaggio","atLeast2":"Almeno 2 messaggi","atLeast3":"Almeno 3 messaggi","atLeast5":"Almeno 5 messaggi","atLeast10":"Almeno 10 messaggi","atLeast15":"Almeno 15 messaggi","atLeast20":"Almeno 20 messaggi","customMinimumMessages":"Personalizza il numero di messaggi"},"success":"Operazione andata a buon fine","Error":"Errore","internal server error":"Ops, scusa... qualcosa è andato storto nel server","error":"Errore","error.loading":"Errore durante il caricamento dei contenuti.","error.notFound":"Ops, non abbiamo trovato ciò che cercavi.","error.generic":"Ops, qualcosa è andato storto.","error.serverNotResponding":"Stiamo facendo manutenzione o rilasciando aggiornamenti. Riprova più tardi.","error.unprocessableEntity":"Errore durante il salvataggio dei dati. Ricontrolla i dati inseriti.","error.goBackTo":"Prova a tornare alla","error.reloadPage":"Ricarica la pagina","error.tryAgain":"Riprova","error.unauthorized":"Non sei autorizzato a visualizzare questo contenuto.","errors":{"TENANT_NOT_FOUND":"Tenant non trovato","TENANT_REGISTRATION_DISABLED":"La registrazione su questa piattaforma è disabilitata","TENANT_MISSING_NAME":"Tenant: nome mancante","TENANT_MAX_USERS_REACHED":"Numero massimo di utenti raggiunto","TENANT_MAX_ADMINS_REACHED":"Numero massimo di utenti amministratori raggiunto","TENANT_ALREADY_EXISTS":"Tenant già esistente","TENANT_MISSING_DESCRIPTION":"Tenant: descrizione mancante","TENANT_CANT_SET_COMPLETION_PROVIDER":"Tenant: non abilitato a gestire il provider di completamento","TENANT_INVALID_TYPE":"Tenant: tipo non valido","USER_NOT_CONFIRMED":"Utente ancora non confermato","USER_NOT_FOUND":"Utente non trovato","USER_OR_PASSWORD_INVALID":"Utente o password non validi","USER_MUST_CHANGE_PASSWORD":"Devi cambiare la password","USER_MUST_ENTER_VERIFICATION_CODE":"Devi inserire il codice di verifica","USER_MISSING_TENANT":"Utente: tenant mancante","USER_MISSING_NAME":"Utente: nome mancante","USER_MISSING_PASSWORD":"Utente: password mancante","USER_MISSING_EMAIL":"Utente: email mancante","USER_MISSING_VERIFICATION_CODE":"Utente: codice di verifica mancante","USER_NAME_ALREADY_USED":"Nome utente già in uso","USER_PASSWORD_NOT_CONFORMING_TO_POLICY":"La password non rispetta le regole di sicurezza","USER_EMAIL_ALREADY_USED":"Email già in uso","USER_EMAIL_INVALID":"Email non valida","USER_VERIFICATION_CODE_INVALID":"Codice di verifica non valido","USER_MISSING_NAME_OR_EMAIL":"Nome utente o email mancante","USER_NAME_INVALID":"Nome utente non valido","USER_HAS_ONE_OR_MORE_MEMORI":"L\'utente ha uno o più Agenti","USER_MISSING_NEW_PASSWORD":"Utente: nuova password mancante","USER_NOTHING_TO_DO":"Niente da fare","USER_CANT_CREATE_MEMORI":"Utente non abilitato a creare Agenti","USER_MAX_MEMORI_REACHED":"Massimo numero di Agenti raggiunto","USER_TOO_MANY_ATTEMPTS":"Troppi tentativi","USER_MUST_ACCEPT_TNC_AND_PP":"Devi accettare i termini e le condizioni","USER_BIRTH_DATE_CANT_BE_CHANGED":"Data di nascita non può essere cambiata","USER_CANT_SET_COMPLETION_PROVIDER":"Utente: non abilitato a gestire il provider di completamento","USER_CANT_ENABLE_DEEP_THOUGHT":"Utente: non abilitato a gestire Pensiero Profondo","USER_CANT_ENABLE_DCM_INTEGRATION":"Utente: non abilitato a gestire l\'integrazione con DCM","USER_CANT_ENABLE_CHAINING_OR_BOARD_OF_EXPERTS":"Utente: non abilitato a gestire la concatenazione o il gruppo di esperti","USER_CREATION_BILLING_DENIED_PERMISSION":"Non hai crediti sufficienti per creare un agente","USER_HAS_ONE_OR_MORE_COMPLETION_CONFIGS":"L\'utente ha una o più configurazioni completions","USER_CANT_BE_DELETED":"Utente non può essere cancellato","USER_ORDER_BY_INVALID":"Ordine non valido","MEMORI_NOT_FOUND":"Agente non trovato","MEMORI_NOT_ACCESSIBLE":"Agente non accessibile","MEMORI_ONLY_OWNER_CAN_CHANGE_GIVER_TAG_AND_PIN":"Solo il proprietario può cambiare il tag e il pin","SESSION_NOT_FOUND":"Sessione non trovata","SESSION_IS_NOT_ADMINISTRATIVE":"Sessione non amministrativa","SESSION_EXPIRED":"Sessione scaduta","speechMissingSession":"La voce richiede una sessione attiva","speechInvalidSession":"Sessione non valida","speechTenantMismatch":"La voce non è disponibile su questo sito","speechRateLimited":"Troppe richieste vocali. Attendi un momento e riprova.","SESSION_OTP_NOT_FOUND":"Codice di verifica non trovato","SESSION_OTP_EXPIRED":"Il codice di verifica è scaduto","SESSION_OTP_INVALID":"Codice di verifica non valido","SESSION_OTP_ATTEMPTS_EXCEEDED":"Troppi tentativi. Richiedi un nuovo codice di verifica.","MEMORI_MISSING_CONFIGURATION":"Agente: configurazione mancante","MEMORI_CONFIGURATION_NOT_FOUND":"Agente: configurazione non trovata","MEMORI_INVALID_PRIVACY_TYPE":"Agente: tipo di privacy non valido","MEMORI_MISSING_PASSWORD":"Agente: password mancante","MEMORI_INVALID_TOTAL_NUMBER_OF_RECOVERY_TOKENS":"Agente: numero totale di token di recupero non valido","MEMORI_INVALID_MINIMUM_NUMBER_OF_RECOVERY_TOKENS":"Agente: numero minimo di token di recupero non valido","MEMORI_INVALID_VOICE_TYPE":"Agente: tipo di voce non valido","MEMORI_MISSING_NAME":"Agente: nome mancante","MEMORI_MISSING_PASSWORD_OR_RECOVERY_TOKENS":"Agente: password o token di recupero mancanti","MEMORI_INVALID_ID":"Agente: ID non valido","MEMORI_NAME_ALREADY_USED":"Nome Agente già in uso","MEMORI_INVALID_PIN":"Agente: PIN non valido","MEMORI_GIVER_TAG_PIN_CHANGE_REQUIRES_SEPARATE_OPERATION":"Agente: cambio TAG e PIN richiedono operazioni separate","MEMORI_NO_PASSWORD_WHEN_PUBLIC":"Agente: password non richiesta su agente pubblico","MEMORI_DEEP_THOUGHT_REQUIRES_COMPLETIONS":"Pensiero Profondo richiede l\'abilitazione delle completions","MEMORI_BOARD_OF_EXPERTS_REQUIRES_COMPLETIONS":"Il gruppo di esperti richiede l\'abilitazione delle completions","MEMORI_INVALID_COMPLETION_CONFIG":"Agente: configurazione completions non valida","MEMORI_MACRO_FUNCTIONS_REQUIRES_COMPLETIONS":"Macro funzioni richiede l\'abilitazione delle completions","MEMORI_BLOCKING_DATE_MISSING_OR_WRONG":"Agente: data di blocco mancante o non valida","MEMORI_LIST_FILTER_NOT_SPECIFIED":"Agente: filtro non specificato","MEMORI_TRANSFER_MISSING_DESTINATION_USER":"Trasferimento: utente di destinazione mancante","MEMORI_TRANSFER_INVALID_DESTINATION_USER_ID":"Trasferimento: ID utente di destinazione non valido","MEMORI_TRANSFER_DESTINATION_USER_DATA_INCONSISTENT":"Trasferimento: dati utente di destinazione non validi","MEMORI_TRANSFER_NOTHING_TO_DO":"Trasferimento: alcuna operazione da fare","MEMORI_CONFIGURATION_CANT_BE_CHANGED":"Agente: la configurazione non può essere modificata","MEMORI_MISSING_NEW_PASSWORD":"Agente: nuova password mancante","MEMORI_SESSIONS_INVALID_DATE_FROM_FORMAT":"Formato non valido data a partire da","MEMORI_SESSIONS_INVALID_DATE_TO_FORMAT":"Formato non valido data fino a","MEMORI_SESSION_NOT_FOUND":"Sessione non trovata","MEMORI_SESSION_DOESNT_ACCEPT_MEDIA":"Sessione non accetta media","MEMORI_FEATURE_REQUIRES_SUBSCRIPTION":"Agente: funzionalità richiede un abbonamento","INTEGRATION_NOT_FOUND":"Integrazione non trovata","INTEGRATION_INVALID_TYPE":"Tipo integrazione non valido","INTEGRATION_ALREADY_EXISTS":"Integrazione già esistente","INTEGRATION_MEMORI_IS_NOT_PUBLIC":"Agenti non pubblici non possono essere integrati","INTEGRATION_MISSING_INVOCATION_TEXT":"Integrazione: testo di invocazione mancante","INTEGRATION_MISSING_DEVICE_EMAILS":"Integrazione: email del dispositivo mancante","INTEGRATION_MEMORI_IS_EMPTY":"Agenti vuoti non possono essere integrati","INTEGRATION_MISSING_PRIVACY_POLICY":"Integrazione: privacy policy mancante","INTEGRATION_MISSING_CATEGORY":"Categoria integrazione mancante","INTEGRATION_MISSING_DESCRIPTION":"Descrizione integrazione mancante","INTEGRATION_INVALID_INVOCATION_TEXT":"Testo di invocazione non valido","INTEGRATION_GOOGLE_NO_MORE_AVAILABLE":"Google Home non più disponibile","UPLOAD_REQUIRES_MULTIPART_ENCODING":"L\'upload richiede l\'encoding multipart","UPLOAD_MISSING_CONTENT_TYPE_BOUNDARY":"Upload: manca il content type boundary","UPLOAD_MAX_LENGTH_EXCEEDED":"Upload: dimensione massima superata","UPLOAD_FILE_IS_EMPTY":"Upload: file vuoto","UPLOAD_INVALID_FILE_TYPE_OR_SIGNATURE":"Upload: tipo di file o firma non validi","UPLOAD_MISSING_FILE_NAME":"Upload: nome file mancante","UPLOAD_INVALID_MEMORY_ID":"Upload: ID contenuto non valido","UPLOAD_MISSING_FILE_CONTENT":"Upload: contenuto file mancante","ASSET_NOT_FOUND":"Asset non trovato","ASSET_NOT_ACCESSIBLE":"Asset non accessibile","ASSET_MISSING_SESSION_ID":"Asset: ID sessione mancante","ASSET_INVALID_FILE_NAME":"Asset: nome file non valido","ASSET_MALWARE_SCAN_THREATS_FOUND":"Asset: la scansione ha trovato minaccia malware","INVITATION_NOT_FOUND":"Invito non trovato","INVITATION_NOT_ACCESSIBLE":"Invito non accessibile","INVITATION_ALREADY_ACCEPTED":"Invito già accettato","INVITATION_ALREADY_REJECTED":"Invito già rifiutato","INVITATION_MISSING_DESTINATION_EMAIL":"Invito: email di destinazione mancante","INVITATION_DESTINATION_EMAIL_INVALID":"Invito: email di destinazione non valida","INVITATION_MISSING_TAG":"Invito: tag mancante","INVITATION_MISSING_PIN":"Invito: PIN mancante","INVITATION_INVALID_PIN":"Invito: PIN non valido","INVITATION_INVALID_TYPE":"Invito: tipo non valido","INVITATION_MISSING_DESTINATION_NAME":"Invito: nome destinatario mancante","INVITATION_TAG_PIN_CANT_BE_CHANGED":"Invito: tag e pin non possono essere cambiati","INVITATION_CANT_BE_CHANGED":"Invito: non può essere modificato","ACTIONLOG_INVALID_USER_ID":"ID utente non valido","ACTIONLOG_INVALID_DATE_FROM_FORMAT":"Data a partire da: formato non valido","ACTIONLOG_INVALID_DATE_TO_FORMAT":"Data fino a: formato non valido","ACTIONLOG_INVALID_MEMORI_ID":"ID agente non valido","CONSUMPTIONLOG_INVALID_TYPE":"Tipo di log non valido","CONSUMPTIONLOG_INVALID_DATE_FROM_FORMAT":"Data a partire da: formato non valido","CONSUMPTIONLOG_INVALID_DATE_TO_FORMAT":"Data fino a: formato non valido","CONSUMPTIONLOG_INVALID_USER_ID":"ID utente non valido","CONSUMPTIONLOG_INVALID_MEMORI_ID":"Memori ID non valido","NOTIFICATIONPREFS_INVALID_CHATLOG_EXTRACTION_PERIOD":"Notifiche: Periodo di estrazione chatlog non valido","BROADCAST_NOT_ALLOWED":"Broadcast non consentito","INVALID_NOTIFICATION_TYPE":"Tipo notifica non valido","NOTIFICATION_NOT_FOUND":"Notifica non trovata","INVALID_NOTIFICATION_FILTER":"Filtro notifica non valido","INVALID_NOTIFICATION_PERIOD":"Periodo notifica non valido","PROCESS_INVALID_TYPE":"Tipo di processo non valido","PROCESS_ALREADY_RUNNING":"Processo già in esecuzione","PROCESS_NOT_FOUND":"Processo non trovato","IMPORTCSV_MISSING_ROWS":"Importazione CSV: righe mancanti","IMPORTCSV_MISSING_CSV":"Importazione CSV: CSV mancante","IMPORTCSV_MISSING_SEPARATOR":"Importazione CSV: separatore mancante","IMPORTCSV_INVALID_SEPARATOR":"Importazione CSV: separatore non valido","IMPORTCSV_MISSING_HEADERS":"Importazione CSV: intestazioni mancanti","IMPORTCSV_MISSING_TITLE_VARIANT_SEPARATOR":"Importazione CSV: separatore varianti titolo mancante","IMPORTCSV_INVALID_RECEIVER_ID":"Importazione CSV: ID receiver non valido","IMPORTCSV_INVALID_MEDIA_LINK":"Importazione CSV: link media non valido","IMPORTCSV_INVALID_LINK_TITLE_HANDLING":"Importazione CSV: titolo link non valido","IMPORTCSV_UNDETECTABLE_CHAR_ENCODING":"Importazione CSV: encoding caratteri non rilevabile","IMPORTCSV_CANT_IMPORT_TO_SECRET_MEMORI":"Importazione CSV: impossibile importare in agenti segreti","IMPORTTXT_MISSING_ROWS":"Importazione TXT: righe mancanti","IMPORTTXT_INVALID_GRANULARITY":"Importazione TXT: granularità non valida","IMPORTTXT_INVALID_RECEIVER_ID":"Importazione TXT: ID receiver non valido","IMPORTTXT_INVALID_MEDIA_LINK":"Importazione TXT: link media non valido","IMPORTTXT_INVALID_LINK_TITLE_HANDLING":"Importazione TXT: titolo link non valido","IMPORTTXT_UNDETECTABLE_CHAR_ENCODING":"Importazione TXT: encoding caratteri non rilevabile","IMPORTTXT_CANT_IMPORT_TO_SECRET_MEMORI":"Importazione TXT: impossibile importare in agenti segreti","IMPORTTXT_IMPORT_LIMIT_EXCEEDED":"Importazione TXT: limite importazione superato","IMPORTTXT_IMPORT_ON_GPT4_REQUIRES_API_KEY":"Importazione TXT: importazione su GPT-4 richiede API key","IMPORTTXT_IMPORT_REQUIRES_PAYING":"Importazione TXT: importazione richiede un piano a pagamento","IMPORTTXT_BILLING_DENIED_PERMISSION":"Importazione TXT: non hai crediti sufficienti per l\'operazione","IMPORT_MISSING_ROWS":"Importazione: righe mancanti","IMPORT_CANT_IMPORT_TO_SECRET_MEMORI":"Importazione: impossibile importare in agenti segreti","IMPORTMEMORI_INVALID_MEMORI_SPECS":"Importazione MEMORI: specifiche agente non valide","IMPORT_MISSING_JSONL":"Importazione MEMORI: JSONL mancante","IMPORTMEMORI_INVALID_SPECS":"Importazione MEMORI: specifiche non valide","EXPORT_MISSING_PASSWORD":"Esportazione: password mancante","EXPORTCSV_MISSING_CSV_SPECS":"Esportazione CSV: specifiche CSV mancanti","EXPORTCSV_MISSING_SEPARATOR":"Esportazione CSV: separatore mancante","EXPORTCSV_INVALID_SEPARATOR":"Esportazione CSV: separatore non valido","EXPORTCSV_MISSING_TITLE_VARIANT_SEPARATOR":"Esportazione CSV: separatore varianti titolo mancante","EXPORTCSV_MISSING_NEW_LINE_CHAR":"Esportazione CSV: carattere di nuova riga mancante","EXPORTCSV_INVALID_NEW_LINE_CHAR":"Esportazione CSV: carattere di nuova riga non valido","EXPORTCSV_MISSING_PASSWORD":"Esportazione CSV: password mancante","EXPORTJSONL_MISSING_JSONL_SPECS":"Esportazione JSONL: specifiche JSONL mancanti","EXPORTJSONL_MISSING_PLATFORM":"Esportazione JSONL: piattaforma mancante","EXPORTJSONL_INVALID_PLATFORM":"Esportazione JSONL: piattaforma non valida","EXPORTJSONL_MISSING_PASSWORD":"Esportazione JSONL: password mancante","EXPORTJSONL_EXPORT_REQUIRES_PAYING":"Esportazione JSONL: esportazione richiede un piano a pagamento","ANALYSIS_MISSING_QUERY":"Analisi: query mancante","ANALYSIS_CANT_ANALYZE_SECRET_MEMORI":"Analisi: impossibile analizzare agenti segreti","ANALYSIS_USER_QUERY_MATCH_REQUIRES_DEEP_THOUGHT":"Analisi: corrispondenza query utente richiede Pensiero Profondo","BADGE_ASSIGNMENT_WRONG_OR_MISSING_CREDENTIALS":"Assegnazione badge: credenziali errate o mancanti","BADGE_ASSIGNMENT_MISSING_REF_ID":"Assegnazione badge: ID ref mancante","BADGE_ASSIGNMENT_OUTCOME_NOT_FOUND":"Assegnazione badge: esito non trovato","BADGE_ASSIGNMENT_MISSING_ASSERTION_URL":"Assegnazione badge: URL di asserzione mancante","BADGE_ASSIGNMENT_MISSING_BADGE_URL":"Assegnazione badge: URL badge mancante","BADGE_ASSIGNMENT_MISSING_ISSUER_URL":"Assegnazione badge: URL issuer mancante","BADGE_ASSIGNMENT_INVALID_URL":"Assegnazione badge: URL non valido","BADGE_ASSIGNMENT_MISSING_RECIPIENT":"Assegnazione badge: destinatario mancante","BADGE_ASSIGNMENT_UNKNOWN_RECIPIENT_TYPE":"Assegnazione badge: tipo destinatario sconosciuto","BADGE_ASSIGNMENT_MISSING_RECIPIENT_IDENTITY":"Assegnazione badge: identità destinatario mancante","BADGE_ASSIGNMENT_MISSING_RECIPIENT_HASH_TYPE":"Assegnazione badge: tipo hash destinatario mancante","BADGE_ASSIGNMENT_UNKNOWN_RECIPIENT_HASH_TYPE":"Assegnazione badge: tipo hash destinatario sconosciuto","BADGE_ASSIGNMENT_WRONG_RECIPIENT_IDENTITY":"Assegnazione badge: identità destinatario errata","BADGE_NOT_FOUND":"Badge non trovato","OUTCOME_NO_DCM_CONFIGURED":"Outcome: nessun DCM configurato","OUTCOME_USER_BADGES_DISABLED":"Outcome: badge utente disabilitati","COMPLETION_CONFIG_MISSING_NAME":"Configurazione completions: nome mancante","COMPLETION_CONFIG_MISSING_PROVIDER":"Configurazione completions: provider mancante","COMPLETION_CONFIG_MISSING_ENDPOINT":"Configurazione completions: endpoint mancante","COMPLETION_CONFIG_MISSING_API_KEY":"Configurazione completions: API key mancante","COMPLETION_CONFIG_MISSING_MODEL":"Configurazione completions: modello mancante","COMPLETION_CONFIG_NO_PURPOSE_SPECIFIED":"Configurazione completions: almeno un tipo di completions deve essere specificato","COMPLETION_CONFIG_INVALID_NAME":"Configurazione completions: nome non valido","COMPLETION_CONFIG_INVALID_PURPOSE":"Configurazione completions: tipo di completions non valido","COMPLETION_CONFIG_INVALID_ENDPOINT":"Configurazione completions: endpoint non valido","COMPLETION_CONFIG_INCONSISTENT_ENDPOINT":"Configurazione completions: endpoint incoerente","COMPLETION_CONFIG_INVALID_PROVIDER":"Configurazione completions: provider non valido","COMPLETION_CONFIG_NOT_FOUND":"Configurazione completions: non trovata","COMPLETION_CONFIG_NOT_ACCESSIBLE":"Configurazione completions: non accessibile","COMPLETION_CONFIG_NAME_RESERVED":"Configurazione completions: nome riservato","COMPLETION_CONFIG_NAME_ALREADY_EXISTS":"Configurazione completions: nome già esistente","COMPLETION_CONFIG_VISIBILITY_CHANGE_NOT_ALLOWED":"Configurazione completions: cambiamento visibilità non consentito","COMPLETION_CONFIG_MISSING_MANDATORY_PREFIX":"Configurazione completions: prefisso obbligatorio mancante","COMPLETION_CONFIG_VISIBILITY_NOT_PERMITTED":"Configurazione completions: visibilità non consentita","COMPLETION_CONFIG_USE_AS_DEFAULT_NOT_PERMITTED":"Configurazione completions: uso come default non consentito","COMPLETION_CONFIG_USE_AS_DEFAULT_REQUIRES_TENANT_VISIBILITY":"Configurazione completions: uso come default richiede visibilità tenant","COMPLETION_CONFIG_CHARGEABLE_NOT_PERMITTED":"Configurazione completions: chargeable non consentito","COMPLETION_CONFIG_INVALID_APPLY_TO":"Configurazione completions: apply to non valido","COMPLETION_CONFIG_APPLY_TO_TENANT_NOT_ALLOWED":"Configurazione completions: apply to tenant non consentito","TRUSTED_APPLICATION_NOT_FOUND":"Applicazione trusted non trovata","TRUSTED_APPLICATION_NOT_ACCESSIBLE":"Applicazione trusted non accessibile","TRUSTED_APPLICATION_NAME_REQUIRED":"Applicazione trusted: nome richiesto","TRUSTED_APPLICATION_TOKEN_REQUIRED":"Applicazione trusted: token richiesto","TRUSTED_APPLICATION_NAME_ALREADY_EXISTS":"Applicazione trusted: nome già esistente","TRUSTED_APPLICATION_INVALID_TOKEN":"Applicazione trusted: token non valido"}}');var XC={};XC=JSON.parse('{"yes":"Yes","no":"No","confirm":"Confirm","apply":"Apply","cancel":"Cancel","show":"Show","hide":"Hide","send":"Send","scrollToLatest":"Scroll to latest","scrollToContinueReading":"Scroll to continue reading","close":"Close","clearHistory":"Clear chat","clearHistoryDone":"Chat cleared.","moreInfo":"More info","back":"Back","edit":"Edit","delete":"Delete","loading":"Loading","expand":"Expand","collapse":"Collapse","expandable":{"expand":"Expand"},"fullscreenEnter":"Enter fullscreen","fullscreenExit":"Exit fullscreen","center":"Center","bottom":"Bottom","hidden":"Hidden","day":"Day","all":"All","today":"Today","yesterday":"Yesterday","placeholder":"Ask a question","last_7_days":"Last 7 days","last_30_days":"Last 30 days","month":"Month","copied":"Copied!","year":"Year","dayPlaceholder":"DD","monthPlaceholder":"MM","yearPlaceholder":"YYYY","createdAt":"Creation date","date":"Birth date","selected":"Selected","page":"page","actions":"Actions","next":"Next","previous":"Previous","copy":"Copy","copyRawCode":"Copy raw code","feedback":"Feedback","feedbackThankYou":"Thank you for your feedback.","copyFailed":"Could not copy","functionCache":"Function cache","copyToClipboard":"Copy to clipboard","showOriginalText":"Show original","showTranslatedText":"Show translation","exactPosition":"Exact position","uncertain":"Uncertain","question":"Question","nothingFound":"Nothing found","venue":"Venue","searchVenue":"Search for a place…","privacyPolicy":"Privacy policy","popularLanguages":"Popular","allLanguages":"All Languages","memoriBlockedTitle":"Blocked","memoriBlockedUntil":"Agent blocked until {{date}}","memoriBlockedAnon":"Currently \\"{{name}}\\" can\'t answer, come back here on {{date}}","memoriBlockedReasonExceedChats":"because it has exceeded the monthly threshold of allowed chats.","memoriBlockedGiverHelper":"You can still manage it as administrator, but other users will not be able to interact with it.","generatedByAI":"Answer generated by AI, may occasionally generate incorrect informations","aiGeneratedNote":"The agent may make mistakes. Make sure to verify important information.","reasoning":"Reasoning...","thinking":"Thinking","thought":"Thought","thoughtFor":"Thought for {{count}}s","whyThisAnswer":"Where this answer comes from","whyThisAnswerHelper":"This answer was generated automatically by an artificial intelligence based on these verified contents.","whyThisAnswerDescription":"Knowledge-base contents the agent consulted to reply.","whyThisAnswerYouAsked":"You asked","whyThisAnswerUserAsked":"The user asked","whyThisAnswerAgentReplied":"The agent replied","whyThisAnswerShowFull":"Show the full answer","whyThisAnswerContentsUsed":"Contents used","whyThisAnswerOpen":"Open","whyThisAnswerDisclaimer":"The agent wrote this answer from these contents: it may contain errors or rephrasings. Check important information at the source.","whyThisAnswerEmptyTitle":"No contents consulted","whyThisAnswerEmptyDescription":"For this question the agent found no matches in the knowledge base: it replied from its instructions only.","whyThisAnswerEmptyAuthorDescription":"The question produced no matches. If it should have, add a content that covers it.","whyThisAnswerAddContent":"Add to the knowledge base","whyThisAnswerConfidenceHigh":"Strong match","whyThisAnswerConfidenceMedium":"Partial match","whyThisAnswerConfidenceLow":"Weak match","whyThisAnswerTypeQuestion":"Question and answer","whyThisAnswerTypeDocument":"Document","whyThisAnswerTypeWebsite":"Website","whyThisAnswerTypeStory":"Story","whyThisAnswerSourcesCount_one":"{{count}} source","whyThisAnswerSourcesCount_other":"{{count}} sources","whyThisAnswerNoSources":"No sources","receiverLabel":"Assigned to","completionsEnabled":"Advanced AI, can respond with automatically generated answers that may sometimes contain incorrect information","completionProviderDown":"This agent is integrated with a generative AI from {{provider}}, but it is currently unavailable. Try again later.","completionProviderMajorOutage":"This agent is integrated with a generative AI from {{provider}}, but it is completely down. This feature will not be available until the service is restored.","completionProviderPartialOutage":"This agent is integrated with a generative AI from {{provider}}, but it is experiencing partial outages. Some features may be unavailable or perform poorly.","completionProviderDegraded":"This agent is integrated with a generative AI from {{provider}}, but it is performing slower than usual. Responses may take longer or be less accurate.","completionProviderFallbackName":"an external provider","completionProviderCheckStatusPage":"Check status page","boardOfExperts":"Board of experts","birthDate":"Birth date","birthDateHelper":"We ask for your birth date only to enable or disable functionalities that have age restrictions","underage":"You must be at least {{age}} years old to sign up.","underageTwinSession":"You must be at least {{age}} years old to interact with this agent.","errorFetchingSession":"Error during session loading","errorGettingReferralURL":"Error during referral loading","errorReopeningSession":"Error during session reopening","sessionExpiredReopening":"Session expired, reopening session","ageVerification":"Age verification","ageVerificationText":"To interact with this agent, you must be at least {{minAge}} years old.","ageVerificationSuccess":"Age verified with success.","nsfw":"NSFW: This agent contains adult contents","deepThought":"Deep Thought","deepThoughtWhatIs":"What is Deep Thought?","deepThoughtHelper":"Deep Thought is an advanced feature of the AI that will allow you to fully exploit your conversations by keeping track of them. The AI with Deep Thought can give you information tailored to you and the things you will share together. Allow the agent\'s author to contact you for commercial offers regarding products you have shown interest in.","deepThoughtDisclaimerTitle":"Deep Thought enabled","deepThoughtDisclaimer":"Deep Thought is an advanced feature of the AI that will allow you to fully exploit your conversations by keeping track of them. The AI with Deep Thought can give you information tailored to you and the things you will share together.","deepThoughtPreDisclaimerUnlogged":"Log in to enable Deep Thought.","deepThoughtPreDisclaimerNotAllowed":"Deep Thought is disabled since you didn\'t consent its usage, you can change this any time in your account settings.","notEnoughCredits":"The author of this agent does not have enough credits to answer your question.","confirmDialog":{"title":"Do you want to leave this page?","message":"The changes you made will be lost."},"knownFacts":{"title":"Known facts","description":"What {{memoriName}} remembers about you. You can delete each entry.","type":"Type","typeShortTerm":"Short term","typeLongTerm":"Long term","typeHelper":"Types:\\n- Short Term: this Known Fact is always used during conversations\\n- Long Term: this Known Fact is used during conversations only if relevant to the current question","text":"Text","searchPlaceholder":"Search known facts","select":"Select","loadMore":"Load more","factsCount_one":"{{count}} fact","factsCount_other":"{{count}} facts","shownOfTotal":"Showing {{shown}} of {{total}}","emptyTitle":"No facts yet","emptyDescription":"As you talk, the agent notes here what it learns about you. You can delete it at any time.","deleteLabel":"Delete this fact","deleteSuccess":"Known fact deleted","deleteConfirmTitle":"Delete known fact","deleteConfirmMessage":"Are you sure you want to delete this known fact?","deleteSelectedConfirmTitle":"Delete selected known facts","deleteSelectedConfirmMessage":"Are you sure you want to delete the selected known facts?","selected_one":"{{count}} fact selected","selected_other":"{{count}} facts selected","selectedRows_one":"{{count}} row selected","selectedRows_other":"{{count}} rows selected"},"auth":{"title":"Authentication","description":"This agent is protected. Enter the password to continue.","useRecoveryTokens":"Use recovery tokens","tokens":"Tokens","addToken":"Add token","usePassword":"Use password","passwordRequired":"Password required","invalidCredentials":"Invalid credentials","atLeast":"At least"},"widget":{"instruct":"Instruct","test":"Test","sound":"Audio","soundOff":"Audio off","position":"Position preferences","settings":"Settings","share":"Share","shareChat":"Share chat","sendOnKeypress":"Hit Enter to send","sendOnClick":"Click on Submit","boardOfExperts":"Board of experts","showExpertsInTheBoard":"Show experts in this board","expertsInTheBoard":"Experts in this board","goToIntegrationsToCustomizeAvatar":"To customize the avatar, go to Share and customize the public page","chatAssistantStatus":"Active • Replies in a few seconds","agentStatusListening":"listening","agentStatusSpeaking":"speaking","agentStatusProcessing":"processing","shareLocation":"Share location","shareLocationHint":"Get answers tailored to where you are","shareLocationAria":"Share location with the assistant","knownFactsHint":"What I remember about you","aiConsumption":"AI usage","editPositionAria":"Edit location","positionResolving":"Resolving address…","geocodingFailed":"Could not resolve the address. Try again or search manually.","positionUnavailableManual":"Location unavailable. Please enter it manually.","positionSharingEnabled":"Location shared.","headerHistory":"History","headerProfile":"Profile","headerLogin":"Log in","downloadQrCode":"Download QR Code","expandToImmersive":"Expand to immersive view","moreActions":"More actions","mobileSession":{"session":"Session","sessionInfo":"Session info","copyLinkOrDownload":"Copy link or download","currentlyOff":"Currently off","whatIKnowAboutYou":"Details of the information shared between you and {{memoriName}}","locationTracking":"Location tracking","locationStatus":"Status","useCurrentPosition":"Use current position","disableLocationSharing":"Disable location sharing","openKnownFacts":"Open full known facts","knownFactsMessages":"{{count}} messages in current session"}},"exportChatHistory":{"exportPDF":"Export chat as PDF","exporting":"Exporting...","empty":"No chat history to export","pdfNotSupported":"PDF export is not supported in this browser","success":"Chat exported to PDF successfully","error":"Failed to export chat to PDF. Please try again."},"write_and_speak":{"micButtonPopover":"Click the button to speak","micButtonPopoverListening":"Click the button to stop speak","stopRecording":"Stop recording","sendRecording":"Send voice message","recordingInProgress":"Recording in progress","pageInstructExplanation":"To teach me new things click on the INSTRUCT ME button to get started","pageTryMeExplanation":"To start talking to me click on the START button","pagePrivacyExplanation":"The conversations are visible by the author of the agent","aiDisclaimer":"The agent may make mistakes. Please verify the answers.","downloadChat":"Download chat","pagePrivacyExplanationList":{"allConversations":"All conversations with this agent are visible to the author of the agent","anonymousUser":"For anonymous users: the author will see the content of the conversation and your IP address","registeredUser":"For registered users: the author will see the content of the conversation and your username","contentAndUsername":"The author can see the content, your username and your IP address","contentAndIpAddress":"The author can see the content and your IP address","authorUsesInfo":"The author uses this information to improve the features of the agent and to provide you with a better service."},"instructButton":"INSTRUCT ME","tryMeButton":"START","resumeButton":"RESUME","chatHistory":"Chat history","chatHistoryDescription":"Show the chat history with this agent","loadingChatHistory":"Loading chat history...","noChatHistoryAvailable":"No chat history available","noResultsFound":"No results found for \\"{{searchText}}\\"","searchInChatHistory":"Search conversations","filters":"Filters","latestFirst":"Latest first","oldestFirst":"Oldest first","exportChat":"Export Chat","conversationStartedLabel":"Conversation started","settingsHeaderLabel":"Setup here if you want to set the continuous speech, and change the silence seconds if you want to customize them.","continuousSpeechLabel":"Continuous speech","continuousSpeechDisabled":"Continuous speech disabled because the agent is in mute mode","holdToSpeak":"Hold to speak","releaseToEndListening":"Release to end listening","pressAndHoldToSpeak":"Press and hold to speak","microphoneMode":"Microphone mode","hideEmissionsLabel":"Hide text emitted by the agent","showMessageConsumptionLabel":"Show message consumption","secondsLabel":"Set seconds","controlsPosition":"Controls position","avatarControls":"Avatar controls","height":"Height","depth":"Depth","avatarType":"Avatar type","suggestions":"Use the arrow keys to adjust the avatar height\\nUse +/- to adjust the avatar depth","blob":"Blob","avatar3d":"3D Avatar","zoomed":"Zoomed","normal":"Normal","far":"Far","enablePositionControls":"Enable position controls","tryMeHeaderLabel":"TRY","unknownPosition":"Unknown position","fieldPlace":"Write the place (eg \'Milano\')","showMapLinkFor":"Show the position on the map","useMyPosition":"Use my position","myPosition":"Your position","updatingPosition":"Updating position...","placeNotFound":"Place not found!","requirePosition":"Insert your position before start","requirePositionHelp":"To talk to {{name}} you have to decide whether to provide your position or not. This is because different answers that it can provide you may depend on where you are.","dontWantToProvidePosition":"Skip location","requireLoginHelp":"To talk to {{name}} you need to log in with your account first.","skipLocationTitle":"No map location will be saved.","locationSaved":"Your location was saved.","locationSavedWithPlace":"Your location was saved: {{place}}","locationSkippedConfirm":"You\'ll continue without sharing your location.","placeSelected":"Place selected: {{place}}","locationPermissionDenied":"Location access was denied. Allow location in your browser settings, or pick a place on the map.","locationUnavailable":"Your position could not be determined. Try again or search for a place.","locationRequestTimedOut":"Location request timed out. Try again or search for a place.","locationErrorGeneric":"Something went wrong while getting your location.","attachmentsLabel":"Enrich your message","image":"image","images":"images","file":"file","files":"files","function":"function","functions":"functions","iWantToTalkToIn":"I want to talk to {{name}} in","chatLanguageLabel":"Choose the conversation language","chatResumed":"Conversation resumed successfully.","message":"message","messages":"messages","page":"Page {{current}} of {{total}}","downloadThisConversation":"Download this conversation","downloadAllConversations":"Download all conversations","conversationsCount_one":"{{count}} conversation","conversationsCount_other":"{{count}} conversations","shownOfTotal":"Showing {{shown}} of {{total}}","loadMore":"Load more","backToConversationList":"Back to the conversation list","thisWeek":"This week"},"chatResume":{"resume":"Resume conversation"},"artifact":{"close":"Close","size":"Size","updated":"updated","updateFailed":"Update could not be applied","updateFailedHint":"The patch did not match the current content. Ask to rewrite the artifact.","generated":"Generated","download":"Download","print":"Print","external":"Open in a new window","type":"Type","fullscreen":"Fullscreen","exitFullscreen":"Exit fullscreen","generatedAt":"Generated at","copy":"Copy","open":"Open","code":"Code","source":"Source","preview":"Preview","resizeHandle":"Resize artifact panel","copied":"Copied!","error":"Error","generatingPdf":"Generating PDF...","copying":"Copying...","moreCopyOptions":"More copy options","copyAs":"Copy as","downloadAsMarkdown":"Download as Markdown","downloadRawMarkdownText":"Download raw markdown text","downloadAsPdf":"Download as PDF","exportAsPdfDocument":"Export as PDF document","downloadAsHtml":"Download as HTML","downloadFormattedHtml":"Download formatted HTML","viewMode":"View Mode","codeMode":"Code Mode","refresh":"Refresh","share":"Share","downloadAsJson":"Download as JSON","downloadJsonData":"Download JSON data","downloadAsPng":"Download as PNG","downloadPngImage":"Download PNG image","downloadAsJpeg":"Download as JPEG","downloadJpegImage":"Download JPEG image","downloadAsGif":"Download as GIF","downloadGifImage":"Download GIF image","downloadAsWebp":"Download as WebP","downloadWebpImage":"Download WebP image","copyAsSvg":"Copy as SVG","copySvgSourceCode":"Copy SVG source code","copyAsPlainText":"Copy as Plain Text","copyAsText":"Copy as text","copyAsLanguage":"Copy as {{language}}","copyLanguageCode":"Copy {{language}} code","copyWithoutSyntaxHighlighting":"Copy without syntax highlighting","copyTextContent":"Copy text content","pdfExportNotSupported":"PDF export is not supported in this browser","popupBlocked":"Popup blocked! Please enable popups to print.","safariPdfInstructions":"PDF export opened in new window. Please use Cmd+P (Mac) or Ctrl+P (Windows) to print and save as PDF."},"upload":{"loginRequired":"Login required","pastedText":"pasted-text","uploadNotification":"Upload Failed","loginRequiredDescription":"Please login to upload images","uploadFiles":"Upload files (drag and drop)","uploadFilesOrImages":"Upload files or images","uploadFilesWithShortcut":"{{shortcut}}+O to open file chooser","uploadImages":"Upload images","replace":"Replace","maxImagesReached":"You can upload up to {{max}} images","maxDocumentsReached":"You can upload up to {{max}} documents","remaining":"remaining","lastDocumentSlot":"Upload last document","uploadDocuments":"Upload documents","maxReached":"Max limit reached","imageTitle":"Image title: {{title}}","titleHelp":"Adding a descriptive title helps the AI provide more context and appropriate responses.","titlePlaceholder":"Enter image title","apiClientNotConfigured":"API client not configured properly for media upload","fileReadingFailed":"File reading failed","uploadFailed":"Upload failed","uploadSuccess":"Upload success","titleImage":"Add an image title","uploadSuccessDescription":"The file has been uploaded successfully","titleImageUpload":"Upload images","partialUpload":"Only {{uploaded}} images on {{total}} will be uploaded. Maximum {{max}} images allowed.","maxImages":"Maximum {{max}} images allowed.","upload":"Upload","dragAndDropFiles":"Drag and drop files here to add them to the chat","pasteMaxAttachmentsReached":"Maximum {{max}} attachments. Remove one to add this as a file.","pasteContentTooLong":"Pasted content is too long (max {{size}}KB). Shorten or split it.","pasteContentExceedsLimit":"Pasted content exceeds the size limit. Try shortening the text or splitting it into smaller parts.","pasteAddedAsAttachment":"Pasted content added as attachment","contextSizeExceedsLimit":"Context size exceeds the limit. Try reducing the number of files or content in the conversation.","filesNotAddedMaxAllowed":"{{count}} file(s) not added (maximum {{max}} files allowed).","documentsNotAddedMaxAllowed":"{{count}} document(s) not added (maximum {{max}} files allowed).","imagesNotAddedMaxAllowed":"{{count}} image(s) not added (maximum {{max}} files allowed).","documentsNotAddedContextSize":"{{count}} document(s) not added (context size limit).","partialAssetUploadWarning":"Some file links could not be uploaded, but the document was added anyway.","anonymousRetentionNotice":"Note: uploaded files are retained for a maximum of 24 hours."},"media":{"title":"Title","editAttributes":"Edit media attributes","uploadMimeTypeNotAllowed":"The file type is not allowed","uploadSizeLimitMessage":"The uploaded size is too big (max {{size}}MB)","uploadWrongResolutionMessage":"The resolution must be {{width}}x{{height}} pixel","memoriNameAlreadyUsed":"You already have an agent with this name","uploadHelperImages":"Upload a file with extension png, jpg, jpeg or gif, and having at maximum a size of {{size}}MB","uploadHelper":"Upload a file having at maximum a size of {{size}}MB","uploadError":"Upload failed","square":"square","scaleRatio":"Scale ratio","addMediaLabel":"Add a media","insertThisMediaMsg":"Insert these media","mediaUploadMessage":"Click to load a new media","addLinkLabel":"Add a link","linkKey":"URL","linkValue":"Link title","insertThisLink":"Insert a link to {{url}} with title {{title}}"},"gamification":{"level":"Level","points":"points","memoriReachedLevel":"became more evolved and reached level","levelGoToStatistics":"{{memori}} is at level {{level}} with {{points}} points. Click to go to statistics.","congratulationsNewLevel":"Congratulations, you have reached a new level!","congratulationsNewLevelDescription":"Your agent became more evolved with {{points}} points, look at the","statistics":"statistics"},"login":{"login":"Login","title":"Login to your account","loggingIn":"Logging you in…","logout":"Logout","user":"User","loggedDrawerTitle":"Hi, {{name}}!","userNameRequired":"Username required","userName":"Username","userNamePlaceholder":"Enter username","loginDrawerTitle":"Login","signupDrawerTitle":"Sign up","newUserSignUp":"New user?","signUp":"Sign up!","alreadyHaveAnAccount":"Already have an account?","backToLogin":"Back to login","registrationDisabled":"Registration is disabled","contactAdmin":"Contact the administrator to request access","userNameOrEmail":"Username or email","email":"Email","emailFormatError":"Please, insert a valid email","username":"Username","usernameContainsReservedWord":"Username contains a reserved word, please choose another one","usernameFormatError":"Username must be at least 3 characters long and contain only letters, numbers and _","otpCode":"Verification code","resendVerificationCode":"Resend code","resentVerificationCode":"Confirmation code sent! Please check your email.","welcomeTitle":"Welcome back","welcomeDescription":"Enter your 4-digit verification code to continue to your account","otpTitle":"Enter verification code","otpDescription":"Enter the 4-digit code you generated in your account","otpStep1":"Click the button below to open your account","otpStep2":"Generate a 4-digit verification code (valid for 5 minutes)","otpStep3":"Return here and enter the code","startOtpLogin":"Start verification","generateOtp":"Generate code","otpTimer":"Code expires in {{time}}","otpInvalidFormat":"Please enter a valid 4-digit code","otpInvalid":"Invalid verification code","otpError":"Error validating code. Please try again.","otpSuccess":"Login successful!","otpEmailTitle":"Enter your email","otpEmailDescription":"Enter your email address to receive a verification code","otpCodeDescription":"Enter the 4-digit code sent to {{email}}","emailPlaceholder":"Enter your email","sendOtp":"Send the code","resendOtp":"Resend","resendOtpIn":"Resend in {{seconds}}s","resendOtpPrompt":"Didn\'t arrive? Resend in {{seconds}} s","resendOtpQuestion":"Didn\'t arrive?","resending":"Resending...","backToEmail":"Back to email","editEmail":"Edit","otpSentToPrefix":"We sent a 4-digit code to","otpCodeShort":"Code","loginBenefitLine1":"{{memoriName}} can show you the chat history, which can be resumed at any time.","loginBenefit":"{{memoriName}} can show you the chat history, which can be resumed at any time.","passwordlessHint":"We\'ll send you a 4-digit code. No password to remember.","defaultAgentName":"the agent","otpSent":"Verification code sent!","otpResent":"Code resent successfully!","otpSendError":"Error sending code. Please try again.","emailRequired":"Email required","emailInvalid":"Please enter a valid email address","userNotFound":"User not found","otpNotFound":"Verification code not found","otpExpired":"Verification code has expired","otpMissing":"Verification code is required","otpAttemptsExceeded":"Too many attempts. Request a new verification code.","otpSuccessMessage":"Verification successful! Redirecting...","otpSuccessDescription":"Your account has been verified successfully. You will be redirected shortly.","otpHelp":"Enter the 4-digit code from your email","emailHelp":"We\'ll send you a verification code","userFetchError":"Error loading user data. Please try again.","otpStep1Title":"Enter Email","otpStep2Title":"Check Email","otpStep3Title":"Enter Code","featureFast":"Fast","featureSecure":"Secure","featureMobile":"Mobile","password":"Password","newPassword":"New password","confirmPassword":"Confirm Password","currentPassword":"Current password","passwordMatchingError":"Passwords do not match.","passwordFormatError":"Password must be at least 8 characters long and contain at least a number, an upper case letter, a lower case letter and a symbol","pwdWeak":"Weak","pwdAcceptable":"Acceptable","pwdStrong":"Strong","mustChangePassword":"You must change your password","passwordChange":"Change password","emailChange":"Change email","avatarChange":"Change avatar","avatarUploadSuccess":"Profile picture updated.","underage":"You must be at least {{age}} years old to sign up.","optional":"Optional","birthDate":"Birth date","birthDatePlaceholder":"DD/MM/YYYY","birthDateHelper":"We ask for your birth date only to enable or disable functionalities that have age restrictions","missingData":"Missing information","missingDataHelper":"We know that this is a bit annoying, but we need some more information to complete your registration.","goToAccountToChangeYourPreferences":"You can change your choice at any time from your Account page.","deepThoughtExplaination":"Deep Thought is an advanced feature of the AI that will allow you to fully exploit your conversations by keeping track of them. The AI with Deep Thought can give you information tailored to you and the things you will share together. Allow the agent\'s author to contact you for commercial offers regarding products you have shown interest in.","tnCAndPPAcceptedHelper":"Since your last login, T&C and Privacy Policy have changed. Please accept them, otherwise you won\'t be able to make changes to your Twins. You can always delete your account in your user profile page.","privacyLabel":"I have read and accepted the","privacyAndCookiePolicy":"Privacy e Cookie Policy","and":"and","termsOfService":"Terms of Service","pAndCUAccepted":"I accept the terms of service about Deep Thought","editAccount":"Edit account","save":"Save","welcomeUser":"Welcome User","verified":"Verified","premiumUser":"Premium","quickActions":"Quick Actions","editProfile":"Edit Profile","notifications":"Notifications","help":"Help","logoutConfirm":"Are you sure you want to logout?","comingSoon":"Coming soon!","accountOverview":"Account Overview","notSet":"Not set","accepted":"Accepted","pending":"Pending","termsStatus":"Terms Status","enabled":"Enabled","disabled":"Disabled","advancedFeatures":"Advanced Features","successfullyLoggedIn":"{{username}} has successfully logged in"},"chatLogs":{"llm":"LLM","model":"Model","provider":"Provider","tokens":"Tokens","input":"Input","output":"Output","cacheRead":"Cache read","cacheWrite":"Cache write","duration":"Duration","energy":"Energy","co2":"CO2","water":"Water","usageBadgesHint":"Click one of these buttons to show more information","totalChatConsumptionTitle":"Total Chat Consumption","modelUsage":"Model usage","environmentalImpact":"Environmental impact","impactComparisonUnavailable":"Indicative comparison unavailable.","impactComparisonEnergy":"Indicative comparison: roughly like keeping a 10 W LED bulb on for {{duration}}.","impactComparisonCo2":"Indicative comparison: about {{distance}} traveled by an average gasoline car.","impactComparisonWater":"Indicative comparison: about {{count}} drops of water.","energyImpactDescription":"This value estimates the electrical energy needed to generate the model response. It helps compare prompts, models, and strategies even when a single message has a very small impact.","co2ImpactDescription":"CO2 equivalent represents the estimated climate impact of the message. Converting consumption into emissions helps understand AI impact with comparable metrics.","waterImpactDescription":"This indicator shows the estimated water footprint associated with processing the message. It includes water indirectly used by the energy and infrastructure supporting computation.","approximateValuesTooltip":"These values are approximate.","anyMessage":"Any message","atLeast":"At least {{count}} messages","atLeast1":"At least 1 message","atLeast2":"At least 2 messages","atLeast3":"At least 3 messages","atLeast5":"At least 5 messages","atLeast10":"At least 10 messages","atLeast15":"At least 15 messages","atLeast20":"At least 20 messages","customMinimumMessages":"Customize the number of messages"},"success":"Success","Error":"Error","internal server error":"Oupsie, sorry... Something went wrong on the server","error":"Error","error.loading":"Error while loading content.","error.generic":"Oupsie, sorry... something went wrong.","error.serverNotResponding":"We are doing maintenance or releasing updates. Please try again later.","error.notFound":"Oupsie, we didn\'t find the page you were looking for.","error.goBackTo":"You can try to go back to the","error.reloadPage":"Reload the page","error.tryAgain":"Try again","error.unauthorized":"You are unauthorized to view this content.","error.unprocessableEntity":"Error while processing the request. Check the data you entered.","errors":{"TENANT_NOT_FOUND":"Tenant not found","TENANT_REGISTRATION_DISABLED":"Registration on this platform is disabled","TENANT_MISSING_NAME":"Tenant: name missing","TENANT_MAX_USERS_REACHED":"Maximum number of users reached","TENANT_MAX_ADMINS_REACHED":"Maximum number of admin users reached","TENANT_ALREADY_EXISTS":"Tenant already exists","TENANT_MISSING_DESCRIPTION":"Tenant: description missing","TENANT_CANT_SET_COMPLETION_PROVIDER":"Tenant: can\'t set completion provider","TENANT_INVALID_TYPE":"Tenant: invalid type","USER_NOT_CONFIRMED":"User still not confirmed","USER_NOT_FOUND":"User not found","USER_OR_PASSWORD_INVALID":"Invalid user or password","USER_MUST_CHANGE_PASSWORD":"You must change your password","USER_MUST_ENTER_VERIFICATION_CODE":"You must enter the verification code","USER_MISSING_TENANT":"User: missing tenant","USER_MISSING_NAME":"User: name is missing","USER_MISSING_PASSWORD":"User: password missing","USER_MISSING_EMAIL":"User: Missing email","USER_MISSING_VERIFICATION_CODE":"User: Missing verification code","USER_NAME_ALREADY_USED":"User name already in use","USER_PASSWORD_NOT_CONFORMING_TO_POLICY":"The password does not meet the security rules","USER_EMAIL_ALREADY_USED":"Email already in use","USER_EMAIL_INVALID":"Invalid email","USER_VERIFICATION_CODE_INVALID":"Invalid verification code","USER_MISSING_NAME_OR_EMAIL":"Missing username or email","USER_NAME_INVALID":"Invalid user name","USER_HAS_ONE_OR_MORE_MEMORI":"The user has one or more memories","USER_MISSING_NEW_PASSWORD":"User: new password missing","USER_NOTHING_TO_DO":"Nothing to do","USER_CANT_CREATE_MEMORI":"User not allowed to create agents","USER_MAX_MEMORI_REACHED":"Maximum number of agents reached","USER_TOO_MANY_ATTEMPTS":"Too many attempts","USER_MUST_ACCEPT_TNC_AND_PP":"You must accept the terms and conditions","USER_BIRTH_DATE_CANT_BE_CHANGED":"Date of birth cannot be changed","USER_CANT_SET_COMPLETION_PROVIDER":"User: not allowed to manage completion provider","USER_CANT_ENABLE_DEEP_THOUGHT":"User: not enabled to manage Deep Thought","USER_CANT_ENABLE_DCM_INTEGRATION":"User: not enabled to manage DCM integration","USER_CANT_ENABLE_CHAINING_OR_BOARD_OF_EXPERTS":"User: not allowed to manage chaining or expert group","USER_CREATION_BILLING_DENIED_PERMISSION":"You don\'t have enough credits to create an agent","USER_HAS_ONE_OR_MORE_COMPLETION_CONFIGS":"The user has one or more completion configurations","USER_CANT_BE_DELETED":"User can\'t be deleted","USER_ORDER_BY_INVALID":"Order by invalid","MEMORI_NOT_FOUND":"Agent not found","MEMORI_NOT_ACCESSIBLE":"Agent not accessible","MEMORI_ONLY_OWNER_CAN_CHANGE_GIVER_TAG_AND_PIN":"Only owner can change tag or pin","SESSION_NOT_FOUND":"Session not found","SESSION_IS_NOT_ADMINISTRATIVE":"Non-administrative session","SESSION_EXPIRED":"Session expired","speechMissingSession":"Speech needs an active session","speechInvalidSession":"This session is not valid","speechTenantMismatch":"Speech is not available on this site","speechRateLimited":"Too many speech requests. Wait a moment and try again.","SESSION_OTP_NOT_FOUND":"Verification code not found","SESSION_OTP_EXPIRED":"Verification code has expired","SESSION_OTP_INVALID":"Invalid verification code","SESSION_OTP_ATTEMPTS_EXCEEDED":"Too many attempts. Request a new verification code.","MEMORI_MISSING_CONFIGURATION":"Agent: missing configuration","MEMORI_CONFIGURATION_NOT_FOUND":"Agent: configuration not found","MEMORI_INVALID_PRIVACY_TYPE":"Agent: invalid privacy type","MEMORI_MISSING_PASSWORD":"Agent: missing password","MEMORI_INVALID_TOTAL_NUMBER_OF_RECOVERY_TOKENS":"Agent: total number of invalid recovery tokens","MEMORI_INVALID_MINIMUM_NUMBER_OF_RECOVERY_TOKENS":"Agent: minimum number of invalid recovery tokens","MEMORI_INVALID_VOICE_TYPE":"Agent: invalid voice type","MEMORI_MISSING_NAME":"Agent: missing name","MEMORI_MISSING_PASSWORD_OR_RECOVERY_TOKENS":"Agent: missing password or recovery token","MEMORI_INVALID_ID":"Agent: invalid ID","MEMORI_NAME_ALREADY_USED":"Agent name already in use","MEMORI_INVALID_PIN":"Agent: Invalid PIN","MEMORI_GIVER_TAG_PIN_CHANGE_REQUIRES_SEPARATE_OPERATION":"Agent: TAG and PIN change require separate operations","MEMORI_NO_PASSWORD_WHEN_PUBLIC":"Agent: no password required when public","MEMORI_DEEP_THOUGHT_REQUIRES_COMPLETIONS":"Deep Thought requires completions to be enabled","MEMORI_BOARD_OF_EXPERTS_REQUIRES_COMPLETIONS":"The expert group requires completions to be enabled","MEMORI_INVALID_COMPLETION_CONFIG":"Agent: invalid completions configuration","MEMORI_MACRO_FUNCTIONS_REQUIRES_COMPLETIONS":"Macro functions requires completions to be enabled","MEMORI_BLOCKING_DATE_MISSING_OR_WRONG":"Agent: blocking date missing or wrong","MEMORI_LIST_FILTER_NOT_SPECIFIED":"Agent: list filter not specified","MEMORI_TRANSFER_MISSING_DESTINATION_USER":"Transfer: missing destination user","MEMORI_TRANSFER_INVALID_DESTINATION_USER_ID":"Transfer: invalid destination user ID","MEMORI_TRANSFER_DESTINATION_USER_DATA_INCONSISTENT":"Transfer: invalid destination user data","MEMORI_TRANSFER_NOTHING_TO_DO":"Transfer: nothing to do","MEMORI_CONFIGURATION_CANT_BE_CHANGED":"Agent: configuration cannot be changed","MEMORI_MISSING_NEW_PASSWORD":"Agent: new password missing","MEMORI_FEATURE_REQUIRES_SUBSCRIPTION":"Feature requires subscription","INTEGRATION_NOT_FOUND":"Integration not found","MEMORI_SESSIONS_INVALID_DATE_FROM_FORMAT":"Invalid date from format","MEMORI_SESSIONS_INVALID_DATE_TO_FORMAT":"Invalid date to format","MEMORI_SESSION_NOT_FOUND":"Session not found","MEMORI_SESSION_DOESNT_ACCEPT_MEDIA":"Session doesn\'t accept media","INTEGRATION_INVALID_TYPE":"Invalid integration type","INTEGRATION_ALREADY_EXISTS":"Integration already exists","INTEGRATION_MEMORI_IS_NOT_PUBLIC":"Non-public memories cannot be integrated","INTEGRATION_MISSING_INVOCATION_TEXT":"Integration: missing invocation text","INTEGRATION_MISSING_DEVICE_EMAILS":"Integration: missing device email","INTEGRATION_MEMORI_IS_EMPTY":"Empty memories cannot be integrated","INTEGRATION_MISSING_PRIVACY_POLICY":"Integration: privacy policy missing","INTEGRATION_MISSING_CATEGORY":"Integration category missing","INTEGRATION_MISSING_DESCRIPTION":"Missing integration description","INTEGRATION_INVALID_INVOCATION_TEXT":"Invalid invocation text","INTEGRATION_GOOGLE_NO_MORE_AVAILABLE":"Google Home no more available","UPLOAD_REQUIRES_MULTIPART_ENCODING":"Upload requires multipart encoding","UPLOAD_MISSING_CONTENT_TYPE_BOUNDARY":"Upload: missing content type boundary","UPLOAD_MAX_LENGTH_EXCEEDED":"Upload: maximum size exceeded","UPLOAD_FILE_IS_EMPTY":"Upload: empty file","UPLOAD_INVALID_FILE_TYPE_OR_SIGNATURE":"Upload: invalid file type or signature","UPLOAD_MISSING_FILE_NAME":"Upload: missing file name","UPLOAD_INVALID_MEMORY_ID":"Upload: Invalid content ID","UPLOAD_MISSING_FILE_CONTENT":"Upload: Missing file content","ASSET_NOT_FOUND":"Asset not found","ASSET_NOT_ACCESSIBLE":"Asset not accessible","ASSET_MISSING_SESSION_ID":"Asset: missing session ID","ASSET_INVALID_FILE_NAME":"Asset: invalid file name","ASSET_MALWARE_SCAN_THREATS_FOUND":"Asset: found malware threats","INVITATION_NOT_FOUND":"Invitation not found","INVITATION_NOT_ACCESSIBLE":"Invitation not accessible","INVITATION_ALREADY_ACCEPTED":"Invitation already accepted","INVITATION_ALREADY_REJECTED":"Invitation already rejected","INVITATION_MISSING_DESTINATION_EMAIL":"Invitation: missing destination email","INVITATION_DESTINATION_EMAIL_INVALID":"Invitation: destination email invalid","INVITATION_MISSING_TAG":"Invitation: missing tag","INVITATION_MISSING_PIN":"Invitation: PIN missing","INVITATION_INVALID_PIN":"Invitation: invalid PIN","INVITATION_INVALID_TYPE":"Invitation: invalid type","INVITATION_MISSING_DESTINATION_NAME":"Invitation: destination name missing","INVITATION_TAG_PIN_CANT_BE_CHANGED":"Invitation: tag and pin can\'t be changed","INVITATION_CANT_BE_CHANGED":"Intation: can\'t be changed","ACTIONLOG_INVALID_USER_ID":"Invalid user ID","ACTIONLOG_INVALID_DATE_FROM_FORMAT":"Date from: invalid format","ACTIONLOG_INVALID_DATE_TO_FORMAT":"Date to: invalid format","ACTIONLOG_INVALID_MEMORI_ID":"Invalid Memori ID","CONSUMPTIONLOG_INVALID_TYPE":"Invalid log type","CONSUMPTIONLOG_INVALID_DATE_FROM_FORMAT":"Date from: invalid format","CONSUMPTIONLOG_INVALID_DATE_TO_FORMAT":"Date to: invalid format","CONSUMPTIONLOG_INVALID_USER_ID":"Invalid user ID","CONSUMPTIONLOG_INVALID_MEMORI_ID":"Invalid Memori ID","NOTIFICATIONPREFS_INVALID_CHATLOG_EXTRACTION_PERIOD":"Notifications: Invalid chat log extraction period","BROADCAST_NOT_ALLOWED":"Broadcast not allowed","INVALID_NOTIFICATION_TYPE":"Invalid notification type","NOTIFICATION_NOT_FOUND":"Notification not found","INVALID_NOTIFICATION_FILTER":"Invalid notification filter","INVALID_NOTIFICATION_PERIOD":"Invalid notification period","PROCESS_INVALID_TYPE":"Invalid process type","PROCESS_ALREADY_RUNNING":"Process already running","PROCESS_NOT_FOUND":"Process not found","IMPORTCSV_MISSING_ROWS":"CSV import: missing rows","IMPORTCSV_MISSING_CSV":"CSV Import: Missing CSV","IMPORTCSV_MISSING_SEPARATOR":"CSV import: missing separator","IMPORTCSV_INVALID_SEPARATOR":"CSV import: invalid separator","IMPORTCSV_MISSING_HEADERS":"CSV import: missing headers","IMPORTCSV_MISSING_TITLE_VARIANT_SEPARATOR":"CSV import: missing title variant separator","IMPORTCSV_INVALID_RECEIVER_ID":"CSV import: invalid receiver ID","IMPORTCSV_INVALID_MEDIA_LINK":"CSV import: invalid media link","IMPORTCSV_INVALID_LINK_TITLE_HANDLING":"CSV import: invalid link title","IMPORTCSV_UNDETECTABLE_CHAR_ENCODING":"CSV import: undetectable character encoding","IMPORTCSV_CANT_IMPORT_TO_SECRET_MEMORI":"CSV Import: Cannot import to Secret Memories","IMPORTTXT_MISSING_ROWS":"Importing TXT: missing rows","IMPORTTXT_INVALID_GRANULARITY":"Import TXT: invalid granularity","IMPORTTXT_INVALID_RECEIVER_ID":"Import TXT: invalid receiver ID","IMPORTTXT_INVALID_MEDIA_LINK":"Import TXT: invalid media link","IMPORTTXT_INVALID_LINK_TITLE_HANDLING":"Import TXT: invalid link title","IMPORTTXT_UNDETECTABLE_CHAR_ENCODING":"TXT import: undetectable character encoding","IMPORTTXT_CANT_IMPORT_TO_SECRET_MEMORI":"TXT Import: Cannot import to Secret Memories","IMPORTTXT_IMPORT_LIMIT_EXCEEDED":"Import TXT: import limit exceeded","IMPORTTXT_IMPORT_ON_GPT4_REQUIRES_API_KEY":"Import TXT: import on GPT-4 requires API key","IMPORTTXT_IMPORT_REQUIRES_PAYING":"Import TXT: Import requires a paying plan","IMPORTTXT_BILLING_DENIED_PERMISSION":"Import TXT: you don\'t have enough credits for the operation","IMPORT_MISSING_ROWS":"Import: missing rows","IMPORT_CANT_IMPORT_TO_SECRET_MEMORI":"Import: can\'t import to Secret Memories","IMPORTMEMORI_INVALID_MEMORI_SPECS":"Import MEMORI: invalid memory specs","IMPORT_MISSING_JSONL":"Import: missing JSONL","IMPORTMEMORI_INVALID_SPECS":"Import MEMORI: invalid specs","EXPORT_MISSING_PASSWORD":"Export: missing password","EXPORTCSV_MISSING_CSV_SPECS":"CSV export: missing CSV specifications","EXPORTCSV_MISSING_SEPARATOR":"CSV export: missing separator","EXPORTCSV_INVALID_SEPARATOR":"CSV export: invalid separator","EXPORTCSV_MISSING_TITLE_VARIANT_SEPARATOR":"CSV export: missing title variant separator","EXPORTCSV_MISSING_NEW_LINE_CHAR":"CSV export: missing newline character","EXPORTCSV_INVALID_NEW_LINE_CHAR":"CSV export: invalid newline character","EXPORTCSV_MISSING_PASSWORD":"CSV export: missing password","EXPORTJSONL_MISSING_JSONL_SPECS":"JSONL export: missing JSONL specifications","EXPORTJSONL_MISSING_PLATFORM":"JSONL export: missing platform","EXPORTJSONL_INVALID_PLATFORM":"JSONL export: invalid platform","EXPORTJSONL_MISSING_PASSWORD":"JSONL export: missing password","EXPORTJSONL_EXPORT_REQUIRES_PAYING":"JSONL Export: Export requires a paid plan","ANALYSIS_MISSING_QUERY":"Analysis: missing query","ANALYSIS_CANT_ANALYZE_SECRET_MEMORI":"Analysis: Unable to analyze Secret Memories","ANALYSIS_USER_QUERY_MATCH_REQUIRES_DEEP_THOUGHT":"Analysis: matching user query requires Deep Thinking","BADGE_ASSIGNMENT_WRONG_OR_MISSING_CREDENTIALS":"Badge assignment: incorrect or missing credentials","BADGE_ASSIGNMENT_MISSING_REF_ID":"Badge assignment: ref ID missing","BADGE_ASSIGNMENT_OUTCOME_NOT_FOUND":"Badge assignment: result not found","BADGE_ASSIGNMENT_MISSING_ASSERTION_URL":"Badge assignment: Missing assertion URL","BADGE_ASSIGNMENT_MISSING_BADGE_URL":"Badge Assignment: Missing Badge URL","BADGE_ASSIGNMENT_MISSING_ISSUER_URL":"Badge assignment: missing issuer URL","BADGE_ASSIGNMENT_INVALID_URL":"Badge assignment: Invalid URL","BADGE_ASSIGNMENT_MISSING_RECIPIENT":"Badge assignment: missing recipient","BADGE_ASSIGNMENT_UNKNOWN_RECIPIENT_TYPE":"Badge assignment: unknown recipient type","BADGE_ASSIGNMENT_MISSING_RECIPIENT_IDENTITY":"Badge assignment: missing recipient identity","BADGE_ASSIGNMENT_MISSING_RECIPIENT_HASH_TYPE":"Badge assignment: missing recipient hash type","BADGE_ASSIGNMENT_UNKNOWN_RECIPIENT_HASH_TYPE":"Badge assignment: recipient hash type unknown","BADGE_ASSIGNMENT_WRONG_RECIPIENT_IDENTITY":"Badge assignment: incorrect recipient identity","BADGE_NOT_FOUND":"Badge not found","OUTCOME_NO_DCM_CONFIGURED":"Outcome: no DCM configured","OUTCOME_USER_BADGES_DISABLED":"Outcome: user badges disabled","COMPLETION_CONFIG_MISSING_NAME":"Completions configuration: missing name","COMPLETION_CONFIG_MISSING_PROVIDER":"Completions configuration: missing provider","COMPLETION_CONFIG_MISSING_ENDPOINT":"Completions configuration: missing endpoint","COMPLETION_CONFIG_MISSING_API_KEY":"Completions configuration: missing API key","COMPLETION_CONFIG_MISSING_MODEL":"Completions configuration: missing model","COMPLETION_CONFIG_NO_PURPOSE_SPECIFIED":"Completions configuration: at least one completions type must be specified","COMPLETION_CONFIG_INVALID_NAME":"Completions configuration: invalid name","COMPLETION_CONFIG_INVALID_PURPOSE":"Completions configuration: invalid completions type","COMPLETION_CONFIG_INVALID_ENDPOINT":"Completions configuration: invalid endpoint","COMPLETION_CONFIG_INCONSISTENT_ENDPOINT":"Completions configuration: inconsistent endpoint","COMPLETION_CONFIG_INVALID_PROVIDER":"Completions configuration: invalid provider","COMPLETION_CONFIG_NOT_FOUND":"Completions configuration: not found","COMPLETION_CONFIG_NOT_ACCESSIBLE":"Completions configuration: not accessible","COMPLETION_CONFIG_NAME_RESERVED":"Completions configuration: name reserved","COMPLETION_CONFIG_NAME_ALREADY_EXISTS":"Completions configuration: name already exists","COMPLETION_CONFIG_VISIBILITY_CHANGE_NOT_ALLOWED":"Completions configuration: visibility change not allowed","COMPLETION_CONFIG_MISSING_MANDATORY_PREFIX":"Completions configuration: missing mandatory prefix","COMPLETION_CONFIG_VISIBILITY_NOT_PERMITTED":"Completions configuration: visibility not permitted","COMPLETION_CONFIG_USE_AS_DEFAULT_NOT_PERMITTED":"Completions configuration: use as default not permitted","COMPLETION_CONFIG_USE_AS_DEFAULT_REQUIRES_TENANT_VISIBILITY":"Completions configuration: use as default requires tenant visibility","COMPLETION_CONFIG_CHARGEABLE_NOT_PERMITTED":"Completions configuration: chargeable not permitted","COMPLETION_CONFIG_INVALID_APPLY_TO":"Completions configuration: apply to invalid","COMPLETION_CONFIG_APPLY_TO_TENANT_NOT_ALLOWED":"Completions configuration: apply to tenant not allowed","TRUSTED_APPLICATION_NOT_FOUND":"Trusted application not found","TRUSTED_APPLICATION_NOT_ACCESSIBLE":"Trusted application not accessible","TRUSTED_APPLICATION_NAME_REQUIRED":"Trusted application: name required","TRUSTED_APPLICATION_TOKEN_REQUIRED":"Trusted application: token required","TRUSTED_APPLICATION_NAME_ALREADY_EXISTS":"Trusted application: name already exists","TRUSTED_APPLICATION_INVALID_TOKEN":"Trusted application: invalid token"}}');var XM={};XM=JSON.parse('{"yes":"Oui","no":"Non","confirm":"Confirmer","apply":"Appliquer","cancel":"Annuler","show":"Montrer","hide":"Cacher","send":"Envoyer","scrollToLatest":"Aller au dernier message","scrollToContinueReading":"Faites défiler pour continuer à lire","close":"Fermer","clearHistory":"Effacer la conversation","clearHistoryDone":"Conversation effacée.","moreInfo":"Plus d\'informations","back":"Retour","edit":"Modifier","delete":"Supprimer","loading":"Chargement","expand":"Développer","collapse":"Réduire","expandable":{"expand":"Développer"},"fullscreenEnter":"Entrez en plein écran","fullscreenExit":"Quitter le plein écran","center":"Centre","bottom":"Bas","hidden":"Caché","day":"Jour","month":"Mois","year":"Année","placeholder":"Faites une question","createdAt":"Date de création","all":"Tous","today":"Aujourd\'hui","date":"Date de naissance","yesterday":"Hier","last_7_days":"7 derniers jours","copied":"Copié !","missingData":"Informations manquantes","last_30_days":"30 derniers jours","selected":"Choisi","page":"page","actions":"Actes","next":"Suivant","previous":"Précédent","copy":"Copie","copyRawCode":"Copier le code brut","feedback":"Commentaires","feedbackThankYou":"Merci pour votre retour.","copyFailed":"Impossible de copier","functionCache":"Cache des fonctions","copyToClipboard":"Copier dans le presse-papier","showOriginalText":"Afficher l\'original","showTranslatedText":"Afficher la traduction","exactPosition":"Position exacte","uncertain":"Incertain","question":"Question","nothingFound":"Rien trouvé","venue":"Lieu","searchVenue":"Rechercher un lieu…","popularLanguages":"Populaires","allLanguages":"Toutes les langues","memoriBlockedTitle":"Bloqué","memoriBlockedUntil":"Agent bloqué jusqu\'à {{date}}","memoriBlockedAnon":"Actuellement \\"{{name}}\\"Je ne peux pas répondre, reviens ici {{date}}","memoriBlockedReasonExceedChats":"car il a dépassé le seuil mensuel de chats autorisés.","memoriBlockedGiverHelper":"Vous pouvez toujours le gérer en tant qu\'administrateur, mais les autres utilisateurs ne pourront pas interagir avec lui.","generatedByAI":"Réponse générée par l\'IA, peut occasionnellement générer des informations incorrectes","aiGeneratedNote":"L\'agent peut faire des erreurs. Assurez-vous de vérifier les informations importantes.","reasoning":"Réflexion...","thinking":"Réflexion","thought":"Réflexion","thoughtFor":"Réfléchi pendant {{count}} s","whyThisAnswer":"D\'où vient cette réponse","whyThisAnswerHelper":"Cette réponse a été générée automatiquement par une intelligence artificielle basée sur ces contenus vérifiés.","whyThisAnswerDescription":"Les contenus de la base de connaissances consultés par l\'agent pour répondre.","whyThisAnswerYouAsked":"Vous avez demandé","whyThisAnswerUserAsked":"Question de l\'utilisateur","whyThisAnswerAgentReplied":"L\'agent a répondu","whyThisAnswerShowFull":"Afficher la réponse complète","whyThisAnswerContentsUsed":"Contenus utilisés","whyThisAnswerOpen":"Ouvrir","whyThisAnswerDisclaimer":"La réponse a été rédigée par l\'agent à partir de ces contenus : elle peut contenir des erreurs ou des reformulations. Vérifiez les informations importantes à la source.","whyThisAnswerEmptyTitle":"Aucun contenu consulté","whyThisAnswerEmptyDescription":"Pour cette question, l\'agent n\'a trouvé aucune correspondance dans la base de connaissances : il a répondu uniquement d\'après ses instructions.","whyThisAnswerEmptyAuthorDescription":"La question n\'a produit aucune correspondance. Si elle devrait en avoir, ajoutez un contenu qui la couvre.","whyThisAnswerAddContent":"Ajouter à la base de connaissances","whyThisAnswerConfidenceHigh":"Correspondance élevée","whyThisAnswerConfidenceMedium":"Correspondance partielle","whyThisAnswerConfidenceLow":"Correspondance faible","whyThisAnswerTypeQuestion":"Question et réponse","whyThisAnswerTypeDocument":"Document","whyThisAnswerTypeWebsite":"Site web","whyThisAnswerTypeStory":"Récit","whyThisAnswerSourcesCount_one":"{{count}} source","whyThisAnswerSourcesCount_other":"{{count}} sources","whyThisAnswerNoSources":"Aucune source","receiverLabel":"Assigné à","completionsEnabled":"L\'IA avancée peut répondre avec des réponses générées automatiquement qui peuvent parfois contenir des informations incorrectes","completionProviderDown":"Ce Agent est intégré à une IA générative de {{provider}}, mais il est actuellement indisponible. ","completionProviderMajorOutage":"Ce Agent est intégré à une IA générative de {{provider}}, mais il est actuellement indisponible. Cette fonctionnalité ne sera pas disponible tant que le service ne sera pas restauré.","completionProviderPartialOutage":"Ce Agent est intégré à une IA générative de {{provider}}, mais il est actuellement indisponible. Cette fonctionnalité ne sera pas disponible tant que le service ne sera pas restauré.","completionProviderDegraded":"Ce Agent est intégré à une IA générative de {{provider}}, mais il est actuellement indisponible. Cette fonctionnalité ne sera pas disponible tant que le service ne sera pas restauré.","completionProviderFallbackName":"un prestataire externe","completionProviderCheckStatusPage":"Vérifier la page d\'état","boardOfExperts":"Conseil d\'experts","birthDate":"Date de naissance","birthDateHelper":"Nous demandons votre date de naissance uniquement pour activer ou désactiver les fonctionnalités qui ont des restrictions d\'âge","underage":"Vous devez être au moins {{age}} ans pour s\'inscrire.","underageTwinSession":"Vous devez être au moins {{age}} ans pour interagir avec ce Agent.","errorFetchingSession":"Erreur lors du chargement de la session","errorGettingReferralURL":"Erreur lors du chargement du référent","errorReopeningSession":"Erreur lors de la re-ouverture de la session","sessionExpiredReopening":"Session expirée, réouverture en cours","ageVerification":"Vérification de l\'âge","ageVerificationText":"Pour interagir avec ce Agent, vous devez être au minimum {{minAge}} ans.","ageVerificationSuccess":"Âge vérifié avec succès.","nsfw":"NSFW : Ce jumeau contient du contenu pour adultes","deepThought":"Pensée profonde","deepThoughtWhatIs":"Qu\'est-ce que Deep Thought ?","deepThoughtHelper":"Deep Thought est une fonctionnalité avancée de l\'IA qui vous permettra d\'exploiter pleinement vos conversations en les gardant une trace. ","deepThoughtDisclaimerTitle":"Pensée profonde activée","deepThoughtDisclaimer":"Deep Thought est une fonctionnalité avancée de l\'IA qui vous permettra d\'exploiter pleinement vos conversations en les gardant une trace. ","deepThoughtPreDisclaimerUnlogged":"Connectez-vous pour activer Deep Thought.","deepThoughtPreDisclaimerNotAllowed":"Deep Thought est désactivé car vous n\'avez pas consenti à son utilisation, vous pouvez le modifier à tout moment dans les paramètres de votre compte.","notEnoughCredits":"L\'auteur de ce Agent n\'a pas suffisamment de crédits pour répondre à votre question.","confirmDialog":{"title":"Voulez-vous quitter cette page ?","message":"Les modifications que vous avez apportées seront perdues."},"knownFacts":{"title":"Faits connus","description":"Ce que {{memoriName}} retient de vous. Vous pouvez supprimer chaque entrée.","type":"Taper","typeShortTerm":"Court terme","typeLongTerm":"Long terme","typeHelper":"Types :\\n","text":"Texte","searchPlaceholder":"Rechercher parmi les faits","select":"Sélectionner","loadMore":"Charger plus","factsCount_one":"{{count}} fait","factsCount_other":"{{count}} faits","shownOfTotal":"{{shown}} sur {{total}} affichés","emptyTitle":"Aucun fait pour le moment","emptyDescription":"Au fil de la conversation, l\'agent note ici ce qu\'il apprend sur vous. Vous pourrez le supprimer à tout moment.","deleteLabel":"Supprimer ce fait","deleteSuccess":"Fait connu supprimé","deleteConfirmTitle":"Supprimer un fait connu","deleteConfirmMessage":"Êtes-vous sûr de vouloir supprimer ce fait connu ?","deleteSelectedConfirmTitle":"Supprimer les faits connus sélectionnés","deleteSelectedConfirmMessage":"Etes-vous sûr de vouloir supprimer les faits connus sélectionnés ?","selected_one":"{{count}} fait sélectionné","selected_other":"{{count}} faits sélectionnés","selectedRows_one":"{{count}} ligne sélectionnée","selectedRows_other":"{{count}} lignes sélectionnées"},"auth":{"title":"Authentification","description":"Cet agent est protégé. Saisissez le mot de passe pour continuer.","useRecoveryTokens":"Utiliser des jetons de récupération","tokens":"Jetons","addToken":"Ajouter un jeton","invalidCredentials":"Identifiants invalides","usePassword":"Utiliser le mot de passe","atLeast":"Au moins"},"widget":{"instruct":"Instruire","test":"Tester","sound":"Son","soundOff":"Son désactivé","position":"Préférences de position","settings":"Paramètres","share":"Partager","shareChat":"Partager le chat","sendOnKeypress":"Appuyez sur Entrée pour envoyer","sendOnClick":"Cliquez sur Envoyer","boardOfExperts":"Conseil d\'experts","showExpertsInTheBoard":"Afficher les experts dans ce conseil","expertsInTheBoard":"Experts dans ce conseil","goToIntegrationsToCustomizeAvatar":"Pour personnaliser l\'avatar, allez dans Partager et personnalisez la page publique","chatAssistantStatus":"Actif • Répond en quelques secondes","agentStatusListening":"à l\'écoute","agentStatusSpeaking":"parle","agentStatusProcessing":"en traitement","shareLocation":"Partager la position","shareLocationHint":"Obtenez des réponses adaptées à votre position","shareLocationAria":"Partager la position avec l\'assistant","knownFactsHint":"Ce que je retiens à votre sujet","aiConsumption":"Utilisation de l\'IA","editPositionAria":"Modifier la position","positionResolving":"Résolution de l\'adresse…","geocodingFailed":"Impossible de déterminer l\'adresse. Réessayez ou recherchez manuellement.","positionUnavailableManual":"Position indisponible. Saisissez-la manuellement.","positionSharingEnabled":"Position partagée.","headerHistory":"Historique","headerProfile":"Profil","headerLogin":"Connexion","downloadQrCode":"Télécharger le QR Code","expandToImmersive":"Agrandir pour une vue immersive","moreActions":"Plus d\'actions","mobileSession":{"session":"Session","sessionInfo":"Infos de session","copyLinkOrDownload":"Copier le lien ou télécharger","currentlyOff":"Actuellement désactivé","whatIKnowAboutYou":"Détails des informations partagées entre vous et {{memoriName}}","locationTracking":"Suivi de position","locationStatus":"Statut","useCurrentPosition":"Utiliser la position actuelle","disableLocationSharing":"Désactiver le partage de position","openKnownFacts":"Ouvrir tous les faits connus","knownFactsMessages":"{{count}} messages dans la session en cours"}},"exportChatHistory":{"exportPDF":"Exporter le chat en PDF","exporting":"Exportation en cours...","empty":"Aucun historique de chat à exporter","pdfNotSupported":"L\'exportation PDF n\'est pas prise en charge dans ce navigateur","success":"Chat exporté en PDF avec succès","error":"Échec de l\'exportation du chat en PDF. Veuillez réessayer."},"write_and_speak":{"conversationStartedLabel":"Conversation démarrée","micButtonPopover":"Cliquez sur le bouton pour parler","micButtonPopoverListening":"Cliquez sur le bouton pour arrêter de parler","stopRecording":"Arrêter l\'enregistrement","sendRecording":"Envoyer le message vocal","recordingInProgress":"Enregistrement en cours","pageInstructExplanation":"Pour m\'apprendre de nouvelles choses, cliquez sur le bouton INSTRUCTEZ-MOI pour commencer","pageTryMeExplanation":"Pour commencer à parler avec moi, cliquez sur le bouton START","pagePrivacyExplanation":"Les conversations sont visibles par l\'auteur de l\'agent","pagePrivacyExplanationTooltip":"En commençant la conversation, nous vous informons que :\\n\\n- Toutes les conversations avec cet agent sont visibles par l\'auteur de l\'agent\\n- Si vous utilisez la chat comme utilisateur anonyme, l\'auteur pourra voir le contenu de la conversation et votre adresse IP\\n- Si vous utilisez la chat comme utilisateur enregistré (connecté), l\'auteur pourra voir le contenu de la conversation et votre nom d\'utilisateur\\n- L\'auteur utilise ces informations pour améliorer les fonctionnalités de l\'agent et pour vous fournir un meilleur service\\n- En continuant la conversation, vous acceptez ces conditions.","pagePrivacyExplanationList":{"allConversations":"Toutes les conversations avec cet agent sont visibles par l\'auteur de l\'agent","anonymousUser":"Pour les utilisateurs anonymes : l\'auteur verra le contenu de la conversation et votre adresse IP","registeredUser":"Pour les utilisateurs enregistrés : l\'auteur verra le contenu de la conversation et votre nom d\'utilisateur","contentAndUsername":"L\'auteur peut voir le contenu, votre nom d\'utilisateur et votre adresse IP","contentAndIpAddress":"L\'auteur peut voir le contenu et votre adresse IP","authorUsesInfo":"L\'auteur utilise ces informations pour améliorer les fonctionnalités de l\'agent et pour vous fournir un meilleur service."},"aiDisclaimer":"L\'agent peut commettre des erreurs. Veuillez vérifier les réponses.","downloadChat":"Télécharger le chat","instructButton":"INSTRUCTEZ-MOI","tryMeButton":"COMMENCER","resumeButton":"RÉSUMER","chatHistory":"Historique des discussions","chatHistoryDescription":"Afficher l\'historique des discussions avec cet agent","loadingChatHistory":"Chargement de l\'historique des discussions...","noChatHistoryAvailable":"Aucun historique des discussions disponible","noResultsFound":"Aucun résultat trouvé pour \\"{{searchText}}\\"","searchInChatHistory":"Rechercher dans les conversations","filters":"Filtres","latestFirst":"Plus récents d\'abord","oldestFirst":"Plus anciens d\'abord","exportChat":"Exporter le Chat","settingsHeaderLabel":"Configurez ici si vous souhaitez définir la mémoire comme parole continue et modifiez les secondes de silence si vous souhaitez les personnaliser.","continuousSpeechLabel":"Discours continu","continuousSpeechDisabled":"Discours continu désactivé car l\'agente est en mode muté","holdToSpeak":"Attends pour parler","releaseToEndListening":"Relâcher pour terminer l\'écoute","pressAndHoldToSpeak":"Appuyez et maintenez pour parler","microphoneMode":"Mode micro","hideEmissionsLabel":"Masquer le texte émis par le Agent","showMessageConsumptionLabel":"Afficher la consommation par message","secondsLabel":"Régler les secondes","controlsPosition":"Position des commandes","tryMeHeaderLabel":"ESSAYER","unknownPosition":"Position inconnue","fieldPlace":"Écrivez le lieu (par exemple « Milano »)","showMapLinkFor":"Afficher la position sur la carte","useMyPosition":"Utiliser ma position","myPosition":"Votre poste","updatingPosition":"Mise à jour du poste...","placeNotFound":"Lieu introuvable !","requirePosition":"Insérez votre position avant de commencer","requirePositionHelp":"Pour parler à {{name}} vous devez décider si vous souhaitez ou non fournir votre poste. ","dontWantToProvidePosition":"Continuer sans lieu","requireLoginHelp":"Pour parler à {{name}}, vous devez d\'abord vous connecter à votre compte.","skipLocationTitle":"Aucune position ne sera enregistrée sur la carte.","locationSaved":"Votre position a été enregistrée.","locationSavedWithPlace":"Votre position a été enregistrée : {{place}}","locationSkippedConfirm":"Vous continuerez sans partager votre position.","placeSelected":"Lieu sélectionné : {{place}}","locationPermissionDenied":"L\'accès à la position a été refusé. Autorisez-la dans les paramètres du navigateur ou choisissez un lieu sur la carte.","locationUnavailable":"Impossible de déterminer votre position. Réessayez ou recherchez un lieu.","locationRequestTimedOut":"La demande de position a expiré. Réessayez ou recherchez un lieu.","locationErrorGeneric":"Un problème est survenu lors de l\'obtention de votre position.","attachmentsLabel":"Enrichissez votre message","image":"image","images":"images","file":"fichier","files":"fichiers","function":"fonction","functions":"fonctions","iWantToTalkToIn":"je veux parler à {{name}} dans","chatLanguageLabel":"Choisissez la langue de la conversation","chatResumed":"Conversation reprise avec succès.","message":"message","messages":"messages","page":"Page {{current}} de {{total}}","downloadThisConversation":"Télécharger cette conversation","downloadAllConversations":"Télécharger toutes les conversations","conversationsCount_one":"{{count}} conversation","conversationsCount_other":"{{count}} conversations","shownOfTotal":"{{shown}} sur {{total}} affichées","loadMore":"Charger plus","backToConversationList":"Retour à la liste des conversations","thisWeek":"Cette semaine"},"chatResume":{"resume":"Reprendre la conversation"},"artifact":{"close":"Fermer","size":"Taille","updated":"mis à jour","updateFailed":"Mise à jour non appliquée","updateFailedHint":"Le correctif ne correspond pas au contenu actuel. Demandez de réécrire l\'artifact.","generated":"Généré","download":"Télécharger","print":"Imprimer","external":"Ouvrir dans une nouvelle fenêtre","type":"Type","fullscreen":"Plein écran","exitFullscreen":"Quitter le plein écran","copy":"Copier","generatedAt":"Généré le","open":"Ouvrir","code":"Code","source":"Source","preview":"Aperçu","resizeHandle":"Redimensionner le panneau artifact","copied":"Copié !","error":"Erreur","generatingPdf":"Génération du PDF...","copying":"Copie en cours...","moreCopyOptions":"Plus d\'options de copie","copyAs":"Copier en tant que","downloadAsMarkdown":"Télécharger en Markdown","downloadRawMarkdownText":"Télécharger le texte markdown brut","downloadAsPdf":"Télécharger en PDF","exportAsPdfDocument":"Exporter en document PDF","downloadAsHtml":"Télécharger en HTML","downloadFormattedHtml":"Télécharger le HTML formaté","viewMode":"Mode Affichage","codeMode":"Mode Code","refresh":"Actualiser","share":"Partager","downloadAsJson":"Télécharger en JSON","downloadJsonData":"Télécharger les données JSON","downloadAsPng":"Télécharger en PNG","downloadPngImage":"Télécharger l\'image PNG","downloadAsJpeg":"Télécharger en JPEG","downloadJpegImage":"Télécharger l\'image JPEG","downloadAsGif":"Télécharger en GIF","downloadGifImage":"Télécharger l\'image GIF","downloadAsWebp":"Télécharger en WebP","downloadWebpImage":"Télécharger l\'image WebP","copyAsSvg":"Copier en SVG","copySvgSourceCode":"Copier le code source SVG","copyAsPlainText":"Copier en texte brut","copyAsText":"Copier en texte","copyAsLanguage":"Copier en {{language}}","copyLanguageCode":"Copier le code {{language}}","copyWithoutSyntaxHighlighting":"Copier sans coloration syntaxique","copyTextContent":"Copier le contenu texte","pdfExportNotSupported":"L\'exportation PDF n\'est pas prise en charge dans ce navigateur","popupBlocked":"Popup bloqué ! Veuillez activer les popups pour imprimer.","safariPdfInstructions":"Export PDF ouvert dans une nouvelle fenêtre. Veuillez utiliser Cmd+P (Mac) ou Ctrl+P (Windows) pour imprimer et sauvegarder en PDF."},"upload":{"loginRequired":"Connexion requise","pastedText":"texte-collé","uploadNotification":"Échec du téléchargement","loginRequiredDescription":"Veuillez vous connecter pour télécharger des images","uploadFiles":"Télécharger des fichiers (drag and drop)","uploadFilesOrImages":"Télécharger des fichiers ou des images","uploadFilesWithShortcut":"{{shortcut}}+O pour ouvrir le sélecteur de fichiers","uploadImages":"Télécharger des images","titleImage":"Ajouter un titre à l\'image","uploadDocuments":"Télécharger des documents","replace":"Remplacer","remaining":"restant","maxReached":"Limite atteinte","maxImagesReached":"Vous pouvez télécharger jusqu\'à {{max}} images","apiClientNotConfigured":"API client non configuré correctement pour le téléchargement de médias","fileReadingFailed":"Échec de la lecture du fichier","uploadFailed":"Échec du téléchargement","uploadSuccess":"Téléchargement réussi","uploadSuccessDescription":"Le fichier a été téléchargé avec succès","dragAndDropFiles":"Glissez et déposez les fichiers ici pour les ajouter à la chat","contextSizeExceedsLimit":"La taille du contexte dépasse la limite. Essayez de réduire le nombre de fichiers ou le contenu de la conversation.","filesNotAddedMaxAllowed":"{{count}} fichier(s) non ajouté(s) (maximum {{max}} fichiers autorisés).","documentsNotAddedMaxAllowed":"{{count}} document(s) non ajouté(s) (maximum {{max}} fichiers autorisés).","imagesNotAddedMaxAllowed":"{{count}} image(s) non ajoutée(s) (maximum {{max}} fichiers autorisés).","documentsNotAddedContextSize":"{{count}} document(s) non ajouté(s) (limite de taille du contexte).","partialAssetUploadWarning":"Certains liens de fichier n\'ont pas pu être téléversés, mais le document a été ajouté quand même.","anonymousRetentionNotice":"Remarque : les fichiers téléversés sont conservés pendant un maximum de 24 heures."},"media":{"title":"Titre","editAttributes":"Modifier les attributs du média","uploadMimeTypeNotAllowed":"Le type de fichier n\'est pas autorisé","uploadSizeLimitMessage":"La taille téléchargée est trop grande (max {{size}}Mo)","uploadWrongResolutionMessage":"La résolution doit être {{width}}x{{height}} pixels","memoriNameAlreadyUsed":"Vous avez déjà un jumeau portant ce nom","uploadHelperImages":"Téléchargez un fichier avec l\'extension png, jpg, jpeg ou gif, et ayant au maximum une taille de {{size}}Mo","uploadHelper":"Téléchargez un fichier ayant au maximum une taille de {{size}}Mo","uploadError":"Échec du téléchargement","square":"carré","scaleRatio":"Rapport d\'échelle","addMediaLabel":"Ajouter un média","insertThisMediaMsg":"Insérez ces médias","mediaUploadMessage":"Cliquez pour charger un nouveau média","addLinkLabel":"Ajouter un lien","linkKey":"URL","linkValue":"Titre du lien","insertThisLink":"Insérer un lien vers {{url}} avec titre {{title}}"},"gamification":{"level":"Niveau","points":"points","memoriReachedLevel":"est devenu plus évolué et a atteint le niveau","levelGoToStatistics":"{{Agent}} est au niveau {{level}} avec {{points}} points. ","congratulationsNewLevel":"Félicitations, vous avez atteint un nouveau niveau !","congratulationsNewLevelDescription":"Votre Agent est devenu plus évolué avec {{points}} points, regardez le","statistics":"statistiques"},"login":{"login":"Se connecter","title":"Se connecter à votre compte","loggingIn":"Connexion en cours…","logout":"Déconnexion","user":"Utilisateur","loggedDrawerTitle":"Salut, {{name}}!","userNameRequired":"Nom d\'utilisateur requis","userName":"Nom d\'utilisateur","userNamePlaceholder":"Inserisci le nom d\'utilisateur","loginDrawerTitle":"Se connecter","signupDrawerTitle":"S\'inscrire","newUserSignUp":"Nouvel utilisateur ?","signUp":"S\'inscrire!","alreadyHaveAnAccount":"Vous avez déjà un compte ?","backToLogin":"Retour à la connexion","registrationDisabled":"L\'inscription est désactivée","contactAdmin":"Contacter l\'administrateur pour demander l\'accès","userNameOrEmail":"Nom d\'utilisateur ou email","email":"E-mail","emailFormatError":"Veuillez insérer un email valide","username":"Nom d\'utilisateur","usernameContainsReservedWord":"Le nom d\'utilisateur contient un mot réservé, veuillez en choisir un autre","usernameFormatError":"Le nom d\'utilisateur doit comporter au moins 3 caractères et contenir uniquement des lettres, des chiffres et _","otpCode":"Le code de vérification","resendVerificationCode":"Renvoyer le code","resentVerificationCode":"Code de confirmation envoyé ! ","welcomeTitle":"Bon retour","welcomeDescription":"Entrez votre code de vérification à 4 chiffres pour continuer vers votre compte","otpTitle":"Entrez le code de vérification","otpDescription":"Entrez le code à 4 chiffres que vous avez généré dans votre compte","otpStep1":"Cliquez sur le bouton ci-dessous pour ouvrir votre compte","otpStep2":"Générez un code de vérification à 4 chiffres (valide pendant 5 minutes)","otpStep3":"Revenez ici et entrez le code","startOtpLogin":"Commencer la vérification","generateOtp":"Générer le code","otpTimer":"Le code expire dans {{time}}","otpInvalidFormat":"Veuillez entrer un code valide à 4 chiffres","otpInvalid":"Code de vérification invalide","otpError":"Erreur lors de la validation du code. Veuillez réessayer.","otpSuccess":"Connexion réussie !","otpEmailTitle":"Entrez votre email","otpEmailDescription":"Entrez votre adresse email pour recevoir un code de vérification","otpCodeDescription":"Entrez le code à 4 chiffres envoyé à {{email}}","emailPlaceholder":"Entrez votre email","sendOtp":"Envoyer le code","resendOtp":"Renvoyer","resendOtpIn":"Renvoyer dans {{seconds}}s","resendOtpPrompt":"Pas reçu ? Renvoyer dans {{seconds}} s","resendOtpQuestion":"Pas reçu ?","resending":"Envoi en cours...","backToEmail":"Retour à l\'email","editEmail":"Modifier","otpSentToPrefix":"Nous avons envoyé un code à 4 chiffres à","otpCodeShort":"Code","loginBenefitLine1":"{{memoriName}} peut vous montrer l\'historique de chat, qui peut être repris à tout moment.","loginBenefit":"{{memoriName}} peut vous montrer l\'historique de chat, qui peut être repris à tout moment.","passwordlessHint":"Nous vous envoyons un code à 4 chiffres. Aucun mot de passe à retenir.","defaultAgentName":"l\'agent","otpSent":"Code de vérification envoyé !","otpResent":"Code renvoyé avec succès !","otpSendError":"Erreur lors de l\'envoi du code. Veuillez réessayer.","emailRequired":"Email requis","emailInvalid":"Veuillez entrer une adresse email valide","otpNotFound":"Code de vérification introuvable","otpExpired":"Le code de vérification a expiré","otpMissing":"Le code de vérification est requis","otpAttemptsExceeded":"Trop de tentatives. Demandez un nouveau code de vérification.","otpSuccessMessage":"Vérification réussie ! Redirection...","otpSuccessDescription":"Votre compte a été vérifié avec succès. Vous allez être redirigé sous peu.","otpHelp":"Entrez le code à 4 chiffres de votre email","emailHelp":"Nous vous enverrons un code de vérification","userFetchError":"Erreur lors du chargement des données utilisateur. Veuillez réessayer.","otpStep1Title":"Entrez l\'Email","otpStep2Title":"Vérifiez l\'Email","otpStep3Title":"Entrez le Code","featureFast":"Rapide","featureSecure":"Sécurisé","featureMobile":"Mobile","password":"Mot de passe","newPassword":"Nouveau mot de passe","confirmPassword":"Confirmez le mot de passe","currentPassword":"Mot de passe actuel","passwordMatchingError":"Les mots de passe ne correspondent pas.","passwordFormatError":"Le mot de passe doit comporter au moins 8 caractères et contenir au moins un chiffre, une lettre majuscule, une lettre minuscule et un symbole.","pwdWeak":"Faible","pwdAcceptable":"Acceptable","pwdStrong":"Fort","mustChangePassword":"Vous devez changer votre mot de passe","passwordChange":"Changer le mot de passe","emailChange":"Changer d\'e-mail","avatarChange":"Changer d\'avatar","avatarUploadSuccess":"Photo de profil mise à jour.","underage":"Vous devez être au moins {{age}} ans pour s\'inscrire.","optional":"Facultatif","birthDate":"Date de naissance","birthDatePlaceholder":"JJ/MM/AAAA","birthDateHelper":"Nous demandons votre date de naissance uniquement pour activer ou désactiver les fonctionnalités qui ont des restrictions d\'âge","missingData":"Informations manquantes","missingDataHelper":"Nous savons que c\'est un peu ennuyeux, mais nous avons besoin de plus d\'informations pour finaliser votre inscription.","goToAccountToChangeYourPreferences":"Vous pouvez modifier votre choix à tout moment depuis la page de votre compte.","deepThoughtExplaination":"Deep Thought est une fonctionnalité avancée de l\'IA qui vous permettra d\'exploiter pleinement vos conversations en les gardant une trace. ","tnCAndPPAcceptedHelper":"Depuis votre dernière connexion, les conditions générales et la politique de confidentialité ont changé. ","privacyLabel":"J\'ai lu et accepté le","privacyAndCookiePolicy":"Politique de confidentialité et de cookies","and":"et","termsOfService":"Conditions d\'utilisation","pAndCUAccepted":"J\'accepte les conditions d\'utilisation de Deep Thought","editAccount":"Modifier le compte","save":"Sauvegarder","successfullyLoggedIn":"{{username}} s\'est connecté avec succès"},"chatLogs":{"llm":"LLM","model":"Modèle","provider":"Fournisseur","tokens":"Tokens","input":"Entrée","output":"Sortie","cacheRead":"Lecture cache","cacheWrite":"Écriture cache","duration":"Durée","energy":"Énergie","co2":"CO2","water":"Eau","usageBadgesHint":"Cliquez sur un de ces boutons pour afficher plus d\'informations","totalChatConsumptionTitle":"Consommation Totale du Chat","modelUsage":"Utilisation du modèle","environmentalImpact":"Impact environnemental","impactComparisonUnavailable":"Comparaison indicative non disponible.","impactComparisonEnergy":"Comparaison indicative : environ comme laisser allumee une ampoule LED de 10 W pendant {{duration}}.","impactComparisonCo2":"Comparaison indicative : environ {{distance}} parcourus en voiture essence moyenne.","impactComparisonWater":"Comparaison indicative : environ {{count}} gouttes d\'eau.","energyImpactDescription":"Cette valeur estime l\'energie electrique necessaire pour generer la reponse du modele. Elle permet de comparer prompts, modeles et strategies meme quand l\'impact d\'un seul message est tres faible.","co2ImpactDescription":"Le CO2 equivalent represente l\'impact climatique estime du message. Traduire la consommation en emissions aide a comprendre le poids environnemental d\'une reponse IA avec des mesures comparables.","waterImpactDescription":"Cet indicateur montre l\'empreinte hydrique estimee associee au traitement du message. Il inclut l\'eau utilisee indirectement par l\'energie et l\'infrastructure qui soutiennent le calcul.","approximateValuesTooltip":"Ces valeurs sont approximatives.","anyMessage":"Tout message","atLeast":"Au moins {{count}} messages","atLeast1":"Au moins 1 message","atLeast2":"Au moins 2 messages","atLeast3":"Au moins 3 messages","atLeast5":"Au moins 5 messages","atLeast10":"Au moins 10 messages","atLeast15":"Au moins 15 messages","atLeast20":"Au moins 20 messages","customMinimumMessages":"Personnaliser le nombre de messages"},"success":"Succès","Error":"Erreur","internal server error":"Oupsie, désolé... Quelque chose s\'est mal passé sur le serveur","error":"Erreur","error.loading":"Erreur lors du chargement du contenu.","error.generic":"Oupsie, désolé... quelque chose s\'est mal passé.","error.serverNotResponding":"Nous effectuons une maintenance ou publions des mises à jour. ","error.notFound":"Oupsie, nous n\'avons pas trouvé la page que vous cherchiez.","error.goBackTo":"Vous pouvez essayer de revenir au","error.reloadPage":"Recharger la page","error.tryAgain":"Essayer à nouveau","error.unauthorized":"Vous n\'êtes pas autorisé à consulter ce contenu.","error.unprocessableEntity":"Erreur lors du traitement de la demande. ","errors":{"TENANT_NOT_FOUND":"Locataire introuvable","TENANT_REGISTRATION_DISABLED":"L\'inscription sur cette plateforme est désactivée","TENANT_MISSING_NAME":"Locataire : nom manquant","TENANT_MAX_USERS_REACHED":"Nombre maximum d\'utilisateurs atteint","TENANT_MAX_ADMINS_REACHED":"Nombre maximum d\'utilisateurs administrateurs atteint","TENANT_ALREADY_EXISTS":"Le locataire existe déjà","TENANT_MISSING_DESCRIPTION":"Locataire : description manquante","TENANT_CANT_SET_COMPLETION_PROVIDER":"Locataire : impossible de définir le fournisseur de complétion","TENANT_INVALID_TYPE":"Locataire : type non valide","USER_NOT_CONFIRMED":"L\'utilisateur n\'est toujours pas confirmé","USER_NOT_FOUND":"Utilisateur introuvable","USER_OR_PASSWORD_INVALID":"Utilisateur ou mot de passe invalide","USER_MUST_CHANGE_PASSWORD":"Vous devez changer votre mot de passe","USER_MUST_ENTER_VERIFICATION_CODE":"Vous devez entrer le code de vérification","USER_MISSING_TENANT":"Utilisateur : locataire manquant","USER_MISSING_NAME":"Utilisateur : le nom est manquant","USER_MISSING_PASSWORD":"Utilisateur : mot de passe manquant","USER_MISSING_EMAIL":"Utilisateur : E-mail manquant","USER_MISSING_VERIFICATION_CODE":"Utilisateur : Code de vérification manquant","USER_NAME_ALREADY_USED":"Nom d\'utilisateur déjà utilisé","USER_PASSWORD_NOT_CONFORMING_TO_POLICY":"Le mot de passe ne répond pas aux règles de sécurité","USER_EMAIL_ALREADY_USED":"E-mail déjà utilisé","USER_EMAIL_INVALID":"E-mail invalide","USER_VERIFICATION_CODE_INVALID":"Code de vérification invalide","USER_MISSING_NAME_OR_EMAIL":"Nom d\'utilisateur ou e-mail manquant","USER_NAME_INVALID":"Nom d\'utilisateur invalide","USER_HAS_ONE_OR_MORE_MEMORI":"L\'utilisateur possède une ou plusieurs mémoires","USER_MISSING_NEW_PASSWORD":"Utilisateur : nouveau mot de passe manquant","USER_NOTHING_TO_DO":"Rien à faire","USER_CANT_CREATE_MEMORI":"L\'utilisateur n\'est pas autorisé à créer des Agent","USER_MAX_MEMORI_REACHED":"Nombre maximum de Agent atteint","USER_ORDER_BY_INVALID":"Ordre par non valide","USER_TOO_MANY_ATTEMPTS":"Trop de tentatives","USER_MUST_ACCEPT_TNC_AND_PP":"Vous devez accepter les termes et conditions","USER_BIRTH_DATE_CANT_BE_CHANGED":"La date de naissance ne peut pas être modifiée","USER_CANT_SET_COMPLETION_PROVIDER":"Utilisateur : non autorisé à gérer le fournisseur de complétion","USER_CANT_ENABLE_DEEP_THOUGHT":"Utilisateur : non autorisé à gérer Deep Thought","USER_CANT_ENABLE_DCM_INTEGRATION":"Utilisateur : non autorisé à gérer l\'intégration DCM","USER_CANT_ENABLE_CHAINING_OR_BOARD_OF_EXPERTS":"Utilisateur : non autorisé à gérer des chaînages ou des groupes d\'experts","USER_CREATION_BILLING_DENIED_PERMISSION":"Vous n\'avez pas assez de crédits pour créer un Agent","USER_HAS_ONE_OR_MORE_COMPLETION_CONFIGS":"L\'utilisateur dispose d\'une ou plusieurs configurations de complétion","USER_CANT_BE_DELETED":"L\'utilisateur ne peut pas être supprimé","MEMORI_NOT_FOUND":"Mémoire introuvable","MEMORI_NOT_ACCESSIBLE":"Mémoires non accessibles","MEMORI_ONLY_OWNER_CAN_CHANGE_GIVER_TAG_AND_PIN":"Seul le propriétaire peut modifier le tag ou le code PIN","SESSION_NOT_FOUND":"Séance introuvable","SESSION_IS_NOT_ADMINISTRATIVE":"Séance non administrative","SESSION_EXPIRED":"Session expirée","speechMissingSession":"La voix nécessite une session active","speechInvalidSession":"Session non valide","speechTenantMismatch":"La voix n\'est pas disponible sur ce site","speechRateLimited":"Trop de requêtes vocales. Patientez un instant et réessayez.","SESSION_OTP_NOT_FOUND":"Code de vérification introuvable","SESSION_OTP_EXPIRED":"Le code de vérification a expiré","SESSION_OTP_INVALID":"Code de vérification invalide","SESSION_OTP_ATTEMPTS_EXCEEDED":"Trop de tentatives. Demandez un nouveau code de vérification.","MEMORI_MISSING_CONFIGURATION":"Agent : configuration manquante","MEMORI_CONFIGURATION_NOT_FOUND":"Agent : configuration introuvable","MEMORI_INVALID_PRIVACY_TYPE":"Agent : type de confidentialité non valide","MEMORI_MISSING_PASSWORD":"Agent : mot de passe manquant","MEMORI_INVALID_TOTAL_NUMBER_OF_RECOVERY_TOKENS":"Agent : nombre total de jetons de récupération invalides","MEMORI_INVALID_MINIMUM_NUMBER_OF_RECOVERY_TOKENS":"Agent : nombre minimum de jetons de récupération invalides","MEMORI_INVALID_VOICE_TYPE":"Agent : type de voix invalide","MEMORI_MISSING_NAME":"Jumeau : nom manquant","MEMORI_MISSING_PASSWORD_OR_RECOVERY_TOKENS":"Agent : mot de passe ou jeton de récupération manquant","MEMORI_INVALID_ID":"Jumeau : pièce d\'identité invalide","MEMORI_NAME_ALREADY_USED":"Nom jumeau déjà utilisé","MEMORI_INVALID_PIN":"Agent : code PIN invalide","MEMORI_GIVER_TAG_PIN_CHANGE_REQUIRES_SEPARATE_OPERATION":"Agent : le changement de TAG et de PIN nécessite des opérations distinctes","MEMORI_NO_PASSWORD_WHEN_PUBLIC":"Agent : aucun mot de passe requis lorsqu\'il est public","MEMORI_DEEP_THOUGHT_REQUIRES_COMPLETIONS":"Deep Thought nécessite que les complétions soient activées","MEMORI_BOARD_OF_EXPERTS_REQUIRES_COMPLETIONS":"Le groupe d\'experts exige que les complétions soient activées","MEMORI_INVALID_COMPLETION_CONFIG":"Agent : configuration des complétions non valide","MEMORI_MACRO_FUNCTIONS_REQUIRES_COMPLETIONS":"Macro fonctions requiert que les complétions soient activées","MEMORI_BLOCKING_DATE_MISSING_OR_WRONG":"Gemmeau : date de blocage manquante ou incorrecte","MEMORI_LIST_FILTER_NOT_SPECIFIED":"Gemmeau : filtre non spécifié","MEMORI_TRANSFER_MISSING_DESTINATION_USER":"Transfert : utilisateur de destination manquant","MEMORI_TRANSFER_INVALID_DESTINATION_USER_ID":"Transfert : ID utilisateur de destination non valide","MEMORI_TRANSFER_DESTINATION_USER_DATA_INCONSISTENT":"Transfert : données utilisateur de destination non valides","MEMORI_TRANSFER_NOTHING_TO_DO":"Transfert : rien à faire","MEMORI_CONFIGURATION_CANT_BE_CHANGED":"Mémoires : la configuration ne peut pas être modifiée","MEMORI_MISSING_NEW_PASSWORD":"Souvenirs : nouveau mot de passe manquant","MEMORI_FEATURE_REQUIRES_SUBSCRIPTION":"La fonctionnalité nécessite un abonnement","MEMORI_SESSION_NOT_FOUND":"Séance introuvable","MEMORI_SESSION_DOESNT_ACCEPT_MEDIA":"Séance ne pas accepter les médias","INTEGRATION_NOT_FOUND":"Intégration introuvable","MEMORI_SESSIONS_INVALID_DATE_FROM_FORMAT":"Date invalide du format","MEMORI_SESSIONS_INVALID_DATE_TO_FORMAT":"Date à formater invalide","INTEGRATION_INVALID_TYPE":"Type d\'intégration invalide","INTEGRATION_ALREADY_EXISTS":"L\'intégration existe déjà","INTEGRATION_MEMORI_IS_NOT_PUBLIC":"Les mémoires non publiques ne peuvent pas être intégrées","INTEGRATION_MISSING_INVOCATION_TEXT":"Intégration : texte d\'invocation manquant","INTEGRATION_MISSING_DEVICE_EMAILS":"Intégration : e-mail de l\'appareil manquant","INTEGRATION_MEMORI_IS_EMPTY":"Les mémoires vides ne peuvent pas être intégrées","INTEGRATION_MISSING_PRIVACY_POLICY":"Intégration : politique de confidentialité manquante","INTEGRATION_MISSING_CATEGORY":"Catégorie d\'intégration manquante","INTEGRATION_MISSING_DESCRIPTION":"Description de l\'intégration manquante","INTEGRATION_INVALID_INVOCATION_TEXT":"Texte d\'appel invalide","INTEGRATION_GOOGLE_NO_MORE_AVAILABLE":"Google Home n\'est plus disponible","UPLOAD_REQUIRES_MULTIPART_ENCODING":"Le téléchargement nécessite un codage en plusieurs parties","UPLOAD_MISSING_CONTENT_TYPE_BOUNDARY":"Téléchargement : limite de type de contenu manquante","UPLOAD_MAX_LENGTH_EXCEEDED":"Téléchargement : taille maximale dépassée","UPLOAD_FILE_IS_EMPTY":"Télécharger : fichier vide","UPLOAD_INVALID_FILE_TYPE_OR_SIGNATURE":"Téléchargement : type de fichier ou signature non valide","UPLOAD_MISSING_FILE_NAME":"Télécharger : nom de fichier manquant","UPLOAD_INVALID_MEMORY_ID":"Télécharger : ID de contenu invalide","UPLOAD_MISSING_FILE_CONTENT":"Télécharger : contenu du fichier manquant","ASSET_NOT_FOUND":"Actif introuvable","ASSET_NOT_ACCESSIBLE":"Actif non accessible","ASSET_MISSING_SESSION_ID":"Élément : ID de session manquant","ASSET_INVALID_FILE_NAME":"Élément : nom de fichier non valide","ASSET_MALWARE_SCAN_THREATS_FOUND":"Élément : menaces de scan de malware trouvées","INVITATION_NOT_FOUND":"Invitation introuvable","INVITATION_NOT_ACCESSIBLE":"Invitation non accessible","INVITATION_ALREADY_ACCEPTED":"Invitation déjà acceptée","INVITATION_ALREADY_REJECTED":"Invitation déjà rejetée","INVITATION_MISSING_DESTINATION_EMAIL":"Invitation : e-mail de destination manquant","INVITATION_DESTINATION_EMAIL_INVALID":"Invitation : e-mail de destination invalide","INVITATION_MISSING_TAG":"Invitation : étiquette manquante","INVITATION_MISSING_PIN":"Invitation : code PIN manquant","INVITATION_INVALID_PIN":"Invitation : code PIN invalide","INVITATION_INVALID_TYPE":"Invitation : type non valide","INVITATION_MISSING_DESTINATION_NAME":"Invitation : le nom de la destination est manquant","INVITATION_TAG_PIN_CANT_BE_CHANGED":"Invitation : le tag et le code PIN ne peuvent pas être modifiés","INVITATION_CANT_BE_CHANGED":"Intation : ne peut pas être modifié","ACTIONLOG_INVALID_USER_ID":"ID utilisateur invalide","ACTIONLOG_INVALID_DATE_FROM_FORMAT":"Date de : format non valide","ACTIONLOG_INVALID_DATE_TO_FORMAT":"Date de : format non valide","ACTIONLOG_INVALID_MEMORI_ID":"Identifiant Agent invalide","CONSUMPTIONLOG_INVALID_TYPE":"Type de journal invalide","CONSUMPTIONLOG_INVALID_DATE_FROM_FORMAT":"Date de : format non valide","CONSUMPTIONLOG_INVALID_DATE_TO_FORMAT":"Date de : format non valide","CONSUMPTIONLOG_INVALID_USER_ID":"ID utilisateur invalide","CONSUMPTIONLOG_INVALID_MEMORI_ID":"Identifiant Agent invalide","NOTIFICATIONPREFS_INVALID_CHATLOG_EXTRACTION_PERIOD":"Notifications : période d\'extraction du journal de discussion non valide","BROADCAST_NOT_ALLOWED":"Broadcast non autorisé","INVALID_NOTIFICATION_TYPE":"Type de notification non valide","NOTIFICATION_NOT_FOUND":"Notification introuvable","INVALID_NOTIFICATION_FILTER":"Filtre de notification non valide","INVALID_NOTIFICATION_PERIOD":"Période de notification non valide","PROCESS_INVALID_TYPE":"Type de processus invalide","PROCESS_ALREADY_RUNNING":"Processus déjà en cours","PROCESS_NOT_FOUND":"Processus introuvable","IMPORTCSV_MISSING_ROWS":"Import CSV : lignes manquantes","IMPORTCSV_MISSING_CSV":"Importation CSV : CSV manquant","IMPORTCSV_MISSING_SEPARATOR":"Import CSV : séparateur manquant","IMPORTCSV_INVALID_SEPARATOR":"Importation CSV : séparateur non valide","IMPORTCSV_MISSING_HEADERS":"Import CSV : en-têtes manquants","IMPORTCSV_MISSING_TITLE_VARIANT_SEPARATOR":"Import CSV : séparateur de variante de titre manquant","IMPORTCSV_INVALID_RECEIVER_ID":"Importation CSV : ID de destinataire non valide","IMPORTCSV_INVALID_MEDIA_LINK":"Importation CSV : lien média non valide","IMPORTCSV_INVALID_LINK_TITLE_HANDLING":"Importation CSV : titre du lien invalide","IMPORTCSV_UNDETECTABLE_CHAR_ENCODING":"Import CSV : encodage de caractères indétectable","IMPORTCSV_CANT_IMPORT_TO_SECRET_MEMORI":"Importation CSV : impossible d\'importer dans les mémoires secrètes","IMPORTTXT_MISSING_ROWS":"Importation de TXT : lignes manquantes","IMPORTTXT_INVALID_GRANULARITY":"Importer TXT : granularité invalide","IMPORTTXT_INVALID_RECEIVER_ID":"Importer TXT : ID de destinataire invalide","IMPORTTXT_INVALID_MEDIA_LINK":"Importer TXT : lien média non valide","IMPORTTXT_INVALID_LINK_TITLE_HANDLING":"Importer TXT : titre du lien invalide","IMPORTTXT_UNDETECTABLE_CHAR_ENCODING":"Import TXT : encodage de caractères indétectable","IMPORTTXT_CANT_IMPORT_TO_SECRET_MEMORI":"Importation TXT : impossible d\'importer vers les mémoires secrètes","IMPORTTXT_IMPORT_LIMIT_EXCEEDED":"Importer TXT : limite d\'importation dépassée","IMPORTTXT_IMPORT_ON_GPT4_REQUIRES_API_KEY":"Importer TXT : l\'importation sur GPT-4 nécessite une clé API","IMPORTTXT_IMPORT_REQUIRES_PAYING":"Importer TXT : l\'importation nécessite un forfait payant","IMPORTTXT_BILLING_DENIED_PERMISSION":"Importer TXT : vous n\'avez pas assez de crédits pour l\'opération","IMPORT_MISSING_ROWS":"Importation : lignes manquantes","IMPORT_CANT_IMPORT_TO_SECRET_MEMORI":"Importation : impossible d\'importer vers les mémoires secrètes","IMPORTMEMORI_INVALID_MEMORI_SPECS":"Importation MEMORI : spécifications de mémoire non valides","IMPORT_MISSING_JSONL":"Importation : JSONL manquant","IMPORTMEMORI_INVALID_SPECS":"Importation MEMORI : spécifications non valides","EXPORT_MISSING_PASSWORD":"Exportation : mot de passe manquant","EXPORTCSV_MISSING_CSV_SPECS":"Exportation CSV : spécifications CSV manquantes","EXPORTCSV_MISSING_SEPARATOR":"Export CSV : séparateur manquant","EXPORTCSV_INVALID_SEPARATOR":"Exportation CSV : séparateur non valide","EXPORTCSV_MISSING_TITLE_VARIANT_SEPARATOR":"Exportation CSV : séparateur de variante de titre manquant","EXPORTCSV_MISSING_NEW_LINE_CHAR":"Exportation CSV : caractère de nouvelle ligne manquant","EXPORTCSV_INVALID_NEW_LINE_CHAR":"Exportation CSV : caractère de nouvelle ligne non valide","EXPORTCSV_MISSING_PASSWORD":"Export CSV : mot de passe manquant","EXPORTJSONL_MISSING_JSONL_SPECS":"Export JSONL : spécifications JSONL manquantes","EXPORTJSONL_MISSING_PLATFORM":"Export JSONL : plateforme manquante","EXPORTJSONL_INVALID_PLATFORM":"Export JSONL : plateforme non valide","EXPORTJSONL_MISSING_PASSWORD":"Export JSONL : mot de passe manquant","EXPORTJSONL_EXPORT_REQUIRES_PAYING":"Exportation JSONL : l\'exportation nécessite un forfait payant","ANALYSIS_MISSING_QUERY":"Analyse : requête manquante","ANALYSIS_CANT_ANALYZE_SECRET_MEMORI":"Analyse : impossible d\'analyser les souvenirs secrets","ANALYSIS_USER_QUERY_MATCH_REQUIRES_DEEP_THOUGHT":"Analyse : la correspondance avec la requête de l\'utilisateur nécessite une réflexion approfondie","BADGE_ASSIGNMENT_WRONG_OR_MISSING_CREDENTIALS":"Attribution des badges : identifiants incorrects ou manquants","BADGE_ASSIGNMENT_MISSING_REF_ID":"Affectation du badge : ID de référence manquant","BADGE_ASSIGNMENT_OUTCOME_NOT_FOUND":"Attribution des badges : résultat introuvable","BADGE_ASSIGNMENT_MISSING_ASSERTION_URL":"Attribution du badge : URL d\'assertion manquante","BADGE_ASSIGNMENT_MISSING_BADGE_URL":"Attribution du badge : URL du badge manquante","BADGE_ASSIGNMENT_MISSING_ISSUER_URL":"Attribution du badge : URL de l\'émetteur manquante","BADGE_ASSIGNMENT_INVALID_URL":"Attribution du badge : URL invalide","BADGE_ASSIGNMENT_MISSING_RECIPIENT":"Affectation du badge : destinataire manquant","BADGE_ASSIGNMENT_UNKNOWN_RECIPIENT_TYPE":"Attribution du badge : type de destinataire inconnu","BADGE_ASSIGNMENT_MISSING_RECIPIENT_IDENTITY":"Attribution du badge : identité du destinataire manquante","BADGE_ASSIGNMENT_MISSING_RECIPIENT_HASH_TYPE":"Attribution du badge : type de hachage du destinataire manquant","BADGE_ASSIGNMENT_UNKNOWN_RECIPIENT_HASH_TYPE":"Attribution du badge : type de hachage du destinataire inconnu","BADGE_ASSIGNMENT_WRONG_RECIPIENT_IDENTITY":"Attribution du badge : identité du destinataire incorrecte","BADGE_NOT_FOUND":"Badge introuvable","OUTCOME_NO_DCM_CONFIGURED":"Résultat : aucun DCM configuré","OUTCOME_USER_BADGES_DISABLED":"Résultat : badges utilisateur désactivés","COMPLETION_CONFIG_MISSING_NAME":"Configuration des complétions : nom manquant","COMPLETION_CONFIG_MISSING_PROVIDER":"Configuration des complétions : fournisseur manquant","COMPLETION_CONFIG_MISSING_ENDPOINT":"Configuration des complétions : point de terminaison manquant","COMPLETION_CONFIG_MISSING_API_KEY":"Configuration des complétions : clé API manquante","COMPLETION_CONFIG_MISSING_MODEL":"Configuration des complétions : modèle manquant","COMPLETION_CONFIG_NO_PURPOSE_SPECIFIED":"Configuration des complétions : au moins un type de complétions doit être spécifié","COMPLETION_CONFIG_INVALID_NAME":"Configuration des complétions: nom non valide","COMPLETION_CONFIG_INVALID_PURPOSE":"Configuration des complétions : type de complétions non valide","COMPLETION_CONFIG_INVALID_ENDPOINT":"Configuration des achèvements : point de terminaison non valide","COMPLETION_CONFIG_INCONSISTENT_ENDPOINT":"Configuration des complétions : point de terminaison incohérent","COMPLETION_CONFIG_INVALID_PROVIDER":"Configuration des complétions : fournisseur non valide","COMPLETION_CONFIG_NOT_FOUND":"Configuration des complétions : introuvable","COMPLETION_CONFIG_NOT_ACCESSIBLE":"Configuration des complétions : non accessible","COMPLETION_CONFIG_NAME_RESERVED":"Configuration des complétions : nom réservé","COMPLETION_CONFIG_NAME_ALREADY_EXISTS":"Configuration des complétions : le nom existe déjà","COMPLETION_CONFIG_VISIBILITY_CHANGE_NOT_ALLOWED":"Configuration des complétions : changement de visibilité non autorisé","COMPLETION_CONFIG_MISSING_MANDATORY_PREFIX":"Configuration des complétions : préfixe obligatoire manquant","COMPLETION_CONFIG_VISIBILITY_NOT_PERMITTED":"Configuration des complétions : visibilité non autorisée","COMPLETION_CONFIG_USE_AS_DEFAULT_NOT_PERMITTED":"Configuration des complétions : utilisation comme défaut non autorisée","COMPLETION_CONFIG_USE_AS_DEFAULT_REQUIRES_TENANT_VISIBILITY":"Configuration des complétions : utilisation comme défaut nécessite la visibilité du locataire","COMPLETION_CONFIG_CHARGEABLE_NOT_PERMITTED":"Configuration des complétions : chargeable non autorisé","COMPLETION_CONFIG_INVALID_APPLY_TO":"Configuration des complétions : apply to non valide","COMPLETION_CONFIG_APPLY_TO_TENANT_NOT_ALLOWED":"Configuration des complétions : apply to tenant non autorisé","TRUSTED_APPLICATION_NOT_FOUND":"Application de confiance introuvable","TRUSTED_APPLICATION_NOT_ACCESSIBLE":"Application de confiance non accessible","TRUSTED_APPLICATION_ALREADY_EXISTS":"Application de confiance existe déjà","TRUSTED_APPLICATION_MISSING_NAME":"Application de confiance : nom manquant","TRUSTED_APPLICATION_MISSING_DESCRIPTION":"Application de confiance : description manquante","TRUSTED_APPLICATION_MISSING_ICON":"Application de confiance : icône manquante","TRUSTED_APPLICATION_MISSING_URL":"Application de confiance : URL manquante"}}');var XN={};XN=JSON.parse('{"yes":"Ja","no":"NEIN","confirm":"Bestätigen","apply":"Anwenden","cancel":"Stornieren","show":"Zeigen","hide":"Verstecken","send":"Schicken","scrollToLatest":"Zum neuesten Beitrag","scrollToContinueReading":"Scrollen, um weiterzulesen","close":"Schließen","clearHistory":"Chat leeren","clearHistoryDone":"Chat geleert.","moreInfo":"Mehr Informationen","back":"Zurück","edit":"Bearbeiten","delete":"Löschen","loading":"Laden","expand":"Expandieren","collapse":"Einklappen","expandable":{"expand":"Expandieren"},"fullscreenEnter":"Geben Sie den Vollbildmodus ein","fullscreenExit":"Beenden Sie den Vollbildmodus","center":"Center","bottom":"Unten","hidden":"Versteckt","all":"Alle","today":"Heute","yesterday":"Gestern","last_7_days":"Letzte 7 Tage","last_30_days":"Letzte 30 Tage","missingData":"Fehlende Informationen","date":"Geburtsdatum","day":"Tag","copied":"Kopiert!","placeholder":"Stellen Sie eine Frage","month":"Monat","year":"Jahr","createdAt":"Erstellungsdatum","selected":"Ausgewählt","page":"Seite","actions":"Aktionen","next":"Nächste","previous":"Vorherige","copy":"Kopie","copyRawCode":"Rohcode kopieren","feedback":"Feedback","feedbackThankYou":"Vielen Dank für Ihr Feedback.","copyFailed":"Kopieren nicht möglich","functionCache":"Funktionscache","copyToClipboard":"In die Zwischenablage kopieren","showOriginalText":"Original anzeigen","showTranslatedText":"Übersetzung anzeigen","exactPosition":"Genaue Position","uncertain":"Unsicher","question":"Frage","nothingFound":"Nichts gefunden","venue":"Veranstaltungsort","searchVenue":"Nach einem Ort suchen…","privacyPolicy":"Datenschutzbestimmungen","popularLanguages":"Beliebt","allLanguages":"Alle Sprachen","memoriBlockedTitle":"Blockiert","memoriBlockedUntil":"Agent blockiert bis {{date}}","memoriBlockedAnon":"Momentan \\"{{name}}„Kann nicht antworten, komm hierher zurück {{date}}","memoriBlockedReasonExceedChats":"weil der monatliche Schwellenwert für erlaubte Chats überschritten wurde.","memoriBlockedGiverHelper":"Sie können es weiterhin als Administrator verwalten, andere Benutzer können jedoch nicht damit interagieren.","generatedByAI":"Von KI generierte Antworten können gelegentlich falsche Informationen generieren","aiGeneratedNote":"Der Agent kann Fehler machen. Stellen Sie sicher, dass Sie wichtige Informationen überprüfen.","reasoning":"Überlegung...","thinking":"Denke nach","thought":"Überlegung","thoughtFor":"Nachgedacht für {{count}} s","whyThisAnswer":"Woher kommt diese Antwort","whyThisAnswerHelper":"Diese Antwort wurde automatisch von einer künstlichen Intelligenz auf Basis dieser verifizierten Inhalte generiert.","whyThisAnswerDescription":"Inhalte der Wissensbasis, die der Agent für die Antwort konsultiert hat.","whyThisAnswerYouAsked":"Sie haben gefragt","whyThisAnswerUserAsked":"Frage des Nutzers","whyThisAnswerAgentReplied":"Der Agent hat geantwortet","whyThisAnswerShowFull":"Vollständige Antwort anzeigen","whyThisAnswerContentsUsed":"Verwendete Inhalte","whyThisAnswerOpen":"Öffnen","whyThisAnswerDisclaimer":"Die Antwort wurde vom Agenten aus diesen Inhalten geschrieben: sie kann Fehler oder Umformulierungen enthalten. Prüfen Sie wichtige Informationen an der Quelle.","whyThisAnswerEmptyTitle":"Keine Inhalte konsultiert","whyThisAnswerEmptyDescription":"Für diese Frage hat der Agent keine Treffer in der Wissensbasis gefunden: er hat nur nach seinen Anweisungen geantwortet.","whyThisAnswerEmptyAuthorDescription":"Die Frage hat keine Treffer ergeben. Falls sie welche haben sollte, fügen Sie einen passenden Inhalt hinzu.","whyThisAnswerAddContent":"Zur Wissensbasis hinzufügen","whyThisAnswerConfidenceHigh":"Starke Übereinstimmung","whyThisAnswerConfidenceMedium":"Teilweise Übereinstimmung","whyThisAnswerConfidenceLow":"Schwache Übereinstimmung","whyThisAnswerTypeQuestion":"Frage und Antwort","whyThisAnswerTypeDocument":"Dokument","whyThisAnswerTypeWebsite":"Website","whyThisAnswerTypeStory":"Geschichte","whyThisAnswerSourcesCount_one":"{{count}} Quelle","whyThisAnswerSourcesCount_other":"{{count}} Quellen","whyThisAnswerNoSources":"Keine Quellen","receiverLabel":"Zugewiesen an","completionsEnabled":"Fortschrittliche KI kann mit automatisch generierten Antworten reagieren, die manchmal falsche Informationen enthalten können","completionProviderDown":"Dieser Zwilling ist mit einer generativen KI von integriert {{provider}}, aber es ist derzeit nicht verfügbar. ","completionProviderMajorOutage":"Dieser Zwilling ist mit einer generativen KI von integriert {{provider}}, aber es ist derzeit nicht verfügbar. Diese Funktion wird nicht verfügbar sein, bis der Service wiederhergestellt ist.","completionProviderPartialOutage":"Dieser Zwilling ist mit einer generativen KI von integriert {{provider}}, aber es ist derzeit nicht verfügbar. Diese Funktion wird nicht verfügbar sein, bis der Service wiederhergestellt ist.","completionProviderDegraded":"Dieser Zwilling ist mit einer generativen KI von integriert {{provider}}, aber es ist derzeit nicht verfügbar. Diese Funktion wird nicht verfügbar sein, bis der Service wiederhergestellt ist.","completionProviderFallbackName":"ein externer Anbieter","completionProviderCheckStatusPage":"Überprüfen Sie die Statusseite","boardOfExperts":"Expertengremium","birthDate":"Geburtsdatum","birthDateHelper":"Wir fragen nur nach Ihrem Geburtsdatum, um Funktionen zu aktivieren oder zu deaktivieren, für die Altersbeschränkungen gelten","underage":"Das müssen Sie mindestens sein {{age}} Jahre alt, um sich anzumelden.","underageTwinSession":"Das müssen Sie mindestens sein {{age}} Jahre alt, um mit diesem Zwilling zu interagieren.","errorFetchingSession":"Fehler beim Laden der Sitzung","errorGettingReferralURL":"Fehler beim Laden des Referrals","errorReopeningSession":"Fehler beim erneuten Öffnen der Sitzung","sessionExpiredReopening":"Sitzung abgelaufen, Sitzung wird neu geöffnet","ageVerification":"Altersüberprüfung","ageVerificationText":"Um mit diesem Zwilling interagieren zu können, müssen Sie mindestens sein {{minAge}} Jahre alt.","ageVerificationSuccess":"Altersprüfung bestanden mit Erfolg.","nsfw":"NSFW: Dieser Agent enthält Inhalte für Erwachsene","deepThought":"Tiefer Gedanke","deepThoughtWhatIs":"Was ist Deep Thought?","deepThoughtHelper":"Deep Thought ist eine erweiterte Funktion der KI, die es Ihnen ermöglicht, Ihre Gespräche voll auszuschöpfen, indem Sie sie verfolgen. ","deepThoughtDisclaimerTitle":"Deep Thought aktiviert","deepThoughtDisclaimer":"Deep Thought ist eine erweiterte Funktion der KI, die es Ihnen ermöglicht, Ihre Gespräche voll auszuschöpfen, indem Sie sie verfolgen. ","deepThoughtPreDisclaimerUnlogged":"Melden Sie sich an, um Deep Thought zu aktivieren.","deepThoughtPreDisclaimerNotAllowed":"Deep Thought ist deaktiviert, da Sie der Nutzung nicht zugestimmt haben. Sie können dies jederzeit in Ihren Kontoeinstellungen ändern.","notEnoughCredits":"Der Autor dieses Zwillings verfügt nicht über genügend Credits, um Ihre Frage zu beantworten.","confirmDialog":{"title":"Möchten Sie diese Seite verlassen?","message":"Die Änderungen, die Sie vorgenommen haben, werden verloren."},"knownFacts":{"title":"Bekannte Fakten","description":"Was {{memoriName}} über Sie merkt. Sie können jeden Eintrag löschen.","type":"Typ","typeShortTerm":"Kurzfristig","typeLongTerm":"Langfristig","typeHelper":"Typen:\\n","text":"Text","searchPlaceholder":"Fakten durchsuchen","select":"Auswählen","loadMore":"Weitere laden","factsCount_one":"{{count}} Fakt","factsCount_other":"{{count}} Fakten","shownOfTotal":"{{shown}} von {{total}} angezeigt","emptyTitle":"Noch keine Fakten","emptyDescription":"Während Sie sprechen, notiert der Agent hier, was er über Sie lernt. Sie können es jederzeit löschen.","deleteLabel":"Diesen Fakt löschen","deleteSuccess":"Bekannte Tatsache gelöscht","deleteConfirmTitle":"Bekannte Tatsache löschen","deleteConfirmMessage":"Sind Sie sicher, dass Sie diese bekannte Tatsache löschen möchten?","deleteSelectedConfirmTitle":"Ausgewählte bekannte Fakten löschen","deleteSelectedConfirmMessage":"Sind Sie sicher, dass Sie die ausgewählten bekannten Fakten löschen möchten?","selected_one":"{{count}} Fakt ausgewählt","selected_other":"{{count}} Fakten ausgewählt","selectedRows_one":"{{count}} Zeile ausgewählt","selectedRows_other":"{{count}} Zeilen ausgewählt"},"auth":{"title":"Authentifizierung","description":"Dieser Agent ist geschützt. Gib das Passwort ein, um fortzufahren.","useRecoveryTokens":"Verwenden Sie Wiederherstellungstoken","tokens":"Token","addToken":"Token hinzufügen","usePassword":"Passwort verwenden","passwordRequired":"Passwort erforderlich","invalidCredentials":"Ungültige Zugangsdaten","atLeast":"Mindestens"},"widget":{"instruct":"Anleiten","test":"Testen","sound":"Ton","soundOff":"Ton aus","position":"Positionspräferenzen","settings":"Einstellungen","share":"Teilen","shareChat":"Chat teilen","sendOnKeypress":"Drücken Sie Enter zum Senden","sendOnClick":"Klicken Sie auf Senden","boardOfExperts":"Expertenrat","showExpertsInTheBoard":"Experten in diesem Rat anzeigen","expertsInTheBoard":"Experten in diesem Rat","goToIntegrationsToCustomizeAvatar":"Um den Avatar anzupassen, gehen Sie zu \\"Teilen\\" und passen Sie die öffentliche Seite an","chatAssistantStatus":"Aktiv • Antwortet in wenigen Sekunden","agentStatusListening":"hört zu","agentStatusSpeaking":"spricht","agentStatusProcessing":"verarbeitet","shareLocation":"Standort teilen","shareLocationHint":"Erhalte Antworten passend zu deinem Standort","shareLocationAria":"Standort mit dem Assistenten teilen","knownFactsHint":"Was ich mir über dich merke","aiConsumption":"KI-Verbrauch","editPositionAria":"Standort bearbeiten","positionResolving":"Adresse wird ermittelt…","geocodingFailed":"Adresse konnte nicht ermittelt werden. Bitte erneut versuchen oder manuell suchen.","positionUnavailableManual":"Standort nicht verfügbar. Bitte manuell eingeben.","positionSharingEnabled":"Standort geteilt.","headerHistory":"Verlauf","headerProfile":"Profil","headerLogin":"Anmelden","downloadQrCode":"QR-Code herunterladen","expandToImmersive":"Zum immersivem Ansichtsmodus erweitern","moreActions":"Weitere Aktionen","mobileSession":{"session":"Session","sessionInfo":"Sitzungsinfo","copyLinkOrDownload":"Link kopieren oder herunterladen","currentlyOff":"Derzeit deaktiviert","whatIKnowAboutYou":"Details der Informationen, die zwischen Ihnen und {{memoriName}} geteilt werden","locationTracking":"Standortverfolgung","locationStatus":"Status","useCurrentPosition":"Aktuelle Position verwenden","disableLocationSharing":"Standortfreigabe deaktivieren","openKnownFacts":"Alle bekannten Fakten öffnen","knownFactsMessages":"{{count}} Nachrichten in der aktuellen Session"}},"exportChatHistory":{"exportPDF":"Chat als PDF exportieren","exporting":"Exportiere...","empty":"Kein Chatverlauf zum Exportieren","pdfNotSupported":"PDF-Export wird in diesem Browser nicht unterstützt","success":"Chat erfolgreich als PDF exportiert","error":"Fehler beim Exportieren des Chats als PDF. Bitte versuchen Sie es erneut."},"write_and_speak":{"micButtonPopover":"Klicken Sie auf die Schaltfläche, um zu sprechen","micButtonPopoverListening":"Klicken Sie auf die Schaltfläche, um das Sprechen zu stoppen","stopRecording":"Aufnahme beenden","sendRecording":"Sprachnachricht senden","recordingInProgress":"Aufnahme läuft","pageInstructExplanation":"Um mir neue Dinge beizubringen, klicken Sie auf die Schaltfläche \\"ANLEITEN\\", um zu beginnen","pageTryMeExplanation":"Um mit mir zu beginnen, klicken Sie auf die Schaltfläche START","pagePrivacyExplanation":"Die Konversationen sind sichtbar von dem Autor des Agenten","aiDisclaimer":"Der Agent kann Fehler machen. Bitte überprüfen Sie die Antworten.","downloadChat":"Chat herunterladen","pagePrivacyExplanationList":{"allConversations":"Alle Konversationen mit diesem Agenten sind sichtbar von dem Autor des Agenten","anonymousUser":"Für anonyme Benutzer: der Autor wird den Inhalt der Konversation und Ihre IP-Adresse sehen","registeredUser":"Für registrierte Benutzer: der Autor wird den Inhalt der Konversation und Ihren Benutzernamen sehen","contentAndUsername":"Der Autor kann den Inhalt, Ihren Benutzernamen und Ihre IP-Adresse sehen","contentAndIpAddress":"Der Autor kann den Inhalt und Ihre IP-Adresse sehen","authorUsesInfo":"Der Autor verwendet diese Informationen, um die Funktionen des Agenten zu verbessern und Ihnen einen besseren Service anzubieten."},"instructButton":"WEISE MICH AN","tryMeButton":"START","resumeButton":"FORTSETZEN","chatHistory":"Chatverlauf","chatHistoryDescription":"Chatverlauf mit diesem Agenten anzeigen","loadingChatHistory":"Chatverlauf wird geladen...","noChatHistoryAvailable":"Kein Chatverlauf verfügbar","noResultsFound":"Keine Ergebnisse gefunden für \\"{{searchText}}\\"","searchInChatHistory":"Unterhaltungen durchsuchen","filters":"Filter","latestFirst":"Neueste zuerst","oldestFirst":"Älteste zuerst","exportChat":"Chat exportieren","conversationStartedLabel":"Unterhaltung gestartet","settingsHeaderLabel":"Richten Sie hier ein, wenn Sie die Agent als Dauerrede einstellen möchten, und ändern Sie die Stillesekunden, wenn Sie sie anpassen möchten.","continuousSpeechLabel":"Kontinuierliche Rede","continuousSpeechDisabled":"Kontinuierliche Rede deaktiviert, da der Agent im Stummschaltmodus ist","holdToSpeak":"Halten Sie gedrückt, um zu sprechen","releaseToEndListening":"Lassen Sie los, um das Hören zu beenden","pressAndHoldToSpeak":"Zum Sprechen gedrückt halten","microphoneMode":"Mikrofonmodus","hideEmissionsLabel":"Vom Zwilling ausgegebenen Text ausblenden","showMessageConsumptionLabel":"Verbrauch pro Nachricht anzeigen","secondsLabel":"Sekunden einstellen","controlsPosition":"Steuert die Position","tryMeHeaderLabel":"VERSUCHEN","unknownPosition":"Unbekannte Position","fieldPlace":"Geben Sie den Ort ein (z. B. \\"Mailand\\")","showMapLinkFor":"Zeigen Sie die Position auf der Karte an","useMyPosition":"Nutzen Sie meine Position","myPosition":"Ihre Position","updatingPosition":"Position wird aktualisiert...","placeNotFound":"Ort nicht gefunden!","requirePosition":"Geben Sie vor dem Start Ihre Position ein","requirePositionHelp":"Zum Reden {{name}} Sie müssen entscheiden, ob Sie Ihre Position angeben oder nicht. ","dontWantToProvidePosition":"Ohne Standort fortfahren","requireLoginHelp":"Um mit {{name}} zu sprechen, musst du dich zuerst mit deinem Konto anmelden.","skipLocationTitle":"Es wird kein Standort auf der Karte gespeichert.","locationSaved":"Ihr Standort wurde gespeichert.","locationSavedWithPlace":"Ihr Standort wurde gespeichert: {{place}}","locationSkippedConfirm":"Sie machen ohne Standortfreigabe weiter.","placeSelected":"Ort ausgewählt: {{place}}","locationPermissionDenied":"Standortzugriff wurde verweigert. Erlauben Sie den Standort in den Browsereinstellungen oder wählen Sie einen Ort auf der Karte.","locationUnavailable":"Ihre Position konnte nicht ermittelt werden. Versuchen Sie es erneut oder suchen Sie einen Ort.","locationRequestTimedOut":"Standortanfrage hat das Zeitlimit überschritten. Versuchen Sie es erneut oder suchen Sie einen Ort.","locationErrorGeneric":"Beim Abrufen Ihres Standorts ist etwas schiefgelaufen.","attachmentsLabel":"Bereichern Sie Ihre Botschaft","image":"Bild","images":"Bilder","file":"Datei","files":"Dateien","function":"Funktion","functions":"Funktionen","iWantToTalkToIn":"Ich möchte mit reden {{name}} In","chatLanguageLabel":"Wählen Sie die Sprache der Unterhaltung","chatResumed":"Unterhaltung erfolgreich fortgesetzt.","message":"nachricht","messages":"nachrichten","page":"Seite {{current}} von {{total}}","downloadThisConversation":"Diese Unterhaltung herunterladen","downloadAllConversations":"Alle Unterhaltungen herunterladen","conversationsCount_one":"{{count}} Unterhaltung","conversationsCount_other":"{{count}} Unterhaltungen","shownOfTotal":"{{shown}} von {{total}} angezeigt","loadMore":"Weitere laden","backToConversationList":"Zurück zur Unterhaltungsliste","thisWeek":"Diese Woche"},"chatResume":{"resume":"Unterhaltung fortsetzen"},"artifact":{"close":"Schließen","size":"Größe","updated":"aktualisiert","updateFailed":"Update konnte nicht angewendet werden","updateFailedHint":"Der Patch stimmt nicht mit dem aktuellen Inhalt überein. Bitten Sie um ein Neuschreiben des Artifacts.","generated":"Generiert","download":"Herunterladen","print":"Drucken","external":"In neuem Fenster öffnen","type":"Typ","fullscreen":"Vollbild","exitFullscreen":"Vollbild beenden","copy":"Kopieren","generatedAt":"Generiert am","open":"Öffnen","code":"Code","source":"Quelle","preview":"Vorschau","resizeHandle":"Artifact-Panel skalieren","copied":"Kopiert!","error":"Fehler","generatingPdf":"PDF wird generiert...","copying":"Kopiere...","moreCopyOptions":"Weitere Kopieroptionen","copyAs":"Kopieren als","downloadAsMarkdown":"Als Markdown herunterladen","downloadRawMarkdownText":"Rohmarkdown-Text herunterladen","downloadAsPdf":"Als PDF herunterladen","exportAsPdfDocument":"Als PDF-Dokument exportieren","downloadAsHtml":"Als HTML herunterladen","downloadFormattedHtml":"Formatiertes HTML herunterladen","viewMode":"Ansichtsmodus","codeMode":"Code-Modus","refresh":"Aktualisieren","share":"Teilen","downloadAsJson":"Als JSON herunterladen","downloadJsonData":"JSON-Daten herunterladen","downloadAsPng":"Als PNG herunterladen","downloadPngImage":"PNG-Bild herunterladen","downloadAsJpeg":"Als JPEG herunterladen","downloadJpegImage":"JPEG-Bild herunterladen","downloadAsGif":"Als GIF herunterladen","downloadGifImage":"GIF-Bild herunterladen","downloadAsWebp":"Als WebP herunterladen","downloadWebpImage":"WebP-Bild herunterladen","copyAsSvg":"Als SVG kopieren","copySvgSourceCode":"SVG-Quellcode kopieren","copyAsPlainText":"Als Klartext kopieren","copyAsText":"Als Text kopieren","copyAsLanguage":"Als {{language}} kopieren","copyLanguageCode":"{{language}}-Code kopieren","copyWithoutSyntaxHighlighting":"Ohne Syntaxhervorhebung kopieren","copyTextContent":"Textinhalt kopieren","pdfExportNotSupported":"PDF-Export wird in diesem Browser nicht unterstützt","popupBlocked":"Popup blockiert! Bitte aktivieren Sie Popups zum Drucken.","safariPdfInstructions":"PDF-Export in neuem Fenster geöffnet. Bitte verwenden Sie Cmd+P (Mac) oder Strg+P (Windows) zum Drucken und als PDF speichern."},"upload":{"loginRequired":"Login erforderlich","pastedText":"text-eingefügt","uploadNotification":"Hochladen fehlgeschlagen","loginRequiredDescription":"Bitte melden Sie sich an, um Bilder hochzuladen","uploadFiles":"Dateien hochladen (drag and drop)","uploadFilesOrImages":"Dateien oder Bilder hochladen","uploadFilesWithShortcut":"{{shortcut}}+O zum Öffnen des Datei-Selektors","uploadImages":"Bilder hochladen","titleImage":"Bildtitel hinzufügen","uploadDocuments":"Dokumente hochladen","replace":"Ersetzen","remaining":"verbleibend","maxReached":"Maximal erreicht","apiClientNotConfigured":"Client API nicht korrekt konfiguriert für das Hochladen von Medien","fileReadingFailed":"Datei lesen fehlgeschlagen","uploadFailed":"Hochladen fehlgeschlagen","uploadSuccess":"Hochladen erfolgreich","uploadSuccessDescription":"Die Datei wurde erfolgreich hochgeladen","maxImagesReached":"Sie können bis zu {{max}} Bilder hochladen","dragAndDropFiles":"Ziehen Sie Dateien hierher, um sie zur Chat hinzuzufügen","contextSizeExceedsLimit":"Die Kontextgröße überschreitet das Limit. Reduzieren Sie die Anzahl der Dateien oder den Inhalt der Konversation.","filesNotAddedMaxAllowed":"{{count}} Datei(en) nicht hinzugefügt (maximal {{max}} Dateien erlaubt).","documentsNotAddedMaxAllowed":"{{count}} Dokument(e) nicht hinzugefügt (maximal {{max}} Dateien erlaubt).","imagesNotAddedMaxAllowed":"{{count}} Bild(er) nicht hinzugefügt (maximal {{max}} Dateien erlaubt).","documentsNotAddedContextSize":"{{count}} Dokument(e) nicht hinzugefügt (Kontextgrößen-Limit).","partialAssetUploadWarning":"Einige Dateilinks konnten nicht hochgeladen werden, aber das Dokument wurde trotzdem hinzugefügt.","anonymousRetentionNotice":"Hinweis: Hochgeladene Dateien werden maximal 24 Stunden gespeichert."},"media":{"title":"Titel","editAttributes":"Medienattribute bearbeiten","uploadMimeTypeNotAllowed":"Der Dateityp ist nicht zulässig","uploadSizeLimitMessage":"Die hochgeladene Größe ist zu groß (max {{size}}MB)","uploadWrongResolutionMessage":"Die Auflösung muss sein {{width}}X{{height}} Pixel","memoriNameAlreadyUsed":"Du hast bereits einen Zwilling mit diesem Namen","uploadHelperImages":"Laden Sie eine Datei mit der Erweiterung PNG, JPG, JPEG oder GIF hoch und darf maximal eine Größe von haben {{size}}MB","uploadHelper":"Laden Sie eine Datei mit einer maximalen Größe von hoch {{size}}MB","uploadError":"Der Upload ist fehlgeschlagen","square":"Quadrat","scaleRatio":"Maßstabsverhältnis","addMediaLabel":"Fügen Sie ein Medium hinzu","insertThisMediaMsg":"Legen Sie diese Medien ein","mediaUploadMessage":"Klicken Sie hier, um ein neues Medium zu laden","addLinkLabel":"Fügen Sie einen Link hinzu","linkKey":"URL","linkValue":"Linktitel","insertThisLink":"Fügen Sie einen Link ein {{url}} mit Titel {{title}}"},"gamification":{"level":"Ebene","points":"Punkte","memoriReachedLevel":"entwickelte sich weiter und erreichte ein höheres Niveau","levelGoToStatistics":"{{memori}} ist auf gleicher Höhe {{level}} mit {{points}} Punkte. ","congratulationsNewLevel":"Herzlichen Glückwunsch, Sie haben ein neues Level erreicht!","congratulationsNewLevelDescription":"Ihre Agent wurden mit weiterentwickelt {{points}} Punkte, schauen Sie sich die an","statistics":"Statistiken"},"login":{"login":"Login","title":"Login zu Ihrem Konto","loggingIn":"Anmeldung läuft…","logout":"Abmelden","user":"Benutzer","loggedDrawerTitle":"Hallo, {{name}}!","userNameRequired":"Benutzername erforderlich","userName":"Benutzername","userNamePlaceholder":"Geben Sie den Benutzernamen ein","loginDrawerTitle":"Login","signupDrawerTitle":"Melden Sie sich an","newUserSignUp":"Neuer Benutzer?","signUp":"Melden Sie sich an!","alreadyHaveAnAccount":"Sie haben bereits ein Konto?","backToLogin":"Zurück zum Login","registrationDisabled":"Die Registrierung ist deaktiviert","contactAdmin":"Wenden Sie sich an den Administrator, um Zugriff anzufordern","userNameOrEmail":"Benutzername oder E-Mail","email":"E-Mail","emailFormatError":"Bitte geben Sie eine gültige E-Mail-Adresse ein","username":"Benutzername","usernameContainsReservedWord":"Der Benutzername enthält ein reserviertes Wort. Bitte wählen Sie ein anderes","usernameFormatError":"Der Benutzername muss mindestens 3 Zeichen lang sein und darf nur Buchstaben, Zahlen und _ enthalten.","otpCode":"Bestätigungscode","resendVerificationCode":"Code erneut senden","resentVerificationCode":"Bestätigungscode gesendet! ","welcomeTitle":"Willkommen zurück","welcomeDescription":"Geben Sie Ihren 4-stelligen Bestätigungscode ein, um zu Ihrem Konto fortzufahren","otpTitle":"Bestätigungscode eingeben","otpDescription":"Geben Sie den 4-stelligen Code ein, den Sie in Ihrem Konto generiert haben","otpStep1":"Klicken Sie auf die Schaltfläche unten, um Ihr Konto zu öffnen","otpStep2":"Generieren Sie einen 4-stelligen Bestätigungscode (5 Minuten gültig)","otpStep3":"Kehren Sie hierher zurück und geben Sie den Code ein","startOtpLogin":"Verifizierung starten","generateOtp":"Code generieren","otpTimer":"Code läuft in {{time}} ab","otpInvalidFormat":"Bitte geben Sie einen gültigen 4-stelligen Code ein","otpInvalid":"Ungültiger Bestätigungscode","otpExpired":"Der Bestätigungscode ist abgelaufen","otpError":"Fehler bei der Code-Validierung. Bitte versuchen Sie es erneut.","otpSuccess":"Anmeldung erfolgreich!","otpAttemptsExceeded":"Zu viele Versuche. Fordern Sie einen neuen Bestätigungscode an.","resendOtpIn":"Erneut senden in {{seconds}}s","resendOtpPrompt":"Nicht angekommen? Erneut senden in {{seconds}} s","resendOtpQuestion":"Nicht angekommen?","resendOtp":"Erneut senden","editEmail":"Bearbeiten","otpSentToPrefix":"Wir haben einen 4-stelligen Code gesendet an","otpCodeShort":"Code","loginBenefitLine1":"{{memoriName}} kann Ihnen den Chatverlauf zeigen, der jederzeit fortgesetzt werden kann.","loginBenefit":"{{memoriName}} kann Ihnen den Chatverlauf zeigen, der jederzeit fortgesetzt werden kann.","passwordlessHint":"Wir senden Ihnen einen 4-stelligen Code. Kein Passwort nötig.","defaultAgentName":"der Agent","sendOtp":"Code senden","password":"Passwort","newPassword":"Neues Passwort","confirmPassword":"Passwort bestätigen","currentPassword":"Aktuelles Passwort","passwordMatchingError":"Passwörter stimmen nicht überein.","passwordFormatError":"Das Passwort muss mindestens 8 Zeichen lang sein und mindestens eine Zahl, einen Großbuchstaben, einen Kleinbuchstaben und ein Symbol enthalten","pwdWeak":"Schwach","pwdAcceptable":"Akzeptabel","pwdStrong":"Stark","mustChangePassword":"Sie müssen Ihr Passwort ändern","passwordChange":"Kennwort ändern","emailChange":"E-Mail ändern","avatarChange":"Avatar ändern","avatarUploadSuccess":"Profilbild aktualisiert.","underage":"Das müssen Sie mindestens sein {{age}} Jahre alt, um sich anzumelden.","optional":"Optional","birthDate":"Geburtsdatum","birthDatePlaceholder":"TT.MM.JJJJ","birthDateHelper":"Wir fragen nur nach Ihrem Geburtsdatum, um Funktionen zu aktivieren oder zu deaktivieren, für die Altersbeschränkungen gelten","missingData":"Fehlende Informationen","missingDataHelper":"Wir wissen, dass dies etwas nervig ist, benötigen jedoch noch einige weitere Informationen, um Ihre Registrierung abzuschließen.","goToAccountToChangeYourPreferences":"Sie können Ihre Auswahl jederzeit auf Ihrer Kontoseite ändern.","deepThoughtExplaination":"Deep Thought ist eine erweiterte Funktion der KI, die es Ihnen ermöglicht, Ihre Gespräche voll auszuschöpfen, indem Sie sie verfolgen. ","tnCAndPPAcceptedHelper":"Seit Ihrer letzten Anmeldung haben sich die AGB und Datenschutzbestimmungen geändert. ","privacyLabel":"Ich habe die gelesen und akzeptiert","privacyAndCookiePolicy":"Datenschutz und Cookie-Richtlinie","and":"Und","termsOfService":"Nutzungsbedingungen","pAndCUAccepted":"Ich akzeptiere die Nutzungsbedingungen von Deep Thought","editAccount":"Konto bearbeiten","save":"Speichern","successfullyLoggedIn":"{{username}} hat sich erfolgreich angemeldet"},"chatLogs":{"llm":"LLM","model":"Modell","provider":"Anbieter","tokens":"Tokens","input":"Eingabe","output":"Ausgabe","cacheRead":"Cache lesen","cacheWrite":"Cache schreiben","duration":"Dauer","energy":"Energie","co2":"CO2","water":"Wasser","usageBadgesHint":"Klicke auf einen dieser Buttons, um mehr Informationen zu sehen","totalChatConsumptionTitle":"Gesamter Chat-Verbrauch","modelUsage":"Modellnutzung","environmentalImpact":"Umweltbelastung","impactComparisonUnavailable":"Indikativer Vergleich nicht verfuegbar.","impactComparisonEnergy":"Indikativer Vergleich: in etwa wie eine 10-W-LED-Lampe fuer {{duration}} eingeschaltet lassen.","impactComparisonCo2":"Indikativer Vergleich: etwa {{distance}} mit einem durchschnittlichen Benzinauto gefahren.","impactComparisonWater":"Indikativer Vergleich: etwa {{count}} Wassertropfen.","energyImpactDescription":"Dieser Wert schaetzt die elektrische Energie, die zur Erzeugung der Modellantwort benoetigt wird. Er hilft, Prompts, Modelle und Strategien zu vergleichen, auch wenn eine einzelne Nachricht nur sehr geringe Auswirkungen hat.","co2ImpactDescription":"CO2-Aequivalent steht fuer die geschaetzten Klimaauswirkungen der Nachricht. Die Umrechnung des Verbrauchs in Emissionen hilft, die Umweltauswirkungen einer KI-Antwort mit vergleichbaren Kennzahlen zu verstehen.","waterImpactDescription":"Dieser Indikator zeigt den geschaetzten Wasserfussabdruck der Nachrichtenverarbeitung. Er umfasst Wasser, das indirekt in Energie und Infrastruktur eingesetzt wird, die die Berechnung ermoeglichen.","approximateValuesTooltip":"Diese Werte sind ungefaehr.","anyMessage":"Jede Nachricht","atLeast":"Mindestens {{count}} Nachrichten","atLeast1":"Mindestens 1 Nachricht","atLeast2":"Mindestens 2 Nachrichten","atLeast3":"Mindestens 3 Nachrichten","atLeast5":"Mindestens 5 Nachrichten","atLeast10":"Mindestens 10 Nachrichten","atLeast15":"Mindestens 15 Nachrichten","atLeast20":"Mindestens 20 Nachrichten","customMinimumMessages":"Anpassen Sie die Anzahl der Nachrichten"},"success":"Erfolg","Error":"Fehler","internal server error":"Oupsie, tut mir leid... Auf dem Server ist ein Fehler aufgetreten","error":"Fehler","error.loading":"Fehler beim Laden des Inhalts.","error.generic":"Oupsie, tut mir leid ... etwas ist schief gelaufen.","error.serverNotResponding":"Wir führen Wartungsarbeiten durch oder veröffentlichen Updates. ","error.notFound":"Oupsie, wir haben die von Ihnen gesuchte Seite nicht gefunden.","error.goBackTo":"Sie können versuchen, dorthin zurückzukehren","error.reloadPage":"Laden Sie die Seite neu","error.tryAgain":"Versuchen Sie es erneut","error.unauthorized":"Es ist Ihnen nicht gestattet, diesen Inhalt anzuzeigen.","error.unprocessableEntity":"Fehler beim Verarbeiten der Anfrage. ","errors":{"TENANT_NOT_FOUND":"Mieter nicht gefunden","TENANT_REGISTRATION_DISABLED":"Die Registrierung auf dieser Plattform ist deaktiviert","TENANT_MISSING_NAME":"Mieter: Name fehlt","TENANT_MAX_USERS_REACHED":"Maximale Anzahl Benutzer erreicht","TENANT_MAX_ADMINS_REACHED":"Maximale Anzahl an Admin-Benutzern erreicht","TENANT_ALREADY_EXISTS":"Mieter existiert bereits","TENANT_MISSING_DESCRIPTION":"Mieter: Beschreibung fehlt","TENANT_CANT_SET_COMPLETION_PROVIDER":"Mandant: Abschlussanbieter kann nicht festgelegt werden","TENANT_INVALID_TYPE":"Mandant: ungültiger Typ","USER_NOT_CONFIRMED":"Benutzer noch nicht bestätigt","USER_NOT_FOUND":"Benutzer nicht gefunden","USER_OR_PASSWORD_INVALID":"Ungültiger Benutzer oder Passwort","USER_MUST_CHANGE_PASSWORD":"Sie müssen Ihr Passwort ändern","USER_MUST_ENTER_VERIFICATION_CODE":"Sie müssen den Bestätigungscode eingeben","USER_MISSING_TENANT":"Benutzer: Mieter fehlt","USER_MISSING_NAME":"Benutzer: Name fehlt","USER_MISSING_PASSWORD":"Benutzer: Passwort fehlt","USER_MISSING_EMAIL":"Benutzer: Fehlende E-Mail","USER_MISSING_VERIFICATION_CODE":"Benutzer: Fehlender Bestätigungscode","USER_NAME_ALREADY_USED":"Benutzername wird bereits verwendet","USER_PASSWORD_NOT_CONFORMING_TO_POLICY":"Das Passwort entspricht nicht den Sicherheitsregeln","USER_EMAIL_ALREADY_USED":"E-Mail wird bereits verwendet","USER_EMAIL_INVALID":"Ungültige E-Mail","USER_VERIFICATION_CODE_INVALID":"Ungültiger Bestätigungscode","USER_MISSING_NAME_OR_EMAIL":"Benutzername oder E-Mail fehlen","USER_NAME_INVALID":"Ungültiger Benutzername","USER_HAS_ONE_OR_MORE_MEMORI":"Der Benutzer verfügt über eine oder mehrere Erinnerungen","USER_MISSING_NEW_PASSWORD":"Benutzer: Neues Passwort fehlt","USER_NOTHING_TO_DO":"Nichts zu tun","USER_CANT_CREATE_MEMORI":"Benutzer darf Agent nicht erstellen","USER_MAX_MEMORI_REACHED":"Maximale Anzahl an Agent erreicht","USER_TOO_MANY_ATTEMPTS":"Zu viele Versuche","USER_MUST_ACCEPT_TNC_AND_PP":"Sie müssen die Allgemeinen Geschäftsbedingungen akzeptieren","USER_BIRTH_DATE_CANT_BE_CHANGED":"Das Geburtsdatum kann nicht geändert werden","USER_CANT_SET_COMPLETION_PROVIDER":"Benutzer: darf den Vervollständigungsanbieter nicht verwalten","USER_CANT_ENABLE_DEEP_THOUGHT":"Benutzer: nicht für die Verwaltung von Deep Thought aktiviert","USER_CANT_ENABLE_DCM_INTEGRATION":"Benutzer: nicht für die Verwaltung der DCM-Integration aktiviert","USER_CANT_ENABLE_CHAINING_OR_BOARD_OF_EXPERTS":"Benutzer: darf die Verkettung oder Expertengruppe nicht verwalten","USER_CREATION_BILLING_DENIED_PERMISSION":"Sie haben nicht genügend Credits, um einen Zwilling zu erstellen","USER_HAS_ONE_OR_MORE_COMPLETION_CONFIGS":"Der Benutzer verfügt über eine oder mehrere Abschlusskonfigurationen","USER_CANT_BE_DELETED":"Benutzer kann nicht gelöscht werden","USER_ORDER_BY_INVALID":"Ungültige Sortierreihenfolge","MEMORI_NOT_FOUND":"Erinnerungen nicht gefunden","MEMORI_NOT_ACCESSIBLE":"Agent nicht zugänglich","MEMORI_ONLY_OWNER_CAN_CHANGE_GIVER_TAG_AND_PIN":"Nur der Eigentümer kann das Tag oder die PIN ändern","SESSION_NOT_FOUND":"Sitzung nicht gefunden","SESSION_IS_NOT_ADMINISTRATIVE":"Nicht-administrative Sitzung","SESSION_EXPIRED":"Sitzung abgelaufen","speechMissingSession":"Sprache benötigt eine aktive Sitzung","speechInvalidSession":"Sitzung ungültig","speechTenantMismatch":"Sprache ist auf dieser Website nicht verfügbar","speechRateLimited":"Zu viele Sprachanfragen. Bitte kurz warten und erneut versuchen.","SESSION_OTP_NOT_FOUND":"Bestätigungscode nicht gefunden","SESSION_OTP_EXPIRED":"Der Bestätigungscode ist abgelaufen","SESSION_OTP_INVALID":"Ungültiger Bestätigungscode","SESSION_OTP_ATTEMPTS_EXCEEDED":"Zu viele Versuche. Fordern Sie einen neuen Bestätigungscode an.","MEMORI_MISSING_CONFIGURATION":"Zwilling: fehlende Konfiguration","MEMORI_CONFIGURATION_NOT_FOUND":"Zwilling: Konfiguration nicht gefunden","MEMORI_INVALID_PRIVACY_TYPE":"Agent: ungültiger Datenschutztyp","MEMORI_MISSING_PASSWORD":"Zwilling: Passwort fehlt","MEMORI_INVALID_TOTAL_NUMBER_OF_RECOVERY_TOKENS":"Agent: Gesamtzahl ungültiger Wiederherstellungstokens","MEMORI_INVALID_MINIMUM_NUMBER_OF_RECOVERY_TOKENS":"Agent: Mindestanzahl ungültiger Wiederherstellungstokens","MEMORI_INVALID_VOICE_TYPE":"Zwilling: ungültiger Stimmtyp","MEMORI_MISSING_NAME":"Zwilling: fehlender Name","MEMORI_MISSING_PASSWORD_OR_RECOVERY_TOKENS":"Zwilling: Fehlendes Passwort oder Wiederherstellungstoken","MEMORI_INVALID_ID":"Zwilling: ungültige ID","MEMORI_NAME_ALREADY_USED":"Zwillingsname wird bereits verwendet","MEMORI_INVALID_PIN":"Zwilling: Ungültige PIN","MEMORI_GIVER_TAG_PIN_CHANGE_REQUIRES_SEPARATE_OPERATION":"Zwilling: TAG- und PIN-Änderung erfordern separate Vorgänge","MEMORI_NO_PASSWORD_WHEN_PUBLIC":"Zwilling: Im öffentlichen Zustand ist kein Passwort erforderlich","MEMORI_DEEP_THOUGHT_REQUIRES_COMPLETIONS":"Für \\"Deep Thought\\" müssen Vervollständigungen aktiviert sein","MEMORI_BOARD_OF_EXPERTS_REQUIRES_COMPLETIONS":"Für die Expertengruppe müssen Vervollständigungen aktiviert sein","MEMORI_INVALID_COMPLETION_CONFIG":"Zwilling: Ungültige Abschlusskonfiguration","MEMORI_MACRO_FUNCTIONS_REQUIRES_COMPLETIONS":"Für die Makrofunktionen müssen Vervollständigungen aktiviert sein","MEMORI_BLOCKING_DATE_MISSING_OR_WRONG":"Zwilling: fehlende oder falsche Blockierungsdatum","MEMORI_LIST_FILTER_NOT_SPECIFIED":"Zwilling: fehlender Filter","MEMORI_TRANSFER_MISSING_DESTINATION_USER":"Übertragung: Zielbenutzer fehlt","MEMORI_TRANSFER_INVALID_DESTINATION_USER_ID":"Übertragung: Ungültige Zielbenutzer-ID","MEMORI_TRANSFER_DESTINATION_USER_DATA_INCONSISTENT":"Übertragung: Ungültige Zielbenutzerdaten","MEMORI_TRANSFER_NOTHING_TO_DO":"Transfer: nichts zu tun","MEMORI_CONFIGURATION_CANT_BE_CHANGED":"Speicher: Konfiguration kann nicht geändert werden","MEMORI_MISSING_NEW_PASSWORD":"Erinnerungen: Neues Passwort fehlt","MEMORI_FEATURE_REQUIRES_SUBSCRIPTION":"Für die Funktion ist ein Abonnement erforderlich","INTEGRATION_NOT_FOUND":"Integration nicht gefunden","MEMORI_SESSIONS_INVALID_DATE_FROM_FORMAT":"Ungültiges Datum aus Format","MEMORI_SESSIONS_INVALID_DATE_TO_FORMAT":"Ungültiges Datum zum Formatieren","MEMORI_SESSION_NOT_FOUND":"Sitzung nicht gefunden","MEMORI_SESSION_DOESNT_ACCEPT_MEDIA":"Sitzung akzeptiert keine Medien","INTEGRATION_INVALID_TYPE":"Ungültiger Integrationstyp","INTEGRATION_ALREADY_EXISTS":"Die Integration ist bereits vorhanden","INTEGRATION_MEMORI_IS_NOT_PUBLIC":"Nicht-öffentliche Erinnerungen können nicht integriert werden","INTEGRATION_MISSING_INVOCATION_TEXT":"Integration: fehlender Aufruftext","INTEGRATION_MISSING_DEVICE_EMAILS":"Integration: Fehlende Geräte-E-Mail","INTEGRATION_MEMORI_IS_EMPTY":"Leere Erinnerungen können nicht integriert werden","INTEGRATION_MISSING_PRIVACY_POLICY":"Integration: Datenschutzrichtlinie fehlt","INTEGRATION_MISSING_CATEGORY":"Integrationskategorie fehlt","INTEGRATION_MISSING_DESCRIPTION":"Fehlende Integrationsbeschreibung","INTEGRATION_INVALID_INVOCATION_TEXT":"Ungültiger Aufruftext","INTEGRATION_GOOGLE_NO_MORE_AVAILABLE":"Google Home nicht mehr verfügbar","UPLOAD_REQUIRES_MULTIPART_ENCODING":"Für den Upload ist eine mehrteilige Kodierung erforderlich","UPLOAD_MISSING_CONTENT_TYPE_BOUNDARY":"Hochladen: Inhaltstypgrenze fehlt","UPLOAD_MAX_LENGTH_EXCEEDED":"Upload: Maximale Größe überschritten","UPLOAD_FILE_IS_EMPTY":"Hochladen: leere Datei","UPLOAD_INVALID_FILE_TYPE_OR_SIGNATURE":"Hochladen: Ungültiger Dateityp oder ungültige Signatur","UPLOAD_MISSING_FILE_NAME":"Hochladen: Dateiname fehlt","UPLOAD_INVALID_MEMORY_ID":"Hochladen: Ungültige Inhalts-ID","UPLOAD_MISSING_FILE_CONTENT":"Hochladen: Dateiinhalt fehlt","ASSET_NOT_FOUND":"Asset nicht gefunden","ASSET_NOT_ACCESSIBLE":"Asset nicht zugänglich","ASSET_MISSING_SESSION_ID":"Asset: Sitzungs-ID fehlt","ASSET_INVALID_FILE_NAME":"Asset: ungültiger Dateiname","ASSET_MALWARE_SCAN_THREATS_FOUND":"Asset: malware scan threats found","INVITATION_NOT_FOUND":"Einladung nicht gefunden","INVITATION_NOT_ACCESSIBLE":"Einladung nicht zugänglich","INVITATION_ALREADY_ACCEPTED":"Einladung bereits angenommen","INVITATION_ALREADY_REJECTED":"Einladung bereits abgelehnt","INVITATION_MISSING_DESTINATION_EMAIL":"Einladung: Ziel-E-Mail fehlt","INVITATION_DESTINATION_EMAIL_INVALID":"Einladung: Ziel-E-Mail-Adresse ungültig","INVITATION_MISSING_TAG":"Einladung: Tag fehlt","INVITATION_MISSING_PIN":"Einladung: PIN fehlt","INVITATION_INVALID_PIN":"Einladung: ungültige PIN","INVITATION_INVALID_TYPE":"Einladung: ungültiger Typ","INVITATION_MISSING_DESTINATION_NAME":"Einladung: Zielname fehlt","INVITATION_TAG_PIN_CANT_BE_CHANGED":"Einladung: Tag und Pin können nicht geändert werden","INVITATION_CANT_BE_CHANGED":"Absicht: kann nicht geändert werden","ACTIONLOG_INVALID_USER_ID":"Ungültige Benutzer-ID","ACTIONLOG_INVALID_DATE_FROM_FORMAT":"Datum von: ungültiges Format","ACTIONLOG_INVALID_DATE_TO_FORMAT":"Datum bis: ungültiges Format","ACTIONLOG_INVALID_MEMORI_ID":"Ungültige Memori-ID","CONSUMPTIONLOG_INVALID_TYPE":"Ungültiger Protokolltyp","CONSUMPTIONLOG_INVALID_DATE_FROM_FORMAT":"Datum von: ungültiges Format","CONSUMPTIONLOG_INVALID_DATE_TO_FORMAT":"Datum bis: ungültiges Format","CONSUMPTIONLOG_INVALID_USER_ID":"Ungültige Benutzer-ID","CONSUMPTIONLOG_INVALID_MEMORI_ID":"Ungültige Memori-ID","NOTIFICATIONPREFS_INVALID_CHATLOG_EXTRACTION_PERIOD":"Benachrichtigungen: Ungültiger Chat-Protokoll-Extraktionszeitraum","BROADCAST_NOT_ALLOWED":"Broadcast nicht erlaubt","INVALID_NOTIFICATION_TYPE":"Ungültiger Benachrichtigungstyp","NOTIFICATION_NOT_FOUND":"Benachrichtigung nicht gefunden","INVALID_NOTIFICATION_FILTER":"Ungültiger Benachrichtigungsfilter","INVALID_NOTIFICATION_PERIOD":"Ungültiger Benachrichtigungszeitraum","PROCESS_INVALID_TYPE":"Ungültiger Prozesstyp","PROCESS_ALREADY_RUNNING":"Prozess läuft bereits","PROCESS_NOT_FOUND":"Prozess nicht gefunden","IMPORTCSV_MISSING_ROWS":"CSV-Import: fehlende Zeilen","IMPORTCSV_MISSING_CSV":"CSV-Import: CSV fehlt","IMPORTCSV_MISSING_SEPARATOR":"CSV-Import: fehlendes Trennzeichen","IMPORTCSV_INVALID_SEPARATOR":"CSV-Import: Ungültiges Trennzeichen","IMPORTCSV_MISSING_HEADERS":"CSV-Import: fehlende Header","IMPORTCSV_MISSING_TITLE_VARIANT_SEPARATOR":"CSV-Import: Titelvariantentrennzeichen fehlt","IMPORTCSV_INVALID_RECEIVER_ID":"CSV-Import: ungültige Empfänger-ID","IMPORTCSV_INVALID_MEDIA_LINK":"CSV-Import: Ungültiger Medienlink","IMPORTCSV_INVALID_LINK_TITLE_HANDLING":"CSV-Import: Ungültiger Linktitel","IMPORTCSV_UNDETECTABLE_CHAR_ENCODING":"CSV-Import: Nicht erkennbare Zeichenkodierung","IMPORTCSV_CANT_IMPORT_TO_SECRET_MEMORI":"CSV-Import: Der Import in Secret Memories ist nicht möglich","IMPORTTXT_MISSING_ROWS":"TXT wird importiert: Zeilen fehlen","IMPORTTXT_INVALID_GRANULARITY":"TXT importieren: ungültige Granularität","IMPORTTXT_INVALID_RECEIVER_ID":"TXT importieren: ungültige Empfänger-ID","IMPORTTXT_INVALID_MEDIA_LINK":"TXT importieren: Ungültiger Medienlink","IMPORTTXT_INVALID_LINK_TITLE_HANDLING":"TXT importieren: ungültiger Linktitel","IMPORTTXT_UNDETECTABLE_CHAR_ENCODING":"TXT-Import: Nicht erkennbare Zeichenkodierung","IMPORTTXT_CANT_IMPORT_TO_SECRET_MEMORI":"TXT-Import: Der Import in Secret Memories ist nicht möglich","IMPORTTXT_IMPORT_LIMIT_EXCEEDED":"TXT importieren: Importlimit überschritten","IMPORTTXT_IMPORT_ON_GPT4_REQUIRES_API_KEY":"TXT importieren: Für den Import auf GPT-4 ist ein API-Schlüssel erforderlich","IMPORTTXT_IMPORT_REQUIRES_PAYING":"TXT importieren: Für den Import ist ein kostenpflichtiger Plan erforderlich","IMPORTTXT_BILLING_DENIED_PERMISSION":"TXT importieren: Sie haben nicht genügend Credits für den Vorgang","IMPORT_MISSING_ROWS":"Import: fehlende Zeilen","IMPORT_CANT_IMPORT_TO_SECRET_MEMORI":"Import: Der Import in Secret Memories ist nicht möglich","IMPORTMEMORI_INVALID_MEMORI_SPECS":"Import MEMORI: ungültige Agentenspezifikationen","IMPORT_MISSING_JSONL":"Import: JSONL fehlt","IMPORTMEMORI_INVALID_SPECS":"Import MEMORI: ungültige Spezifikationen","EXPORT_MISSING_PASSWORD":"Export: Passwort fehlt","EXPORTCSV_MISSING_CSV_SPECS":"CSV-Export: CSV-Spezifikationen fehlen","EXPORTCSV_MISSING_SEPARATOR":"CSV-Export: fehlendes Trennzeichen","EXPORTCSV_INVALID_SEPARATOR":"CSV-Export: Ungültiges Trennzeichen","EXPORTCSV_MISSING_TITLE_VARIANT_SEPARATOR":"CSV-Export: fehlendes Titelvarianten-Trennzeichen","EXPORTCSV_MISSING_NEW_LINE_CHAR":"CSV-Export: Fehlendes Zeilenumbruchzeichen","EXPORTCSV_INVALID_NEW_LINE_CHAR":"CSV-Export: Ungültiges Zeilenumbruchzeichen","EXPORTCSV_MISSING_PASSWORD":"CSV-Export: Passwort fehlt","EXPORTJSONL_MISSING_JSONL_SPECS":"JSONL-Export: JSONL-Spezifikationen fehlen","EXPORTJSONL_MISSING_PLATFORM":"JSONL-Export: fehlende Plattform","EXPORTJSONL_INVALID_PLATFORM":"JSONL-Export: ungültige Plattform","EXPORTJSONL_MISSING_PASSWORD":"JSONL-Export: Passwort fehlt","EXPORTJSONL_EXPORT_REQUIRES_PAYING":"JSONL-Export: Für den Export ist ein kostenpflichtiger Plan erforderlich","ANALYSIS_MISSING_QUERY":"Analyse: fehlende Abfrage","ANALYSIS_CANT_ANALYZE_SECRET_MEMORI":"Analyse: Geheime Erinnerungen können nicht analysiert werden","ANALYSIS_USER_QUERY_MATCH_REQUIRES_DEEP_THOUGHT":"Analyse: Passende Benutzeranfragen erfordern tiefes Denken","BADGE_ASSIGNMENT_WRONG_OR_MISSING_CREDENTIALS":"Ausweiszuweisung: falsche oder fehlende Zugangsdaten","BADGE_ASSIGNMENT_MISSING_REF_ID":"Badge-Zuordnung: Referenz-ID fehlt","BADGE_ASSIGNMENT_OUTCOME_NOT_FOUND":"Badge-Zuweisung: Ergebnis nicht gefunden","BADGE_ASSIGNMENT_MISSING_ASSERTION_URL":"Badge-Zuweisung: Fehlende Behauptungs-URL","BADGE_ASSIGNMENT_MISSING_BADGE_URL":"Badge-Zuweisung: Badge-URL fehlt","BADGE_ASSIGNMENT_MISSING_ISSUER_URL":"Badge-Zuweisung: Aussteller-URL fehlt","BADGE_ASSIGNMENT_INVALID_URL":"Badge-Zuweisung: Ungültige URL","BADGE_ASSIGNMENT_MISSING_RECIPIENT":"Ausweiszuordnung: fehlender Empfänger","BADGE_ASSIGNMENT_UNKNOWN_RECIPIENT_TYPE":"Badge-Zuordnung: unbekannter Empfängertyp","BADGE_ASSIGNMENT_MISSING_RECIPIENT_IDENTITY":"Ausweiszuordnung: Empfängeridentität fehlt","BADGE_ASSIGNMENT_MISSING_RECIPIENT_HASH_TYPE":"Badge-Zuweisung: Empfänger-Hash-Typ fehlt","BADGE_ASSIGNMENT_UNKNOWN_RECIPIENT_HASH_TYPE":"Badge-Zuweisung: Empfänger-Hash-Typ unbekannt","BADGE_ASSIGNMENT_WRONG_RECIPIENT_IDENTITY":"Badge-Zuordnung: Falsche Empfängeridentität","BADGE_NOT_FOUND":"Abzeichen nicht gefunden","OUTCOME_NO_DCM_CONFIGURED":"Ergebnis: kein DCM konfiguriert","OUTCOME_USER_BADGES_DISABLED":"Ergebnis: Benutzerausweise deaktiviert","COMPLETION_CONFIG_MISSING_NAME":"Vervollständigungskonfiguration: Name fehlt","COMPLETION_CONFIG_MISSING_PROVIDER":"Vervollständigungskonfiguration: fehlender Anbieter","COMPLETION_CONFIG_MISSING_ENDPOINT":"Abschlusskonfiguration: fehlender Endpunkt","COMPLETION_CONFIG_MISSING_API_KEY":"Vervollständigungskonfiguration: fehlender API-Schlüssel","COMPLETION_CONFIG_MISSING_MODEL":"Vervollständigungskonfiguration: fehlendes Modell","COMPLETION_CONFIG_NO_PURPOSE_SPECIFIED":"Vervollständigungskonfiguration: Es muss mindestens ein Vervollständigungstyp angegeben werden","COMPLETION_CONFIG_INVALID_NAME":"Vervollständigungskonfiguration: ungültiger Name","COMPLETION_CONFIG_INVALID_PURPOSE":"Vervollständigungskonfiguration: Ungültiger Vervollständigungstyp","COMPLETION_CONFIG_INVALID_ENDPOINT":"Abschlusskonfiguration: Ungültiger Endpunkt","COMPLETION_CONFIG_INCONSISTENT_ENDPOINT":"Abschlusskonfiguration: inkonsistenter Endpunkt","COMPLETION_CONFIG_INVALID_PROVIDER":"Vervollständigungskonfiguration: ungültiger Anbieter","COMPLETION_CONFIG_NOT_FOUND":"Vervollständigungskonfiguration: nicht gefunden","COMPLETION_CONFIG_NOT_ACCESSIBLE":"Vervollständigungskonfiguration: nicht zugänglich","COMPLETION_CONFIG_NAME_RESERVED":"Vervollständigungskonfiguration: Name reserviert","COMPLETION_CONFIG_NAME_ALREADY_EXISTS":"Vervollständigungskonfiguration: Name existiert bereits","COMPLETION_CONFIG_VISIBILITY_CHANGE_NOT_ALLOWED":"Vervollständigungskonfiguration: Änderung der Sichtbarkeit nicht zulässig","COMPLETION_CONFIG_MISSING_MANDATORY_PREFIX":"Vervollständigungskonfiguration: Pflichtpräfix fehlt","COMPLETION_CONFIG_VISIBILITY_NOT_PERMITTED":"Vervollständigungskonfiguration: Sichtbarkeit nicht erlaubt","COMPLETION_CONFIG_USE_AS_DEFAULT_NOT_PERMITTED":"Vervollständigungskonfiguration: Verwendung als Standard nicht erlaubt","COMPLETION_CONFIG_USE_AS_DEFAULT_REQUIRES_TENANT_VISIBILITY":"Vervollständigungskonfiguration: Verwendung als Standard erfordert Mandantensichtbarkeit","COMPLETION_CONFIG_CHARGEABLE_NOT_PERMITTED":"Vervollständigungskonfiguration: Chargeable nicht erlaubt","COMPLETION_CONFIG_INVALID_APPLY_TO":"Vervollständigungskonfiguration: Ungültige Anwendung","COMPLETION_CONFIG_APPLY_TO_TENANT_NOT_ALLOWED":"Vervollständigungskonfiguration: Anwendung auf Mandant nicht erlaubt","TRUSTED_APPLICATION_NOT_FOUND":"Vertrauenswürdige Anwendung nicht gefunden","TRUSTED_APPLICATION_NOT_ACCESSIBLE":"Vertrauenswürdige Anwendung nicht zugänglich","TRUSTED_APPLICATION_NAME_REQUIRED":"Vertrauenswürdige Anwendung: Name erforderlich","TRUSTED_APPLICATION_TOKEN_REQUIRED":"Vertrauenswürdige Anwendung: Token erforderlich","TRUSTED_APPLICATION_NAME_ALREADY_EXISTS":"Vertrauenswürdige Anwendung: Name existiert bereits","TRUSTED_APPLICATION_INVALID_TOKEN":"Vertrauenswürdige Anwendung: Ungültiger Token"}}');var XR={};XR=JSON.parse('{"yes":"Sí","no":"No","confirm":"Confirmar","apply":"Aplicar","cancel":"Cancelar","show":"Espectáculo","hide":"Esconder","send":"Enviar","scrollToLatest":"Ir al último mensaje","scrollToContinueReading":"Desplázate para seguir leyendo","close":"Cerrar","clearHistory":"Borrar chat","clearHistoryDone":"Chat borrado.","moreInfo":"Más información","back":"Volver","edit":"Editar","delete":"Borrar","loading":"Cargando","expand":"Expandir","collapse":"Contraer","expandable":{"expand":"Expandir"},"fullscreenEnter":"Entrar en pantalla completa","fullscreenExit":"Salir de pantalla completa","center":"Centro","bottom":"Abajo","hidden":"Oculto","day":"Día","all":"Todos","today":"Hoy","yesterday":"Ayer","last_7_days":"Últimos 7 días","last_30_days":"Últimos 30 días","placeholder":"Haz una pregunta","date":"Fecha de nacimiento","month":"Mes","copied":"¡Copiado!","missingData":"Información faltante","year":"Año","createdAt":"Fecha de creación","selected":"Seleccionado","page":"página","actions":"Comportamiento","next":"Próximo","previous":"Anterior","copy":"Copiar","copyRawCode":"Copiar código sin formato","feedback":"Comentarios","feedbackThankYou":"Gracias por tus comentarios.","copyFailed":"No se pudo copiar","functionCache":"Caché de funciones","copyToClipboard":"Copiar al portapapeles","showOriginalText":"Mostrar original","showTranslatedText":"Mostrar traducción","exactPosition":"Posición exacta","uncertain":"Incierto","question":"Pregunta","nothingFound":"No se encontró nada","venue":"Evento","searchVenue":"Buscar un lugar…","privacyPolicy":"Política de privacidad","popularLanguages":"Populares","allLanguages":"Todos los idiomas","memoriBlockedTitle":"Obstruido","memoriBlockedUntil":"Agent bloqueado hasta {{date}}","memoriBlockedAnon":"Actualmente \\"{{name}}\\"No puedo responder, vuelve aquí. {{date}}","memoriBlockedReasonExceedChats":"porque ha superado el umbral mensual de chats permitidos.","memoriBlockedGiverHelper":"Aún podrás administrarlo como administrador, pero otros usuarios no podrán interactuar con él.","generatedByAI":"La respuesta generada por IA, ocasionalmente puede generar información incorrecta","aiGeneratedNote":"El agente puede hacer errores. Asegúrate de verificar información importante.","reasoning":"Pensamiento...","thinking":"Pensando","thought":"Pensamiento","thoughtFor":"Pensado durante {{count}} s","whyThisAnswer":"De dónde viene esta respuesta","whyThisAnswerHelper":"Esta respuesta fue generada automáticamente por una inteligencia artificial basada en estos contenidos verificados.","whyThisAnswerDescription":"Los contenidos de la base de conocimiento que el agente consultó para responder.","whyThisAnswerYouAsked":"Has preguntado","whyThisAnswerUserAsked":"Pregunta del usuario","whyThisAnswerAgentReplied":"El agente ha respondido","whyThisAnswerShowFull":"Mostrar la respuesta completa","whyThisAnswerContentsUsed":"Contenidos usados","whyThisAnswerOpen":"Abrir","whyThisAnswerDisclaimer":"La respuesta la ha escrito el agente a partir de estos contenidos: puede contener errores o reformulaciones. Verifica la información importante en la fuente.","whyThisAnswerEmptyTitle":"Ningún contenido consultado","whyThisAnswerEmptyDescription":"Para esta pregunta el agente no encontró coincidencias en la base de conocimiento: ha respondido solo según sus instrucciones.","whyThisAnswerEmptyAuthorDescription":"La pregunta no produjo coincidencias. Si debería tenerlas, añade un contenido que la cubra.","whyThisAnswerAddContent":"Añadir a la base de conocimiento","whyThisAnswerConfidenceHigh":"Coincidencia alta","whyThisAnswerConfidenceMedium":"Coincidencia parcial","whyThisAnswerConfidenceLow":"Coincidencia débil","whyThisAnswerTypeQuestion":"Pregunta y respuesta","whyThisAnswerTypeDocument":"Documento","whyThisAnswerTypeWebsite":"Sitio web","whyThisAnswerTypeStory":"Relato","whyThisAnswerSourcesCount_one":"{{count}} fuente","whyThisAnswerSourcesCount_other":"{{count}} fuentes","whyThisAnswerNoSources":"Ninguna fuente","receiverLabel":"Asignado a","completionsEnabled":"La IA avanzada puede responder con respuestas generadas automáticamente que a veces pueden contener información incorrecta.","completionProviderDown":"Este Agent está integrado con una IA generativa de {{provider}}, pero actualmente no está disponible. ","completionProviderMajorOutage":"Este Agent está integrado con una IA generativa de {{provider}}, pero al momento no está disponible. No será posible utilizar esta funcionalidad hasta que el servicio se restaure.","completionProviderPartialOutage":"Este Agent está integrado con una IA generativa de {{provider}}, pero está experimentando interrupciones parciales. Algunas funcionalidades pueden no estar disponibles o funcionar de manera no óptima.","completionProviderDegraded":"Este Agent está integrado con una IA generativa de {{provider}}, pero está funcionando más lentamente de lo normal. Las respuestas pueden tomar más tiempo o ser menos precisas.","completionProviderFallbackName":"un proveedor externo","completionProviderCheckStatusPage":"Comprobar página de estado","boardOfExperts":"junta de expertos","birthDate":"Fecha de nacimiento","birthDateHelper":"Solicitamos tu fecha de nacimiento únicamente para habilitar o deshabilitar funcionalidades que tienen restricciones de edad.","underage":"Debes ser al menos {{age}} años para inscribirse.","underageTwinSession":"Debes ser al menos {{age}} años para interactuar con este gemelo.","errorFetchingSession":"Error durante el cargamento de la sesión","errorGettingReferralURL":"Error durante el cargamento del référent","errorReopeningSession":"Error durante el re-abrir la sesión","sessionExpiredReopening":"Sesión expirada, reabriendo sesión","ageVerification":"Verificación de edad","ageVerificationText":"Para interactuar con este Gemelo, debes tener al menos {{minAge}} años.","ageVerificationSuccess":"Edad verificada con éxito.","nsfw":"NSFW: Este gemelo contiene contenido para adultos","deepThought":"pensamiento profundo","deepThoughtWhatIs":"¿Qué es Deep Thought?","deepThoughtHelper":"Deep Thought es una característica avanzada de la IA que te permitirá explotar al máximo tus conversaciones al realizar un seguimiento de ellas. ","deepThoughtDisclaimerTitle":"Pensamiento profundo habilitado","deepThoughtDisclaimer":"Deep Thought es una característica avanzada de la IA que te permitirá explotar al máximo tus conversaciones al realizar un seguimiento de ellas. ","deepThoughtPreDisclaimerUnlogged":"Inicie sesión para habilitar Pensamiento profundo.","deepThoughtPreDisclaimerNotAllowed":"Deep Thought está deshabilitado porque usted no dio su consentimiento para su uso; puede cambiar esto en cualquier momento en la configuración de su cuenta.","notEnoughCredits":"El autor de este Gemelo no tiene suficientes créditos para responder a tu pregunta.","confirmDialog":{"title":"¿Quieres salir de esta página?","message":"Los cambios que has realizado se perderán."},"knownFacts":{"title":"Hechos conocidos","description":"Lo que {{memoriName}} recuerda de ti. Puedes eliminar cada entrada.","type":"Tipo","typeShortTerm":"Corto plazo","typeLongTerm":"Largo plazo","typeHelper":"Tipos:\\n","text":"Texto","searchPlaceholder":"Buscar entre los hechos","select":"Seleccionar","loadMore":"Cargar más","factsCount_one":"{{count}} hecho","factsCount_other":"{{count}} hechos","shownOfTotal":"Mostrados {{shown}} de {{total}}","emptyTitle":"Todavía no hay hechos","emptyDescription":"A medida que habláis, el agente anota aquí lo que aprende sobre ti. Podrás eliminarlo en cualquier momento.","deleteLabel":"Eliminar este hecho","deleteSuccess":"Hecho conocido eliminado","deleteConfirmTitle":"Eliminar hecho conocido","deleteConfirmMessage":"¿Está seguro de que desea eliminar este hecho conocido?","deleteSelectedConfirmTitle":"Eliminar hechos conocidos seleccionados","deleteSelectedConfirmMessage":"¿Está seguro de que desea eliminar los hechos conocidos seleccionados?","selected_one":"{{count}} hecho seleccionado","selected_other":"{{count}} hechos seleccionados","selectedRows_one":"{{count}} fila seleccionada","selectedRows_other":"{{count}} filas seleccionadas"},"auth":{"title":"Autenticación","description":"Este agente está protegido. Introduce la contraseña para continuar.","useRecoveryTokens":"Utilice tokens de recuperación","tokens":"Fichas","addToken":"Agregar token","usePassword":"Usar contraseña","passwordRequired":"Contraseña obligatoria","invalidCredentials":"Credenciales no válidas","atLeast":"Al menos"},"widget":{"instruct":"Instruir","test":"Probar","sound":"Sonido","soundOff":"Sonido desactivado","position":"Preferencias de posición","settings":"Ajustes","share":"Compartir","shareChat":"Compartir chat","sendOnKeypress":"Presiona Enter para enviar","sendOnClick":"Haz clic en Enviar","boardOfExperts":"Panel de expertos","showExpertsInTheBoard":"Mostrar expertos en este panel","expertsInTheBoard":"Expertos en este panel","goToIntegrationsToCustomizeAvatar":"Para personalizar el avatar, ve a Compartir y personaliza la página pública","chatAssistantStatus":"Activa • Responde en pocos segundos","agentStatusListening":"escuchando","agentStatusSpeaking":"hablando","agentStatusProcessing":"procesando","shareLocation":"Compartir ubicación","shareLocationHint":"Recibe respuestas adaptadas a dónde estás","shareLocationAria":"Compartir ubicación con el asistente","knownFactsHint":"Lo que recuerdo sobre ti","aiConsumption":"Consumo de IA","editPositionAria":"Editar ubicación","positionResolving":"Obteniendo dirección…","geocodingFailed":"No se pudo obtener la dirección. Inténtalo de nuevo o busca manualmente.","positionUnavailableManual":"Ubicación no disponible. Introdúcela manualmente.","positionSharingEnabled":"Ubicación compartida.","headerHistory":"Historial","headerProfile":"Perfil","headerLogin":"Iniciar sesión","expandToImmersive":"Expandir para vista inmersiva","moreActions":"Más acciones","mobileSession":{"session":"Sesión","sessionInfo":"Información de la sesión","copyLinkOrDownload":"Copiar enlace o descargar","currentlyOff":"Actualmente desactivado","whatIKnowAboutYou":"Detalles de la información compartida entre usted y {{memoriName}}","locationTracking":"Seguimiento de ubicación","locationStatus":"Estado","useCurrentPosition":"Usar ubicación actual","disableLocationSharing":"Desactivar uso compartido de ubicación","openKnownFacts":"Abrir todos los hechos conocidos","knownFactsMessages":"{{count}} mensajes en la sesión actual"}},"exportChatHistory":{"exportPDF":"Exportar chat como PDF","exporting":"Exportando...","empty":"No hay historial de chat para exportar","pdfNotSupported":"La exportación PDF no es compatible con este navegador","success":"Chat exportado a PDF exitosamente","error":"Error al exportar el chat a PDF. Por favor, inténtalo de nuevo."},"write_and_speak":{"micButtonPopover":"Haga clic en el botón para hablar","micButtonPopoverListening":"Haga clic en el botón para dejar de hablar.","stopRecording":"Detener grabación","sendRecording":"Enviar mensaje de voz","recordingInProgress":"Grabación en curso","pageInstructExplanation":"Para enseñarme cosas nuevas, haga clic en el botón INSTRUIRME para comenzar.","pageTryMeExplanation":"Para empezar a conversar conmigo haga clic en el botón INICIO","pagePrivacyExplanation":"Las conversaciones son visibles por el autor del agente","pagePrivacyExplanationList":{"allConversations":"Todas las conversaciones con este agente son visibles por el autor del agente","anonymousUser":"Para usuarios anónimos: el autor verá el contenido de la conversación y su dirección IP","registeredUser":"Para usuarios registrados: el autor verá el contenido de la conversación y su nombre de usuario","contentAndUsername":"El autor puede ver el contenido, tu nombre de usuario y tu dirección IP","contentAndIpAddress":"El autor puede ver el contenido y tu dirección IP","authorUsesInfo":"El autor utiliza estas informaciones para mejorar las funciones del agente y para ofrecerte un mejor servicio."},"instructButton":"INSTRUÍME","aiDisclaimer":"El agente puede cometer errores. Por favor, verifica las respuestas.","downloadChat":"Descargar chat","tryMeButton":"COMENZAR","resumeButton":"CONTINUAR","chatHistory":"Historial de chat","chatHistoryDescription":"Mostrar el historial de chat con este agente","loadingChatHistory":"Cargando historial de chat...","noChatHistoryAvailable":"No hay historial de chat disponible","noResultsFound":"No se encontraron resultados para \\"{{searchText}}\\"","searchInChatHistory":"Buscar en las conversaciones","filters":"Filtros","latestFirst":"Más recientes primero","oldestFirst":"Más antiguos primero","exportChat":"Exportar Chat","conversationStartedLabel":"Conversación iniciada","settingsHeaderLabel":"Configure aquí si desea configurar la memoria como voz continua y cambie los segundos de silencio si desea personalizarlos.","continuousSpeechLabel":"discurso continuo","continuousSpeechDisabled":"Discurso continuo deshabilitado porque el agente está en modo silencioso","holdToSpeak":"Mantenga para hablar","releaseToEndListening":"Suelte para finalizar la escucha","pressAndHoldToSpeak":"Mantenga presionado para hablar","microphoneMode":"Modo micrófono","hideEmissionsLabel":"Ocultar texto emitido por el Agent","showMessageConsumptionLabel":"Mostrar consumo por mensaje","secondsLabel":"Establecer segundos","controlsPosition":"Posición de los controles","tryMeHeaderLabel":"INTENTAR","unknownPosition":"Posición desconocida","fieldPlace":"Escribe el lugar (por ejemplo, \'Milano\')","showMapLinkFor":"Mostrar la posición en el mapa.","useMyPosition":"Usa mi posición","myPosition":"Tu posición","updatingPosition":"Actualizando posición...","placeNotFound":"¡Lugar no encontrado!","requirePosition":"Inserte su posición antes de comenzar","requirePositionHelp":"para hablar con {{name}} usted tiene que decidir si proporciona su puesto o no. ","dontWantToProvidePosition":"Continuar sin ubicación","requireLoginHelp":"Para hablar con {{name}} primero debes iniciar sesión con tu cuenta.","skipLocationTitle":"No se guardará ninguna ubicación en el mapa.","locationSaved":"Tu ubicación se guardó.","locationSavedWithPlace":"Tu ubicación se guardó: {{place}}","locationSkippedConfirm":"Continuarás sin compartir tu ubicación.","placeSelected":"Lugar seleccionado: {{place}}","locationPermissionDenied":"Se denegó el acceso a la ubicación. Permítela en la configuración del navegador o elige un lugar en el mapa.","locationUnavailable":"No se pudo determinar tu posición. Inténtalo de nuevo o busca un lugar.","locationRequestTimedOut":"La solicitud de ubicación expiró. Inténtalo de nuevo o busca un lugar.","locationErrorGeneric":"Algo salió mal al obtener tu ubicación.","attachmentsLabel":"Enriquece tu mensaje","image":"imagen","images":"imagenes","file":"archivo","files":"archivos","function":"función","functions":"funciones","iWantToTalkToIn":"quiero hablar con {{name}} en","chatLanguageLabel":"Elige el idioma de la conversación","chatResumed":"Conversación reanudada correctamente.","message":"mensaje","messages":"mensajes","downloadThisConversation":"Descargar esta conversación","downloadAllConversations":"Descargar todas las conversaciones","conversationsCount_one":"{{count}} conversación","conversationsCount_other":"{{count}} conversaciones","shownOfTotal":"Mostradas {{shown}} de {{total}}","loadMore":"Cargar más","backToConversationList":"Volver a la lista de conversaciones","thisWeek":"Esta semana","page":"Página {{current}} de {{total}}"},"chatResume":{"resume":"Reanudar la conversación"},"artifact":{"close":"Cerrar","size":"Tamaño","updated":"actualizado","updateFailed":"No se pudo aplicar la actualización","updateFailedHint":"El parche no coincide con el contenido actual. Pide reescribir el artifact.","generated":"Generado","download":"Descargar","print":"Imprimir","external":"Abrir en una nueva ventana","type":"Tipo","fullscreen":"Pantalla completa","exitFullscreen":"Salir de pantalla completa","copy":"Copiar","generatedAt":"Generado el","open":"Abrir","code":"Código","source":"Fuente","preview":"Vista previa","resizeHandle":"Redimensionar el panel de artifact","copied":"¡Copiado!","error":"Error","generatingPdf":"Generando PDF...","copying":"Copiando...","moreCopyOptions":"Más opciones de copia","copyAs":"Copiar como","downloadAsMarkdown":"Descargar como Markdown","downloadRawMarkdownText":"Descargar texto markdown sin formato","downloadAsPdf":"Descargar como PDF","exportAsPdfDocument":"Exportar como documento PDF","downloadAsHtml":"Descargar como HTML","downloadFormattedHtml":"Descargar HTML formateado","viewMode":"Modo Vista","codeMode":"Modo Código","refresh":"Actualizar","share":"Compartir","downloadAsJson":"Descargar como JSON","downloadJsonData":"Descargar datos JSON","downloadAsPng":"Descargar como PNG","downloadPngImage":"Descargar imagen PNG","downloadAsJpeg":"Descargar como JPEG","downloadJpegImage":"Descargar imagen JPEG","downloadAsGif":"Descargar como GIF","downloadGifImage":"Descargar imagen GIF","downloadAsWebp":"Descargar como WebP","downloadWebpImage":"Descargar imagen WebP","copyAsSvg":"Copiar como SVG","copySvgSourceCode":"Copiar código fuente SVG","copyAsPlainText":"Copiar como texto plano","copyAsText":"Copiar como texto","copyAsLanguage":"Copiar como {{language}}","copyLanguageCode":"Copiar código {{language}}","copyWithoutSyntaxHighlighting":"Copiar sin resaltado de sintaxis","copyTextContent":"Copiar contenido de texto","pdfExportNotSupported":"La exportación PDF no es compatible con este navegador","popupBlocked":"¡Popup bloqueado! Por favor, habilita los popups para imprimir.","safariPdfInstructions":"Exportación PDF abierta en nueva ventana. Por favor, usa Cmd+P (Mac) o Ctrl+P (Windows) para imprimir y guardar como PDF."},"upload":{"loginRequired":"Connexion requise","pastedText":"texto-pegado","uploadNotification":"Échec del téléchargement","loginRequiredDescription":"Veuillez vous connecter pour télécharger des images","uploadFiles":"Télécharger des fichiers (drag and drop)","uploadFilesOrImages":"Subir archivos o imágenes","uploadFilesWithShortcut":"{{shortcut}}+O para abrir el selector de archivos","uploadImages":"Télécharger des images","titleImage":"Añadir un título a la imagen","uploadDocuments":"Télécharger des documents","apiClientNotConfigured":"API client non configuré correctement pour le téléchargement de médias","fileReadingFailed":"Échec de la lecture du fichier","uploadFailed":"Échec du téléchargement","uploadSuccess":"Téléchargement réussi","uploadSuccessDescription":"Le fichier a été téléchargé avec succès","replace":"Remplacer","maxImagesReached":"Vous pouvez télécharger jusqu\'à {{max}} images","remaining":"restant","maxReached":"Limite atteinte","dragAndDropFiles":"Arrastre y suelte los archivos aquí para agregarlos a la chat","contextSizeExceedsLimit":"El tamaño del contexto supera el límite. Intenta reducir el número de archivos o el contenido de la conversación.","filesNotAddedMaxAllowed":"{{count}} archivo(s) no añadido(s) (máximo {{max}} archivos permitidos).","documentsNotAddedMaxAllowed":"{{count}} documento(s) no añadido(s) (máximo {{max}} archivos permitidos).","imagesNotAddedMaxAllowed":"{{count}} imagen(es) no añadida(s) (máximo {{max}} archivos permitidos).","documentsNotAddedContextSize":"{{count}} documento(s) no añadido(s) (límite de tamaño de contexto).","partialAssetUploadWarning":"No se pudieron cargar algunos enlaces del archivo, pero el documento se agregó igualmente.","anonymousRetentionNotice":"Nota: los archivos cargados se conservan durante un máximo de 24 horas."},"media":{"title":"Título","editAttributes":"Editar atributos de medios","uploadMimeTypeNotAllowed":"El tipo de archivo no está permitido.","uploadSizeLimitMessage":"El tamaño subido es demasiado grande (máx. {{size}}MEGABYTE)","uploadWrongResolutionMessage":"La resolución debe ser {{width}}incógnita{{height}} píxel","memoriNameAlreadyUsed":"Ya tienes un gemelo con este nombre.","uploadHelperImages":"Sube un archivo con extensión png, jpg, jpeg o gif, y que tenga como máximo un tamaño de {{size}}MEGABYTE","uploadHelper":"Cargue un archivo que tenga como máximo un tamaño de {{size}}MEGABYTE","uploadError":"Error al subir","square":"cuadrado","scaleRatio":"Relación de escala","addMediaLabel":"Agregar un medio","insertThisMediaMsg":"Inserte estos medios","mediaUploadMessage":"Haga clic para cargar un nuevo medio","addLinkLabel":"Agregar un enlace","linkKey":"URL","linkValue":"Título del enlace","insertThisLink":"Insertar un enlace a {{url}} con titulo {{title}}"},"gamification":{"level":"Nivel","points":"agujas","memoriReachedLevel":"se volvió más evolucionado y alcanzó el nivel","levelGoToStatistics":"{{Agent}} esta al nivel {{level}} con {{points}} agujas. ","congratulationsNewLevel":"¡Felicitaciones, has alcanzado un nuevo nivel!","congratulationsNewLevelDescription":"Tu Agent se volvió más evolucionado con {{points}} puntos, mira el","statistics":"estadística"},"login":{"login":"Acceso","title":"Iniciar sesión en tu cuenta","loggingIn":"Iniciando sesión…","logout":"Cerrar sesión","user":"Usuario","loggedDrawerTitle":"Hola, {{name}}!","loginDrawerTitle":"Acceso","userNameRequired":"Nombre de usuario requerido","userName":"Nombre de usuario","userNamePlaceholder":"Ingrese el nombre de usuario","signupDrawerTitle":"Inscribirse","newUserSignUp":"¿Nuevo usuario?","signUp":"¡Inscribirse!","alreadyHaveAnAccount":"¿Ya tienes una cuenta?","backToLogin":"Volver a iniciar sesión","registrationDisabled":"El registro está deshabilitado","contactAdmin":"Póngase en contacto con el administrador para solicitar acceso","userNameOrEmail":"Nombre de usuario o correo electrónico","email":"Correo electrónico","emailFormatError":"Por favor, inserte un correo electrónico válido","username":"Nombre de usuario","usernameContainsReservedWord":"El nombre de usuario contiene una palabra reservada, elija otra","usernameFormatError":"El nombre de usuario debe tener al menos 3 caracteres y contener solo letras, números y _","otpCode":"Código de verificación","resendVerificationCode":"Reenviar código","resentVerificationCode":"¡Código de confirmación enviado! ","welcomeTitle":"Bienvenido de nuevo","welcomeDescription":"Ingresa tu código de verificación de 4 dígitos para continuar a tu cuenta","otpTitle":"Ingresa el código de verificación","otpDescription":"Ingresa el código de 4 dígitos que generaste en tu cuenta","otpStep1":"Haz clic en el botón de abajo para abrir tu cuenta","otpStep2":"Genera un código de verificación de 4 dígitos (válido por 5 minutos)","otpStep3":"Regresa aquí e ingresa el código","startOtpLogin":"Iniciar verificación","generateOtp":"Generar código","otpTimer":"El código expira en {{time}}","otpInvalidFormat":"Por favor ingresa un código válido de 4 dígitos","otpInvalid":"Código de verificación inválido","otpError":"Error al validar el código. Por favor intenta de nuevo.","otpSuccess":"¡Inicio de sesión exitoso!","otpEmailTitle":"Ingresa tu email","otpEmailDescription":"Ingresa tu dirección de email para recibir un código de verificación","otpCodeDescription":"Ingresa el código de 4 dígitos enviado a {{email}}","emailPlaceholder":"Ingresa tu email","sendOtp":"Enviar el código","resendOtp":"Reenviar","resendOtpIn":"Reenviar en {{seconds}}s","resendOtpPrompt":"¿No llegó? Reenviar en {{seconds}} s","resendOtpQuestion":"¿No llegó?","resending":"Reenviando...","backToEmail":"Volver al email","editEmail":"Editar","otpSentToPrefix":"Hemos enviado un código de 4 dígitos a","otpCodeShort":"Código","loginBenefitLine1":"{{memoriName}} puede mostrarte el historial de chat, que se puede reanudar en cualquier momento.","loginBenefit":"{{memoriName}} puede mostrarte el historial de chat, que se puede reanudar en cualquier momento.","passwordlessHint":"Te enviamos un código de 4 dígitos. Sin contraseña que recordar.","defaultAgentName":"el agente","otpSent":"¡Código de verificación enviado!","otpResent":"¡Código reenviado exitosamente!","otpSendError":"Error al enviar el código. Por favor intenta de nuevo.","emailRequired":"Email requerido","emailInvalid":"Por favor ingresa una dirección de email válida","otpNotFound":"Código de verificación no encontrado","otpExpired":"El código de verificación ha expirado","otpMissing":"El código de verificación es requerido","otpAttemptsExceeded":"Demasiados intentos. Solicita un nuevo código de verificación.","otpSuccessMessage":"¡Verificación exitosa! Redirigiendo...","otpSuccessDescription":"Tu cuenta ha sido verificada exitosamente. Serás redirigido en breve.","otpHelp":"Ingresa el código de 4 dígitos de tu email","emailHelp":"Te enviaremos un código de verificación","userFetchError":"Error al cargar los datos del usuario. Por favor intenta de nuevo.","otpStep1Title":"Ingresa Email","otpStep2Title":"Revisa Email","otpStep3Title":"Ingresa Código","featureFast":"Rápido","featureSecure":"Seguro","featureMobile":"Móvil","password":"Contraseña","newPassword":"Nueva contraseña","confirmPassword":"confirmar Contraseña","currentPassword":"Contraseña actual","passwordMatchingError":"Las contraseñas no coinciden.","passwordFormatError":"La contraseña debe tener al menos 8 caracteres y contener al menos un número, una letra mayúscula, una letra minúscula y un símbolo.","pwdWeak":"Débil","pwdAcceptable":"Aceptable","pwdStrong":"Fuerte","mustChangePassword":"Debes cambiar tu contraseña","passwordChange":"Cambiar la contraseña","emailChange":"Cambiar correo electrónico","avatarChange":"Cambiar avatar","avatarUploadSuccess":"Foto de perfil actualizada.","underage":"Debes ser al menos {{age}} años para inscribirse.","optional":"Opcional","birthDate":"Fecha de nacimiento","birthDatePlaceholder":"DD/MM/AAAA","birthDateHelper":"Solicitamos tu fecha de nacimiento únicamente para habilitar o deshabilitar funcionalidades que tienen restricciones de edad.","missingData":"Información faltante","missingDataHelper":"Sabemos que esto es un poco molesto, pero necesitamos más información para completar tu registro.","goToAccountToChangeYourPreferences":"Puede cambiar su elección en cualquier momento desde la página de su Cuenta.","deepThoughtExplaination":"Deep Thought es una característica avanzada de la IA que te permitirá explotar al máximo tus conversaciones al realizar un seguimiento de ellas. ","tnCAndPPAcceptedHelper":"Desde su último inicio de sesión, los Términos y condiciones y la Política de privacidad han cambiado. ","privacyLabel":"He leído y acepto el","privacyAndCookiePolicy":"Política de privacidad y cookies","and":"y","termsOfService":"Términos de servicio","pAndCUAccepted":"Acepto los términos de servicio sobre Deep Thought","editAccount":"Editar cuenta","save":"Ahorrar","successfullyLoggedIn":"{{username}} ha iniciado sesión correctamente"},"chatLogs":{"llm":"LLM","model":"Modelo","provider":"Proveedor","tokens":"Tokens","input":"Entrada","output":"Salida","cacheRead":"Lectura de caché","cacheWrite":"Escritura de caché","duration":"Duración","energy":"Energía","co2":"CO2","water":"Agua","usageBadgesHint":"Haz clic en uno de estos botones para ver más información","totalChatConsumptionTitle":"Consumo Total del Chat","modelUsage":"Uso del modelo","environmentalImpact":"Impacto ambiental","impactComparisonUnavailable":"Comparacion indicativa no disponible.","impactComparisonEnergy":"Comparacion indicativa: aproximadamente como mantener encendida una bombilla LED de 10 W durante {{duration}}.","impactComparisonCo2":"Comparacion indicativa: aproximadamente {{distance}} recorridos en un coche de gasolina promedio.","impactComparisonWater":"Comparacion indicativa: aproximadamente {{count}} gotas de agua.","energyImpactDescription":"Este valor estima la energia electrica necesaria para generar la respuesta del modelo. Sirve para comparar prompts, modelos y estrategias incluso cuando un solo mensaje tiene un impacto muy pequeno.","co2ImpactDescription":"El CO2 equivalente representa el impacto climatico estimado del mensaje. Traducir el consumo a emisiones ayuda a entender cuanto pesa una respuesta de IA en el medioambiente con metricas comparables.","waterImpactDescription":"Este indicador muestra la huella hidrica estimada asociada al procesamiento del mensaje. Incluye el agua utilizada indirectamente en la energia y en la infraestructura que soporta el calculo.","approximateValuesTooltip":"Estos valores son aproximados.","anyMessage":"Cualquier mensaje","atLeast":"Al menos {{count}} mensajes","atLeast1":"Al menos 1 mensaje","atLeast2":"Al menos 2 mensajes","atLeast3":"Al menos 3 mensajes","atLeast5":"Al menos 5 mensajes","atLeast10":"Al menos 10 mensajes","atLeast15":"Al menos 15 mensajes","atLeast20":"Al menos 20 mensajes","customMinimumMessages":"Personalizar el número de mensajes"},"success":"Éxito","Error":"Error","internal server error":"Oupsie, lo siento... Algo salió mal en el servidor.","error":"Error","error.loading":"Error al cargar contenido.","error.generic":"Oupsie, lo siento... algo salió mal.","error.serverNotResponding":"Estamos realizando mantenimiento o lanzando actualizaciones. ","error.notFound":"Oupsie, no encontramos la página que buscabas.","error.goBackTo":"Puedes intentar volver al","error.reloadPage":"recargar la pagina","error.tryAgain":"Intentar otra vez","error.unauthorized":"No estás autorizado a ver este contenido.","error.unprocessableEntity":"Error al procesar la solicitud. ","errors":{"TENANT_NOT_FOUND":"Inquilino no encontrado","TENANT_REGISTRATION_DISABLED":"El registro en esta plataforma está deshabilitado","TENANT_MISSING_NAME":"Inquilino: falta el nombre","TENANT_MAX_USERS_REACHED":"Número máximo de usuarios alcanzado","TENANT_MAX_ADMINS_REACHED":"Número máximo de usuarios administradores alcanzado","TENANT_ALREADY_EXISTS":"El inquilino ya existe","TENANT_MISSING_DESCRIPTION":"Inquilino: falta descripción","TENANT_CANT_SET_COMPLETION_PROVIDER":"Inquilino: no se puede configurar el proveedor de finalización","TENANT_INVALID_TYPE":"Inquilino: tipo no válido","USER_NOT_CONFIRMED":"Usuario aún no confirmado","USER_NOT_FOUND":"Usuario no encontrado","USER_OR_PASSWORD_INVALID":"Usuario o contraseña no válidos","USER_MUST_CHANGE_PASSWORD":"Debes cambiar tu contraseña","USER_MUST_ENTER_VERIFICATION_CODE":"Debes ingresar el código de verificación","USER_MISSING_TENANT":"Usuario: inquilino desaparecido","USER_MISSING_NAME":"Usuario: falta el nombre","USER_MISSING_PASSWORD":"Usuario: falta contraseña","USER_MISSING_EMAIL":"Usuario: Falta correo electrónico","USER_MISSING_VERIFICATION_CODE":"Usuario: Falta el código de verificación","USER_NAME_ALREADY_USED":"Nombre de usuario ya en uso","USER_PASSWORD_NOT_CONFORMING_TO_POLICY":"La contraseña no cumple con las reglas de seguridad.","USER_EMAIL_ALREADY_USED":"Correo electrónico ya en uso","USER_EMAIL_INVALID":"Correo electrónico no válido","USER_VERIFICATION_CODE_INVALID":"Código de verificación no válido","USER_MISSING_NAME_OR_EMAIL":"Falta nombre de usuario o correo electrónico","USER_NAME_INVALID":"Nombre de usuario no válido","USER_HAS_ONE_OR_MORE_MEMORI":"El usuario tiene uno o más recuerdos.","USER_MISSING_NEW_PASSWORD":"Usuario: falta nueva contraseña","USER_NOTHING_TO_DO":"Nada que hacer","USER_CANT_CREATE_MEMORI":"Usuario no autorizado a crear Agent","USER_MAX_MEMORI_REACHED":"Número máximo de Agent alcanzado","USER_TOO_MANY_ATTEMPTS":"demasiados intentos","USER_MUST_ACCEPT_TNC_AND_PP":"Debes aceptar los términos y condiciones.","USER_BIRTH_DATE_CANT_BE_CHANGED":"La fecha de nacimiento no se puede cambiar.","USER_CANT_SET_COMPLETION_PROVIDER":"Usuario: no tiene permiso para gestionar el proveedor de finalización","USER_CANT_ENABLE_DEEP_THOUGHT":"Usuario: no habilitado para gestionar Deep Thought","USER_CANT_ENABLE_DCM_INTEGRATION":"Usuario: no habilitado para gestionar la integración de DCM","USER_CANT_ENABLE_CHAINING_OR_BOARD_OF_EXPERTS":"Usuario: no se le permite gestionar encadenamiento o grupo de expertos","USER_CREATION_BILLING_DENIED_PERMISSION":"No tienes suficientes créditos para crear un gemelo","USER_HAS_ONE_OR_MORE_COMPLETION_CONFIGS":"El usuario tiene una o más configuraciones de finalización.","USER_CANT_BE_DELETED":"Usuario: no se puede eliminar","USER_ORDER_BY_INVALID":"Orden por no válido","MEMORI_NOT_FOUND":"Memoria no encontrada","MEMORI_NOT_ACCESSIBLE":"Memorias no accesibles","MEMORI_ONLY_OWNER_CAN_CHANGE_GIVER_TAG_AND_PIN":"Sólo el propietario puede cambiar la etiqueta o el pin","SESSION_NOT_FOUND":"Sesión no encontrada","SESSION_IS_NOT_ADMINISTRATIVE":"Sesión no administrativa","SESSION_EXPIRED":"La sesión expiró","speechMissingSession":"La voz requiere una sesión activa","speechInvalidSession":"La sesión no es válida","speechTenantMismatch":"La voz no está disponible en este sitio","speechRateLimited":"Demasiadas solicitudes de voz. Espera un momento e inténtalo de nuevo.","SESSION_OTP_NOT_FOUND":"Código de verificación no encontrado","SESSION_OTP_EXPIRED":"El código de verificación ha expirado","SESSION_OTP_INVALID":"Código de verificación inválido","SESSION_OTP_ATTEMPTS_EXCEEDED":"Demasiados intentos. Solicita un nuevo código de verificación.","MEMORI_MISSING_CONFIGURATION":"Gemelo: falta configuración","MEMORI_CONFIGURATION_NOT_FOUND":"Gemelo: configuración no encontrada","MEMORI_INVALID_PRIVACY_TYPE":"Gemelo: tipo de privacidad no válido","MEMORI_MISSING_PASSWORD":"Gemelo: falta contraseña","MEMORI_INVALID_TOTAL_NUMBER_OF_RECOVERY_TOKENS":"Gemelo: número total de tokens de recuperación no válidos","MEMORI_INVALID_MINIMUM_NUMBER_OF_RECOVERY_TOKENS":"Gemelo: número mínimo de tokens de recuperación no válidos","MEMORI_INVALID_VOICE_TYPE":"Gemelo: tipo de voz no válido","MEMORI_MISSING_NAME":"Gemelo: falta nombre","MEMORI_MISSING_PASSWORD_OR_RECOVERY_TOKENS":"Gemelo: falta contraseña o token de recuperación","MEMORI_INVALID_ID":"Gemelo: identificación no válida","MEMORI_NAME_ALREADY_USED":"Nombre gemelo ya en uso","MEMORI_INVALID_PIN":"Gemelo: PIN no válido","MEMORI_GIVER_TAG_PIN_CHANGE_REQUIRES_SEPARATE_OPERATION":"Gemelo: el cambio de TAG y PIN requiere operaciones separadas","MEMORI_NO_PASSWORD_WHEN_PUBLIC":"Agent: no se requiere contraseña cuando es público","MEMORI_DEEP_THOUGHT_REQUIRES_COMPLETIONS":"Deep Thought requiere que las completaciones estén habilitadas","MEMORI_BOARD_OF_EXPERTS_REQUIRES_COMPLETIONS":"El grupo de expertos requiere que se habiliten las completaciones.","MEMORI_INVALID_COMPLETION_CONFIG":"Gemelo: configuración de finalizaciones no válidas","MEMORI_MACRO_FUNCTIONS_REQUIRES_COMPLETIONS":"Macro funciones requiere que se habiliten las finalizaciones","MEMORI_BLOCKING_DATE_MISSING_OR_WRONG":"Gemelo: fecha de bloqueo faltante o incorrecta","MEMORI_LIST_FILTER_NOT_SPECIFIED":"Gemelo: filtro no especificado","MEMORI_TRANSFER_MISSING_DESTINATION_USER":"Transferencia: falta usuario de destino","MEMORI_TRANSFER_INVALID_DESTINATION_USER_ID":"Transferencia: ID de usuario de destino no válido","MEMORI_TRANSFER_DESTINATION_USER_DATA_INCONSISTENT":"Transferencia: datos de usuario de destino no válidos","MEMORI_TRANSFER_NOTHING_TO_DO":"Transferencia: nada que hacer","MEMORI_CONFIGURATION_CANT_BE_CHANGED":"Memorias: la configuración no se puede cambiar","MEMORI_MISSING_NEW_PASSWORD":"Recuerdos: falta nueva contraseña","MEMORI_FEATURE_REQUIRES_SUBSCRIPTION":"La función requiere suscripción","INTEGRATION_NOT_FOUND":"Integración no encontrada","MEMORI_SESSIONS_INVALID_DATE_FROM_FORMAT":"Fecha no válida del formato","MEMORI_SESSIONS_INVALID_DATE_TO_FORMAT":"Fecha no válida para formatear","MEMORI_SESSION_NOT_FOUND":"Sesión no encontrada","MEMORI_SESSION_DOESNT_ACCEPT_MEDIA":"Sesión no acepta medios","INTEGRATION_INVALID_TYPE":"Tipo de integración no válido","INTEGRATION_ALREADY_EXISTS":"La integración ya existe","INTEGRATION_MEMORI_IS_NOT_PUBLIC":"Las memorias no públicas no se pueden integrar","INTEGRATION_MISSING_INVOCATION_TEXT":"Integración: falta texto de invocación","INTEGRATION_MISSING_DEVICE_EMAILS":"Integración: correo electrónico del dispositivo perdido","INTEGRATION_MEMORI_IS_EMPTY":"Los recuerdos vacíos no se pueden integrar","INTEGRATION_MISSING_PRIVACY_POLICY":"Integración: falta la política de privacidad","INTEGRATION_MISSING_CATEGORY":"Falta categoría de integración","INTEGRATION_MISSING_DESCRIPTION":"Falta descripción de integración","INTEGRATION_INVALID_INVOCATION_TEXT":"Texto de invocación no válido","INTEGRATION_GOOGLE_NO_MORE_AVAILABLE":"Google Home ya no está disponible","UPLOAD_REQUIRES_MULTIPART_ENCODING":"La carga requiere codificación multiparte","UPLOAD_MISSING_CONTENT_TYPE_BOUNDARY":"Upload: falta límite de tipo de contenido","UPLOAD_MAX_LENGTH_EXCEEDED":"Upload: se superó el tamaño máximo","UPLOAD_FILE_IS_EMPTY":"Upload: archivo vacío","UPLOAD_INVALID_FILE_TYPE_OR_SIGNATURE":"Upload: tipo de archivo o firma no válidos","UPLOAD_MISSING_FILE_NAME":"Upload: falta el nombre del archivo","UPLOAD_INVALID_MEMORY_ID":"Upload: ID de contenido no válido","UPLOAD_MISSING_FILE_CONTENT":"Upload: Falta contenido del archivo","ASSET_NOT_FOUND":"Asset no encontrado","ASSET_NOT_ACCESSIBLE":"Asset no accesible","ASSET_MISSING_SESSION_ID":"Asset: ID de sesión faltante","ASSET_INVALID_FILE_NAME":"Asset: nombre de archivo no válido","ASSET_MALWARE_SCAN_THREATS_FOUND":"Asset: encontró amenazas de malware","INVITATION_NOT_FOUND":"Invitación no encontrada","INVITATION_NOT_ACCESSIBLE":"Invitación no accesible","INVITATION_ALREADY_ACCEPTED":"Invitación ya aceptada","INVITATION_ALREADY_REJECTED":"Invitación ya rechazada","INVITATION_MISSING_DESTINATION_EMAIL":"Invitación: falta el correo electrónico de destino","INVITATION_DESTINATION_EMAIL_INVALID":"Invitación: correo electrónico de destino no válido","INVITATION_MISSING_TAG":"Invitación: falta etiqueta","INVITATION_MISSING_PIN":"Invitación: falta el PIN","INVITATION_INVALID_PIN":"Invitación: PIN no válido","INVITATION_INVALID_TYPE":"Invitación: tipo no válido","INVITATION_MISSING_DESTINATION_NAME":"Invitación: falta el nombre del destino","INVITATION_TAG_PIN_CANT_BE_CHANGED":"Invitación: la etiqueta y el pin no se pueden cambiar","INVITATION_CANT_BE_CHANGED":"Intación: no se puede cambiar","ACTIONLOG_INVALID_USER_ID":"ID de usuario no válido","ACTIONLOG_INVALID_DATE_FROM_FORMAT":"Fecha de: formato no válido","ACTIONLOG_INVALID_DATE_TO_FORMAT":"Fecha hasta: formato no válido","ACTIONLOG_INVALID_MEMORI_ID":"ID de memoria no válida","CONSUMPTIONLOG_INVALID_TYPE":"Tipo de registro no válido","CONSUMPTIONLOG_INVALID_DATE_FROM_FORMAT":"Fecha de: formato no válido","CONSUMPTIONLOG_INVALID_DATE_TO_FORMAT":"Fecha hasta: formato no válido","CONSUMPTIONLOG_INVALID_USER_ID":"ID de usuario no válido","CONSUMPTIONLOG_INVALID_MEMORI_ID":"ID de memoria no válida","NOTIFICATIONPREFS_INVALID_CHATLOG_EXTRACTION_PERIOD":"Notificaciones: Período de extracción del registro de chat no válido","BROADCAST_NOT_ALLOWED":"Broadcast no permitido","INVALID_NOTIFICATION_TYPE":"Tipo de notificación no válido","NOTIFICATION_NOT_FOUND":"Notificación no encontrada","INVALID_NOTIFICATION_FILTER":"Filtro de notificación no válido","INVALID_NOTIFICATION_PERIOD":"Período de notificación no válido","PROCESS_INVALID_TYPE":"Tipo de proceso no válido","PROCESS_ALREADY_RUNNING":"Proceso ya en ejecución","PROCESS_NOT_FOUND":"Proceso no encontrado","IMPORTCSV_MISSING_ROWS":"Importación CSV: filas faltantes","IMPORTCSV_MISSING_CSV":"Importación CSV: Falta CSV","IMPORTCSV_MISSING_SEPARATOR":"Importación CSV: falta separador","IMPORTCSV_INVALID_SEPARATOR":"Importación CSV: separador no válido","IMPORTCSV_MISSING_HEADERS":"Importación CSV: faltan encabezados","IMPORTCSV_MISSING_TITLE_VARIANT_SEPARATOR":"Importación CSV: falta el separador de variante de título","IMPORTCSV_INVALID_RECEIVER_ID":"Importación CSV: ID de receptor no válido","IMPORTCSV_INVALID_MEDIA_LINK":"Importación CSV: enlace multimedia no válido","IMPORTCSV_INVALID_LINK_TITLE_HANDLING":"Importación CSV: título del enlace no válido","IMPORTCSV_UNDETECTABLE_CHAR_ENCODING":"Importación CSV: codificación de caracteres indetectable","IMPORTCSV_CANT_IMPORT_TO_SECRET_MEMORI":"Importación CSV: no se puede importar a Secret Memories","IMPORTTXT_MISSING_ROWS":"Importando TXT: filas faltantes","IMPORTTXT_INVALID_GRANULARITY":"Importar TXT: granularidad no válida","IMPORTTXT_INVALID_RECEIVER_ID":"Importar TXT: ID de receptor no válido","IMPORTTXT_INVALID_MEDIA_LINK":"Importar TXT: enlace multimedia no válido","IMPORTTXT_INVALID_LINK_TITLE_HANDLING":"Importar TXT: título del enlace no válido","IMPORTTXT_UNDETECTABLE_CHAR_ENCODING":"Importación TXT: codificación de caracteres indetectable","IMPORTTXT_CANT_IMPORT_TO_SECRET_MEMORI":"Importación TXT: No se puede importar a Secret Memories","IMPORTTXT_IMPORT_LIMIT_EXCEEDED":"Importar TXT: límite de importación excedido","IMPORTTXT_IMPORT_ON_GPT4_REQUIRES_API_KEY":"Importar TXT: la importación en GPT-4 requiere una clave API","IMPORTTXT_IMPORT_REQUIRES_PAYING":"Importar TXT: la importación requiere un plan de pago","IMPORTTXT_BILLING_DENIED_PERMISSION":"Importar TXT: no tienes suficientes créditos para la operación","IMPORT_MISSING_ROWS":"Importar: filas faltantes","IMPORT_CANT_IMPORT_TO_SECRET_MEMORI":"Importar: no se puede importar a Secret Memories","IMPORTMEMORI_INVALID_MEMORI_SPECS":"Importar MEMORI: especificaciones de memoria no válidas","IMPORT_MISSING_JSONL":"Importar: faltan JSONL","IMPORTMEMORI_INVALID_SPECS":"Importar MEMORI: especificaciones no válidas","EXPORT_MISSING_PASSWORD":"Exportar: falta contraseña","EXPORTCSV_MISSING_CSV_SPECS":"Exportación CSV: faltan especificaciones CSV","EXPORTCSV_MISSING_SEPARATOR":"Exportación CSV: falta separador","EXPORTCSV_INVALID_SEPARATOR":"Exportación CSV: separador no válido","EXPORTCSV_MISSING_TITLE_VARIANT_SEPARATOR":"Exportación CSV: falta el separador de variante de título","EXPORTCSV_MISSING_NEW_LINE_CHAR":"Exportación CSV: falta un carácter de nueva línea","EXPORTCSV_INVALID_NEW_LINE_CHAR":"Exportación CSV: carácter de nueva línea no válido","EXPORTCSV_MISSING_PASSWORD":"Exportación CSV: falta contraseña","EXPORTJSONL_MISSING_JSONL_SPECS":"Exportación JSONL: faltan especificaciones JSONL","EXPORTJSONL_MISSING_PLATFORM":"Exportación JSONL: plataforma faltante","EXPORTJSONL_INVALID_PLATFORM":"Exportación JSONL: plataforma no válida","EXPORTJSONL_MISSING_PASSWORD":"Exportación JSONL: falta contraseña","EXPORTJSONL_EXPORT_REQUIRES_PAYING":"Exportación JSONL: la exportación requiere un plan pago","ANALYSIS_MISSING_QUERY":"Análisis: consulta faltante","ANALYSIS_CANT_ANALYZE_SECRET_MEMORI":"Análisis: No se pueden analizar recuerdos secretos","ANALYSIS_USER_QUERY_MATCH_REQUIRES_DEEP_THOUGHT":"Análisis: hacer coincidir la consulta del usuario requiere un pensamiento profundo","BADGE_ASSIGNMENT_WRONG_OR_MISSING_CREDENTIALS":"Asignación de insignia: credenciales incorrectas o faltantes","BADGE_ASSIGNMENT_MISSING_REF_ID":"Asignación de insignia: falta el ID de referencia","BADGE_ASSIGNMENT_OUTCOME_NOT_FOUND":"Asignación de insignia: resultado no encontrado","BADGE_ASSIGNMENT_MISSING_ASSERTION_URL":"Asignación de insignia: falta la URL de aserción","BADGE_ASSIGNMENT_MISSING_BADGE_URL":"Asignación de insignia: URL de insignia faltante","BADGE_ASSIGNMENT_MISSING_ISSUER_URL":"Asignación de insignia: falta la URL del emisor","BADGE_ASSIGNMENT_INVALID_URL":"Asignación de insignia: URL no válida","BADGE_ASSIGNMENT_MISSING_RECIPIENT":"Asignación de insignia: destinatario faltante","BADGE_ASSIGNMENT_UNKNOWN_RECIPIENT_TYPE":"Asignación de insignia: tipo de destinatario desconocido","BADGE_ASSIGNMENT_MISSING_RECIPIENT_IDENTITY":"Asignación de insignia: falta la identidad del destinatario","BADGE_ASSIGNMENT_MISSING_RECIPIENT_HASH_TYPE":"Asignación de insignia: falta el tipo de hash del destinatario","BADGE_ASSIGNMENT_UNKNOWN_RECIPIENT_HASH_TYPE":"Asignación de insignia: tipo de hash del destinatario desconocido","BADGE_ASSIGNMENT_WRONG_RECIPIENT_IDENTITY":"Asignación de insignia: identidad del destinatario incorrecta","BADGE_NOT_FOUND":"Insignia no encontrada","OUTCOME_NO_DCM_CONFIGURED":"Resultado: no hay ningún DCM configurado","OUTCOME_USER_BADGES_DISABLED":"Resultado: insignias de usuario deshabilitadas","COMPLETION_CONFIG_MISSING_NAME":"Configuración de terminaciones: falta nombre","COMPLETION_CONFIG_MISSING_PROVIDER":"Configuración de terminaciones: falta proveedor","COMPLETION_CONFIG_MISSING_ENDPOINT":"Configuración de terminaciones: falta punto final","COMPLETION_CONFIG_MISSING_API_KEY":"Configuración de terminaciones: falta clave API","COMPLETION_CONFIG_MISSING_MODEL":"Configuración de terminaciones: modelo faltante","COMPLETION_CONFIG_NO_PURPOSE_SPECIFIED":"Configuración de terminaciones: se debe especificar al menos un tipo de terminaciones","COMPLETION_CONFIG_INVALID_NAME":"Configuración de terminaciones: nombre no válido","COMPLETION_CONFIG_INVALID_PURPOSE":"Configuración de terminaciones: tipo de terminaciones no válidas","COMPLETION_CONFIG_INVALID_ENDPOINT":"Configuración de terminaciones: punto final no válido","COMPLETION_CONFIG_INCONSISTENT_ENDPOINT":"Configuración de terminaciones: punto final inconsistente","COMPLETION_CONFIG_INVALID_PROVIDER":"Configuración de terminaciones: proveedor no válido","COMPLETION_CONFIG_NOT_FOUND":"Configuración de terminaciones: no encontrada","COMPLETION_CONFIG_NOT_ACCESSIBLE":"Configuración de terminaciones: no accesible","COMPLETION_CONFIG_NAME_RESERVED":"Configuración de terminaciones: nombre reservado","COMPLETION_CONFIG_NAME_ALREADY_EXISTS":"Configuración de terminaciones: el nombre ya existe","COMPLETION_CONFIG_VISIBILITY_CHANGE_NOT_ALLOWED":"Configuración de terminaciones: cambio de visibilidad no permitido","COMPLETION_CONFIG_MISSING_MANDATORY_PREFIX":"Configuración de terminaciones: prefijo obligatorio faltante","COMPLETION_CONFIG_VISIBILITY_NOT_PERMITTED":"Configuración de terminaciones: visibilidad no permitida","COMPLETION_CONFIG_USE_AS_DEFAULT_NOT_PERMITTED":"Configuración de terminaciones: uso como predeterminado no permitido","COMPLETION_CONFIG_USE_AS_DEFAULT_REQUIRES_TENANT_VISIBILITY":"Configuración de terminaciones: uso como predeterminado requiere visibilidad del inquilino","COMPLETION_CONFIG_CHARGEABLE_NOT_PERMITTED":"Configuración de terminaciones: chargeable no permitido","COMPLETION_CONFIG_INVALID_APPLY_TO":"Configuración de terminaciones: apply to no válido","COMPLETION_CONFIG_APPLY_TO_TENANT_NOT_ALLOWED":"Configuración de terminaciones: apply to tenant no permitido","TRUSTED_APPLICATION_NOT_FOUND":"Aplicación de confianza no encontrada","TRUSTED_APPLICATION_NOT_ACCESSIBLE":"Aplicación de confianza no accesible","TRUSTED_APPLICATION_NAME_REQUIRED":"Aplicación de confianza: nombre requerido","TRUSTED_APPLICATION_TOKEN_REQUIRED":"Aplicación de confianza: token requerido","TRUSTED_APPLICATION_NAME_ALREADY_EXISTS":"Aplicación de confianza: nombre ya existe","TRUSTED_APPLICATION_INVALID_TOKEN":"Aplicación de confianza: token no válido"}}');let XO={en:{translation:b(XC)},it:{translation:b(XI)},es:{translation:b(XR)},fr:{translation:b(XM)},de:{translation:b(XN)}},XP=(0,ah.createInstance)({resources:XO,lng:"en",fallbackLng:"it",supportedLngs:["en","it","fr","es","de"],nonExplicitSupportedLngs:!0,interpolation:{escapeValue:!1}});XP.init(),function(e){let t=(void 0)??"translation";for(let n of Object.keys(hp)){let r=hp[n],i=hm[n],a=hf[n],o=hg[n];e.addResourceBundle(n,t,{table:r,expandable:i,alert:a,overlay:o},!0,!0)}}(XP);var Xk=({children:e})=>(0,ed.jsx)(i6,{i18n:XP,children:e});let XL=e=>{var t;return e?null==(t=null==e?void 0:e.split(","))?void 0:t.reduce((e,t)=>{let[n,r]=t.split(":").map(e=>e.trim());return{...e,[n]:r}},{}):{}},XD=({ownerUserName:e,ownerUserID:t,memoriName:n,memoriID:r,integration:i,integrationID:a,tenantID:o,secretToken:s,sessionID:l,layout:u,customLayout:c,showShare:d,showCopyButton:h,showTranslationOriginal:p,showSettings:m,showTypingText:f,showClear:g,showOnlyLastMessages:v,showInputs:y=!0,showDates:b=!1,showContextPerLine:_=!1,showMessageConsumption:x,showUpload:w,showLogin:S,showReasoning:E,show3dAvatar:A,avatar3dHidden:T,height:I="100%",baseURL:C,apiURL:M="https://backend.memori.ai",engineURL:N="https://engine.memori.ai",tag:R,pin:O,context:P,initialQuestion:k,showChatHistory:D,uiLang:B,spokenLang:F,multilingual:U,authToken:j,enableAudio:z,defaultSpeakerActive:H=!0,disableTextEnteredEvents:G=!1,onStateChange:V,additionalInfo:W,customMediaRenderer:q,additionalSettings:$,userAvatar:J,useMathFormatting:K=!1,autoStart:Y,applyVarsToRoot:X=!1,__WEBCOMPONENT__:Z=!1,maxTotalMessagePayload:Q,maxTextareaCharacters:ee})=>{var et,en,er,ei,ea,eo,es,el;let[eu,ec]=(0,ep.useState)(),[eh,em]=(0,ep.useState)(),[ef,eg]=(0,ep.useState)(),[ev,ey]=(0,ep.useState)(),{t:eb}=tE();if(!(r&&t||n&&e))throw Error("Identifier pair required: please provide either memoriID and ownerUserID or memoriName and ownerUserName");let e_=e2(M,N),ex=(0,ep.useCallback)(async()=>{let e=C||(o.startsWith("https://")?o:`https://${o}`);try{let t=await fetch(`${e}/api/speechkey?tenant=${o}`,{method:"GET",headers:{"Content-Type":"application/json"}}),n=await t.json();n.provider?eg(n.provider):console.warn("Provider not found in speech key response")}catch(e){console.error("Error fetching speech key:",e)}},[C,o]);(0,ep.useEffect)(()=>{ex()},[]);let ew=(0,ep.useCallback)(async()=>{if(r&&t){let{memori:e,...n}=await e_.backend.getMemoriByUserAndId(o,t,r);0===n.resultCode&&e?ec(e):console.error("[MEMORI]",n,e)}else if(n&&e){let{memori:r,...i}=await e_.backend.getMemori(o,e,n);0===i.resultCode&&r?(!r.ownerUserID&&t&&(r.ownerUserID=t),ec(r)):console.error("[MEMORI]",i,r)}},[r,t,n,e,o]);(0,ep.useEffect)(()=>{ew()},[ew,o]);let eS=(0,ep.useCallback)(async()=>{let{tenant:e,...t}=await e_.backend.tenant.getTenant(o);e&&0===t.resultCode?em(e):console.debug("[TENANT]",t,e)},[o,M]);(0,ep.useEffect)(()=>{eS()},[eS]),(0,ep.useEffect)(()=>{let e=document.querySelector(`memori-client[memoriname="${null==eu?void 0:eu.name}"]`)||document.querySelector(`memori-client[memoriid="${null==eu?void 0:eu.memoriID}"]`)||document.querySelector("memori-client");if(!e)return;let t=new MutationObserver((e,t)=>{for(let t of e)if("attributes"===t.type){let e="MEMORI-CLIENT"===t.target.nodeName?t.target:t.target.parentElement,n=e.getAttribute("sessionid")||void 0;e&&n&&ey(n)}});return t.observe(e,{attributes:!0,childList:!1,subtree:!1}),()=>{t.disconnect()}},[]),(0,ep.useEffect)(()=>{if(B)XP.changeLanguage(B.toLowerCase());else{let{lng:e,fallbackLng:t}=(()=>{let e=navigator.language;if(e){let t=e.split("-")[0];if(["en","it"].includes(t))return{lng:t,fallbackLng:"en"===t?"it":"en"}}return{lng:"en",fallbackLng:"it"}})();XP.changeLanguage(e).catch(()=>{XP.changeLanguage(t)})}},[B]);let eE=null!=i?i:null==(et=null==eu?void 0:eu.integrations)?void 0:et.find(e=>a?e.integrationID===a:!!e.publish&&"LANDING_EXPERIENCE"===e.type),eA=((e,t=!1)=>{try{return JSON.parse(e)}catch(n){return t?e:null}})(null!=(en=null==eE?void 0:eE.customData)?en:"{}"),eT=[null==eh?void 0:eh.name,...(null==eh?void 0:eh.aliases)||[],...eA.whiteListedDomains||[]];if((null==(er=null==eA?void 0:eA.whiteListedDomains)?void 0:er.length)&&"u">typeof window&&!eT.some(e=>new RegExp(e).test(window.location.hostname)))return null;let eI=null!=(ei=eA.ignoreClientAttributes)&&ei?{initialContextVars:XL(eA.contextVars),initialQuestion:eA.initialQuestion,showLogin:(null==eu?void 0:eu.enableDeepThought)||void 0,memoriLang:null==(eo=null==(ea=null==eu?void 0:eu.culture)?void 0:ea.split("-"))?void 0:eo[0],uiLang:B,spokenLang:F,autoStart:"HIDDEN_CHAT"===u||"WEBSITE_ASSISTANT"!==u&&Y}:{...R&&O?{personification:{tag:R,pin:O}}:{},multilingual:U,showCopyButton:h,showTranslationOriginal:p,showSettings:m,showChatHistory:D,showShare:d,showTypingText:f,showClear:g,showLogin:null!=S?S:(null==eu?void 0:eu.enableDeepThought)||void 0,showUpload:w,showReasoning:E,showContextPerLine:_,showMessageConsumption:x,initialContextVars:null!=P?P:XL(eA.contextVars),initialQuestion:null!=k?k:eA.initialQuestion,autoStart:"WEBSITE_ASSISTANT"!==u&&(void 0!==Y?Y:"HIDDEN_CHAT"===u||Y),enableAudio:z,defaultSpeakerActive:H,useMathFormatting:K,memoriLang:null==(el=null==(es=null==eu?void 0:eu.culture)?void 0:es.split("-"))?void 0:el[0],uiLang:B,spokenLang:F},[eC,eM]=(0,ep.useState)(!1),eN=(0,ep.useCallback)(()=>{var e;if(((null==eu?void 0:eu.memoriID)||r)&&!eC){let t=null==window?void 0:window.location.origin;if(!t||t.includes("localhost")||t.includes("memori-ai.github.io"))return void eM(!0);eM(!0),fetch("https://pulse.aisuru.com/post",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({pulse:{clientType:Z?"memori-webcomponent":"memori-react",clientVersion:"v9.0.0",userAgent:navigator.userAgent,language:navigator.language,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,memoriID:null!=(e=null==eu?void 0:eu.memoriID)?e:r,tenant:o,referrer:t}})})}},[null==eu?void 0:eu.memoriID,r,o,Z,eC]);return(0,ep.useEffect)(()=>{eN()},[eN]),(0,ed.jsx)(Xk,{children:(0,ed.jsx)(v8,{defaultDuration:5e3,children:(0,ed.jsx)(q3,{children:(0,ed.jsx)(e8,{children:eu?(0,ed.jsx)(XT,{layout:u,customLayout:c,height:I,baseUrl:C||(o.startsWith("https://")||o.startsWith("http://")?o:`https://${o}`),apiURL:M,engineURL:N,memori:{...eu,secretToken:s},__WEBCOMPONENT__:Z,ownerUserName:null!=e?e:eu.ownerUserName,ownerUserID:null!=t?t:eu.ownerUserID,tenant:eh,tenantID:o,sessionID:null!=l?l:ev,secret:s,ttsProvider:ef||"azure",integration:eE,authToken:j,onStateChange:V,additionalInfo:W,customMediaRenderer:q,additionalSettings:$,userAvatar:J,applyVarsToRoot:X,maxTotalMessagePayload:Q,maxTextareaCharacters:ee,disableTextEnteredEvents:G,show3dAvatar:A,avatar3dHidden:T,...eI,showOnlyLastMessages:v,showInputs:y,showDates:b}):(0,ed.jsx)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center"},children:(0,ed.jsxs)("p",{style:{textAlign:"center",margin:"2rem auto",textTransform:"capitalize"},children:[eb("loading")||"Loading","..."]})})})})})})};XD.propTypes={memoriName:(b(em)).string,memoriID:(b(em)).string,ownerUserName:(b(em)).string,ownerUserID:(b(em)).string,integrationID:(b(em)).string,integration:(b(em)).any,tenantID:(b(em)).string.isRequired,secretToken:(b(em)).string,sessionID:(b(em)).string,layout:(b(em)).oneOf(["DEFAULT","FULLPAGE","TOTEM","WEBSITE_ASSISTANT","CHAT","HIDDEN_CHAT","ZOOMED_FULL_BODY"]),customLayout:(b(em)).any,showShare:(b(em)).bool,showCopyButton:(b(em)).bool,showTranslationOriginal:(b(em)).bool,showInputs:(b(em)).bool,showDates:(b(em)).bool,showContextPerLine:(b(em)).bool,showMessageConsumption:(b(em)).bool,showSettings:(b(em)).bool,showClear:(b(em)).bool,showOnlyLastMessages:(b(em)).bool,showTypingText:(b(em)).bool,showLogin:(b(em)).bool,showUpload:(b(em)).bool,showReasoning:(b(em)).bool,show3dAvatar:(b(em)).bool,avatar3dHidden:(b(em)).bool,height:(b(em)).oneOfType([(b(em)).string,(b(em)).number]),baseURL:(b(em)).string,apiURL:(b(em)).string,engineURL:(b(em)).string,tag:(b(em)).string,pin:(b(em)).string,context:(b(em)).objectOf((b(em)).any),initialQuestion:(b(em)).string,uiLang:(b(em)).oneOf(["en","it","fr","es","de","EN","IT","FR","ES","DE"]),spokenLang:(b(em)).string,multilingual:(b(em)).bool,authToken:(b(em)).string,enableAudio:(b(em)).bool,defaultSpeakerActive:(b(em)).bool,disableTextEnteredEvents:(b(em)).bool,onStateChange:(b(em)).func,additionalInfo:(b(em)).objectOf((b(em)).any),customMediaRenderer:(b(em)).func,additionalSettings:(b(em)).any,userAvatar:(b(em)).oneOfType([(b(em)).string,(b(em)).any]),useMathFormatting:(b(em)).bool,autoStart:(b(em)).bool,applyVarsToRoot:(b(em)).bool,maxTotalMessagePayload:(b(em)).number,maxTextareaCharacters:(b(em)).number};let XB=e=>{try{return JSON.parse(e)}catch(e){return null}},XF=(e,t="100%")=>{e.style.display="block",e.style.width="100%",e.style.height=t,e.style.minHeight="0"};class XU extends HTMLElement{connectedCallback(){let e=document.createElement("div"),t=document.createElement("div");t.setAttribute("id","memori-root"),this.style.display="block",XF(e),XF(t),(this.hasAttribute("height")||"CHAT"===this.getAttribute("layout"))&&XF(this,this.getAttribute("height")||"100%"),e.appendChild(t),this.appendChild(e);let n=Object.keys(XD.propTypes).reduce((e,t)=>(this.hasAttribute(t)&&(e[t]=this.getAttribute(t),("true"===e[t]||"false"===e[t])&&(e[t]="true"===e[t])),e),{}),r=this.getAttribute("tenantId"),i=this.getAttribute("context"),a=i?.split(",")?.reduce((e,t)=>{let[n,r]=t.split(":").map(e=>e.trim());return{...e,[n]:r}},{}),o=XB(this.getAttribute("additionalInfo")||"{}")||{},s=this.getAttribute("integration"),l=s&&XB(s)||void 0,u=this.getAttribute("apiURL")||void 0;u&&"backend.memori.ai"===new URL(u).hostname&&(u="https://backend-proxy.aisuru.com"),r?(b(eh)).render((0,ed.jsx)(XD,{...n,apiURL:u,context:a,tenantID:r,additionalInfo:o,integration:l,__WEBCOMPONENT__:!0}),t):console.error("No tenantId attribute found")}}customElements.define("memori-client",XU)})();